public interface CaseAssignment
Modifier and Type | Method and Description |
---|---|
void |
assign(String roleName,
OrganizationalEntity entity)
Assigns given entity (either user or group) to given role
|
void |
assignGroup(String roleName,
String groupId)
Assigns given group to given role
|
void |
assignUser(String roleName,
String userId)
Assigns given user to given role
|
Collection<OrganizationalEntity> |
getAssignments(String roleName)
Returns assigned entities for given role
|
Collection<String> |
getRoles()
Returns defined roles
|
void |
remove(String roleName,
OrganizationalEntity entity)
Removes given entity from the role
|
void assign(String roleName, OrganizationalEntity entity)
roleName
- name of the role entity should be assigned toentity
- user or group to be assignedvoid assignUser(String roleName, String userId)
roleName
- name of the role user should be assigned touserId
- user to be assignedvoid assignGroup(String roleName, String groupId)
roleName
- name of the role group should be assigned togroupId
- group to be assignedvoid remove(String roleName, OrganizationalEntity entity)
roleName
- name of the role that given entity should be removed fromentity
- use or group to be removedCollection<OrganizationalEntity> getAssignments(String roleName)
roleName
- name of the role assignment should be returned forCollection<String> getRoles()
Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.