Class 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.
    Ralph Soika
    See Also:
    • 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.

        groups -
      • getGroups

        public Set<String> getGroups()
        Returns the current list of groups
      • reset

        public void reset()
        This method empties the current group list