lumis.doui.service
Class DouiHyperLinkResolver

Package class diagram package DouiHyperLinkResolver
java.lang.Object
  extended by lumis.portal.hyperlink.GenericHyperLinkResolver
      extended by lumis.doui.service.DouiHyperLinkResolver
All Implemented Interfaces:
IHyperLinkResolver
Direct Known Subclasses:
ContentHyperLinkResolver

@StableMinor(version="5.5",
             sinceVersion="4.0")
public class DouiHyperLinkResolver
extends GenericHyperLinkResolver

Customizes the generic hyperlink resolver to also verify the destination source during interface resolution. The destination source id is taken from the PARAMETER_DESTINATION_SOURCE parameter.

Since:
4.0.10

Field Summary
static String PARAMETER_DESTINATION_SOURCE
          The name of the parameter where the destination source id is stored.
 
Constructor Summary
DouiHyperLinkResolver()
           
 
Method Summary
protected  String resolveDestinationInterfaceId(SessionConfig sessionConfig, HyperLinkConfig hyperLinkConfig, ITransaction transaction)
          Resolves the interface that should be the destination for the given hyperlinkConfig
protected  void setUrlParameters(SessionConfig sessionConfig, IServiceInterfaceUrl url, Map<String,String[]> parameters, ITransaction transaction)
          Replaces the parameters in the url with the parameters in the given map.
 
Methods inherited from class lumis.portal.hyperlink.GenericHyperLinkResolver
createUrl, resolveDestinationPageId, resolveHyperLink
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAMETER_DESTINATION_SOURCE

public static final String PARAMETER_DESTINATION_SOURCE
The name of the parameter where the destination source id is stored.

Since:
4.0.10
See Also:
Constant Field Values
Constructor Detail

DouiHyperLinkResolver

public DouiHyperLinkResolver()
Method Detail

resolveDestinationInterfaceId

protected String resolveDestinationInterfaceId(SessionConfig sessionConfig,
                                               HyperLinkConfig hyperLinkConfig,
                                               ITransaction transaction)
                                        throws PortalException
Description copied from class: GenericHyperLinkResolver
Resolves the interface that should be the destination for the given hyperlinkConfig

Overrides:
resolveDestinationInterfaceId in class GenericHyperLinkResolver
Parameters:
sessionConfig - the user session information.
hyperLinkConfig - the hyperLink information.
transaction - theh transaction for persistence access.
Returns:
the resolved destination interface id, or null if it could not be resolved.
Throws:
PortalException

setUrlParameters

protected void setUrlParameters(SessionConfig sessionConfig,
                                IServiceInterfaceUrl url,
                                Map<String,String[]> parameters,
                                ITransaction transaction)
                         throws PortalException
Description copied from class: GenericHyperLinkResolver
Replaces the parameters in the url with the parameters in the given map. To customize the parameters set in the url, this method may be overrided.

Overrides:
setUrlParameters in class GenericHyperLinkResolver
Parameters:
sessionConfig - the user session information.
url - the url to set parameters.
parameters - the parameters to set in the url.
transaction - the transaction for persistence access.
Throws:
PortalException
See Also:
PortalRequestParameters.isReservedParameter(String)


Lumisportal  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.