org.apache.jetspeed.engine.core
Class PortalContextProviderImpl

java.lang.Object
  extended by org.apache.jetspeed.engine.core.PortalContextProviderImpl
All Implemented Interfaces:
org.apache.pluto.services.information.PortalContextProvider

public class PortalContextProviderImpl
extends Object
implements org.apache.pluto.services.information.PortalContextProvider

Provide information about the calling portal.

Version:
$Id: PortalContextProviderImpl.java 553375 2007-07-05 05:37:00Z taylor $
Author:
David Sean Taylor

Field Summary
private  String info
          Portal information
private  Vector modes
          supported portlet modes by this portal
private  org.apache.jetspeed.PortalContext portalContext
           
private  String portalName
           
private  String portalVersion
           
private  Vector states
          supported window states by this portal
 
Constructor Summary
PortalContextProviderImpl(org.apache.jetspeed.PortalContext portalContext)
           
 
Method Summary
private  Vector getDefaultModes()
           
private  Vector getDefaultStates()
           
 org.apache.jetspeed.PortalContext getPortalContext()
           
 String getPortalInfo()
           getPortalInfo
 String getProperty(String name)
           getProperty
 Collection getPropertyNames()
           getPropertyNames
 Collection getSupportedPortletModes()
           getSupportedPortletModes
 Collection getSupportedWindowStates()
           getSupportedWindowStates
 void reset(String portalInfo)
          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(String name, String value)
           
 void setSupportedPortletModes(Enumeration portletModes)
           
 void setSupportedWindowStates(Enumeration windowStates)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

portalContext

private final org.apache.jetspeed.PortalContext portalContext

info

private String info
Portal information


portalName

private final String portalName

portalVersion

private final String portalVersion

modes

private Vector modes
supported portlet modes by this portal


states

private Vector states
supported window states by this portal

Constructor Detail

PortalContextProviderImpl

public PortalContextProviderImpl(org.apache.jetspeed.PortalContext portalContext)
Method Detail

getPortalContext

public org.apache.jetspeed.PortalContext getPortalContext()

getPortalInfo

public String getPortalInfo()

getPortalInfo

Specified by:
getPortalInfo in interface org.apache.pluto.services.information.PortalContextProvider
Returns:
See Also:
PortalContextProvider.getPortalInfo()

getProperty

public String getProperty(String name)

getProperty

Specified by:
getProperty in interface org.apache.pluto.services.information.PortalContextProvider
Parameters:
name -
Returns:
See Also:
PortalContextProvider.getProperty(java.lang.String)

getPropertyNames

public Collection getPropertyNames()

getPropertyNames

Specified by:
getPropertyNames in interface org.apache.pluto.services.information.PortalContextProvider
Returns:
See Also:
PortalContextProvider.getPropertyNames()

getSupportedPortletModes

public Collection getSupportedPortletModes()

getSupportedPortletModes

Specified by:
getSupportedPortletModes in interface org.apache.pluto.services.information.PortalContextProvider
Returns:
See Also:
PortalContextProvider.getSupportedPortletModes()

getSupportedWindowStates

public Collection getSupportedWindowStates()

getSupportedWindowStates

Specified by:
getSupportedWindowStates in interface org.apache.pluto.services.information.PortalContextProvider
Returns:
See Also:
PortalContextProvider.getSupportedWindowStates()

getDefaultModes

private Vector getDefaultModes()

getDefaultStates

private Vector getDefaultStates()

setProperty

public void setProperty(String name,
                        String value)

setSupportedPortletModes

public void setSupportedPortletModes(Enumeration portletModes)

setSupportedWindowStates

public void setSupportedWindowStates(Enumeration windowStates)

reset

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

Parameters:
-
portalInfo - portal information string that will be returned by the getPortalInfo call.


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.