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)
Scene7Asset
scene7Asset
- the original Scene7Asset
overrideProperties
- a Map
containing the properties that need to be updatedpublic Scene7AssetType getAssetType()
Scene7Asset
getAssetType
in interface Scene7Asset
Scene7AssetType
identifying this asset typepublic java.lang.String getAssetTypeStr()
Scene7Asset
getAssetTypeStr
in interface Scene7Asset
String
object containing the actual Scene7 type stringpublic java.lang.String getAssetSubTypeStr()
Scene7Asset
getAssetSubTypeStr
in interface Scene7Asset
String
object containing the Scene7 subtype stringpublic java.lang.String getName()
Scene7Asset
getName
in interface Scene7Asset
String
object containing the asset's namepublic java.lang.String getAssetHandle()
Scene7Asset
getAssetHandle
in interface Scene7Asset
String
object with this asset's handlepublic java.lang.String getFileName()
Scene7Asset
getFileName
in interface Scene7Asset
String
containing the file name of the assetpublic java.lang.String getFolder()
Scene7Asset
getFolder
in interface Scene7Asset
String
containing the folder path of the assetpublic java.lang.String getFolderHandle()
Scene7Asset
getFolderHandle
in interface Scene7Asset
String
object containing a Scene7 folder handlepublic java.lang.String getCreatedBy()
Scene7Asset
getCreatedBy
in interface Scene7Asset
String
object containing the username of the user that created this assetpublic java.lang.String getModifiedBy()
Scene7Asset
getModifiedBy
in interface Scene7Asset
String
object containing the username of the user that last modified this assetpublic java.util.Date getCreatedDate()
Scene7Asset
getCreatedDate
in interface Scene7Asset
Date
object with the creation time of the assetpublic java.util.Date getModifiedDate()
Scene7Asset
getModifiedDate
in interface Scene7Asset
Date
object with the time the asset was last modifiedpublic java.lang.String getOriginalFile()
Scene7Asset
getOriginalFile
in interface Scene7Asset
String
object containing the original file of this assetpublic java.lang.String getOriginalPath()
Scene7Asset
getOriginalPath
in interface Scene7Asset
String
object containing the original path for this assetpublic java.util.List<Scene7Asset> getSubAssets()
getSubAssets
in interface Scene7Asset
List
with the Scene7Asset
assets linked to this assetpublic Scene7Asset getOriginatorAsset()
Scene7Asset
getOriginatorAsset
in interface Scene7Asset
Scene7Asset
object holding this asset's originator assetpublic void updateOriginatorAsset(Scene7Asset originator)
Scene7Asset
updateOriginatorAsset
in interface Scene7Asset
originator
- the new Scene7Asset
originator of the current assetpublic void addSubAsset(Scene7Asset subAsset)
Scene7Asset
addSubAsset
in interface Scene7Asset
subAsset
- a Scene7Asset
object to be added as a sub-asset of the current assetpublic java.lang.Long getWidth()
Scene7Asset
getWidth
in interface Scene7Asset
Long
object containing the width of this assetpublic java.lang.Long getHeight()
Scene7Asset
getHeight
in interface Scene7Asset
Long
object containing the height of this assetpublic java.lang.String getUrlModifier()
Scene7Asset
getUrlModifier
in interface Scene7Asset
String
object containing the url modifier of this assetpublic java.util.Map<java.lang.String,java.lang.String> getViewerPresetConfigurationSettings()
Scene7Asset
getViewerPresetConfigurationSettings
in interface Scene7Asset
Map
that store the name-value pairs found in the viewer preset configuration of the assetpublic java.lang.String getViewerPresetType()
Scene7Asset
getViewerPresetType
in interface Scene7Asset
String
object containing the viewer preset typepublic java.lang.String getRootFolder()
Scene7Asset
String
if no folder is specified for this asset.getRootFolder
in interface Scene7Asset
public boolean isPublished()
Scene7Asset
isPublished
in interface Scene7Asset
Boolean
indicating if this asset is published or notpublic java.lang.Integer getFileSize()
Scene7Asset
getFileSize
in interface Scene7Asset
Integer
containing the file sizepublic java.lang.String getVideoEncodingPresetId()
Scene7Asset
getVideoEncodingPresetId
in interface Scene7Asset
String
containing the video encoding preset for a video scene7 assetpublic java.util.Map<java.lang.String,java.lang.String> getAssetProperties()
getAssetProperties
in interface Scene7Asset
public Scene7SmartCrop getSmartCrop()
Scene7Asset
Scene7SmartCrop
object (if exists) associated with
this assetgetSmartCrop
in interface Scene7Asset
Scene7SmartCrop
object"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"