org.apache.pluto.driver.services.container
Class PortalContextImpl

java.lang.Object
  extended by org.apache.pluto.driver.services.container.PortalContextImpl
All Implemented Interfaces:
PortalContext

public class PortalContextImpl
extends java.lang.Object
implements PortalContext

PortalContext implementation for the Pluto Portal Driver.


Field Summary
 
Fields inherited from interface javax.portlet.PortalContext
MARKUP_HEAD_ELEMENT_SUPPORT
 
Constructor Summary
PortalContextImpl(DriverConfiguration config)
          Default Constructor.
 
Method Summary
 DriverConfiguration getDriverConfiguration()
           
 java.lang.String getPortalInfo()
          Get the portal info for this portal.
 java.lang.String getProperty(java.lang.String name)
          Get a dynamic portal property.
 java.util.Enumeration getPropertyNames()
          Get an enumeration containing all names of the portal properties.
 java.util.Enumeration getSupportedPortletModes()
          Get an enumeration of all PortletModes supported by this portal.
 java.util.Enumeration getSupportedWindowStates()
          Get an enumeration of all WindowStates supported by this portal.
 void reset()
          reset all values to default portlet modes and window states; delete all properties and set the given portlet information as portlet info string.
 void setProperty(java.lang.String name, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortalContextImpl

public PortalContextImpl(DriverConfiguration config)
Default Constructor.

Parameters:
config -
Method Detail

getProperty

public java.lang.String getProperty(java.lang.String name)
Get a dynamic portal property.

Specified by:
getProperty in interface PortalContext
Parameters:
name -
Returns:
the property value associated with the given key.
Throws:
java.lang.IllegalArgumentException - if the specified name is null.

getPropertyNames

public java.util.Enumeration getPropertyNames()
Get an enumeration containing all names of the portal properties.

Specified by:
getPropertyNames in interface PortalContext
Returns:
an enumeration of all keys to which properties are bound.

getSupportedPortletModes

public java.util.Enumeration getSupportedPortletModes()
Get an enumeration of all PortletModes supported by this portal.

Specified by:
getSupportedPortletModes in interface PortalContext
Returns:
enumeration of all supported portlet modes.

getSupportedWindowStates

public java.util.Enumeration getSupportedWindowStates()
Get an enumeration of all WindowStates supported by this portal.

Specified by:
getSupportedWindowStates in interface PortalContext
Returns:
an enumeration of all supported window states.

getPortalInfo

public java.lang.String getPortalInfo()
Get the portal info for this portal.

Specified by:
getPortalInfo in interface PortalContext
Returns:
the portal information for this context.

setProperty

public void setProperty(java.lang.String name,
                        java.lang.String value)

reset

public void reset()
reset all values to default portlet modes and window states; delete all properties and set the given portlet information as portlet info string.


getDriverConfiguration

public DriverConfiguration getDriverConfiguration()


Copyright © 2003-2010 Apache Software Foundation. All Rights Reserved.