|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.cocoon.auth.impl.StandardApplicationManager
This is the default implementation of the
ApplicationManager.
This implementation is heavily tied to Spring. This has been done to make
the configuration of the application manager easier.
| Field Summary | |
protected static String |
APPLICATION_BEAN_NAME_PREFIX
The prefix used to register applications. |
protected static String |
APPLICATION_KEY_PREFIX
The prefix used to store the application data object in the session. |
protected Map |
applications
A map containing all applications. |
protected static String |
LOGIN_INFO_KEY
The key used to store the login information in the session. |
protected org.apache.cocoon.processing.ProcessInfoProvider |
processInfoProvider
The process info provider. |
protected static String |
SECURITYHANDLER_BEAN_NAME_PREFIX
The prefix used to register security handler. |
| Fields inherited from interface org.apache.cocoon.auth.ApplicationManager |
APPLICATION, APPLICATION_DATA, LOGIN_CONTEXT_PASSWORD_KEY, LOGIN_CONTEXT_USERNAME_KEY, LOGOUT_CONTEXT_MODE_KEY, LOGOUT_MODE_KEEP_SESSION, LOGOUT_MODE_TERMINATE_SESSION_IF_UNUSED, USER |
| Constructor Summary | |
StandardApplicationManager()
|
|
| Method Summary | |
protected org.apache.cocoon.auth.Application |
getApplication(String appName)
Return the application with the name. |
protected String |
getKey(org.apache.cocoon.auth.SecurityHandler handler)
|
Log |
getLogger()
|
boolean |
isLoggedIn(String appName)
|
org.apache.cocoon.auth.User |
login(String appName,
Map loginContext)
|
void |
logout(String appName,
Map logoutContext)
|
static void |
logoutFromAllApplications(HttpSession session)
Logs the user out of all applications. |
void |
setBeanFactory(BeanFactory factory)
|
void |
setLogger(Log l)
|
| 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 static final String APPLICATION_BEAN_NAME_PREFIX
protected static final String SECURITYHANDLER_BEAN_NAME_PREFIX
protected org.apache.cocoon.processing.ProcessInfoProvider processInfoProvider
protected Map applications
| Constructor Detail |
public StandardApplicationManager()
| Method Detail |
public Log getLogger()
public void setLogger(Log l)
public void setBeanFactory(BeanFactory factory)
throws BeansException
setBeanFactory in interface BeanFactoryAwareBeansExceptionBeanFactoryAware.setBeanFactory(org.springframework.beans.factory.BeanFactory)protected org.apache.cocoon.auth.Application getApplication(String appName)
protected String getKey(org.apache.cocoon.auth.SecurityHandler handler)
public boolean isLoggedIn(String appName)
isLoggedIn in interface org.apache.cocoon.auth.ApplicationManagerApplicationManager.isLoggedIn(String)
public org.apache.cocoon.auth.User login(String appName,
Map loginContext)
throws Exception
login in interface org.apache.cocoon.auth.ApplicationManagerExceptionApplicationManager.login(String, java.util.Map)
public void logout(String appName,
Map logoutContext)
logout in interface org.apache.cocoon.auth.ApplicationManagerApplicationManager.logout(String, java.util.Map)public static void logoutFromAllApplications(HttpSession session)
session - The corresponding session
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||