|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pluto.driver.services.impl.resource.SupportedModesServiceImpl
public class SupportedModesServiceImpl
Allows clients to determine if a particular PortletMode is supported
by the portal, a particular portlet, or both.
This implementation depends on PropertyConfigService
.
The service implementations are injected by Spring.
Constructor Summary | |
---|---|
SupportedModesServiceImpl(PropertyConfigService propertyService)
Constructs a SupportedModesService with its dependencies. |
Method Summary | |
---|---|
void |
destroy()
Destroy the service, notifying it of shutdown. |
void |
init(javax.servlet.ServletContext ctx)
Initialize the service for use by the driver. |
boolean |
isPortletManagedMode(java.lang.String portletId,
java.lang.String mode)
For PTL.8.4 implementation of portlet-managed modes, defined in portlet.xml where portlet child element custom-portlet-mode/portal-managed value is false. |
boolean |
isPortletModeSupported(java.lang.String portletId,
java.lang.String mode)
Returns true if the portlet and the portal support the supplied mode. |
boolean |
isPortletModeSupportedByPortal(java.lang.String mode)
Returns true if the portal supports the supplied mode. |
boolean |
isPortletModeSupportedByPortlet(java.lang.String portletId,
java.lang.String mode)
Returns true if the portlet supports the supplied mode. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SupportedModesServiceImpl(PropertyConfigService propertyService)
propertyService
- the PropertyConfigServiceMethod Detail |
---|
public boolean isPortletModeSupported(java.lang.String portletId, java.lang.String mode)
SupportedModesService
isPortletModeSupported
in interface SupportedModesService
portletId
- the id uniquely identifiying the portletmode
- the portlet mode
public boolean isPortletModeSupportedByPortal(java.lang.String mode)
SupportedModesService
isPortletModeSupportedByPortal
in interface SupportedModesService
mode
- the portlet mode
public boolean isPortletModeSupportedByPortlet(java.lang.String portletId, java.lang.String mode)
SupportedModesService
isPortletModeSupportedByPortlet
in interface SupportedModesService
portletId
- the id uniquely identifying the portletmode
- the portlet mode
public void destroy() throws DriverConfigurationException
DriverConfigurationService
destroy
in interface DriverConfigurationService
DriverConfigurationException
public void init(javax.servlet.ServletContext ctx) throws DriverConfigurationException
DriverConfigurationService
init
in interface DriverConfigurationService
ctx
- the Portal's servlet context in which the
service will be executing.
DriverConfigurationException
public boolean isPortletManagedMode(java.lang.String portletId, java.lang.String mode)
SupportedModesService
isPortletManagedMode
in interface SupportedModesService
portletId
- the ID of the portletmode
- the portlet mode as defined in the custom-portlet-mode/portlet-mode
and supports/portlet-mode elements.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |