@Entity public abstract class GenericEcomUser extends AbstractUser implements Cloneable, IGenericEcomUser
User.BIT_MASKS| Modifier and Type | Field and Description |
|---|---|
protected String |
firstName |
protected String |
lastName |
protected String |
middleName |
| Constructor and Description |
|---|
GenericEcomUser() |
GenericEcomUser(String firstName,
String email) |
| Modifier and Type | Method and Description |
|---|---|
GenericEcomUser |
clone() |
User |
copyAs(Class userClass)
Provide an equivalent copy of this user as userType
For different types of users we may need to get a copy for that User Type. |
boolean |
equals(Object obj) |
Address |
getAddress(String type) |
Map<String,Address> |
getAddresses() |
Date |
getCreateDate() |
Date |
getDob()
Date Of Birth
|
String |
getEmail() |
String |
getFirstName() |
String |
getLastName() |
String |
getMiddleName() |
String |
getPhone() |
Long |
getSeq()
Unique ID - Auto gen sequence #
|
abstract String |
getUserId()
To maintain session information
Its transient by nature and only valid for the session;
could be SessionId or a reliable Id for a Registered user.
|
int |
hashCode() |
IGenericEcomUser |
setAddress(Address address) |
void |
setAddresses(Map<String,Address> addresses) |
void |
setCreateDate(Date createDate) |
void |
setDob(Date dob)
Date Of Birth
|
void |
setEmail(String email) |
void |
setFirstName(String firstName) |
void |
setLastName(String lastName) |
void |
setMiddleName(String middleName) |
void |
setPhone(String phone) |
void |
setSeq(Long seq)
Unique ID - Auto gen sequence #
|
abstract void |
setUserId(String userId)
To maintain session information
Its transient by nature and only valid for the session;
could be SessionId or a reliable Id for a Registered user.
|
String |
toString() |
finalize, getClass, notify, notifyAll, wait, wait, waitgetAuthorizationMap, getBitmask, getEnvironmentSupplier, getId, getRoleNames, setAuthorizationMap, setBitmask, setId, setRoleNamesprotected String firstName
protected String middleName
protected String lastName
public Long getSeq()
IGenericEcomUsergetSeq in interface IGenericEcomUserpublic void setSeq(Long seq)
IGenericEcomUsersetSeq in interface IGenericEcomUserpublic Map<String,Address> getAddresses()
getAddresses in interface IGenericEcomUserpublic void setAddresses(Map<String,Address> addresses)
setAddresses in interface IGenericEcomUserpublic Date getCreateDate()
getCreateDate in interface IGenericEcomUserpublic void setCreateDate(Date createDate)
setCreateDate in interface IGenericEcomUserpublic String getPhone()
getPhone in interface IGenericEcomUserpublic void setPhone(String phone)
setPhone in interface IGenericEcomUserpublic String getEmail()
getEmail in interface IGenericEcomUserpublic void setEmail(String email)
setEmail in interface IGenericEcomUserpublic String getFirstName()
getFirstName in interface IGenericEcomUserpublic void setFirstName(String firstName)
setFirstName in interface IGenericEcomUserpublic String getMiddleName()
getMiddleName in interface IGenericEcomUserpublic void setMiddleName(String middleName)
setMiddleName in interface IGenericEcomUserpublic String getLastName()
getLastName in interface IGenericEcomUserpublic void setLastName(String lastName)
setLastName in interface IGenericEcomUserpublic Date getDob()
IGenericEcomUsergetDob in interface IGenericEcomUserpublic void setDob(Date dob)
IGenericEcomUsersetDob in interface IGenericEcomUserpublic abstract String getUserId()
IGenericEcomUsergetUserId in interface IGenericEcomUserpublic abstract void setUserId(String userId)
IGenericEcomUsersetUserId in interface IGenericEcomUserpublic IGenericEcomUser setAddress(Address address) throws IllegalAccessException, InvocationTargetException
setAddress in interface IGenericEcomUserIllegalAccessExceptionInvocationTargetExceptionpublic GenericEcomUser clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic Address getAddress(String type)
getAddress in interface IGenericEcomUserpublic User copyAs(Class userClass)
UserRuntimeException.
User without having to implement or extends strict hierarchies.public boolean equals(Object obj)
public int hashCode()
Copyright © 2018. All rights reserved.