01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
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: public Engine getEngine();
33:
34: public PortalConfiguration getConfiguration();
35:
36: public void setConfiguration(PortalConfiguration configuration);
37:
38: public String getConfigurationProperty(String key);
39:
40: public String getConfigurationProperty(String key,
41: String defaultValue);
42:
43: public void setAttribute(String name, Object value);
44:
45: public Object getAttribute(String name);
46:
47: /**
48: * Returns the application root for this Jetspeed engine context.
49: *
50: * @return a <code>String</code> containing the application root path for this Jetspeed context.
51: */
52: public String getApplicationRoot();
53:
54: /**
55: * Sets the application root path for this Jetspeed engine context.
56: *
57: * @param applicationRoot - the applicationRoot path on the file system.
58: */
59: public void setApplicationRoot(String applicationRoot);
60:
61: public boolean isPortletModeAllowed(PortletMode mode);
62:
63: public boolean isWindowStateAllowed(WindowState state);
64: }
|