Class NotificationResourceDataDetails
- java.lang.Object
-
- org.silverpeas.core.notification.user.model.NotificationResourceDataDetails
-
public class NotificationResourceDataDetails extends Object
Labels and gender container linked to aNotificationResourceData
.It permits to register and provide labels according to a locale.
- Author:
- silveryocha
-
-
Constructor Summary
Constructors Constructor Description NotificationResourceDataDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLocalized(String language, String key)
Gets a localized data according to the given language and the specified key.boolean
isFeminineGenderResource()
Is the linkedNotificationResourceData
a about a feminine gender resource or masculine one ?void
merge(NotificationResourceDataDetails other)
Merges the labels from other to itself.NotificationResourceDataDetails
putLocalized(String language, String key, String value)
Puts a localized data according to the given language and the specified key.NotificationResourceDataDetails
setFeminineGenderResource(boolean feminineGenderResource)
-
-
-
Method Detail
-
isFeminineGenderResource
public boolean isFeminineGenderResource()
Is the linkedNotificationResourceData
a about a feminine gender resource or masculine one ?- Returns:
- true if feminine gender, false otherwise.
-
setFeminineGenderResource
public NotificationResourceDataDetails setFeminineGenderResource(boolean feminineGenderResource)
-
getLocalized
public String getLocalized(String language, String key)
Gets a localized data according to the given language and the specified key.- Parameters:
language
- a language.key
- a key.- Returns:
- a label as string.
-
putLocalized
public NotificationResourceDataDetails putLocalized(String language, String key, String value)
Puts a localized data according to the given language and the specified key.- Parameters:
language
- a language.key
- a key.value
- a value associated to the key.- Returns:
- itself.
-
merge
public void merge(NotificationResourceDataDetails other)
Merges the labels from other to itself.- Parameters:
other
- the otherNotificationResourceDataDetails
instance.
-
-