|
Jive API (3.0.13) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.community.JiveHome
public final class JiveHome
Self-contained abstraction of the logic used to derive the home directory of the application.
This class also exposes various commonly used resources from the application home. It is intentionally staticly initialized as access to its information is usually needed in early application bootstrap initialization. The contract of this file is then, that jive home can never be null. It may not exist but the configured value will always exist or be defaulted.
| Field Summary | |
|---|---|
static String |
CLASSPATH_RESOURCE_ROOT
|
static String |
CONFIG_FILE
|
static String |
JIVE_HOME_KEY
|
static String |
JIVE_LOG_KEY
|
static String |
JIVE_ROOT_ENV_KEY
|
static String |
JIVE_ROOT_KEY
|
static String |
LICENSE_FILE
|
| Method Summary | |
|---|---|
static File |
getAttachmentCache()
Returns the attachement cache directory located in the jive home path. |
static File |
getAttachmentImageCache()
Returns the attachment image cache directory located in the jive home path. |
static File |
getAttachmentImages()
Returns the attachment image directory located in the jive home path. |
static File |
getAttachments()
Returns the attachment directory located in the jive home path. |
static File |
getBlogImports()
Returns the blog imports directory located in the jive home path. |
static File |
getBlogs()
Returns the blogs directory located in the jive home path. |
static File |
getCache()
Returns the cache directory located in the jive home path. |
static File |
getConfigurationFile()
Returns the application configuration file in the jive home path. |
static File |
getCrypto()
Returns the crypto directory located in the jive home path. |
static String |
getEnvironmentJiveHomePath()
Returns the envrionment configured value for Jive Home. |
static String |
getEnvironmentJiveLogsPath()
Returns the log path given the current runtime environment. |
static String |
getEnvironmentJiveRootPath()
Returns the root path given the current runtime environment. |
static File |
getEtc()
Returns the etc configuration directory located in the jive home path. |
static File |
getGeoIP()
Returns the GeoIP data directory located in the jive home path. |
static File |
getImageCache()
Returns the image cache directory located in the jive home path. |
static File |
getImages()
Returns the image directory located in the jive home path. |
static File |
getJiveHome()
Returns the home directory of the application. |
static String |
getJiveHomePath()
Returns the path to the jive home application within the system. |
static String |
getJiveLogPath()
Returns the log path for the runtime. |
static File |
getJiveLogs()
Returns the log directory of the application. |
static String |
getJiveLogsPath()
Returns the path to the jive log application within the system. |
static File |
getJiveRoot()
Returns the root of the jive installation on the local system. |
static String |
getJiveRootPath()
Returns the root path for the runtime. |
static File |
getLicenseFile()
Returns the path to the jive license file which may not exist depending on the context of the application. |
static UUID |
getNodeID()
|
static File |
getPlugins()
Returns the plugin directory located in the jive home path. |
static File |
getResources()
Returns the resources directory located in the jive home path. |
static File |
getSearch()
Returns the search directory located in the jive home path. |
static File |
getSpelling()
Returns the spelling directory located in the jive home path. |
static String |
getStartupJiveHomePath()
Returns the root path that was present at startup. |
static String |
getStartupJiveLogsPath()
Returns the path to application log files that was present at startup. |
static String |
getStartupJiveRootPath()
|
static File |
getStats()
Returns the stats directory located in the jive home path. |
static File |
getTemp()
Returns the temp directory located in the jive home path. |
static File |
getThemes()
Returns the themes directory located in the jive home path. |
static File |
getWww()
Returns the static HTTP resource directory located in the jive home path. |
static void |
initialize()
Causes the system to initialize all expected files to the effective Jive Home. |
static boolean |
isInitialized()
Indicates if JiveHome has been initialized - this will almost always be yes except for the case where JiveGlobals has a circular dependency on this class. |
static boolean |
isManagedInstall()
Validates the root structure provided to the runtime to determine if the runtime is hosted by a managed installation. |
static void |
setEffectiveJiveHomePath(String path)
Resets the effective Jive Home path for the running application, overriding system defaults. |
static void |
setEffectiveJiveLogsPath(String path)
Resets the effective Jive log path for the running application, overriding system defaults. |
static void |
setEffectiveJiveRootPath(String path)
Resets the effective Jive Root path for the running application, overriding system defaults. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String LICENSE_FILE
public static final String CONFIG_FILE
public static final String JIVE_ROOT_KEY
public static final String JIVE_LOG_KEY
public static final String JIVE_HOME_KEY
public static final String JIVE_ROOT_ENV_KEY
public static final String CLASSPATH_RESOURCE_ROOT
| Method Detail |
|---|
public static String getStartupJiveHomePath()
public static String getStartupJiveRootPath()
public static String getStartupJiveLogsPath()
public static void setEffectiveJiveHomePath(String path)
path - public static void setEffectiveJiveRootPath(String path)
path - public static void setEffectiveJiveLogsPath(String path)
path - public static String getEnvironmentJiveLogsPath()
public static String getEnvironmentJiveRootPath()
public static String getEnvironmentJiveHomePath()
public static void initialize()
public static File getEtc()
public static File getWww()
public static File getCache()
public static File getPlugins()
public static File getAttachments()
public static File getAttachmentCache()
public static File getAttachmentImages()
public static File getAttachmentImageCache()
public static File getBlogs()
public static File getBlogImports()
public static File getCrypto()
public static File getImages()
public static File getImageCache()
public static File getResources()
public static File getSpelling()
public static File getGeoIP()
public static File getSearch()
public static File getStats()
public static File getTemp()
public static File getThemes()
public static File getConfigurationFile()
public static File getLicenseFile()
public static File getJiveLogs()
public static String getJiveLogsPath()
public static File getJiveHome()
public static String getJiveHomePath()
public static File getJiveRoot()
public static String getJiveRootPath()
public static String getJiveLogPath()
public static boolean isManagedInstall()
public static UUID getNodeID()
public static boolean isInitialized()
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||