Package org.kuali.rice.krad.maintenance
Class MaintenanceDocumentAuthorizerBase
java.lang.Object
org.kuali.rice.krad.bo.DataObjectAuthorizerBase
org.kuali.rice.krad.document.DocumentAuthorizerBase
org.kuali.rice.krad.maintenance.MaintenanceDocumentAuthorizerBase
- All Implemented Interfaces:
Serializable,DataObjectAuthorizer,DocumentAuthorizer,MaintenanceDocumentAuthorizer
public class MaintenanceDocumentAuthorizerBase
extends DocumentAuthorizerBase
implements MaintenanceDocumentAuthorizer
Default implementation for
MaintenanceDocumentAuthorizer that perform KIM permission checks to authorize
the actions- 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 TypeMethodDescriptionprotected voidaddPermissionDetails(Object dataObject, Map<String, String> attributes) Adds the namespace, component and maintenance actions to the permission details attributesprotected voidaddRoleQualification(Object dataObject, Map<String, String> attributes) Adds the namespace and component to the role qualification attributesbooleanDetermines whether the user has the permission to create a newMaintenanceDocumentbooleancanCreateOrMaintain(MaintenanceDocument maintenanceDocument, Person user) Determines whether the user has the permission to create or maintain aMaintenanceDocumentbooleancanMaintain(Object dataObject, Person user) Determines whether the user has the permission to maintain aMaintenanceDocumentprotected DocumentDictionaryServicevoidsetDocumentDictionaryService(DocumentDictionaryService documentDictionaryService) Methods inherited from class org.kuali.rice.krad.document.DocumentAuthorizerBase
addStandardAttributes, canAcknowledge, canAddNoteAttachment, canAnnotate, canApprove, canBlanketApprove, canCancel, canClose, canCopy, canDeleteNoteAttachment, canDisapprove, canEdit, canEditDocumentOverview, canFyi, canInitiate, canOpen, canPerformRouteReport, canRecall, canReceiveAdHoc, canReload, canRoute, canSave, 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, canBlanketApprove, canCancel, canClose, canCopy, canDeleteNoteAttachment, canDisapprove, canEdit, canEditDocumentOverview, canFyi, canInitiate, canOpen, canPerformRouteReport, canRecall, canReceiveAdHoc, canReload, canRoute, canSave, canSendAdHocRequests, canSendAnyTypeAdHocRequests, canSendNoteFyi, canSuperUserApprove, canSuperUserDisapprove, canSuperUserTakeAction, canTakeRequestedAction, canViewNoteAttachment, canViewNoteAttachment, setDocumentRequestAuthorizationCache
-
Constructor Details
-
MaintenanceDocumentAuthorizerBase
public MaintenanceDocumentAuthorizerBase()
-
-
Method Details
-
canCreate
Description copied from interface:MaintenanceDocumentAuthorizerDetermines whether the user has the permission to create a newMaintenanceDocument- Specified by:
canCreatein interfaceMaintenanceDocumentAuthorizer- Parameters:
boClass-Classof theMaintenanceDocumentuser-Personinstance of the current user- Returns:
trueif the user is allowed to create a newMaintenanceDocumentfor the boClass,falseotherwise- See Also:
-
canMaintain
Description copied from interface:MaintenanceDocumentAuthorizerDetermines whether the user has the permission to maintain aMaintenanceDocument- Specified by:
canMaintainin interfaceMaintenanceDocumentAuthorizer- Parameters:
dataObject-Objectof theMaintenanceDocumentuser-Personinstance of the current user- Returns:
trueif the user is allowed to maintain the dataObject,falseotherwise- See Also:
-
canCreateOrMaintain
Description copied from interface:MaintenanceDocumentAuthorizerDetermines whether the user has the permission to create or maintain aMaintenanceDocument- Specified by:
canCreateOrMaintainin interfaceMaintenanceDocumentAuthorizer- Parameters:
maintenanceDocument- theMaintenanceDocumentuser-Personinstance of the current user- Returns:
trueif the user is allowed to create or maintain theMaintenanceDocument,falseotherwise- See Also:
-
addRoleQualification
Adds the namespace and component to the role qualification attributes- Overrides:
addRoleQualificationin classDocumentAuthorizerBase- Parameters:
dataObject- - the primary data object (i.e. the main object instance behind the lookup result row or inquiry) or the documentattributes- - role qualifiers will be added to this map- See Also:
-
addPermissionDetails
Adds the namespace, component and maintenance actions to the permission details attributes- Overrides:
addPermissionDetailsin classDocumentAuthorizerBase- Parameters:
dataObject- - the primary data object (i.e. the main object instance behind the lookup result row or inquiry) or the documentattributes- - permission details will be added to this map- See Also:
-
getDocumentDictionaryService
-
setDocumentDictionaryService
-