java.lang.Object
edu.cnm.deepdive.teamassignments.model.entity.User

@Entity public class User extends Object
User Entity Class.
  • Constructor Details

    • User

      public User()
  • Method Details

    • getId

      public Long getId()
      gets the id of the task
      Returns:
      long id of the task
    • setId

      public void setId(Long id)
      sets teh id of the task
      Parameters:
      id - of task in long
    • getConnected

      @NonNull public Date getConnected()
      Get the date user connected to server
      Returns:
      date user connected to server
    • setConnected

      public void setConnected(@NonNull Date connected)
      Sets the Date user connected
      Parameters:
      connected - is date user accessed server
    • getDisplayName

      public String getDisplayName()
      Gets the display name of user
      Returns:
      display name of user
    • setDisplayName

      public void setDisplayName(String displayName)
      Sets the dispaly name of user
      Parameters:
      displayName - of user
    • getCreationDate

      public Date getCreationDate()
      Gets the Date item was created
      Returns:
      the creation date
    • setCreationDate

      public void setCreationDate(Date creationDate)
      Sets the Date created
      Parameters:
      creationDate - for created item
    • getOauthKey

      @NonNull public String getOauthKey()
      Gets users oauth key
      Returns:
      users ouath key
    • setOauthKey

      public void setOauthKey(@NonNull String oauthKey)
      Sets the oauth key
      Parameters:
      oauthKey - of user
    • getGroups

      @NonNull public List<Group> getGroups()
      Gets a list of groups
      Returns:
      groups
    • getOwnedGroups

      @NonNull public List<Group> getOwnedGroups()
      Gets a list of Group
      Returns:
      owned groups
    • getTasks

      @NonNull public List<Task> getTasks()
      Gets a list of task
      Returns:
      list of tasks
    • hashCode

      public int hashCode()
      Gets the hash code needed to verify user
      Overrides:
      hashCode in class Object
      Returns:
      hash code id
    • equals

      public boolean equals(Object obj)
      Override .equals for User.
      Overrides:
      equals in class Object
      Parameters:
      obj - root of class
      Returns:
      the object if user matches stored id