@Entity public class RegisteredUser<T extends RegisteredUser> extends GenericEcomUser implements Auditable
https://community.jboss.org/wiki/SecurityTransparentencryptionofpersisteddatawithJasyptUserTypes?_sscc=t,
http://www.jasypt.org/,
http://jpasecurity.sourceforge.net/reference/manual.html,
Serialized FormUser.BIT_MASKSfirstName, lastName, middleName| Constructor and Description |
|---|
RegisteredUser() |
RegisteredUser(String loginId,
String firstName,
String email) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Collection<Authorization>> |
getAuthorizationMap()
Map of entity Name to
Set of Authorization.The entity name can refer to any section that has a name, that uniquely identifies the entity. |
protected String |
getAuthorizations() |
int |
getBitmask() |
String |
getId() |
Date |
getLastLogin() |
String |
getLoginId() |
String |
getName() |
Collection<String> |
getRoleNames() |
String |
getRoles()
Comma separated list of Roles
Use a String operation to search for a role or add one |
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.
|
Integer |
getVisit() |
T |
setAuthorizationMap(Map<String,Collection<Authorization>> _authorizationMap)
Map of entity Name to
Set of Authorization.The entity name can refer to any section that has a name, that uniquely identifies the entity. |
protected void |
setAuthorizations(String authorizations) |
T |
setBitmask(int bitmask) |
void |
setId(String loginId) |
void |
setLastLogin(Date lastLogin) |
void |
setLoginId(String loginId) |
void |
setRoleNames(Collection<String> roleNames) |
void |
setRoles(String roles)
Comma separated list of Roles
Use a String operation to search for a role or add one |
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.
|
void |
setVisit(Integer visit) |
int |
visitIncrement()
Increments the visit count and returns the updated value
|
clone, copyAs, equals, getAddress, getAddresses, getCreateDate, getDob, getEmail, getFirstName, getLastName, getMiddleName, getPhone, getSeq, hashCode, setAddress, setAddresses, setCreateDate, setDob, setEmail, setFirstName, setLastName, setMiddleName, setPhone, setSeq, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitgetEnvironmentSupplierpublic Map<String,Collection<Authorization>> getAuthorizationMap()
UserSet of Authorization.getAuthorizationMap in interface UserMappublic T setAuthorizationMap(Map<String,Collection<Authorization>> _authorizationMap)
UserSet of Authorization.setAuthorizationMap in interface UserMappublic int getBitmask()
getBitmask in interface Userpublic T setBitmask(int bitmask)
setBitmask in interface Userprotected String getAuthorizations()
protected void setAuthorizations(String authorizations)
public String getRoles()
public void setRoles(String roles)
public Integer getVisit()
public void setVisit(Integer visit)
public String getLoginId()
public void setLoginId(String loginId)
public Date getLastLogin()
public void setLastLogin(Date lastLogin)
public int visitIncrement()
public String getUserId()
IGenericEcomUsergetUserId in interface IGenericEcomUsergetUserId in class GenericEcomUserpublic void setUserId(String userId)
IGenericEcomUsersetUserId in interface IGenericEcomUsersetUserId in class GenericEcomUserpublic Collection<String> getRoleNames()
getRoleNames in interface UserCollection of Role.getName()public void setRoleNames(Collection<String> roleNames)
setRoleNames in interface UserCopyright © 2018. All rights reserved.