public interface ExportOperation
file system
.Modifier and Type | Interface and Description |
---|---|
static interface |
ExportOperation.ChannelsProviderOptions
Options for configuring the export of an added
channels provider . |
static interface |
ExportOperation.Result
Container providing access to the result of the export operation.
|
static interface |
ExportOperation.SchemaOptions
Options for configuring the export of an added
schema . |
Modifier and Type | Field and Description |
---|---|
static OperationType<ExportOperation> |
TYPE
Operation providing means to export store elements to files in a
file system . |
Modifier and Type | Method and Description |
---|---|
ExportOperation.ChannelsProviderOptions |
addChannelProvider(ChannelSourceProvider element)
Add a channels providing element for export.
|
void |
addElement(IDProvider element)
Generically adds a FirstSpirit element to be exported.
|
ExportOperation.SchemaOptions |
addSchema(Schema element)
Add a schema element for export.
|
ExportOperation.Result |
perform(FileSystem<?> fileSystem)
Perform the export on the given
file system . |
void |
setDeleteObsoleteFiles(boolean enable)
Defines to delete obsoletes files from the file system.
|
void |
setExportChildElements(boolean enable)
Defines to export child elements of elements added to this operation.
|
void |
setExportParentElements(boolean enable)
Defines to export parent elements of elements added to this operation.
|
void |
setExportReleaseEntities(boolean enable)
Defines to operate on released entities or the latest entities.
|
void |
setStepsListener(StepsListener listener)
Sets the listener that gets informed on steps being started.
|
static final OperationType<ExportOperation> TYPE
file system
.void addElement(@NotNull IDProvider element)
element
- The element to be added.ExportOperation.SchemaOptions addSchema(@NotNull Schema element)
options object
.element
- The schema element to be added.ExportOperation.ChannelsProviderOptions addChannelProvider(@NotNull ChannelSourceProvider element)
options object
.element
- The channels providing element.void setExportReleaseEntities(boolean enable)
enable
- true
, to operate on released elements.void setExportChildElements(boolean enable)
true
.
Note that entities are not children of a schema.enable
- true
, to export recursively.void setExportParentElements(boolean enable)
enable
- true
, to export parents.void setDeleteObsoleteFiles(boolean enable)
enable
- true
, to delete obsolete files.void setStepsListener(@NotNull StepsListener listener)
listener
- The listener to be set.ExportOperation.Result perform(@NotNull FileSystem<?> fileSystem) throws IOException
file system
.fileSystem
- The file system to export to.IOException
- if any access to the file system fails.Copyright © 2015 e-Spirit AG. All Rights Reserved. Build 5.1.408