public class SpeciesService extends Object
Modifier and Type | Field and Description |
---|---|
protected org.gcube.data.spd.client.proxies.Manager |
call |
protected org.gcube.data.spd.client.proxies.Classification |
classificationCall |
protected org.gcube.data.spd.client.proxies.Executor |
executorCall |
protected String |
lastQuery |
protected org.apache.log4j.Logger |
logger |
protected org.gcube.data.spd.client.proxies.Occurrence |
occurrencesCall |
protected String |
scope |
protected org.gcube.application.framework.core.session.ASLSession |
session |
Constructor and Description |
---|
SpeciesService(String scope) |
SpeciesService(String scope,
org.gcube.application.framework.core.session.ASLSession session) |
SpeciesService(String scope,
boolean instanceOnlyOccurrence) |
Modifier and Type | Method and Description |
---|---|
void |
cancelOccurrenceJobById(String jobIdentifier) |
void |
cancelTaxonomyJobById(String jobIdentifier) |
protected org.gcube.data.spd.model.Coordinate |
convertCoordinate(Coordinate coordinate) |
String |
createOccurrenceCSVJob(org.gcube.data.streams.Stream<String> streamKey) |
String |
createOccurrenceCSVOpenModellerJob(org.gcube.data.streams.Stream<String> streamKey) |
String |
createOccurrenceDARWINCOREJob(org.gcube.data.streams.Stream<String> streamKey) |
String |
createTaxonomyJobForDWCAByChildren(String taxonomyId) |
String |
createTaxonomyJobForDWCAByIds(List<String> ids) |
String |
generateMapFromOccurrencePoints(IteratorPointInfo streamKey) |
String |
getLastQuery() |
org.gcube.data.spd.stubs.types.Status |
getOccurrenceJobById(String jobId) |
InputStream |
getOccurrenceJobErrorFileById(String jobIdentifier) |
InputStream |
getOccurrenceJobFileById(String jobIdentifier) |
CloseableIterator<org.gcube.data.spd.model.products.OccurrencePoint> |
getOccurrencesByIds(List<String> ids) |
CloseableIterator<org.gcube.data.spd.model.products.OccurrencePoint> |
getOccurrencesByKeys(List<String> keys) |
List<DataSourceModel> |
getPlugins() |
StreamIterator<org.gcube.data.spd.model.products.TaxonomyItem> |
getTaxonChildrenByParentId(String parentId) |
org.gcube.data.spd.stubs.types.Status |
getTaxonomyJobById(String jobId) |
InputStream |
getTaxonomyJobErrorFileById(String jobIdentifier) |
InputStream |
getTaxonomyJobFileById(String jobIdentifier) |
boolean |
isAvailableOccurrenceJobErrorFileById(String jobIdentifier) |
boolean |
isAvailableTaxonomyJobErrorFileById(String jobIdentifier) |
CloseableIterator<org.gcube.data.spd.model.products.TaxonomyItem> |
retrieveSynonymsById(String id) |
CloseableIterator<org.gcube.data.spd.model.products.TaxonomyItem> |
retrieveTaxonomyById(org.gcube.data.streams.Stream<String> streamIds) |
CloseableIterator<org.gcube.data.spd.model.products.ResultElement> |
searchByFilters(String searchTerm,
SearchType searchType,
SearchFilters searchFilters) |
CloseableIterator<org.gcube.data.spd.model.products.ResultElement> |
searchByQuery(String query) |
org.gcube.data.streams.Stream<org.gcube.data.spd.model.products.ResultElement> |
searchByQuery2(String query) |
protected org.apache.log4j.Logger logger
protected String scope
protected org.gcube.application.framework.core.session.ASLSession session
protected org.gcube.data.spd.client.proxies.Manager call
protected org.gcube.data.spd.client.proxies.Occurrence occurrencesCall
protected org.gcube.data.spd.client.proxies.Classification classificationCall
protected org.gcube.data.spd.client.proxies.Executor executorCall
protected String lastQuery
public SpeciesService(String scope, org.gcube.application.framework.core.session.ASLSession session) throws Exception
Exception
public CloseableIterator<org.gcube.data.spd.model.products.ResultElement> searchByFilters(String searchTerm, SearchType searchType, SearchFilters searchFilters) throws SearchServiceException
SearchServiceException
public CloseableIterator<org.gcube.data.spd.model.products.TaxonomyItem> retrieveTaxonomyById(org.gcube.data.streams.Stream<String> streamIds) throws SearchServiceException
SearchServiceException
public CloseableIterator<org.gcube.data.spd.model.products.TaxonomyItem> retrieveSynonymsById(String id) throws SearchServiceException
SearchServiceException
public CloseableIterator<org.gcube.data.spd.model.products.ResultElement> searchByQuery(String query) throws SearchServiceException
SearchServiceException
public org.gcube.data.streams.Stream<org.gcube.data.spd.model.products.ResultElement> searchByQuery2(String query) throws SearchServiceException
SearchServiceException
public List<DataSourceModel> getPlugins() throws SearchServiceException
SearchServiceException
protected org.gcube.data.spd.model.Coordinate convertCoordinate(Coordinate coordinate)
public CloseableIterator<org.gcube.data.spd.model.products.OccurrencePoint> getOccurrencesByKeys(List<String> keys) throws SearchServiceException
SearchServiceException
public CloseableIterator<org.gcube.data.spd.model.products.OccurrencePoint> getOccurrencesByIds(List<String> ids) throws SearchServiceException
SearchServiceException
public String generateMapFromOccurrencePoints(IteratorPointInfo streamKey) throws SearchServiceException
SearchServiceException
public StreamIterator<org.gcube.data.spd.model.products.TaxonomyItem> getTaxonChildrenByParentId(String parentId) throws Exception
Exception
public org.gcube.data.spd.stubs.types.Status getTaxonomyJobById(String jobId)
public InputStream getTaxonomyJobFileById(String jobIdentifier) throws Exception
Exception
public InputStream getTaxonomyJobErrorFileById(String jobIdentifier) throws Exception
Exception
public boolean isAvailableTaxonomyJobErrorFileById(String jobIdentifier) throws Exception
Exception
public String createTaxonomyJobForDWCAByChildren(String taxonomyId) throws Exception
Exception
public String createTaxonomyJobForDWCAByIds(List<String> ids) throws Exception
Exception
public void cancelTaxonomyJobById(String jobIdentifier)
public org.gcube.data.spd.stubs.types.Status getOccurrenceJobById(String jobId)
public String createOccurrenceCSVJob(org.gcube.data.streams.Stream<String> streamKey) throws Exception
Exception
public String createOccurrenceDARWINCOREJob(org.gcube.data.streams.Stream<String> streamKey) throws Exception
Exception
public String createOccurrenceCSVOpenModellerJob(org.gcube.data.streams.Stream<String> streamKey) throws Exception
Exception
public void cancelOccurrenceJobById(String jobIdentifier)
public InputStream getOccurrenceJobFileById(String jobIdentifier) throws Exception
Exception
public InputStream getOccurrenceJobErrorFileById(String jobIdentifier) throws Exception
Exception
public boolean isAvailableOccurrenceJobErrorFileById(String jobIdentifier) throws Exception
Exception
public String getLastQuery()
Copyright © 2016. All Rights Reserved.