public class DeferredLoadingAssetImpl extends Object 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 |
|---|
DeferredLoadingAssetImpl(String assetId,
AssetFactory assetFactory) |
| Modifier and Type | Method and Description |
|---|---|
Section |
getContainingSection()
Gets the section the resource is contained within.
|
ContentStream |
getContentAsInputStream()
Gets the assets content input stream
|
String |
getDescription()
The description
|
String |
getId()
The id of the item
|
String |
getMimeType()
Gets the mimetype of the asset.
|
String |
getName()
The name of the item
|
Map<String,Serializable> |
getProperties()
Get properties mape
|
Serializable |
getProperty(String name)
Get any property by name
String name property name
|
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.
|
String |
getTitle()
The title of the item
|
String |
getType()
Get the type of the resource
|
public DeferredLoadingAssetImpl(String assetId, AssetFactory assetFactory)
public Section getContainingSection()
ResourcegetContainingSection in interface Resourcepublic ContentStream getContentAsInputStream()
AssetgetContentAsInputStream in interface Assetpublic String getDescription()
ResourcegetDescription in interface Resourcepublic String getMimeType()
AssetgetMimeType in interface Assetpublic Map<String,Serializable> getProperties()
ResourcegetProperties in interface Resourcepublic Serializable getProperty(String name)
ResourcegetProperty in interface Resourcepublic Asset getRelatedAsset(String relationshipName)
AssetgetRelatedAsset in interface Assetpublic Map<String,List<Asset>> getRelatedAssets()
AssetgetRelatedAssets in interface Assetpublic List<Asset> getRelatedAssets(String relationshipName)
AssetgetRelatedAssets in interface Assetpublic Map<String,Rendition> getRenditions()
AssetgetRenditions in interface Assetpublic long getSize()
Assetpublic String getTemplate()
AssetgetTemplate in interface AssetCopyright © 2005–2014 Alfresco Software. All rights reserved.