Coverage Report - org.kuali.rice.kns.service.BusinessObjectAuthorizationService
 
Classes in this File Line Coverage Branch Coverage Complexity
BusinessObjectAuthorizationService
N/A
N/A
1
 
 1  
 /*
 2  
  * Copyright 2007-2009 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.bo.Person;
 19  
 import org.kuali.rice.kns.authorization.BusinessObjectRestrictions;
 20  
 import org.kuali.rice.kns.bo.BusinessObject;
 21  
 import org.kuali.rice.kns.document.Document;
 22  
 import org.kuali.rice.kns.document.MaintenanceDocument;
 23  
 import org.kuali.rice.kns.document.authorization.MaintenanceDocumentRestrictions;
 24  
 import org.kuali.rice.kns.inquiry.InquiryRestrictions;
 25  
 
 26  
 /**
 27  
  * Responsible for using AttributeSecurity on
 28  
  * AttributeDefinitions, InquirableField the data dictionary business object and
 29  
  * maintenance document entries
 30  
  * 
 31  
  * TODO: refactor for general objects
 32  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 33  
  */
 34  
 public interface BusinessObjectAuthorizationService {
 35  
         public BusinessObjectRestrictions getLookupResultRestrictions(
 36  
                         Object dataObject, Person user);
 37  
 
 38  
         public InquiryRestrictions getInquiryRestrictions(
 39  
                         BusinessObject businessObject, Person user);
 40  
 
 41  
         public MaintenanceDocumentRestrictions getMaintenanceDocumentRestrictions(
 42  
                         MaintenanceDocument maintenanceDocument, Person user);
 43  
 
 44  
         public boolean canFullyUnmaskField(Person user,
 45  
                         Class<?> dataObjectClass, String fieldName, Document document);
 46  
 
 47  
         public boolean canPartiallyUnmaskField(
 48  
                         Person user, Class<?> businessObjectClass, String fieldName, Document document);
 49  
         
 50  
         public boolean canCreate(Class<?> boClass, Person user, String docTypeName);
 51  
         
 52  
         public boolean canMaintain(Object dataObject, Person user, String docTypeName);
 53  
         
 54  
         public boolean attributeValueNeedsToBeEncryptedOnFormsAndLinks(Class<?> dataObjectClass, String attributeName);
 55  
 }