public abstract class FileObjectContentEntity extends Object implements org.pentaho.reporting.libraries.repository.ContentEntity, Serializable
LibRepositoryBoot.SIZE_ATTRIBUTE and can read and write the LibRepositoryBoot.VERSION_ATTRIBUTE.| Modifier | Constructor and Description |
|---|---|
protected |
FileObjectContentEntity(org.pentaho.reporting.libraries.repository.ContentLocation parent,
org.apache.commons.vfs2.FileObject backend)
Creates a new content-entity for the given file using the given content location as parent.
|
protected |
FileObjectContentEntity(org.pentaho.reporting.libraries.repository.Repository repository,
org.apache.commons.vfs2.FileObject backend)
Creates a new root content-entity for the given file using the given content location as parent.
|
| Modifier and Type | Method and Description |
|---|---|
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 org.apache.commons.vfs2.FileObject |
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.
|
org.pentaho.reporting.libraries.repository.ContentLocation |
getParent()
Returns a reference to the parent location.
|
org.pentaho.reporting.libraries.repository.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.
|
protected FileObjectContentEntity(org.pentaho.reporting.libraries.repository.ContentLocation parent,
org.apache.commons.vfs2.FileObject backend)
parent - the content location representing the parent directory.backend - the file representing this entity.protected FileObjectContentEntity(org.pentaho.reporting.libraries.repository.Repository repository,
org.apache.commons.vfs2.FileObject backend)
repository - the repository for which this entity is created.backend - the file representing this entity.public org.pentaho.reporting.libraries.repository.Repository getRepository()
getRepository in interface org.pentaho.reporting.libraries.repository.ContentEntitypublic String getName()
getName in interface org.pentaho.reporting.libraries.repository.ContentEntityprotected org.apache.commons.vfs2.FileObject getBackend()
public Object getContentId()
getContentId in interface org.pentaho.reporting.libraries.repository.ContentEntitypublic Object getAttribute(String domain, String key)
LibRepositoryBoot class.getAttribute in interface org.pentaho.reporting.libraries.repository.ContentEntitydomain - the attribute domain.key - the name of the attribute.public boolean setAttribute(String domain, String key, Object value)
setAttribute in interface org.pentaho.reporting.libraries.repository.ContentEntitydomain - the attribute domain.key - the attribute namevalue - the new attribute value.public org.pentaho.reporting.libraries.repository.ContentLocation getParent()
getParent in interface org.pentaho.reporting.libraries.repository.ContentEntitypublic boolean delete()
delete in interface org.pentaho.reporting.libraries.repository.ContentEntityCopyright © 2018 Hitachi Vantara. All rights reserved.