Package org.imixs.workflow.engine
Class UserGroupEvent
- java.lang.Object
-
- org.imixs.workflow.engine.UserGroupEvent
-
public class UserGroupEvent extends Object
The UserGroupEvent provides a CDI observer pattern. The UserGroupEvent is fired by the DocumentService EJB. An event Observer can react on this event to extend the current user group list. The user group list is used to grant read and write access on a document entity.- Version:
- 1.1
- Author:
- Ralph Soika
- See Also:
DocumentService
-
-
Constructor Summary
Constructors Constructor Description UserGroupEvent(String userId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
getGroups()
Returns the current list of groupsString
getUserId()
void
reset()
This method empties the current group listvoid
setGroups(List<String> groups)
This method adds a new list of groups to the current group list.void
setUserId(String userId)
-
-
-
Constructor Detail
-
UserGroupEvent
public UserGroupEvent(String userId)
-
-
Method Detail
-
getUserId
public String getUserId()
-
setUserId
public void setUserId(String userId)
-
setGroups
public void setGroups(List<String> groups)
This method adds a new list of groups to the current group list. Multiple observers can add different groups independently from each other. Duplicates are removed.To reset the current group list a observer can call the method reset.
- Parameters:
groups
-
-
reset
public void reset()
This method empties the current group list
-
-