Class RepositoryResourceBundleData
java.lang.Object
org.pentaho.reporting.libraries.resourceloader.loader.AbstractResourceData
org.pentaho.reporting.libraries.docbundle.bundleloader.RepositoryResourceBundleData
- All Implemented Interfaces:
Serializable
,org.pentaho.reporting.libraries.resourceloader.ResourceBundleData
,org.pentaho.reporting.libraries.resourceloader.ResourceData
public class RepositoryResourceBundleData
extends org.pentaho.reporting.libraries.resourceloader.loader.AbstractResourceData
implements org.pentaho.reporting.libraries.resourceloader.ResourceBundleData
A resource-bundle data implementation that uses a LibRepository repository as backend.
- Author:
- Thomas Morgner
- See Also:
-
Field Summary
Fields inherited from interface org.pentaho.reporting.libraries.resourceloader.ResourceData
CONTENT_LENGTH, CONTENT_TYPE, FILENAME
-
Constructor Summary
ConstructorDescriptionRepositoryResourceBundleData
(org.pentaho.reporting.libraries.resourceloader.ResourceKey bundleKey, org.pentaho.reporting.libraries.repository.Repository repository, org.pentaho.reporting.libraries.resourceloader.ResourceKey mainKey, boolean failOnMissingData) Creates a new RepositoryResourceBundleData object. -
Method Summary
Modifier and TypeMethodDescriptionorg.pentaho.reporting.libraries.resourceloader.ResourceBundleData
deriveData
(org.pentaho.reporting.libraries.resourceloader.ResourceKey key) org.pentaho.reporting.libraries.resourceloader.ResourceManager
deriveManager
(org.pentaho.reporting.libraries.resourceloader.ResourceManager parent) getAttribute
(String key) org.pentaho.reporting.libraries.resourceloader.ResourceKey
org.pentaho.reporting.libraries.resourceloader.ResourceKey
getKey()
org.pentaho.reporting.libraries.repository.Repository
getResourceAsStream
(org.pentaho.reporting.libraries.resourceloader.ResourceManager caller) long
getVersion
(org.pentaho.reporting.libraries.resourceloader.ResourceManager caller) Methods inherited from class org.pentaho.reporting.libraries.resourceloader.loader.AbstractResourceData
getLength, getResource, getResource
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.pentaho.reporting.libraries.resourceloader.ResourceData
getLength, getResource, getResource
-
Constructor Details
-
RepositoryResourceBundleData
public RepositoryResourceBundleData(org.pentaho.reporting.libraries.resourceloader.ResourceKey bundleKey, org.pentaho.reporting.libraries.repository.Repository repository, org.pentaho.reporting.libraries.resourceloader.ResourceKey mainKey, boolean failOnMissingData) throws org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException Creates a new RepositoryResourceBundleData object.- Parameters:
bundleKey
- points to the physical location of the document bundle.repository
- the repository object loaded from the bundle-key.mainKey
- the bundles main entry.failOnMissingData
- a flag indicating whether to fail on missing entries.- Throws:
org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException
-
-
Method Details
-
getRepository
public org.pentaho.reporting.libraries.repository.Repository getRepository() -
deriveData
public org.pentaho.reporting.libraries.resourceloader.ResourceBundleData deriveData(org.pentaho.reporting.libraries.resourceloader.ResourceKey key) throws org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException - Specified by:
deriveData
in interfaceorg.pentaho.reporting.libraries.resourceloader.ResourceBundleData
- Throws:
org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException
-
getResourceAsStream
public InputStream getResourceAsStream(org.pentaho.reporting.libraries.resourceloader.ResourceManager caller) throws org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException - Specified by:
getResourceAsStream
in interfaceorg.pentaho.reporting.libraries.resourceloader.ResourceData
- Throws:
org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException
-
getBundleKey
public org.pentaho.reporting.libraries.resourceloader.ResourceKey getBundleKey()- Specified by:
getBundleKey
in interfaceorg.pentaho.reporting.libraries.resourceloader.ResourceBundleData
-
getAttribute
- Specified by:
getAttribute
in interfaceorg.pentaho.reporting.libraries.resourceloader.ResourceData
-
getKey
public org.pentaho.reporting.libraries.resourceloader.ResourceKey getKey()- Specified by:
getKey
in interfaceorg.pentaho.reporting.libraries.resourceloader.ResourceData
-
getVersion
public long getVersion(org.pentaho.reporting.libraries.resourceloader.ResourceManager caller) throws org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException - Specified by:
getVersion
in interfaceorg.pentaho.reporting.libraries.resourceloader.ResourceData
- Throws:
org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException
-
deriveManager
public org.pentaho.reporting.libraries.resourceloader.ResourceManager deriveManager(org.pentaho.reporting.libraries.resourceloader.ResourceManager parent) throws org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException - Specified by:
deriveManager
in interfaceorg.pentaho.reporting.libraries.resourceloader.ResourceBundleData
- Throws:
org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException
-