Package com.day.cq.dam.scene7.api
Interface Scene7AssetFactory
-
@ProviderType public interface Scene7AssetFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTRASH_STATE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Scene7AssetcreateAsset(java.util.Map<java.lang.Object,java.lang.Object> assetAttributes)Creates a newScene7AssetobjectScene7AssetparseAsset(org.w3c.dom.Element element)Builds aScene7Assetobject from theElementobject received as a parameterjava.util.List<Scene7Asset>parseAssets(org.w3c.dom.Document document)Processes theDocumentand builds a list ofScene7Assetobjects that the document containsScene7AssetparseMasterAssets(Scene7Asset asset, org.w3c.dom.Document associatedAssetsDocument)Attempts to parse the originator asset for a Scene7 asset that supports sub assetsScene7AssetparseSubAssets(Scene7Asset asset, org.w3c.dom.Document associatedAssetsDocument)Attempts to parse the originator asset and sub assets for a Scene7 asset that supports sub assets
-
-
-
Field Detail
-
TRASH_STATE
static final java.lang.String TRASH_STATE
- See Also:
- Constant Field Values
-
-
Method Detail
-
parseAssets
java.util.List<Scene7Asset> parseAssets(org.w3c.dom.Document document)
Processes theDocumentand builds a list ofScene7Assetobjects that the document contains- Parameters:
document- Document object containing the Scene7 assets- Returns:
- a List of
Scene7Assetobjects
-
parseAsset
Scene7Asset parseAsset(org.w3c.dom.Element element)
Builds aScene7Assetobject from theElementobject received as a parameter- Parameters:
element-Elementobject containing a Scene7 asset- Returns:
Scene7Assetobject
-
parseMasterAssets
Scene7Asset parseMasterAssets(Scene7Asset asset, org.w3c.dom.Document associatedAssetsDocument)
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
Scene7Asset parseSubAssets(Scene7Asset asset, org.w3c.dom.Document associatedAssetsDocument)
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
Scene7Asset createAsset(java.util.Map<java.lang.Object,java.lang.Object> assetAttributes)
Creates a newScene7Assetobject- Parameters:
assetAttributes- aMapobject containing the new Scene7 asset's main attributes
-
-