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
public class DefaultBinaryExportTask extends AbstractContentExportTask implements BinaryExportTask
DefaultBinaryExportTask
implementation.
-
-
Field Summary
-
Fields inherited from class org.onehippo.forge.content.exim.core.impl.AbstractContentExportTask
contentNodeMapper, contentNodeMappingItemFilter
-
-
Constructor Summary
Constructors Constructor Description DefaultBinaryExportTask(DocumentManager documentManager)
Constructs withdocumentManager
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.onehippo.forge.content.pojo.model.ContentNode
exportBinarySetToContentNode(javax.jcr.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<javax.jcr.Item>
getContentNodeMappingItemFilter()
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 Detail
-
DefaultBinaryExportTask
public DefaultBinaryExportTask(DocumentManager documentManager)
Constructs withdocumentManager
.- Parameters:
documentManager
-DocumentManager
instance
-
-
Method Detail
-
getContentNodeMappingItemFilter
public org.onehippo.forge.content.pojo.mapper.ContentNodeMappingItemFilter<javax.jcr.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(javax.jcr.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
-
-