uk.org.ogsadai.common.rolemap
Class SimpleFileRoleMapper

java.lang.Object
  |
  +--uk.org.ogsadai.common.rolemap.SimpleFileRoleMapper
All Implemented Interfaces:
RoleMapper

public class SimpleFileRoleMapper
extends java.lang.Object
implements RoleMapper


Constructor Summary
SimpleFileRoleMapper()
           
 
Method Summary
 Role map(java.lang.String credentials, java.lang.String database)
           
 void setConfiguration(java.lang.String configuration)
          Method setConfiguration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleFileRoleMapper

public SimpleFileRoleMapper()
Method Detail

setConfiguration

public void setConfiguration(java.lang.String configuration)
                      throws CommonSystemException,
                             CommonUserException
Description copied from interface: RoleMapper
Method setConfiguration. MUST be called before any calls to map

Specified by:
setConfiguration in interface RoleMapper
Parameters:
configuration - - from a dataResourceConfig document.
Throws:
CommonSystemException
CommonUserException
See Also:
RoleMapper.setConfiguration(String)

map

public Role map(java.lang.String credentials,
                java.lang.String database)
         throws CommonSystemException,
                CommonUserException,
                AuthorisationException
Specified by:
map in interface RoleMapper
CommonSystemException
CommonUserException
AuthorisationException
See Also:
RoleMapper.map(String, String)