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
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
Some comment text of theUser
.private String
Department description assigned to theUser
.private String
Some descriptive text of theUser
.private UserDetails.Gender
Gender of theUser
.private String
IM account assigned to theUser
.private byte[]
An image of theUser
.private String
Office description assigned to theUser
.private String
Phone number assigned to theUser
. -
Constructor Summary
-
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 theUser
s current phone number.void
setComment
(String comment) Change the comment text of theUser
.void
setDepartment
(String department) Change the current department of theUser
.void
setDescription
(String description) Change the description text of theUser
.void
setGender
(UserDetails.Gender gender) Change theUser
's gender (only for compliance).void
Change the current IM account name of theUser
.void
setImage
(byte[] img) void
Change the current office of theUser
.void
setPhoneNo
(String phoneNo) Change the phone number of theUser
.Supplydepartment
to the consumerc
if present.Supplygender
to the consumerc
if present.Supplyim
to the consumerc
if present.supplyImage
(Consumer<byte[]> c) Supplyimage
to the consumerc
if present.Supplyoffice
to the consumerc
if present.SupplyphoneNo
to the consumerc
if 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 theUser
s current phone number.- Returns:
- The phone number
-
setPhoneNo
Change the phone number of theUser
.- Parameters:
phoneNo
- The new phone number
-
supplyPhoneNo
SupplyphoneNo
to the consumerc
if 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
Supplyoffice
to the consumerc
if 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
Supplyim
to the consumerc
if 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
Supplydepartment
to the consumerc
if present.- Parameters:
c
- The consumer- Returns:
- This instance
-
getImage
public byte[] getImage()- Specified by:
getImage
in interfaceorg.openwms.core.values.ImageProvider
-
setImage
public void setImage(byte[] img) - Specified by:
setImage
in interfaceorg.openwms.core.values.ImageProvider
-
supplyImage
Supplyimage
to the consumerc
if 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
Supplygender
to the consumerc
if present.- Parameters:
c
- The consumer- Returns:
- This instance
-
toString
-