Class AssetReferenceRecursiveSearch


  • public class AssetReferenceRecursiveSearch
    extends java.lang.Object
    The AssetReferenceRecursiveSearch searches in a specified path for referenced assets recursively.
    If it encounters a SmartCollection, ResourceCollection or a S7Set it iterates over its children and looks for the referenced assets within their children and their children's children and so on.
    • Constructor Detail

      • AssetReferenceRecursiveSearch

        public AssetReferenceRecursiveSearch​(Node node,
                                             java.lang.String searchPath,
                                             ResourceResolver resolver)
        The constructor.
        Parameters:
        node - node to start search for references
        searchPath - search for assets starting with searchPath
        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