org.gcube.data.harmonization.occurrence.impl
Class ReconciliationImpl

java.lang.Object
  extended by org.gcube.data.harmonization.occurrence.impl.ReconciliationImpl
All Implemented Interfaces:
Reconciliation

public class ReconciliationImpl
extends Object
implements Reconciliation


Constructor Summary
ReconciliationImpl(org.gcube.common.core.scope.GCUBEScope scope, String user)
           
ReconciliationImpl(org.gcube.common.core.scope.GCUBEScope scope, String user, URI host)
           
 
Method Summary
 void closeTableConnection()
          Closes current table connection if any
 List<StatisticalFeature> getCapabilities()
          Gets information about available operation on occurrence point data sets
 List<Resource> getDataSets()
           
 String getJSONImported(PagedRequestSettings settings)
          Get Json view of currently connected table
 File getResourceAsFile(String operationId, OperationType type)
          Save selected result to workspace
 OccurrenceStreamer getStreamer(File toStream, ParserConfiguration configuration, String tableName, String description)
          Instatiates an OccurrenceStreamer able to parse the passed File and send data to the Statistical Manager
 List<Computation> getSubmittedOperationList()
           
 String getTableUrl(String tableId)
          Returns connection url to the selected table
 List<String> openTableInspection(String tableId)
          Opens connection to a table for direct inspection
 void removeComputationById(String id)
           
 String submitOperation(StatisticalComputation comp, Map<String,String> parameters, String title, String description)
          Submits a computation to the statistical service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReconciliationImpl

public ReconciliationImpl(org.gcube.common.core.scope.GCUBEScope scope,
                          String user)

ReconciliationImpl

public ReconciliationImpl(org.gcube.common.core.scope.GCUBEScope scope,
                          String user,
                          URI host)
Method Detail

getDataSets

public List<Resource> getDataSets()
Specified by:
getDataSets in interface Reconciliation
Returns:

getJSONImported

public String getJSONImported(PagedRequestSettings settings)
                       throws Exception
Description copied from interface: Reconciliation
Get Json view of currently connected table

Specified by:
getJSONImported in interface Reconciliation
Returns:
Throws:
Exception

getCapabilities

public List<StatisticalFeature> getCapabilities()
Description copied from interface: Reconciliation
Gets information about available operation on occurrence point data sets

Specified by:
getCapabilities in interface Reconciliation
Returns:
list of Statistical Operation, one for each available algorithm

getResourceAsFile

public File getResourceAsFile(String operationId,
                              OperationType type)
                       throws Exception
Description copied from interface: Reconciliation
Save selected result to workspace

Specified by:
getResourceAsFile in interface Reconciliation
Returns:
saved Item id
Throws:
Exception

submitOperation

public String submitOperation(StatisticalComputation comp,
                              Map<String,String> parameters,
                              String title,
                              String description)
                       throws Exception
Description copied from interface: Reconciliation
Submits a computation to the statistical service

Specified by:
submitOperation in interface Reconciliation
Returns:
Throws:
Exception

getSubmittedOperationList

public List<Computation> getSubmittedOperationList()
Specified by:
getSubmittedOperationList in interface Reconciliation
Returns:
submitted operation list

openTableInspection

public List<String> openTableInspection(String tableId)
                                 throws Exception
Description copied from interface: Reconciliation
Opens connection to a table for direct inspection

Specified by:
openTableInspection in interface Reconciliation
Returns:
list of field of selected table
Throws:
Exception

closeTableConnection

public void closeTableConnection()
                          throws Exception
Description copied from interface: Reconciliation
Closes current table connection if any

Specified by:
closeTableConnection in interface Reconciliation
Throws:
Exception

getStreamer

public OccurrenceStreamer getStreamer(File toStream,
                                      ParserConfiguration configuration,
                                      String tableName,
                                      String description)
                               throws Exception
Description copied from interface: Reconciliation
Instatiates an OccurrenceStreamer able to parse the passed File and send data to the Statistical Manager

Specified by:
getStreamer in interface Reconciliation
Returns:
Throws:
Exception

getTableUrl

public String getTableUrl(String tableId)
                   throws Exception
Description copied from interface: Reconciliation
Returns connection url to the selected table

Specified by:
getTableUrl in interface Reconciliation
Returns:
Throws:
Exception

removeComputationById

public void removeComputationById(String id)
                           throws Exception
Specified by:
removeComputationById in interface Reconciliation
Throws:
Exception


Copyright © 2013. All Rights Reserved.