@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, wait
getAuthorizationMap, getBitmask, getEnvironmentSupplier, getId, getRoleNames, setAuthorizationMap, setBitmask, setId, setRoleNames
protected String firstName
protected String middleName
protected String lastName
public Long getSeq()
IGenericEcomUser
getSeq
in interface IGenericEcomUser
public void setSeq(Long seq)
IGenericEcomUser
setSeq
in interface IGenericEcomUser
public Map<String,Address> getAddresses()
getAddresses
in interface IGenericEcomUser
public void setAddresses(Map<String,Address> addresses)
setAddresses
in interface IGenericEcomUser
public Date getCreateDate()
getCreateDate
in interface IGenericEcomUser
public void setCreateDate(Date createDate)
setCreateDate
in interface IGenericEcomUser
public String getPhone()
getPhone
in interface IGenericEcomUser
public void setPhone(String phone)
setPhone
in interface IGenericEcomUser
public String getEmail()
getEmail
in interface IGenericEcomUser
public void setEmail(String email)
setEmail
in interface IGenericEcomUser
public String getFirstName()
getFirstName
in interface IGenericEcomUser
public void setFirstName(String firstName)
setFirstName
in interface IGenericEcomUser
public String getMiddleName()
getMiddleName
in interface IGenericEcomUser
public void setMiddleName(String middleName)
setMiddleName
in interface IGenericEcomUser
public String getLastName()
getLastName
in interface IGenericEcomUser
public void setLastName(String lastName)
setLastName
in interface IGenericEcomUser
public Date getDob()
IGenericEcomUser
getDob
in interface IGenericEcomUser
public void setDob(Date dob)
IGenericEcomUser
setDob
in interface IGenericEcomUser
public abstract String getUserId()
IGenericEcomUser
getUserId
in interface IGenericEcomUser
public abstract void setUserId(String userId)
IGenericEcomUser
setUserId
in interface IGenericEcomUser
public IGenericEcomUser setAddress(Address address) throws IllegalAccessException, InvocationTargetException
setAddress
in interface IGenericEcomUser
IllegalAccessException
InvocationTargetException
public GenericEcomUser clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public Address getAddress(String type)
getAddress
in interface IGenericEcomUser
public User copyAs(Class userClass)
User
RuntimeException
.
User
without having to implement or extends strict hierarchies.public boolean equals(Object obj)
public int hashCode()
Copyright © 2018. All rights reserved.