Creating a HardLink
In the above example, you create a URL address containing the user’s name. This generated link can be then included in confirmation message, and sent to the user.
If the user clicks on this link, the framework will navigate them automatically to the previously specified (with the targetPageId parameter) page. If this page contains private content and the user is not logged in or has no permission to view the content, they will be redirected to the login page. If the user enters their login details, they can view the content.
Continuing with the same example, the page that the link points to, has to read has just confirmed their address, as there can be multiple pending registrations at the same time. For this, it needs to read parameters, stored in the HardLink.
Getting the HardLink parameters
All parameters can be read from the HardLink, which are returned to you in a Map. The Map key is the parameter name (String type) and the Map value is the parameter value. The parameter value is in the same type as it was specified (e.g., if you added a Long value parameter to the link, you will receive a Long value parameter in the Map as well).