01: /*
02: * Copyright 2002 Sun Microsystems, Inc. All
03: * rights reserved. Use of this product is subject
04: * to license terms. Federal Acquisitions:
05: * Commercial Software -- Government Users
06: * Subject to Standard License Terms and
07: * Conditions.
08: *
09: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
10: * are trademarks or registered trademarks of Sun Microsystems,
11: * Inc. in the United States and other countries.
12: */
13:
14: package com.sun.portal.container.portlet;
15:
16: import javax.portlet.PortletPreferences;
17:
18: import com.sun.portal.container.ContainerRequest;
19:
20: /**
21: * The preference manager is responsible for managing and creating the
22: * preference objects for portlets.
23: * <p>
24: * <code>PreferenceManager</code> is an interface that is used by the
25: * portlet container.
26: **/
27:
28: public interface PreferenceManager {
29:
30: //key for preference manager object in servlet context
31: public static final String PREFERENCE_MANAGER = "preference_manager";
32:
33: /**
34: * Returns a <code>PortletPreferences</code> object. This is used by
35: * the portlet container to generate a <code>PortletPreferences</object>.
36: *
37: * @param request The current request
38: **/
39: public PortletPreferences getPortletPreferences(
40: ContainerRequest request);
41:
42: }
|