CustomLinkWebPageProvider
@Controller
@RequestMapping(value = "BASE_EQUINOX_ENDPOINT + CUSTOM_LINKS_PATH")
The CustomLinkWebPageProvider
class is useful to provide the dedicated web page of a CustomRefyLink and manage the invalid accesses to the link and protect with a validation form the resources shared by that link
Author
N7ghtm4r3 - Tecknobit
See also
EquinoxController
Properties
Link copied to clipboard
customLinksHelper
helper to manage the CustomRefyLink database operationsLink copied to clipboard
INVALID_CUSTOM_LINK_PAGE
the page when the link requested is not validLink copied to clipboard
IS_IN_PREVIEW_MODE
the Thymeleaf tag whether the page requested is in preview modeLink copied to clipboard
LINK_UNIQUE_ACCESS_WARN_TEXT
the link unique access warn Thymeleaf tagLink copied to clipboard
RESOURCES_TITLE_TEXT
the resources title text Thymeleaf tagLink copied to clipboard
VALIDATE_BUTTON_TEXT
the validate button text Thymeleaf tagFunctions
Link copied to clipboard
private open fun customLinkPage(customLink: CustomRefyLink, model: Model, isPreviewMode: Boolean): String
Method to format and return the CUSTOM_LINK_KEY related page
Link copied to clipboard
Method to format and return the INVALID_CUSTOM_LINK_PAGE due the link expiration or the not existing of that link
Link copied to clipboard
@GetMapping(path = "/{" + LINK_IDENTIFIER_KEY + "}")
Method to get a list of custom links
Link copied to clipboard
Method to format and return the INVALID_CUSTOM_LINK_PAGE due the wrong attempt to access in preview mode to the web page