Custom
Link
Web
Page
Provider
@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
Properties
Link copied to clipboard
customLinksService
helper to
manage the CustomRefyLink
database operations
Link copied to clipboard
INVALID_CUSTOM_LINK_PAGE
the page when the link requested is not valid
Link copied to clipboard
IS_IN_PREVIEW_MODE
the
Thymeleaf tag whether the page requested is in preview mode
Link copied to clipboard
LINK_UNIQUE_ACCESS_WARN_TEXT
the link unique access warn Thymeleaf tag
Link copied to clipboard
RESOURCES_TITLE_TEXT
the resources title text Thymeleaf tag
Link copied to clipboard
VALIDATE_BUTTON_TEXT
the validate button text Thymeleaf tag
Functions
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