org.gcube.application.aquamaps.aquamapsservice.stubs.wrapper
Class DataManagementCall

java.lang.Object
  extended by org.gcube.common.core.utils.calls.GCUBECall<org.gcube.common.core.informationsystem.client.queries.GCUBERIQuery>
      extended by org.gcube.common.core.utils.calls.RICall
          extended by org.gcube.application.aquamaps.aquamapsservice.stubs.wrapper.AquaMapsCall
              extended by org.gcube.application.aquamaps.aquamapsservice.stubs.wrapper.DataManagementCall
All Implemented Interfaces:
DataManagementInterface

public class DataManagementCall
extends AquaMapsCall
implements DataManagementInterface


Nested Class Summary
 
Nested classes/interfaces inherited from class org.gcube.common.core.utils.calls.RICall
org.gcube.common.core.utils.calls.RICall.RICallHandler
 
Nested classes/interfaces inherited from class org.gcube.common.core.utils.calls.GCUBECall
org.gcube.common.core.utils.calls.GCUBECall.ResultHolder<RESULT>
 
Method Summary
 java.lang.String analyzeTables(Analysis request)
           
 void deleteAnalysis(java.lang.String id)
           
 java.lang.Boolean deleteCustomQuery(java.lang.String userId)
           
 void deleteResource(int resourceId)
           
 void editRequest(SourceGenerationRequest request)
           
 java.io.File exportCurrentCustomQuery(java.lang.String userId)
           
 java.io.File exportResource(int resourceId)
           
 java.io.File exportTableAsCSV(java.lang.String table)
           
 java.lang.Integer generateMaps(java.lang.String author, boolean enableGIS, java.lang.Integer hspecId, java.util.List<Field> speciesFilter)
           
static DataManagementInterface getCall(org.gcube.common.core.scope.GCUBEScope scope, java.lang.String defaultURI, boolean queryIS)
          Creates a call with a disabled security manager
 java.util.List<Field> getCustomQueryFields(java.lang.String userId)
           
 java.util.List<Field> getDefaultSources()
           
 java.lang.Integer getImportStatus(java.lang.Integer resourceId)
           
 java.lang.String getJSONSPECGroupGenreationRequests(PagedRequestSettings settings)
           
 java.lang.String getJsonSubmittedAnalysis(PagedRequestSettings settings)
           
 EnvironmentalExecutionReportItem getReport(java.lang.Integer reportId)
           
 SourceGenerationRequest getRequest(java.lang.String id)
           
static DataManagementInterface getWrapper(org.gcube.common.core.scope.GCUBEScope scope, org.gcube.common.core.security.GCUBESecurityManager[] securityManager, java.lang.String defaultURI, boolean queryIS)
           
 java.lang.Integer importResource(java.io.File toImport, java.lang.String userId, ResourceType type, java.lang.String encoding, boolean[] fieldsMask, boolean hasHeader, char delimiter)
           
 java.io.File loadAnalysisResults(java.lang.String id)
           
 java.lang.String removeRequest(java.lang.String id, boolean deleteData, boolean deleteJobs)
           
 java.lang.String resubmitGeneration(java.lang.String id)
           
 void setCustomQuery(java.lang.String userId, java.lang.String queryString)
           
 java.lang.String submitRequest(SourceGenerationRequest request)
           
 Resource updateResource(Resource toUpdate)
           
 java.lang.String viewCustomQuery(java.lang.String userId, PagedRequestSettings settings)
           
 
Methods inherited from class org.gcube.common.core.utils.calls.RICall
setEndpoint
 
Methods inherited from class org.gcube.common.core.utils.calls.GCUBECall
getEndpointReference, getLogger, getQuery, getScopeManager, getSecurityManager, setEndpointReference, setLogger, setQuery, setScopeManager, setSecurityManager
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getWrapper

public static DataManagementInterface getWrapper(org.gcube.common.core.scope.GCUBEScope scope,
                                                 org.gcube.common.core.security.GCUBESecurityManager[] securityManager,
                                                 java.lang.String defaultURI,
                                                 boolean queryIS)
                                          throws java.lang.Exception
Throws:
java.lang.Exception

getCall

public static DataManagementInterface getCall(org.gcube.common.core.scope.GCUBEScope scope,
                                              java.lang.String defaultURI,
                                              boolean queryIS)
                                       throws java.lang.Exception
Creates a call with a disabled security manager

Parameters:
scope -
defaultURI -
Returns:
Throws:
java.lang.Exception

submitRequest

public java.lang.String submitRequest(SourceGenerationRequest request)
                               throws java.lang.Exception
Specified by:
submitRequest in interface DataManagementInterface
Throws:
java.lang.Exception

getReport

public EnvironmentalExecutionReportItem getReport(java.lang.Integer reportId)
                                           throws java.lang.Exception
Specified by:
getReport in interface DataManagementInterface
Throws:
java.lang.Exception

getJSONSPECGroupGenreationRequests

public java.lang.String getJSONSPECGroupGenreationRequests(PagedRequestSettings settings)
                                                    throws java.lang.Exception
Specified by:
getJSONSPECGroupGenreationRequests in interface DataManagementInterface
Throws:
java.lang.Exception

generateMaps

public java.lang.Integer generateMaps(java.lang.String author,
                                      boolean enableGIS,
                                      java.lang.Integer hspecId,
                                      java.util.List<Field> speciesFilter)
                               throws java.lang.Exception
Specified by:
generateMaps in interface DataManagementInterface
Throws:
java.lang.Exception

getRequest

public SourceGenerationRequest getRequest(java.lang.String id)
                                   throws java.lang.Exception
Specified by:
getRequest in interface DataManagementInterface
Throws:
java.lang.Exception

removeRequest

public java.lang.String removeRequest(java.lang.String id,
                                      boolean deleteData,
                                      boolean deleteJobs)
                               throws java.lang.Exception
Specified by:
removeRequest in interface DataManagementInterface
Throws:
java.lang.Exception

editRequest

public void editRequest(SourceGenerationRequest request)
                 throws java.lang.Exception
Specified by:
editRequest in interface DataManagementInterface
Throws:
java.lang.Exception

getDefaultSources

public java.util.List<Field> getDefaultSources()
                                        throws java.lang.Exception
Specified by:
getDefaultSources in interface DataManagementInterface
Throws:
java.lang.Exception

updateResource

public Resource updateResource(Resource toUpdate)
                        throws java.lang.Exception
Specified by:
updateResource in interface DataManagementInterface
Throws:
java.lang.Exception

deleteResource

public void deleteResource(int resourceId)
                    throws java.lang.Exception
Specified by:
deleteResource in interface DataManagementInterface
Throws:
java.lang.Exception

exportResource

public java.io.File exportResource(int resourceId)
                            throws java.lang.Exception
Specified by:
exportResource in interface DataManagementInterface
Throws:
java.lang.Exception

deleteCustomQuery

public java.lang.Boolean deleteCustomQuery(java.lang.String userId)
                                    throws java.lang.Exception
Specified by:
deleteCustomQuery in interface DataManagementInterface
Throws:
java.lang.Exception

setCustomQuery

public void setCustomQuery(java.lang.String userId,
                           java.lang.String queryString)
                    throws java.lang.Exception
Specified by:
setCustomQuery in interface DataManagementInterface
Throws:
java.lang.Exception

viewCustomQuery

public java.lang.String viewCustomQuery(java.lang.String userId,
                                        PagedRequestSettings settings)
                                 throws java.lang.Exception
Specified by:
viewCustomQuery in interface DataManagementInterface
Throws:
java.lang.Exception

getImportStatus

public java.lang.Integer getImportStatus(java.lang.Integer resourceId)
                                  throws java.lang.Exception
Specified by:
getImportStatus in interface DataManagementInterface
Throws:
java.lang.Exception

importResource

public java.lang.Integer importResource(java.io.File toImport,
                                        java.lang.String userId,
                                        ResourceType type,
                                        java.lang.String encoding,
                                        boolean[] fieldsMask,
                                        boolean hasHeader,
                                        char delimiter)
                                 throws java.lang.Exception
Specified by:
importResource in interface DataManagementInterface
Throws:
java.lang.Exception

getCustomQueryFields

public java.util.List<Field> getCustomQueryFields(java.lang.String userId)
                                           throws java.lang.Exception
Specified by:
getCustomQueryFields in interface DataManagementInterface
Throws:
java.lang.Exception

exportTableAsCSV

public java.io.File exportTableAsCSV(java.lang.String table)
                              throws java.lang.Exception
Specified by:
exportTableAsCSV in interface DataManagementInterface
Throws:
java.lang.Exception

analyzeTables

public java.lang.String analyzeTables(Analysis request)
                               throws java.lang.Exception
Specified by:
analyzeTables in interface DataManagementInterface
Throws:
java.lang.Exception

getJsonSubmittedAnalysis

public java.lang.String getJsonSubmittedAnalysis(PagedRequestSettings settings)
                                          throws java.lang.Exception
Specified by:
getJsonSubmittedAnalysis in interface DataManagementInterface
Throws:
java.lang.Exception

loadAnalysisResults

public java.io.File loadAnalysisResults(java.lang.String id)
                                 throws java.lang.Exception
Specified by:
loadAnalysisResults in interface DataManagementInterface
Throws:
java.lang.Exception

resubmitGeneration

public java.lang.String resubmitGeneration(java.lang.String id)
                                    throws java.lang.Exception
Specified by:
resubmitGeneration in interface DataManagementInterface
Throws:
java.lang.Exception

exportCurrentCustomQuery

public java.io.File exportCurrentCustomQuery(java.lang.String userId)
                                      throws java.lang.Exception
Specified by:
exportCurrentCustomQuery in interface DataManagementInterface
Throws:
java.lang.Exception

deleteAnalysis

public void deleteAnalysis(java.lang.String id)
                    throws java.lang.Exception
Specified by:
deleteAnalysis in interface DataManagementInterface
Throws:
java.lang.Exception