View Javadoc

1   /**
2    * Copyright 2005-2013 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.rice.kns.service;
17  
18  import org.kuali.rice.kim.api.identity.Person;
19  import org.kuali.rice.kns.document.authorization.BusinessObjectRestrictions;
20  import org.kuali.rice.kns.document.authorization.MaintenanceDocumentRestrictions;
21  import org.kuali.rice.kns.inquiry.InquiryRestrictions;
22  import org.kuali.rice.krad.bo.BusinessObject;
23  import org.kuali.rice.kns.document.MaintenanceDocument;
24  import org.kuali.rice.krad.document.Document;
25  import org.kuali.rice.krad.service.DataObjectAuthorizationService;
26  
27  /**
28   * Responsible for using AttributeSecurity on
29   * AttributeDefinitions, InquirableField the data dictionary business object and
30   * maintenance document entries
31   * 
32   * TODO: refactor for general objects
33   * @author Kuali Rice Team (rice.collab@kuali.org)
34   */
35  @Deprecated
36  public interface BusinessObjectAuthorizationService extends DataObjectAuthorizationService {
37  	public BusinessObjectRestrictions getLookupResultRestrictions(
38  			Object dataObject, Person user);
39  
40  	public InquiryRestrictions getInquiryRestrictions(
41  			BusinessObject businessObject, Person user);
42  
43  	public MaintenanceDocumentRestrictions getMaintenanceDocumentRestrictions(
44  			MaintenanceDocument maintenanceDocument, Person user);
45  
46  	public boolean canFullyUnmaskField(Person user,
47  			Class<?> dataObjectClass, String fieldName, Document document);
48  
49  	public boolean canPartiallyUnmaskField(
50  			Person user, Class<?> businessObjectClass, String fieldName, Document document);
51  
52  }