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 Newsbuild()Builds aNewsinstance from the properties that were previously set with this builder.News.BuildersetImportant(boolean important)Sets important flag of theNewsinstance to build.News.BuildersetKeywords(String keywords)Sets the keywords of theNewsinstance to build.News.BuildersetMandatory(boolean mandatory)Sets mandatory flag of theNewsinstance to build.News.BuildersetTicker(boolean ticker)Sets ticker flag of theNewsinstance to build.News.BuildersetTitleAndDescription(String title, String description)Sets the given title and description of the news to build.News.BuildersetVisibilityPeriod(org.silverpeas.core.date.Period period)Sets the visibility period of theNewsinstance to build.
-
-
-
Method Detail
-
build
public News build()
Builds aNewsinstance from the properties that were previously set with this builder.- Returns:
- a
Newsinstance.
-
setMandatory
public News.Builder setMandatory(boolean mandatory)
Sets mandatory flag of theNewsinstance to build.- Parameters:
mandatory- the mandatory flag.- Returns:
- itself.
-
setTicker
public News.Builder setTicker(boolean ticker)
Sets ticker flag of theNewsinstance to build.- Parameters:
ticker- the ticker flag.- Returns:
- itself.
-
setImportant
public News.Builder setImportant(boolean important)
Sets important flag of theNewsinstance 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 theNewsinstance to build.- Parameters:
period- the visibility period.- Returns:
- itself.
-
setKeywords
public News.Builder setKeywords(String keywords)
Sets the keywords of theNewsinstance 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.
-
-