Interface BinaryImportTask
- All Superinterfaces:
ContentMigrationTask
- All Known Implementing Classes:
DefaultBinaryImportTask
ContentMigrationTask
to import binary (gallery/asset) data from ContentNode
objects.-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdateBinaryFolder
(String folderLocation, String primaryTypeName, String[] folderTypes, String[] galleryTypes) 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 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 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
-