A topic tag available on a blog, such as health or humour, which articles can be tagged with. Each blog owns its own list of tags, and an article may carry many of them through BlogArticleTag. Readers can also follow a tag, which is held as a BlogTagProfile preference. Tags are soft deleted, so a tag marked deleted still exists and is still linked to articles, and code that lists tags must exclude it.

Group: Database Entities

Implements: Serializable


Properties

PropertyReturnsDescription
blogBlogThe blog this tag is available on. Never null, tags are not shared between blogs.
deletedbooleanWhether the tag has been soft deleted. A deleted tag is still linked to articles, so exclude it when listing the tags available on a blog or the tags on an article.
idlongDatabase identifier for this tag, assigned when it is first saved.
titleStringUser entered label for the tag, as shown to readers and used as the key when tag article counts are returned. Never null.

Methods

getId()

Returns: long

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

getBlog()

Returns: Blog

The blog this tag is available on. Never null, tags are not shared between blogs.

getTitle()

Returns: String

User entered label for the tag, as shown to readers and used as the key when tag article counts are returned. Never null.

isDeleted()

Returns: boolean

Whether the tag has been soft deleted. A deleted tag is still linked to articles, so exclude it when listing the tags available on a blog or the tags on an article.

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