Class Category
- java.lang.Object
-
- org.ametys.plugins.newsletter.category.Category
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description I18nizableText
getDescription()
Retrieves the description.String
getId()
Get the category unique id.String
getLang()
Get the languageString
getName()
Get the category unique id.String
getParentId()
Get the parent id.String
getSiteName()
Get the the site nameString
getTemplate()
Get the template nameI18nizableText
getTitle()
Retrieves the title.void
setDescription(I18nizableText description)
Set the description.void
setLang(String lang)
Set the languagevoid
setSiteName(String siteName)
Set the site namevoid
setTemplate(String templateName)
Set the templatevoid
setTitle(I18nizableText title)
Set the title.
-
-
-
Constructor Detail
-
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 idtitle
- the category titledescription
- the category descriptiontemplate
- the templatesiteName
- the category site namelang
- the category language
-
-
Method Detail
-
getParentId
public String getParentId()
Get the parent id.- Returns:
- The parent id.
-
getTitle
public I18nizableText 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
public I18nizableText 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
-
-