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

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

public class RoleController
extends BaseController

RoleHelper.java Created on 2002-aug-28

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

Constructor Summary
RoleController()
           
 
Method Summary
 RoleVO create(RoleVO roleVO)
           
 Role create(RoleVO roleVO, org.exolab.castor.jdo.Database db)
           
 void delete(RoleVO roleVO)
           
 void delete(RoleVO roleVO, org.exolab.castor.jdo.Database db)
           
 void delete(java.lang.String roleName)
           
 void delete(java.lang.String roleName, org.exolab.castor.jdo.Database db)
           
static RoleController getController()
          Factory method
 BaseEntityVO getNewVO()
          This is a method that gives the user back an newly initialized ValueObject for this entity that the controller is handling.
 java.util.Collection getRoleList(java.lang.String userName, org.exolab.castor.jdo.Database db)
          This method gets a list of Roles for a particular systemUser.
 java.util.List getRoleSystemUserVOList(java.lang.String roleName)
           
 java.util.List getRoleSystemUserVOList(java.lang.String userName, org.exolab.castor.jdo.Database db)
           
 Role getRoleWithId(java.lang.Integer roleId, org.exolab.castor.jdo.Database db)
           
 Role getRoleWithName(java.lang.String roleName, org.exolab.castor.jdo.Database db)
           
 java.util.List getRoleVOList()
           
 java.util.List getRoleVOList(org.exolab.castor.jdo.Database db)
           
 java.util.List getRoleVOList(java.lang.String userName)
          This method gets a list of Roles for a particular systemUser.
 RoleVO getRoleVOWithId(java.lang.Integer roleId)
           
 RoleVO getRoleVOWithId(java.lang.String roleName)
           
 RoleVO getRoleVOWithId(java.lang.String roleName, org.exolab.castor.jdo.Database db)
           
 RoleVO update(RoleVO roleVO)
           
 RoleVO update(RoleVO roleVO, java.lang.String[] systemUsers)
           
 Role update(RoleVO roleVO, java.lang.String[] systemUsers, 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

RoleController

public RoleController()
Method Detail

getController

public static RoleController getController()
Factory method


getRoleWithId

public Role getRoleWithId(java.lang.Integer roleId,
                          org.exolab.castor.jdo.Database db)
                   throws SystemException,
                          Bug
Throws:
SystemException
Bug

getRoleWithName

public Role getRoleWithName(java.lang.String roleName,
                            org.exolab.castor.jdo.Database db)
                     throws SystemException,
                            Bug
Throws:
SystemException
Bug

getRoleVOWithId

public RoleVO getRoleVOWithId(java.lang.Integer roleId)
                       throws SystemException,
                              Bug
Throws:
SystemException
Bug

getRoleVOWithId

public RoleVO getRoleVOWithId(java.lang.String roleName)
                       throws SystemException,
                              Bug
Throws:
SystemException
Bug

getRoleVOWithId

public RoleVO getRoleVOWithId(java.lang.String roleName,
                              org.exolab.castor.jdo.Database db)
                       throws SystemException,
                              Bug
Throws:
SystemException
Bug

getRoleVOList

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

getRoleVOList

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

create

public RoleVO create(RoleVO roleVO)
              throws ConstraintException,
                     SystemException
Throws:
ConstraintException
SystemException

create

public Role create(RoleVO roleVO,
                   org.exolab.castor.jdo.Database db)
            throws ConstraintException,
                   SystemException,
                   java.lang.Exception
Throws:
ConstraintException
SystemException
java.lang.Exception

delete

public void delete(RoleVO roleVO)
            throws ConstraintException,
                   SystemException
Throws:
ConstraintException
SystemException

delete

public void delete(RoleVO roleVO,
                   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 roleName)
            throws ConstraintException,
                   SystemException
Throws:
ConstraintException
SystemException

delete

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

getRoleSystemUserVOList

public java.util.List getRoleSystemUserVOList(java.lang.String userName,
                                              org.exolab.castor.jdo.Database db)
                                       throws SystemException,
                                              Bug
Throws:
SystemException
Bug

getRoleSystemUserVOList

public java.util.List getRoleSystemUserVOList(java.lang.String roleName)
                                       throws SystemException,
                                              Bug
Throws:
SystemException
Bug

update

public RoleVO update(RoleVO roleVO)
              throws ConstraintException,
                     SystemException
Throws:
ConstraintException
SystemException

update

public RoleVO update(RoleVO roleVO,
                     java.lang.String[] systemUsers)
              throws ConstraintException,
                     SystemException
Throws:
ConstraintException
SystemException

update

public Role update(RoleVO roleVO,
                   java.lang.String[] systemUsers,
                   org.exolab.castor.jdo.Database db)
            throws ConstraintException,
                   SystemException
Throws:
ConstraintException
SystemException

getRoleVOList

public java.util.List getRoleVOList(java.lang.String userName)
                             throws SystemException,
                                    Bug
This method gets a list of Roles for a particular systemUser.

Parameters:
systemUserId -
Returns:
Throws:
SystemException
Bug

getRoleList

public java.util.Collection getRoleList(java.lang.String userName,
                                        org.exolab.castor.jdo.Database db)
                                 throws SystemException,
                                        Bug
This method gets a list of Roles for a particular systemUser.

Parameters:
systemUserId -
Returns:
Throws:
SystemException
Bug

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.