java.io.Serializable, ContentEntity, ContentLocationpublic class FileContentLocation extends FileContentEntity implements ContentLocation
| Constructor | Description |
|---|---|
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.
|
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
delete, getAttribute, getContentId, getName, getParent, getRepository, setAttributedelete, getAttribute, getContentId, getName, getParent, getRepository, setAttributepublic 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.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.