Interface User

All Superinterfaces:
Activatable, Agent, KeyValuePair<String,String>, Persistent, Principal, Serializable

public interface User extends Agent, Principal
A user is a representation for a person registered for working with the system
  • Field Details

  • Method Details

    • getId

      String getId()
      Get the id.
      Specified by:
      getId in interface Agent
      Returns:
      the id
    • setId

      void setId(String id)
    • getName

      String getName()
      Implemented for Principal interface
      Specified by:
      getName in interface Principal
    • getTitle

      String getTitle()
      Get the title.
      Returns:
      the title of the user
    • setTitle

      void setTitle(String title)
    • getFirstName

      String getFirstName()
      Get the first name.
      Returns:
      the first name
    • setFirstName

      void setFirstName(String firstName)
    • getSurname

      String getSurname()
      Get the surname.
      Returns:
      the surname
    • setSurname

      void setSurname(String surname)
    • getDescription

      String getDescription()
      Get the description.
      Returns:
      the description
    • setDescription

      void setDescription(String description)
    • getTelNr

      String getTelNr()
      Get the phone number.
      Returns:
      the phone number as string
    • setTelNr

      void setTelNr(String telNr)
    • getEmail

      String getEmail()
      Get the email address.
      Returns:
      email address
    • setEmail

      void setEmail(String email)
    • getUserLocale

      Locale getUserLocale()
      Get the locale of the user
      Returns:
      Locale object
    • toListString

      String toListString()
      A string representation suitable for lists.
      Specified by:
      toListString in interface Persistent
      Returns:
      a string representation of this Object suitable for usage in lists
    • getLocale

      String getLocale()
      Return the locale set for this user as string.
    • setLocale

      void setLocale(String locale)
    • getCantChangePwd

      boolean getCantChangePwd()
    • setCantChangePwd

      void setCantChangePwd(boolean val)
    • getChangePwdNext

      boolean getChangePwdNext()
    • setChangePwdNext

      void setChangePwdNext(boolean val)
    • getPwdNeverExpires

      boolean getPwdNeverExpires()
    • setPassword

      void setPassword(String password)
      Set the password for this user
      Parameters:
      password - the plain password
    • checkPassword

      void checkPassword(String password)
      Check the password. Throws ApplicationException with number 122 if password doesn't match.
    • setPwdNeverExpires

      void setPwdNeverExpires(boolean val)
    • getPwdExpirationMailSent

      boolean getPwdExpirationMailSent()
      Get the flag, if mail has been sent that password will expire in future defined with configuration parameter passwdpolicy.days_warning_before
      Returns:
      true, if mail has been sent; otherwise false
    • setPwdExpirationMailSent

      void setPwdExpirationMailSent(boolean val)
      Set the flag, if expiration warning mail has been sent
      Parameters:
      val - the boolean value for the flag
    • getSalutation

      String getSalutation()
      Get the salutation for this user
      Returns:
      the salutation
    • setSalutation

      void setSalutation(String salutation)
      Set the salutation for this user
      Parameters:
      salutation - the new salutation
    • getNameSuffix

      String getNameSuffix()
      Get the name suffix for this user
      Returns:
      the name suffix
    • setNameSuffix

      void setNameSuffix(String nameSuffix)
      Set the name suffix for this user
      Parameters:
      nameSuffix - the new name suffix
    • setGender

      void setGender(int gender)
      set the gender of this user
      Parameters:
      gender -
      • 0-unkown
      • 1-male
      • 2-female
      • 9-other
      See Also:
    • getGender

      int getGender()
      get the gender of this user
      Returns:
      • 0-unkown
      • 1-male
      • 2-female
      • 9-other
      See Also:
    • getOrderAttr

      String getOrderAttr()
      Get the order attribute.
      Returns:
      the order attribute
    • setOrderAttr

      void setOrderAttr(String orderAttr)
      Set the order attribute for this user
      Parameters:
      orderAttr - the new order attribute