Records a request to verify a profile's email address before a sign-up or group membership application can proceed. A row is created with a unique, single-use token that is emailed to the address being verified; the profile confirms ownership by presenting the token, which is stored against the request's used date once consumed. A request may be linked to a specific group membership application, and login is blocked while an active, unverified request exists for the profile.

Implements: Relational


Properties

PropertyReturnsDescription
adminOrgOrganisationOrganisation that the sign-up or membership application this verification belongs to is being created within.
createdDateDateDate and time the verification request was created, i.e. when the verification email was generated.
emailStringEmail address that this request is verifying. Never null.
groupMembershipApplicationGroupMembershipApplicationGroup membership application this verification request was raised for, if any.
idlongDatabase primary key of this validation request.
profileProfileProfile whose email address is being verified by this request.
tokenStringSingle-use token included in the verification email link. Generated as a random, base64-encoded UUID and guaranteed unique across all requests.
usedDateDateDate and time the token was consumed, marking this request as used. Null while the request is still active and awaiting verification, or while it has been superseded by a later request for the same email or profile.
websiteWebsiteWebsite that this verification request was raised on.

Methods

getId() · getAdminOrg() · setAdminOrg(Organisation adminOrg) · getEmail() · setEmail(String email) · getGroupMembershipApplication() · setGroupMembershipApplication(GroupMembershipApplication groupMembershipApplication) · getWebsite() · setWebsite(Website website) · getProfile() · setProfile(Profile profile) · getCreatedDate() · setCreatedDate(Date createdDate) · getUsedDate() · setUsedDate(Date usedDate) · getToken() · setToken(String token)

getId()

Returns: long

Database primary key of this validation request.

getAdminOrg()

Returns: Organisation

Organisation that the sign-up or membership application this verification belongs to is being created within.

setAdminOrg(Organisation adminOrg)

Returns: void

Sets the organisation that owns this request.

ParameterDescription
adminOrgthe owning organisation

getEmail()

Returns: String

Email address that this request is verifying. Never null.

setEmail(String email)

Returns: void

Sets the email address being verified.

ParameterDescription
emailthe email address to verify

getGroupMembershipApplication()

Returns: GroupMembershipApplication

Group membership application this verification request was raised for, if any.

setGroupMembershipApplication(GroupMembershipApplication groupMembershipApplication)

Returns: void

Links this request to a group membership application.

ParameterDescription
groupMembershipApplicationthe membership application this request verifies an email for

getWebsite()

Returns: Website

Website that this verification request was raised on.

setWebsite(Website website)

Returns: void

Sets the website this request originated from.

ParameterDescription
websitethe originating website

getProfile()

Returns: Profile

Profile whose email address is being verified by this request.

setProfile(Profile profile)

Returns: void

Sets the profile whose email address this request verifies.

ParameterDescription
profilethe profile under verification

getCreatedDate()

Returns: Date

Date and time the verification request was created, i.e. when the verification email was generated.

setCreatedDate(Date createdDate)

Returns: void

Sets the date and time the request was created.

ParameterDescription
createdDatethe creation timestamp

getUsedDate()

Returns: Date

Date and time the token was consumed, marking this request as used. Null while the request is still active and awaiting verification, or while it has been superseded by a later request for the same email or profile.

setUsedDate(Date usedDate)

Returns: void

Marks this request as used (or supersedes it) by setting the used date.

ParameterDescription
usedDatethe timestamp the request was consumed or superseded

getToken()

Returns: String

Single-use token included in the verification email link. Generated as a random, base64-encoded UUID and guaranteed unique across all requests.

setToken(String token)

Returns: void

Sets the request's verification token.

ParameterDescription
tokenthe token to associate with this request
To get full access to the Kademi Hub existing customers can login here, or new customers can register here.