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

java.lang.Object
  |
  +--org.infoglue.cms.controllers.kernel.impl.simple.BaseController
        |
        +--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)
           
 void delete(GroupVO groupVO)
           
 void delete(java.lang.String groupName)
           
static GroupController getController()
          Factory method
 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(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)
           
 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, java.lang.String[] systemUsers)
           
 
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

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
SystemException
Bug

getGroupWithName

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

getGroupVOWithId

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

getGroupVOWithId

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

getGroupVOList

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

create

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

delete

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

delete

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

getGroupSystemUserVOList

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

getGroupSystemUserVOList

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

update

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

update

public GroupVO update(GroupVO groupVO,
                      java.lang.String[] systemUsers)
               throws ConstraintException,
                      SystemException
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.

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