uk.org.ogsadai.dataresource.config
Class RoleMapperSpec

java.lang.Object
  |
  +--uk.org.ogsadai.dataresource.config.RoleMapperSpec

public class RoleMapperSpec
extends java.lang.Object

Role mapper information. The information can be configured using DOM representation of a Data Resource Configuration document roleMap element.

Author:
OGSA-DAI team.

Constructor Summary
RoleMapperSpec()
           
 
Method Summary
 void configure(org.w3c.dom.Element roleMapElt)
          Create data resource information by parsing the given element.
 java.lang.String getConfiguration()
          Get role mapper configuration file.
 java.lang.String getImplementation()
          Get role mapper class.
 java.lang.String getName()
          Get role mapper name.
 void setConfiguration(java.lang.String configuration)
          Set role mapper configuration file.
 void setImplementation(java.lang.String implementation)
          Set role mapper class.
 void setName(java.lang.String name)
          Set role mapper name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoleMapperSpec

public RoleMapperSpec()
Method Detail

configure

public void configure(org.w3c.dom.Element roleMapElt)
               throws java.lang.IllegalArgumentException
Create data resource information by parsing the given element.

Parameters:
roleMapElt - - DOM representation of a Data Resource Configuration document roleMap element.
Throws:
java.lang.IllegalArgumentException - if roleMapElt is null or does not represent a roleMap element.

getName

public java.lang.String getName()
Get role mapper name.

Returns:
role mapper name.

setName

public void setName(java.lang.String name)
Set role mapper name.

Parameters:
name - - role mapper name.

getImplementation

public java.lang.String getImplementation()
Get role mapper class.

Returns:
implementation

setImplementation

public void setImplementation(java.lang.String implementation)
Set role mapper class.

Parameters:
implementation -
Throws:
java.lang.IllegalArgumentException - if implementation is null or the empty string.

getConfiguration

public java.lang.String getConfiguration()
Get role mapper configuration file.

Returns:
role mapper configuration file

setConfiguration

public void setConfiguration(java.lang.String configuration)
Set role mapper configuration file.

Parameters:
configuration - - role mapper configuration file