Package com.day.cq.dam.scene7.api.model
Interface Scene7Asset
-
- All Superinterfaces:
java.io.Serializable
@ProviderType public interface Scene7Asset extends java.io.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 assetjava.lang.StringgetAssetHandle()Get this asset handlejava.util.Map<java.lang.String,java.lang.String>getAssetProperties()java.lang.StringgetAssetSubTypeStr()Get the asset's subtype string from Scene7 (if appliable)Scene7AssetTypegetAssetType()Get the type of this assetjava.lang.StringgetAssetTypeStr()Get the asset type as read from Scene7java.lang.StringgetCreatedBy()Get the user that created this assetjava.util.DategetCreatedDate()Get the creation date of this assetjava.lang.StringgetFileName()Get the file name where the asset is storedjava.lang.IntegergetFileSize()Gets the size in bytes of the file where the asset is storedjava.lang.StringgetFolder()Get the folder where this asset is storedjava.lang.StringgetFolderHandle()Get the Scene7 folder handle of the folder containing this assetjava.lang.LonggetHeight()Get the height of this assetjava.lang.StringgetIpsImageUrl()Get the ips url for this assetjava.lang.StringgetModifiedBy()Get the user that last modified this assetjava.util.DategetModifiedDate()Get the last modified date of this assetjava.lang.StringgetName()Get the name of this assetjava.lang.StringgetOriginalFile()Get the original file uploaded to Scene7 for this assetjava.lang.StringgetOriginalPath()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.java.lang.StringgetRootFolder()Returns the root folder or an emptyStringif no folder is specified for this asset.Scene7SmartCropgetSmartCrop()Gets theScene7SmartCropobject (if exists) associated with this assetjava.util.List<Scene7Asset>getSubAssets()Get the list of this asset's sub-assetsjava.lang.StringgetUrlModifier()Get the url modified of this assetjava.lang.StringgetVideoEncodingPresetId()Gets the video encoding preset id for this asset, if this is a video scene7 assetjava.util.Map<java.lang.String,java.lang.String>getVideoProperties()Returns a map with video properties such as duration, bit rate of the asset if its a video, null otherwisejava.util.Map<java.lang.String,java.lang.String>getViewerPresetConfigurationSettings()Get a map containing the viewer preset configuration for this assetjava.lang.StringgetViewerPresetType()Get the viewer preset type of this assetjava.lang.LonggetWidth()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
java.lang.String getAssetTypeStr()
Get the asset type as read from Scene7- Returns:
- A
Stringobject containing the actual Scene7 type string
-
getAssetSubTypeStr
java.lang.String getAssetSubTypeStr()
Get the asset's subtype string from Scene7 (if appliable)- Returns:
- A
Stringobject containing the Scene7 subtype string
-
getName
java.lang.String getName()
Get the name of this asset- Returns:
Stringobject containing the asset's name
-
getAssetHandle
java.lang.String getAssetHandle()
Get this asset handle- Returns:
Stringobject with this asset's handle
-
getFileName
java.lang.String getFileName()
Get the file name where the asset is stored- Returns:
Stringcontaining the file name of the asset
-
getFolder
java.lang.String getFolder()
Get the folder where this asset is stored- Returns:
Stringcontaining the folder path of the asset
-
getFolderHandle
java.lang.String getFolderHandle()
Get the Scene7 folder handle of the folder containing this asset- Returns:
Stringobject containing a Scene7 folder handle
-
getCreatedBy
java.lang.String getCreatedBy()
Get the user that created this asset- Returns:
Stringobject containing the username of the user that created this asset
-
getModifiedBy
java.lang.String getModifiedBy()
Get the user that last modified this asset- Returns:
Stringobject containing the username of the user that last modified this asset
-
getCreatedDate
java.util.Date getCreatedDate()
Get the creation date of this asset- Returns:
Dateobject with the creation time of the asset
-
getModifiedDate
java.util.Date getModifiedDate()
Get the last modified date of this asset- Returns:
Dateobject with the time the asset was last modified
-
getOriginalFile
java.lang.String getOriginalFile()
Get the original file uploaded to Scene7 for this asset- Returns:
Stringobject containing the original file of this asset
-
getOriginalPath
java.lang.String getOriginalPath()
Get the original path of the file uploaded to Scene7 for this asset- Returns:
Stringobject containing the original path for this asset
-
getIpsImageUrl
java.lang.String getIpsImageUrl()
Get the ips url for this asset- Returns:
Stringobject containing the ips url for this asset
-
getSubAssets
java.util.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
java.lang.Long getWidth()
Get the width of this asset- Returns:
- a
Longobject containing the width of this asset
-
getHeight
java.lang.Long getHeight()
Get the height of this asset- Returns:
- a
Longobject containing the height of this asset
-
getUrlModifier
java.lang.String getUrlModifier()
Get the url modified of this asset- Returns:
- a
Stringobject containing the url modifier of this asset
-
getViewerPresetType
java.lang.String getViewerPresetType()
Get the viewer preset type of this asset- Returns:
- a
Stringobject containing the viewer preset type
-
getViewerPresetConfigurationSettings
java.util.Map<java.lang.String,java.lang.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
java.lang.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
java.lang.Integer getFileSize()
Gets the size in bytes of the file where the asset is stored- Returns:
- an
Integercontaining the file size
-
getVideoEncodingPresetId
java.lang.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
-
getAssetProperties
java.util.Map<java.lang.String,java.lang.String> getAssetProperties()
-
getSmartCrop
Scene7SmartCrop getSmartCrop()
Gets theScene7SmartCropobject (if exists) associated with this asset- Returns:
Scene7SmartCropobject
-
getVideoProperties
java.util.Map<java.lang.String,java.lang.String> getVideoProperties()
Returns a map with video properties such as duration, bit rate of the asset if its a video, null otherwise- Returns:
- a
java.util.Map
-
-