Class 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:
    Serialized Form
    • Field Summary

      • Fields inherited from interface org.pentaho.reporting.libraries.resourceloader.ResourceData

        CONTENT_LENGTH, CONTENT_TYPE, FILENAME
    • Constructor Summary

      Constructors 
      Constructor Description
      RepositoryResourceBundleData​(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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.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)  
      Object getAttribute​(String key)  
      org.pentaho.reporting.libraries.resourceloader.ResourceKey getBundleKey()  
      org.pentaho.reporting.libraries.resourceloader.ResourceKey getKey()  
      org.pentaho.reporting.libraries.repository.Repository getRepository()  
      InputStream 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 interface org.pentaho.reporting.libraries.resourceloader.ResourceData

        getLength, getResource, getResource
    • Constructor Detail

      • 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 Detail

      • 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 interface org.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 interface org.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 interface org.pentaho.reporting.libraries.resourceloader.ResourceBundleData
      • getAttribute

        public Object getAttribute​(String key)
        Specified by:
        getAttribute in interface org.pentaho.reporting.libraries.resourceloader.ResourceData
      • getKey

        public org.pentaho.reporting.libraries.resourceloader.ResourceKey getKey()
        Specified by:
        getKey in interface org.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 interface org.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 interface org.pentaho.reporting.libraries.resourceloader.ResourceBundleData
        Throws:
        org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException