|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.platform.plugin.action.jfreereport.helper.PentahoResourceLoader
public class PentahoResourceLoader
This class is implemented to support loading solution files from the pentaho repository into JFreeReport
| Field Summary | |
|---|---|
static String |
PATH_SEPARATOR
|
static String |
SCHEMA_SEPARATOR
|
static String |
SOLUTION_SCHEMA_NAME
|
static String |
WIN_PATH_SEPARATOR
|
| Constructor Summary | |
|---|---|
PentahoResourceLoader()
default constructor |
|
| Method Summary | |
|---|---|
org.pentaho.reporting.libraries.resourceloader.ResourceKey |
createKey(Object value,
Map factoryKeys)
create a new key based on the values provided |
org.pentaho.reporting.libraries.resourceloader.ResourceKey |
deriveKey(org.pentaho.reporting.libraries.resourceloader.ResourceKey parent,
String path,
Map data)
derive a key from an existing key, used when a relative path is given. |
org.pentaho.reporting.libraries.resourceloader.ResourceKey |
deserialize(org.pentaho.reporting.libraries.resourceloader.ResourceKey bundleKey,
String stringKey)
|
org.pentaho.reporting.libraries.resourceloader.ResourceManager |
getManager()
get the resource manager |
String |
getSchema()
get the schema name, in this case it's always "solution" |
boolean |
isSupportedDeserializer(String data)
|
boolean |
isSupportedKey(org.pentaho.reporting.libraries.resourceloader.ResourceKey key)
see if the pentaho resource loader can support the content key path |
org.pentaho.reporting.libraries.resourceloader.ResourceData |
load(org.pentaho.reporting.libraries.resourceloader.ResourceKey key)
create a resource data object |
String |
serialize(org.pentaho.reporting.libraries.resourceloader.ResourceKey resourceKey,
org.pentaho.reporting.libraries.resourceloader.ResourceKey key)
|
void |
setResourceManager(org.pentaho.reporting.libraries.resourceloader.ResourceManager manager)
set the resource manager |
URL |
toURL(org.pentaho.reporting.libraries.resourceloader.ResourceKey key)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SOLUTION_SCHEMA_NAME
public static final String SCHEMA_SEPARATOR
public static final String PATH_SEPARATOR
public static final String WIN_PATH_SEPARATOR
| Constructor Detail |
|---|
public PentahoResourceLoader()
| Method Detail |
|---|
public void setResourceManager(org.pentaho.reporting.libraries.resourceloader.ResourceManager manager)
manager - resource managerpublic org.pentaho.reporting.libraries.resourceloader.ResourceManager getManager()
public String getSchema()
public org.pentaho.reporting.libraries.resourceloader.ResourceData load(org.pentaho.reporting.libraries.resourceloader.ResourceKey key)
throws org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException
load in interface org.pentaho.reporting.libraries.resourceloader.ResourceLoaderkey - resource key
org.pentaho.reporting.libraries.resourceloader.ResourceLoadingExceptionpublic boolean isSupportedKey(org.pentaho.reporting.libraries.resourceloader.ResourceKey key)
isSupportedKey in interface org.pentaho.reporting.libraries.resourceloader.ResourceLoadervalues - map of values to look in
public org.pentaho.reporting.libraries.resourceloader.ResourceKey createKey(Object value,
Map factoryKeys)
throws org.pentaho.reporting.libraries.resourceloader.ResourceKeyCreationException
createKey in interface org.pentaho.reporting.libraries.resourceloader.ResourceLoadervalues - map of values
org.pentaho.reporting.libraries.resourceloader.ResourceKeyCreationException
public org.pentaho.reporting.libraries.resourceloader.ResourceKey deriveKey(org.pentaho.reporting.libraries.resourceloader.ResourceKey parent,
String path,
Map data)
throws org.pentaho.reporting.libraries.resourceloader.ResourceKeyCreationException
deriveKey in interface org.pentaho.reporting.libraries.resourceloader.ResourceLoaderparent - the parent keydata - the new data to be keyed
org.pentaho.reporting.libraries.resourceloader.ResourceKeyCreationExceptionpublic URL toURL(org.pentaho.reporting.libraries.resourceloader.ResourceKey key)
toURL in interface org.pentaho.reporting.libraries.resourceloader.ResourceLoader
public org.pentaho.reporting.libraries.resourceloader.ResourceKey deserialize(org.pentaho.reporting.libraries.resourceloader.ResourceKey bundleKey,
String stringKey)
throws org.pentaho.reporting.libraries.resourceloader.ResourceKeyCreationException
deserialize in interface org.pentaho.reporting.libraries.resourceloader.ResourceLoaderorg.pentaho.reporting.libraries.resourceloader.ResourceKeyCreationExceptionpublic boolean isSupportedDeserializer(String data)
isSupportedDeserializer in interface org.pentaho.reporting.libraries.resourceloader.ResourceLoader
public String serialize(org.pentaho.reporting.libraries.resourceloader.ResourceKey resourceKey,
org.pentaho.reporting.libraries.resourceloader.ResourceKey key)
throws org.pentaho.reporting.libraries.resourceloader.ResourceException
serialize in interface org.pentaho.reporting.libraries.resourceloader.ResourceLoaderorg.pentaho.reporting.libraries.resourceloader.ResourceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||