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

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

public class RoleControllerProxy
extends BaseController

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

Constructor Summary
RoleControllerProxy(org.exolab.castor.jdo.Database transactionObject)
           
 
Method Summary
 InfoGlueRole createRole(RoleVO roleVO)
          This method creates a new role
 void deleteRole(java.lang.String roleName)
          This method deletes an existing user
 java.util.List getAllRoles()
          This method returns a specific content-object
 AuthorizationModule getAuthorizationModule()
          This method instantiates the AuthorizationModule.
static RoleControllerProxy getController()
           
static RoleControllerProxy getController(org.exolab.castor.jdo.Database transactionObject)
           
 java.util.List getInfoGluePrincipals(java.lang.String roleName)
          This method returns a list of InfoGlue Principals which are part of this role
 BaseEntityVO getNewVO()
           
 InfoGlueRole getRole(java.lang.String roleName)
          This method returns a certain role
 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 updateRole(RoleVO roleVO, java.lang.String[] userNames)
          This method updates an existing role
 
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

RoleControllerProxy

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

getController

public static RoleControllerProxy getController()

getController

public static RoleControllerProxy 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

getAllRoles

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

Throws:
ConstraintException
SystemException
java.lang.Exception

getRole

public InfoGlueRole getRole(java.lang.String roleName)
                     throws ConstraintException,
                            SystemException,
                            java.lang.Exception
This method returns a certain role

Throws:
ConstraintException
SystemException
java.lang.Exception

getInfoGluePrincipals

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

Throws:
ConstraintException
SystemException
java.lang.Exception

createRole

public InfoGlueRole createRole(RoleVO roleVO)
                        throws ConstraintException,
                               SystemException,
                               java.lang.Exception
This method creates a new role

Throws:
ConstraintException
SystemException
java.lang.Exception

updateRole

public void updateRole(RoleVO roleVO,
                       java.lang.String[] userNames)
                throws ConstraintException,
                       SystemException,
                       java.lang.Exception
This method updates an existing role

Throws:
ConstraintException
SystemException
java.lang.Exception

deleteRole

public void deleteRole(java.lang.String roleName)
                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.