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

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

public class GroupControllerProxy
extends BaseController

Author:
Mattias Bogeblad This class acts as the proxy for getting the right groups.

Constructor Summary
GroupControllerProxy(org.exolab.castor.jdo.Database transactionObject)
           
 
Method Summary
 InfoGlueGroup createGroup(GroupVO groupVO)
          This method creates a new group
 void deleteGroup(java.lang.String groupName)
          This method deletes an existing user
 java.util.List getAllGroups()
          This method returns a specific content-object
 AuthorizationModule getAuthorizationModule()
          This method instantiates the AuthorizationModule.
static GroupControllerProxy getController()
           
static GroupControllerProxy getController(org.exolab.castor.jdo.Database transactionObject)
           
 InfoGlueGroup getGroup(java.lang.String groupName)
          This method returns a certain group
 java.util.List getInfoGluePrincipals(java.lang.String groupName)
          This method returns a list of InfoGlue Principals which are part of this group
 BaseEntityVO getNewVO()
           
 boolean getSupportCreate()
          This method return whether the module in question supports creation of new users.
 boolean getSupportDelete()
          This method return whether the module in question supports deletes of users.
 boolean getSupportUpdate()
          This method return whether the module in question supports updates to the values.
 void updateGroup(GroupVO groupVO, java.lang.String[] userNames)
          This method updates an existing group
 
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

GroupControllerProxy

public GroupControllerProxy(org.exolab.castor.jdo.Database transactionObject)
Method Detail

getController

public static GroupControllerProxy getController()

getController

public static GroupControllerProxy getController(org.exolab.castor.jdo.Database transactionObject)

getAuthorizationModule

public AuthorizationModule getAuthorizationModule()
This method instantiates the AuthorizationModule.


getSupportUpdate

public boolean getSupportUpdate()
                         throws ConstraintException,
                                SystemException,
                                java.lang.Exception
This method return whether the module in question supports updates to the values.

Throws:
ConstraintException
SystemException
java.lang.Exception

getSupportDelete

public boolean getSupportDelete()
                         throws ConstraintException,
                                SystemException,
                                java.lang.Exception
This method return whether the module in question supports deletes of users.

Throws:
ConstraintException
SystemException
java.lang.Exception

getSupportCreate

public boolean getSupportCreate()
                         throws ConstraintException,
                                SystemException,
                                java.lang.Exception
This method return whether the module in question supports creation of new users.

Throws:
ConstraintException
SystemException
java.lang.Exception

getAllGroups

public java.util.List getAllGroups()
                            throws ConstraintException,
                                   SystemException,
                                   java.lang.Exception
This method returns a specific content-object

Throws:
ConstraintException
SystemException
java.lang.Exception

getGroup

public InfoGlueGroup getGroup(java.lang.String groupName)
                       throws ConstraintException,
                              SystemException,
                              java.lang.Exception
This method returns a certain group

Throws:
ConstraintException
SystemException
java.lang.Exception

getInfoGluePrincipals

public java.util.List getInfoGluePrincipals(java.lang.String groupName)
                                     throws ConstraintException,
                                            SystemException,
                                            java.lang.Exception
This method returns a list of InfoGlue Principals which are part of this group

Throws:
ConstraintException
SystemException
java.lang.Exception

createGroup

public InfoGlueGroup createGroup(GroupVO groupVO)
                          throws ConstraintException,
                                 SystemException,
                                 java.lang.Exception
This method creates a new group

Throws:
ConstraintException
SystemException
java.lang.Exception

updateGroup

public void updateGroup(GroupVO groupVO,
                        java.lang.String[] userNames)
                 throws ConstraintException,
                        SystemException,
                        java.lang.Exception
This method updates an existing group

Throws:
ConstraintException
SystemException
java.lang.Exception

deleteGroup

public void deleteGroup(java.lang.String groupName)
                 throws ConstraintException,
                        SystemException,
                        java.lang.Exception
This method deletes an existing user

Throws:
ConstraintException
SystemException
java.lang.Exception

getNewVO

public BaseEntityVO getNewVO()
Specified by:
getNewVO in class BaseController


Copyright © 2005 InfoGlue.org All Rights Reserved.