uk.org.ogsadai.service.wsrf.dataservice.impl
Class ConfigurableDataServiceImpl

java.lang.Object
  |
  +--uk.org.ogsadai.service.wsrf.dataservice.impl.DataServiceImpl
        |
        +--uk.org.ogsadai.service.wsrf.dataservice.impl.ConfigurableDataServiceImpl
All Implemented Interfaces:
SecurityContextProvider

public class ConfigurableDataServiceImpl
extends DataServiceImpl

The ConfigurableDataServiceImpl provides a service object for interacting with data service resources. It is a sub-class of DataServiceImpl, extended to offer operations to request the deployment of an additional data service resource or the rereading of the role maps for an existing data service resource.

For deployment, it is assumed that additional configuration files are placed server-side within a directory within the directory specified by the dai.config.files.root property held within the service deployment descriptor. This is done via some out-of-band means. The deployer then invokes the deploy() operation passing the name of the data service resource. It is assumed that this name matches the local name of the directory within which the configuration files are located

The class provides an implementation of the automatically-generated ConfigurableDataServicePortType methods relating to data resource-related operations (other operations are expected to be provided by Globus Toolkit operation providers).

Author:
The OGSA-DAI Project Team
See Also:
ConfigurableDataServicePortType

Field Summary
 
Fields inherited from class uk.org.ogsadai.service.wsrf.dataservice.impl.DataServiceImpl
mResourcesFile, RESOURCE_ATTR, RESOURCE_ELT
 
Constructor Summary
ConfigurableDataServiceImpl()
          Create a new configurable data service.
 
Method Summary
 DeployResponse deploy(Deploy deploy)
          Expose a new data service resource with a given ID.
 UpdateRoleMapsResponse updateRoleMaps(UpdateRoleMaps update)
          Re-read the role-maps for a specific data service resource.
 
Methods inherited from class uk.org.ogsadai.service.wsrf.dataservice.impl.DataServiceImpl
createResource, getBlock, getDataServiceResource, getFully, getSecurityContext, getVersion, listResources, perform, putBlock, putFully, throwInternalFault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurableDataServiceImpl

public ConfigurableDataServiceImpl()
                            throws InternalFaultType
Create a new configurable data service.

The new object will initialise itself using information within its deployment descriptor if it has not already done so.

Throws:
InternalFaultType - - if some internal problem occurs.
See Also:
DataServiceImpl
Method Detail

deploy

public DeployResponse deploy(Deploy deploy)
                      throws java.rmi.RemoteException,
                             ConfigurationFaultType,
                             IDAlreadyAssignedFaultType,
                             AuthorisationFaultType,
                             InternalFaultType
Expose a new data service resource with a given ID.

Invocations of this operation are not assumed to be directed at a specific data service resource (WS-Resource).

Parameters:
deploy - - contains the ID of the new data resource.
Returns:
DeployResponse - empty object indicating success.
Throws:
java.rmi.RemoteException
ConfigurationFaultType - - if there is a problem in finding or parsing the configuration files that is the user's fault.
IDAlreadyAssignedFaultType - - if the given ID has already been taken.
InternalFaultType - - if some internal problem occurs.
AuthorisationFaultType - - if the client is not authorised to deploy a data service resource.
See Also:
ConfigurableDataServicePortType.deploy(Deploy)

updateRoleMaps

public UpdateRoleMapsResponse updateRoleMaps(UpdateRoleMaps update)
                                      throws java.rmi.RemoteException,
                                             ConfigurationFaultType,
                                             InternalFaultType,
                                             AuthorisationFaultType,
                                             ResourceUnknownFaultType
Re-read the role-maps for a specific data service resource.

Invocations of this operation are assumed to be directed at a specific data service resource (WS-Resource).

Parameters:
update - - empty object.
Returns:
UpdateRoleMapsResponse - empty object indicating success.
Throws:
java.rmi.RemoteException - - if there is no such resource.
ConfigurationFaultType - - if there is a problem in finding or parsing the role-map file that is the user's fault.
AuthorisationFaultType - - if the client is not authorised to update the roleMaps.
InternalFaultType - - if some internal problem occurs.
ResourceUnknownFaultType
See Also:
ConfigurableDataServicePortType.updateRoleMaps(UpdateRoleMaps)