001/**
002 * Copyright 2005-2016 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 */
016package org.kuali.rice.kns.authorization;
017
018import org.kuali.rice.krad.bo.BusinessObject;
019
020import java.util.Map;
021
022/**
023 * @deprecated Use {@link org.kuali.rice.krad.bo.DataObjectAuthorizer}.
024 */
025@Deprecated
026public interface BusinessObjectAuthorizer {
027        public boolean isAuthorized(BusinessObject businessObject,
028                        String namespaceCode, String permissionName, String principalId);
029
030        public boolean isAuthorizedByTemplate(BusinessObject businessObject,
031                        String namespaceCode, String permissionTemplateName,
032                        String principalId);
033
034        public boolean isAuthorized(BusinessObject businessObject,
035                        String namespaceCode, String permissionName, String principalId,
036                        Map<String, String> additionalPermissionDetails,
037                        Map<String, String> additionalRoleQualifiers);
038
039        public boolean isAuthorizedByTemplate(Object dataObject,
040                        String namespaceCode, String permissionTemplateName,
041                        String principalId,
042                        Map<String, String> additionalPermissionDetails,
043                        Map<String, String> additionalRoleQualifiers);
044        
045        public Map<String,String> getCollectionItemRoleQualifications(BusinessObject collectionItemBusinessObject);
046        
047        public Map<String,String> getCollectionItemPermissionDetails(BusinessObject collectionItemBusinessObject);
048}