1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kns.authorization; |
17 | |
|
18 | |
import java.util.Map; |
19 | |
|
20 | |
import org.kuali.rice.kns.bo.BusinessObject; |
21 | |
|
22 | |
public interface BusinessObjectAuthorizer { |
23 | |
public boolean isAuthorized(BusinessObject businessObject, |
24 | |
String namespaceCode, String permissionName, String principalId); |
25 | |
|
26 | |
public boolean isAuthorizedByTemplate(BusinessObject businessObject, |
27 | |
String namespaceCode, String permissionTemplateName, |
28 | |
String principalId); |
29 | |
|
30 | |
public boolean isAuthorized(BusinessObject businessObject, |
31 | |
String namespaceCode, String permissionName, String principalId, |
32 | |
Map<String, String> additionalPermissionDetails, |
33 | |
Map<String, String> additionalRoleQualifiers); |
34 | |
|
35 | |
public boolean isAuthorizedByTemplate(BusinessObject businessObject, |
36 | |
String namespaceCode, String permissionTemplateName, |
37 | |
String principalId, |
38 | |
Map<String, String> additionalPermissionDetails, |
39 | |
Map<String, String> additionalRoleQualifiers); |
40 | |
|
41 | |
public Map<String,String> getCollectionItemRoleQualifications(BusinessObject collectionItemBusinessObject); |
42 | |
|
43 | |
public Map<String,String> getCollectionItemPermissionDetails(BusinessObject collectionItemBusinessObject); |
44 | |
} |