public interface DocumentAuthorizer extends DataObjectAuthorizer
Document
instances
Authorizer provides user based authorization
The document authorizer is associated with a document type through its data dictionary
DocumentEntry
. This is then used by the framework to authorize certain
actions and in addition used for view presentation logic
Modifier and Type | Method and Description |
---|---|
boolean |
canAcknowledge(Document document,
Person user) |
boolean |
canAddNoteAttachment(Document document,
String attachmentTypeCode,
Person user) |
boolean |
canAnnotate(Document document,
Person user) |
boolean |
canApprove(Document document,
Person user) |
boolean |
canBlanketApprove(Document document,
Person user) |
boolean |
canCancel(Document document,
Person user)
Determines if the user has permission to cancel the document
|
boolean |
canClose(Document document,
Person user) |
boolean |
canCopy(Document document,
Person user)
Determines if the user has permission to copy the document
|
boolean |
canDeleteNoteAttachment(Document document,
String attachmentTypeCode,
String authorUniversalIdentifier,
Person user) |
boolean |
canDisapprove(Document document,
Person user) |
boolean |
canEdit(Document document,
Person user)
Determines if the document can be edited; if false is returned, then all fields are in a
read only state
|
boolean |
canEditDocumentOverview(Document document,
Person user) |
boolean |
canFyi(Document document,
Person user) |
boolean |
canInitiate(String documentTypeName,
Person user)
Checks if a user has the permissions to initiate a document
|
boolean |
canOpen(Document document,
Person user)
Checks if a user has the permissions to open a document
|
boolean |
canPerformRouteReport(Document document,
Person user) |
boolean |
canRecall(Document document,
Person user) |
boolean |
canReceiveAdHoc(Document document,
Person user,
String actionRequestCode) |
boolean |
canReload(Document document,
Person user) |
boolean |
canRoute(Document document,
Person user)
Determines if the user has permission to route the document
|
boolean |
canSave(Document document,
Person user) |
boolean |
canSendAdHocRequests(Document document,
String actionRequestCd,
Person user) |
boolean |
canSendAnyTypeAdHocRequests(Document document,
Person user) |
boolean |
canSendNoteFyi(Document document,
Person user) |
boolean |
canSuperUserApprove(Document document,
Person user)
Determines if the user has permission to approve a document as a super user.
|
boolean |
canSuperUserDisapprove(Document document,
Person user)
Determines if the user has permission to disapprove a document as a super user.
|
boolean |
canSuperUserTakeAction(Document document,
Person user)
Determines if the user has permission to take a super user action.
|
boolean |
canTakeRequestedAction(Document document,
String actionRequestCode,
Person user) |
boolean |
canViewNoteAttachment(Document document,
String attachmentTypeCode,
Person user) |
boolean |
canViewNoteAttachment(Document document,
String attachmentTypeCode,
String authorUniversalIdentifier,
Person user)
Deprecated.
|
void |
setDocumentRequestAuthorizationCache(DocumentRequestAuthorizationCache documentRequestAuthorizationCache) |
isAuthorized, isAuthorized, isAuthorizedByTemplate, isAuthorizedByTemplate
boolean canInitiate(String documentTypeName, Person user)
documentTypeName
- document type nameuser
- current userboolean canOpen(Document document, Person user)
document
- document to checkuser
- current userboolean canEdit(Document document, Person user)
document
- document to checkuser
- current userboolean canAnnotate(Document document, Person user)
boolean canRoute(Document document, Person user)
document
- document to checkuser
- current userboolean canCancel(Document document, Person user)
document
- document to checkuser
- current userboolean canCopy(Document document, Person user)
document
- document to checkuser
- current userboolean canPerformRouteReport(Document document, Person user)
boolean canBlanketApprove(Document document, Person user)
boolean canApprove(Document document, Person user)
boolean canDisapprove(Document document, Person user)
boolean canSendNoteFyi(Document document, Person user)
boolean canEditDocumentOverview(Document document, Person user)
boolean canAcknowledge(Document document, Person user)
boolean canReceiveAdHoc(Document document, Person user, String actionRequestCode)
boolean canAddNoteAttachment(Document document, String attachmentTypeCode, Person user)
boolean canDeleteNoteAttachment(Document document, String attachmentTypeCode, String authorUniversalIdentifier, Person user)
boolean canViewNoteAttachment(Document document, String attachmentTypeCode, Person user)
@Deprecated boolean canViewNoteAttachment(Document document, String attachmentTypeCode, String authorUniversalIdentifier, Person user)
boolean canSendAdHocRequests(Document document, String actionRequestCd, Person user)
boolean canSendAnyTypeAdHocRequests(Document document, Person user)
boolean canTakeRequestedAction(Document document, String actionRequestCode, Person user)
boolean canSuperUserTakeAction(Document document, Person user)
document
- document to checkuser
- current userboolean canSuperUserApprove(Document document, Person user)
document
- document to checkuser
- current userboolean canSuperUserDisapprove(Document document, Person user)
document
- document to checkuser
- current uservoid setDocumentRequestAuthorizationCache(DocumentRequestAuthorizationCache documentRequestAuthorizationCache)
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.