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.kim.bo.types.dto.AttributeSet;
 20  
 import org.kuali.rice.kns.authorization.BusinessObjectRestrictions;
 21  
 import org.kuali.rice.kns.bo.BusinessObject;
 22  
 import org.kuali.rice.kns.document.Document;
 23  
 import org.kuali.rice.kns.document.MaintenanceDocument;
 24  
 import org.kuali.rice.kns.document.authorization.MaintenanceDocumentRestrictions;
 25  
 import org.kuali.rice.kns.inquiry.InquiryRestrictions;
 26  
 
 27  
 /**
 28  
  * This class is responsible for using AttributeSecurity on
 29  
  * AttributeDefinitions, InquirableField the data dictionary business object and
 30  
  * maintenance document entries
 31  
  * 
 32  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 33  
  * 
 34  
  */
 35  
 public interface BusinessObjectAuthorizationService {
 36  
         public BusinessObjectRestrictions getLookupResultRestrictions(
 37  
                         BusinessObject businessObject, Person user);
 38  
 
 39  
         public InquiryRestrictions getInquiryRestrictions(
 40  
                         BusinessObject businessObject, Person user);
 41  
 
 42  
         public MaintenanceDocumentRestrictions getMaintenanceDocumentRestrictions(
 43  
                         MaintenanceDocument maintenanceDocument, Person user);
 44  
 
 45  
         public <T extends BusinessObject> boolean canFullyUnmaskField(Person user,
 46  
                         Class<T> businessObjectClass, String fieldName, Document document);
 47  
 
 48  
         public <T extends BusinessObject> boolean canPartiallyUnmaskField(
 49  
                         Person user, Class<T> businessObjectClass, String fieldName, Document document);
 50  
         
 51  
         public <T extends BusinessObject> boolean canCreate(Class<T> boClass, Person user, String docTypeName);
 52  
         
 53  
         public boolean canMaintain(BusinessObject businessObject, Person user, String docTypeName);
 54  
         
 55  
         public boolean attributeValueNeedsToBeEncryptedOnFormsAndLinks(Class<? extends BusinessObject> businessObjectClass, String attributeName);
 56  
 }