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
ConstructorsConstructorDescriptionRepositoryResourceBundleData(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.ResourceBundleDataderiveData(org.pentaho.reporting.libraries.resourceloader.ResourceKey key) org.pentaho.reporting.libraries.resourceloader.ResourceManagerderiveManager(org.pentaho.reporting.libraries.resourceloader.ResourceManager parent) getAttribute(String key) org.pentaho.reporting.libraries.resourceloader.ResourceKeyorg.pentaho.reporting.libraries.resourceloader.ResourceKeygetKey()org.pentaho.reporting.libraries.repository.RepositorygetResourceAsStream(org.pentaho.reporting.libraries.resourceloader.ResourceManager caller) longgetVersion(org.pentaho.reporting.libraries.resourceloader.ResourceManager caller) Methods inherited from class org.pentaho.reporting.libraries.resourceloader.loader.AbstractResourceData
getLength, getResource, getResourceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
deriveDatain 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:
getResourceAsStreamin interfaceorg.pentaho.reporting.libraries.resourceloader.ResourceData- Throws:
org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException
-
getBundleKey
public org.pentaho.reporting.libraries.resourceloader.ResourceKey getBundleKey()- Specified by:
getBundleKeyin interfaceorg.pentaho.reporting.libraries.resourceloader.ResourceBundleData
-
getAttribute
- Specified by:
getAttributein interfaceorg.pentaho.reporting.libraries.resourceloader.ResourceData
-
getKey
public org.pentaho.reporting.libraries.resourceloader.ResourceKey getKey()- Specified by:
getKeyin 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:
getVersionin 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:
deriveManagerin interfaceorg.pentaho.reporting.libraries.resourceloader.ResourceBundleData- Throws:
org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException
-