|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.reporting.libraries.repository.file.FileContentEntity
org.pentaho.reporting.libraries.repository.file.FileContentLocation
public class FileContentLocation
A content-location that uses a directory as backend.
| Constructor Summary | |
|---|---|
FileContentLocation(ContentLocation parent,
java.io.File backend)
Creates a new location for the given parent and directory. |
|
FileContentLocation(Repository repository,
java.io.File backend)
Creates a new root-location for the given repository and directory. |
|
| Method Summary | |
|---|---|
ContentItem |
createItem(java.lang.String name)
Creates a new data item in the current location. |
ContentLocation |
createLocation(java.lang.String name)
Creates a new content location in the current location. |
boolean |
exists(java.lang.String name)
Checks, whether an content entity with the given name exists in this content location. |
ContentEntity |
getEntry(java.lang.String name)
Returns the content entity with the given name. |
ContentEntity[] |
listContents()
Lists all content entities stored in this content-location. |
| Methods inherited from class org.pentaho.reporting.libraries.repository.file.FileContentEntity |
|---|
delete, getAttribute, getContentId, getName, getParent, getRepository, setAttribute |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.pentaho.reporting.libraries.repository.ContentEntity |
|---|
delete, getAttribute, getContentId, getName, getParent, getRepository, setAttribute |
| Constructor Detail |
|---|
public FileContentLocation(ContentLocation parent,
java.io.File backend)
throws ContentIOException
parent - the parent location.backend - the backend.
ContentIOException - if an error occured or the file did not point to a directory.
public FileContentLocation(Repository repository,
java.io.File backend)
throws ContentIOException
repository - the repository for which a location should be created.backend - the backend.
ContentIOException - if an error occured or the file did not point to a directory.| Method Detail |
|---|
public ContentEntity[] listContents()
throws ContentIOException
listContents in interface ContentLocationContentIOException - if an repository error occured.
public ContentEntity getEntry(java.lang.String name)
throws ContentIOException
getEntry in interface ContentLocationname - the name of the entity to be retrieved.
ContentIOException - if an repository error occured.
public ContentItem createItem(java.lang.String name)
throws ContentCreationException
createItem in interface ContentLocationname - the name of the new entity.
ContentCreationException - if the item could not be created.
public ContentLocation createLocation(java.lang.String name)
throws ContentCreationException
createLocation in interface ContentLocationname - the name of the new entity.
ContentCreationException - if the item could not be created.public boolean exists(java.lang.String name)
exists in interface ContentLocationname - the name of the new entity.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||