public interface AssetFactory
| Modifier and Type | Method and Description |
|---|---|
SearchResults |
findByQuery(Query query)
Execute the specified query and return the results
|
Asset |
getAssetById(String id)
Obtain the asset with the specified identifier.
|
Asset |
getAssetById(String id,
boolean deferredLoad)
Similar to
getAssetById(String), but if deferredLoad is set to true then
this operation does not attempt to load the asset until a subsequent operation on
it makes it necessary. |
List<Asset> |
getAssetsById(Collection<String> ids)
Obtain a list of assets with the identifiers contained by the supplied collection
of identifiers.
|
List<Asset> |
getAssetsById(Collection<String> ids,
boolean deferredLoad)
Similar to
getAssetsById(Collection), but if deferredLoad is set to true then
this operation will not actually load the assets. |
ContentStream |
getContentStream(String assetId) |
Date |
getModifiedTimeOfAsset(String assetId)
Fetch the modified time of a specified asset from the repository
|
Map<String,Date> |
getModifiedTimesOfAssets(Collection<String> assetIds)
Fetch the modified times of the assets identified in the supplied collection.
|
Map<String,Rendition> |
getRenditions(String assetId)
Retrieve all the renditions of the specified asset
|
Asset |
getSectionAsset(String sectionId,
String assetName)
Loads the asset with the specified name that is located in the specified section.
|
Asset |
getSectionAsset(String sectionId,
String assetName,
boolean wildcardsAllowedInName)
Similar to
getSectionAsset(String, String), but if wildcardsAllowedInName is set
to true then this operation will allow wildcards in the specified assetName. |
Map<String,List<String>> |
getSourceRelationships(String assetId)
Retrieve the identifiers of all assets that are related to the specified one, where
the specified asset is the source of the relationship.
|
Asset getAssetById(String id)
id - List<Asset> getAssetsById(Collection<String> ids)
ids - Asset getAssetById(String id, boolean deferredLoad)
getAssetById(String), but if deferredLoad is set to true then
this operation does not attempt to load the asset until a subsequent operation on
it makes it necessary. Note that this operation may not even check that the requested
asset exists.id - deferredLoad - List<Asset> getAssetsById(Collection<String> ids, boolean deferredLoad)
getAssetsById(Collection), but if deferredLoad is set to true then
this operation will not actually load the assets. They will be loaded if a subsequent
operation needs them to be.ids - deferredLoad - Asset getSectionAsset(String sectionId, String assetName)
sectionId - assetName - Asset getSectionAsset(String sectionId, String assetName, boolean wildcardsAllowedInName)
getSectionAsset(String, String), but if wildcardsAllowedInName is set
to true then this operation will allow wildcards in the specified assetName. Permitted wildcards
are '_' to match any single character and '%' to match any sequence of characters. These
special characters may be escaped with a preceding '\' if their literal value is needed.sectionId - assetName - wildcardsAllowedInName - SearchResults findByQuery(Query query)
query - Map<String,List<String>> getSourceRelationships(String assetId)
assetId - Map<String,Rendition> getRenditions(String assetId)
assetId - Date getModifiedTimeOfAsset(String assetId)
assetId - Map<String,Date> getModifiedTimesOfAssets(Collection<String> assetIds)
assetIds - ContentStream getContentStream(String assetId)
Copyright © 2005–2014 Alfresco Software. All rights reserved.