|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.auth.impl.StandardApplicationManager
public class StandardApplicationManager
This is the default implementation of the
ApplicationManager.
| Field Summary | |
|---|---|
protected static String |
APPLICATION_KEY_PREFIX
The prefix used to store the application data object in the session. |
protected Context |
context
The component context. |
protected static String |
LOGIN_INFO_KEY
The key used to store the login information in the session. |
protected ServiceManager |
manager
The service manager. |
| Fields inherited from interface org.apache.cocoon.auth.ApplicationManager |
|---|
APPLICATION, APPLICATION_DATA, LOGIN_CONTEXT_PARAMETERS_KEY, LOGOUT_CONTEXT_MODE_KEY, LOGOUT_CONTEXT_PARAMETERS_KEY, LOGOUT_MODE_KEEP_SESSION, LOGOUT_MODE_TERMINATE_SESSION_IF_UNUSED, USER |
| Constructor Summary | |
|---|---|
StandardApplicationManager()
|
|
| Method Summary | |
|---|---|
void |
contextualize(Context aContext)
|
void |
dispose()
|
protected Application |
getApplication(String appName)
Get the application with the given name. |
boolean |
isLoggedIn(String appName)
Test, if the current user is already logged into the application. |
User |
login(String appName,
Map loginContext)
Log the user in to the application. |
void |
logout(String appName,
Map logoutContext)
Logout the user from an application. |
void |
service(ServiceManager aManager)
|
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String LOGIN_INFO_KEY
protected static final String APPLICATION_KEY_PREFIX
protected Context context
protected ServiceManager manager
| Constructor Detail |
|---|
public StandardApplicationManager()
| Method Detail |
|---|
public void contextualize(Context aContext)
throws ContextException
contextualize in interface ContextualizableContextExceptionContextualizable.contextualize(org.apache.avalon.framework.context.Context)
public void service(ServiceManager aManager)
throws ServiceException
service in interface ServiceableServiceExceptionServiceable.service(org.apache.avalon.framework.service.ServiceManager)public void dispose()
dispose in interface DisposableDisposable.dispose()
protected Application getApplication(String appName)
throws Exception
appName - The name of the application.
Exception - If the application can't be found.public boolean isLoggedIn(String appName)
ApplicationManager
isLoggedIn in interface ApplicationManagerappName - The name of the application.
ApplicationManager.isLoggedIn(java.lang.String)
public User login(String appName,
Map loginContext)
throws Exception
ApplicationManagerSecurityHandler.login(Map) and on successful login to
Application.userDidLogin(User, Map).
login in interface ApplicationManagerappName - The name of the application.loginContext - The context for the login operation.
Exception - If anything goes wrong.ApplicationManager.login(java.lang.String, java.util.Map)
public void logout(String appName,
Map logoutContext)
ApplicationManagerApplication.userWillLogout(User, Map),
and eventually to SecurityHandler.logout(Map, User).
logout in interface ApplicationManagerappName - The name of the application.logoutContext - The context for the logout operation.ApplicationManager.logout(java.lang.String, java.util.Map)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||