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 org.apache.log4j.Logger |
logger |
protected org.gcube.data.spd.client.proxies.Occurrence |
occurrencesCall |
protected org.gcube.common.core.scope.GCUBEScope |
scope |
protected org.gcube.application.framework.core.session.ASLSession |
session |
| Constructor and Description |
|---|
SpeciesService(org.gcube.common.core.scope.GCUBEScope scope) |
SpeciesService(org.gcube.common.core.scope.GCUBEScope scope,
org.gcube.application.framework.core.session.ASLSession session) |
SpeciesService(org.gcube.common.core.scope.GCUBEScope 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) |
protected List<org.gcube.data.spd.model.Property> |
createFilterProperties(SearchFilters searchFilters) |
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) |
org.gcube.data.spd.stubs.types.Status |
getOccurrenceJobById(String jobId) |
InputStream |
getOccurrenceJobFileById(String jobIdentifier) |
CloseableIterator<org.gcube.data.spd.model.OccurrencePoint> |
getOccurrencesByIds(List<String> ids) |
CloseableIterator<org.gcube.data.spd.model.OccurrencePoint> |
getOccurrencesByKeys(List<String> keys) |
List<DataSourceModel> |
getPlugins() |
StreamIterator<org.gcube.data.spd.model.TaxonomyItem> |
getTaxonChildrenByParentId(String parentId) |
org.gcube.data.spd.stubs.types.Status |
getTaxonomyJobById(String jobId) |
InputStream |
getTaxonomyJobFileById(String jobIdentifier) |
CloseableIterator<org.gcube.data.spd.model.TaxonomyItem> |
retrieveSynonymsById(String id) |
CloseableIterator<org.gcube.data.spd.model.TaxonomyItem> |
retrieveTaxonomyById(org.gcube.data.streams.Stream<String> streamIds) |
CloseableIterator<org.gcube.data.spd.model.ResultElement> |
searchByFilters(String searchTerm,
SearchType searchType,
SearchFilters searchFilters) |
CloseableIterator<org.gcube.data.spd.model.ResultElement> |
searchByQuery(String query) |
org.gcube.data.streams.Stream<org.gcube.data.spd.model.ResultElement> |
searchByQuery2(String query) |
protected org.apache.log4j.Logger logger
protected org.gcube.common.core.scope.GCUBEScope 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
public SpeciesService(org.gcube.common.core.scope.GCUBEScope scope,
org.gcube.application.framework.core.session.ASLSession session)
throws Exception
Exceptionpublic SpeciesService(org.gcube.common.core.scope.GCUBEScope scope)
throws Exception
Exceptionpublic CloseableIterator<org.gcube.data.spd.model.ResultElement> searchByFilters(String searchTerm, SearchType searchType, SearchFilters searchFilters) throws SearchServiceException
SearchServiceExceptionpublic CloseableIterator<org.gcube.data.spd.model.TaxonomyItem> retrieveTaxonomyById(org.gcube.data.streams.Stream<String> streamIds) throws SearchServiceException
SearchServiceExceptionpublic CloseableIterator<org.gcube.data.spd.model.TaxonomyItem> retrieveSynonymsById(String id) throws SearchServiceException
SearchServiceExceptionpublic CloseableIterator<org.gcube.data.spd.model.ResultElement> searchByQuery(String query) throws SearchServiceException
SearchServiceExceptionpublic org.gcube.data.streams.Stream<org.gcube.data.spd.model.ResultElement> searchByQuery2(String query) throws SearchServiceException
SearchServiceExceptionpublic List<DataSourceModel> getPlugins() throws SearchServiceException
SearchServiceExceptionprotected List<org.gcube.data.spd.model.Property> createFilterProperties(SearchFilters searchFilters)
protected org.gcube.data.spd.model.Coordinate convertCoordinate(Coordinate coordinate)
public CloseableIterator<org.gcube.data.spd.model.OccurrencePoint> getOccurrencesByKeys(List<String> keys) throws SearchServiceException
SearchServiceExceptionpublic CloseableIterator<org.gcube.data.spd.model.OccurrencePoint> getOccurrencesByIds(List<String> ids) throws SearchServiceException
SearchServiceExceptionpublic String generateMapFromOccurrencePoints(IteratorPointInfo streamKey) throws SearchServiceException
SearchServiceExceptionpublic StreamIterator<org.gcube.data.spd.model.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 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
ExceptionCopyright © 2013. All Rights Reserved.