Package org.pentaho.platform.config
Class AppConfigProperties
- java.lang.Object
-
- org.pentaho.platform.config.AppConfigProperties
-
public class AppConfigProperties extends Object
By default, this class will initialize itself fromresource/config/console.xml
(relative to the current working directory).- Author:
- Steven Barkdull, mlowery
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONFIG_FILE_NAME
static String
DEFAULT_BISERVER_BASE_URL
static String
DEFAULT_BISERVER_CONTEXT_PATH
static String
DEFAULT_BISERVER_STATUS_CHECK_PERIOD
static String
DEFAULT_HELP_URL
static String
DEFAULT_HIBERNATE_CONFIG_PATH
static String
DEFAULT_HOMEPAGE_TIMEOUT
static String
DEFAULT_HOMEPAGE_URL
static String
DEFAULT_PLATFORM_USERNAME
static String
DEFAULT_VALUE_PASSWORD_SERVICE_CLASS
static String
HIBERNATE_MANAGED_XML_PATH
static String
JDBC_DRIVER_PATH
static String
KEY_BISERVER_BASE_URL
static String
KEY_BISERVER_CONTEXT_PATH
static String
KEY_BISERVER_STATUS_CHECK_PERIOD
static String
KEY_PLATFORM_USERNAME
static String
PENTAHO_OBJECTS_SPRING_XML
static String
SPRING_SECURITY_HIBERNATE_XML
static String
WEB_XML_PATH
-
Constructor Summary
Constructors Modifier Constructor Description protected
AppConfigProperties()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBiServerBaseUrl()
String
getBiServerContextPath()
String
getBiServerStatusCheckPeriod()
List<String>
getDefaultRoles()
Convenience wrapper around getDefaultRolesString that parses the default roles string into individual roles.String
getDefaultRolesString()
Returns a comma-separated list of roles to apply to newly created users.String
getHelpUrl()
String
getHibernateConfigPath()
String
getHomepageTimeout()
String
getHomepageUrl()
static AppConfigProperties
getInstance()
String
getJdbcDriverPath()
org.springframework.security.crypto.password.PasswordEncoder
getPasswordEncoder()
String
getPasswordServiceClass()
String
getPlatformUsername()
String
getSolutionPath()
String
getWarPath()
boolean
isHibernateManaged()
boolean
isValidConfiguration()
void
refreshConfig()
-
-
-
Field Detail
-
CONFIG_FILE_NAME
public static final String CONFIG_FILE_NAME
- See Also:
- Constant Field Values
-
WEB_XML_PATH
public static final String WEB_XML_PATH
- See Also:
- Constant Field Values
-
HIBERNATE_MANAGED_XML_PATH
public static final String HIBERNATE_MANAGED_XML_PATH
- See Also:
- Constant Field Values
-
PENTAHO_OBJECTS_SPRING_XML
public static final String PENTAHO_OBJECTS_SPRING_XML
- See Also:
- Constant Field Values
-
SPRING_SECURITY_HIBERNATE_XML
public static final String SPRING_SECURITY_HIBERNATE_XML
- See Also:
- Constant Field Values
-
JDBC_DRIVER_PATH
public static final String JDBC_DRIVER_PATH
- See Also:
- Constant Field Values
-
KEY_BISERVER_STATUS_CHECK_PERIOD
public static final String KEY_BISERVER_STATUS_CHECK_PERIOD
- See Also:
- Constant Field Values
-
KEY_BISERVER_BASE_URL
public static final String KEY_BISERVER_BASE_URL
- See Also:
- Constant Field Values
-
KEY_BISERVER_CONTEXT_PATH
public static final String KEY_BISERVER_CONTEXT_PATH
- See Also:
- Constant Field Values
-
KEY_PLATFORM_USERNAME
public static final String KEY_PLATFORM_USERNAME
- See Also:
- Constant Field Values
-
DEFAULT_VALUE_PASSWORD_SERVICE_CLASS
public static final String DEFAULT_VALUE_PASSWORD_SERVICE_CLASS
- See Also:
- Constant Field Values
-
DEFAULT_BISERVER_BASE_URL
public static final String DEFAULT_BISERVER_BASE_URL
- See Also:
- Constant Field Values
-
DEFAULT_BISERVER_CONTEXT_PATH
public static final String DEFAULT_BISERVER_CONTEXT_PATH
- See Also:
- Constant Field Values
-
DEFAULT_PLATFORM_USERNAME
public static final String DEFAULT_PLATFORM_USERNAME
- See Also:
- Constant Field Values
-
DEFAULT_BISERVER_STATUS_CHECK_PERIOD
public static final String DEFAULT_BISERVER_STATUS_CHECK_PERIOD
- See Also:
- Constant Field Values
-
DEFAULT_HOMEPAGE_TIMEOUT
public static final String DEFAULT_HOMEPAGE_TIMEOUT
- See Also:
- Constant Field Values
-
DEFAULT_HIBERNATE_CONFIG_PATH
public static final String DEFAULT_HIBERNATE_CONFIG_PATH
- See Also:
- Constant Field Values
-
DEFAULT_HELP_URL
public static final String DEFAULT_HELP_URL
- See Also:
- Constant Field Values
-
DEFAULT_HOMEPAGE_URL
public static final String DEFAULT_HOMEPAGE_URL
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static AppConfigProperties getInstance()
-
refreshConfig
public void refreshConfig() throws AppConfigException
- Throws:
AppConfigException
-
isValidConfiguration
public boolean isValidConfiguration()
-
getPasswordEncoder
public org.springframework.security.crypto.password.PasswordEncoder getPasswordEncoder()
-
getPlatformUsername
public String getPlatformUsername()
-
getBiServerContextPath
public String getBiServerContextPath()
-
getBiServerBaseUrl
public String getBiServerBaseUrl()
-
getBiServerStatusCheckPeriod
public String getBiServerStatusCheckPeriod()
-
getDefaultRolesString
public String getDefaultRolesString()
Returns a comma-separated list of roles to apply to newly created users.
-
getDefaultRoles
public List<String> getDefaultRoles()
Convenience wrapper around getDefaultRolesString that parses the default roles string into individual roles.
-
getHomepageUrl
public String getHomepageUrl()
-
getHomepageTimeout
public String getHomepageTimeout()
-
getHibernateConfigPath
public String getHibernateConfigPath()
-
isHibernateManaged
public boolean isHibernateManaged()
-
getSolutionPath
public String getSolutionPath()
-
getWarPath
public String getWarPath()
-
getPasswordServiceClass
public String getPasswordServiceClass()
-
getJdbcDriverPath
public String getJdbcDriverPath()
-
getHelpUrl
public String getHelpUrl()
-
-