Class AlmanachSettings
java.lang.Object
org.silverpeas.components.almanach.AlmanachSettings
It gathers all the settings and i18n relative to the Almanach component.
- Author:
- Yohann Chastagnier
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringThe name of the Almanach component in Silverpeas.static final StringThe relative path of the properties file containing the references of the icons dedicated to the Almanach component.static final StringThe relative path of the i18n bundle of the Almanach component.static final StringThe relative path of the properties file containing the settings of the Almanach component. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringGets the aggregation mode for almanachs.static StringgetDefaultCalendarView(String componentInstanceId) Gets the default view of the almanach calendar.static org.silverpeas.kernel.bundle.LocalizationBundlegetIcons()Gets all the icons definitions particular to the Almanach component.static org.silverpeas.kernel.bundle.LocalizationBundlegetMessagesIn(String language) Gets all the messages for the Almanach component and translated in the specified language.static intGets the limit number of occurrences the next event view has to display.static intGets the limit number of occurrences the short next event view has to display.static Integer[]Gets the limit number of occurrences the next event view has to display.static org.silverpeas.kernel.bundle.SettingBundleGets all the settings of the Almanach component.static ZoneIdGets the zone identifier of the platform for almanach components.static booleanisCalendarWeekendVisible(String componentInstanceId) Indicates if the weekend is visible on calendar for a component instance.static booleanisFilterOnPdcActivated(String componentInstanceId) Indicates if the PDC filtering is activated into the context of the component instance represented bu the given identifier.static booleanIndicates if the PDC is used into the context of the component instance represented bu the given identifier.
-
Field Details
-
COMPONENT_NAME
The name of the Almanach component in Silverpeas.- See Also:
-
SETTINGS_PATH
The relative path of the properties file containing the settings of the Almanach component.- See Also:
-
MESSAGES_PATH
The relative path of the i18n bundle of the Almanach component.- See Also:
-
ICONS_PATH
The relative path of the properties file containing the references of the icons dedicated to the Almanach component.- See Also:
-
ALMANACH_IN_SUBSPACES
- See Also:
-
ALMANACH_IN_SPACE_AND_SUBSPACES
- See Also:
-
ALL_ALMANACHS
- See Also:
-
-
Method Details
-
getMessagesIn
Gets all the messages for the Almanach component and translated in the specified language.- Parameters:
language- the language in which are written the messages.- Returns:
- the resource with the translated messages.
-
getSettings
public static org.silverpeas.kernel.bundle.SettingBundle getSettings()Gets all the settings of the Almanach component.- Returns:
- the resource with the different component settings.
-
getIcons
public static org.silverpeas.kernel.bundle.LocalizationBundle getIcons()Gets all the icons definitions particular to the Almanach component.- Returns:
- the resource with icons definition.
-
getZoneId
Gets the zone identifier of the platform for almanach components.- Returns:
- a
ZoneIdinstance.
-
isCalendarWeekendVisible
Indicates if the weekend is visible on calendar for a component instance.- Parameters:
componentInstanceId- the identifier of component instance for parameter values.- Returns:
- true if weekend is visible, false otherwise.
-
getDefaultCalendarView
Gets the default view of the almanach calendar.- Parameters:
componentInstanceId- the identifier of component instance for parameter values.- Returns:
- the default view as string.
-
isPdcUsed
Indicates if the PDC is used into the context of the component instance represented bu the given identifier.- Parameters:
componentInstanceId- the identifier of component instance for parameter values.- Returns:
- true if pdc is used, false otherwise.
-
isFilterOnPdcActivated
Indicates if the PDC filtering is activated into the context of the component instance represented bu the given identifier.- Parameters:
componentInstanceId- the identifier of component instance for parameter values.- Returns:
- true if pdc filtering is activated, false otherwise.
-
getNbOccurrenceLimitOfNextEventView
public static int getNbOccurrenceLimitOfNextEventView()Gets the limit number of occurrences the next event view has to display.- Returns:
- the limit as int.
-
getNbOccurrenceLimitOfShortNextEventView
public static int getNbOccurrenceLimitOfShortNextEventView()Gets the limit number of occurrences the short next event view has to display.- Returns:
- the limit as int.
-
getNextEventTimeWindows
Gets the limit number of occurrences the next event view has to display.- Returns:
- the limit as int.
-
getAggregationMode
Gets the aggregation mode for almanachs.- Returns:
- the code of the mode as string.
-