|
||||||||||
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.SupportedWindowStateServiceImpl
public class SupportedWindowStateServiceImpl
Field Summary | |
---|---|
protected static java.util.Set |
JSR168_WINDOW_STATES
Window States that are specified in PLT.9 |
protected java.util.Set |
portalSupportedWindowStates
Contains String objects of window states supported by the portal (obtained from PropertyConfigService). |
protected PortletRegistryService |
portletRegistry
PortletRegistry is obtained from the PortletContainer on this service's initialization. |
protected PropertyConfigService |
propertyService
PropertyConfigService is injected by Spring. |
Constructor Summary | |
---|---|
SupportedWindowStateServiceImpl(PropertyConfigService propertyService)
|
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 |
isWindowStateSupported(java.lang.String portletId,
java.lang.String state)
Returns true if the portlet and the portal support the supplied window state. |
boolean |
isWindowStateSupportedByPortal(java.lang.String state)
Returns true if the portal supports the supplied window state. |
boolean |
isWindowStateSupportedByPortlet(java.lang.String portletId,
java.lang.String state)
Returns true if the portlet supports the supplied window state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PropertyConfigService propertyService
protected PortletRegistryService portletRegistry
protected java.util.Set portalSupportedWindowStates
protected static final java.util.Set JSR168_WINDOW_STATES
Constructor Detail |
---|
public SupportedWindowStateServiceImpl(PropertyConfigService propertyService)
Method Detail |
---|
public boolean isWindowStateSupported(java.lang.String portletId, java.lang.String state)
SupportedWindowStateService
isWindowStateSupported
in interface SupportedWindowStateService
portletId
- the id uniquely identifying the portletstate
- the portlet window state
public boolean isWindowStateSupportedByPortal(java.lang.String state)
SupportedWindowStateService
isWindowStateSupportedByPortal
in interface SupportedWindowStateService
state
- the portlet window state
public boolean isWindowStateSupportedByPortlet(java.lang.String portletId, java.lang.String state)
SupportedWindowStateService
isWindowStateSupportedByPortlet
in interface SupportedWindowStateService
portletId
- the id uniquely identifying the portletstate
- the window state
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |