View Javadoc
1   /**
2    * Copyright 2005-2014 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.MaintenanceDocument;
20  import org.kuali.rice.kns.document.authorization.BusinessObjectRestrictions;
21  import org.kuali.rice.kns.document.authorization.MaintenanceDocumentRestrictions;
22  import org.kuali.rice.kns.inquiry.InquiryRestrictions;
23  import org.kuali.rice.krad.bo.BusinessObject;
24  import org.kuali.rice.krad.document.Document;
25  import org.kuali.rice.krad.service.DataObjectAuthorizationService;
26  import org.kuali.rice.krad.util.LegacyDataFramework;
27  
28  /**
29   * Responsible for using AttributeSecurity on
30   * AttributeDefinitions, InquirableField the data dictionary business object and
31   * maintenance document entries
32   *
33   * TODO: refactor for general objects
34   * @author Kuali Rice Team (rice.collab@kuali.org)
35   *
36   * @deprecated Use {@link org.kuali.rice.krad.service.DataObjectAuthorizationService}.
37   */
38  @Deprecated
39  @LegacyDataFramework
40  public interface BusinessObjectAuthorizationService extends DataObjectAuthorizationService {
41  	public BusinessObjectRestrictions getLookupResultRestrictions(
42  			Object dataObject, Person user);
43  
44  	public InquiryRestrictions getInquiryRestrictions(
45  			BusinessObject businessObject, Person user);
46  
47  	public MaintenanceDocumentRestrictions getMaintenanceDocumentRestrictions(
48  			MaintenanceDocument maintenanceDocument, Person user);
49  
50  	public boolean canFullyUnmaskField(Person user,
51  			Class<?> dataObjectClass, String fieldName, Document document);
52  
53  	public boolean canPartiallyUnmaskField(
54  			Person user, Class<?> businessObjectClass, String fieldName, Document document);
55  
56  }