1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
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 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
|
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 | |
} |