public class UserAction extends Object implements IUserAction
| Constructor and Description |
|---|
UserAction() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEmailExist(String email)
Check if user with specified email already exist
|
boolean |
isUserExist(String login)
Check if user with specified login already exist
|
User |
refreshUser()
Refresh state of user entity with database
|
void |
register(User user)
Persist user entity to database
|
User |
updateUser()
Synchronize state of user entity with database
|
public void register(User user) throws PhotoAlbumException
register in interface IUserActionuser - - user to registerPhotoAlbumExceptionpublic User updateUser() throws PhotoAlbumException
updateUser in interface IUserActionPhotoAlbumExceptionpublic User refreshUser()
refreshUser in interface IUserActionPhotoAlbumExceptionpublic boolean isUserExist(String login)
isUserExist in interface IUserActionpublic boolean isEmailExist(String email)
isEmailExist in interface IUserActionCopyright © 2013 JBoss by Red Hat. All Rights Reserved.