|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.elasticpath.domain.impl.AbstractEpDomainImpl
com.elasticpath.domain.impl.AbstractPersistenceImpl
com.elasticpath.domain.impl.AbstractEntityImpl
com.elasticpath.domain.cmuser.impl.CmUserImpl
public class CmUserImpl
The default implementation of CmUser
.
Field Summary | |
---|---|
static long |
serialVersionUID
Serial version id. |
Constructor Summary | |
---|---|
CmUserImpl()
The default constructor. |
Method Summary | |
---|---|
void |
addUserRole(UserRole userRole)
Adds an UserRole to the list of userRoles. |
org.acegisecurity.GrantedAuthority[] |
getAuthorities()
Returns the authorities granted to the user. |
java.lang.String |
getClearTextPassword()
Gets the clear-text password (only available at the creation time). |
java.lang.String |
getConfirmClearTextPassword()
Gets the clear-text confirm password (only available at the creation time). |
java.util.Date |
getCreationDate()
Gets this cmUser 's creationDate. |
java.lang.String |
getEmail()
Gets the email address of this Customer . |
java.lang.String |
getFirstName()
Gets the Customer 's first name. |
java.util.Date |
getLastLoginDate()
Gets this cmUser 's last login date. |
java.lang.String |
getLastName()
Gets the Customer 's last name. |
java.lang.String |
getPassword()
Gets the encrypted password. |
java.lang.String |
getUsername()
Returns the username used to authenticate the user. |
java.lang.String |
getUserName()
Gets the user name for this CmUser . |
java.util.Set |
getUserRoles()
Gets the UserRole s associated with this CmUser . |
boolean |
hasPermission(java.lang.String authority)
Return a boolean that indicates whether this CmUser has the permission with the given authority value. |
boolean |
hasUserRole(long userRoleID)
Return a boolean that indicates whether this CmUser has the userRole with the given userRoleID. |
boolean |
hasUserRole(java.lang.String userRoleName)
Return a boolean that indicates whether this CmUser has the userRole with the given name. |
boolean |
isAccountNonExpired()
Indicates whether the user's account has expired. |
boolean |
isAccountNonLocked()
Indicates whether the user is locked or unlocked. |
boolean |
isCmAccess()
True if this CmUser has access to Commerce Manager functionality. |
boolean |
isCredentialsNonExpired()
Indicates whether the user's credentials (password) has expired. |
boolean |
isEnabled()
Indicates whether the user is enabled or disabled. |
boolean |
isWsAccess()
True if this CmUser has access to Web Services. |
void |
removeUserRole(UserRole userRole)
Removes an UserRole from the list of userRoles. |
java.lang.String |
resetPassword()
Reset the customer's password. |
void |
setClearTextPassword(java.lang.String clearTextPassword)
Sets the clear-text password. |
void |
setCmAccess(boolean cmAccess)
Sets whether this CmUser has access to Commerce Manager functionality. |
void |
setConfirmClearTextPassword(java.lang.String confirmClearTextPassword)
Sets the confirm clear-text password. |
void |
setCreationDate(java.util.Date creationDate)
Sets this cmUser 's creationDate. |
void |
setDefaultValues()
Set default values for those fields need default values. |
void |
setEmail(java.lang.String email)
Sets the email address of this Customer . |
void |
setFirstName(java.lang.String firstName)
Sets the Customer 's first name. |
void |
setLastLoginDate(java.util.Date lastLoginDate)
Sets this cmUser 's last login date. |
void |
setLastName(java.lang.String lastName)
Sets the Customer 's last name. |
void |
setPassword(java.lang.String password)
Sets the encrypted password. |
void |
setUserName(java.lang.String userName)
Sets the user name for this CmUser . |
void |
setUserRoles(java.util.Set userRoles)
Sets the UserRole s associated with this CmUser . |
void |
setWsAccess(boolean wsAccess)
Sets whether this CmUser has access to Web Services. |
Methods inherited from class com.elasticpath.domain.impl.AbstractEntityImpl |
---|
convertAttributeGroupAttributes, getGuid, setGuid |
Methods inherited from class com.elasticpath.domain.impl.AbstractPersistenceImpl |
---|
executeBeforePersistAction, getUidPk, isPersistent, setUidPk |
Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl |
---|
getElasticPath, setElasticPath |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.elasticpath.domain.Entity |
---|
getGuid, setGuid |
Methods inherited from interface com.elasticpath.domain.Persistence |
---|
executeBeforePersistAction, getUidPk, isPersistent, setUidPk |
Methods inherited from interface com.elasticpath.domain.EpDomain |
---|
getElasticPath, setElasticPath |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public CmUserImpl()
Method Detail |
---|
public void addUserRole(UserRole userRole)
UserRole
to the list of userRoles.
addUserRole
in interface CmUser
userRole
- the userRole to add.public org.acegisecurity.GrantedAuthority[] getAuthorities()
null
.
getAuthorities
in interface org.acegisecurity.userdetails.UserDetails
null
)public java.lang.String getClearTextPassword()
getClearTextPassword
in interface CmUser
public java.lang.String getConfirmClearTextPassword()
getConfirmClearTextPassword
in interface CmUser
public java.util.Date getCreationDate()
cmUser
's creationDate.
getCreationDate
in interface CmUser
public java.lang.String getEmail()
Customer
.
getEmail
in interface CmUser
public java.lang.String getFirstName()
Customer
's first name.
getFirstName
in interface CmUser
public java.util.Date getLastLoginDate()
cmUser
's last login date.
getLastLoginDate
in interface CmUser
public java.lang.String getLastName()
Customer
's last name.
getLastName
in interface CmUser
public java.lang.String getPassword()
getPassword
in interface CmUser
getPassword
in interface org.acegisecurity.userdetails.UserDetails
public java.lang.String getUsername()
null
.
getUsername
in interface org.acegisecurity.userdetails.UserDetails
null
)public java.lang.String getUserName()
CmUser
.
getUserName
in interface CmUser
public java.util.Set getUserRoles()
UserRole
s associated with this CmUser
.
getUserRoles
in interface CmUser
public boolean hasPermission(java.lang.String authority)
CmUser
has the permission with the given authority value.
hasPermission
in interface CmUser
authority
- - authority value.
public boolean hasUserRole(long userRoleID)
CmUser
has the userRole with the given userRoleID.
hasUserRole
in interface CmUser
userRoleID
- - userRole ID.
public boolean hasUserRole(java.lang.String userRoleName)
CmUser
has the userRole with the given name.
hasUserRole
in interface CmUser
userRoleName
- - userRole name.
public boolean isAccountNonExpired()
isAccountNonExpired
in interface org.acegisecurity.userdetails.UserDetails
true
if the user's account is valid (ie non-expired), false
if no longer valid (ie expired)public boolean isAccountNonLocked()
isAccountNonLocked
in interface org.acegisecurity.userdetails.UserDetails
true
if the user is not locked, false
otherwisepublic boolean isCmAccess()
CmUser
has access to Commerce Manager functionality.
isCmAccess
in interface CmUser
public boolean isCredentialsNonExpired()
isCredentialsNonExpired
in interface org.acegisecurity.userdetails.UserDetails
true
if the user's credentials are valid (ie non-expired), false
if no longer valid (ie expired)public boolean isEnabled()
isEnabled
in interface org.acegisecurity.userdetails.UserDetails
true
if the user is enabled, false
otherwisepublic boolean isWsAccess()
CmUser
has access to Web Services.
isWsAccess
in interface CmUser
public void removeUserRole(UserRole userRole)
UserRole
from the list of userRoles.
removeUserRole
in interface CmUser
userRole
- the userRole to remove.public java.lang.String resetPassword()
resetPassword
in interface CmUser
public void setClearTextPassword(java.lang.String clearTextPassword)
setClearTextPassword
in interface CmUser
clearTextPassword
- the clear-text password.public void setCmAccess(boolean cmAccess)
CmUser
has access to Commerce Manager functionality.
setCmAccess
in interface CmUser
cmAccess
- Set to true for commercial addresses.public void setConfirmClearTextPassword(java.lang.String confirmClearTextPassword)
setConfirmClearTextPassword
in interface CmUser
confirmClearTextPassword
- the user confirmClearTextPassword.public void setCreationDate(java.util.Date creationDate)
cmUser
's creationDate.
setCreationDate
in interface CmUser
creationDate
- cmUser's creationDate.public void setDefaultValues()
setDefaultValues
in interface Persistence
setDefaultValues
in class AbstractEntityImpl
public void setEmail(java.lang.String email)
Customer
.
setEmail
in interface CmUser
email
- the new email address.public void setFirstName(java.lang.String firstName)
Customer
's first name.
setFirstName
in interface CmUser
firstName
- the new first name.public void setLastLoginDate(java.util.Date lastLoginDate)
cmUser
's last login date.
setLastLoginDate
in interface CmUser
lastLoginDate
- cmUser's last login date.public void setLastName(java.lang.String lastName)
Customer
's last name.
setLastName
in interface CmUser
lastName
- the new last name.public void setPassword(java.lang.String password)
setPassword
in interface CmUser
password
- the encrypted password.public void setUserName(java.lang.String userName) throws EpDomainException
CmUser
.
setUserName
in interface CmUser
userName
- the new user name.
EpDomainException
- if the given identifier is null
.public void setUserRoles(java.util.Set userRoles)
UserRole
s associated with this CmUser
.
setUserRoles
in interface CmUser
userRoles
- the new set of userRoles.public void setWsAccess(boolean wsAccess)
CmUser
has access to Web Services.
setWsAccess
in interface CmUser
wsAccess
- Set to true if has access to Web Services.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |