Class WorkflowDocumentVariantExportTask
java.lang.Object
org.onehippo.forge.content.exim.core.impl.AbstractContentMigrationTask
org.onehippo.forge.content.exim.core.impl.AbstractContentExportTask
org.onehippo.forge.content.exim.core.impl.WorkflowDocumentVariantExportTask
- All Implemented Interfaces:
ContentMigrationTask
,DocumentVariantExportTask
public class WorkflowDocumentVariantExportTask
extends AbstractContentExportTask
implements DocumentVariantExportTask
DocumentVariantExportTask
implementation using Hippo Repository Workflow APIs.-
Field Summary
Fields inherited from class org.onehippo.forge.content.exim.core.impl.AbstractContentExportTask
contentNodeMapper, contentNodeMappingItemFilter
-
Constructor Summary
ConstructorsConstructorDescriptionWorkflowDocumentVariantExportTask
(DocumentManager documentManager) Constructs withdocumentManager
. -
Method Summary
Modifier and TypeMethodDescriptionorg.onehippo.forge.content.pojo.model.ContentNode
exportVariantToContentNode
(org.hippoecm.repository.api.Document document) Exports a document variant (Document
),document
, to aContentNode
object.org.onehippo.forge.content.pojo.mapper.ContentNodeMappingItemFilter<Item>
ReturnsContentNodeMappingItemFilter
instance.Methods inherited from class org.onehippo.forge.content.exim.core.impl.AbstractContentExportTask
getContentNodeMapper, setContentNodeMapper, setContentNodeMappingItemFilter, setMetaProperties
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.onehippo.forge.content.exim.core.ContentMigrationTask
beginRecord, endRecord, getContentMigrationRecords, getLogger, getStartedTimeMillis, getStoppedTimeMillis, getSummary, logSummary, readContentNodeFromJsonFile, readContentNodeFromXmlFile, setLogger, start, stop, writeContentNodeToJsonFile, writeContentNodeToXmlFile
-
Constructor Details
-
WorkflowDocumentVariantExportTask
Constructs withdocumentManager
.- Parameters:
documentManager
-DocumentManager
instance
-
-
Method Details
-
getContentNodeMappingItemFilter
public org.onehippo.forge.content.pojo.mapper.ContentNodeMappingItemFilter<Item> getContentNodeMappingItemFilter()ReturnsContentNodeMappingItemFilter
instance. If not set, returns a default implementation.- Overrides:
getContentNodeMappingItemFilter
in classAbstractContentExportTask
- Returns:
ContentNodeMappingItemFilter
instance. If not set, returns a default implementation
-
exportVariantToContentNode
public org.onehippo.forge.content.pojo.model.ContentNode exportVariantToContentNode(org.hippoecm.repository.api.Document document) throws ContentMigrationException Exports a document variant (Document
),document
, to aContentNode
object.- Specified by:
exportVariantToContentNode
in interfaceDocumentVariantExportTask
- Parameters:
document
- a document variant (Document
)- Returns:
- a
ContentNode
object written with thedocument
data - Throws:
ContentMigrationException
- if exporting fails
-