Package org.openwms.core.uaa.impl
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:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringSome comment text of theUser.private StringDepartment description assigned to theUser.private StringSome descriptive text of theUser.private UserDetails.GenderGender of theUser.private StringIM account assigned to theUser.private byte[]An image of theUser.private StringOffice description assigned to theUser.private StringPhone number assigned to theUser. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn a comment text of theUser.Return the current department of theUser.Return the description text of theUser.Return theUser's gender.getIm()Return the IM account name of theUser.byte[]getImage()Return the current office of theUser.Return theUsers current phone number.voidsetComment(String comment) Change the comment text of theUser.voidsetDepartment(String department) Change the current department of theUser.voidsetDescription(String description) Change the description text of theUser.voidsetGender(UserDetails.Gender gender) Change theUser's gender (only for compliance).voidChange the current IM account name of theUser.voidsetImage(byte[] img) voidChange the current office of theUser.voidsetPhoneNo(String phoneNo) Change the phone number of theUser.Supplydepartmentto the consumercif present.Supplygenderto the consumercif present.Supplyimto the consumercif present.supplyImage(Consumer<byte[]> c) Supplyimageto the consumercif present.Supplyofficeto the consumercif present.SupplyphoneNoto the consumercif present.toString()
-
Field Details
-
description
Some descriptive text of theUser. -
comment
Some comment text of theUser. -
phoneNo
Phone number assigned to theUser. -
im
IM account assigned to theUser. -
office
Office description assigned to theUser. -
department
Department description assigned to theUser. -
image
private byte[] imageAn image of theUser. -
gender
Gender of theUser.
-
-
Constructor Details
-
UserDetails
public UserDetails()
-
-
Method Details
-
getPhoneNo
Return theUsers current phone number.- Returns:
- The phone number
-
setPhoneNo
Change the phone number of theUser.- Parameters:
phoneNo- The new phone number
-
supplyPhoneNo
SupplyphoneNoto the consumercif present.- Parameters:
c- The consumer- Returns:
- This instance
-
getDescription
Return the description text of theUser.- Returns:
- The description
-
setDescription
Change the description text of theUser.- Parameters:
description- The new description
-
getComment
Return a comment text of theUser.- Returns:
- The comment text
-
setComment
Change the comment text of theUser.- Parameters:
comment- The new comment text
-
getOffice
Return the current office of theUser.- Returns:
- The current office.
-
setOffice
Change the current office of theUser.- Parameters:
office- The new office
-
supplyOffice
Supplyofficeto the consumercif present.- Parameters:
c- The consumer- Returns:
- This instance
-
getIm
Return the IM account name of theUser.- Returns:
- The current IM account name
-
setIm
Change the current IM account name of theUser.- Parameters:
im- The new IM account name
-
supplyIm
Supplyimto the consumercif present.- Parameters:
c- The consumer- Returns:
- This instance
-
getDepartment
Return the current department of theUser.- Returns:
- The current department
-
setDepartment
Change the current department of theUser.- Parameters:
department- The new department
-
supplyDepartment
Supplydepartmentto the consumercif present.- Parameters:
c- The consumer- Returns:
- This instance
-
getImage
public byte[] getImage()- Specified by:
getImagein interfaceorg.openwms.core.values.ImageProvider
-
setImage
public void setImage(byte[] img) - Specified by:
setImagein interfaceorg.openwms.core.values.ImageProvider
-
supplyImage
Supplyimageto the consumercif present.- Parameters:
c- The consumer- Returns:
- This instance
-
getGender
Return theUser's gender.- Returns:
- The
User's gender
-
setGender
Change theUser's gender (only for compliance).- Parameters:
gender- The new gender
-
supplyGender
Supplygenderto the consumercif present.- Parameters:
c- The consumer- Returns:
- This instance
-
toString
-