de.agilecoders.wicket.webjars.collectors
Class AssetsMap

java.lang.Object
  extended by de.agilecoders.wicket.webjars.collectors.AssetsMap
All Implemented Interfaces:
IAssetProvider, IRecentVersionProvider

public class AssetsMap
extends Object
implements IAssetProvider, IRecentVersionProvider

asset holder map.

Author:
miha

Constructor Summary
AssetsMap(IWebjarsSettings settings)
          Construct.
 
Method Summary
 String findRecentVersionFor(String path)
           
 SortedMap<String,String> getFullPathIndex()
           
 Set<String> listAssets(String folderPath)
          List assets within a folder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetsMap

public AssetsMap(IWebjarsSettings settings)
Construct.

Parameters:
settings - the settings to use.
Method Detail

findRecentVersionFor

public String findRecentVersionFor(String path)
Specified by:
findRecentVersionFor in interface IRecentVersionProvider
Parameters:
path - the path to detect version for
Returns:
recent version

getFullPathIndex

public SortedMap<String,String> getFullPathIndex()
Specified by:
getFullPathIndex in interface IAssetProvider
Returns:
the full path index map.

listAssets

public Set<String> listAssets(String folderPath)
Description copied from interface: IAssetProvider
List assets within a folder.

Specified by:
listAssets in interface IAssetProvider
Parameters:
folderPath - the root path to the folder. Must begin with '/'.
Returns:
a set of folder paths that match.


Copyright © 2016 agilecoders.de. All Rights Reserved.