Package com.dtolabs.rundeck.core.storage
Interface ExtTree<S,T extends org.rundeck.storage.api.ContentMeta>
-
- All Known Subinterfaces:
AuthStorageTree
,AuthTree<T>
- All Known Implementing Classes:
AuthRundeckStorageTree
public interface ExtTree<S,T extends org.rundeck.storage.api.ContentMeta>
ExtTree extends each tree method with additional parameter- Since:
- 2014-04-03
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.rundeck.storage.api.Resource<T>
createResource(S extra, org.rundeck.storage.api.Path path, T content)
Create a resourceboolean
deleteResource(S extra, org.rundeck.storage.api.Path path)
Delete a resource at a pathorg.rundeck.storage.api.Resource<T>
getPath(S extra, org.rundeck.storage.api.Path path)
Return the resource or directory at the pathorg.rundeck.storage.api.Resource<T>
getResource(S extra, org.rundeck.storage.api.Path path)
Return the resource at the pathboolean
hasDirectory(S extra, org.rundeck.storage.api.Path path)
Return true if a directory at the path existsboolean
hasPath(S extra, org.rundeck.storage.api.Path path)
Return true if the path existsboolean
hasResource(S extra, org.rundeck.storage.api.Path path)
Return true if a resource at the path existsjava.util.Set<org.rundeck.storage.api.Resource<T>>
listDirectory(S extra, org.rundeck.storage.api.Path path)
Return the set of resources at the directory pathjava.util.Set<org.rundeck.storage.api.Resource<T>>
listDirectoryResources(S extra, org.rundeck.storage.api.Path path)
Return the set of non-directory resources at the directory pathjava.util.Set<org.rundeck.storage.api.Resource<T>>
listDirectorySubdirs(S extra, org.rundeck.storage.api.Path path)
Return the set of sub directory resources within the directory pathorg.rundeck.storage.api.Resource<T>
updateResource(S extra, org.rundeck.storage.api.Path path, T content)
Update an existing resource
-
-
-
Method Detail
-
hasPath
boolean hasPath(S extra, org.rundeck.storage.api.Path path)
Return true if the path exists- Parameters:
path
- pathextra
- extra component- Returns:
- true if it exists
-
hasResource
boolean hasResource(S extra, org.rundeck.storage.api.Path path)
Return true if a resource at the path exists- Parameters:
path
- pathextra
- extra component- Returns:
- true if a resource exists
-
hasDirectory
boolean hasDirectory(S extra, org.rundeck.storage.api.Path path)
Return true if a directory at the path exists- Parameters:
path
- pathextra
- extra component- Returns:
- true if the path is a directory
-
getPath
org.rundeck.storage.api.Resource<T> getPath(S extra, org.rundeck.storage.api.Path path)
Return the resource or directory at the path- Parameters:
path
- pathextra
- extra component- Returns:
- Resource or directory
-
getResource
org.rundeck.storage.api.Resource<T> getResource(S extra, org.rundeck.storage.api.Path path)
Return the resource at the path- Parameters:
path
- pathextra
- extra component- Returns:
- Resource
- Throws:
java.lang.IllegalArgumentException
- if the path is a directory or does not exist
-
listDirectoryResources
java.util.Set<org.rundeck.storage.api.Resource<T>> listDirectoryResources(S extra, org.rundeck.storage.api.Path path)
Return the set of non-directory resources at the directory path- Parameters:
path
- pathextra
- extra component- Returns:
- set of resources
-
listDirectory
java.util.Set<org.rundeck.storage.api.Resource<T>> listDirectory(S extra, org.rundeck.storage.api.Path path)
Return the set of resources at the directory path- Parameters:
path
- pathextra
- extra component- Returns:
- set of resources
-
listDirectorySubdirs
java.util.Set<org.rundeck.storage.api.Resource<T>> listDirectorySubdirs(S extra, org.rundeck.storage.api.Path path)
Return the set of sub directory resources within the directory path- Parameters:
path
- directory pathextra
- extra component- Returns:
- set of subdirectories
-
deleteResource
boolean deleteResource(S extra, org.rundeck.storage.api.Path path)
Delete a resource at a path- Parameters:
path
- pathextra
- extra component- Returns:
- true if the resource was deleted
- Throws:
java.lang.IllegalArgumentException
- if the path is a directory or does not exist
-
createResource
org.rundeck.storage.api.Resource<T> createResource(S extra, org.rundeck.storage.api.Path path, T content)
Create a resource- Parameters:
path
- pathextra
- extra componentcontent
- content- Returns:
- the resource
- Throws:
java.lang.IllegalArgumentException
- if the path is a directory
-
updateResource
org.rundeck.storage.api.Resource<T> updateResource(S extra, org.rundeck.storage.api.Path path, T content)
Update an existing resource- Parameters:
path
- pathextra
- extra componentcontent
- content- Returns:
- the resource
- Throws:
java.lang.IllegalArgumentException
- if the path is a directory or does not exist
-
-