|
||||||||||
| 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 | |
|---|---|
ResourceKey |
createKey(Object value,
Map factoryKeys)
create a new key based on the values provided |
ResourceKey |
deriveKey(ResourceKey parent,
String path,
Map data)
derive a key from an existing key, used when a relative path is given. |
ResourceManager |
getManager()
get the resource manager |
String |
getSchema()
get the schema name, in this case it's always "solution" |
boolean |
isSupportedKey(ResourceKey key)
see if the pentaho resource loader can support the content key path |
ResourceData |
load(ResourceKey key)
create a resource data object |
void |
setResourceManager(ResourceManager manager)
set the resource manager |
URL |
toURL(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(ResourceManager manager)
manager - resource managerpublic ResourceManager getManager()
public String getSchema()
public ResourceData load(ResourceKey key)
throws ResourceLoadingException
key - resource key
ResourceLoadingExceptionpublic boolean isSupportedKey(ResourceKey key)
values - map of values to look in
public ResourceKey createKey(Object value,
Map factoryKeys)
throws ResourceKeyCreationException
values - map of values
ResourceKeyCreationException
public ResourceKey deriveKey(ResourceKey parent,
String path,
Map data)
throws ResourceKeyCreationException
parent - the parent keydata - the new data to be keyed
ResourceKeyCreationExceptionpublic URL toURL(ResourceKey key)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||