Interface BinaryImportTask

    • Method Detail

      • 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