org.pentaho.reporting.libraries.repository.stream
public class StreamContentLocation extends Object implements ContentLocation
Constructor Summary | |
---|---|
StreamContentLocation(StreamRepository repository)
Creates a new stream-location. |
Method Summary | |
---|---|
ContentItem | createItem(String name)
Creates a new data item in the current location. |
ContentLocation | createLocation(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(String name)
Checks, whether an content entity with the given name exists in this content location.
|
Object | getAttribute(String domain, String key)
Stream-Repositories do not support attributes.
|
Object | getContentId()
Returns a unique identifier. |
ContentEntity | getEntry(String name)
Returns the content entity with the given name. |
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(String domain, String key, Object value)
Stream-Repositories do not support attributes.
|
Parameters: repository the repository for which a location is created.
Parameters: name the name of the new entity.
Returns: the newly created entity, never null.
Throws: ContentCreationException if the item could not be created.
Parameters: name the name.
Returns: nothing.
Throws: ContentCreationException always, as stream-repositories cannot create sub-locations.
Returns: always false.
Parameters: name the name of the new entity.
Returns: true, if an entity exists with this name, false otherwise.
Parameters: domain the attribute domain. key the name of the attribute.
Returns: always null.
Returns: the unique content ID.
Parameters: name the name of the entity to be retrieved.
Returns: the content entity for this name, never null.
Throws: ContentIOException if an repository error occured.
Returns: the name.
Returns: the parent or null, if this is the root-directory.
Returns: the repository.
Returns: the content entities for this location.
Throws: ContentIOException if an repository error occured.
Parameters: domain the attribute domain. key the attribute name value the new attribute value.
Returns: always false.