|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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 CmUserServicecmUser - 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 CmUserServicecmUser - the cmUser to check
EpServiceException - - in case of any errors
public boolean emailExists(java.lang.String email)
throws EpServiceException
emailExists in interface CmUserServiceemail - the email address
EpServiceException - - in case of any errors
public CmUser findByEmail(java.lang.String email)
throws EpServiceException
findByEmail in interface CmUserServiceemail - the cmUser email address
EpServiceException - - in case of any errors
public CmUser findByUserName(java.lang.String userName)
throws EpServiceException
userName - the cmUser userName
EpServiceException - - in case of any errors
public CmUser get(long cmUserUid)
throws EpServiceException
get in interface CmUserServicecmUserUid - the cmUser UID
EpServiceException - - in case of any errors
public java.lang.Object getObject(long uid)
throws EpServiceException
getObject in interface EpPersistenceServiceuid - the persisted instance uid
EpServiceException - - in case of any errors
public java.util.List list()
throws EpServiceException
list in interface CmUserServiceEpServiceException - - in case of any errors
public CmUser load(long cmUserUid)
throws EpServiceException
load in interface CmUserServicecmUserUid - the cmUser UID
EpServiceException - - in case of any errors
public void remove(CmUser cmUser)
throws EpServiceException
remove in interface CmUserServicecmUser - the cmUser to remove
EpServiceException - - in case of any errors
public void resetPassword(java.lang.String email)
throws EmailNonExistException
resetPassword in interface CmUserServiceemail - 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 CmUserServicecmUser - 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 CmUserServicecmUser - the cmUser to check
EpServiceException - - in case of any errors
public boolean userNameExists(java.lang.String userName)
throws EpServiceException
userNameExists in interface CmUserServiceuserName - the userName
EpServiceException - - in case of any errors
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||