Class DocumentTypePermissionServiceImpl
java.lang.Object
org.kuali.rice.kew.doctype.service.impl.DocumentActionsPermissionBase
org.kuali.rice.kew.doctype.service.impl.DocumentTypePermissionServiceImpl
- All Implemented Interfaces:
DocumentTypePermissionService
- Direct Known Subclasses:
DocumentTypePermissionServiceAuthorizerImpl
public class DocumentTypePermissionServiceImpl
extends DocumentActionsPermissionBase
implements DocumentTypePermissionService
Implementation of the DocumentTypePermissionService.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanAddRouteLogMessage(String principalId, DocumentRouteHeaderValue document) Determines if the given principal can add route log messages for documents of the given DocumentRouteHeaderValue.booleancanAdministerRouting(String principalId, DocumentType documentType) Determines if the given principal can administer routing for the given DocumentType.booleancanGroupReceiveAdHocRequest(String groupId, DocumentRouteHeaderValue document, String actionRequestType) Determines if the given group is authorized to receive ad hoc requests of the specified action request code for the given DocumentType and action request type.booleancanReceiveAdHocRequest(String principalId, DocumentRouteHeaderValue document, String actionRequestType) Determines if the given principal is authorized to receive ad hoc requests for the given DocumentType and action request type.booleancanReturnToPreviousRouteNode(String principalId, DocumentRouteHeaderValue document) Determines if the given principal has the permission to return document to previous route node.booleancanSuperUserApproveDocument(String principalId, DocumentType documentType, List<RouteNodeInstance> routeNodeInstances, String routeStatusCode) Determines if the given principal can super user approve a document for a given DocumentType, route node, and routeStatusCodebooleancanSuperUserApproveSingleActionRequest(String principalId, DocumentType documentType, List<RouteNodeInstance> routeNodeInstances, String routeStatusCode) Determines if the given principal can super user approve a single action request for a given DocumentType, route node, and routeStatusCodebooleancanSuperUserDisapproveDocument(String principalId, DocumentType documentType, List<RouteNodeInstance> routeNodeInstances, String routeStatusCode) Determines if the given principal can super user disapprove a document for a given DocumentType, route node, and routeStatusCodeprotected org.kuali.rice.kim.api.group.GroupServiceprotected Collection<String> toRouteNodeNames(Collection<RouteNodeInstance> routeNodeInstances) Converts list of RouteNodeInstance objects to a list of the route node namesMethods inherited from class org.kuali.rice.kew.doctype.service.impl.DocumentActionsPermissionBase
buildDocumentRoleQualifiers, buildDocumentTypePermissionDetails, buildDocumentTypePermissionDetailsForNodes, canBlanketApprove, canCancel, canInitiate, canRecall, canRoute, canSave, canSuperUserApproveDocument, canSuperUserApproveSingleActionRequest, canSuperUserDisapproveDocument, getPermissionService, useKimPermission, validateDocument, validateDocumentStatus, validateDocumentType, validatePrincipalId, validateRouteNodeNamesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kuali.rice.kew.doctype.service.DocumentTypePermissionService
canBlanketApprove, canCancel, canInitiate, canRecall, canRoute, canSave
-
Constructor Details
-
DocumentTypePermissionServiceImpl
public DocumentTypePermissionServiceImpl()
-
-
Method Details
-
canReceiveAdHocRequest
public boolean canReceiveAdHocRequest(String principalId, DocumentRouteHeaderValue document, String actionRequestType) Description copied from interface:DocumentTypePermissionServiceDetermines if the given principal is authorized to receive ad hoc requests for the given DocumentType and action request type.- Specified by:
canReceiveAdHocRequestin interfaceDocumentTypePermissionService
-
canGroupReceiveAdHocRequest
public boolean canGroupReceiveAdHocRequest(String groupId, DocumentRouteHeaderValue document, String actionRequestType) Description copied from interface:DocumentTypePermissionServiceDetermines if the given group is authorized to receive ad hoc requests of the specified action request code for the given DocumentType and action request type. A group is considered to be authorized to receive an ad hoc request if all of it's members can receive the request.- Specified by:
canGroupReceiveAdHocRequestin interfaceDocumentTypePermissionService
-
canAdministerRouting
Description copied from interface:DocumentTypePermissionServiceDetermines if the given principal can administer routing for the given DocumentType. Having this permission gives them "super user" capabilities.- Specified by:
canAdministerRoutingin interfaceDocumentTypePermissionService
-
canSuperUserApproveSingleActionRequest
public boolean canSuperUserApproveSingleActionRequest(String principalId, DocumentType documentType, List<RouteNodeInstance> routeNodeInstances, String routeStatusCode) Description copied from interface:DocumentTypePermissionServiceDetermines if the given principal can super user approve a single action request for a given DocumentType, route node, and routeStatusCode- Specified by:
canSuperUserApproveSingleActionRequestin interfaceDocumentTypePermissionService
-
canSuperUserApproveDocument
public boolean canSuperUserApproveDocument(String principalId, DocumentType documentType, List<RouteNodeInstance> routeNodeInstances, String routeStatusCode) Description copied from interface:DocumentTypePermissionServiceDetermines if the given principal can super user approve a document for a given DocumentType, route node, and routeStatusCode- Specified by:
canSuperUserApproveDocumentin interfaceDocumentTypePermissionService
-
canSuperUserDisapproveDocument
public boolean canSuperUserDisapproveDocument(String principalId, DocumentType documentType, List<RouteNodeInstance> routeNodeInstances, String routeStatusCode) Description copied from interface:DocumentTypePermissionServiceDetermines if the given principal can super user disapprove a document for a given DocumentType, route node, and routeStatusCode- Specified by:
canSuperUserDisapproveDocumentin interfaceDocumentTypePermissionService
-
canAddRouteLogMessage
Description copied from interface:DocumentTypePermissionServiceDetermines if the given principal can add route log messages for documents of the given DocumentRouteHeaderValue. The permission check also considers the document status and initiator of the document.- Specified by:
canAddRouteLogMessagein interfaceDocumentTypePermissionService
-
canReturnToPreviousRouteNode
Description copied from interface:DocumentTypePermissionServiceDetermines if the given principal has the permission to return document to previous route node.- Specified by:
canReturnToPreviousRouteNodein interfaceDocumentTypePermissionService- Overrides:
canReturnToPreviousRouteNodein classDocumentActionsPermissionBase
-
toRouteNodeNames
Converts list of RouteNodeInstance objects to a list of the route node names- Parameters:
routeNodeInstances- the list RouteNodeInstance objects, may be null- Returns:
- non-null, possibly empty, Collection of routenode names
-
getGroupService
protected org.kuali.rice.kim.api.group.GroupService getGroupService()
-