|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CmUser
CmUser
represents a person with an account in the system for accessing
the Commerce Manager or web services.
Method Summary | |
---|---|
void |
addUserRole(UserRole userRole)
Adds an UserRole to the list of userRoles. |
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 CmUser . |
java.lang.String |
getFirstName()
Gets the CmUser 's first name. |
java.util.Date |
getLastLoginDate()
Gets this cmUser 's last login date. |
java.lang.String |
getLastName()
Gets the CmUser 's last name. |
java.lang.String |
getPassword()
Gets the encrypted password. |
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 |
isCmAccess()
True if this CmUser has access to Commerce Manager functionality. |
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 CmUser'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 |
setEmail(java.lang.String email)
Sets the email address of this CmUser . |
void |
setFirstName(java.lang.String firstName)
Sets the CmUser 's first name. |
void |
setLastLoginDate(java.util.Date lastLoginDate)
Sets this cmUser 's last login date. |
void |
setLastName(java.lang.String lastName)
Sets the CmUser '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 interface com.elasticpath.domain.Entity |
---|
getGuid, setGuid |
Methods inherited from interface com.elasticpath.domain.Persistence |
---|
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk |
Methods inherited from interface com.elasticpath.domain.EpDomain |
---|
getElasticPath, setElasticPath |
Methods inherited from interface org.acegisecurity.userdetails.UserDetails |
---|
getAuthorities, getUsername, isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled |
Method Detail |
---|
void addUserRole(UserRole userRole)
UserRole
to the list of userRoles.
userRole
- the userRole to add.java.lang.String getClearTextPassword()
java.lang.String getConfirmClearTextPassword()
java.util.Date getCreationDate()
cmUser
's creationDate.
java.lang.String getEmail()
CmUser
.
java.lang.String getFirstName()
CmUser
's first name.
java.util.Date getLastLoginDate()
cmUser
's last login date.
java.lang.String getLastName()
CmUser
's last name.
java.lang.String getPassword()
getPassword
in interface org.acegisecurity.userdetails.UserDetails
java.lang.String getUserName()
CmUser
.
java.util.Set getUserRoles()
UserRole
s associated with this CmUser
.
boolean hasPermission(java.lang.String authority)
CmUser
has the permission with the given authority value.
authority
- - authority value.
boolean hasUserRole(long userRoleID)
CmUser
has the userRole with the given userRoleID.
userRoleID
- - userRole ID.
boolean hasUserRole(java.lang.String userRoleName)
CmUser
has the userRole with the given name.
userRoleName
- - userRole name.
boolean isCmAccess()
CmUser
has access to Commerce Manager functionality.
boolean isWsAccess()
CmUser
has access to Web Services.
void removeUserRole(UserRole userRole)
UserRole
from the list of userRoles.
userRole
- the userRole to remove.java.lang.String resetPassword()
void setClearTextPassword(java.lang.String clearTextPassword)
clearTextPassword
- the clear-text password.void setCmAccess(boolean cmAccess)
CmUser
has access to Commerce Manager functionality.
cmAccess
- Set to true for commercial addresses.void setConfirmClearTextPassword(java.lang.String confirmClearTextPassword)
confirmClearTextPassword
- the user confirmClearTextPassword.void setCreationDate(java.util.Date creationDate)
cmUser
's creationDate.
creationDate
- cmUser's creationDate.void setEmail(java.lang.String email)
CmUser
.
email
- the new email address.void setFirstName(java.lang.String firstName)
CmUser
's first name.
firstName
- the new first name.void setLastLoginDate(java.util.Date lastLoginDate)
cmUser
's last login date.
lastLoginDate
- cmUser's last login date.void setLastName(java.lang.String lastName)
CmUser
's last name.
lastName
- the new last name.void setPassword(java.lang.String password)
password
- the encrypted password.void setUserName(java.lang.String userName)
CmUser
.
userName
- the new user name.void setUserRoles(java.util.Set userRoles)
UserRole
s associated with this CmUser
.
userRoles
- the new set of userRoles.void setWsAccess(boolean wsAccess)
CmUser
has access to Web Services.
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 |