public interface AssetReferenceResolver
AssetReferenceResolver provides api to resolve the
references of a composite assets (for e.g. InDesign assets) to an existing
DAM's asset. Further it provides api for creation/cleanup of references and
getting list of contained composite Assets. Implementation of this interface
should be exposed as a component.
Default implementation of this interface is
available at com.day.cq.dam.core.impl.AssetReferenceResolverImpl| Modifier and Type | Method and Description |
|---|---|
boolean |
cleanup(String assetPath,
ResourceResolver resolver)
Deprecated.
since 1.2
|
String |
createReference(String assetPath,
boolean doSave,
String resolvedPath,
List<Object> data,
ResourceResolver resolver)
This method would create the references which can be associated with the
resolved asset as well can be stored as property/node by Composite Asset
|
boolean |
deleteLink(String linkPath,
ResourceResolver resolver)
Deprecated.
since 1.2
|
Map<String,String> |
getReferences(String assetPath,
ResourceResolver resolver)
This method would take the asset path as input and return the assets
being referred by the input asset with actual link nodes.
|
String |
getResolvedPath(String property,
ResourceResolver resolver)
This method would take the property of an referenced asset through which
it can be mapped/associated with DAM's existing asset.
|
Iterator<? extends AssetRelation> |
resolve(Asset asset)
This method would resolve asset references.
|
boolean |
resolveLink(String linkPath,
String resolvedPath,
ResourceResolver resolver)
Deprecated.
since 1.2
|
Iterator<? extends AssetRelation> resolve(Asset asset)
asset - - asset for which references are to be resolvedString getResolvedPath(String property, ResourceResolver resolver)
property - referenced asset's property through which it can be
mapped to DAM's existing asset.resolver - ResourceResolver instanceMap<String,String> getReferences(String assetPath, ResourceResolver resolver)
assetPath - referenced asset's pathresolver - ResourceResolver instanceString createReference(String assetPath, boolean doSave, String resolvedPath, List<Object> data, ResourceResolver resolver) throws RepositoryException
assetPath - composite asset's pathdoSave - Whether the repository changes are saved or not.resolvedPath - resolved path of the referenced asset in DAMdata - Pass the additional data needed for reference creationresolver - ResourceResolver instanceRepositoryException - thrown if an error occurs while accessing the asset@Deprecated boolean resolveLink(String linkPath, String resolvedPath, ResourceResolver resolver)
linkPath - link's node pathresolvedPath - path of an existing asset in the DAM to resolved withresolver - ResourceResolver instance@Deprecated boolean deleteLink(String linkPath, ResourceResolver resolver)
linkPath - link's node pathresolver - ResourceResolver instance@Deprecated boolean cleanup(String assetPath, ResourceResolver resolver)
assetPath - referenced asset's pathresolver - ResourceResolver instanceCopyright © 2010 - 2020 Adobe. All Rights Reserved