|
Clearspace API (1.7.0) 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 the main entry point for the system. Almost all uses of this class
will be concerned solely with the getContext(AuthToken) method which is used to get an
instance of the JiveContext interface. The AuthToken parameter is used to
determine permissions for all retrieved objects. That is, if an admin auth token is used then
all objects retrieved will have admin access rights. If a normal user auth token is used, then
all objects will have that normal user's access rights.
AuthToken by calling AuthFactory.getAuthToken(String, String)JiveContext instance via the getContext(AuthToken)
method.AuthFactory
class for more information.
Fine-grained pluggability of the user and group system is also available. See the
UserManager and GroupManager classes for more information.
AuthFactory,
JiveContext| Nested Class Summary | |
|---|---|
static class |
JiveApplication.ManagerHandler
A class that is used to initialize and retrieve instances of JiveManager. |
| Method Summary | |
|---|---|
protected static void |
clearTestContext()
z For testing purposes only. |
static void |
destroy()
Destroys the application. |
static ApplicationLifeCycle |
getApplicationLifeCycle()
Method used internally by Jive to retrieve the ApplicationLifeCycle. |
static JiveContext |
getContext(AuthToken authToken)
Returns a concrete JiveContext instance. |
static JiveApplication.ManagerHandler |
getManagerHandler()
-- Jive Internal Use -- Returns a manager handler used for initializing and acquring managers. |
static void |
initialize()
Initializes the application. |
static boolean |
isInitialized()
Returns true if the application is initialized, false otherwise. |
static void |
setApplicationLifeCycle(ApplicationLifeCycle lifeCycle)
Method used internally by Jive to set the ApplicationLifeCycle. |
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 static boolean isInitialized()
public static void initialize()
getContext(AuthToken).
public static void destroy()
public static JiveContext getContext(AuthToken authToken)
JiveContext instance. Permissions to all resources retrieved
from the JiveContext are calculated using the AuthToken parameter.
Note, this method will return null if this application has not been
initialized. If you're calling this method outside of the normal
Jive application then you'll need to call the init method first.
authToken - the auth token used for calculating permissions.
public static void setApplicationLifeCycle(ApplicationLifeCycle lifeCycle)
lifeCycle - an ApplicationLifeCycle instancepublic static ApplicationLifeCycle getApplicationLifeCycle()
public static JiveApplication.ManagerHandler getManagerHandler()
protected static void setTestContext(JiveContext context)
clearTestContext() after you are done.
context - The test jive contextprotected static void clearTestContext()
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||