public class AssetFactoryCmisImpl extends Object implements AssetFactory
| Constructor and Description |
|---|
AssetFactoryCmisImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected AssetImpl |
buildAsset(org.apache.chemistry.opencmis.client.api.QueryResult result) |
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
AssetFactory.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
AssetFactory.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 resourceName)
Loads the asset with the specified name that is located in the specified section.
|
Asset |
getSectionAsset(String sectionId,
String resourceName,
boolean wildcardsAllowedInName)
Similar to
AssetFactory.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.
|
void |
setCollectionFactory(CollectionFactory collectionFactory) |
void |
setSectionFactory(SectionFactory sectionFactory) |
public Asset getAssetById(String id, boolean deferredLoad)
AssetFactoryAssetFactory.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.getAssetById in interface AssetFactorypublic List<Asset> getAssetsById(Collection<String> ids, boolean deferredLoad)
AssetFactoryAssetFactory.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.getAssetsById in interface AssetFactorypublic Asset getAssetById(String id)
AssetFactorygetAssetById in interface AssetFactorypublic List<Asset> getAssetsById(Collection<String> ids)
AssetFactorygetAssetsById in interface AssetFactorypublic Asset getSectionAsset(String sectionId, String resourceName)
AssetFactorygetSectionAsset in interface AssetFactorypublic Asset getSectionAsset(String sectionId, String resourceName, boolean wildcardsAllowedInName)
AssetFactoryAssetFactory.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.getSectionAsset in interface AssetFactorypublic SearchResults findByQuery(Query query)
AssetFactoryfindByQuery in interface AssetFactorypublic Map<String,List<String>> getSourceRelationships(String assetId)
AssetFactorygetSourceRelationships in interface AssetFactorypublic Date getModifiedTimeOfAsset(String assetId)
AssetFactorygetModifiedTimeOfAsset in interface AssetFactorypublic Map<String,Date> getModifiedTimesOfAssets(Collection<String> assetIds)
AssetFactorygetModifiedTimesOfAssets in interface AssetFactorypublic Map<String,Rendition> getRenditions(String assetId)
AssetFactorygetRenditions in interface AssetFactoryprotected AssetImpl buildAsset(org.apache.chemistry.opencmis.client.api.QueryResult result)
public void setSectionFactory(SectionFactory sectionFactory)
public void setCollectionFactory(CollectionFactory collectionFactory)
public ContentStream getContentStream(String assetId)
getContentStream in interface AssetFactoryCopyright © 2005–2014 Alfresco Software. All rights reserved.