org.pentaho.reporting.libraries.repository.file
public class FileContentLocation extends FileContentEntity implements ContentLocation
Constructor Summary | |
---|---|
FileContentLocation(ContentLocation parent, File backend)
Creates a new location for the given parent and directory.
| |
FileContentLocation(Repository repository, File backend)
Creates a new root-location for the given repository and directory.
|
Method Summary | |
---|---|
ContentItem | createItem(String name)
Creates a new data item in the current location. |
ContentLocation | createLocation(String name)
Creates a new content location in the current location. |
boolean | exists(String name)
Checks, whether an content entity with the given name exists in this content location. |
ContentEntity | getEntry(String name)
Returns the content entity with the given name. |
ContentEntity[] | listContents()
Lists all content entities stored in this content-location. |
Parameters: parent the parent location. backend the backend.
Throws: ContentIOException if an error occured or the file did not point to a directory.
Parameters: repository the repository for which a location should be created. backend the backend.
Throws: ContentIOException if an error occured or the file did not point to a directory.
Parameters: name the name of the new entity.
Returns: the newly created entity, never null.
Throws: ContentCreationException if the item could not be created.
Parameters: name the name of the new entity.
Returns: the newly created entity, never null.
Throws: ContentCreationException if the item could not be created.
Parameters: name the name of the new entity.
Returns: true, if an entity exists with this name, false otherwise.
Parameters: name the name of the entity to be retrieved.
Returns: the content entity for this name, never null.
Throws: ContentIOException if an repository error occured.
Returns: the content entities for this location.
Throws: ContentIOException if an repository error occured.