public class Scene7AssetImpl extends Object implements Scene7Asset
Modifier and Type | Class and Description |
---|---|
static class |
Scene7AssetImpl.Scene7AssetProperty
Scene7 asset property keys
|
Constructor and Description |
---|
Scene7AssetImpl(Map<Object,Object> assetAttributes)
Creates a new
Scene7Asset object |
Scene7AssetImpl(Scene7Asset scene7Asset,
Map<Object,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
|
String |
getAssetHandle()
Get this asset handle
|
Map<String,String> |
getAssetProperties() |
Scene7AssetType |
getAssetType()
Get the type of this asset
|
String |
getAssetTypeStr()
Get the asset type as read from Scene7
|
String |
getCreatedBy()
Get the user that created this asset
|
Date |
getCreatedDate()
Get the creation date of this asset
|
String |
getFileName()
Get the file name where the asset is stored
|
Integer |
getFileSize()
Gets the size in bytes of the file where the asset is stored
|
String |
getFolder()
Get the folder where this asset is stored
|
String |
getFolderHandle()
Get the Scene7 folder handle of the folder containing this asset
|
Long |
getHeight()
Get the height of this asset
|
String |
getModifiedBy()
Get the user that last modified this asset
|
Date |
getModifiedDate()
Get the last modified date of this asset
|
String |
getName()
Get the name of this asset
|
String |
getOriginalFile()
Get the original file uploaded to Scene7 for this asset
|
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.
|
String |
getRootFolder()
Returns the root folder or an empty
String if no folder is specified for this asset. |
List<Scene7Asset> |
getSubAssets()
Returns an unmodifiable view of the internal sub-assets list
|
String |
getUrlModifier()
Get the url modified of this asset
|
String |
getVideoEncodingPresetId()
Gets the video encoding preset id for this asset, if this is a video scene7 asset
|
Map<String,String> |
getViewerPresetConfigurationSettings()
Get a map containing the viewer preset configuration for this asset
|
String |
getViewerPresetType()
Get the viewer preset type of this asset
|
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(Map<Object,Object> assetAttributes)
Scene7Asset
objectassetAttributes
- a Map
object containing the new Scene7 asset's main attributespublic Scene7AssetImpl(Scene7Asset scene7Asset, Map<Object,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 String getAssetTypeStr()
Scene7Asset
getAssetTypeStr
in interface Scene7Asset
String
object containing the actual Scene7 type stringpublic String getName()
Scene7Asset
getName
in interface Scene7Asset
String
object containing the asset's namepublic String getAssetHandle()
Scene7Asset
getAssetHandle
in interface Scene7Asset
String
object with this asset's handlepublic String getFileName()
Scene7Asset
getFileName
in interface Scene7Asset
String
containing the file name of the assetpublic String getFolder()
Scene7Asset
getFolder
in interface Scene7Asset
String
containing the folder path of the assetpublic String getFolderHandle()
Scene7Asset
getFolderHandle
in interface Scene7Asset
String
object containing a Scene7 folder handlepublic String getCreatedBy()
Scene7Asset
getCreatedBy
in interface Scene7Asset
String
object containing the username of the user that created this assetpublic String getModifiedBy()
Scene7Asset
getModifiedBy
in interface Scene7Asset
String
object containing the username of the user that last modified this assetpublic Date getCreatedDate()
Scene7Asset
getCreatedDate
in interface Scene7Asset
Date
object with the creation time of the assetpublic Date getModifiedDate()
Scene7Asset
getModifiedDate
in interface Scene7Asset
Date
object with the time the asset was last modifiedpublic String getOriginalFile()
Scene7Asset
getOriginalFile
in interface Scene7Asset
String
object containing the original file of this assetpublic String getOriginalPath()
Scene7Asset
getOriginalPath
in interface Scene7Asset
String
object containing the original path for this assetpublic 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 Long getWidth()
Scene7Asset
getWidth
in interface Scene7Asset
Long
object containing the width of this assetpublic Long getHeight()
Scene7Asset
getHeight
in interface Scene7Asset
Long
object containing the height of this assetpublic String getUrlModifier()
Scene7Asset
getUrlModifier
in interface Scene7Asset
String
object containing the url modifier of this assetpublic Map<String,String> getViewerPresetConfigurationSettings()
Scene7Asset
getViewerPresetConfigurationSettings
in interface Scene7Asset
Map
that store the name-value pairs found in the viewer preset configuration of the assetpublic String getViewerPresetType()
Scene7Asset
getViewerPresetType
in interface Scene7Asset
String
object containing the viewer preset typepublic 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 Integer getFileSize()
Scene7Asset
getFileSize
in interface Scene7Asset
Integer
containing the file sizepublic String getVideoEncodingPresetId()
Scene7Asset
getVideoEncodingPresetId
in interface Scene7Asset
String
containing the video encoding preset for a video scene7 assetpublic Map<String,String> getAssetProperties()
getAssetProperties
in interface Scene7Asset
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"