public interface RoleTypeService extends KimTypeService
KimTypeService with specific methods for Roles.| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
convertQualificationForMemberRoles(String namespaceCode,
String roleName,
String memberRoleNamespaceCode,
String memberRoleName,
Map<String,String> qualification)
Takes the passed in qualifications and converts them, if necessary, for any downstream roles which may be present.
|
boolean |
doesRoleQualifierMatchQualification(Map<String,String> qualification,
Map<String,String> roleQualifier)
Gets whether a role assignment with the given qualifier is applicable for the given qualification.
|
boolean |
dynamicRoleMembership(String namespaceCode,
String roleName)
Determines if the role specified by the given namespace and role name has a dynamic role membership.
|
List<RoleMembership> |
getMatchingRoleMemberships(Map<String,String> qualification,
List<RoleMembership> roleMemberships)
Gets whether a role membership with the given details is applicable for the given qualification.
|
List<String> |
getQualifiersForExactMatch()
Roles whose memberships may be matched exactly by qualifiers,
this method returns the list of such qualifier names.
|
List<RoleMembership> |
getRoleMembersFromDerivedRole(String namespaceCode,
String roleName,
Map<String,String> qualification) |
boolean |
hasDerivedRole(String principalId,
List<String> groupIds,
String namespaceCode,
String roleName,
Map<String,String> qualification)
This method can be used to check if the given principal has this derived role.
|
boolean |
isDerivedRoleType()
Returns true if this role type represents a "derived" role type.
|
boolean |
shouldValidateQualifiersForMemberType(org.kuali.rice.core.api.membership.MemberType memberType)
Returns whether a membertype should have its qualifiers validated
|
List<RoleMembership> |
sortRoleMembers(List<RoleMembership> roleMembers)
For roles where the order of members returned may be meaningful,
this method provides a hook to sort the results before they
are returned from getRoleMembers on the RoleService.
|
getAttributeDefinitions, getWorkflowDocumentTypeName, getWorkflowRoutingAttributes, validateAttributes, validateAttributesAgainstExisting, validateUniqueAttributes, validateUnmodifiableAttributesboolean doesRoleQualifierMatchQualification(Map<String,String> qualification, Map<String,String> roleQualifier) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
qualification - the qualification. cannot be null.roleQualifier - the role qualifier. cannot be null.org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if the qualification or roleQualifier is nullList<RoleMembership> getMatchingRoleMemberships(Map<String,String> qualification, List<RoleMembership> roleMemberships) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
qualification - the qualification. cannot be null.roleMemberships - the list of roleMemberships to check for matches. cannot be null.org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if the qualification or roleMemberships is null.boolean isDerivedRoleType()
boolean hasDerivedRole(String principalId, List<String> groupIds, String namespaceCode, String roleName, Map<String,String> qualification) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
principalId - the principalId. cannot be null or blank.groupIds - the groupIds the principal is a member of. cannot be null.namespaceCode - the namespace code the role is in. cannot be blank or null.roleName - the name of the role. cannot be blank or null.qualification - the qualification. cannot be null.org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if the principalId, namespaceCode, roleName is blank or null.org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if the groupIds, qualification is null.List<RoleMembership> getRoleMembersFromDerivedRole(String namespaceCode, String roleName, Map<String,String> qualification) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
org.kuali.rice.core.api.exception.RiceIllegalArgumentExceptionList<RoleMembership> sortRoleMembers(List<RoleMembership> roleMembers) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
roleMemberships - the list of roleMemberships to check for matches. cannot be null.org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if the roleMemberships is null.Map<String,String> convertQualificationForMemberRoles(String namespaceCode, String roleName, String memberRoleNamespaceCode, String memberRoleName, Map<String,String> qualification) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
namespaceCode - the namespace code the role is in. cannot be blank or null.roleName - the name of the role. cannot be blank or null.memberRoleNamespaceCode - the namespace code the member role is in. cannot be blank or null.memberRoleName - the name of the member role. cannot be blank or null.qualification - the qualification. cannot be null.org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if the namespaceCode, roleName, memberRoleNamespaceCode, memberRoleName is blank or null.org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if the qualification is null.boolean dynamicRoleMembership(String namespaceCode, String roleName) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
namespaceCode - the namespace code of the role. cannot be null or blankroleName - the name of the role. cannot be null or blank.IllegalArgumentException - if the namespaceCode, roleName is blank or null.org.kuali.rice.core.api.exception.RiceIllegalArgumentExceptionList<String> getQualifiersForExactMatch()
boolean shouldValidateQualifiersForMemberType(org.kuali.rice.core.api.membership.MemberType memberType)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.