public class Scene7AssetImpl extends java.lang.Object implements Scene7Asset
| Modifier and Type | Class and Description |
|---|---|
static class |
Scene7AssetImpl.Scene7AssetProperty
Scene7 asset property keys
|
| Constructor and Description |
|---|
Scene7AssetImpl(java.util.Map<java.lang.Object,java.lang.Object> assetAttributes)
Creates a new
Scene7Asset object |
Scene7AssetImpl(Scene7Asset scene7Asset,
java.util.Map<java.lang.Object,java.lang.Object> overrideProperties)
Copy constructor useful for changing the properties for an already parsed
Scene7Asset |
| Modifier and Type | Method and Description |
|---|---|
void |
addSubAsset(Scene7Asset subAsset)
Adds a new sub-asset to the current asset
|
java.lang.String |
getAssetHandle()
Get this asset handle
|
java.util.Map<java.lang.String,java.lang.String> |
getAssetProperties() |
java.lang.String |
getAssetSubTypeStr()
Get the asset's subtype string from Scene7 (if appliable)
|
Scene7AssetType |
getAssetType()
Get the type of this asset
|
java.lang.String |
getAssetTypeStr()
Get the asset type as read from Scene7
|
java.lang.String |
getCreatedBy()
Get the user that created this asset
|
java.util.Date |
getCreatedDate()
Get the creation date of this asset
|
java.lang.String |
getFileName()
Get the file name where the asset is stored
|
java.lang.Integer |
getFileSize()
Gets the size in bytes of the file where the asset is stored
|
java.lang.String |
getFolder()
Get the folder where this asset is stored
|
java.lang.String |
getFolderHandle()
Get the Scene7 folder handle of the folder containing this asset
|
java.lang.Long |
getHeight()
Get the height of this asset
|
java.lang.String |
getModifiedBy()
Get the user that last modified this asset
|
java.util.Date |
getModifiedDate()
Get the last modified date of this asset
|
java.lang.String |
getName()
Get the name of this asset
|
java.lang.String |
getOriginalFile()
Get the original file uploaded to Scene7 for this asset
|
java.lang.String |
getOriginalPath()
Get the original path of the file uploaded to Scene7 for this asset
|
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.
|
java.lang.String |
getRootFolder()
Returns the root folder or an empty
String if no folder is specified for this asset. |
Scene7SmartCrop |
getSmartCrop()
Gets the
Scene7SmartCrop object (if exists) associated with
this asset |
java.util.List<Scene7Asset> |
getSubAssets()
Returns an unmodifiable view of the internal sub-assets list
|
java.lang.String |
getUrlModifier()
Get the url modified of this asset
|
java.lang.String |
getVideoEncodingPresetId()
Gets the video encoding preset id for this asset, if this is a video scene7 asset
|
java.util.Map<java.lang.String,java.lang.String> |
getViewerPresetConfigurationSettings()
Get a map containing the viewer preset configuration for this asset
|
java.lang.String |
getViewerPresetType()
Get the viewer preset type of this asset
|
java.lang.Long |
getWidth()
Get the width of this asset
|
boolean |
isPublished()
Gets the publish status of this asset
|
void |
updateOriginatorAsset(Scene7Asset originator)
Updates the originator asset of the current asset
|
public Scene7AssetImpl(java.util.Map<java.lang.Object,java.lang.Object> assetAttributes)
Scene7Asset objectassetAttributes - a Map object containing the new Scene7 asset's main attributespublic Scene7AssetImpl(Scene7Asset scene7Asset, java.util.Map<java.lang.Object,java.lang.Object> overrideProperties)
Scene7Assetscene7Asset - the original Scene7AssetoverrideProperties - a Map containing the properties that need to be updatedpublic Scene7AssetType getAssetType()
Scene7AssetgetAssetType in interface Scene7AssetScene7AssetType identifying this asset typepublic java.lang.String getAssetTypeStr()
Scene7AssetgetAssetTypeStr in interface Scene7AssetString object containing the actual Scene7 type stringpublic java.lang.String getAssetSubTypeStr()
Scene7AssetgetAssetSubTypeStr in interface Scene7AssetString object containing the Scene7 subtype stringpublic java.lang.String getName()
Scene7AssetgetName in interface Scene7AssetString object containing the asset's namepublic java.lang.String getAssetHandle()
Scene7AssetgetAssetHandle in interface Scene7AssetString object with this asset's handlepublic java.lang.String getFileName()
Scene7AssetgetFileName in interface Scene7AssetString containing the file name of the assetpublic java.lang.String getFolder()
Scene7AssetgetFolder in interface Scene7AssetString containing the folder path of the assetpublic java.lang.String getFolderHandle()
Scene7AssetgetFolderHandle in interface Scene7AssetString object containing a Scene7 folder handlepublic java.lang.String getCreatedBy()
Scene7AssetgetCreatedBy in interface Scene7AssetString object containing the username of the user that created this assetpublic java.lang.String getModifiedBy()
Scene7AssetgetModifiedBy in interface Scene7AssetString object containing the username of the user that last modified this assetpublic java.util.Date getCreatedDate()
Scene7AssetgetCreatedDate in interface Scene7AssetDate object with the creation time of the assetpublic java.util.Date getModifiedDate()
Scene7AssetgetModifiedDate in interface Scene7AssetDate object with the time the asset was last modifiedpublic java.lang.String getOriginalFile()
Scene7AssetgetOriginalFile in interface Scene7AssetString object containing the original file of this assetpublic java.lang.String getOriginalPath()
Scene7AssetgetOriginalPath in interface Scene7AssetString object containing the original path for this assetpublic java.util.List<Scene7Asset> getSubAssets()
getSubAssets in interface Scene7AssetList with the Scene7Asset assets linked to this assetpublic Scene7Asset getOriginatorAsset()
Scene7AssetgetOriginatorAsset in interface Scene7AssetScene7Asset object holding this asset's originator assetpublic void updateOriginatorAsset(Scene7Asset originator)
Scene7AssetupdateOriginatorAsset in interface Scene7Assetoriginator - the new Scene7Asset originator of the current assetpublic void addSubAsset(Scene7Asset subAsset)
Scene7AssetaddSubAsset in interface Scene7AssetsubAsset - a Scene7Asset object to be added as a sub-asset of the current assetpublic java.lang.Long getWidth()
Scene7AssetgetWidth in interface Scene7AssetLong object containing the width of this assetpublic java.lang.Long getHeight()
Scene7AssetgetHeight in interface Scene7AssetLong object containing the height of this assetpublic java.lang.String getUrlModifier()
Scene7AssetgetUrlModifier in interface Scene7AssetString object containing the url modifier of this assetpublic java.util.Map<java.lang.String,java.lang.String> getViewerPresetConfigurationSettings()
Scene7AssetgetViewerPresetConfigurationSettings in interface Scene7AssetMap that store the name-value pairs found in the viewer preset configuration of the assetpublic java.lang.String getViewerPresetType()
Scene7AssetgetViewerPresetType in interface Scene7AssetString object containing the viewer preset typepublic java.lang.String getRootFolder()
Scene7AssetString if no folder is specified for this asset.getRootFolder in interface Scene7Assetpublic boolean isPublished()
Scene7AssetisPublished in interface Scene7AssetBoolean indicating if this asset is published or notpublic java.lang.Integer getFileSize()
Scene7AssetgetFileSize in interface Scene7AssetInteger containing the file sizepublic java.lang.String getVideoEncodingPresetId()
Scene7AssetgetVideoEncodingPresetId in interface Scene7AssetString containing the video encoding preset for a video scene7 assetpublic java.util.Map<java.lang.String,java.lang.String> getAssetProperties()
getAssetProperties in interface Scene7Assetpublic Scene7SmartCrop getSmartCrop()
Scene7AssetScene7SmartCrop object (if exists) associated with
this assetgetSmartCrop in interface Scene7AssetScene7SmartCrop object"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"