Class UserDetails

java.lang.Object
org.openwms.core.uaa.impl.UserDetails
All Implemented Interfaces:
Serializable, org.openwms.core.values.ImageProvider

@Embeddable public class UserDetails extends Object implements org.openwms.core.values.ImageProvider, Serializable
Detailed information about an User.
Author:
Heiko Scherrer
See Also:
  • Field Details

    • description

      private String description
      Some descriptive text of the User.
    • comment

      private String comment
      Some comment text of the User.
    • phoneNo

      private String phoneNo
      Phone number assigned to the User.
    • im

      private String im
      IM account assigned to the User.
    • office

      private String office
      Office description assigned to the User.
    • department

      private String department
      Department description assigned to the User.
    • image

      private byte[] image
      An image of the User.
    • gender

      private UserDetails.Gender gender
      Gender of the User.
  • Constructor Details

    • UserDetails

      public UserDetails()
  • Method Details

    • getPhoneNo

      public String getPhoneNo()
      Return the Users current phone number.
      Returns:
      The phone number
    • setPhoneNo

      public void setPhoneNo(String phoneNo)
      Change the phone number of the User.
      Parameters:
      phoneNo - The new phone number
    • supplyPhoneNo

      public UserDetails supplyPhoneNo(Consumer<String> c)
      Supply phoneNo to the consumer c if present.
      Parameters:
      c - The consumer
      Returns:
      This instance
    • getDescription

      public String getDescription()
      Return the description text of the User.
      Returns:
      The description
    • setDescription

      public void setDescription(String description)
      Change the description text of the User.
      Parameters:
      description - The new description
    • getComment

      public String getComment()
      Return a comment text of the User.
      Returns:
      The comment text
    • setComment

      public void setComment(String comment)
      Change the comment text of the User.
      Parameters:
      comment - The new comment text
    • getOffice

      public String getOffice()
      Return the current office of the User.
      Returns:
      The current office.
    • setOffice

      public void setOffice(String office)
      Change the current office of the User.
      Parameters:
      office - The new office
    • supplyOffice

      public UserDetails supplyOffice(Consumer<String> c)
      Supply office to the consumer c if present.
      Parameters:
      c - The consumer
      Returns:
      This instance
    • getIm

      public String getIm()
      Return the IM account name of the User.
      Returns:
      The current IM account name
    • setIm

      public void setIm(String im)
      Change the current IM account name of the User.
      Parameters:
      im - The new IM account name
    • supplyIm

      public UserDetails supplyIm(Consumer<String> c)
      Supply im to the consumer c if present.
      Parameters:
      c - The consumer
      Returns:
      This instance
    • getDepartment

      public String getDepartment()
      Return the current department of the User.
      Returns:
      The current department
    • setDepartment

      public void setDepartment(String department)
      Change the current department of the User.
      Parameters:
      department - The new department
    • supplyDepartment

      public UserDetails supplyDepartment(Consumer<String> c)
      Supply department to the consumer c if present.
      Parameters:
      c - The consumer
      Returns:
      This instance
    • getImage

      public byte[] getImage()
      Specified by:
      getImage in interface org.openwms.core.values.ImageProvider
    • setImage

      public void setImage(byte[] img)
      Specified by:
      setImage in interface org.openwms.core.values.ImageProvider
    • supplyImage

      public UserDetails supplyImage(Consumer<byte[]> c)
      Supply image to the consumer c if present.
      Parameters:
      c - The consumer
      Returns:
      This instance
    • getGender

      public UserDetails.Gender getGender()
      Return the User's gender.
      Returns:
      The User's gender
    • setGender

      public void setGender(UserDetails.Gender gender)
      Change the User's gender (only for compliance).
      Parameters:
      gender - The new gender
    • supplyGender

      public UserDetails supplyGender(Consumer<UserDetails.Gender> c)
      Supply gender to the consumer c if present.
      Parameters:
      c - The consumer
      Returns:
      This instance
    • toString

      public String toString()
      Overrides:
      toString in class Object