@Transactional
public interface MutableMessageSource
extends org.springframework.context.MessageSource, org.springframework.context.HierarchicalMessageSource
| Modifier and Type | Method and Description | 
|---|---|
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. 
 
 | 
void | 
removePresentation(PresentationMessage message)
Removes a presentation message from the source. 
 | 
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 messagesvoid 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 messagevoid 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 messagesCopyright © 2018 OpenMRS Inc.. All Rights Reserved.