com.mizar.faces.security
Class UserManagementFacesFactory

java.lang.Object
  extended by com.mizar.persistence.jpa.facade.JPAFacade
      extended by com.mizar.persistence.jpa.security.UserManagementJPAFactory
          extended by com.mizar.faces.security.UserManagementFacesFactory

public class UserManagementFacesFactory
extends UserManagementJPAFactory


Field Summary
 
Fields inherited from class com.mizar.persistence.jpa.facade.JPAFacade
em, emf, model, persistenceUnitName, schemaName, sequencesValidated, silent, verbose
 
Constructor Summary
UserManagementFacesFactory()
           
 
Method Summary
 UserBean addUser(java.lang.String username, java.lang.String password, java.lang.String emailAddress, java.lang.String projectName, java.lang.String initialRoleList)
           
 void changePassword(java.lang.String userName, java.lang.String newPassword, java.lang.String newPassword2)
          Throws an AccessException if called by anyone other than the Admin
 void changePassword(java.lang.String userName, java.lang.String oldPassword, java.lang.String newPassword, java.lang.String newPassword2)
           
 void changePassword(UserBean user, java.lang.String newPassword, java.lang.String newPassword2)
           
 UserBean createAnonymousUser()
           
 GroupBean createGroup(java.lang.String name)
           
 void createUserWithPermission(java.lang.String username, java.lang.String email, java.util.Map<java.lang.String,java.lang.String> properties)
           
static java.lang.String generateRandomPassword()
           
 UserBean getUserBean(java.lang.String userName)
           
 UserBean updateUser(User changedBean)
           
 void updateViewSetting(java.lang.String projectName, org.jdom.Element root)
           
 
Methods inherited from class com.mizar.persistence.jpa.security.UserManagementJPAFactory
addUser, changePassword, createPermission, createRole, createUser, createUserProperty, deleteGroup, deletePermission, deleteRole, deleteUser, exists, updateUser, updateViewSetting
 
Methods inherited from class com.mizar.persistence.jpa.facade.JPAFacade
closeEm, closeEm, closeEmf, executeDDL, executeNativeUpdate, executeNativeUpdate, executeUpdate, getClosableConnectionAccessor, getConnection, getConnection, getEm, getEm, getEmf, getEmf, getLogger, getPassword, getPassword, getPersistenceUnitName, getSchemaName, getSequencesValidated, getSid, getSilent, getTableName, getToleratedErrorCodes, getUrl, getUser, getVerbose, mergeBean, persist, persistBean, printAnyBean, queryTester, queryTester, refreshBean, remove, removeBean, removeBean, setEmf, setPersistenceUnitName, setSilent, setToleratedErrorCodes, setVerbose, validateSequences
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserManagementFacesFactory

public UserManagementFacesFactory()
Method Detail

addUser

public UserBean addUser(java.lang.String username,
                        java.lang.String password,
                        java.lang.String emailAddress,
                        java.lang.String projectName,
                        java.lang.String initialRoleList)
                 throws UserExistsException,
                        AlreadyExistsException,
                        InvalidEmailException,
                        AccessException
Throws:
UserExistsException
AlreadyExistsException
InvalidEmailException
AccessException

createAnonymousUser

public UserBean createAnonymousUser()
                             throws java.lang.Exception
Overrides:
createAnonymousUser in class UserManagementJPAFactory
Throws:
java.lang.Exception

createGroup

public GroupBean createGroup(java.lang.String name)
                      throws AlreadyExistsException,
                             java.lang.Exception
Overrides:
createGroup in class UserManagementJPAFactory
Throws:
AlreadyExistsException
java.lang.Exception

updateUser

public UserBean updateUser(User changedBean)
                    throws java.lang.Exception
Throws:
java.lang.Exception

generateRandomPassword

public static java.lang.String generateRandomPassword()

getUserBean

public UserBean getUserBean(java.lang.String userName)
                     throws AccessException
Overrides:
getUserBean in class UserManagementJPAFactory
Throws:
AccessException

changePassword

public void changePassword(UserBean user,
                           java.lang.String newPassword,
                           java.lang.String newPassword2)
                    throws AccessException
Throws:
AccessException

changePassword

public void changePassword(java.lang.String userName,
                           java.lang.String newPassword,
                           java.lang.String newPassword2)
                    throws AccessException
Throws an AccessException if called by anyone other than the Admin

Parameters:
userName -
newPassword -
newPassword2 -
Throws:
AccessException

changePassword

public void changePassword(java.lang.String userName,
                           java.lang.String oldPassword,
                           java.lang.String newPassword,
                           java.lang.String newPassword2)
                    throws AccessException
Overrides:
changePassword in class UserManagementJPAFactory
Throws:
AccessException

updateViewSetting

public void updateViewSetting(java.lang.String projectName,
                              org.jdom.Element root)
                       throws AccessException
Throws:
AccessException

createUserWithPermission

public void createUserWithPermission(java.lang.String username,
                                     java.lang.String email,
                                     java.util.Map<java.lang.String,java.lang.String> properties)
                              throws UserExistsException,
                                     InvalidEmailException,
                                     EmailExistsException,
                                     AccessException
Throws:
UserExistsException
InvalidEmailException
EmailExistsException
AccessException