Package com.day.cq.dam.commons.util
Class AssetReferenceRecursiveSearch
- java.lang.Object
-
- com.day.cq.dam.commons.util.AssetReferenceRecursiveSearch
-
public class AssetReferenceRecursiveSearch extends java.lang.Object
TheAssetReferenceRecursiveSearch
searches in a specified path for referenced assets recursively.
If it encounters aSmartCollection
,ResourceCollection
or aS7Set
it iterates over its children and looks for the referenced assets within their children and their children's children and so on.
-
-
Constructor Summary
Constructors Constructor Description AssetReferenceRecursiveSearch(Node node, java.lang.String searchPath, ResourceResolver resolver)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,Resource>
search()
Search all asset references
-
-
-
Constructor Detail
-
AssetReferenceRecursiveSearch
public AssetReferenceRecursiveSearch(Node node, java.lang.String searchPath, ResourceResolver resolver)
The constructor.- Parameters:
node
- node to start search for referencessearchPath
- search for assets starting withsearchPath
resolver
- resource resolver
-
-
Method Detail
-
search
public java.util.Map<java.lang.String,Resource> search()
Search all asset references- Returns:
- map containing all asset refs
-
-