org.apache.cocoon.auth
Interface ApplicationStore


public interface ApplicationStore

This component loads/saves application data for a user. If an application has an application store, the loadApplicationData(User, Application) is executed after the user has logged into the application. The loaded data object is stored in the session, see ApplicationUtil. Calling the saveApplicationData(User, Application, Object) is the task of the application.

Version:
$Id: ApplicationStore.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Method Summary
 Object loadApplicationData(User user, Application app)
          Load data for the given user and application.
 void saveApplicationData(User user, Application app, Object data)
          Save the data for the given user and application.
 

Method Detail

loadApplicationData

Object loadApplicationData(User user,
                           Application app)
Load data for the given user and application. For session replication to work this data should be Serializable.

Parameters:
user - The current user.
app - The current application.
Returns:
The loaded data or null.

saveApplicationData

void saveApplicationData(User user,
                         Application app,
                         Object data)
Save the data for the given user and application.

Parameters:
user - The current user.
app - The current application.
data - The user data.


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.