public class AuthRundeckStorageTree extends java.lang.Object implements AuthStorageTree
AuthContext for each request.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CREATE |
static java.lang.String |
DELETE |
static java.lang.String |
NAME_RES_KEY |
static java.lang.String |
PATH_RES_KEY |
static java.lang.String |
PROJECT_PATH_COMPONENT |
static java.lang.String |
READ |
static java.lang.String |
STORAGE_PATH_AUTH_RES_TYPE |
static java.lang.String |
UPDATE |
| Constructor and Description |
|---|
AuthRundeckStorageTree(StorageTree storageTree) |
| Modifier and Type | Method and Description |
|---|---|
org.rundeck.storage.api.Resource<ResourceMeta> |
createResource(AuthContext auth,
org.rundeck.storage.api.Path path,
ResourceMeta content)
Create a resource
|
boolean |
deleteResource(AuthContext auth,
org.rundeck.storage.api.Path path)
Delete a resource at a path
|
org.rundeck.storage.api.Resource<ResourceMeta> |
getPath(AuthContext auth,
org.rundeck.storage.api.Path path)
Return the resource or directory at the path
|
org.rundeck.storage.api.Resource<ResourceMeta> |
getResource(AuthContext auth,
org.rundeck.storage.api.Path path)
Return the resource at the path
|
boolean |
hasDirectory(AuthContext auth,
org.rundeck.storage.api.Path path)
Return true if a directory at the path exists
|
boolean |
hasPath(AuthContext auth,
org.rundeck.storage.api.Path path)
Return true if the path exists
|
boolean |
hasResource(AuthContext auth,
org.rundeck.storage.api.Path path)
Return true if a resource at the path exists
|
java.util.Set<org.rundeck.storage.api.Resource<ResourceMeta>> |
listDirectory(AuthContext auth,
org.rundeck.storage.api.Path path)
Return the set of resources at the directory path
|
java.util.Set<org.rundeck.storage.api.Resource<ResourceMeta>> |
listDirectoryResources(AuthContext auth,
org.rundeck.storage.api.Path path)
Return the set of non-directory resources at the directory path
|
java.util.Set<org.rundeck.storage.api.Resource<ResourceMeta>> |
listDirectorySubdirs(AuthContext auth,
org.rundeck.storage.api.Path path)
Return the set of sub directory resources within the directory path
|
org.rundeck.storage.api.Resource<ResourceMeta> |
updateResource(AuthContext auth,
org.rundeck.storage.api.Path path,
ResourceMeta content)
Update an existing resource
|
public static final java.lang.String READ
public static final java.lang.String DELETE
public static final java.lang.String CREATE
public static final java.lang.String UPDATE
public static final java.lang.String STORAGE_PATH_AUTH_RES_TYPE
public static final java.lang.String PATH_RES_KEY
public static final java.lang.String NAME_RES_KEY
public static final java.lang.String PROJECT_PATH_COMPONENT
public AuthRundeckStorageTree(StorageTree storageTree)
public boolean hasPath(AuthContext auth, org.rundeck.storage.api.Path path)
ExtTreehasPath in interface ExtTree<AuthContext,ResourceMeta>auth - extra componentpath - pathpublic boolean hasResource(AuthContext auth, org.rundeck.storage.api.Path path)
ExtTreehasResource in interface ExtTree<AuthContext,ResourceMeta>auth - extra componentpath - pathpublic boolean hasDirectory(AuthContext auth, org.rundeck.storage.api.Path path)
ExtTreehasDirectory in interface ExtTree<AuthContext,ResourceMeta>auth - extra componentpath - pathpublic org.rundeck.storage.api.Resource<ResourceMeta> getPath(AuthContext auth, org.rundeck.storage.api.Path path)
ExtTreegetPath in interface ExtTree<AuthContext,ResourceMeta>auth - extra componentpath - pathpublic org.rundeck.storage.api.Resource<ResourceMeta> getResource(AuthContext auth, org.rundeck.storage.api.Path path)
ExtTreegetResource in interface ExtTree<AuthContext,ResourceMeta>auth - extra componentpath - pathpublic java.util.Set<org.rundeck.storage.api.Resource<ResourceMeta>> listDirectoryResources(AuthContext auth, org.rundeck.storage.api.Path path)
ExtTreelistDirectoryResources in interface ExtTree<AuthContext,ResourceMeta>auth - extra componentpath - pathpublic java.util.Set<org.rundeck.storage.api.Resource<ResourceMeta>> listDirectory(AuthContext auth, org.rundeck.storage.api.Path path)
ExtTreelistDirectory in interface ExtTree<AuthContext,ResourceMeta>auth - extra componentpath - pathpublic java.util.Set<org.rundeck.storage.api.Resource<ResourceMeta>> listDirectorySubdirs(AuthContext auth, org.rundeck.storage.api.Path path)
ExtTreelistDirectorySubdirs in interface ExtTree<AuthContext,ResourceMeta>auth - extra componentpath - directory pathpublic boolean deleteResource(AuthContext auth, org.rundeck.storage.api.Path path)
ExtTreedeleteResource in interface ExtTree<AuthContext,ResourceMeta>auth - extra componentpath - pathpublic org.rundeck.storage.api.Resource<ResourceMeta> createResource(AuthContext auth, org.rundeck.storage.api.Path path, ResourceMeta content)
ExtTreecreateResource in interface ExtTree<AuthContext,ResourceMeta>auth - extra componentpath - pathcontent - contentpublic org.rundeck.storage.api.Resource<ResourceMeta> updateResource(AuthContext auth, org.rundeck.storage.api.Path path, ResourceMeta content)
ExtTreeupdateResource in interface ExtTree<AuthContext,ResourceMeta>auth - extra componentpath - pathcontent - content