public class Role extends AbstractSCIMObject
attributeList, schemaList| Constructor and Description |
|---|
Role() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDisplayName()
Get the display name of the role.
|
List<String> |
getGroups()
Get the groups of the role.
|
List<String> |
getGroupsWithDisplayName()
Get the groups of the role with their display names.
|
List<String> |
getPermissions()
Get the permissions of SCIM role object.
|
List<String> |
getUsers()
Get the users of the role.
|
List<String> |
getUsersWithDisplayName()
Get the users of the role with their display names.
|
void |
replaceDisplayName(String displayName)
Deletes the current value of display name and rename it with the given value.
|
void |
setDisplayName(String displayName)
Set the display name of the role.
|
void |
setGroup(Group group)
Set a group to the role, where user will have three default attributes such as name, value and $ref.
|
void |
setPermissions(List<String> permissions)
Set the permissions for SCIM role object.
|
void |
setSchemas()
Set the schemas for SCIM role object.
|
void |
setSystemRole(boolean isSystemRole)
Set the systemRole attribute of the meta attribute.
|
void |
setUser(User user)
Set a user to the role, where user will have three default attributes such as name, value and $ref.
|
createMetaAttribute, deleteAttribute, deleteSubAttribute, deleteSubSubAttribute, deleteSubValuesSubAttribute, deleteValuesSubAttribute, getAttribute, getAttributeList, getCreatedDate, getLastModified, getMetaAttribute, getResource, getSchemaList, isAttributeExist, isMetaAttributeExist, isSchemaExists, setAttribute, setAttribute, setCreatedDate, setCreatedInstant, setExternalId, setId, setLastModified, setLastModifiedInstant, setLocation, setResourceType, setSchema, toStringaddMultivaluedComplexAtribute, attributeMetaEquals, attributesEquals, complexAttributeEquals, equals, getComplexAttribute, getCreatedDateTime, getCreatedInstant, getCreatedLong, getExternalId, getId, getLastModifiedDateTime, getLastModifiedInstant, getLastModifiedLong, getLocation, getMultiValuedAttribute, getMultivaluedComplexType, getOrCrateComplexAttribute, getResourceType, getSetSubAttributeConsumer, getSimpleAttribute, getSimpleAttribute, getSimpleAttributeValue, hashCode, isBlank, isNotBlank, multiValuedAttributeEquals, replaceCreated, replaceCreated, replaceCreated, replaceExternalId, replaceId, replaceLastModified, replaceLastModified, replaceLastModified, replaceLocation, replaceResourceType, replaceSimpleAttribute, simpleAttributeEquals, stripToNullpublic String getDisplayName()
public void setDisplayName(String displayName) throws CharonException, BadRequestException
displayName - Display name.CharonException - CharonException.BadRequestException - BadRequestException.public void replaceDisplayName(String displayName)
displayName - New display name.public List<String> getUsersWithDisplayName()
public void setUser(User user) throws BadRequestException, CharonException
user - User object.BadRequestException - BadRequestException.CharonException - CharonException.public List<String> getGroupsWithDisplayName()
public void setGroup(Group group) throws BadRequestException, CharonException
group - Group object.BadRequestException - BadRequestException.CharonException - CharonException.public void setSchemas()
public void setPermissions(List<String> permissions)
public void setSystemRole(boolean isSystemRole)
throws CharonException,
BadRequestException
isSystemRole - Whether this is a read only system role.CharonException - CharonException.BadRequestException - BadRequestException.Copyright © 2021 WSO2. All rights reserved.