cgl.narada.wsinfra.deployment
Class RoleManager

java.lang.Object
  extended by cgl.narada.wsinfra.deployment.RoleManager
Direct Known Subclasses:
RoleManagerImpl

public abstract class RoleManager
extends Object

The RoleManager is responsible for mantaining information related to the processing of certain roles. This includes maintaining the filter-pipeline associated with a certain role, the ability to modify this pipeline dynamically and to de-register support for certain roles.


Constructor Summary
RoleManager()
           
 
Method Summary
abstract  void deregisterRole(String role, String filterPipelineId)
          De-register a specific role.
protected abstract  FilterPipeline getFilterPipelineForRole(String role)
          Retrieve the filter pipeline associated with a specific role.
static RoleManager getInstance()
           
abstract  Enumeration getSupportedRoles()
          Gets a list of the supported roles.
abstract  boolean hasSupportForRole(String role)
          Indicates if there is support for a specific role.
abstract  void registerFilterPipelineForRole(FilterPipeline filterPipeline, String role)
          Register a filter pipeline to be associated with a specific role.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoleManager

public RoleManager()
Method Detail

getInstance

public static RoleManager getInstance()

registerFilterPipelineForRole

public abstract void registerFilterPipelineForRole(FilterPipeline filterPipeline,
                                                   String role)
                                            throws DeploymentException
Register a filter pipeline to be associated with a specific role. This method throws an exception if this role has been previously registered.

Throws:
DeploymentException

deregisterRole

public abstract void deregisterRole(String role,
                                    String filterPipelineId)
                             throws DeploymentException
De-register a specific role. This method throws an exception if this role NOT been previously registered OR if the pipeline indentifier DOES NOT match the one associated with this role.

Throws:
DeploymentException

hasSupportForRole

public abstract boolean hasSupportForRole(String role)
                                   throws DeploymentException
Indicates if there is support for a specific role.

Throws:
DeploymentException

getSupportedRoles

public abstract Enumeration getSupportedRoles()
Gets a list of the supported roles.


getFilterPipelineForRole

protected abstract FilterPipeline getFilterPipelineForRole(String role)
                                                    throws DeploymentException
Retrieve the filter pipeline associated with a specific role. This method throws an exception if the role is an unknown one.

Throws:
DeploymentException


For comments and suggestions please send e-mail to The NaradaBrokering Project