Class DefaultBinaryExportTask

All Implemented Interfaces:
BinaryExportTask, ContentMigrationTask

public class DefaultBinaryExportTask extends AbstractContentExportTask implements BinaryExportTask
Default BinaryExportTask implementation.
  • Constructor Details

    • DefaultBinaryExportTask

      public DefaultBinaryExportTask(DocumentManager documentManager)
      Constructs with documentManager.
      Parameters:
      documentManager - DocumentManager instance
  • Method Details

    • getContentNodeMappingItemFilter

      public org.onehippo.forge.content.pojo.mapper.ContentNodeMappingItemFilter<Item> getContentNodeMappingItemFilter()
      Returns ContentNodeMappingItemFilter instance. If not set, returns a default implementation.
      Overrides:
      getContentNodeMappingItemFilter in class AbstractContentExportTask
      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 a ContentNode object.
      Specified by:
      exportBinarySetToContentNode in interface BinaryExportTask
      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