|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rundeck.storage.impl.StringToPathTree<T>
org.rundeck.storage.data.file.LockingTree<T>
org.rundeck.storage.data.file.FileTree<T>
public class FileTree<T extends ContentMeta>
$INTERFACE is ... User: greg Date: 2/18/14 Time: 10:03 AM
Constructor Summary | |
---|---|
FileTree(ContentFactory<T> contentFactory,
FilepathMapper filepathMapper,
MetadataMapper metadataMapper)
|
Method Summary | |
---|---|
Resource<T> |
createResource(Path path,
ContentMeta content)
Create a resource |
boolean |
deleteResource(Path path)
Delete a resource at a path |
Resource<T> |
getPath(Path path)
Return the resource or directory at the path |
Resource<T> |
getResource(Path path)
Return the resource at the path |
boolean |
hasDirectory(Path path)
Return true if a directory at the path exists |
boolean |
hasPath(Path path)
Return true if the path exists |
boolean |
hasResource(Path path)
Return true if a resource at the path exists |
java.util.Set<Resource<T>> |
listDirectory(Path path)
Return the set of resources at the directory path |
java.util.Set<Resource<T>> |
listDirectoryResources(Path path)
Return the set of non-directory resources at the directory path |
java.util.Set<Resource<T>> |
listDirectorySubdirs(Path path)
Return the set of sub directory resources within the directory path |
Resource<T> |
updateResource(Path path,
ContentMeta content)
Update an existing resource |
Methods inherited from class org.rundeck.storage.data.file.LockingTree |
---|
pathSynch, synchStream |
Methods inherited from class org.rundeck.storage.impl.StringToPathTree |
---|
createResource, deleteResource, getPath, getResource, hasDirectory, hasPath, hasResource, listDirectory, listDirectoryResources, listDirectorySubdirs, updateResource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.rundeck.storage.api.Tree |
---|
createResource, deleteResource, getPath, getResource, hasDirectory, hasPath, hasResource, listDirectory, listDirectoryResources, listDirectorySubdirs, updateResource |
Constructor Detail |
---|
public FileTree(ContentFactory<T> contentFactory, FilepathMapper filepathMapper, MetadataMapper metadataMapper)
Method Detail |
---|
public boolean hasPath(Path path)
Tree
hasPath
in interface Tree<T extends ContentMeta>
path
- path
public boolean hasResource(Path path)
Tree
hasResource
in interface Tree<T extends ContentMeta>
path
- path
public boolean hasDirectory(Path path)
Tree
hasDirectory
in interface Tree<T extends ContentMeta>
path
- path
public Resource<T> getResource(Path path)
Tree
getResource
in interface Tree<T extends ContentMeta>
path
- path
public Resource<T> getPath(Path path)
Tree
getPath
in interface Tree<T extends ContentMeta>
path
- path
public java.util.Set<Resource<T>> listDirectoryResources(Path path)
Tree
listDirectoryResources
in interface Tree<T extends ContentMeta>
path
- path
public java.util.Set<Resource<T>> listDirectory(Path path)
Tree
listDirectory
in interface Tree<T extends ContentMeta>
path
- path
public java.util.Set<Resource<T>> listDirectorySubdirs(Path path)
Tree
listDirectorySubdirs
in interface Tree<T extends ContentMeta>
path
- directory path
public boolean deleteResource(Path path)
Tree
deleteResource
in interface Tree<T extends ContentMeta>
path
- path
public Resource<T> createResource(Path path, ContentMeta content)
Tree
createResource
in interface Tree<T extends ContentMeta>
path
- path
public Resource<T> updateResource(Path path, ContentMeta content)
Tree
updateResource
in interface Tree<T extends ContentMeta>
path
- path
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |