1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kns.document.authorization; |
17 | |
|
18 | |
import java.util.Set; |
19 | |
|
20 | |
import org.kuali.rice.kim.bo.Person; |
21 | |
import org.kuali.rice.kns.authorization.BusinessObjectAuthorizer; |
22 | |
import org.kuali.rice.kns.document.Document; |
23 | |
|
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
public interface DocumentAuthorizer extends BusinessObjectAuthorizer { |
32 | |
public Set<String> getDocumentActions(Document document, Person user, |
33 | |
Set<String> documentActions); |
34 | |
|
35 | |
public boolean canInitiate(String documentTypeName, Person user); |
36 | |
|
37 | |
public boolean canOpen(Document document, Person user); |
38 | |
|
39 | |
public boolean canReceiveAdHoc(Document document, Person user, |
40 | |
String actionRequestCode); |
41 | |
|
42 | |
public boolean canAddNoteAttachment(Document document, String attachmentTypeCode, Person user); |
43 | |
|
44 | |
public boolean canDeleteNoteAttachment(Document document, String attachmentTypeCode, String createdBySelfOnly, Person user); |
45 | |
|
46 | |
public boolean canViewNoteAttachment(Document document, String attachmentTypeCode, Person user); |
47 | |
|
48 | |
public boolean canSendAdHocRequests(Document document, String actionRequestCd, Person user); |
49 | |
} |