public class SearchResultAssetImpl extends Object implements SearchResult
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| 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.
|
int |
getScore() |
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
|
void |
setScore(int score) |
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 List<Asset> getRelatedAssets(String relationshipName)
AssetgetRelatedAssets in interface Assetpublic Map<String,List<Asset>> getRelatedAssets()
AssetgetRelatedAssets in interface Assetpublic long getSize()
Assetpublic int getScore()
getScore in interface SearchResultpublic void setScore(int score)
public String getTemplate()
AssetgetTemplate in interface Assetpublic String getType()
ResourceCopyright © 2005–2014 Alfresco Software. All rights reserved.