Class User
java.lang.Object
edu.cnm.deepdive.teamassignments.model.entity.User
User Entity Class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Override .equals for User.Get the date user connected to serverGets the Date item was createdGets the display name of userGets a list of groupsgetId()
gets the id of the taskGets users oauth keyGets a list of GroupgetTasks()
Gets a list of taskint
hashCode()
Gets the hash code needed to verify uservoid
setConnected(Date connected)
Sets the Date user connectedvoid
setCreationDate(Date creationDate)
Sets the Date createdvoid
setDisplayName(String displayName)
Sets the dispaly name of uservoid
sets teh id of the taskvoid
setOauthKey(String oauthKey)
Sets the oauth key
-
Constructor Details
-
User
public User()
-
-
Method Details
-
getId
gets the id of the task- Returns:
- long id of the task
-
setId
sets teh id of the task- Parameters:
id
- of task in long
-
getConnected
Get the date user connected to server- Returns:
- date user connected to server
-
setConnected
Sets the Date user connected- Parameters:
connected
- is date user accessed server
-
getDisplayName
Gets the display name of user- Returns:
- display name of user
-
setDisplayName
Sets the dispaly name of user- Parameters:
displayName
- of user
-
getCreationDate
Gets the Date item was created- Returns:
- the creation date
-
setCreationDate
Sets the Date created- Parameters:
creationDate
- for created item
-
getOauthKey
Gets users oauth key- Returns:
- users ouath key
-
setOauthKey
Sets the oauth key- Parameters:
oauthKey
- of user
-
getGroups
Gets a list of groups- Returns:
- groups
-
getOwnedGroups
Gets a list of Group- Returns:
- owned groups
-
getTasks
Gets a list of task- Returns:
- list of tasks
-
hashCode
public int hashCode()Gets the hash code needed to verify user -
equals
Override .equals for User.
-