|
Clearspace API (2.5.29) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.community.lifecycle.JiveApplication
public class JiveApplication
This class is one main entry point for the system. Almost all uses of this class will be concerned solely with the
getEffectiveContext() method which is used to get an instance of the JiveContext interface. This
will return a context which will apply the permissions for the current authentication as received from AuthenticationProvider.getAuthentication().
UserManager and GroupManager classes for more information.
AuthenticationProvider,
JiveContext| Method Summary | |
|---|---|
static void |
afterInitialization()
Do necessary cleanup after initialization. |
protected static void |
clearTestContext()
For testing purposes only. |
static void |
destroy()
Destroys the application. |
static void |
destroy(ServletContext servletContext)
Destroys the web application. |
static void |
finishContextRefresh(com.jivesoftware.community.lifecycle.spring.SpringJiveContextImpl springJiveContext)
This is called by the SpringJiveContextImpl when the context is done initializing but before any Spring contextRefresh events are fired, so calls done on that event don't wind up with a null JiveApplication.getContext() reference. |
static com.jivesoftware.community.lifecycle.ApplicationState |
getApplicationState()
|
static String[] |
getConfigurationFiles()
Returns the current set of Spring configuration files underlying the Jive application. |
static JiveContext |
getContext()
Returns the raw jive context (spring context). |
static JiveContext |
getEffectiveContext()
Returns a jive context with the appropriate permissions of the effective user (which is not necessarily the same as the authenticated user. |
static void |
initialize()
Initializes the application. |
static void |
initialize(ServletContext servletContext)
Initializes the web application. |
static boolean |
isContextInitialized()
Returns true if the Spring Context is initialized, false otherwise. |
static boolean |
isDatabaseAvailable()
Checks to see if the database is available. |
static boolean |
isInitialized()
Returns true if the application is initialized, false otherwise. |
static com.jivesoftware.community.lifecycle.ApplicationState |
setApplicationState(com.jivesoftware.community.lifecycle.ApplicationState previousState,
com.jivesoftware.community.lifecycle.ApplicationState newState)
Transition the application from the previous to a new state. |
static void |
setConfigurationFiles(String... configs)
Configures the underlying spring context with the given configuration files. |
static void |
setContextLoader(org.springframework.web.context.ContextLoader loader)
Specifically set the context loader to use, overwriting the jive/spring loader. |
void |
setDispatcher(com.jivesoftware.base.event.v2.EventDispatcher d)
|
protected static void |
setTestContext(JiveContext context)
For testing purposes only. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void setDispatcher(com.jivesoftware.base.event.v2.EventDispatcher d)
setDispatcher in interface com.jivesoftware.base.event.v2.EventSourcepublic static void setContextLoader(org.springframework.web.context.ContextLoader loader)
loader - public static void setConfigurationFiles(String... configs)
configs - public static String[] getConfigurationFiles()
public static boolean isInitialized()
public static boolean isContextInitialized()
public static boolean isDatabaseAvailable()
public static void initialize()
public static void initialize(ServletContext servletContext)
getEffectiveContext().
public static void destroy()
public static void destroy(ServletContext servletContext)
public static JiveContext getEffectiveContext()
public static JiveContext getContext()
protected static void setTestContext(JiveContext context)
clearTestContext() after you are done.
context - The test jive contextprotected static void clearTestContext()
public static void afterInitialization()
public static com.jivesoftware.community.lifecycle.ApplicationState getApplicationState()
public static com.jivesoftware.community.lifecycle.ApplicationState setApplicationState(com.jivesoftware.community.lifecycle.ApplicationState previousState,
com.jivesoftware.community.lifecycle.ApplicationState newState)
newState - the state being transitioned to.previousState - the state which is being transitioned from
public static void finishContextRefresh(com.jivesoftware.community.lifecycle.spring.SpringJiveContextImpl springJiveContext)
springJiveContext -
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||