Class AbstractContentExportTask
java.lang.Object
org.onehippo.forge.content.exim.core.impl.AbstractContentMigrationTask
org.onehippo.forge.content.exim.core.impl.AbstractContentExportTask
- All Implemented Interfaces:
ContentMigrationTask
- Direct Known Subclasses:
DefaultBinaryExportTask
,WorkflowDocumentVariantExportTask
Abstract content export task implementation class to provide common properties and utility operations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.onehippo.forge.content.pojo.mapper.ContentNodeMappingItemFilter<Item>
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractContentExportTask
(DocumentManager documentManager) Constructs withdocumentManager
. -
Method Summary
Modifier and TypeMethodDescriptionReturnsContentNodeMapper
instance.org.onehippo.forge.content.pojo.mapper.ContentNodeMappingItemFilter<Item>
ReturnsContentNodeMappingItemFilter
instance.void
setContentNodeMapper
(org.onehippo.forge.content.pojo.mapper.ContentNodeMapper<Node, Item, Value> contentNodeMapper) SetsContentNodeMapper
instance.void
setContentNodeMappingItemFilter
(org.onehippo.forge.content.pojo.mapper.ContentNodeMappingItemFilter<Item> contentNodeMappingItemFilter) SetsContentNodeMappingItemFilter
instance.protected void
setMetaProperties
(org.onehippo.forge.content.pojo.model.ContentNode contentNode, Node sourceNode) Set meta properties such asConstants.META_PROP_NODE_PATH
andConstants.META_PROP_NODE_LOCALIZED_NAME
, which might be helpful when importing back later.Methods inherited from class org.onehippo.forge.content.exim.core.impl.AbstractContentMigrationTask
beginRecord, endRecord, findFilesByNamePattern, getBinaryValueFileFolder, getContentMigrationRecords, getContentValueConverter, getCurrentContentMigrationRecord, getDataUrlSizeThreashold, getDocumentManager, getLogger, getObjectMapper, getStartedTimeMillis, getStoppedTimeMillis, getSummary, logSummary, readContentNodeFromJsonFile, readContentNodeFromXmlFile, setBinaryValueFileFolder, setContentValueConverter, setDataUrlSizeThreashold, setLogger, setObjectMapper, start, stop, writeContentNodeToJsonFile, writeContentNodeToXmlFile
-
Field Details
-
contentNodeMapper
-
contentNodeMappingItemFilter
protected org.onehippo.forge.content.pojo.mapper.ContentNodeMappingItemFilter<Item> contentNodeMappingItemFilter
-
-
Constructor Details
-
AbstractContentExportTask
Constructs withdocumentManager
.- Parameters:
documentManager
-DocumentManager
instance
-
-
Method Details
-
getContentNodeMapper
public org.onehippo.forge.content.pojo.mapper.ContentNodeMapper<Node,Item, getContentNodeMapper()Value> ReturnsContentNodeMapper
instance. If not set, returns a default implementation.- Returns:
ContentNodeMapper
instance. If not set, returns a default implementation
-
setContentNodeMapper
public void setContentNodeMapper(org.onehippo.forge.content.pojo.mapper.ContentNodeMapper<Node, Item, Value> contentNodeMapper) SetsContentNodeMapper
instance.- Parameters:
contentNodeMapper
-ContentNodeMapper
instance
-
getContentNodeMappingItemFilter
public org.onehippo.forge.content.pojo.mapper.ContentNodeMappingItemFilter<Item> getContentNodeMappingItemFilter()ReturnsContentNodeMappingItemFilter
instance. If not set, returns a default implementation.- Returns:
ContentNodeMappingItemFilter
instance. If not set, returns a default implementation
-
setContentNodeMappingItemFilter
public void setContentNodeMappingItemFilter(org.onehippo.forge.content.pojo.mapper.ContentNodeMappingItemFilter<Item> contentNodeMappingItemFilter) SetsContentNodeMappingItemFilter
instance.- Parameters:
contentNodeMappingItemFilter
-ContentNodeMappingItemFilter
instance
-
setMetaProperties
protected void setMetaProperties(org.onehippo.forge.content.pojo.model.ContentNode contentNode, Node sourceNode) throws RepositoryException Set meta properties such asConstants.META_PROP_NODE_PATH
andConstants.META_PROP_NODE_LOCALIZED_NAME
, which might be helpful when importing back later.- Parameters:
contentNode
-ContentNode
instance to set the meta propertiessourceNode
- the source node from which the meta properties should be extracted- Throws:
RepositoryException
- if data cannot be read from thesourceNode
due to repository error
-