Package org.kuali.rice.krad.document
Interface DocumentAuthorizer
- All Superinterfaces:
DataObjectAuthorizer
- All Known Subinterfaces:
MaintenanceDocumentAuthorizer,TransactionalDocumentAuthorizer
- All Known Implementing Classes:
DocumentAuthorizerBase,DocumentViewAuthorizerBase,MaintenanceDocumentAuthorizerBase,MaintenanceViewAuthorizerBase,TransactionalDocumentAuthorizerBase,TransactionalDocumentViewAuthorizerBase
Authorizer class for
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
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanAcknowledge(Document document, Person user) booleancanAddNoteAttachment(Document document, String attachmentTypeCode, Person user) booleancanAnnotate(Document document, Person user) booleancanApprove(Document document, Person user) booleancanBlanketApprove(Document document, Person user) booleanDetermines if the user has permission to cancel the documentbooleanbooleanDetermines if the user has permission to copy the documentbooleancanDeleteNoteAttachment(Document document, String attachmentTypeCode, String authorUniversalIdentifier, Person user) booleancanDisapprove(Document document, Person user) booleanDetermines if the document can be edited; if false is returned, then all fields are in a read only statebooleancanEditDocumentOverview(Document document, Person user) booleanbooleancanInitiate(String documentTypeName, Person user) Checks if a user has the permissions to initiate a documentbooleanChecks if a user has the permissions to open a documentbooleancanPerformRouteReport(Document document, Person user) booleanbooleancanReceiveAdHoc(Document document, Person user, String actionRequestCode) booleanbooleanDetermines if the user has permission to route the documentbooleanbooleancanSendAdHocRequests(Document document, String actionRequestCd, Person user) booleancanSendAnyTypeAdHocRequests(Document document, Person user) booleancanSendNoteFyi(Document document, Person user) booleancanSuperUserApprove(Document document, Person user) Determines if the user has permission to approve a document as a super user.booleancanSuperUserDisapprove(Document document, Person user) Determines if the user has permission to disapprove a document as a super user.booleancanSuperUserTakeAction(Document document, Person user) Determines if the user has permission to take a super user action.booleancanTakeRequestedAction(Document document, String actionRequestCode, Person user) booleancanViewNoteAttachment(Document document, String attachmentTypeCode, String authorUniversalIdentifier, Person user) Deprecated.booleancanViewNoteAttachment(Document document, String attachmentTypeCode, Person user) voidsetDocumentRequestAuthorizationCache(DocumentRequestAuthorizationCache documentRequestAuthorizationCache) Methods inherited from interface org.kuali.rice.krad.bo.DataObjectAuthorizer
isAuthorized, isAuthorized, isAuthorizedByTemplate, isAuthorizedByTemplate
-
Method Details
-
canInitiate
Checks if a user has the permissions to initiate a document- Parameters:
documentTypeName- document type nameuser- current user- Returns:
- boolean, true if the user has the permissions to initiate a document else false
-
canOpen
Checks if a user has the permissions to open a document- Parameters:
document- document to checkuser- current user- Returns:
- boolean, true if the user has the permissions to open a document else false
-
canEdit
Determines if the document can be edited; if false is returned, then all fields are in a read only state- Parameters:
document- document to checkuser- current user- Returns:
- boolean, true if the user has the permissions to edit a document else false
-
canAnnotate
-
canReload
-
canClose
-
canSave
-
canRoute
Determines if the user has permission to route the document- Parameters:
document- document to checkuser- current user- Returns:
- boolean, true if the user has permissions to route a document else false
-
canCancel
Determines if the user has permission to cancel the document- Parameters:
document- document to checkuser- current user- Returns:
- boolean, true if the user has permissions to cancel a document else false
-
canCopy
Determines if the user has permission to copy the document- Parameters:
document- document to checkuser- current user- Returns:
- boolean, true if the user has permissions to cancel a document else false
-
canPerformRouteReport
-
canBlanketApprove
-
canApprove
-
canDisapprove
-
canSendNoteFyi
-
canEditDocumentOverview
-
canFyi
-
canAcknowledge
-
canReceiveAdHoc
-
canAddNoteAttachment
-
canDeleteNoteAttachment
-
canViewNoteAttachment
-
canViewNoteAttachment
@Deprecated boolean canViewNoteAttachment(Document document, String attachmentTypeCode, String authorUniversalIdentifier, Person user) Deprecated. -
canSendAdHocRequests
-
canSendAnyTypeAdHocRequests
-
canTakeRequestedAction
-
canRecall
- Since:
- 2.1
-
canSuperUserTakeAction
Determines if the user has permission to take a super user action.- Parameters:
document- document to checkuser- current user- Returns:
- true if the user has permissions to take a super user action, otherwise false
- Since:
- 2.5
-
canSuperUserApprove
Determines if the user has permission to approve a document as a super user.- Parameters:
document- document to checkuser- current user- Returns:
- true if the user has permissions to approve a document as a super user, otherwise false
- Since:
- 2.5
-
canSuperUserDisapprove
Determines if the user has permission to disapprove a document as a super user.- Parameters:
document- document to checkuser- current user- Returns:
- true if the user has permissions to disapprove a document as a super user, otherwise false
- Since:
- 2.5
-
setDocumentRequestAuthorizationCache
void setDocumentRequestAuthorizationCache(DocumentRequestAuthorizationCache documentRequestAuthorizationCache)
-