Package lumis.portal.deployment.resource
Class ResourceEnumerator
- java.lang.Object
-
- lumis.portal.deployment.resource.ResourceEnumerator
-
public abstract class ResourceEnumerator extends java.lang.Object
Resource enumerator that holds the base path to be used in path relativizations.- Since:
- 8.0.0
- Version:
- $Revision: 17182 $ $Date: 2015-03-30 16:00:24 -0300 (Mon, 30 Mar 2015) $
-
-
Constructor Summary
Constructors Constructor Description ResourceEnumerator(java.net.URI basePath)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.net.URI
getBasePath()
Returns the base path to be used in path relativizations.abstract java.util.Set<java.lang.String>
listResources(boolean recursively)
-
-
-
Method Detail
-
getBasePath
public java.net.URI getBasePath()
Returns the base path to be used in path relativizations.- Returns:
- the base path to be used in path relativizations.
- Since:
- 8.0.0
-
listResources
public abstract java.util.Set<java.lang.String> listResources(boolean recursively)
Lists the available resources within the givenbasePath
.
If the givenbase path
does not exists, an empty set is returned.- Parameters:
recursively
- indicates whether the resource search should be recursive.- Returns:
- the available resources within the given
basePath
. - Since:
- 8.0.0
-
-