Holds whether a person wants to receive notification emails from a given website. Preferences are per profile and per website, so someone can be opted in on one site and out on another, and there is at most one row for a pairing. When no row exists nothing has been chosen, so the calling code decides the default rather than reading a false from here.

Group: Database Entities

Implements: Serializable


Properties

PropertyReturnsDescription
idlongDatabase identifier for this preference, assigned when it is first saved.
profileProfileThe person the preference belongs to. Never null.
receiveEmailsbooleanWhether this person has chosen to receive notification emails from the website.
websiteWebsiteThe website the preference applies to. Never null, a preference is not global across sites.

Methods

getId()

Returns: long

Database identifier for this preference, assigned when it is first saved.

getProfile()

Returns: Profile

The person the preference belongs to. Never null.

getWebsite()

Returns: Website

The website the preference applies to. Never null, a preference is not global across sites.

isReceiveEmails()

Returns: boolean

Whether this person has chosen to receive notification emails from the website.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.