Class Group

  • All Implemented Interfaces:

    public class Group
    extends PersistentObject
    implements Serializable
    This class represents groups.
    Groups have a type that qualifies the group usage as follows:
    • DEFAULT (0): Standard group of users
    • USER (1): Group of a user(one to one relationship), it is hidden and not editable using admin tools
    Michael Scholz, Marco Meschieri
    See Also:
    Serialized Form
    • Constructor Detail

      • Group

        public Group()
    • Method Detail

      • getType

        public int getType()
      • setType

        public void setType​(int type)
      • getUsers

        public Set<User> getUsers()
      • setUsers

        public void setUsers​(Set<User> users)
      • getName

        public String getName()
      • getDescription

        public String getDescription()
      • setName

        public void setName​(String name)
      • setDescription

        public void setDescription​(String description)
      • reset

        public void reset()
      • clearUsers

        public void clearUsers()
      • isUserGroup

        public boolean isUserGroup()
      • getUser

        public User getUser()
        If this is a user group, then it returns the user
        the user
      • isGuest

        public boolean isGuest()
        Check if this group is the guest or is the user's group of a guest user
        if this is the guest group or is the user's group of a guest user
      • isAdmin

        public boolean isAdmin()
      • getSource

        public String getSource()
      • setSource

        public void setSource​(String source)