Skip to content

Commit

Permalink
JBPM-4646 - Case management - simplified use for case role assignments (
Browse files Browse the repository at this point in the history
  • Loading branch information
mswiderski authored and cristianonicolai committed Oct 20, 2016
1 parent f48f1d7 commit 9945e43
Showing 1 changed file with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,20 @@ public interface CaseAssignment {
*/
void assign(String roleName, OrganizationalEntity entity);

/**
* Assigns given user to given role
* @param roleName name of the role user should be assigned to
* @param userId user to be assigned
*/
void assignUser(String roleName, String userId);

/**
* Assigns given group to given role
* @param roleName name of the role group should be assigned to
* @param groupId group to be assigned
*/
void assignGroup(String roleName, String groupId);

/**
* Removes given entity from the role
* @param roleName name of the role that given entity should be removed from
Expand All @@ -43,7 +57,7 @@ public interface CaseAssignment {
/**
* Returns assigned entities for given role
* @param roleName name of the role assignment should be returned for
* @return
* @return returns all assignments for the given role
*/
Collection<OrganizationalEntity> getAssignments(String roleName);
}

0 comments on commit 9945e43

Please sign in to comment.