@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_MASKS
firstName, 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, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
getEnvironmentSupplier
public Map<String,Collection<Authorization>> getAuthorizationMap()
User
Set
of Authorization
.getAuthorizationMap
in interface User
Map
public T setAuthorizationMap(Map<String,Collection<Authorization>> _authorizationMap)
User
Set
of Authorization
.setAuthorizationMap
in interface User
Map
public int getBitmask()
getBitmask
in interface User
public T setBitmask(int bitmask)
setBitmask
in interface User
protected 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()
IGenericEcomUser
getUserId
in interface IGenericEcomUser
getUserId
in class GenericEcomUser
public void setUserId(String userId)
IGenericEcomUser
setUserId
in interface IGenericEcomUser
setUserId
in class GenericEcomUser
public Collection<String> getRoleNames()
getRoleNames
in interface User
Collection
of Role.getName()
public void setRoleNames(Collection<String> roleNames)
setRoleNames
in interface User
Copyright © 2018. All rights reserved.