|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.reporting.libraries.repository.stream.StreamContentLocation
public class StreamContentLocation
A content location that wraps around a single stream. The location will reject any attempts to create new entities or to access entities other than the single entity.
| Constructor Summary | |
|---|---|
StreamContentLocation(StreamRepository repository)
Creates a new stream-location. |
|
| Method Summary | |
|---|---|
ContentItem |
createItem(java.lang.String name)
Creates a new data item in the current location. |
ContentLocation |
createLocation(java.lang.String name)
This method always throws an exception, as stream-repositories cannot create sub-locations. |
boolean |
delete()
Stream-repositories do not support the deletion of entries. |
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)
Stream-Repositories do not support attributes. |
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 generic name of this location. |
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)
Stream-Repositories do not support attributes. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StreamContentLocation(StreamRepository repository)
repository - the repository for which a location is created.| 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.
ContentCreationException - always, as stream-repositories cannot create sub-locations.public boolean exists(java.lang.String name)
exists in interface ContentLocationname - the name of the new entity.
public java.lang.String getName()
getName in interface ContentEntitypublic java.lang.Object getContentId()
getContentId in interface ContentEntity
public java.lang.Object getAttribute(java.lang.String domain,
java.lang.String key)
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)
setAttribute in interface ContentEntitydomain - the attribute domain.key - the attribute namevalue - the new attribute value.
public ContentLocation getParent()
getParent in interface ContentEntitypublic Repository getRepository()
getRepository in interface ContentEntitypublic boolean delete()
delete in interface ContentEntity
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||