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>
 
Field Summary
 
Fields inherited from class org.gcube.application.aquamaps.aquamapsservice.stubs.wrapper.AquaMapsCall
epr, isClient, logger, scope
 
Fields inherited from class org.gcube.common.core.utils.calls.GCUBECall
clients
 
Method Summary
 String analyzeTables(Analysis request)
           
 void deleteAnalysis(String id)
           
 void deleteResource(int resourceId)
           
 void editRequest(SourceGenerationRequest request)
           
 File exportTableAsCSV(String table, String basketId, String user, String toSaveName, org.gcube.application.aquamaps.aquamapsservice.stubs.ExportOperation operationType)
           
 Integer generateMaps(String author, boolean enableGIS, Integer hspecId, List<Field> speciesFilter, boolean forceRegeneration)
           
static DataManagementInterface getCall(org.gcube.common.core.scope.GCUBEScope scope, String defaultURI, boolean queryIS)
          Creates a call with a disabled security manager
 List<Field> getDefaultSources()
           
 String getJSONSPECGroupGenreationRequests(org.gcube_system.namespaces.application.aquamaps.types.PagedRequestSettings settings)
           
 String getJsonSubmittedAnalysis(org.gcube_system.namespaces.application.aquamaps.types.PagedRequestSettings settings)
           
protected  String getPortTypeName()
           
 EnvironmentalExecutionReportItem getReport(List<String> ids)
           
 SourceGenerationRequest getRequest(String id)
           
static DataManagementInterface getWrapper(org.gcube.common.core.scope.GCUBEScope scope, org.gcube.common.core.security.GCUBESecurityManager[] securityManager, String defaultURI, boolean queryIS)
           
 Integer importResource(File toImport, String userId, ResourceType type, String encoding, boolean[] fieldsMask, boolean hasHeader, char delimiter)
           
 File loadAnalysisResults(String id)
           
 String removeRequest(String id, boolean deleteData, boolean deleteJobs)
           
 String resubmitGeneration(String id)
           
 CustomQueryDescriptor setCustomQuery(String userId, String queryString)
           
 String submitRequest(SourceGenerationRequest request)
           
 Resource updateResource(Resource toUpdate)
           
 String viewCustomQuery(String userId, org.gcube_system.namespaces.application.aquamaps.types.PagedRequestSettings settings)
           
 
Methods inherited from class org.gcube.application.aquamaps.aquamapsservice.stubs.wrapper.AquaMapsCall
getServiceClass, getServiceName
 
Methods inherited from class org.gcube.common.core.utils.calls.RICall
getInitQuery, setEndpoint
 
Methods inherited from class org.gcube.common.core.utils.calls.GCUBECall
findPortType, getEndpointReference, getLogger, getQuery, getRIQuery, getScopeManager, getSecurityManager, setEndpointReference, setLogger, setQuery, setScopeManager, setSecurityManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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,
                                                 String defaultURI,
                                                 boolean queryIS)
                                          throws Exception
Throws:
Exception

getCall

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

Parameters:
scope -
defaultURI -
Returns:
Throws:
Exception

getPortTypeName

protected String getPortTypeName()
Specified by:
getPortTypeName in class org.gcube.common.core.utils.calls.GCUBECall<org.gcube.common.core.informationsystem.client.queries.GCUBERIQuery>

submitRequest

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

getReport

public EnvironmentalExecutionReportItem getReport(List<String> ids)
                                           throws Exception
Specified by:
getReport in interface DataManagementInterface
Throws:
Exception

getJSONSPECGroupGenreationRequests

public String getJSONSPECGroupGenreationRequests(org.gcube_system.namespaces.application.aquamaps.types.PagedRequestSettings settings)
                                          throws Exception
Specified by:
getJSONSPECGroupGenreationRequests in interface DataManagementInterface
Throws:
Exception

generateMaps

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

getRequest

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

removeRequest

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

editRequest

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

getDefaultSources

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

updateResource

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

deleteResource

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

setCustomQuery

public CustomQueryDescriptor setCustomQuery(String userId,
                                            String queryString)
                                     throws Exception
Specified by:
setCustomQuery in interface DataManagementInterface
Throws:
Exception

viewCustomQuery

public String viewCustomQuery(String userId,
                              org.gcube_system.namespaces.application.aquamaps.types.PagedRequestSettings settings)
                       throws Exception
Specified by:
viewCustomQuery in interface DataManagementInterface
Throws:
Exception

importResource

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

exportTableAsCSV

public File exportTableAsCSV(String table,
                             String basketId,
                             String user,
                             String toSaveName,
                             org.gcube.application.aquamaps.aquamapsservice.stubs.ExportOperation operationType)
                      throws Exception
Specified by:
exportTableAsCSV in interface DataManagementInterface
Throws:
Exception

analyzeTables

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

getJsonSubmittedAnalysis

public String getJsonSubmittedAnalysis(org.gcube_system.namespaces.application.aquamaps.types.PagedRequestSettings settings)
                                throws Exception
Specified by:
getJsonSubmittedAnalysis in interface DataManagementInterface
Throws:
Exception

loadAnalysisResults

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

resubmitGeneration

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

deleteAnalysis

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


Copyright © 2013. All Rights Reserved.