Package com.day.cq.dam.scene7.api
Interface Scene7AssetFactory
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncreateAsset(Map<Object, Object> assetAttributes) Creates a newScene7AssetobjectparseAsset(Element element) Builds aScene7Assetobject from theElementobject received as a parameterparseAssets(Document document) Processes theDocumentand builds a list ofScene7Assetobjects that the document containsparseMasterAssets(Scene7Asset asset, Document associatedAssetsDocument) Attempts to parse the originator asset for a Scene7 asset that supports sub assetsparseSubAssets(Scene7Asset asset, Document associatedAssetsDocument) Attempts to parse the originator asset and sub assets for a Scene7 asset that supports sub assets
-
Field Details
-
TRASH_STATE
- See Also:
-
-
Method Details
-
parseAssets
Processes theDocumentand builds a list ofScene7Assetobjects that the document contains- Parameters:
document- Document object containing the Scene7 assets- Returns:
- a List of
Scene7Assetobjects
-
parseAsset
Builds aScene7Assetobject from theElementobject received as a parameter- Parameters:
element-Elementobject containing a Scene7 asset- Returns:
Scene7Assetobject
-
parseMasterAssets
Attempts to parse the originator asset for a Scene7 asset that supports sub assets- Parameters:
asset-Scene7Assetasset capable of supporting sub-assetsassociatedAssetsDocument-Documentobject containing the sub assets and the originator asset- Returns:
- the
Scene7Assetobject updated with the parsed sub-assets and the originator asset If theScene7Assetasset object does not support sub-assets, the object will not be touched
-
parseSubAssets
Attempts to parse the originator asset and sub assets for a Scene7 asset that supports sub assets- Parameters:
asset-Scene7Assetasset capable of supporting sub-assetsassociatedAssetsDocument-Documentobject containing the sub assets and the originator asset- Returns:
- the
Scene7Assetobject updated with the parsed sub-assets and the originator asset If theScene7Assetasset object does not support sub-assets, the object will not be touched
-
createAsset
Creates a newScene7Assetobject- Parameters:
assetAttributes- aMapobject containing the new Scene7 asset's main attributes
-