cgl.narada.wsinfra.deployment.impl
Class RoleManagerImpl

java.lang.Object
  extended by cgl.narada.wsinfra.deployment.RoleManager
      extended by cgl.narada.wsinfra.deployment.impl.RoleManagerImpl

public class RoleManagerImpl
extends RoleManager

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.


Method Summary
 void deregisterRole(String role, String filterPipelineId)
          De-register a specific role.
protected  FilterPipeline getFilterPipelineForRole(String role)
          Retrieve the filter pipeline associated with a specific role.
static RoleManager getInstance()
           
 Enumeration getSupportedRoles()
          Gets a list of the supported roles.
 boolean hasSupportForRole(String role)
          Indicates if there is support for a specific role.
 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
 

Method Detail

getInstance

public static RoleManager getInstance()

registerFilterPipelineForRole

public 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.

Specified by:
registerFilterPipelineForRole in class RoleManager
Throws:
DeploymentException

deregisterRole

public 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.

Specified by:
deregisterRole in class RoleManager
Throws:
DeploymentException

hasSupportForRole

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

Specified by:
hasSupportForRole in class RoleManager
Throws:
DeploymentException

getSupportedRoles

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

Specified by:
getSupportedRoles in class RoleManager

getFilterPipelineForRole

protected 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.

Specified by:
getFilterPipelineForRole in class RoleManager
Throws:
DeploymentException


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