public interface

StorageResource

org.rundeck.api.domain.StorageResource
Known Indirect Subclasses

Class Overview

StorageResource represents a directory or a file

Summary

Public Methods
abstract List<? extends StorageResource> getDirectoryContents()
Return the list of directory contents if this is a directory
abstract Map<StringString> getMetadata()
Return the metadata for this file if this is a file
abstract String getName()
Return the file name if this is a file
abstract String getPath()
Return the storage path for this resource
abstract String getUrl()
Return the URL for this resource
abstract boolean isDirectory()
Return true if this is a directory, false if this is a file

Public Methods

public abstract List<? extends StorageResource> getDirectoryContents ()

Return the list of directory contents if this is a directory

public abstract Map<StringString> getMetadata ()

Return the metadata for this file if this is a file

public abstract String getName ()

Return the file name if this is a file

public abstract String getPath ()

Return the storage path for this resource

public abstract String getUrl ()

Return the URL for this resource

public abstract boolean isDirectory ()

Return true if this is a directory, false if this is a file