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

java.lang.Object
  |
  +--org.infoglue.cms.controllers.kernel.impl.simple.BaseController
        |
        +--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)
           
 void delete(java.lang.String userName)
           
static SystemUserController getController()
          Factory method
 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()
           
 SystemUserVO getSystemUserVOWithName(java.lang.String name)
           
 SystemUserVO update(SystemUserVO systemUserVO)
           
 SystemUserVO update(SystemUserVO systemUserVO, java.lang.String[] roleNames, java.lang.String[] groupNames)
           
 void updatePassword(java.lang.String userName)
           
 void updatePassword(java.lang.String userName, java.lang.String oldPassword, java.lang.String newPassword)
           
 
Methods inherited from class org.infoglue.cms.controllers.kernel.impl.simple.BaseController
deleteEntity, deleteEntity, deleteEntity, getAllVOObjects, getAllVOObjects, getAllVOObjects, getAllVOObjects, getVOWithId, getVOWithId, getVOWithId, toModifiableVOList, toVOList, updateEntity, updateEntity, updateEntity, validateEntity
 
Methods inherited from class java.lang.Object
equals, 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
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

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

SystemException
Bug

getSystemUserVO

public SystemUserVO getSystemUserVO(java.lang.String userName,
                                    java.lang.String password)
                             throws SystemException,
                                    Bug
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
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
SystemException
java.lang.Exception

getSystemUserVOList

public java.util.List getSystemUserVOList()
                                   throws SystemException,
                                          Bug
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
SystemException
Bug

create

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

delete

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

update

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

update

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

updatePassword

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

updatePassword

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

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