org.jasig.portal.portlet.delegation
Class PortletDelegationLocatorImpl

java.lang.Object
  extended by org.jasig.portal.portlet.delegation.PortletDelegationLocatorImpl
All Implemented Interfaces:
PortletDelegationLocator, IPortletDelegationManager

public class PortletDelegationLocatorImpl
extends Object
implements PortletDelegationLocator, IPortletDelegationManager

Version:
$Revision: 21632 $
Author:
Eric Dalquist

Field Summary
 
Fields inherited from interface org.jasig.portal.api.portlet.PortletDelegationLocator
PORTLET_DELECATION_LOCATOR_ATTR
 
Fields inherited from interface org.jasig.portal.portlet.delegation.IPortletDelegationManager
DELEGATE_ACTION_REDIRECT_TOKEN
 
Constructor Summary
PortletDelegationLocatorImpl()
           
 
Method Summary
 PortletDelegationDispatcher createRequestDispatcher(PortletRequest portletRequest, IPortletDefinitionId portletDefinitionId)
          Creates a new portlet delegation dispatcher and corresponding portlet window
 PortletDelegationDispatcher createRequestDispatcher(PortletRequest portletRequest, String fName)
          Creates a new portlet delegation dispatcher and corresponding portlet window
 PortletUrl getDelegatePortletActionRedirectUrl(HttpServletRequest request)
           
 PortletUrl getDelegatePortletActionRedirectUrl(PortletRequest portletRequest)
           
 PortletUrl getParentPortletUrl(HttpServletRequest request, IPortletWindowId parentPortletWindowId)
          Get the URL data to use for the delegation parent window
 PortletDelegationDispatcher getRequestDispatcher(PortletRequest portletRequest, IPortletWindowId portletWindowId)
          Get an existing delegation dispatcher for an existing portlet window.
 void setChannelRegistryStore(IChannelRegistryStore channelRegistryStore)
           
 void setDelegatePortletActionRedirectUrl(HttpServletRequest request, PortletUrl portletUrl)
          Pass the url generated after a delegates processAction
 void setParentPortletUrl(HttpServletRequest request, PortletUrl parentPortletUrl)
          Set the URL to use as parent data when generating delegate portlet URLs
 void setPersonManager(IPersonManager personManager)
           
 void setPortalRequestUtils(IPortalRequestUtils portalRequestUtils)
           
 void setPortletDefinitionRegistry(IPortletDefinitionRegistry portletDefinitionRegistry)
           
 void setPortletEntityRegistry(IPortletEntityRegistry portletEntityRegistry)
           
 void setPortletRenderer(IPortletRenderer portletRenderer)
           
 void setPortletRequestParameterManager(IPortletRequestParameterManager portletRequestParameterManager)
           
 void setPortletWindowRegistry(IPortletWindowRegistry portletWindowRegistry)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletDelegationLocatorImpl

public PortletDelegationLocatorImpl()
Method Detail

setChannelRegistryStore

public void setChannelRegistryStore(IChannelRegistryStore channelRegistryStore)

setPortalRequestUtils

public void setPortalRequestUtils(IPortalRequestUtils portalRequestUtils)

setPersonManager

public void setPersonManager(IPersonManager personManager)

setPortletEntityRegistry

public void setPortletEntityRegistry(IPortletEntityRegistry portletEntityRegistry)

setPortletWindowRegistry

public void setPortletWindowRegistry(IPortletWindowRegistry portletWindowRegistry)

setPortletRenderer

public void setPortletRenderer(IPortletRenderer portletRenderer)

setPortletRequestParameterManager

public void setPortletRequestParameterManager(IPortletRequestParameterManager portletRequestParameterManager)

setPortletDefinitionRegistry

public void setPortletDefinitionRegistry(IPortletDefinitionRegistry portletDefinitionRegistry)

createRequestDispatcher

public PortletDelegationDispatcher createRequestDispatcher(PortletRequest portletRequest,
                                                           String fName)
Description copied from interface: PortletDelegationLocator
Creates a new portlet delegation dispatcher and corresponding portlet window

Specified by:
createRequestDispatcher in interface PortletDelegationLocator
Parameters:
portletRequest - The current request
fName - The functional name of the portlet to create a dispatcher for
Returns:
Null if no portlet exists for the specified fname

createRequestDispatcher

public PortletDelegationDispatcher createRequestDispatcher(PortletRequest portletRequest,
                                                           IPortletDefinitionId portletDefinitionId)
Description copied from interface: PortletDelegationLocator
Creates a new portlet delegation dispatcher and corresponding portlet window

Specified by:
createRequestDispatcher in interface PortletDelegationLocator
Parameters:
portletRequest - The current request
portletDefinitionId - The portlet definition id of the portlet to create a dispatcher for
Returns:
The dispatcher

getRequestDispatcher

public PortletDelegationDispatcher getRequestDispatcher(PortletRequest portletRequest,
                                                        IPortletWindowId portletWindowId)
Description copied from interface: PortletDelegationLocator
Get an existing delegation dispatcher for an existing portlet window.

Specified by:
getRequestDispatcher in interface PortletDelegationLocator
Parameters:
portletRequest - The current request
portletWindowId - The IPortletWindowId from the previously created dispatcher
Returns:
The previously created dispatcher, null if no dispatcher exists for the ID

setParentPortletUrl

public void setParentPortletUrl(HttpServletRequest request,
                                PortletUrl parentPortletUrl)
Description copied from interface: IPortletDelegationManager
Set the URL to use as parent data when generating delegate portlet URLs

Specified by:
setParentPortletUrl in interface IPortletDelegationManager
parentPortletUrl - The parent URL data

getParentPortletUrl

public PortletUrl getParentPortletUrl(HttpServletRequest request,
                                      IPortletWindowId parentPortletWindowId)
Description copied from interface: IPortletDelegationManager
Get the URL data to use for the delegation parent window

Specified by:
getParentPortletUrl in interface IPortletDelegationManager
parentPortletWindowId - The ID of the portlet window to get the PortletUrl for
Returns:
The PortletUrl for the parent window, null if no base URL data is provided

setDelegatePortletActionRedirectUrl

public void setDelegatePortletActionRedirectUrl(HttpServletRequest request,
                                                PortletUrl portletUrl)
Description copied from interface: IPortletDelegationManager
Pass the url generated after a delegates processAction

Specified by:
setDelegatePortletActionRedirectUrl in interface IPortletDelegationManager
Parameters:
request - The portlet adaptor request for the delegate
portletUrl - The URL to pass to the delegation dispatcher

getDelegatePortletActionRedirectUrl

public PortletUrl getDelegatePortletActionRedirectUrl(HttpServletRequest request)
Specified by:
getDelegatePortletActionRedirectUrl in interface IPortletDelegationManager
Parameters:
request - The portlet adapter request for the delgate parent
Returns:
The URL generated after the delegates processAction completes

getDelegatePortletActionRedirectUrl

public PortletUrl getDelegatePortletActionRedirectUrl(PortletRequest portletRequest)
Specified by:
getDelegatePortletActionRedirectUrl in interface IPortletDelegationManager
Parameters:
portletRequest - The portlet adapter request for the delgate parent
Returns:
The URL generated after the delegates processAction completes


Copyright © 2010 Jasig. All Rights Reserved.