|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Application
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).
Method Summary | |
---|---|
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 |
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. |
Method Detail |
---|
SecurityHandler getSecurityHandler()
ApplicationStore getApplicationStore()
void userDidLogin(User user, Map context)
user
- The current user.context
- The context for the login operation.void userWillLogout(User user, Map context)
user
- The current user.context
- The context for the logout operation.void userIsAccessing(User user)
user
- The current user.void setAttribute(String key, Object value)
key
- The key of the attribute.value
- The value of the attribute.void removeAttribute(String key)
key
- The key of the attribute.Object getAttribute(String key)
key
- The key of the attribute.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |