Package org.kie.api.runtime.process
Interface CaseAssignment
-
public interface CaseAssignment
Represents case assignment which usually means named role to individuals or groups.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
assign(java.lang.String roleName, OrganizationalEntity entity)
Assigns given entity (either user or group) to given rolevoid
assignGroup(java.lang.String roleName, java.lang.String groupId)
Assigns given group to given rolevoid
assignUser(java.lang.String roleName, java.lang.String userId)
Assigns given user to given rolejava.util.Collection<OrganizationalEntity>
getAssignments(java.lang.String roleName)
Returns assigned entities for given rolejava.util.Collection<java.lang.String>
getRoles()
Returns defined rolesvoid
remove(java.lang.String roleName, OrganizationalEntity entity)
Removes given entity from the role
-
-
-
Method Detail
-
assign
void assign(java.lang.String roleName, OrganizationalEntity entity)
Assigns given entity (either user or group) to given role- Parameters:
roleName
- name of the role entity should be assigned toentity
- user or group to be assigned
-
assignUser
void assignUser(java.lang.String roleName, java.lang.String userId)
Assigns given user to given role- Parameters:
roleName
- name of the role user should be assigned touserId
- user to be assigned
-
assignGroup
void assignGroup(java.lang.String roleName, java.lang.String groupId)
Assigns given group to given role- Parameters:
roleName
- name of the role group should be assigned togroupId
- group to be assigned
-
remove
void remove(java.lang.String roleName, OrganizationalEntity entity)
Removes given entity from the role- Parameters:
roleName
- name of the role that given entity should be removed fromentity
- use or group to be removed
-
getAssignments
java.util.Collection<OrganizationalEntity> getAssignments(java.lang.String roleName)
Returns assigned entities for given role- Parameters:
roleName
- name of the role assignment should be returned for- Returns:
- returns all assignments for the given role
-
getRoles
java.util.Collection<java.lang.String> getRoles()
Returns defined roles- Returns:
- returns all roles
-
-