org.infoglue.cms.controllers.kernel.impl.simple
Class UserControllerProxy

java.lang.Object
  extended by org.infoglue.cms.controllers.kernel.impl.simple.BaseController
      extended by org.infoglue.cms.controllers.kernel.impl.simple.UserControllerProxy

public class UserControllerProxy
extends BaseController

Author:
Mattias Bogeblad This class acts as the proxy for getting the right roles.

Constructor Summary
UserControllerProxy(org.exolab.castor.jdo.Database transactionObject)
           
 
Method Summary
 InfoGluePrincipal createUser(SystemUserVO systemUserVO)
          This method creates a new user
 void deleteUser(java.lang.String userName)
          This method deletes an existing user
 java.util.List getAllUsers()
          This method returns a complete list of available users
 AuthorizationModule getAuthorizationModule()
          This method instantiates the AuthorizationModule.
static UserControllerProxy getController()
           
static UserControllerProxy getController(org.exolab.castor.jdo.Database transactionObject)
           
 java.util.List getFilteredUsers(java.lang.String firstName, java.lang.String lastName, java.lang.String userName, java.lang.String email, java.lang.String[] roleNames)
          This method returns a list of all sought for users
 BaseEntityVO getNewVO()
           
 boolean getSupportCreate()
          This method return whether the module in question supports creation of new users.
 boolean getSupportDelete()
          This method return whether the module in question supports deletes of users.
 boolean getSupportUpdate()
          This method return whether the module in question supports updates to the values.
 InfoGluePrincipal getUser(java.lang.String userName)
          This method returns a certain user
 void updateUser(SystemUserVO systemUserVO, java.lang.String[] roleNames, java.lang.String[] groupNames)
          This method updates an existing user
 void updateUserPassword(java.lang.String userName)
          This method makes a new password and sends it to the user
 void updateUserPassword(java.lang.String userName, java.lang.String oldPassword, java.lang.String newPassword)
          This method makes a new password and sends it to the user
 
Methods inherited from class org.infoglue.cms.controllers.kernel.impl.simple.BaseController
beginTransaction, beginTransaction, closeDatabase, commitTransaction, createEntity, createEntity, createQuery, deleteEntity, deleteEntity, deleteEntity, deleteEntity, executeQuery, executeQuery, executeQuery, executeQuery, getAllObjects, getAllVOObjects, getAllVOObjects, getAllVOObjects, getAllVOObjects, getLogger, getObjectWithId, getObjectWithId, getObjectWithIdAsReadOnly, getVOWithId, getVOWithId, getVOWithId, getVOWithId, intercept, intercept, rollbackTransaction, toModifiableVOList, toVOList, updateEntity, updateEntity, updateEntity, updateEntity, validateEntity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserControllerProxy

public UserControllerProxy(org.exolab.castor.jdo.Database transactionObject)
Method Detail

getController

public static UserControllerProxy getController()

getController

public static UserControllerProxy getController(org.exolab.castor.jdo.Database transactionObject)

getAuthorizationModule

public AuthorizationModule getAuthorizationModule()
                                           throws SystemException
This method instantiates the AuthorizationModule.

Throws:
SystemException

getSupportUpdate

public boolean getSupportUpdate()
                         throws ConstraintException,
                                SystemException,
                                java.lang.Exception
This method return whether the module in question supports updates to the values.

Throws:
ConstraintException
SystemException
java.lang.Exception

getSupportDelete

public boolean getSupportDelete()
                         throws ConstraintException,
                                SystemException,
                                java.lang.Exception
This method return whether the module in question supports deletes of users.

Throws:
ConstraintException
SystemException
java.lang.Exception

getSupportCreate

public boolean getSupportCreate()
                         throws ConstraintException,
                                SystemException,
                                java.lang.Exception
This method return whether the module in question supports creation of new users.

Throws:
ConstraintException
SystemException
java.lang.Exception

getAllUsers

public java.util.List getAllUsers()
                           throws ConstraintException,
                                  SystemException,
                                  java.lang.Exception
This method returns a complete list of available users

Throws:
ConstraintException
SystemException
java.lang.Exception

getFilteredUsers

public java.util.List getFilteredUsers(java.lang.String firstName,
                                       java.lang.String lastName,
                                       java.lang.String userName,
                                       java.lang.String email,
                                       java.lang.String[] roleNames)
                                throws java.lang.Exception
This method returns a list of all sought for users

Throws:
java.lang.Exception

getUser

public InfoGluePrincipal getUser(java.lang.String userName)
                          throws ConstraintException,
                                 SystemException,
                                 java.lang.Exception
This method returns a certain user

Throws:
ConstraintException
SystemException
java.lang.Exception

createUser

public InfoGluePrincipal createUser(SystemUserVO systemUserVO)
                             throws ConstraintException,
                                    SystemException,
                                    java.lang.Exception
This method creates a new user

Throws:
ConstraintException
SystemException
java.lang.Exception

updateUser

public void updateUser(SystemUserVO systemUserVO,
                       java.lang.String[] roleNames,
                       java.lang.String[] groupNames)
                throws ConstraintException,
                       SystemException,
                       java.lang.Exception
This method updates an existing user

Throws:
ConstraintException
SystemException
java.lang.Exception

updateUserPassword

public void updateUserPassword(java.lang.String userName)
                        throws ConstraintException,
                               SystemException,
                               java.lang.Exception
This method makes a new password and sends it to the user

Throws:
ConstraintException
SystemException
java.lang.Exception

updateUserPassword

public void updateUserPassword(java.lang.String userName,
                               java.lang.String oldPassword,
                               java.lang.String newPassword)
                        throws ConstraintException,
                               SystemException,
                               java.lang.Exception
This method makes a new password and sends it to the user

Throws:
ConstraintException
SystemException
java.lang.Exception

deleteUser

public void deleteUser(java.lang.String userName)
                throws ConstraintException,
                       SystemException,
                       java.lang.Exception
This method deletes an existing user

Throws:
ConstraintException
SystemException
java.lang.Exception

getNewVO

public BaseEntityVO getNewVO()
Specified by:
getNewVO in class BaseController


Copyright © 2005 InfoGlue.org All Rights Reserved.