Class Category

java.lang.Object
pt.ist.fenixframework.core.AbstractDomainObject
org.fenixedu.cms.domain.Category_Base
org.fenixedu.cms.domain.Category
All Implemented Interfaces:
Serializable, Cloneable, Sluggable, Wrappable, pt.ist.fenixframework.DomainObject

public class Category extends Category_Base implements Wrappable, Sluggable, Cloneable
Categories give a semantic group for Site and Post.
See Also:
  • Field Details

  • Constructor Details

    • Category

      public Category(Site site, org.fenixedu.commons.i18n.LocalizedString name)
      The logged User creates a new instance of a Category
      Parameters:
      site - site
      name - name
  • Method Details

    • getSite

      public Site getSite()
      Overrides:
      getSite in class Category_Base
    • setName

      public void setName(org.fenixedu.commons.i18n.LocalizedString name)
      Overrides:
      setName in class Category_Base
    • setSlug

      public void setSlug(String slug)
      Specified by:
      setSlug in interface Sluggable
      Overrides:
      setSlug in class Category_Base
    • isValidSlug

      public boolean isValidSlug(String slug)
      A slug is valid if there are no other category on that site that have the same slug.
      Specified by:
      isValidSlug in interface Sluggable
      Parameters:
      slug - slug
      Returns:
      true if it is a valid slug.
    • getAddress

      public String getAddress()
    • getRssUrl

      public String getRssUrl()
    • delete

      public void delete()
    • clone

      public Category clone(CloneCache cloneCache)
      Specified by:
      clone in interface Cloneable
    • makeWrap

      public Wrap makeWrap()
      Specified by:
      makeWrap in interface Wrappable
    • getEditUrl

      public String getEditUrl()
    • getLatestPosts

      public List<Post> getLatestPosts()