Class TaskUtil
java.lang.Object
com.ssgllc.fish.service.util.published.TaskUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGroupIdentityLink(String taskId, String roleName, String type) Adds a group identity link of the given type to a task, making it accessible to users holding the role.
-
Constructor Details
-
TaskUtil
public TaskUtil()
-
-
Method Details
-
addGroupIdentityLink
Adds a group identity link of the given type to a task, making it accessible to users holding the role. Works for open and completed tasks (a completed task — e.g. one copied to another process by a case merge — gets the historic link only). Does nothing if the task already has the link.
Groovy example:
taskUtil.addGroupIdentityLink(taskId, "ROLE_ICP", "candidate")Returns: nothing; the task becomes visible to users with ROLE_ICP
- Parameters:
taskId- the id of the task (open or completed)roleName- the role granting access (e.g."ROLE_ICP")type- the identity link type:"candidate"for candidate-group access,"viewable"for view-only access
-