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.
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>
      compareTo in class PerunBean
      perunBean - some perunBean object or User
      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)
      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
      UUID of the object
    • setUuid

      public void setUuid(UUID uuid)
    • hashCode

      public int hashCode()
      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()
      serializeToString in class Auditable
    • toString

      public String toString()
      toString in class Auditable