org.openmrs.api.impl
Class GlobalLocaleList

java.lang.Object
  extended by org.openmrs.api.impl.GlobalLocaleList
All Implemented Interfaces:
GlobalPropertyListener

public class GlobalLocaleList
extends java.lang.Object
implements GlobalPropertyListener

A utility class which caches the current list of allowed locales, rebuilding the list whenever the global properties are updated.


Constructor Summary
GlobalLocaleList()
           
 
Method Summary
 java.util.Set<java.util.Locale> getAllowedLocales()
          Gets the current list of allowed locales.
 void globalPropertyChanged(GlobalProperty newValue)
          Called after a global property is created or updated
 void globalPropertyDeleted(java.lang.String propertyName)
          Called after a global property is deleted
 boolean supportsPropertyName(java.lang.String propertyName)
          Asks this listener whether it wants to be notified about the given property name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalLocaleList

public GlobalLocaleList()
Method Detail

globalPropertyChanged

public void globalPropertyChanged(GlobalProperty newValue)
Description copied from interface: GlobalPropertyListener
Called after a global property is created or updated

Specified by:
globalPropertyChanged in interface GlobalPropertyListener
Parameters:
newValue - the new value of the property that was just saved
See Also:
GlobalPropertyListener.globalPropertyChanged(org.openmrs.GlobalProperty)

globalPropertyDeleted

public void globalPropertyDeleted(java.lang.String propertyName)
Description copied from interface: GlobalPropertyListener
Called after a global property is deleted

Specified by:
globalPropertyDeleted in interface GlobalPropertyListener
Parameters:
propertyName - the name of the property that was just deleted
See Also:
GlobalPropertyListener.globalPropertyDeleted(java.lang.String)

supportsPropertyName

public boolean supportsPropertyName(java.lang.String propertyName)
Description copied from interface: GlobalPropertyListener
Asks this listener whether it wants to be notified about the given property name

Specified by:
supportsPropertyName in interface GlobalPropertyListener
Returns:
whether this listener wants its action methods to be notified of properties with the given name
See Also:
GlobalPropertyListener.supportsPropertyName(java.lang.String)

getAllowedLocales

public java.util.Set<java.util.Locale> getAllowedLocales()
Gets the current list of allowed locales.

Returns:
List object with allowed Locales defined by the administrator

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change