Interface BinaryImportTask

All Superinterfaces:
ContentMigrationTask
All Known Implementing Classes:
DefaultBinaryImportTask

public interface BinaryImportTask extends ContentMigrationTask
ContentMigrationTask to import binary (gallery/asset) data from ContentNode objects.
  • Method Details

    • createOrUpdateBinaryFolder

      String createOrUpdateBinaryFolder(String folderLocation, String primaryTypeName, String[] folderTypes, String[] galleryTypes) throws ContentMigrationException
      Throws:
      ContentMigrationException
    • createOrUpdateBinaryFromContentNode

      String createOrUpdateBinaryFromContentNode(org.onehippo.forge.content.pojo.model.ContentNode contentNode, String primaryTypeName, String folderPath, String name) throws ContentMigrationException
      Creates an imageset (e.g, hippogallery:imageset) content or an assetset (e.g, hippogallery:exampleAssetSet) content from a ContentNode object.
      Parameters:
      contentNode - a ContentNode object containing an imageset (e.g, hippogallery:imageset) content or an assetset (e.g, hippogallery:exampleAssetSet) content
      primaryTypeName - primary node type of binary content. e.g, hippogallery:imageset, hippogallery:exampleAssetSet, etc.
      folderPath - folder node path where this binary content should be created or updated
      name - binary content node name
      Returns:
      created or updated binary handle node path
      Throws:
      ContentMigrationException - if importing fails