lumis.portal.presentation.perspective
Class DefaultModeURLProvider

Package class diagram package DefaultModeURLProvider
java.lang.Object
  extended by lumis.portal.presentation.perspective.DefaultModeURLProvider
All Implemented Interfaces:
Serializable, IModeURLProvider

public class DefaultModeURLProvider
extends Object
implements IModeURLProvider

Default url provider for most IPortalModeSPI. This class informs that portal mode does not change the current url of the portal.

Since:
7.0.0
See Also:
Serialized Form

Constructor Summary
DefaultModeURLProvider(int portalModeId)
           
 
Method Summary
 String generateURL(PageWebResource webresource, HttpServletRequest httpServletRequest)
          Generates and returns the url to be called when a portal mode is selected.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultModeURLProvider

public DefaultModeURLProvider(int portalModeId)
Method Detail

generateURL

public String generateURL(PageWebResource webresource,
                          HttpServletRequest httpServletRequest)
Description copied from interface: IModeURLProvider
Generates and returns the url to be called when a portal mode is selected. If null is returned, the portal will assume that it should remain on the same page.

Specified by:
generateURL in interface IModeURLProvider
Parameters:
webresource - the webresource of the current request.
httpServletRequest - servlet request for the generation of the url.
Returns:
the url to be called when a portal mode is selected. If null is returned, it is assumed that the mode is disabled.


Lumisportal  7.0.0.121130 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.