org.pentaho.reporting.libraries.repository.file
public abstract class FileContentEntity extends Object implements ContentEntity, Serializable
| Constructor Summary | |
|---|---|
| protected | FileContentEntity(ContentLocation parent, File backend)
Creates a new content-entity for the given file using the given content location as parent.
|
| protected | FileContentEntity(Repository repository, File backend)
Creates a new root content-entity for the given file using the given content location as parent.
|
| Method Summary | |
|---|---|
| boolean | delete()
Attempts to delete the entity. |
| Object | getAttribute(String domain, String key)
Returns a attribute value for the given domain (namespace) and attribute-name. |
| protected File | getBackend()
Returns the file that provides the backend of this entity.
|
| Object | getContentId()
Returns a unique identifier. |
| String | getName()
Returns the name of the file.
|
| ContentLocation | getParent()
Returns a reference to the parent location. |
| Repository | getRepository()
Returns the current repository, to which tis entity belongs.
|
| boolean | setAttribute(String domain, String key, Object value)
Updates the attribute value for the given attribute domain and name. |
Parameters: parent the content location representing the parent directory. backend the file representing this entity.
Parameters: repository the repository for which this entity is created. backend the file representing this entity.
Returns: true, if the entity was deleted and detached from the repository, false otherwise.
Parameters: domain the attribute domain. key the name of the attribute.
Returns: the value or null, if the content-entity does not have a value for this attribute.
Returns: the file, never null.
Returns: the unique content ID.
Returns: the name, never null.
Returns: the parent or null, if this is the root-directory.
Returns: the repository.
Parameters: domain the attribute domain. key the attribute name value the new attribute value.
Returns: true, if the update was successful, false otherwise.