|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CmUserService
Provide cmuser-related business service.
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)
Check the given email exists or not. |
CmUser |
findByEmail(java.lang.String email)
Find the cmUser with the given email address. |
CmUser |
get(long cmUserUid)
Get the cmUser with the given UID. |
java.util.List |
list()
List all cmUsers stored in the database. |
CmUser |
load(long cmUserUid)
Load the cmUser with the given UID. |
void |
remove(CmUser cmUser)
Delete the cmUser. |
void |
resetPassword(java.lang.String email)
Generate a new password for the customor with the given email address and send the new password to the cmUser by eamil. |
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 interface com.elasticpath.service.EpPersistenceService |
---|
getObject, getPersistenceEngine, setPersistenceEngine |
Methods inherited from interface com.elasticpath.service.EpService |
---|
getElasticPath, setElasticPath |
Method Detail |
---|
CmUser add(CmUser cmUser) throws UserNameExistException, EmailExistException
cmUser
- the cmUser to add
UserNameExistException
- - the specified user name is taken by another user.
EmailExistException
- - the specified email is taken by another user.boolean emailExists(CmUser cmUser) throws EpServiceException
cmUser
- the cmUser to check
EpServiceException
- - in case of any errorsboolean emailExists(java.lang.String email) throws EpServiceException
email
- the email address
EpServiceException
- - in case of any errorsCmUser findByEmail(java.lang.String email) throws EpServiceException
email
- the cmUser email address
EpServiceException
- - in case of any errorsCmUser get(long cmUserUid) throws EpServiceException
cmUserUid
- the cmUser UID
EpServiceException
- - in case of any errorsjava.util.List list() throws EpServiceException
EpServiceException
- - in case of any errorsCmUser load(long cmUserUid) throws EpServiceException
cmUserUid
- the cmUser UID
EpServiceException
- - in case of any errorsvoid remove(CmUser cmUser) throws EpServiceException
cmUser
- the cmUser to remove
EpServiceException
- - in case of any errorsvoid resetPassword(java.lang.String email) throws EmailNonExistException
email
- the email address
EmailNonExistException
- if the given email address doesn't existvoid update(CmUser cmUser) throws UserNameExistException, EmailExistException
cmUser
- the cmUser to update
UserNameExistException
- - the specified user name is taken by another user.
EmailExistException
- - the specified email is taken by another user.boolean userNameExists(CmUser cmUser) throws EpServiceException
cmUser
- the cmUser to check
EpServiceException
- - in case of any errorsboolean userNameExists(java.lang.String userName) throws EpServiceException
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 |