org.gcube.datatransformation.datatransformationlibrary.imanagers
Class ISManager

java.lang.Object
  extended by org.gcube.datatransformation.datatransformationlibrary.imanagers.ISManager
All Implemented Interfaces:
IManager

public class ISManager
extends Object
implements IManager

Author:
Dimitris Katris, NKUA Implementation of IManager which uses as registry the gCube IS.

Constructor Summary
ISManager()
           
 
Method Summary
 String[] getAvailableTransformationProgramIDs()
          Returns the available Transformation Program IDs.
 org.gcube.common.core.scope.GCUBEScope getScope()
          Returns the scope in which the ISManager operates.
 TransformationProgram getTransformationProgram(String transformationProgramID)
          Returns a TransformationProgram instance by its id.
 TransformationUnit getTransformationUnit(String transformationProgramID, String transformationUnitID)
          Returns a TransformationUnit instance by its id.
 void publishTransformationProgram(TransformationProgram transformationProgram)
          Publishes a Transformation Program to the registry.
 String queryTransformationPrograms(String query)
          Queries Transformation Programs.
 void setScope(org.gcube.common.core.scope.GCUBEScope scope)
          Sets the scope in which the ISManager operates.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ISManager

public ISManager()
Method Detail

getAvailableTransformationProgramIDs

public String[] getAvailableTransformationProgramIDs()
                                              throws Exception
Description copied from interface: IManager
Returns the available Transformation Program IDs.

Specified by:
getAvailableTransformationProgramIDs in interface IManager
Returns:
The available Transformation Program IDs.
Throws:
Exception - If the available Transformation Program IDs could not be fetched from the IS.
See Also:
IManager.getAvailableTransformationProgramIDs()

getTransformationProgram

public TransformationProgram getTransformationProgram(String transformationProgramID)
                                               throws Exception
Description copied from interface: IManager
Returns a TransformationProgram instance by its id.

Specified by:
getTransformationProgram in interface IManager
Parameters:
transformationProgramID - The id of the Transformation Program.
Returns:
The instance of the Transformation Program.
Throws:
Exception - If the IManager did not manage to fetch the Transformation Program from the IS.
See Also:
IManager.getTransformationProgram(java.lang.String)

getTransformationUnit

public TransformationUnit getTransformationUnit(String transformationProgramID,
                                                String transformationUnitID)
                                         throws Exception
Description copied from interface: IManager
Returns a TransformationUnit instance by its id.

Specified by:
getTransformationUnit in interface IManager
Parameters:
transformationProgramID - The id of the Transformation Program in which the Transformation Unit belongs to.
transformationUnitID - The id of the Transformation Unit.
Returns:
The instance of the Transformation Unit.
Throws:
Exception - If the IManager did not manage to fetch the Transformation Unit from the IS.
See Also:
IManager.getTransformationUnit(java.lang.String, java.lang.String)

publishTransformationProgram

public void publishTransformationProgram(TransformationProgram transformationProgram)
                                  throws Exception
Description copied from interface: IManager
Publishes a Transformation Program to the registry.

Specified by:
publishTransformationProgram in interface IManager
Parameters:
transformationProgram - The Transformation Program instance which will be published.
Throws:
Exception - If the Transformation Program could not be published.
See Also:
IManager.publishTransformationProgram(org.gcube.datatransformation.datatransformationlibrary.model.TransformationProgram)

queryTransformationPrograms

public String queryTransformationPrograms(String query)
                                   throws Exception
Description copied from interface: IManager
Queries Transformation Programs.

Specified by:
queryTransformationPrograms in interface IManager
Parameters:
query - The query.
Returns:
The result of the query in xml format.
Throws:
Exception - If the query could not be performed.
See Also:
IManager.queryTransformationPrograms(java.lang.String)

getScope

public org.gcube.common.core.scope.GCUBEScope getScope()
Returns the scope in which the ISManager operates.

Returns:
The scope in which the ISManager operates.

setScope

public void setScope(org.gcube.common.core.scope.GCUBEScope scope)
Sets the scope in which the ISManager operates.

Parameters:
scope - the scope in which the ISManager operates.


Copyright © 2013. All Rights Reserved.