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)
Deprecated.
use convertQualificationForMemberRolesAndMemberAttributes
|
Map<String,String> |
convertQualificationForMemberRolesAndMemberAttributes(String namespaceCode,
String roleName,
String memberRoleNamespaceCode,
String memberRoleName,
Map<String,String> qualification,
Map<String,String> memberQualification)
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.
|
void |
roleMemberRemoved(RoleMember member) |
boolean |
shouldValidateQualifiersForMemberType(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 RiceIllegalArgumentException
qualification - the qualification. cannot be null.roleQualifier - the role qualifier. cannot be null.RiceIllegalArgumentException - if the qualification or roleQualifier is nullList<RoleMembership> getMatchingRoleMemberships(Map<String,String> qualification, List<RoleMembership> roleMemberships) throws RiceIllegalArgumentException
qualification - the qualification. cannot be null.roleMemberships - the list of roleMemberships to check for matches. cannot be null.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 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.RiceIllegalArgumentException - if the principalId, namespaceCode, roleName is blank or null.RiceIllegalArgumentException - if the groupIds, qualification is null.List<RoleMembership> getRoleMembersFromDerivedRole(String namespaceCode, String roleName, Map<String,String> qualification) throws RiceIllegalArgumentException
RiceIllegalArgumentExceptionList<RoleMembership> sortRoleMembers(List<RoleMembership> roleMembers) throws RiceIllegalArgumentException
roleMemberships - the list of roleMemberships to check for matches. cannot be null.RiceIllegalArgumentException - if the roleMemberships is null.@Deprecated Map<String,String> convertQualificationForMemberRoles(String namespaceCode, String roleName, String memberRoleNamespaceCode, String memberRoleName, Map<String,String> qualification) throws 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.RiceIllegalArgumentException - if the namespaceCode, roleName, memberRoleNamespaceCode, memberRoleName is blank or null.RiceIllegalArgumentException - if the qualification is null.Map<String,String> convertQualificationForMemberRolesAndMemberAttributes(String namespaceCode, String roleName, String memberRoleNamespaceCode, String memberRoleName, Map<String,String> qualification, Map<String,String> memberQualification) throws 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.memberQualification - the attributes defined for the memberRoleRiceIllegalArgumentException - if the namespaceCode, roleName, memberRoleNamespaceCode, memberRoleName is blank or null.RiceIllegalArgumentException - if the qualification is null.boolean dynamicRoleMembership(String namespaceCode, String roleName) throws 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.RiceIllegalArgumentExceptionList<String> getQualifiersForExactMatch()
boolean shouldValidateQualifiersForMemberType(MemberType memberType)
void roleMemberRemoved(RoleMember member)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.