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

PropertyReturnsDescription
contentIdStringIdentifies 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.
idlongThe database identifier of this follow record.
profileProfileThe profile doing the following. Never null.
websiteWebsiteThe 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.

ParameterDescription
contentIdthe 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.

ParameterDescription
profilethe 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.

ParameterDescription
websitethe website the content belongs to
To get full access to the Kademi Hub existing customers can login here, or new customers can register here.