Examples of deriveKey()


Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.deriveKey()

  private byte[] loadDataFromBundle(final String href) throws ResourceKeyCreationException, ResourceLoadingException
  {
    final ResourceKey key = getRootHandler().getSource();
    final ResourceManager manager = getRootHandler().getResourceManager();
    final ResourceKey derivedKey = manager.deriveKey(key, href);
    final ResourceData data = manager.load(derivedKey);
    return data.getResource(manager);
  }
}
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.deriveKey()

    try
    {
      final ResourceManager resourceManager = rootHandler.getResourceManager();
      final ResourceKey source = rootHandler.getSource();

      final ResourceKey target = resourceManager.deriveKey(source, file, map);
      final DependencyCollector dc = rootHandler.getDependencyCollector();

      final Resource resource = resourceManager.create(target, rootHandler.getContext(), targetClass);
      dc.add(resource);
      return resource.getResource();
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.deriveKey()

        continue;
      }

      try
      {
        final ResourceKey resourceKey = resourceManager.deriveKey(context, href);
        final Resource resource = resourceManager.create(resourceKey, null, GlobalMetaDefinition.class);
        globalMetaDefinition.merge((GlobalMetaDefinition) resource.getResource());
      }
      catch (ResourceException e)
      {
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.deriveKey()

    {
      final ResourceManager resourceManager = runtime.getProcessingContext().getResourceManager();
      final ResourceKey chartKey;
      if (rawValue instanceof String)
      {
        chartKey = resourceManager.deriveKey(runtime.getProcessingContext().getContentBase(), (String) rawValue);
      }
      else
      {
        chartKey = resourceManager.createKey(rawValue);
      }
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.deriveKey()

    final ResourceManager resourceManager = getRootHandler().getResourceManager();
    final ResourceKey context = getRootHandler().getContext();
    try
    {
      final ResourceKey resourceKey = resourceManager.deriveKey(context, href);
      final Resource resource = resourceManager.create(resourceKey, null, GlobalMetaDefinition.class);
      result = (GlobalMetaDefinition) resource.getResource();
    }
    catch (ResourceException e)
    {
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.deriveKey()

        final ResourceManager resourceManager = getRootHandler().getResourceManager();

        try
        {
            final ResourceKey key =
                    resourceManager.deriveKey(contextKey, "styles.xml");
            final Resource resource =
                    resourceManager.create(key, contextKey, OfficeStylesCollection.class);
            final OfficeStylesCollection styles =
                    (OfficeStylesCollection) resource.getResource();
            if (styles != null)
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.deriveKey()

        final ResourceKey contextKey = getRootHandler().getContext();
        final ResourceManager resourceManager = getRootHandler().getResourceManager();
        try
        {
            final ResourceKey key =
                    resourceManager.deriveKey(contextKey, "content.xml");
            final Resource resource =
                    resourceManager.create(key, contextKey, JFreeReport.class);
            final OfficeDocument doc = (OfficeDocument) resource.getResource();
            if (doc != null)
            {
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.deriveKey()

    }
    final ResourceKey key = getRootHandler().getSource();
    final ResourceManager manager = getRootHandler().getResourceManager();
    try
    {
      final ResourceKey derivedKey = manager.deriveKey(key, href);
      final Resource resource = manager.create(derivedKey, null, ReportDataFactory.class);
      getRootHandler().getDependencyCollector().add(resource);
      dataFactory = (ReportDataFactory) resource.getResource();
    }
    catch (ResourceKeyCreationException e)
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.deriveKey()

    try
    {
      final ResourceManager resourceManager = rootHandler.getResourceManager();
      final ResourceKey source = rootHandler.getSource();

      final ResourceKey target = resourceManager.deriveKey(source, file, map);
      final DependencyCollector dc = rootHandler.getDependencyCollector();

      final Resource resource = resourceManager.create(target, rootHandler.getContext(), targetClass);
      dc.add(resource);
      return resource.getResource();
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.deriveKey()

    {
      final ResourceKey key = getRootHandler().getSource();
      final ResourceManager manager = getRootHandler().getResourceManager();
      try
      {
        final ResourceKey derivedKey = manager.deriveKey(key, href);
        final Resource resource = manager.create(derivedKey, null,
                StyleSheet.class);
        getRootHandler().getDependencyCollector().add(resource);
        styleSheet = (StyleSheet) resource.getResource();
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.