A category available on a blog, such as news or promotion, which an article can be filed under. Each blog owns its own list of categories, and an article belongs to at most one of them, which is what makes a category different from a tag. Categories are soft deleted, so one marked deleted still exists and may still be referenced by older articles; exclude it when listing the categories available on a blog.

Group: Database Entities

Implements: Serializable


Properties

PropertyReturnsDescription
blogBlogThe blog this category is available on. Categories are not shared between blogs.
deletedbooleanWhether the category has been soft deleted. A deleted category still exists and may still be referenced by articles, so exclude it when offering categories to choose from.
idlongDatabase identifier for this category, assigned when it is first saved.
titleStringUser entered label for the category, as shown to readers. Never null, and free text, so do not rely on it being unique.

Methods

getId()

Returns: long

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

getBlog()

Returns: Blog

The blog this category is available on. Categories are not shared between blogs.

getTitle()

Returns: String

User entered label for the category, as shown to readers. Never null, and free text, so do not rely on it being unique.

isDeleted()

Returns: boolean

Whether the category has been soft deleted. A deleted category still exists and may still be referenced by articles, so exclude it when offering categories to choose from.

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