Package lumis.portal.deployment.resource
Class ResourceEnumerator
- java.lang.Object
-
- lumis.portal.deployment.resource.ResourceEnumerator
-
public abstract class ResourceEnumerator extends 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(URI basePath)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description URI
getBasePath()
Returns the base path to be used in path relativizations.abstract Set<String>
listResources(boolean recursively)
-
-
-
Constructor Detail
-
ResourceEnumerator
public ResourceEnumerator(URI basePath)
Creates a new instance.- Parameters:
basePath
- the base path to be used in path relativizations.- Since:
- 8.0.0
-
-
Method Detail
-
getBasePath
public 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 Set<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
-
-