public class AssetCollectionImpl extends ResourceBaseImpl implements AssetCollection
| Modifier and Type | Field and Description |
|---|---|
protected List<Asset> |
assets
The wrapped collection
|
PROPERTY_AUTHOR, PROPERTY_DESCRIPTION, PROPERTY_MODIFIED_TIME, PROPERTY_TITLE| Constructor and Description |
|---|
AssetCollectionImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Asset asset)
Add a single asset to the collection.
|
List<String> |
getAssetIds() |
List<Asset> |
getAssets()
Get the collection of assets
|
Date |
getNextRefreshTime()
The time at which this asset collection was last refreshed
|
Query |
getQuery()
Obtain the query that was executed to return these results.
|
long |
getSize()
Obtain the number of results held by this object.
|
long |
getTotalSize()
Obtain the total results count.
|
void |
setAssetIds(List<String> assetIds) |
void |
setAssets(List<Asset> assets) |
void |
setProperties(Map<String,Serializable> props)
Set resources properties
|
void |
setQuery(Query query) |
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 List<Asset> getAssets()
AssetCollectiongetAssets in interface AssetCollectionAssetCollection.getAssets()public void add(Asset asset)
asset - asset objectpublic Query getQuery()
AssetCollectiongetQuery in interface AssetCollectionpublic long getSize()
AssetCollectiongetSize in interface AssetCollectionpublic long getTotalSize()
AssetCollectiongetTotalSize in interface AssetCollectionpublic void setQuery(Query query)
public List<String> getAssetIds()
getAssetIds in interface AssetCollectionpublic Date getNextRefreshTime()
getNextRefreshTime in interface AssetCollectionCopyright © 2005–2014 Alfresco Software. All rights reserved.