|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.elasticpath.service.impl.AbstractEpServiceImpl com.elasticpath.service.impl.AbstractEpPersistenceServiceImpl com.elasticpath.service.cmuser.impl.CmUserServiceImpl
public class CmUserServiceImpl
The default implementation of CmUserService
.
Constructor Summary | |
---|---|
CmUserServiceImpl()
|
Method Summary | |
---|---|
CmUser |
add(CmUser cmUser)
Adds the given cmUser. |
boolean |
emailExists(CmUser cmUser)
Check the given cmUser's email exists or not. |
boolean |
emailExists(java.lang.String email)
Checks the given email exists or not. |
CmUser |
findByEmail(java.lang.String email)
Find the cmUser with the given email address. |
CmUser |
findByUserName(java.lang.String userName)
Find the cmUser with the given userName. |
CmUser |
get(long cmUserUid)
Get the cmUser with the given UID. |
java.lang.Object |
getObject(long uid)
Generic get method for all persistable domain models. |
java.util.List |
list()
Lists all cmUsers stored in the database. |
CmUser |
load(long cmUserUid)
Load the cmUser with the given UID. |
void |
remove(CmUser cmUser)
Deletes the cmUser. |
void |
resetPassword(java.lang.String email)
Resets the cmUser's password for the specified email. |
void |
setEmailService(EmailService emailService)
Set the emailService. |
void |
setUserRoleService(UserRoleService userRoleService)
Set the userRoleService instance. |
void |
update(CmUser cmUser)
Updates the given cmUser. |
boolean |
userNameExists(CmUser cmUser)
Check the given cmUser's userName exists or not. |
boolean |
userNameExists(java.lang.String userName)
Checks the given userName exists or not. |
Methods inherited from class com.elasticpath.service.impl.AbstractEpPersistenceServiceImpl |
---|
getPersistenceEngine, setPersistenceEngine |
Methods inherited from class com.elasticpath.service.impl.AbstractEpServiceImpl |
---|
getElasticPath, setElasticPath |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.elasticpath.service.EpPersistenceService |
---|
getPersistenceEngine, setPersistenceEngine |
Methods inherited from interface com.elasticpath.service.EpService |
---|
getElasticPath, setElasticPath |
Constructor Detail |
---|
public CmUserServiceImpl()
Method Detail |
---|
public CmUser add(CmUser cmUser) throws UserNameExistException, EmailExistException
add
in interface CmUserService
cmUser
- the cmUser to add
UserNameExistException
- - the specified user name is already in use.
EmailExistException
- - the specified email is already in use.public boolean emailExists(CmUser cmUser) throws EpServiceException
emailExists
in interface CmUserService
cmUser
- the cmUser to check
EpServiceException
- - in case of any errorspublic boolean emailExists(java.lang.String email) throws EpServiceException
emailExists
in interface CmUserService
email
- the email address
EpServiceException
- - in case of any errorspublic CmUser findByEmail(java.lang.String email) throws EpServiceException
findByEmail
in interface CmUserService
email
- the cmUser email address
EpServiceException
- - in case of any errorspublic CmUser findByUserName(java.lang.String userName) throws EpServiceException
userName
- the cmUser userName
EpServiceException
- - in case of any errorspublic CmUser get(long cmUserUid) throws EpServiceException
get
in interface CmUserService
cmUserUid
- the cmUser UID
EpServiceException
- - in case of any errorspublic java.lang.Object getObject(long uid) throws EpServiceException
getObject
in interface EpPersistenceService
uid
- the persisted instance uid
EpServiceException
- - in case of any errorspublic java.util.List list() throws EpServiceException
list
in interface CmUserService
EpServiceException
- - in case of any errorspublic CmUser load(long cmUserUid) throws EpServiceException
load
in interface CmUserService
cmUserUid
- the cmUser UID
EpServiceException
- - in case of any errorspublic void remove(CmUser cmUser) throws EpServiceException
remove
in interface CmUserService
cmUser
- the cmUser to remove
EpServiceException
- - in case of any errorspublic void resetPassword(java.lang.String email) throws EmailNonExistException
resetPassword
in interface CmUserService
email
- The email address of the cmUser whose password is to be reset
EmailNonExistException
- if the email address isn't foundpublic void setEmailService(EmailService emailService)
emailService
- the emailServicepublic void setUserRoleService(UserRoleService userRoleService)
userRoleService
- the userRoleService instance.public void update(CmUser cmUser) throws UserNameExistException, EmailExistException
update
in interface CmUserService
cmUser
- the cmUser to update
UserNameExistException
- - the specified user name is taken by another user.
EmailExistException
- - the specified email is taken by another user.public boolean userNameExists(CmUser cmUser) throws EpServiceException
userNameExists
in interface CmUserService
cmUser
- the cmUser to check
EpServiceException
- - in case of any errorspublic boolean userNameExists(java.lang.String userName) throws EpServiceException
userNameExists
in interface CmUserService
userName
- the userName
EpServiceException
- - in case of any errors
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |