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.AssetReferenceResolverImplModifier and Type | Method and Description |
---|---|
boolean |
cleanup(java.lang.String assetPath,
ResourceResolver resolver)
Deprecated.
since 1.2
|
java.lang.String |
createReference(java.lang.String assetPath,
boolean doSave,
java.lang.String resolvedPath,
java.util.List<java.lang.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(java.lang.String linkPath,
ResourceResolver resolver)
Deprecated.
since 1.2
|
java.util.Map<java.lang.String,java.lang.String> |
getReferences(java.lang.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.
|
java.lang.String |
getResolvedPath(java.lang.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.
|
java.util.Iterator<? extends AssetRelation> |
resolve(Asset asset)
This method would resolve asset references.
|
boolean |
resolveLink(java.lang.String linkPath,
java.lang.String resolvedPath,
ResourceResolver resolver)
Deprecated.
since 1.2
|
java.util.Iterator<? extends AssetRelation> resolve(Asset asset)
asset
- - asset for which references are to be resolvedjava.lang.String getResolvedPath(java.lang.String property, ResourceResolver resolver)
property
- referenced asset's property through which it can be
mapped to DAM's existing asset.resolver
- ResourceResolver instancejava.util.Map<java.lang.String,java.lang.String> getReferences(java.lang.String assetPath, ResourceResolver resolver)
assetPath
- referenced asset's pathresolver
- ResourceResolver instancejava.lang.String createReference(java.lang.String assetPath, boolean doSave, java.lang.String resolvedPath, java.util.List<java.lang.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(java.lang.String linkPath, java.lang.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(java.lang.String linkPath, ResourceResolver resolver)
linkPath
- link's node pathresolver
- ResourceResolver instance@Deprecated boolean cleanup(java.lang.String assetPath, ResourceResolver resolver)
assetPath
- referenced asset's pathresolver
- ResourceResolver instanceCopyright © 2010 - 2020 Adobe. All Rights Reserved