public class AssetImpl extends ResourceBaseImpl implements Asset
PROPERTY_AVERAGE_RATING, PROPERTY_COMMENT_COUNT, PROPERTY_PARENT_SECTIONS, PROPERTY_PUBLISHED_TIME, PROPERTY_TAGS, PROPERTY_TEMPLATE_NAME, RELATED_PRIMARY_IMAGE, RELATED_SECONDARY_IMAGEPROPERTY_AUTHOR, PROPERTY_DESCRIPTION, PROPERTY_MODIFIED_TIME, PROPERTY_TITLE| Constructor and Description |
|---|
AssetImpl() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,List<Asset>> |
getCachedRelatedAssets()
Returns a map of all related assets stored in an Asset.
|
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.
|
void |
setParentSectionIds(Collection<String> sectionIds)
Set the parent sections id's
|
void |
setProperties(Map<String,Serializable> props)
Set resources properties
|
getAssetFactory, getCollectionFactory, getContainingSection, getDescription, getId, getName, getPrimarySectionId, getProperties, getProperty, getSectionFactory, getTitle, getType, setAssetFactory, setCollectionFactory, setPrimarySectionId, setSectionFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContainingSection, getDescription, getId, getName, getProperties, getProperty, getTitle, getTypepublic void setProperties(Map<String,Serializable> props)
ResourceBaseImplsetProperties in class ResourceBaseImplprops - property mappublic Map<String,List<Asset>> getRelatedAssets()
AssetgetRelatedAssets in interface AssetAsset.getRelatedAssets()public Map<String,List<Asset>> getCachedRelatedAssets()
public List<Asset> getRelatedAssets(String relationshipName)
AssetgetRelatedAssets in interface AssetAsset.getRelatedAssets(String)public Asset getRelatedAsset(String relationshipName)
AssetgetRelatedAsset in interface AssetAsset.getRelatedAsset(String)public void setParentSectionIds(Collection<String> sectionIds)
sectionIds - collection of parent section idpublic List<String> getTags()
AssetgetTags in interface AssetAsset.getTags()public String getMimeType()
AssetgetMimeType in interface Assetorg.alfresco.wcm.client.Asset#getMimetype()public long getSize()
AssetgetSize in interface AssetAsset.getSize()public ContentStream getContentAsInputStream()
AssetgetContentAsInputStream in interface AssetAsset.getContentAsInputStream()public String getTemplate()
AssetgetTemplate in interface AssetAsset.getTemplate()Copyright © 2005–2014 Alfresco Software. All rights reserved.