1 /*****************************************2 * *3 * JBoss Portal: The OpenSource Portal *4 * *5 * Distributable under LGPL license. *6 * See terms of license at gnu.org. *7 * *8 *****************************************/9 package org.jboss.portal.server.user;10 11 import java.util.Map ;12 13 import org.jboss.portal.server.ServerObject;14 import org.jboss.portal.server.plugins.preferences.PreferenceStore;15 16 /**17 * The user context per container.18 *19 * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>20 * @version $Revision: 1.3 $21 */22 public interface UserContext23 {24 /**25 * Return the portlet object context, create a new one if necessary to avoid26 * to return null.27 */28 ServerObjectContext getContext(ServerObject serverObject);29 30 /**31 * Returns the preferences.32 */33 PreferenceStore getPreferenceStore();34 35 /**36 * Return the user information attributes if the user is authenticated otherwise null.37 */38 Map getInformations();39 }40