com.day.cq.dam.commons.util
Class AssetReferenceSearch

java.lang.Object
  extended by com.day.cq.dam.commons.util.AssetReferenceSearch

public class AssetReferenceSearch
extends Object

The AssetReferenceSearch searches in pages for referenced assets.


Constructor Summary
AssetReferenceSearch(Node node, String searchPath, ResourceResolver resolver)
          The constructor.
 
Method Summary
protected  Pattern getPattern(String path)
          Returns the replacement pattern for the rewrite method.
 Map<String,Asset> search()
          Search all asset references
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetReferenceSearch

public AssetReferenceSearch(Node node,
                            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 Map<String,Asset> search()
Search all asset references

Returns:
map containing all asset refs

getPattern

protected Pattern getPattern(String path)
Returns the replacement pattern for the rewrite method.

Parameters:
path - source path
Returns:
replacement pattern


Copyright © 2011-2013 Adobe Systems Incorporated. All Rights Reserved.