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
| Property | Returns | Description |
|---|---|---|
| id | long | Database identifier for this preference, assigned when it is first saved. |
| profile | Profile | The person the preference belongs to. Never null. |
| receiveEmails | boolean | Whether this person has chosen to receive notification emails from the website. |
| website | Website | The 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.