001 /** 002 * Copyright 2005-2012 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 package org.kuali.rice.kns.service; 017 018 import org.kuali.rice.kim.api.identity.Person; 019 import org.kuali.rice.kns.document.authorization.BusinessObjectRestrictions; 020 import org.kuali.rice.kns.document.authorization.MaintenanceDocumentRestrictions; 021 import org.kuali.rice.kns.inquiry.InquiryRestrictions; 022 import org.kuali.rice.krad.bo.BusinessObject; 023 import org.kuali.rice.kns.document.MaintenanceDocument; 024 import org.kuali.rice.krad.document.Document; 025 import org.kuali.rice.krad.service.DataObjectAuthorizationService; 026 027 /** 028 * Responsible for using AttributeSecurity on 029 * AttributeDefinitions, InquirableField the data dictionary business object and 030 * maintenance document entries 031 * 032 * TODO: refactor for general objects 033 * @author Kuali Rice Team (rice.collab@kuali.org) 034 */ 035 @Deprecated 036 public interface BusinessObjectAuthorizationService extends DataObjectAuthorizationService { 037 public BusinessObjectRestrictions getLookupResultRestrictions( 038 Object dataObject, Person user); 039 040 public InquiryRestrictions getInquiryRestrictions( 041 BusinessObject businessObject, Person user); 042 043 public MaintenanceDocumentRestrictions getMaintenanceDocumentRestrictions( 044 MaintenanceDocument maintenanceDocument, Person user); 045 046 public boolean canFullyUnmaskField(Person user, 047 Class<?> dataObjectClass, String fieldName, Document document); 048 049 public boolean canPartiallyUnmaskField( 050 Person user, Class<?> businessObjectClass, String fieldName, Document document); 051 052 }