RichFaces Photoalbum 4.3.5.Final

org.richfaces.photoalbum.model.actions
Class UserAction

java.lang.Object
  extended by org.richfaces.photoalbum.model.actions.UserAction
All Implemented Interfaces:
IUserAction

public class UserAction
extends Object
implements IUserAction

Class for manipulating with user entity. Analogous to DAO pattern. EJB3 Bean

Author:
Andrey Markhel

Constructor Summary
UserAction()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserAction

public UserAction()
Method Detail

register

public void register(User user)
              throws PhotoAlbumException
Persist user entity to database

Specified by:
register in interface IUserAction
Parameters:
user - - user to register
Throws:
PhotoAlbumException

updateUser

public User updateUser()
                throws PhotoAlbumException
Synchronize state of user entity with database

Specified by:
updateUser in interface IUserAction
Returns:
user if success
Throws:
PhotoAlbumException

refreshUser

public User refreshUser()
Refresh state of user entity with database

Specified by:
refreshUser in interface IUserAction
Returns:
user if success
Throws:
PhotoAlbumException

isUserExist

public boolean isUserExist(String login)
Check if user with specified login already exist

Specified by:
isUserExist in interface IUserAction
Returns:
is user with specified login already exist

isEmailExist

public boolean isEmailExist(String email)
Check if user with specified email already exist

Specified by:
isEmailExist in interface IUserAction
Returns:
is user with specified email already exist

RichFaces Photoalbum 4.3.5.Final

Copyright © 2014 JBoss by Red Hat. All Rights Reserved.