|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.cocoon.auth.StandardApplication
public class StandardApplication
This is the default implementation for an Application
.
Field Summary | |
---|---|
protected Map |
attributes
Attributes. |
protected SecurityHandler |
handler
The security handler. |
protected static String |
HANDLER_CONFIG_PREFIX
This prefix is used to lookup security handlers. |
protected ServiceManager |
manager
The service manager. |
protected ApplicationStore |
store
Application store. |
protected static String |
STORE_CONFIG_PREFIX
This prefix is used to lookup application stores. |
Constructor Summary | |
---|---|
StandardApplication()
|
Method Summary | |
---|---|
void |
configure(Configuration conf)
|
protected void |
configureAttributes(Configuration conf)
This method is invoked during configuration of the application. |
void |
dispose()
|
ApplicationStore |
getApplicationStore()
Return the application store for loading/saving user specific data. |
Object |
getAttribute(String key)
Get the value of an application attribute. |
SecurityHandler |
getSecurityHandler()
Return the security handler for this application. |
void |
removeAttribute(String key)
Remove an application attribute. |
void |
service(ServiceManager aManager)
|
void |
setAttribute(String key,
Object value)
Set an application attribute. |
void |
userDidLogin(User user,
Map context)
Notify the application about a successful login of a user. |
void |
userIsAccessing(User user)
Notify the application about a user using the application in the current request. |
void |
userWillLogout(User user,
Map context)
Notify the application about a logout of a user. |
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 HANDLER_CONFIG_PREFIX
protected static final String STORE_CONFIG_PREFIX
protected ServiceManager manager
protected SecurityHandler handler
protected final Map attributes
protected ApplicationStore store
Constructor Detail |
---|
public StandardApplication()
Method Detail |
---|
public void service(ServiceManager aManager) throws ServiceException
service
in interface Serviceable
ServiceException
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)
public void configure(Configuration conf) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
Configurable.configure(org.apache.avalon.framework.configuration.Configuration)
protected void configureAttributes(Configuration conf)
conf
- The application configuration.public void dispose()
dispose
in interface Disposable
Disposable.dispose()
public SecurityHandler getSecurityHandler()
Application
getSecurityHandler
in interface Application
Application.getSecurityHandler()
public ApplicationStore getApplicationStore()
Application
getApplicationStore
in interface Application
Application.getApplicationStore()
public void setAttribute(String key, Object value)
Application
setAttribute
in interface Application
key
- The key of the attribute.value
- The value of the attribute.Application.setAttribute(java.lang.String, java.lang.Object)
public void removeAttribute(String key)
Application
removeAttribute
in interface Application
key
- The key of the attribute.Application.removeAttribute(java.lang.String)
public Object getAttribute(String key)
Application
getAttribute
in interface Application
key
- The key of the attribute.
Application.getAttribute(java.lang.String)
public void userDidLogin(User user, Map context)
Application
userDidLogin
in interface Application
user
- The current user.context
- The context for the login operation.Application.userDidLogin(org.apache.cocoon.auth.User, java.util.Map)
public void userWillLogout(User user, Map context)
Application
userWillLogout
in interface Application
user
- The current user.context
- The context for the logout operation.Application.userWillLogout(org.apache.cocoon.auth.User, java.util.Map)
public void userIsAccessing(User user)
Application
userIsAccessing
in interface Application
user
- The current user.Application.userIsAccessing(org.apache.cocoon.auth.User)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |