Class Group
- java.lang.Object
-
- edu.cnm.deepdive.teamassignmentsandroid.model.pojo.Group
-
public class Group extends Object
Created fields for Group with getters and setters.
-
-
Constructor Summary
Constructors Constructor Description Group()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
getCreationDate()
gets the Date the user created a grouplong
getId()
gets the id of group using a LongString
getName()
Gets the name of the groupUser
getOwner()
gets the user/ owner of the groupList<Task>
getTasks()
Gets a list of task for a groupSet<User>
getUsers()
Sets the user/owner of a groupboolean
isCurrentUserOwner()
void
setCreationDate(Date creationDate)
Sets the Date group was createdvoid
setCurrentUserOwner(boolean currentUserOwner)
void
setName(String name)
Sets name of the groupvoid
setOwner(User owner)
sets the owner of the groupvoid
setTasks(List<Task> tasks)
Sets list of tasks to the groupvoid
setUsers(Set<User> users)
sets the user of the groupeString
toString()
Names the 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
-
setTasks
public void setTasks(List<Task> tasks)
Sets list of tasks to the group- Parameters:
tasks
- of list
-
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)
-
-