Package lumis.doui.service
Class DouiHyperLinkResolver
- java.lang.Object
-
- lumis.portal.hyperlink.GenericHyperLinkResolver
-
- lumis.doui.service.DouiHyperLinkResolver
-
- All Implemented Interfaces:
IHyperLinkResolver
- Direct Known Subclasses:
ContentHyperLinkResolver
@StableMinor(version="14.2", 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 thePARAMETER_DESTINATION_SOURCE
parameter.- Since:
- 4.0.10
- Version:
- $Revision: 24985 $ $Date: 2022-05-02 23:04:30 -0300 (Mon, 02 May 2022) $
-
-
Field Summary
Fields Modifier and Type Field Description static String
PARAMETER_DESTINATION_SOURCE
The name of the parameter where the destination source id is stored.
-
Constructor Summary
Constructors Constructor Description DouiHyperLinkResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
resolveDestinationInterfaceId(SessionConfig sessionConfig, HyperLinkConfig hyperLinkConfig, ITransaction transaction)
Resolves the interface that should be the destination for the givenhyperlinkConfig
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, interfaceInstanceCanBeUsedAsLinkTarget, keepPagePreviousState, resolveDestinationPageId, resolveHyperLink
-
-
-
-
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
-
-
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 givenhyperlinkConfig
- Overrides:
resolveDestinationInterfaceId
in classGenericHyperLinkResolver
- 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 classGenericHyperLinkResolver
- 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)
-
-