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:
Serialized Form
  • 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

    • 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)
    • getFirstName

      public String getFirstName()
    • setFirstName

      public void setFirstName(String firstName)
    • getLastName

      public String getLastName()
    • setLastName

      public void setLastName(String lastName)
    • getMiddleName

      public String getMiddleName()
    • setMiddleName

      public void setMiddleName(String middleName)
    • getTitleBefore

      public String getTitleBefore()
    • setTitleBefore

      public void setTitleBefore(String titleBefore)
    • getTitleAfter

      public String getTitleAfter()
    • getCommonName

      public String getCommonName()
    • getDisplayName

      public String getDisplayName()
    • setTitleAfter

      public void setTitleAfter(String titleAfter)
    • isServiceUser

      public boolean isServiceUser()
    • setServiceUser

      public void setServiceUser(boolean serviceUser)
    • isSponsoredUser

      public boolean isSponsoredUser()
    • setSponsoredUser

      public void setSponsoredUser(boolean sponsoredUser)
    • isSpecificUser

      public boolean isSpecificUser()
    • getMajorSpecificType

      public SpecificUserType getMajorSpecificType()
    • 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:
      Comparable.compareTo(Object)
    • serializeToString

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

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

      public int hashCode()
      Overrides:
      hashCode in class PerunBean
    • equals

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