public class LocationUtility extends java.lang.Object implements GlobalPropertyListener
| Constructor and Description | 
|---|
LocationUtility()  | 
| Modifier and Type | Method and Description | 
|---|---|
static Location | 
getDefaultLocation()
Gets the system default location specified as a global property. 
 | 
static Location | 
getUserDefaultLocation()
Convenience method that returns the default location of the authenticated user. 
 | 
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 
 | 
public static Location getDefaultLocation()
public static Location getUserDefaultLocation()
public void globalPropertyChanged(GlobalProperty newValue)
GlobalPropertyListenerglobalPropertyChanged in interface GlobalPropertyListenernewValue - the new value of the property that was just savedGlobalPropertyListener.globalPropertyChanged(org.openmrs.GlobalProperty)public void globalPropertyDeleted(java.lang.String propertyName)
GlobalPropertyListenerglobalPropertyDeleted in interface GlobalPropertyListenerpropertyName - the name of the property that was just deletedGlobalPropertyListener.globalPropertyDeleted(java.lang.String)public boolean supportsPropertyName(java.lang.String propertyName)
GlobalPropertyListenersupportsPropertyName in interface GlobalPropertyListenerGlobalPropertyListener.supportsPropertyName(java.lang.String)Copyright © 2018 OpenMRS Inc.. All Rights Reserved.