Class RoleTypeServiceBase

java.lang.Object
org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase
org.kuali.rice.kns.kim.role.RoleTypeServiceBase
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
Direct Known Subclasses:
DerivedRoleTypeServiceBase

@Deprecated public class RoleTypeServiceBase extends DataDictionaryTypeServiceBase implements org.kuali.rice.kim.framework.role.RoleTypeService, org.kuali.rice.kim.framework.common.delegate.DelegationTypeService
Deprecated.
A krad integrated type service base class will be provided in the future.
  • Constructor Details

    • RoleTypeServiceBase

      public RoleTypeServiceBase()
      Deprecated.
  • Method Details

    • doesRoleQualifierMatchQualification

      public boolean doesRoleQualifierMatchQualification(Map<String,String> qualification, Map<String,String> roleQualifier)
      Deprecated.
      Performs a simple check that the qualifier on the role matches the qualification. Extra qualification attributes are ignored.
      Specified by:
      doesRoleQualifierMatchQualification in interface org.kuali.rice.kim.framework.role.RoleTypeService
    • getMatchingRoleMemberships

      public List<RoleMembership> getMatchingRoleMemberships(Map<String,String> qualification, List<RoleMembership> roleMemberList)
      Deprecated.
      Specified by:
      getMatchingRoleMemberships in interface org.kuali.rice.kim.framework.role.RoleTypeService
    • getRoleMembersFromDerivedRole

      public List<RoleMembership> getRoleMembersFromDerivedRole(String namespaceCode, String roleName, Map<String,String> qualification)
      Deprecated.
      Return an empty list since this method should not be called by the role service for this service type. Subclasses which are application role types should override this method.
      Specified by:
      getRoleMembersFromDerivedRole in interface org.kuali.rice.kim.framework.role.RoleTypeService
    • hasDerivedRole

      public boolean hasDerivedRole(String principalId, List<String> groupIds, String namespaceCode, String roleName, Map<String,String> qualification)
      Deprecated.
      This simple initial implementation just calls
      invalid reference
      #getRoleMembersFromApplicationRole(String, String, Map<String, String>)
      and checks the results.
      Specified by:
      hasDerivedRole in interface org.kuali.rice.kim.framework.role.RoleTypeService
    • isDerivedRoleType

      public boolean isDerivedRoleType()
      Deprecated.
      Default to not being a derived role type. Always returns false.
      Specified by:
      isDerivedRoleType in interface org.kuali.rice.kim.framework.role.RoleTypeService
      See Also:
      • RoleTypeService.isDerivedRoleType()
    • convertQualificationForMemberRoles

      public Map<String,String> convertQualificationForMemberRoles(String namespaceCode, String roleName, String memberRoleNamespaceCode, String memberRoleName, Map<String,String> qualification)
      Deprecated.
      This base implementation simply returns the passed in Attributes.
      Specified by:
      convertQualificationForMemberRoles in interface org.kuali.rice.kim.framework.role.RoleTypeService
      See Also:
      • RoleTypeService.convertQualificationForMemberRoles(String, String, String, String, Map<String, String>)
    • convertQualificationForMemberRolesAndMemberAttributes

      public Map<String,String> convertQualificationForMemberRolesAndMemberAttributes(String namespaceCode, String roleName, String memberRoleNamespaceCode, String memberRoleName, Map<String,String> qualification, Map<String,String> memberQualification) throws RiceIllegalArgumentException
      Deprecated.
      Specified by:
      convertQualificationForMemberRolesAndMemberAttributes in interface org.kuali.rice.kim.framework.role.RoleTypeService
      Throws:
      RiceIllegalArgumentException
    • doesDelegationQualifierMatchQualification

      public boolean doesDelegationQualifierMatchQualification(Map<String,String> qualification, Map<String,String> roleQualifier)
      Deprecated.
      Performs a simple check that the qualifier on the delegation matches the qualification. Extra qualification attributes are ignored.
      Specified by:
      doesDelegationQualifierMatchQualification in interface org.kuali.rice.kim.framework.common.delegate.DelegationTypeService
    • dynamicRoleMembership

      public boolean dynamicRoleMembership(String namespaceCode, String roleName)
      Deprecated.
      Returns false as a default
      Specified by:
      dynamicRoleMembership in interface org.kuali.rice.kim.framework.role.RoleTypeService
      See Also:
      • RoleTypeService.dynamicRoleMembership(java.lang.String, java.lang.String)
    • getQualifiersForExactMatch

      public List<String> getQualifiersForExactMatch()
      Deprecated.
      Specified by:
      getQualifiersForExactMatch in interface org.kuali.rice.kim.framework.role.RoleTypeService
    • sortRoleMembers

      public List<RoleMembership> sortRoleMembers(List<RoleMembership> roleMembers) throws RiceIllegalArgumentException
      Deprecated.
      Base implementation: no sorting. Just returns the input list.
      Specified by:
      sortRoleMembers in interface org.kuali.rice.kim.framework.role.RoleTypeService
      Throws:
      RiceIllegalArgumentException
    • shouldValidateQualifiersForMemberType

      public boolean shouldValidateQualifiersForMemberType(MemberType memberType)
      Deprecated.
      Specified by:
      shouldValidateQualifiersForMemberType in interface org.kuali.rice.kim.framework.role.RoleTypeService
    • roleMemberRemoved

      public void roleMemberRemoved(RoleMember member)
      Deprecated.
      Specified by:
      roleMemberRemoved in interface org.kuali.rice.kim.framework.role.RoleTypeService