Class GalleryComponentSettings
java.lang.Object
org.silverpeas.components.gallery.GalleryComponentSettings
It gathers all the settings and i18n relative to the Gallery component.
- Author:
- mmoquillon
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the Gallery component in Silverpeas.static final StringThe relative path of the properties file containing the references of the icons dedicated to the Gallery component.static final StringThe relative path of the i18n bundle of the Gallery component.static final StringThe relative path of the properties file containing the settings of the Gallery component. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.silverpeas.kernel.bundle.LocalizationBundlegetIcons()Gets all the icons definitions particular to the Gallery component.static intstatic org.silverpeas.kernel.bundle.LocalizationBundlegetMessagesIn(String language) Gets all the messages for the Gallery component and translated in the specified language.static intGets the max number of media displayed on homepage.static org.silverpeas.kernel.bundle.SettingBundleGets all the settings of the Gallery component.static WatermarkgetWatermark(String componentInstanceId) static IntegergetWatermarkSize(String bundlePartOfWatermarkSizeLabel) static booleanisDragAndDropEnabled(String componentInstanceId) static booleanisMakeWatermarkEnabled(String componentInstanceId) static booleanisPdcEnabled(String componentInstanceId) static booleanisViewMetadataEnabled(String componentInstanceId)
-
Field Details
-
COMPONENT_NAME
The name of the Gallery component in Silverpeas.- See Also:
-
SETTINGS_PATH
The relative path of the properties file containing the settings of the Gallery component.- See Also:
-
MESSAGES_PATH
The relative path of the i18n bundle of the Gallery component.- See Also:
-
ICONS_PATH
The relative path of the properties file containing the references of the icons dedicated to the Gallery component.- See Also:
-
-
Method Details
-
getMessagesIn
Gets all the messages for the Gallery 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 Gallery 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 Gallery component.- Returns:
- the resource with icons definition.
-
getNbMediaDisplayedPerPage
public static int getNbMediaDisplayedPerPage()Gets the max number of media displayed on homepage.- Returns:
- the max number of media
-
isDragAndDropEnabled
-
isPdcEnabled
-
isViewMetadataEnabled
-
isMakeWatermarkEnabled
-
getWatermarkSize
-
getMaxNumberOfPreviewThumbnail
public static int getMaxNumberOfPreviewThumbnail() -
getWatermark
-