public class ZipContentLocation extends java.lang.Object implements ContentLocation
| Constructor and Description |
|---|
ZipContentLocation(ZipRepository repository,
ContentLocation parent,
java.lang.String name) |
| Modifier and Type | Method and 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 |
delete()
Attempts to delete the entity.
|
boolean |
exists(java.lang.String name)
Checks, whether an content entity with the given name exists in this content location.
|
java.lang.Object |
getAttribute(java.lang.String domain,
java.lang.String key)
Returns a attribute value for the given domain (namespace) and attribute-name.
|
java.lang.Object |
getContentId()
Returns a unique identifier.
|
ContentEntity |
getEntry(java.lang.String name)
Returns the content entity with the given name.
|
java.lang.String |
getName()
Returns the name of the entry.
|
ContentLocation |
getParent()
Returns a reference to the parent location.
|
Repository |
getRepository()
Returns the current repository, to which tis entity belongs.
|
ContentEntity[] |
listContents()
Returns all content entities stored in this content-location.
|
boolean |
setAttribute(java.lang.String domain,
java.lang.String key,
java.lang.Object value)
Updates the attribute value for the given attribute domain and name.
|
public ZipContentLocation(ZipRepository repository, ContentLocation parent, java.lang.String name)
public ContentEntity[] listContents() throws ContentIOException
ContentLocationlistContents in interface ContentLocationContentIOException - if an repository error occured.public ContentEntity getEntry(java.lang.String name) throws ContentIOException
ContentLocationgetEntry 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 - ContentCreationException - if the item could not be created.public ContentLocation createLocation(java.lang.String name) throws ContentCreationException
ContentLocationcreateLocation in interface ContentLocationname - the name of the new entity.ContentCreationException - if the item could not be created.public boolean exists(java.lang.String name)
ContentLocationexists in interface ContentLocationname - the name of the new entity.public java.lang.String getName()
ContentEntitygetName in interface ContentEntitypublic java.lang.Object getContentId()
ContentEntitygetContentId in interface ContentEntitypublic java.lang.Object getAttribute(java.lang.String domain,
java.lang.String key)
ContentEntityLibRepositoryBoot class.getAttribute in interface ContentEntitydomain - the attribute domain.key - the name of the attribute.public boolean setAttribute(java.lang.String domain,
java.lang.String key,
java.lang.Object value)
ContentEntitysetAttribute in interface ContentEntitydomain - the attribute domain.key - the attribute namevalue - the new attribute value.public ContentLocation getParent()
ContentEntitygetParent in interface ContentEntitypublic Repository getRepository()
ContentEntitygetRepository in interface ContentEntitypublic boolean delete()
ContentEntitydelete in interface ContentEntity