| org.apache.cocoon.auth.Application
All known Subclasses: org.apache.cocoon.auth.StandardApplication,
Application | public interface Application (Code) | | This class describes the current application. Inside Cocoon, you can have
different applications running at the same time (a portal, a shop, a
registration wizard etc.) Each of these applications might require its
own login or might have different settings. The application object helps in
managing these things.
An application provides access to the corresponding
SecurityHandler and
ApplicationStore . It can also store configuration values as
attributes.
In addition, the application is notified about user actions (login, logout
and usage).
version: $Id: Application.java 433543 2006-08-22 06:22:54Z crossley $ |
getApplicationStore | ApplicationStore getApplicationStore()(Code) | | Return the application store for loading/saving user specific data.
Return the application store or null. |
getAttribute | Object getAttribute(String key)(Code) | | Get the value of an application attribute.
Parameters: key - The key of the attribute. The value of the attribute or null. |
getSecurityHandler | SecurityHandler getSecurityHandler()(Code) | | Return the security handler for this application.
The security handler |
removeAttribute | void removeAttribute(String key)(Code) | | Remove an application attribute.
Parameters: key - The key of the attribute. |
setAttribute | void setAttribute(String key, Object value)(Code) | | Set an application attribute.
Parameters: key - The key of the attribute. Parameters: value - The value of the attribute. |
userDidLogin | void userDidLogin(User user, Map context)(Code) | | Notify the application about a successful login of a user.
Parameters: user - The current user. Parameters: context - The context for the login operation. |
userIsAccessing | void userIsAccessing(User user)(Code) | | Notify the application about a user using the application
in the current request. This method might be called more than
once during one request, so the application should check this.
This hook can for example be used by the application to
prepare the current object model of the request.
Parameters: user - The current user. |
userWillLogout | void userWillLogout(User user, Map context)(Code) | | Notify the application about a logout of a user.
Parameters: user - The current user. Parameters: context - The context for the logout operation. |
|
|