Class TransactionalDocumentAuthorizerBase
- All Implemented Interfaces:
Serializable,DataObjectAuthorizer,DocumentAuthorizer,TransactionalDocumentAuthorizer
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Field Summary
Fields inherited from class org.kuali.rice.krad.document.DocumentAuthorizerBase
PRE_ROUTING_ROUTE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanBlanketApprove(Document document, Person user) booleanDetermines if the user has permission to cancel the documentbooleanprotected booleancanEstablishPessimisticLock(Document document, Person user) Returns whetherusercan establish a pessimistic lock on the document.booleanDetermines if the user has permission to route the documentbooleanprotected DataDictionaryServiceprotected booleanisUsingPessimisticLocking(Document document) Returns whether thedocumentis using pessimistic locking.protected voidsetDataDictionaryService(DataDictionaryService dataDictionaryService) Methods inherited from class org.kuali.rice.krad.document.DocumentAuthorizerBase
addPermissionDetails, addRoleQualification, addStandardAttributes, canAcknowledge, canAddNoteAttachment, canAnnotate, canApprove, canCopy, canDeleteNoteAttachment, canDisapprove, canEdit, canEditDocumentOverview, canFyi, canInitiate, canOpen, canPerformRouteReport, canRecall, canReceiveAdHoc, canReload, canSendAdHocRequests, canSendAnyTypeAdHocRequests, canSendNoteFyi, canSuperUserApprove, canSuperUserDisapprove, canSuperUserTakeAction, canTakeRequestedAction, canViewNoteAttachment, canViewNoteAttachment, getDocumentRequestAuthorizationCache, isDocumentInitiator, setDocumentRequestAuthorizationCacheMethods inherited from class org.kuali.rice.krad.bo.DataObjectAuthorizerBase
getPermissionDetailValues, getPermissionService, getPersonService, getRoleQualification, isAuthorized, isAuthorized, isAuthorizedByTemplate, isAuthorizedByTemplate, permissionExistsByTemplate, permissionExistsByTemplate, permissionExistsByTemplateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kuali.rice.krad.bo.DataObjectAuthorizer
isAuthorized, isAuthorized, isAuthorizedByTemplate, isAuthorizedByTemplateMethods inherited from interface org.kuali.rice.krad.document.DocumentAuthorizer
canAcknowledge, canAddNoteAttachment, canAnnotate, canApprove, canCopy, canDeleteNoteAttachment, canDisapprove, canEdit, canEditDocumentOverview, canFyi, canInitiate, canOpen, canPerformRouteReport, canRecall, canReceiveAdHoc, canReload, canSendAdHocRequests, canSendAnyTypeAdHocRequests, canSendNoteFyi, canSuperUserApprove, canSuperUserDisapprove, canSuperUserTakeAction, canTakeRequestedAction, canViewNoteAttachment, canViewNoteAttachment, setDocumentRequestAuthorizationCache
-
Constructor Details
-
TransactionalDocumentAuthorizerBase
public TransactionalDocumentAuthorizerBase()
-
-
Method Details
-
canClose
The
usercan only close thedocumentif it is a transactional document.- Specified by:
canClosein interfaceDocumentAuthorizer- Overrides:
canClosein classDocumentAuthorizerBase
-
canSave
The
usercan only save thedocumentif they have permission and, if pessimistic locking is turned on for thedocument, they can establish a pessimistic lock.- Specified by:
canSavein interfaceDocumentAuthorizer- Overrides:
canSavein classDocumentAuthorizerBase
-
canRoute
Determines if the user has permission to route the documentThe
usercan only route thedocumentif they have permission and, if pessimistic locking is turned on for thedocument, they can establish a pessimistic lock.- Specified by:
canRoutein interfaceDocumentAuthorizer- Overrides:
canRoutein classDocumentAuthorizerBase- 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 documentThe
usercan only cancel thedocumentif they have permission and, if pessimistic locking is turned on for thedocument, they can establish a pessimistic lock.- Specified by:
canCancelin interfaceDocumentAuthorizer- Overrides:
canCancelin classDocumentAuthorizerBase- Parameters:
document- document to checkuser- current user- Returns:
- boolean, true if the user has permissions to cancel a document else false
-
canBlanketApprove
The
usercan only blanket approve thedocumentif they have permission and, if pessimistic locking is turned on for thedocument, they can establish a pessimistic lock.- Specified by:
canBlanketApprovein interfaceDocumentAuthorizer- Overrides:
canBlanketApprovein classDocumentAuthorizerBase
-
isUsingPessimisticLocking
Returns whether thedocumentis using pessimistic locking.- Parameters:
document- the document to check for using pessimistic locking- Returns:
- true if the
documentis using pessimistic locking, false otherwise.
-
canEstablishPessimisticLock
Returns whetherusercan establish a pessimistic lock on the document.The
usercan only establish a pessimistic lock on the documentdocumentif there are no existing locks or if they already have a lock on thedocument.- Parameters:
document- the document to check for pessimistic locksuser- the user to check for pessimistic locks- Returns:
- true if the
usercan establish a pessimistic lock on the document, false otherwise
-
getDataDictionaryService
-
setDataDictionaryService
-