org.gcube.datatransformation.datatransformationlibrary.imanagers
Interface IManager

All Known Implementing Classes:
ISManager, LocalInfoManager, RemoteIManager

public interface IManager

Author:
Dimitris Katris, NKUA Retrieves, publishes and queries TransformationPrograms from the TP registry.

Method Summary
 String[] getAvailableTransformationProgramIDs()
          Returns the available Transformation Program IDs.
 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.
 

Method Detail

getTransformationProgram

TransformationProgram getTransformationProgram(String transformationProgramID)
                                               throws Exception
Returns a TransformationProgram instance by its id.

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

getTransformationUnit

TransformationUnit getTransformationUnit(String transformationProgramID,
                                         String transformationUnitID)
                                         throws Exception
Returns a TransformationUnit instance by its id.

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

getAvailableTransformationProgramIDs

String[] getAvailableTransformationProgramIDs()
                                              throws Exception
Returns the available Transformation Program IDs.

Returns:
The available Transformation Program IDs.
Throws:
Exception - If the available Transformation Program IDs could not be fetched from the registry.

publishTransformationProgram

void publishTransformationProgram(TransformationProgram transformationProgram)
                                  throws Exception
Publishes a Transformation Program to the registry.

Parameters:
transformationProgram - The Transformation Program instance which will be published.
Throws:
Exception - If the Transformation Program could not be published.

queryTransformationPrograms

String queryTransformationPrograms(String query)
                                   throws Exception
Queries Transformation Programs.

Parameters:
query - The query.
Returns:
The result of the query in xml format.
Throws:
Exception - If the query could not be performed.


Copyright © 2013. All Rights Reserved.