public abstract class AbstractExportService extends java.lang.Object implements ExportService
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractExportService.InvalidGeometryException |
ExportService.ExportFinishListener
Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOG |
Modifier | Constructor and Description |
---|---|
protected |
AbstractExportService(ExportServiceFactory factory,
ExportParameters parameters) |
Modifier and Type | Method and Description |
---|---|
void |
addFinishListener(ExportService.ExportFinishListener listener) |
void |
cancelRequest()
Request to the task that cancel.
|
protected void |
copyValues(Feature source,
EditableFeature target) |
protected abstract DataServerExplorer |
createServerExplorer() |
protected abstract NewDataStoreParameters |
createTargetNewStoreParameters() |
protected abstract OpenDataStoreParameters |
createTargetOpenStoreParameters() |
void |
export(FeatureSet featureSet) |
protected void |
fireCancelledListeners() |
protected void |
fireFinishedListener() |
ExportServiceFactory |
getFactory() |
ExportParameters |
getParameters() |
java.util.List<OpenDataStoreParameters> |
getTargetOpenStoreParameters() |
SimpleTaskStatus |
getTaskStatus() |
boolean |
isCancellationRequested()
Return true if has request to cancel to the task.
|
void |
setTaskStatus(SimpleTaskStatus taskStatus) |
protected AbstractExportService(ExportServiceFactory factory, ExportParameters parameters)
public ExportParameters getParameters()
getParameters
in interface ExportService
public ExportServiceFactory getFactory()
getFactory
in interface ExportService
public void addFinishListener(ExportService.ExportFinishListener listener)
addFinishListener
in interface ExportService
protected void fireFinishedListener()
protected void fireCancelledListeners()
public SimpleTaskStatus getTaskStatus()
getTaskStatus
in interface MonitorableTask
public void setTaskStatus(SimpleTaskStatus taskStatus)
setTaskStatus
in interface ExportService
public boolean isCancellationRequested()
CancellableTask
isCancellationRequested
in interface CancellableTask
public void cancelRequest()
CancellableTask
cancelRequest
in interface CancellableTask
public java.util.List<OpenDataStoreParameters> getTargetOpenStoreParameters() throws ExportException
getTargetOpenStoreParameters
in interface ExportService
ExportException
protected abstract DataServerExplorer createServerExplorer() throws ExportException
ExportException
protected abstract NewDataStoreParameters createTargetNewStoreParameters() throws ExportException
ExportException
protected abstract OpenDataStoreParameters createTargetOpenStoreParameters() throws ExportException
ExportException
public void export(FeatureSet featureSet) throws ExportException
export
in interface ExportService
ExportException
protected void copyValues(Feature source, EditableFeature target)