|
|||||||||
| 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 UserRoles 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 UserRoles 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 CmUseruserRole - the userRole to add.public org.acegisecurity.GrantedAuthority[] getAuthorities()
null.
getAuthorities in interface org.acegisecurity.userdetails.UserDetailsnull)public java.lang.String getClearTextPassword()
getClearTextPassword in interface CmUserpublic java.lang.String getConfirmClearTextPassword()
getConfirmClearTextPassword in interface CmUserpublic java.util.Date getCreationDate()
cmUser's creationDate.
getCreationDate in interface CmUserpublic java.lang.String getEmail()
Customer.
getEmail in interface CmUserpublic java.lang.String getFirstName()
Customer's first name.
getFirstName in interface CmUserpublic java.util.Date getLastLoginDate()
cmUser's last login date.
getLastLoginDate in interface CmUserpublic java.lang.String getLastName()
Customer's last name.
getLastName in interface CmUserpublic java.lang.String getPassword()
getPassword in interface CmUsergetPassword in interface org.acegisecurity.userdetails.UserDetailspublic java.lang.String getUsername()
null.
getUsername in interface org.acegisecurity.userdetails.UserDetailsnull)public java.lang.String getUserName()
CmUser.
getUserName in interface CmUserpublic java.util.Set getUserRoles()
UserRoles associated with this CmUser.
getUserRoles in interface CmUserpublic boolean hasPermission(java.lang.String authority)
CmUser has the permission with the given authority value.
hasPermission in interface CmUserauthority - - authority value.
public boolean hasUserRole(long userRoleID)
CmUser has the userRole with the given userRoleID.
hasUserRole in interface CmUseruserRoleID - - userRole ID.
public boolean hasUserRole(java.lang.String userRoleName)
CmUser has the userRole with the given name.
hasUserRole in interface CmUseruserRoleName - - userRole name.
public boolean isAccountNonExpired()
isAccountNonExpired in interface org.acegisecurity.userdetails.UserDetailstrue 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.UserDetailstrue if the user is not locked, false otherwisepublic boolean isCmAccess()
CmUser has access to Commerce Manager functionality.
isCmAccess in interface CmUserpublic boolean isCredentialsNonExpired()
isCredentialsNonExpired in interface org.acegisecurity.userdetails.UserDetailstrue 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.UserDetailstrue if the user is enabled, false otherwisepublic boolean isWsAccess()
CmUser has access to Web Services.
isWsAccess in interface CmUserpublic void removeUserRole(UserRole userRole)
UserRole from the list of userRoles.
removeUserRole in interface CmUseruserRole - the userRole to remove.public java.lang.String resetPassword()
resetPassword in interface CmUserpublic void setClearTextPassword(java.lang.String clearTextPassword)
setClearTextPassword in interface CmUserclearTextPassword - the clear-text password.public void setCmAccess(boolean cmAccess)
CmUser has access to Commerce Manager functionality.
setCmAccess in interface CmUsercmAccess - Set to true for commercial addresses.public void setConfirmClearTextPassword(java.lang.String confirmClearTextPassword)
setConfirmClearTextPassword in interface CmUserconfirmClearTextPassword - the user confirmClearTextPassword.public void setCreationDate(java.util.Date creationDate)
cmUser's creationDate.
setCreationDate in interface CmUsercreationDate - cmUser's creationDate.public void setDefaultValues()
setDefaultValues in interface PersistencesetDefaultValues in class AbstractEntityImplpublic void setEmail(java.lang.String email)
Customer.
setEmail in interface CmUseremail - the new email address.public void setFirstName(java.lang.String firstName)
Customer's first name.
setFirstName in interface CmUserfirstName - the new first name.public void setLastLoginDate(java.util.Date lastLoginDate)
cmUser's last login date.
setLastLoginDate in interface CmUserlastLoginDate - cmUser's last login date.public void setLastName(java.lang.String lastName)
Customer's last name.
setLastName in interface CmUserlastName - the new last name.public void setPassword(java.lang.String password)
setPassword in interface CmUserpassword - the encrypted password.
public void setUserName(java.lang.String userName)
throws EpDomainException
CmUser.
setUserName in interface CmUseruserName - the new user name.
EpDomainException - if the given identifier is null.public void setUserRoles(java.util.Set userRoles)
UserRoles associated with this CmUser.
setUserRoles in interface CmUseruserRoles - the new set of userRoles.public void setWsAccess(boolean wsAccess)
CmUser has access to Web Services.
setWsAccess in interface CmUserwsAccess - 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 | ||||||||