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
public abstract class AbstractContentExportTask extends AbstractContentMigrationTask
Abstract content export task implementation class to provide common properties and utility operations.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.onehippo.forge.content.pojo.mapper.ContentNodeMapper<javax.jcr.Node,javax.jcr.Item,javax.jcr.Value>
contentNodeMapper
protected org.onehippo.forge.content.pojo.mapper.ContentNodeMappingItemFilter<javax.jcr.Item>
contentNodeMappingItemFilter
-
Constructor Summary
Constructors Constructor Description AbstractContentExportTask(DocumentManager documentManager)
Constructs withdocumentManager
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.onehippo.forge.content.pojo.mapper.ContentNodeMapper<javax.jcr.Node,javax.jcr.Item,javax.jcr.Value>
getContentNodeMapper()
ReturnsContentNodeMapper
instance.org.onehippo.forge.content.pojo.mapper.ContentNodeMappingItemFilter<javax.jcr.Item>
getContentNodeMappingItemFilter()
ReturnsContentNodeMappingItemFilter
instance.void
setContentNodeMapper(org.onehippo.forge.content.pojo.mapper.ContentNodeMapper<javax.jcr.Node,javax.jcr.Item,javax.jcr.Value> contentNodeMapper)
SetsContentNodeMapper
instance.void
setContentNodeMappingItemFilter(org.onehippo.forge.content.pojo.mapper.ContentNodeMappingItemFilter<javax.jcr.Item> contentNodeMappingItemFilter)
SetsContentNodeMappingItemFilter
instance.protected void
setMetaProperties(org.onehippo.forge.content.pojo.model.ContentNode contentNode, javax.jcr.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 Detail
-
contentNodeMapper
protected org.onehippo.forge.content.pojo.mapper.ContentNodeMapper<javax.jcr.Node,javax.jcr.Item,javax.jcr.Value> contentNodeMapper
-
contentNodeMappingItemFilter
protected org.onehippo.forge.content.pojo.mapper.ContentNodeMappingItemFilter<javax.jcr.Item> contentNodeMappingItemFilter
-
-
Constructor Detail
-
AbstractContentExportTask
public AbstractContentExportTask(DocumentManager documentManager)
Constructs withdocumentManager
.- Parameters:
documentManager
-DocumentManager
instance
-
-
Method Detail
-
getContentNodeMapper
public org.onehippo.forge.content.pojo.mapper.ContentNodeMapper<javax.jcr.Node,javax.jcr.Item,javax.jcr.Value> getContentNodeMapper()
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<javax.jcr.Node,javax.jcr.Item,javax.jcr.Value> contentNodeMapper)
SetsContentNodeMapper
instance.- Parameters:
contentNodeMapper
-ContentNodeMapper
instance
-
getContentNodeMappingItemFilter
public org.onehippo.forge.content.pojo.mapper.ContentNodeMappingItemFilter<javax.jcr.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<javax.jcr.Item> contentNodeMappingItemFilter)
SetsContentNodeMappingItemFilter
instance.- Parameters:
contentNodeMappingItemFilter
-ContentNodeMappingItemFilter
instance
-
setMetaProperties
protected void setMetaProperties(org.onehippo.forge.content.pojo.model.ContentNode contentNode, javax.jcr.Node sourceNode) throws javax.jcr.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:
javax.jcr.RepositoryException
- if data cannot be read from thesourceNode
due to repository error
-
-