|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jetspeed.JetspeedPortalContext
public class JetspeedPortalContext
Implementation of Portal Context associated with running thread of the engine
Field Summary | |
---|---|
private String |
applicationRoot
The base from which the Jetspped application will operate. |
private HashMap |
attributes
Runtime attributes. |
private org.apache.jetspeed.administration.PortalConfiguration |
configuration
Configuration state |
private org.apache.jetspeed.engine.Engine |
engine
The engine associated with this context. |
private static String |
PORTAL_NAME_ATTR
|
private static String |
PORTAL_VERSION_ATTR
|
private String |
portalInfo
|
private static String |
SUPPORTED_PORTLETMODE_ATTR
|
private static String |
SUPPORTED_WINDOWSTATE_ATTR
|
Constructor Summary | |
---|---|
JetspeedPortalContext(org.apache.jetspeed.engine.Engine engine,
org.apache.jetspeed.administration.PortalConfiguration configuration,
String applicationRoot)
|
Method Summary | |
---|---|
String |
getApplicationRoot()
Returns the application root for this Jetspeed engine context. |
Object |
getAttribute(String name)
Returns the engine attribute with the given name, or null if there is no attribute by that name. |
org.apache.jetspeed.administration.PortalConfiguration |
getConfiguration()
Returns the configuration properties for this Jetspeed engine context. |
String |
getConfigurationProperty(String key)
|
String |
getConfigurationProperty(String key,
String defaultValue)
|
org.apache.jetspeed.engine.Engine |
getEngine()
Returns the engine associated with this context. |
String |
getPortalInfo()
|
String |
getProperty(String name)
|
Enumeration |
getPropertyNames()
|
private Collection |
getSupportedModes()
|
Enumeration |
getSupportedPortletModes()
|
private Collection |
getSupportedStates()
|
Enumeration |
getSupportedWindowStates()
|
boolean |
isPortletModeAllowed(javax.portlet.PortletMode mode)
|
boolean |
isWindowStateAllowed(javax.portlet.WindowState state)
|
void |
setApplicationRoot(String applicationRoot)
Sets the application root path for this Jetspeed engine context. |
void |
setAttribute(String name,
Object value)
Binds an object to a given attribute name in this servlet context. |
void |
setConfiguration(org.apache.jetspeed.administration.PortalConfiguration configuration)
Set the configuration properties for this Jetspeed engine context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final String SUPPORTED_WINDOWSTATE_ATTR
private static final String SUPPORTED_PORTLETMODE_ATTR
private static final String PORTAL_VERSION_ATTR
private static final String PORTAL_NAME_ATTR
private org.apache.jetspeed.engine.Engine engine
private HashMap attributes
private org.apache.jetspeed.administration.PortalConfiguration configuration
private String applicationRoot
private final String portalInfo
Constructor Detail |
---|
public JetspeedPortalContext(org.apache.jetspeed.engine.Engine engine, org.apache.jetspeed.administration.PortalConfiguration configuration, String applicationRoot)
Method Detail |
---|
public org.apache.jetspeed.administration.PortalConfiguration getConfiguration()
Configuration
containing the configuration properties for this Jetspeed context.public String getConfigurationProperty(String key)
public String getConfigurationProperty(String key, String defaultValue)
public void setConfiguration(org.apache.jetspeed.administration.PortalConfiguration configuration)
configuration
- - the configuration propertiespublic String getApplicationRoot()
String
containing the application root path for this Jetspeed context.public void setApplicationRoot(String applicationRoot)
applicationRoot
- - the applicationRoot path on the file system.public org.apache.jetspeed.engine.Engine getEngine()
Engine
associated with this contextpublic Object getAttribute(String name)
Object
containing the value of the attribute, or null if no attribute exists matching the given namepublic void setAttribute(String name, Object value)
name
- - a String
specifying the name of the attributevalue
- - an Object
representing the attribute to be boundpublic String getProperty(String name)
getProperty
in interface javax.portlet.PortalContext
public Enumeration getPropertyNames()
getPropertyNames
in interface javax.portlet.PortalContext
private Collection getSupportedModes()
public Enumeration getSupportedPortletModes()
getSupportedPortletModes
in interface javax.portlet.PortalContext
public boolean isPortletModeAllowed(javax.portlet.PortletMode mode)
private Collection getSupportedStates()
public Enumeration getSupportedWindowStates()
getSupportedWindowStates
in interface javax.portlet.PortalContext
public boolean isWindowStateAllowed(javax.portlet.WindowState state)
public String getPortalInfo()
getPortalInfo
in interface javax.portlet.PortalContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |