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 TypeMethodDescriptionReturnsContentNodeMapperinstance.org.onehippo.forge.content.pojo.mapper.ContentNodeMappingItemFilter<Item>ReturnsContentNodeMappingItemFilterinstance.voidsetContentNodeMapper(org.onehippo.forge.content.pojo.mapper.ContentNodeMapper<Node, Item, Value> contentNodeMapper) SetsContentNodeMapperinstance.voidsetContentNodeMappingItemFilter(org.onehippo.forge.content.pojo.mapper.ContentNodeMappingItemFilter<Item> contentNodeMappingItemFilter) SetsContentNodeMappingItemFilterinstance.protected voidsetMetaProperties(org.onehippo.forge.content.pojo.model.ContentNode contentNode, Node sourceNode) Set meta properties such asConstants.META_PROP_NODE_PATHandConstants.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-DocumentManagerinstance
-
-
Method Details
-
getContentNodeMapper
public org.onehippo.forge.content.pojo.mapper.ContentNodeMapper<Node,Item, getContentNodeMapper()Value> ReturnsContentNodeMapperinstance. If not set, returns a default implementation.- Returns:
ContentNodeMapperinstance. If not set, returns a default implementation
-
setContentNodeMapper
public void setContentNodeMapper(org.onehippo.forge.content.pojo.mapper.ContentNodeMapper<Node, Item, Value> contentNodeMapper) SetsContentNodeMapperinstance.- Parameters:
contentNodeMapper-ContentNodeMapperinstance
-
getContentNodeMappingItemFilter
public org.onehippo.forge.content.pojo.mapper.ContentNodeMappingItemFilter<Item> getContentNodeMappingItemFilter()ReturnsContentNodeMappingItemFilterinstance. If not set, returns a default implementation.- Returns:
ContentNodeMappingItemFilterinstance. If not set, returns a default implementation
-
setContentNodeMappingItemFilter
public void setContentNodeMappingItemFilter(org.onehippo.forge.content.pojo.mapper.ContentNodeMappingItemFilter<Item> contentNodeMappingItemFilter) SetsContentNodeMappingItemFilterinstance.- Parameters:
contentNodeMappingItemFilter-ContentNodeMappingItemFilterinstance
-
setMetaProperties
protected void setMetaProperties(org.onehippo.forge.content.pojo.model.ContentNode contentNode, Node sourceNode) throws RepositoryException Set meta properties such asConstants.META_PROP_NODE_PATHandConstants.META_PROP_NODE_LOCALIZED_NAME, which might be helpful when importing back later.- Parameters:
contentNode-ContentNodeinstance to set the meta propertiessourceNode- the source node from which the meta properties should be extracted- Throws:
RepositoryException- if data cannot be read from thesourceNodedue to repository error
-