public interface Asset extends Resource
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_AVERAGE_RATING |
static String |
PROPERTY_COMMENT_COUNT |
static String |
PROPERTY_PARENT_SECTIONS |
static String |
PROPERTY_PUBLISHED_TIME |
static String |
PROPERTY_TAGS
Asset properties
|
static String |
PROPERTY_TEMPLATE_NAME |
static String |
RELATED_PRIMARY_IMAGE
Associations
|
static String |
RELATED_SECONDARY_IMAGE |
PROPERTY_AUTHOR, PROPERTY_DESCRIPTION, PROPERTY_MODIFIED_TIME, PROPERTY_TITLE| Modifier and Type | Method and Description |
|---|---|
ContentStream |
getContentAsInputStream()
Gets the assets content input stream
|
String |
getMimeType()
Gets the mimetype of the asset.
|
Asset |
getRelatedAsset(String relationshipName)
Get a single related asset
|
Map<String,List<Asset>> |
getRelatedAssets()
Returns a Map of all the related assets.
|
List<Asset> |
getRelatedAssets(String relationshipName)
Get a list of related assets
|
Map<String,Rendition> |
getRenditions()
Get the renditions that are available for this asset.
|
long |
getSize()
Gets the size of the assets content.
|
List<String> |
getTags()
The asset tags
|
String |
getTemplate()
Gets the template associated with this asset, null if none.
|
getContainingSection, getDescription, getId, getName, getProperties, getProperty, getTitle, getTypestatic final String PROPERTY_TAGS
static final String PROPERTY_PARENT_SECTIONS
static final String PROPERTY_COMMENT_COUNT
static final String PROPERTY_AVERAGE_RATING
static final String PROPERTY_PUBLISHED_TIME
static final String PROPERTY_TEMPLATE_NAME
static final String RELATED_PRIMARY_IMAGE
static final String RELATED_SECONDARY_IMAGE
String getMimeType()
long getSize()
ContentStream getContentAsInputStream()
Asset getRelatedAsset(String relationshipName)
relationshipName - List<Asset> getRelatedAssets(String relationshipName)
relationshipName - Map<String,List<Asset>> getRelatedAssets()
String getTemplate()
Copyright © 2005–2014 Alfresco Software. All rights reserved.