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.
    Version:
    1.1
    Author:
    Ralph Soika
    See Also:
    DocumentService
    • 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 -
      • getGroups

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

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