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

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

public class SystemUserController
extends BaseController

SystemUserController.java Created on 2002-aug-28

Author:
Stefan Sik, ss@frovi.com This class is a helper class for the use case handle SystemUsers

Constructor Summary
SystemUserController()
           
 
Method Summary
 SystemUserVO create(SystemUserVO systemUserVO)
           
 SystemUser create(SystemUserVO systemUserVO, org.exolab.castor.jdo.Database db)
           
 void delete(java.lang.String userName)
           
 void delete(java.lang.String userName, org.exolab.castor.jdo.Database db)
           
static SystemUserController getController()
          Factory method
 java.util.List getFilteredSystemUserList(java.lang.String firstName, java.lang.String lastName, java.lang.String userName, java.lang.String email, java.lang.String[] roleNames, org.exolab.castor.jdo.Database db)
           
 java.util.List getFilteredSystemUserVOList(java.lang.String firstName, java.lang.String lastName, java.lang.String userName, java.lang.String email, java.lang.String[] roleNames)
           
 BaseEntityVO getNewVO()
          This is a method that gives the user back an newly initialized ValueObject for this entity that the controller is handling.
 SystemUser getReadOnlySystemUserWithName(java.lang.String userName, org.exolab.castor.jdo.Database db)
          Get the SystemUser with the userName
 SystemUser getSystemUser(org.exolab.castor.jdo.Database db, java.lang.String userName, java.lang.String password)
           
 SystemUser getSystemUserWithName(java.lang.String userName, org.exolab.castor.jdo.Database db)
          Get the SystemUser with the userName
 SystemUserVO getSystemUserVO(org.exolab.castor.jdo.Database db, java.lang.String userName, java.lang.String password)
           
 SystemUserVO getSystemUserVO(java.lang.String userName, java.lang.String password)
           
 java.util.List getSystemUserVOList()
           
 java.util.List getSystemUserVOList(org.exolab.castor.jdo.Database db)
           
 SystemUserVO getSystemUserVOWithName(java.lang.String name)
           
 SystemUserVO update(SystemUserVO systemUserVO)
           
 SystemUserVO update(SystemUserVO systemUserVO, java.lang.String[] roleNames, java.lang.String[] groupNames)
           
 SystemUser update(SystemUserVO systemUserVO, java.lang.String[] roleNames, java.lang.String[] groupNames, org.exolab.castor.jdo.Database db)
           
 void updatePassword(java.lang.String userName)
           
 void updatePassword(java.lang.String userName, org.exolab.castor.jdo.Database db)
           
 void updatePassword(java.lang.String userName, java.lang.String oldPassword, java.lang.String newPassword)
           
 void updatePassword(java.lang.String userName, java.lang.String oldPassword, java.lang.String newPassword, org.exolab.castor.jdo.Database db)
           
 
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, 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

SystemUserController

public SystemUserController()
Method Detail

getController

public static SystemUserController getController()
Factory method


getSystemUserVOWithName

public SystemUserVO getSystemUserVOWithName(java.lang.String name)
                                     throws SystemException,
                                            Bug
Throws:
SystemException
Bug

getReadOnlySystemUserWithName

public SystemUser getReadOnlySystemUserWithName(java.lang.String userName,
                                                org.exolab.castor.jdo.Database db)
                                         throws SystemException,
                                                Bug
Get the SystemUser with the userName

Throws:
SystemException
Bug

getSystemUserWithName

public SystemUser getSystemUserWithName(java.lang.String userName,
                                        org.exolab.castor.jdo.Database db)
                                 throws SystemException,
                                        Bug
Get the SystemUser with the userName

Throws:
SystemException
Bug

getSystemUserVO

public SystemUserVO getSystemUserVO(java.lang.String userName,
                                    java.lang.String password)
                             throws SystemException,
                                    Bug
Throws:
SystemException
Bug

getSystemUserVO

public SystemUserVO getSystemUserVO(org.exolab.castor.jdo.Database db,
                                    java.lang.String userName,
                                    java.lang.String password)
                             throws SystemException,
                                    java.lang.Exception
Throws:
SystemException
java.lang.Exception

getSystemUser

public SystemUser getSystemUser(org.exolab.castor.jdo.Database db,
                                java.lang.String userName,
                                java.lang.String password)
                         throws SystemException,
                                java.lang.Exception
Throws:
SystemException
java.lang.Exception

getSystemUserVOList

public java.util.List getSystemUserVOList()
                                   throws SystemException,
                                          Bug
Throws:
SystemException
Bug

getSystemUserVOList

public java.util.List getSystemUserVOList(org.exolab.castor.jdo.Database db)
                                   throws SystemException,
                                          Bug
Throws:
SystemException
Bug

getFilteredSystemUserVOList

public java.util.List getFilteredSystemUserVOList(java.lang.String firstName,
                                                  java.lang.String lastName,
                                                  java.lang.String userName,
                                                  java.lang.String email,
                                                  java.lang.String[] roleNames)
                                           throws SystemException,
                                                  Bug
Throws:
SystemException
Bug

getFilteredSystemUserList

public java.util.List getFilteredSystemUserList(java.lang.String firstName,
                                                java.lang.String lastName,
                                                java.lang.String userName,
                                                java.lang.String email,
                                                java.lang.String[] roleNames,
                                                org.exolab.castor.jdo.Database db)
                                         throws SystemException,
                                                Bug,
                                                java.lang.Exception
Throws:
SystemException
Bug
java.lang.Exception

create

public SystemUserVO create(SystemUserVO systemUserVO)
                    throws ConstraintException,
                           SystemException
Throws:
ConstraintException
SystemException

create

public SystemUser create(SystemUserVO systemUserVO,
                         org.exolab.castor.jdo.Database db)
                  throws ConstraintException,
                         SystemException,
                         java.lang.Exception
Throws:
ConstraintException
SystemException
java.lang.Exception

delete

public void delete(java.lang.String userName)
            throws ConstraintException,
                   SystemException
Throws:
ConstraintException
SystemException

delete

public void delete(java.lang.String userName,
                   org.exolab.castor.jdo.Database db)
            throws ConstraintException,
                   SystemException,
                   java.lang.Exception
Throws:
ConstraintException
SystemException
java.lang.Exception

update

public SystemUserVO update(SystemUserVO systemUserVO)
                    throws ConstraintException,
                           SystemException
Throws:
ConstraintException
SystemException

update

public SystemUserVO update(SystemUserVO systemUserVO,
                           java.lang.String[] roleNames,
                           java.lang.String[] groupNames)
                    throws ConstraintException,
                           SystemException
Throws:
ConstraintException
SystemException

update

public SystemUser update(SystemUserVO systemUserVO,
                         java.lang.String[] roleNames,
                         java.lang.String[] groupNames,
                         org.exolab.castor.jdo.Database db)
                  throws ConstraintException,
                         SystemException
Throws:
ConstraintException
SystemException

updatePassword

public void updatePassword(java.lang.String userName)
                    throws ConstraintException,
                           SystemException
Throws:
ConstraintException
SystemException

updatePassword

public void updatePassword(java.lang.String userName,
                           org.exolab.castor.jdo.Database db)
                    throws ConstraintException,
                           SystemException
Throws:
ConstraintException
SystemException

updatePassword

public void updatePassword(java.lang.String userName,
                           java.lang.String oldPassword,
                           java.lang.String newPassword)
                    throws ConstraintException,
                           SystemException
Throws:
ConstraintException
SystemException

updatePassword

public void updatePassword(java.lang.String userName,
                           java.lang.String oldPassword,
                           java.lang.String newPassword,
                           org.exolab.castor.jdo.Database db)
                    throws ConstraintException,
                           SystemException,
                           java.lang.Exception
Throws:
ConstraintException
SystemException
java.lang.Exception

getNewVO

public BaseEntityVO getNewVO()
This is a method that gives the user back an newly initialized ValueObject for this entity that the controller is handling.

Specified by:
getNewVO in class BaseController


Copyright © 2005 InfoGlue.org All Rights Reserved.