Class News.Builder
- java.lang.Object
-
- org.silverpeas.components.quickinfo.model.News.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description News
build()
Builds aNews
instance from the properties that were previously set with this builder.News.Builder
setImportant(boolean important)
Sets important flag of theNews
instance to build.News.Builder
setKeywords(String keywords)
Sets the keywords of theNews
instance to build.News.Builder
setMandatory(boolean mandatory)
Sets mandatory flag of theNews
instance to build.News.Builder
setTicker(boolean ticker)
Sets ticker flag of theNews
instance to build.News.Builder
setTitleAndDescription(String title, String description)
Sets the given title and description of the news to build.News.Builder
setVisibilityPeriod(org.silverpeas.core.date.Period period)
Sets the visibility period of theNews
instance to build.
-
-
-
Method Detail
-
build
public News build()
Builds aNews
instance from the properties that were previously set with this builder.- Returns:
- a
News
instance.
-
setMandatory
public News.Builder setMandatory(boolean mandatory)
Sets mandatory flag of theNews
instance to build.- Parameters:
mandatory
- the mandatory flag.- Returns:
- itself.
-
setTicker
public News.Builder setTicker(boolean ticker)
Sets ticker flag of theNews
instance to build.- Parameters:
ticker
- the ticker flag.- Returns:
- itself.
-
setImportant
public News.Builder setImportant(boolean important)
Sets important flag of theNews
instance to build.- Parameters:
important
- the important flag.- Returns:
- itself.
-
setVisibilityPeriod
public News.Builder setVisibilityPeriod(org.silverpeas.core.date.Period period)
Sets the visibility period of theNews
instance to build.- Parameters:
period
- the visibility period.- Returns:
- itself.
-
setKeywords
public News.Builder setKeywords(String keywords)
Sets the keywords of theNews
instance to build.- Parameters:
keywords
- the keywords of the news.- Returns:
- itself.
-
setTitleAndDescription
public News.Builder setTitleAndDescription(String title, String description)
Sets the given title and description of the news to build.- Parameters:
title
- the title of the news.description
- the description of the news.- Returns:
- itself.
-
-