|
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.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 | |
|---|---|
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(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 ApplicationState |
getApplicationState()
|
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 ApplicationState |
setApplicationState(ApplicationState previousState,
ApplicationState newState)
Transition the application from the previous to a new state. |
static void |
setContextLoader(JiveContextLoader loader)
Specifically set the context loader to use, overwriting the jive/spring loader. |
void |
setDispatcher(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(EventDispatcher d)
public static void setContextLoader(JiveContextLoader loader)
loader - 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 ApplicationState getApplicationState()
public static ApplicationState setApplicationState(ApplicationState previousState,
ApplicationState newState)
newState - the state being transitioned to.previousState - the state which is being transitioned from
public static void finishContextRefresh(SpringJiveContextImpl springJiveContext)
springJiveContext -
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||