|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.sree.SreeEnv
public class SreeEnv
StyleReport/EE environment properties setting. It loads the sree.properties file and inherits all properties from the system properties. If an application needs to modify properties used in SREE, it should change the property through this class. Some of the property is used at replet engine initialization time. Subsequent changes to the property may not affect the report generation.
| Constructor Summary | |
|---|---|
SreeEnv()
|
|
| Method Summary | |
|---|---|
static void |
clear()
Clear and reload the properties. |
static void |
clear(boolean all)
Clear and reload the properties. |
static inetsoft.util.Catalog.CatalogGetter |
getCatalogGetter()
Get catalog getter. |
static inetsoft.util.Catalog |
getEMCatalog()
Get catalog for EM localization. |
static String |
getPassword(String name)
Get the value of a password property. |
static String |
getPath(String path)
Get physical file path. |
static String |
getPath(String name,
String def)
Get a property value as a file path. |
static Properties |
getProperties()
Get all properties. |
static String |
getProperty(String name)
Get the value of a property. |
static String |
getProperty(String name,
String def)
Get the value of a property. |
static String |
getRelativePath(String name,
String def)
Get a property value from specific properties set as a file path, which is relative to the sree.home if sree.home is set |
static AnalyticRepository |
getRepletRepository()
Get a repository instance based on configuration parameters. |
static inetsoft.util.Catalog |
getReportCatalog()
Get catalog for report localization. |
static void |
init()
Initialize the environment. |
static void |
init(String path)
Initialize the environment. |
static void |
load(String sreeHome)
Deprecated. since 6.5 |
static void |
remove(String name)
Remove the named property. |
static void |
save()
Saves the in-memory properties to the property file specified by the argument. |
static void |
save(String location)
Saves the in-memory properties to the property file specified by the argument. |
static void |
setLogLevel(inetsoft.util.log.LogUtil.LogContext context,
String name,
Level level)
Sets the level for a log context. |
static void |
setPassword(String name,
String value)
Set the value of a password property. |
static void |
setProperty(String name,
String val)
Set the value of a property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SreeEnv()
| Method Detail |
|---|
public static inetsoft.util.Catalog.CatalogGetter getCatalogGetter()
public static String getProperty(String name)
name - property name.
public static String getProperty(String name,
String def)
name - property name.def - default value if the property is null.
public static String getPath(String name,
String def)
name - property name.def - default value if the property is null.public static String getPath(String path)
path - the specified logical file path.
public static String getRelativePath(String name,
String def)
name - property name.def - default value if the property is null.
public static void setProperty(String name,
String val)
public static void setPassword(String name,
String value)
name - the name of the property.value - the value of the property.public static String getPassword(String name)
name - the name of the property.
public static void setLogLevel(inetsoft.util.log.LogUtil.LogContext context,
String name,
Level level)
context - the type of log context.name - the name of the log context.level - the new level.public static void remove(String name)
public static Properties getProperties()
public static AnalyticRepository getRepletRepository()
throws Exception
Exception
public static void init(String path)
throws IOException
path - the initial property file path.
IOExceptionpublic static void clear()
public static void clear(boolean all)
all - to clear properties in ReportEnv.public static void init()
public static void load(String sreeHome)
sreeHome - - the directory containing the initial property file.
public static void save()
throws IOException
IOException
public static void save(String location)
throws IOException
location - - the full (system-dependent) path
of the file to which the properties
are to be saved.
IOExceptionpublic static inetsoft.util.Catalog getEMCatalog()
public static inetsoft.util.Catalog getReportCatalog()
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||