Class Group


  • public class Group
    extends Object
    Created fields for Group with getters and setters.
    • Constructor Detail

      • Group

        public Group()
    • Method Detail

      • getName

        public String getName()
        Gets the name of the group
        Returns:
        name of group
      • getId

        public long getId()
        gets the id of group using a Long
        Returns:
        id of group
      • setName

        public void setName​(String name)
        Sets name of the group
        Parameters:
        name - of group
      • getOwner

        public User getOwner()
        gets the user/ owner of the group
        Returns:
        the owner of the group
      • setOwner

        public void setOwner​(User owner)
        sets the owner of the group
        Parameters:
        owner - is authenticated as user
      • getCreationDate

        public Date getCreationDate()
        gets the Date the user created a group
        Returns:
        Date group created
      • setCreationDate

        public void setCreationDate​(Date creationDate)
        Sets the Date group was created
        Parameters:
        creationDate - of group
      • getTasks

        public List<Task> getTasks()
        Gets a list of task for a group
        Returns:
        list of tasks
      • setTasks

        public void setTasks​(List<Task> tasks)
        Sets list of tasks to the group
        Parameters:
        tasks - of list
      • getUsers

        public Set<User> getUsers()
        Sets the user/owner of a group
        Returns:
        user of group
      • setUsers

        public void setUsers​(Set<User> users)
        sets the user of the groupe
        Parameters:
        users - of group
      • isCurrentUserOwner

        public boolean isCurrentUserOwner()
      • setCurrentUserOwner

        public void setCurrentUserOwner​(boolean currentUserOwner)