Package com.day.cq.dam.scene7.api.model
Interface Scene7Asset
-
- All Superinterfaces:
Serializable
@ProviderType public interface Scene7Asset extends Serializable
Abstraction of a Scene7 Asset
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddSubAsset(Scene7Asset subAsset)Adds a new sub-asset to the current assetStringgetAssetHandle()Get this asset handleMap<String,String>getAssetProperties()StringgetAssetSubTypeStr()Get the asset's subtype string from Scene7 (if appliable)Scene7AssetTypegetAssetType()Get the type of this assetStringgetAssetTypeStr()Get the asset type as read from Scene7StringgetCreatedBy()Get the user that created this assetDategetCreatedDate()Get the creation date of this assetStringgetFileName()Get the file name where the asset is storedIntegergetFileSize()Gets the size in bytes of the file where the asset is storedStringgetFolder()Get the folder where this asset is storedStringgetFolderHandle()Get the Scene7 folder handle of the folder containing this assetLonggetHeight()Get the height of this assetStringgetModifiedBy()Get the user that last modified this assetDategetModifiedDate()Get the last modified date of this assetStringgetName()Get the name of this assetStringgetOriginalFile()Get the original file uploaded to Scene7 for this assetStringgetOriginalPath()Get the original path of the file uploaded to Scene7 for this assetScene7AssetgetOriginatorAsset()Gets the originator asset for this asset Should only return a valid asset if the current asset was generated from another uploaded asset (e.g.StringgetRootFolder()Returns the root folder or an emptyStringif no folder is specified for this asset.Scene7SmartCropgetSmartCrop()Gets theScene7SmartCropobject (if exists) associated with this assetList<Scene7Asset>getSubAssets()Get the list of this asset's sub-assetsStringgetUrlModifier()Get the url modified of this assetStringgetVideoEncodingPresetId()Gets the video encoding preset id for this asset, if this is a video scene7 assetMap<String,String>getVideoProperties()Returns a map with video properties such as duration, bit rate of the asset if its a video, null otherwiseMap<String,String>getViewerPresetConfigurationSettings()Get a map containing the viewer preset configuration for this assetStringgetViewerPresetType()Get the viewer preset type of this assetLonggetWidth()Get the width of this assetbooleanisPublished()Gets the publish status of this assetvoidupdateOriginatorAsset(Scene7Asset originator)Updates the originator asset of the current asset
-
-
-
Method Detail
-
getAssetType
Scene7AssetType getAssetType()
Get the type of this asset- Returns:
- A
Scene7AssetTypeidentifying this asset type
-
getAssetTypeStr
String getAssetTypeStr()
Get the asset type as read from Scene7- Returns:
- A
Stringobject containing the actual Scene7 type string
-
getAssetSubTypeStr
String getAssetSubTypeStr()
Get the asset's subtype string from Scene7 (if appliable)- Returns:
- A
Stringobject containing the Scene7 subtype string
-
getName
String getName()
Get the name of this asset- Returns:
Stringobject containing the asset's name
-
getAssetHandle
String getAssetHandle()
Get this asset handle- Returns:
Stringobject with this asset's handle
-
getFileName
String getFileName()
Get the file name where the asset is stored- Returns:
Stringcontaining the file name of the asset
-
getFolder
String getFolder()
Get the folder where this asset is stored- Returns:
Stringcontaining the folder path of the asset
-
getFolderHandle
String getFolderHandle()
Get the Scene7 folder handle of the folder containing this asset- Returns:
Stringobject containing a Scene7 folder handle
-
getCreatedBy
String getCreatedBy()
Get the user that created this asset- Returns:
Stringobject containing the username of the user that created this asset
-
getModifiedBy
String getModifiedBy()
Get the user that last modified this asset- Returns:
Stringobject containing the username of the user that last modified this asset
-
getCreatedDate
Date getCreatedDate()
Get the creation date of this asset- Returns:
Dateobject with the creation time of the asset
-
getModifiedDate
Date getModifiedDate()
Get the last modified date of this asset- Returns:
Dateobject with the time the asset was last modified
-
getOriginalFile
String getOriginalFile()
Get the original file uploaded to Scene7 for this asset- Returns:
Stringobject containing the original file of this asset
-
getOriginalPath
String getOriginalPath()
Get the original path of the file uploaded to Scene7 for this asset- Returns:
Stringobject containing the original path for this asset
-
getSubAssets
List<Scene7Asset> getSubAssets()
Get the list of this asset's sub-assets- Returns:
- a
Listwith theScene7Assetassets linked to this asset
-
addSubAsset
void addSubAsset(Scene7Asset subAsset)
Adds a new sub-asset to the current asset- Parameters:
subAsset- aScene7Assetobject to be added as a sub-asset of the current asset
-
getOriginatorAsset
Scene7Asset getOriginatorAsset()
Gets the originator asset for this asset Should only return a valid asset if the current asset was generated from another uploaded asset (e.g. a Template asset is usually generated after importing a PSD into Scene7; the original uploaded PSD will be the Template asset's originator)- Returns:
- a
Scene7Assetobject holding this asset's originator asset
-
updateOriginatorAsset
void updateOriginatorAsset(Scene7Asset originator)
Updates the originator asset of the current asset- Parameters:
originator- the newScene7Assetoriginator of the current asset
-
getWidth
Long getWidth()
Get the width of this asset- Returns:
- a
Longobject containing the width of this asset
-
getHeight
Long getHeight()
Get the height of this asset- Returns:
- a
Longobject containing the height of this asset
-
getUrlModifier
String getUrlModifier()
Get the url modified of this asset- Returns:
- a
Stringobject containing the url modifier of this asset
-
getViewerPresetType
String getViewerPresetType()
Get the viewer preset type of this asset- Returns:
- a
Stringobject containing the viewer preset type
-
getViewerPresetConfigurationSettings
Map<String,String> getViewerPresetConfigurationSettings()
Get a map containing the viewer preset configuration for this asset- Returns:
- a
Mapthat store the name-value pairs found in the viewer preset configuration of the asset
-
getRootFolder
String getRootFolder()
Returns the root folder or an emptyStringif no folder is specified for this asset.- Returns:
- path to Root folder
-
isPublished
boolean isPublished()
Gets the publish status of this asset- Returns:
- a
Booleanindicating if this asset is published or not
-
getFileSize
Integer getFileSize()
Gets the size in bytes of the file where the asset is stored- Returns:
- an
Integercontaining the file size
-
getVideoEncodingPresetId
String getVideoEncodingPresetId()
Gets the video encoding preset id for this asset, if this is a video scene7 asset- Returns:
- a
Stringcontaining the video encoding preset for a video scene7 asset
-
getSmartCrop
Scene7SmartCrop getSmartCrop()
Gets theScene7SmartCropobject (if exists) associated with this asset- Returns:
Scene7SmartCropobject
-
-