|
02/28/2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.epicentric.common.Props
PortalSystem
Handles loading the Vignette Portal configuration file and other configuration information into Java's System.properties. Note: Historically, the loading of Props has meant loading the properties into the java.lang.System properties. With the deprecation of this class, that feature is also deprecated and should not be relied upon when this class is removed (i.e. you should always use PortalSystem and not the System properties).
| Constructor Summary | |
Props()
Deprecated. |
|
| Method Summary | |
static Map |
enrichDataStructure(Properties props)
Deprecated. as of 7.2, to be removed in 9.0. Use java's built-in capabilities for this. |
static Properties |
filter(Properties props,
String base)
Deprecated. as of 7.2, to be removed in 9.0. Use java's built-in capabilities for this. |
static String |
getCustomPropertiesFilename()
Deprecated. as of 7.2, to be removed in 9.0. No replacement. |
static Properties |
getProperties()
Deprecated. as of 7.2, to be removed in 9.0. Replaced by PortalSystem.getProperties() |
static Properties |
getPropertiesFromFile(File file)
Deprecated. as of 7.2, to be removed in 9.0. Use java's built-in capabilities for this. |
static Properties |
getPropertiesFromFile(Properties defaults,
File file)
Deprecated. as of 7.2, to be removed in 9.0. Use java's built-in capabilities for this. |
static String |
getProperty(String key)
Deprecated. as of 7.2, to be removed in 9.0. Replaced by PortalSystem.getProperties() |
static String |
getProperty(String key,
String defaultValue)
Deprecated. as of 7.2, to be removed in 9.0. Replaced by PortalSystem.getProperties() |
static boolean |
isCustomPropertiesFileLoaded()
Deprecated. as of 7.2, to be removed in 9.0. No replacement. |
static boolean |
isLoaded()
Deprecated. as of 7.2, to be removed in 9.0. No replacement. |
static void |
justLoadProperties(String custom_properties_filename,
boolean verbose)
Deprecated. as of 7.2, to be removed in 9.0. No replacement. |
static void |
load()
Deprecated. as of 7.2, to be removed in 9.0. No replacement. |
static void |
load(String custom_properties_filename)
Deprecated. as of 7.2, to be removed in 9.0. No replacement. |
static void |
load(String custom_properties_filename,
boolean verbose)
Deprecated. as of 7.2, to be removed in 9.0. No replacement. |
static boolean |
save(File file,
Properties properties)
Deprecated. as of 7.2, to be removed in 9.0. Use java's built-in capabilities for this. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Props()
| Method Detail |
public static boolean isLoaded()
public static void load()
Props.load(String)public static void load(String custom_properties_filename)
config
subdirectory of the Vignette Portal installation
directory.
This method also sets the existing properties' "user.dir" and
"user.home" to the Vignette Portal install directory,
public static void load(String custom_properties_filename,
boolean verbose)
public static void justLoadProperties(String custom_properties_filename,
boolean verbose)
public static Properties getPropertiesFromFile(File file)
public static Properties getPropertiesFromFile(Properties defaults,
File file)
public static boolean save(File file,
Properties properties)
file - Name of the output file. If file
already exists, it is first deleted.properties - Name of the Properties objectfile written successfully; otherwise falsepublic static String getCustomPropertiesFilename()
Props.isCustomPropertiesFileLoaded()public static boolean isCustomPropertiesFileLoaded()
Props.getCustomPropertiesFilename()
public static Properties filter(Properties props,
String base)
props - The properties to be filteredbase - The base scope of the properties to be extractedpublic static Map enrichDataStructure(Properties props)
props - The Properties to be enriched/sorted.public static String getProperty(String key)
PortalSystem.getProperties()
public static String getProperty(String key,
String defaultValue)
PortalSystem.getProperties()
public static Properties getProperties()
PortalSystem.getProperties()
|
02/28/2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||