org.apache.cocoon.portal.pluto.services
Class PropertyManagerServiceImpl

java.lang.Object
  extended by org.apache.cocoon.portal.pluto.services.PropertyManagerServiceImpl
All Implemented Interfaces:
org.apache.pluto.services.ContainerService, org.apache.pluto.services.property.PropertyManagerService

public class PropertyManagerServiceImpl
extends Object
implements org.apache.pluto.services.property.PropertyManagerService

Dummy property manager service. Since vendor specific information from the portlets is not needed they are discarded.

Version:
CVS $Id: PropertyManagerServiceImpl.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Michal Durdina
See Also:
PortletResponse.addProperty(String, String), PortletResponse.setProperty(String, String)

Constructor Summary
PropertyManagerServiceImpl()
           
 
Method Summary
 Map getRequestProperties(org.apache.pluto.om.window.PortletWindow window, HttpServletRequest request)
          Returns all properties for the given portlet window defined in the portal as String/String array map.
 void setResponseProperties(org.apache.pluto.om.window.PortletWindow window, HttpServletRequest request, HttpServletResponse response, Map properties)
          Sets the given property map defined by the portlet window in its response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyManagerServiceImpl

public PropertyManagerServiceImpl()
Method Detail

setResponseProperties

public void setResponseProperties(org.apache.pluto.om.window.PortletWindow window,
                                  HttpServletRequest request,
                                  HttpServletResponse response,
                                  Map properties)
Sets the given property map defined by the portlet window in its response.
The purpose of this method is to provide the portal framework with a new map of properties set by the portlet. The map can be empty, but not NULL
This method can be called multiple times during one request by the portlet container

Specified by:
setResponseProperties in interface org.apache.pluto.services.property.PropertyManagerService
Parameters:
window - the portlet window of this property
request - the servlet request
response - the servlet response
properties - the String/String array map containing the properties to be set.

getRequestProperties

public Map getRequestProperties(org.apache.pluto.om.window.PortletWindow window,
                                HttpServletRequest request)
Returns all properties for the given portlet window defined in the portal as String/String array map. They will be made available to the portlet through the portlet request.
The purpose of this method is to allow the portal framework to create a map of properties and make it available to the portlet container.
This method can be called multiple times during one request by the portlet container
The return value cannot be null.

Specified by:
getRequestProperties in interface org.apache.pluto.services.property.PropertyManagerService
Parameters:
window - the portlet window of this property
request - the servlet request
Returns:
a Map containing all properties. If there are no properties of that name returns an empty Map.


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.