Class Category

java.lang.Object
org.ametys.plugins.newsletter.category.Category

public class Category extends Object
This class represent a category of newsletter
  • Constructor Details

    • Category

      public Category(String id)
      Constructor
      Parameters:
      id - The id of the tag. The id must be unique.
    • Category

      public Category(String id, String name, String parentId, I18nizableText title, I18nizableText description, String template, String siteName, String lang)
      Constructor
      Parameters:
      id - The id of the category. The id must be unique.
      name - The name of the category. The name must be unique. The name is the same as the id except for JCR category.
      parentId - The parent category id
      title - the category title
      description - the category description
      template - the template
      siteName - the category site name
      lang - the category language
  • Method Details

    • getId

      public String getId()
      Get the category unique id.
      Returns:
      The unique id
    • getName

      public String getName()
      Get the category unique id.
      Returns:
      The unique id
    • getParentId

      public String getParentId()
      Get the parent id.
      Returns:
      The parent id.
    • getTitle

      Retrieves the title.
      Returns:
      the title.
      Throws:
      AmetysRepositoryException - if an error occurs.
    • setTitle

      public void setTitle(I18nizableText title)
      Set the title.
      Parameters:
      title - the title to set.
    • getDescription

      Retrieves the description.
      Returns:
      the description.
    • setDescription

      public void setDescription(I18nizableText description)
      Set the description.
      Parameters:
      description - the description to set.
    • getTemplate

      public String getTemplate()
      Get the template name
      Returns:
      the template name
    • setTemplate

      public void setTemplate(String templateName)
      Set the template
      Parameters:
      templateName - the template
    • getSiteName

      public String getSiteName()
      Get the the site name
      Returns:
      the the site name
    • setSiteName

      public void setSiteName(String siteName)
      Set the site name
      Parameters:
      siteName - the site name to set
    • getLang

      public String getLang()
      Get the language
      Returns:
      the language
    • setLang

      public void setLang(String lang)
      Set the language
      Parameters:
      lang - the language