org.apache.pluto.driver.config.impl
Class DriverConfigurationImpl

java.lang.Object
  extended by org.apache.pluto.driver.config.impl.DriverConfigurationImpl
All Implemented Interfaces:
DriverConfiguration

public class DriverConfigurationImpl
extends Object
implements DriverConfiguration

Encapsulation of the Pluto Driver ResourceConfig.

Since:
Sep 23, 2004
Version:
1.0

Constructor Summary
DriverConfigurationImpl(PortalURLParser portalUrlParser, PropertyConfigService propertyService, RenderConfigService renderService, SupportedModesService supportedModesService, SupportedWindowStateService supportedWindowStateService, PortalCallbackService portalCallback)
           
 
Method Summary
 void destroy()
          Shutdown method used to remove the driver configuration from service;
 String getContainerName()
          Standard Getter.
 PageConfig getPageConfig(String pageId)
           
 Collection getPages()
          Standard Getter.
 PortalCallbackService getPortalCallbackService()
           
 String getPortalName()
          Standard Getter.
 PortalURLParser getPortalUrlParser()
           
 String getPortalVersion()
          Standard Getter.
 PortletPreferencesService getPortletPreferencesService()
           
 RenderConfigService getRenderConfigService()
           
 Collection getSupportedPortletModes()
          Standard Getter.
 Collection getSupportedWindowStates()
          Standard Getter.
 void init(javax.servlet.ServletContext context)
          Initialization method used to place the driver configuration into service.
 boolean isPortletModeSupported(String portletId, String mode)
           
 boolean isPortletModeSupportedByPortal(String mode)
           
 boolean isPortletModeSupportedByPortlet(String portletId, String mode)
           
 boolean isWindowStateSupported(String portletId, String windowState)
           
 boolean isWindowStateSupportedByPortal(String windowState)
           
 boolean isWindowStateSupportedByPortlet(String portletId, String windowState)
           
 void setPortalCallbackService(PortalCallbackService portalCallbackService)
           
 void setPortalUrlParser(PortalURLParser portalUrlParser)
           
 void setPortletPreferencesService(PortletPreferencesService portletPreferencesService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DriverConfigurationImpl

public DriverConfigurationImpl(PortalURLParser portalUrlParser,
                               PropertyConfigService propertyService,
                               RenderConfigService renderService,
                               SupportedModesService supportedModesService,
                               SupportedWindowStateService supportedWindowStateService,
                               PortalCallbackService portalCallback)
Method Detail

getPortalName

public String getPortalName()
Standard Getter.

Specified by:
getPortalName in interface DriverConfiguration
Returns:
the name of the portal.

getPortalVersion

public String getPortalVersion()
Standard Getter.

Specified by:
getPortalVersion in interface DriverConfiguration
Returns:
the portal version.

getContainerName

public String getContainerName()
Standard Getter.

Specified by:
getContainerName in interface DriverConfiguration
Returns:
the name of the container.

getSupportedPortletModes

public Collection getSupportedPortletModes()
Standard Getter.

Specified by:
getSupportedPortletModes in interface DriverConfiguration
Returns:
the names of the supported portlet modes.

getSupportedWindowStates

public Collection getSupportedWindowStates()
Standard Getter.

Specified by:
getSupportedWindowStates in interface DriverConfiguration
Returns:
the names of the supported window states.

getPages

public Collection getPages()
Standard Getter.

Specified by:
getPages in interface DriverConfiguration
Returns:
the render configuration.

getPageConfig

public PageConfig getPageConfig(String pageId)
Specified by:
getPageConfig in interface DriverConfiguration

isPortletModeSupportedByPortal

public boolean isPortletModeSupportedByPortal(String mode)
Specified by:
isPortletModeSupportedByPortal in interface DriverConfiguration

isPortletModeSupportedByPortlet

public boolean isPortletModeSupportedByPortlet(String portletId,
                                               String mode)
Specified by:
isPortletModeSupportedByPortlet in interface DriverConfiguration

isPortletModeSupported

public boolean isPortletModeSupported(String portletId,
                                      String mode)
Specified by:
isPortletModeSupported in interface DriverConfiguration

init

public void init(javax.servlet.ServletContext context)
Description copied from interface: DriverConfiguration
Initialization method used to place the driver configuration into service.

Specified by:
init in interface DriverConfiguration

destroy

public void destroy()
Description copied from interface: DriverConfiguration
Shutdown method used to remove the driver configuration from service;

Specified by:
destroy in interface DriverConfiguration

getPortalUrlParser

public PortalURLParser getPortalUrlParser()
Specified by:
getPortalUrlParser in interface DriverConfiguration

setPortalUrlParser

public void setPortalUrlParser(PortalURLParser portalUrlParser)

getPortalCallbackService

public PortalCallbackService getPortalCallbackService()
Specified by:
getPortalCallbackService in interface DriverConfiguration

setPortalCallbackService

public void setPortalCallbackService(PortalCallbackService portalCallbackService)

getPortletPreferencesService

public PortletPreferencesService getPortletPreferencesService()
Specified by:
getPortletPreferencesService in interface DriverConfiguration

setPortletPreferencesService

public void setPortletPreferencesService(PortletPreferencesService portletPreferencesService)

isWindowStateSupported

public boolean isWindowStateSupported(String portletId,
                                      String windowState)
Specified by:
isWindowStateSupported in interface DriverConfiguration

isWindowStateSupportedByPortal

public boolean isWindowStateSupportedByPortal(String windowState)
Specified by:
isWindowStateSupportedByPortal in interface DriverConfiguration

isWindowStateSupportedByPortlet

public boolean isWindowStateSupportedByPortlet(String portletId,
                                               String windowState)
Specified by:
isWindowStateSupportedByPortlet in interface DriverConfiguration

getRenderConfigService

public RenderConfigService getRenderConfigService()
Specified by:
getRenderConfigService in interface DriverConfiguration


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