public class FileContentLocation extends FileContentEntity implements ContentLocation
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
delete, getAttribute, getContentId, getName, getParent, getRepository, setAttributeequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdelete, getAttribute, getContentId, getName, getParent, getRepository, setAttributepublic FileContentLocation(ContentLocation parent, 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, 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(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(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(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(String name)
exists in interface ContentLocationname - the name of the new entity.