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="16.0", 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: 25809 $ $Date: 2023-07-04 15:23:22 -0300 (Tue, 04 Jul 2023) $
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.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 java.lang.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, java.util.Map<java.lang.String,java.lang.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 java.lang.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 java.lang.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, java.util.Map<java.lang.String,java.lang.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)
-
-