JoiningQRCodeWebPageProvider

@Controller
@RequestMapping(value = "BASE_EQUINOX_ENDPOINT + JOINING_QRCODES_KEY")
open class JoiningQRCodeWebPageProvider

The JoiningQRCodeWebPageProvider class is useful to provide the dedicated web page of a JoiningQRCode and manage the invalid accesses

Author

N7ghtm4r3 - Tecknobit

See also

EquinoxController

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
private val API_IPIFY_ORG_ENDPOINT: String = "https://api.ipify.org"
API_IPIFY_ORG_ENDPOINT the endpoint to get the current ip address where the server is running
Link copied to clipboard
@Autowired
private open var codesHelper: ProjectsHelper
codesHelper helper to manage the JoiningQRCode database operations
Link copied to clipboard
private val INVALID_QR_CODE_PAGE: String = "invalid_code"
INVALID_QR_CODE_PAGE the page when the QRCode requested is not valid
Link copied to clipboard
private val MAIN_TEXT: String = "main_text"
MAIN_TEXT the main text Thymeleaf tag
Link copied to clipboard
protected val mantis: Mantis
mantis the translations manager
Link copied to clipboard
private val QR_CODE_BACKGROUND: String = "#FFFBFF"
QR_CODE_BACKGROUND the background color to apply to the QR code
Link copied to clipboard
private val SUB_TEXT: String = "sub_text"
SUB_TEXT the sub text Thymeleaf tag
Link copied to clipboard
private val TEMP_QR_FILE: String = "qr_temp.png"
TEMP_QR_FILE the pathname for the temporary QRCode file

Functions

Link copied to clipboard
private open fun codeNotExistsOrExpired(joiningQRCode: JoiningQRCode, model: Model): String
Method to format and return the INVALID_QR_CODE_PAGE due the link expiration or the not existing of that link
Link copied to clipboard
private open fun getHostAddressValue(request: HttpServletRequest): String
Method to get the current server details
Link copied to clipboard
@GetMapping(path = "/{" + IDENTIFIER_KEY + "}")
open fun loadCustomLinkWebPage(model: Model, request: HttpServletRequest, @PathVariable(value = "id") QRCodeId: String): String
Method to get a web dedicated page for a JoiningQRCode
Link copied to clipboard
private open fun qrcodePage(joiningQRCode: JoiningQRCode, model: Model, request: HttpServletRequest): String
Method to format and return the JOIN_CODE_KEY related page