public class FileObjectContentLocation extends FileObjectContentEntity implements org.pentaho.reporting.libraries.repository.ContentLocation
Constructor and Description |
---|
FileObjectContentLocation(org.pentaho.reporting.libraries.repository.ContentLocation parent,
org.apache.commons.vfs2.FileObject backend)
Creates a new location for the given parent and directory.
|
FileObjectContentLocation(org.pentaho.reporting.libraries.repository.Repository repository,
org.apache.commons.vfs2.FileObject backend)
Creates a new root-location for the given repository and directory.
|
Modifier and Type | Method and Description |
---|---|
org.pentaho.reporting.libraries.repository.ContentItem |
createItem(String name)
Creates a new data item in the current location.
|
org.pentaho.reporting.libraries.repository.ContentLocation |
createLocation(String name)
Creates a new content location in the current location.
|
boolean |
exists(String name)
Checks, whether an content entity with the given name exists in this content location.
|
org.pentaho.reporting.libraries.repository.ContentEntity |
getEntry(String name)
Returns the content entity with the given name.
|
org.pentaho.reporting.libraries.repository.ContentEntity[] |
listContents()
Lists all content entities stored in this content-location.
|
delete, getAttribute, getBackend, getContentId, getName, getParent, getRepository, setAttribute
public FileObjectContentLocation(org.pentaho.reporting.libraries.repository.ContentLocation parent, org.apache.commons.vfs2.FileObject backend) throws org.pentaho.reporting.libraries.repository.ContentIOException
parent
- the parent location.backend
- the backend.org.pentaho.reporting.libraries.repository.ContentIOException
- if an error occured or the file did not point to a directory.public FileObjectContentLocation(org.pentaho.reporting.libraries.repository.Repository repository, org.apache.commons.vfs2.FileObject backend) throws org.pentaho.reporting.libraries.repository.ContentIOException
repository
- the repository for which a location should be created.backend
- the backend.org.pentaho.reporting.libraries.repository.ContentIOException
- if an error occured or the file did not point to a directory.public org.pentaho.reporting.libraries.repository.ContentEntity[] listContents() throws org.pentaho.reporting.libraries.repository.ContentIOException
listContents
in interface org.pentaho.reporting.libraries.repository.ContentLocation
org.pentaho.reporting.libraries.repository.ContentIOException
- if an repository error occured.public org.pentaho.reporting.libraries.repository.ContentEntity getEntry(String name) throws org.pentaho.reporting.libraries.repository.ContentIOException
getEntry
in interface org.pentaho.reporting.libraries.repository.ContentLocation
name
- the name of the entity to be retrieved.org.pentaho.reporting.libraries.repository.ContentIOException
- if an repository error occured.public org.pentaho.reporting.libraries.repository.ContentItem createItem(String name) throws org.pentaho.reporting.libraries.repository.ContentCreationException
createItem
in interface org.pentaho.reporting.libraries.repository.ContentLocation
name
- the name of the new entity.org.pentaho.reporting.libraries.repository.ContentCreationException
- if the item could not be created.public org.pentaho.reporting.libraries.repository.ContentLocation createLocation(String name) throws org.pentaho.reporting.libraries.repository.ContentCreationException
createLocation
in interface org.pentaho.reporting.libraries.repository.ContentLocation
name
- the name of the new entity.org.pentaho.reporting.libraries.repository.ContentCreationException
- if the item could not be created.public boolean exists(String name)
exists
in interface org.pentaho.reporting.libraries.repository.ContentLocation
name
- the name of the new entity.Copyright © 2018 Hitachi Vantara. All rights reserved.