Class Category
java.lang.Object
org.ametys.plugins.newsletter.category.Category
This class represent a category of newsletter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the description.getId()
Get the category unique id.getLang()
Get the languagegetName()
Get the category unique id.Get the parent id.Get the the site nameGet the template namegetTitle()
Retrieves the title.void
setDescription
(I18nizableText description) Set the description.void
Set the languagevoid
setSiteName
(String siteName) Set the site namevoid
setTemplate
(String templateName) Set the templatevoid
setTitle
(I18nizableText title) Set the title.
-
Constructor Details
-
Category
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 idtitle
- the category titledescription
- the category descriptiontemplate
- the templatesiteName
- the category site namelang
- the category language
-
-
Method Details
-
getId
Get the category unique id.- Returns:
- The unique id
-
getName
Get the category unique id.- Returns:
- The unique id
-
getParentId
Get the parent id.- Returns:
- The parent id.
-
getTitle
Retrieves the title.- Returns:
- the title.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
setTitle
Set the title.- Parameters:
title
- the title to set.
-
getDescription
Retrieves the description.- Returns:
- the description.
-
setDescription
Set the description.- Parameters:
description
- the description to set.
-
getTemplate
Get the template name- Returns:
- the template name
-
setTemplate
Set the template- Parameters:
templateName
- the template
-
getSiteName
Get the the site name- Returns:
- the the site name
-
setSiteName
Set the site name- Parameters:
siteName
- the site name to set
-
getLang
Get the language- Returns:
- the language
-
setLang
Set the language- Parameters:
lang
- the language
-