1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jetspeed;
18
19 import javax.portlet.PortletMode;
20 import javax.portlet.WindowState;
21
22 import org.apache.jetspeed.administration.PortalConfiguration;
23 import org.apache.jetspeed.engine.Engine;
24
25 /***
26 * Portal Context associated with running thread of the engine
27 *
28 * @author <a href="mailto:david@bluesunrise.com">David Sean Taylor</a>
29 * @version $Id: PortalContext.java 185962 2004-03-08 01:03:33Z jford $
30 */
31 public interface PortalContext extends javax.portlet.PortalContext
32 {
33 public Engine getEngine();
34
35 public PortalConfiguration getConfiguration();
36 public void setConfiguration(PortalConfiguration configuration);
37
38 public String getConfigurationProperty(String key);
39 public String getConfigurationProperty(String key, String defaultValue);
40
41 public void setAttribute(String name, Object value);
42 public Object getAttribute(String name);
43
44 /***
45 * Returns the application root for this Jetspeed engine context.
46 *
47 * @return a <code>String</code> containing the application root path for this Jetspeed context.
48 */
49 public String getApplicationRoot();
50
51 /***
52 * Sets the application root path for this Jetspeed engine context.
53 *
54 * @param applicationRoot - the applicationRoot path on the file system.
55 */
56 public void setApplicationRoot(String applicationRoot);
57
58 public boolean isPortletModeAllowed(PortletMode mode);
59 public boolean isWindowStateAllowed(WindowState state);
60 }