|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Transactional public interface MutableMessageSource
Extended MessageSource interface, which provides more information about the available messages and can be changed.
Method Summary | |
---|---|
void |
addPresentation(PresentationMessage message)
Adds a presentation message to the source. |
java.util.Collection<java.util.Locale> |
getLocales()
Gets the locales for which messages are available from this source. |
PresentationMessage |
getPresentation(java.lang.String key,
java.util.Locale forLocale)
Gets the PresentationMessage for a particular locale. |
java.util.Collection<PresentationMessage> |
getPresentations()
Gets all of the available messages, packaged as PresentationMessages. |
java.util.Collection<PresentationMessage> |
getPresentationsInLocale(java.util.Locale locale)
Gets alll the available messages in a particular locale, packaged as PresentationMessages. |
void |
merge(MutableMessageSource fromSource,
boolean overwrite)
Merge messages from another source into this source. |
void |
publishProperties(java.util.Properties props,
java.lang.String locale,
java.lang.String namespace,
java.lang.String name,
java.lang.String version)
Deprecated. use merge(MutableMessageSource, boolean) |
void |
removePresentation(PresentationMessage message)
Removes a presentation message from the source. |
Methods inherited from interface org.springframework.context.HierarchicalMessageSource |
---|
getParentMessageSource, setParentMessageSource |
Methods inherited from interface org.springframework.context.MessageSource |
---|
getMessage, getMessage, getMessage |
Method Detail |
---|
java.util.Collection<java.util.Locale> getLocales()
void publishProperties(java.util.Properties props, java.lang.String locale, java.lang.String namespace, java.lang.String name, java.lang.String version)
props
- key/value properties for the messageslocale
- locale in which the messages are expressednamespace
- namespace within which the properties are valid ("" for generic, "module"
for modules, etc)name
- unique name for the properties within the namespaceversion
- version of the propertiesjava.util.Collection<PresentationMessage> getPresentations()
java.util.Collection<PresentationMessage> getPresentationsInLocale(java.util.Locale locale)
locale
- locale for which to get the messages
void addPresentation(PresentationMessage message)
message
- message to add to the sourcePresentationMessage getPresentation(java.lang.String key, java.util.Locale forLocale)
key
- textual key for the messageforLocale
- locale for which to get the message
void removePresentation(PresentationMessage message)
message
- the message to removevoid merge(MutableMessageSource fromSource, boolean overwrite)
fromSource
- message source from which messages should be mergeoverwrite
- whether to overwrite existing messages
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |