public class GisLayerJobUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.log4j.Logger |
logger |
| Constructor and Description |
|---|
GisLayerJobUtil() |
| Modifier and Type | Method and Description |
|---|---|
static int |
changetStatusGisLayerJob(String jobId,
DownloadState state,
GisLayerJobPersistence gisLayerDAO) |
static JobGisLayerModel |
convertJob(GisLayerJob job,
org.gcube.data.spd.model.service.types.CompleteJobStatus statusResponse,
GisLayerJobPersistence gisLayerJobP,
SpeciesService taxonomyService,
org.gcube.application.framework.core.session.ASLSession aslSession)
Convert job.
|
static JobGisLayerModel |
createGisLayerJobByOccurrenceKeys(List<String> occurrenceKeys,
SpeciesService taxonomyService,
String layerTitle,
String layerDescr,
String author,
String credits,
long totalPoints,
GisLayerJobPersistence gisLayerJob)
Creates the gis layer job by occurrence keys.
|
static int |
deleteGisLayerJobById(String jobIdentifier,
GisLayerJobPersistence gisLayerJobDao)
Delete gis layer job by id.
|
static DownloadState |
getDownloadState(org.gcube.data.spd.model.service.types.JobStatus status)
Gets the download state.
|
public static JobGisLayerModel createGisLayerJobByOccurrenceKeys(List<String> occurrenceKeys, SpeciesService taxonomyService, String layerTitle, String layerDescr, String author, String credits, long totalPoints, GisLayerJobPersistence gisLayerJob) throws Exception
occurrenceKeys - the occurrence keystaxonomyService - the taxonomy servicelayerTitle - the layer titlelayerDescr - the layer descrauthor - the authorcredits - the creditsgisLayerJob - the gis layer jobException - the exceptionpublic static JobGisLayerModel convertJob(GisLayerJob job, org.gcube.data.spd.model.service.types.CompleteJobStatus statusResponse, GisLayerJobPersistence gisLayerJobP, SpeciesService taxonomyService, org.gcube.application.framework.core.session.ASLSession aslSession)
job - the jobstatusResponse - the status responsegisLayerJobP - the gis layer job paslSession - public static DownloadState getDownloadState(org.gcube.data.spd.model.service.types.JobStatus status)
status - the statuspublic static int deleteGisLayerJobById(String jobIdentifier, GisLayerJobPersistence gisLayerJobDao)
jobIdentifier - the job identifiergisLayerJobDao - the gis layer job daopublic static int changetStatusGisLayerJob(String jobId, DownloadState state, GisLayerJobPersistence gisLayerDAO)
jobId - state - gisLayerDAO - Copyright © 2021. All Rights Reserved.