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

java.lang.Object
  |
  +--org.infoglue.cms.controllers.kernel.impl.simple.BaseController
        |
        +--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()
           
 
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()
           
 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
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

RoleControllerProxy

public RoleControllerProxy()
Method Detail

getController

public static RoleControllerProxy getController()

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.

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.

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.

ConstraintException
SystemException
java.lang.Exception

getAllRoles

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

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

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

ConstraintException
SystemException
java.lang.Exception

createRole

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

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

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

ConstraintException
SystemException
java.lang.Exception

getNewVO

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