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 ExportServicepublic ExportServiceFactory getFactory()
getFactory in interface ExportServicepublic void addFinishListener(ExportService.ExportFinishListener listener)
addFinishListener in interface ExportServiceprotected void fireFinishedListener()
protected void fireCancelledListeners()
public SimpleTaskStatus getTaskStatus()
getTaskStatus in interface MonitorableTaskpublic void setTaskStatus(SimpleTaskStatus taskStatus)
setTaskStatus in interface ExportServicepublic boolean isCancellationRequested()
CancellableTaskisCancellationRequested in interface CancellableTaskpublic void cancelRequest()
CancellableTaskcancelRequest in interface CancellableTaskpublic java.util.List<OpenDataStoreParameters> getTargetOpenStoreParameters() throws ExportException
getTargetOpenStoreParameters in interface ExportServiceExportExceptionprotected abstract DataServerExplorer createServerExplorer() throws ExportException
ExportExceptionprotected abstract NewDataStoreParameters createTargetNewStoreParameters() throws ExportException
ExportExceptionprotected abstract OpenDataStoreParameters createTargetOpenStoreParameters() throws ExportException
ExportExceptionpublic void export(FeatureSet featureSet) throws ExportException
export in interface ExportServiceExportExceptionprotected void copyValues(Feature source, EditableFeature target)