Class RouteLogDerivedRoleTypeServiceImpl

java.lang.Object
org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase
org.kuali.rice.kns.kim.role.RoleTypeServiceBase
org.kuali.rice.kns.kim.role.DerivedRoleTypeServiceBase
org.kuali.rice.kew.role.service.impl.RouteLogDerivedRoleTypeServiceImpl
All Implemented Interfaces:
org.kuali.rice.kim.framework.common.delegate.DelegationTypeService, org.kuali.rice.kim.framework.role.RoleTypeService, org.kuali.rice.kim.framework.type.KimTypeService

public class RouteLogDerivedRoleTypeServiceImpl extends org.kuali.rice.kns.kim.role.DerivedRoleTypeServiceBase implements org.kuali.rice.kim.framework.role.RoleTypeService, org.kuali.rice.kim.framework.common.delegate.DelegationTypeService
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase

    org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase.KimTypeAttributeException, org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase.KimTypeAttributeValidationException
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final String
     

    Fields inherited from class org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase

    COMMA_SEPARATOR
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    dynamicRoleMembership(String namespaceCode, String roleName)
    Determines if the role specified by the given namespace and role name has a dynamic role membership.
    protected List<String>
     
    List<org.kuali.rice.kim.api.role.RoleMembership>
    getRoleMembersFromDerivedRole(String namespaceCode, String roleName, Map<String,String> qualification)
    - qualifier is document number - the roles that will be of this type are KR-WKFLW Initiator and KR-WKFLW Initiator or Reviewer, KR-WKFLW Router - only the initiator of the document in question gets the KR-WKFLW Initiator role - user who routed the document according to the route log should get the KR-WKFLW Router role - users who are authorized by the route log, i.e. initiators, people who have taken action, people with a pending action request, or people who will receive an action request for the document in question get the KR-WKFLW Initiator or Reviewer Role
    boolean
    hasDerivedRole(String principalId, List<String> groupIds, String namespaceCode, String roleName, Map<String,String> qualification)
     
    protected boolean
     

    Methods inherited from class org.kuali.rice.kns.kim.role.DerivedRoleTypeServiceBase

    isDerivedRoleType

    Methods inherited from class org.kuali.rice.kns.kim.role.RoleTypeServiceBase

    convertQualificationForMemberRoles, convertQualificationForMemberRolesAndMemberAttributes, doesDelegationQualifierMatchQualification, doesRoleQualifierMatchQualification, getMatchingRoleMemberships, getQualifiersForExactMatch, roleMemberRemoved, shouldValidateQualifiersForMemberType, sortRoleMembers

    Methods inherited from class org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase

    areAttributesEqual, extractErrorsFromGlobalVariablesErrorMap, getAttributeDefinitions, getAttributeFormatter, getAttributeMaxValue, getAttributeMinValue, getAttributeValidatingExpression, getAttributeValue, getBusinessObjectService, getClosestParentDocumentTypeName, getDataDictionaryAttributeDefinition, getDataDictionaryService, getDictionaryValidationService, getDocumentTypeService, getNonDataDictionaryAttributeDefinition, getTypeInfoService, getUniqueAttributes, getWorkflowDocumentTypeName, getWorkflowRoutingAttributes, performMatch, translateInputAttributes, validateAttributeFormat, validateAttributeRequired, validateAttributes, validateAttributesAgainstExisting, validateDataDictionaryAttribute, validateDataDictionaryAttribute, validateNonDataDictionaryAttribute, validatePrimitiveFromDescriptor, validateReferencesExistAndActive, validateRequiredAttributesAgainstReceived, validateUniqueAttributes, validateUnmodifiableAttributes

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.kuali.rice.kim.framework.common.delegate.DelegationTypeService

    doesDelegationQualifierMatchQualification

    Methods inherited from interface org.kuali.rice.kim.framework.type.KimTypeService

    getAttributeDefinitions, getWorkflowDocumentTypeName, getWorkflowRoutingAttributes, validateAttributes, validateAttributesAgainstExisting, validateUniqueAttributes, validateUnmodifiableAttributes

    Methods inherited from interface org.kuali.rice.kim.framework.role.RoleTypeService

    convertQualificationForMemberRoles, convertQualificationForMemberRolesAndMemberAttributes, doesRoleQualifierMatchQualification, getMatchingRoleMemberships, getQualifiersForExactMatch, isDerivedRoleType, roleMemberRemoved, shouldValidateQualifiersForMemberType, sortRoleMembers
  • Field Details

  • Constructor Details

    • RouteLogDerivedRoleTypeServiceImpl

      public RouteLogDerivedRoleTypeServiceImpl()
  • Method Details

    • isCheckRequiredAttributes

      protected boolean isCheckRequiredAttributes()
      Overrides:
      isCheckRequiredAttributes in class org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase
    • getRequiredAttributes

      protected List<String> getRequiredAttributes()
      Overrides:
      getRequiredAttributes in class org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase
    • getRoleMembersFromDerivedRole

      public List<org.kuali.rice.kim.api.role.RoleMembership> getRoleMembersFromDerivedRole(String namespaceCode, String roleName, Map<String,String> qualification)
      - qualifier is document number - the roles that will be of this type are KR-WKFLW Initiator and KR-WKFLW Initiator or Reviewer, KR-WKFLW Router - only the initiator of the document in question gets the KR-WKFLW Initiator role - user who routed the document according to the route log should get the KR-WKFLW Router role - users who are authorized by the route log, i.e. initiators, people who have taken action, people with a pending action request, or people who will receive an action request for the document in question get the KR-WKFLW Initiator or Reviewer Role
      Specified by:
      getRoleMembersFromDerivedRole in interface org.kuali.rice.kim.framework.role.RoleTypeService
      Overrides:
      getRoleMembersFromDerivedRole in class org.kuali.rice.kns.kim.role.DerivedRoleTypeServiceBase
    • hasDerivedRole

      public boolean hasDerivedRole(String principalId, List<String> groupIds, String namespaceCode, String roleName, Map<String,String> qualification)
      Specified by:
      hasDerivedRole in interface org.kuali.rice.kim.framework.role.RoleTypeService
      Overrides:
      hasDerivedRole in class org.kuali.rice.kns.kim.role.RoleTypeServiceBase
    • dynamicRoleMembership

      public boolean dynamicRoleMembership(String namespaceCode, String roleName)
      Determines if the role specified by the given namespace and role name has a dynamic role membership. Returns true, as the Route Log changes often enough that role membership is highly volatile
      Specified by:
      dynamicRoleMembership in interface org.kuali.rice.kim.framework.role.RoleTypeService
      Overrides:
      dynamicRoleMembership in class org.kuali.rice.kns.kim.role.RoleTypeServiceBase
      See Also:
      • dynamicRoleMembership(java.lang.String, java.lang.String)