Class DefaultBinaryExportTask
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.DefaultBinaryExportTask
- All Implemented Interfaces:
BinaryExportTask
,ContentMigrationTask
Default
BinaryExportTask
implementation.-
Field Summary
Fields inherited from class org.onehippo.forge.content.exim.core.impl.AbstractContentExportTask
contentNodeMapper, contentNodeMappingItemFilter
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultBinaryExportTask
(DocumentManager documentManager) Constructs withdocumentManager
. -
Method Summary
Modifier and TypeMethodDescriptionorg.onehippo.forge.content.pojo.model.ContentNode
exportBinarySetToContentNode
(Node imageSetOrAssetSetNode) Exports an imageset (e.g,hippogallery:imageset
) node or an assetset (e.g,hippogallery:exampleAssetSet
) node 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
-
DefaultBinaryExportTask
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
-
exportBinarySetToContentNode
public org.onehippo.forge.content.pojo.model.ContentNode exportBinarySetToContentNode(Node imageSetOrAssetSetNode) throws ContentMigrationException Exports an imageset (e.g,hippogallery:imageset
) node or an assetset (e.g,hippogallery:exampleAssetSet
) node to aContentNode
object.- Specified by:
exportBinarySetToContentNode
in interfaceBinaryExportTask
- Parameters:
imageSetOrAssetSetNode
- an imageset (e.g,hippogallery:imageset
) node or an assetset (e.g,hippogallery:exampleAssetSet
) node- Returns:
- an exported
ContentNode
object - Throws:
ContentMigrationException
- if exporting fails
-