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
Exceptionpublic CloseableIterator<org.gcube.data.spd.model.products.ResultElement> searchByFilters(String searchTerm, SearchType searchType, SearchFilters searchFilters) throws SearchServiceException
SearchServiceExceptionpublic CloseableIterator<org.gcube.data.spd.model.products.TaxonomyItem> retrieveTaxonomyById(org.gcube.data.streams.Stream<String> streamIds) throws SearchServiceException
SearchServiceExceptionpublic CloseableIterator<org.gcube.data.spd.model.products.TaxonomyItem> retrieveSynonymsById(String id) throws SearchServiceException
SearchServiceExceptionpublic CloseableIterator<org.gcube.data.spd.model.products.ResultElement> searchByQuery(String query) throws SearchServiceException
SearchServiceExceptionpublic org.gcube.data.streams.Stream<org.gcube.data.spd.model.products.ResultElement> searchByQuery2(String query) throws SearchServiceException
SearchServiceExceptionpublic List<DataSourceModel> getPlugins() throws SearchServiceException
SearchServiceExceptionprotected org.gcube.data.spd.model.Coordinate convertCoordinate(Coordinate coordinate)
public CloseableIterator<org.gcube.data.spd.model.products.OccurrencePoint> getOccurrencesByKeys(List<String> keys) throws SearchServiceException
SearchServiceExceptionpublic CloseableIterator<org.gcube.data.spd.model.products.OccurrencePoint> getOccurrencesByIds(List<String> ids) throws SearchServiceException
SearchServiceExceptionpublic String generateMapFromOccurrencePoints(IteratorPointInfo streamKey) throws SearchServiceException
SearchServiceExceptionpublic StreamIterator<org.gcube.data.spd.model.products.TaxonomyItem> getTaxonChildrenByParentId(String parentId) throws Exception
Exceptionpublic org.gcube.data.spd.stubs.types.Status getTaxonomyJobById(String jobId)
public InputStream getTaxonomyJobFileById(String jobIdentifier) throws Exception
Exceptionpublic InputStream getTaxonomyJobErrorFileById(String jobIdentifier) throws Exception
Exceptionpublic boolean isAvailableTaxonomyJobErrorFileById(String jobIdentifier) throws Exception
Exceptionpublic String createTaxonomyJobForDWCAByChildren(String taxonomyId) throws Exception
Exceptionpublic String createTaxonomyJobForDWCAByIds(List<String> ids) throws Exception
Exceptionpublic 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
Exceptionpublic String createOccurrenceDARWINCOREJob(org.gcube.data.streams.Stream<String> streamKey) throws Exception
Exceptionpublic String createOccurrenceCSVOpenModellerJob(org.gcube.data.streams.Stream<String> streamKey) throws Exception
Exceptionpublic void cancelOccurrenceJobById(String jobIdentifier)
public InputStream getOccurrenceJobFileById(String jobIdentifier) throws Exception
Exceptionpublic InputStream getOccurrenceJobErrorFileById(String jobIdentifier) throws Exception
Exceptionpublic boolean isAvailableOccurrenceJobErrorFileById(String jobIdentifier) throws Exception
Exceptionpublic String getLastQuery()
Copyright © 2014. All Rights Reserved.