Class User

All Implemented Interfaces:
HasUuid, Serializable, Comparable<PerunBean>
Direct Known Subclasses:
Candidate, CandidateSync, RichUser

public class User extends Auditable implements Comparable<PerunBean>, HasUuid
Represents user of some source.
Author:
Michal Prochazka, Slavek Licehammer, Martin Kuba
See Also:
  • Field Details

    • firstName

      protected String firstName
    • lastName

      protected String lastName
    • middleName

      protected String middleName
    • titleBefore

      protected String titleBefore
    • titleAfter

      protected String titleAfter
  • Constructor Details

  • Method Details

    • compareTo

      public int compareTo(PerunBean perunBean)
      Compare this object with another perunBean.

      If the perunBean is User object, compare them by LastName, then FirstName and then Id

      Specified by:
      compareTo in interface Comparable<PerunBean>
      Overrides:
      compareTo in class PerunBean
      Parameters:
      perunBean - some perunBean object or User
      Returns:
      a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Auditable
    • getCommonName

      public String getCommonName()
    • getDisplayName

      public String getDisplayName()
    • getFirstName

      public String getFirstName()
    • setFirstName

      public void setFirstName(String firstName)
    • getLastName

      public String getLastName()
    • setLastName

      public void setLastName(String lastName)
    • getMajorSpecificType

      public SpecificUserType getMajorSpecificType()
    • getMiddleName

      public String getMiddleName()
    • setMiddleName

      public void setMiddleName(String middleName)
    • getTitleAfter

      public String getTitleAfter()
    • setTitleAfter

      public void setTitleAfter(String titleAfter)
    • getTitleBefore

      public String getTitleBefore()
    • setTitleBefore

      public void setTitleBefore(String titleBefore)
    • getUuid

      public UUID getUuid()
      Description copied from interface: HasUuid
      Get UUID.
      Specified by:
      getUuid in interface HasUuid
      Returns:
      UUID of the object
    • setUuid

      public void setUuid(UUID uuid)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Auditable
    • isServiceUser

      public boolean isServiceUser()
    • setServiceUser

      public void setServiceUser(boolean serviceUser)
    • isSpecificUser

      public boolean isSpecificUser()
    • isSponsoredUser

      public boolean isSponsoredUser()
    • setSponsoredUser

      public void setSponsoredUser(boolean sponsoredUser)
    • serializeToString

      public String serializeToString()
      Overrides:
      serializeToString in class Auditable
    • toString

      public String toString()
      Overrides:
      toString in class Auditable