Interface BinaryImportTask
-
- All Superinterfaces:
ContentMigrationTask
- All Known Implementing Classes:
DefaultBinaryImportTask
public interface BinaryImportTask extends ContentMigrationTask
ContentMigrationTask
to import binary (gallery/asset) data fromContentNode
objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
createOrUpdateBinaryFolder(String folderLocation, String primaryTypeName, String[] folderTypes, String[] galleryTypes)
String
createOrUpdateBinaryFromContentNode(org.onehippo.forge.content.pojo.model.ContentNode contentNode, String primaryTypeName, String folderPath, String name)
Creates an imageset (e.g,hippogallery:imageset
) content or an assetset (e.g,hippogallery:exampleAssetSet
) content from aContentNode
object.-
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
-
-
-
-
Method Detail
-
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 aContentNode
object.- Parameters:
contentNode
- aContentNode
object containing an imageset (e.g,hippogallery:imageset
) content or an assetset (e.g,hippogallery:exampleAssetSet
) contentprimaryTypeName
- 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 updatedname
- binary content node name- Returns:
- created or updated binary handle node path
- Throws:
ContentMigrationException
- if importing fails
-
-