Records that a profile is following one piece of content on a website, so they can be notified when it is commented on or updated. A profile follows a given content item at most once per website. The content is referenced by its id string rather than by a foreign key, so a follow row survives even where the content it points at no longer exists.
Group: Database Entities
Implements: Serializable
Properties
| Property | Returns | Description |
|---|---|---|
| contentId | String | Identifies the content being followed, such as a post or other item on the website. It is a plain string rather than a relationship, so nothing guarantees the content still exists. |
| id | long | The database identifier of this follow record. |
| profile | Profile | The profile doing the following. Never null. |
| website | Website | The website the followed content lives on. Content ids are only unique within a website, so every lookup is scoped by it. Never null. |
Methods
getId()
Returns: long
The database identifier of this follow record.
getContentId()
Returns: String
Identifies the content being followed, such as a post or other item on the website. It is a plain string rather than a relationship, so nothing guarantees the content still exists.
setContentId(String contentId)
Returns: void
Sets the id of the content being followed.
| Parameter | Description |
|---|---|
contentId | the id of the followed content |
getProfile()
Returns: Profile
The profile doing the following. Never null.
setProfile(Profile profile)
Returns: void
Sets the profile doing the following.
| Parameter | Description |
|---|---|
profile | the following profile |
getWebsite()
Returns: Website
The website the followed content lives on. Content ids are only unique within a website, so every lookup is scoped by it. Never null.
setWebsite(Website website)
Returns: void
Sets the website the followed content lives on.
| Parameter | Description |
|---|---|
website | the website the content belongs to |