ContentEntity
DummyContentLocation
, FileContentLocation
, StreamContentLocation
, ZipContentLocation
, ZipContentLocation
, ZipReadContentLocation
public interface ContentLocation extends ContentEntity
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() |
Returns all content entities stored in this content-location.
|
delete, getAttribute, getContentId, getName, getParent, getRepository, setAttribute
ContentEntity[] listContents() throws ContentIOException
ContentIOException
- if an repository error occured.ContentEntity getEntry(java.lang.String name) throws ContentIOException
name
- the name of the entity to be retrieved.ContentIOException
- if an repository error occured.ContentItem createItem(java.lang.String name) throws ContentCreationException
name
- the name of the new entity.ContentCreationException
- if the item could not be created.ContentLocation createLocation(java.lang.String name) throws ContentCreationException
name
- the name of the new entity.ContentCreationException
- if the item could not be created.boolean exists(java.lang.String name)
name
- the name of the new entity.