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

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

public class GroupController
extends BaseController

GroupHelper.java Created on 2002-aug-28

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

Constructor Summary
GroupController()
           
 
Method Summary
 GroupVO create(GroupVO groupVO)
           
 Group create(GroupVO groupVO, org.exolab.castor.jdo.Database db)
           
 void delete(GroupVO groupVO)
           
 void delete(java.lang.String groupName)
           
 void delete(java.lang.String groupName, org.exolab.castor.jdo.Database db)
           
static GroupController getController()
          Factory method
 java.util.Collection getGroupList(java.lang.String userName, org.exolab.castor.jdo.Database db)
          This method gets a list of Groups for a particular systemUser.
 java.util.List getGroupSystemUserVOList(java.lang.String groupName)
           
 java.util.List getGroupSystemUserVOList(java.lang.String userName, org.exolab.castor.jdo.Database db)
           
 Group getGroupWithId(java.lang.Integer groupId, org.exolab.castor.jdo.Database db)
           
 Group getGroupWithName(java.lang.String groupName, org.exolab.castor.jdo.Database db)
           
 java.util.List getGroupVOList()
           
 java.util.List getGroupVOList(org.exolab.castor.jdo.Database db)
           
 java.util.List getGroupVOList(java.lang.String userName)
          This method gets a list of Groups for a particular systemUser.
 GroupVO getGroupVOWithId(java.lang.Integer groupId)
           
 GroupVO getGroupVOWithId(java.lang.String groupName)
           
 GroupVO getGroupVOWithId(java.lang.String groupName, org.exolab.castor.jdo.Database db)
           
 BaseEntityVO getNewVO()
          This is a method that gives the user back an newly initialized ValueObject for this entity that the controller is handling.
 GroupVO update(GroupVO groupVO)
           
 GroupVO update(GroupVO groupVO, org.exolab.castor.jdo.Database db)
           
 GroupVO update(GroupVO groupVO, java.lang.String[] systemUsers)
           
 Group update(GroupVO groupVO, 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, getAllObjects, getAllVOObjects, getAllVOObjects, getAllVOObjects, getAllVOObjects, 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

GroupController

public GroupController()
Method Detail

getController

public static GroupController getController()
Factory method


getGroupWithId

public Group getGroupWithId(java.lang.Integer groupId,
                            org.exolab.castor.jdo.Database db)
                     throws SystemException,
                            Bug
Throws:
SystemException
Bug

getGroupWithName

public Group getGroupWithName(java.lang.String groupName,
                              org.exolab.castor.jdo.Database db)
                       throws SystemException,
                              Bug
Throws:
SystemException
Bug

getGroupVOWithId

public GroupVO getGroupVOWithId(java.lang.Integer groupId)
                         throws SystemException,
                                Bug
Throws:
SystemException
Bug

getGroupVOWithId

public GroupVO getGroupVOWithId(java.lang.String groupName)
                         throws SystemException,
                                Bug
Throws:
SystemException
Bug

getGroupVOWithId

public GroupVO getGroupVOWithId(java.lang.String groupName,
                                org.exolab.castor.jdo.Database db)
                         throws SystemException,
                                Bug
Throws:
SystemException
Bug

getGroupVOList

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

getGroupVOList

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

create

public GroupVO create(GroupVO groupVO)
               throws ConstraintException,
                      SystemException
Throws:
ConstraintException
SystemException

create

public Group create(GroupVO groupVO,
                    org.exolab.castor.jdo.Database db)
             throws ConstraintException,
                    SystemException,
                    java.lang.Exception
Throws:
ConstraintException
SystemException
java.lang.Exception

delete

public void delete(GroupVO groupVO)
            throws ConstraintException,
                   SystemException
Throws:
ConstraintException
SystemException

delete

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

delete

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

getGroupSystemUserVOList

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

getGroupSystemUserVOList

public java.util.List getGroupSystemUserVOList(java.lang.String groupName)
                                        throws SystemException,
                                               Bug
Throws:
SystemException
Bug

update

public GroupVO update(GroupVO groupVO)
               throws ConstraintException,
                      SystemException
Throws:
ConstraintException
SystemException

update

public GroupVO update(GroupVO groupVO,
                      org.exolab.castor.jdo.Database db)
               throws ConstraintException,
                      SystemException
Throws:
ConstraintException
SystemException

update

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

update

public Group update(GroupVO groupVO,
                    java.lang.String[] systemUsers,
                    org.exolab.castor.jdo.Database db)
             throws ConstraintException,
                    SystemException
Throws:
ConstraintException
SystemException

getGroupVOList

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

Parameters:
systemUserId -
Returns:
Throws:
SystemException
Bug

getGroupList

public java.util.Collection getGroupList(java.lang.String userName,
                                         org.exolab.castor.jdo.Database db)
                                  throws SystemException,
                                         Bug
This method gets a list of Groups 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.