public class AdministrationServiceImpl extends BaseOpenmrsService implements AdministrationService, GlobalPropertyListener
AdministrationService, 
Context| Modifier and Type | Field and Description | 
|---|---|
protected AdministrationDAO | 
dao  | 
protected org.apache.commons.logging.Log | 
log  | 
protected java.util.SortedMap<java.lang.String,java.lang.String> | 
systemVariables
Static-ish variable used to cache the system variables. 
 | 
| Constructor and Description | 
|---|
AdministrationServiceImpl()
Default empty constructor 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addGlobalProperty(GlobalProperty gp)
Deprecated.   
 | 
void | 
addGlobalProperty(java.lang.String propertyName,
                 java.lang.String propertyValue)
Deprecated.   
 | 
void | 
addGlobalPropertyListener(GlobalPropertyListener listener)
Allows code to be notified when a global property is created/edited/deleted. 
 | 
void | 
createConceptClass(ConceptClass cc)
Deprecated. 
 
moved to ConceptService 
 | 
void | 
createConceptDatatype(ConceptDatatype cd)
Deprecated. 
 
moved to ConceptService 
 | 
void | 
createConceptProposal(ConceptProposal cp)
Deprecated. 
 
moved to ConceptService 
 | 
void | 
createEncounterType(EncounterType encounterType)
Deprecated.   
 | 
void | 
createFieldType(FieldType fieldType)
Deprecated.   
 | 
void | 
createLocation(Location location)
Deprecated.   
 | 
void | 
createMimeType(MimeType mimeType)
Deprecated. 
 
 | 
void | 
createPatientIdentifierType(PatientIdentifierType patientIdentifierType)
Deprecated. 
 
 | 
void | 
createPrivilege(Privilege privilege)
Deprecated.   
 | 
void | 
createReport(Report report)
Deprecated. 
 
see reportingcompatibility module 
 | 
void | 
createReportObject(AbstractReportObject reportObject)
Deprecated. 
 
see reportingcompatibility module 
 | 
void | 
createRole(Role role)
Deprecated.   
 | 
void | 
createTribe(Tribe tribe)
Deprecated.   
 | 
void | 
deleteConceptClass(ConceptClass cc)
Deprecated. 
 
moved to ConceptService 
 | 
void | 
deleteConceptDatatype(ConceptDatatype cd)
Deprecated. 
 
moved to ConceptService 
 | 
void | 
deleteEncounterType(EncounterType encounterType)
Deprecated.   
 | 
void | 
deleteFieldType(FieldType fieldType)
Deprecated.   
 | 
void | 
deleteGlobalProperty(java.lang.String propertyName)
Deprecated.   
 | 
void | 
deleteLocation(Location location)
Deprecated.   
 | 
void | 
deleteMimeType(MimeType mimeType)
Deprecated. 
 
 | 
void | 
deletePatientIdentifierType(PatientIdentifierType patientIdentifierType)
Deprecated. 
 
 | 
void | 
deletePrivilege(Privilege privilege)
Deprecated.   
 | 
void | 
deleteReport(Report report)
Deprecated. 
 
see reportingcompatibility module 
 | 
void | 
deleteReportObject(java.lang.Integer reportObjectId)
Deprecated. 
 
see reportingcompatibility module 
 | 
void | 
deleteRole(Role role)
Deprecated.   
 | 
void | 
deleteTribe(Tribe tribe)
Deprecated.   
 | 
java.util.List<java.util.List<java.lang.Object>> | 
executeSQL(java.lang.String sql,
          boolean selectOnly)
Runs the  
sql on the database. | 
java.util.List<GlobalProperty> | 
getAllGlobalProperties()
Get a list of all global properties in the system 
 | 
java.util.List<java.util.Locale> | 
getAllowedLocales()
Gets the list of locales which the administrator has allowed for use on the system. 
 | 
java.util.List<GlobalProperty> | 
getGlobalProperties()
Deprecated.   
 | 
java.util.List<GlobalProperty> | 
getGlobalPropertiesByPrefix(java.lang.String prefix)
Gets all global properties that begin with  
prefix. | 
java.util.List<GlobalProperty> | 
getGlobalPropertiesBySuffix(java.lang.String suffix)
Gets all global properties that end with  
suffix. | 
java.lang.String | 
getGlobalProperty(java.lang.String propertyName)
Gets the global property that has the given  
propertyName. | 
java.lang.String | 
getGlobalProperty(java.lang.String propertyName,
                 java.lang.String defaultValue)
Gets the global property that has the given  
propertyName | 
GlobalProperty | 
getGlobalPropertyByUuid(java.lang.String uuid)
Get a global property by its uuid. 
 | 
GlobalProperty | 
getGlobalPropertyObject(java.lang.String propertyName)
Gets the global property that has the given  
propertyName | 
<T> T | 
getGlobalPropertyValue(java.lang.String propertyName,
                      T defaultValue)
Returns a global property according to the type specified 
 | 
ImplementationId | 
getImplementationId()
Get the implementation id stored for this server Returns null if no implementation id has
 been successfully set yet 
 | 
int | 
getMaximumPropertyLength(java.lang.Class<? extends OpenmrsObject> aClass,
                        java.lang.String fieldName)  | 
java.util.Collection<?> | 
getMRNGeneratorLog()
Deprecated.   
 | 
java.util.Set<java.util.Locale> | 
getPresentationLocales()
Gets the list of locales for which localized messages are available for the user interface
 (presentation layer). 
 | 
java.util.List<java.util.Locale> | 
getSearchLocales()
Returns a list of locales used by the user when searching. 
 | 
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> | 
getSystemInformation()
Get a map of all the System Information. 
 | 
java.util.SortedMap<java.lang.String,java.lang.String> | 
getSystemVariables()
Get a listing or important variables used in openmrs 
 | 
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 | 
isDatabaseStringComparisonCaseSensitive()
Reads a GP which specifies if database string comparison is case sensitive. 
 | 
void | 
mapConceptProposalToConcept(ConceptProposal cp,
                           Concept mappedConcept)
Deprecated. 
 
moved to ConceptService 
 | 
void | 
mrnGeneratorLog(java.lang.String site,
               java.lang.Integer start,
               java.lang.Integer count)
Deprecated.   
 | 
void | 
purgeGlobalProperties(java.util.List<GlobalProperty> globalProperties)
Completely remove the given global properties from the database 
 | 
void | 
purgeGlobalProperty(GlobalProperty globalProperty)
Completely remove the given global property from the database 
 | 
void | 
rejectConceptProposal(ConceptProposal cp)
Deprecated. 
 
moved to ConceptService 
 | 
void | 
removeGlobalPropertyListener(GlobalPropertyListener listener)
Removes a GlobalPropertyListener previously registered by
  
AdministrationService.addGlobalPropertyListener(GlobalPropertyListener) | 
void | 
retireTribe(Tribe tribe)
Deprecated.   
 | 
java.util.List<GlobalProperty> | 
saveGlobalProperties(java.util.List<GlobalProperty> props)
Save the given list of global properties to the database. 
 | 
GlobalProperty | 
saveGlobalProperty(GlobalProperty gp)
Save the given global property to the database 
 | 
void | 
setAdministrationDAO(AdministrationDAO dao)
Used by Spring to set the specific/chosen database access implementation 
 | 
void | 
setEventListeners(EventListeners eventListeners)  | 
void | 
setGlobalLocaleList(GlobalLocaleList gll)
Used by spring to set the GlobalLocaleList on this implementation 
 | 
void | 
setGlobalProperties(java.util.List<GlobalProperty> props)
Deprecated.   
 | 
void | 
setGlobalProperty(GlobalProperty gp)
Deprecated.   
 | 
void | 
setGlobalProperty(java.lang.String propertyName,
                 java.lang.String propertyValue)
Deprecated.   
 | 
void | 
setImplementationId(ImplementationId implementationId)
Set the given  
implementationId as this implementation's unique id | 
void | 
setImplementationIdHttpClient(HttpClient implementationIdHttpClient)
Used by Spring to set the http client for accessing the openmrs implementation service 
 | 
boolean | 
supportsPropertyName(java.lang.String propertyName)
Asks this listener whether it wants to be notified about the given property name 
 | 
void | 
unretireTribe(Tribe tribe)
Deprecated.   
 | 
void | 
updateConceptClass(ConceptClass cc)
Deprecated. 
 
moved to ConceptService 
 | 
void | 
updateConceptDatatype(ConceptDatatype cd)
Deprecated. 
 
moved to ConceptService 
 | 
void | 
updateConceptProposal(ConceptProposal cp)
Deprecated. 
 
moved to ConceptService 
 | 
void | 
updateConceptSetDerived()
Deprecated. 
 
moved to ConceptService 
 | 
void | 
updateConceptSetDerived(Concept concept)
Deprecated. 
 
moved to ConceptService 
 | 
void | 
updateConceptWord(Concept concept)
Deprecated. 
 
moved to ConceptServiceImpl 
 | 
void | 
updateConceptWords()
Deprecated. 
 
moved to ConceptServiceImpl 
 | 
void | 
updateConceptWords(java.lang.Integer conceptIdStart,
                  java.lang.Integer conceptIdEnd)
Deprecated. 
 
moved to ConceptService 
 | 
void | 
updateEncounterType(EncounterType encounterType)
Deprecated.   
 | 
void | 
updateFieldType(FieldType fieldType)
Deprecated.   
 | 
void | 
updateLocation(Location location)
Deprecated.   
 | 
void | 
updateMimeType(MimeType mimeType)
Deprecated. 
 
 | 
void | 
updatePatientIdentifierType(PatientIdentifierType patientIdentifierType)
Deprecated. 
 
 | 
void | 
updatePrivilege(Privilege privilege)
Deprecated.   
 | 
void | 
updateReport(Report report)
Deprecated. 
 
see reportingcompatibility module 
 | 
void | 
updateReportObject(AbstractReportObject reportObject)
Deprecated. 
 
see reportingcompatibility module 
 | 
void | 
updateRole(Role role)
Deprecated.   
 | 
void | 
updateTribe(Tribe tribe)
Deprecated.   
 | 
void | 
validate(java.lang.Object object,
        org.springframework.validation.Errors errors)
Performs validation in the manual flush mode to prevent any premature flushes. 
 | 
onShutdown, onStartupclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonShutdown, onStartupprotected org.apache.commons.logging.Log log
protected AdministrationDAO dao
protected java.util.SortedMap<java.lang.String,java.lang.String> systemVariables
public AdministrationServiceImpl()
public void setAdministrationDAO(AdministrationDAO dao)
AdministrationServicesetAdministrationDAO in interface AdministrationServicedao - The dao implementation to useAdministrationService.setAdministrationDAO(org.openmrs.api.db.AdministrationDAO)public void setEventListeners(EventListeners eventListeners)
@Deprecated public void createEncounterType(EncounterType encounterType) throws APIException
createEncounterType in interface AdministrationServiceAPIExceptionAdministrationService.createEncounterType(org.openmrs.EncounterType)@Deprecated public void updateEncounterType(EncounterType encounterType) throws APIException
updateEncounterType in interface AdministrationServiceAPIExceptionAdministrationService.updateEncounterType(org.openmrs.EncounterType)@Deprecated public void deleteEncounterType(EncounterType encounterType) throws APIException
deleteEncounterType in interface AdministrationServiceAPIExceptionAdministrationService.deleteEncounterType(org.openmrs.EncounterType)@Deprecated public void createPatientIdentifierType(PatientIdentifierType patientIdentifierType) throws APIException
PatientService.savePatientIdentifierType(PatientIdentifierType)createPatientIdentifierType in interface AdministrationServiceAPIExceptionPatientService.savePatientIdentifierType(PatientIdentifierType)@Deprecated public void updatePatientIdentifierType(PatientIdentifierType patientIdentifierType) throws APIException
PatientService.savePatientIdentifierType(PatientIdentifierType)updatePatientIdentifierType in interface AdministrationServiceAPIExceptionPatientService.savePatientIdentifierType(PatientIdentifierType)@Deprecated public void deletePatientIdentifierType(PatientIdentifierType patientIdentifierType) throws APIException
PatientService.purgePatientIdentifierType(PatientIdentifierType)deletePatientIdentifierType in interface AdministrationServiceAPIExceptionPatientService.purgePatientIdentifierType(PatientIdentifierType)@Deprecated public void createTribe(Tribe tribe) throws APIException
createTribe in interface AdministrationServicetribe - Tribe to createAPIException@Deprecated public void updateTribe(Tribe tribe) throws APIException
updateTribe in interface AdministrationServicetribe - Tribe to updateAPIException@Deprecated public void deleteTribe(Tribe tribe) throws APIException
deleteTribe in interface AdministrationServicetribe - Tribe to deleteAPIException@Deprecated public void retireTribe(Tribe tribe) throws APIException
retireTribe in interface AdministrationServicetribe - Tribe to retireAPIException@Deprecated public void unretireTribe(Tribe tribe) throws APIException
unretireTribe in interface AdministrationServicetribe - Tribe to unretireAPIException@Deprecated public void createFieldType(FieldType fieldType) throws APIException
createFieldType in interface AdministrationServiceAPIException@Deprecated public void updateFieldType(FieldType fieldType) throws APIException
updateFieldType in interface AdministrationServiceAPIException@Deprecated public void deleteFieldType(FieldType fieldType) throws APIException
deleteFieldType in interface AdministrationServiceAPIException@Deprecated public void createMimeType(MimeType mimeType) throws APIException
ObsService.saveMimeType(MimeType)createMimeType in interface AdministrationServiceAPIException@Deprecated public void updateMimeType(MimeType mimeType) throws APIException
ObsService.saveMimeType(MimeType)updateMimeType in interface AdministrationServiceAPIException@Deprecated public void deleteMimeType(MimeType mimeType) throws APIException
ObsService.purgeMimeType(MimeType)deleteMimeType in interface AdministrationServiceAPIException@Deprecated public void createLocation(Location location) throws APIException
createLocation in interface AdministrationServiceAPIExceptionAdministrationService.createLocation(org.openmrs.Location)@Deprecated public void updateLocation(Location location) throws APIException
updateLocation in interface AdministrationServiceAPIExceptionAdministrationService.updateLocation(org.openmrs.Location)@Deprecated public void deleteLocation(Location location) throws APIException
deleteLocation in interface AdministrationServiceAPIExceptionAdministrationService.deleteLocation(org.openmrs.Location)@Deprecated public void createRole(Role role) throws APIException
createRole in interface AdministrationServiceAPIExceptionAdministrationService.createRole(org.openmrs.Role)@Deprecated public void updateRole(Role role) throws APIException
updateRole in interface AdministrationServiceAPIExceptionAdministrationService.updateRole(org.openmrs.Role)@Deprecated public void deleteRole(Role role) throws APIException
deleteRole in interface AdministrationServiceAPIExceptionAdministrationService.deleteRole(org.openmrs.Role)@Deprecated public void createPrivilege(Privilege privilege) throws APIException
createPrivilege in interface AdministrationServiceAPIExceptionAdministrationService.createPrivilege(org.openmrs.Privilege)@Deprecated public void updatePrivilege(Privilege privilege) throws APIException
updatePrivilege in interface AdministrationServiceAPIExceptionAdministrationService.updatePrivilege(org.openmrs.Privilege)@Deprecated public void deletePrivilege(Privilege privilege) throws APIException
deletePrivilege in interface AdministrationServiceAPIExceptionAdministrationService.deletePrivilege(org.openmrs.Privilege)@Deprecated public void createConceptClass(ConceptClass cc) throws APIException
AdministrationServicecreateConceptClass in interface AdministrationServicecc - ConceptClass to createAPIException@Deprecated public void updateConceptClass(ConceptClass cc) throws APIException
AdministrationServiceupdateConceptClass in interface AdministrationServicecc - ConceptClass to updateAPIException@Deprecated public void deleteConceptClass(ConceptClass cc) throws APIException
AdministrationServicedeleteConceptClass in interface AdministrationServicecc - ConceptClass to deleteAPIException@Deprecated public void createConceptDatatype(ConceptDatatype cd) throws APIException
AdministrationServicecreateConceptDatatype in interface AdministrationServicecd - ConceptDatatype to createAPIException@Deprecated public void updateConceptDatatype(ConceptDatatype cd) throws APIException
AdministrationServiceupdateConceptDatatype in interface AdministrationServicecd - ConceptDatatype to updateAPIException@Deprecated public void deleteConceptDatatype(ConceptDatatype cd) throws APIException
AdministrationServicedeleteConceptDatatype in interface AdministrationServicecd - ConceptDatatype to deleteAPIException@Deprecated public void createReport(Report report) throws APIException
createReport in interface AdministrationServicereport - Report to createAPIException@Deprecated public void updateReport(Report report) throws APIException
updateReport in interface AdministrationServicereport - Report to updateAPIException@Deprecated public void deleteReport(Report report) throws APIException
deleteReport in interface AdministrationServicereport - Report to deleteAPIException@Deprecated public void createReportObject(AbstractReportObject reportObject) throws APIException
createReportObject in interface AdministrationServicereportObject - Report Object to createAPIException@Deprecated public void updateReportObject(AbstractReportObject reportObject) throws APIException
updateReportObject in interface AdministrationServicereportObject - Report Object to updateAPIException@Deprecated
public void deleteReportObject(java.lang.Integer reportObjectId)
                                    throws APIException
deleteReportObject in interface AdministrationServicereportObjectId - Internal Integer identifier of Report Object to deleteAPIException@Deprecated public void updateConceptWord(Concept concept) throws APIException
AdministrationServiceupdateConceptWord in interface AdministrationServiceAPIException@Deprecated
public void updateConceptWords()
                                    throws APIException
AdministrationServiceupdateConceptWords in interface AdministrationServiceAPIException@Deprecated
public void updateConceptWords(java.lang.Integer conceptIdStart,
                                           java.lang.Integer conceptIdEnd)
                                    throws APIException
AdministrationServiceconceptIdStart and
 conceptIdEnd (inclusive) calling updateConceptWord(concept)updateConceptWords in interface AdministrationServiceAPIException@Deprecated public void updateConceptSetDerived(Concept concept) throws APIException
AdministrationServiceupdateConceptSetDerived in interface AdministrationServiceAPIException@Deprecated
public void updateConceptSetDerived()
                                         throws APIException
AdministrationServiceupdateConceptSetDerived in interface AdministrationServiceAPIException@Deprecated public void createConceptProposal(ConceptProposal cp) throws APIException
AdministrationServicecreateConceptProposal in interface AdministrationServiceAPIException@Deprecated public void updateConceptProposal(ConceptProposal cp) throws APIException
AdministrationServiceupdateConceptProposal in interface AdministrationServiceAPIException@Deprecated public void mapConceptProposalToConcept(ConceptProposal cp, Concept mappedConcept) throws APIException
AdministrationServicemapConceptProposalToConcept in interface AdministrationServiceAPIException@Deprecated public void rejectConceptProposal(ConceptProposal cp)
AdministrationServicerejectConceptProposal in interface AdministrationServiceAdministrationService.rejectConceptProposal(org.openmrs.ConceptProposal)@Deprecated
public void mrnGeneratorLog(java.lang.String site,
                                        java.lang.Integer start,
                                        java.lang.Integer count)
                                 throws APIException
mrnGeneratorLog in interface AdministrationServiceAPIExceptionAdministrationService.mrnGeneratorLog(java.lang.String,
      java.lang.Integer, java.lang.Integer)@Deprecated
public java.util.Collection<?> getMRNGeneratorLog()
                                                       throws APIException
getMRNGeneratorLog in interface AdministrationServiceAPIExceptionAdministrationService.getMRNGeneratorLog()public java.util.SortedMap<java.lang.String,java.lang.String> getSystemVariables()
                                                                          throws APIException
AdministrationServicegetSystemVariables in interface AdministrationServiceAPIExceptionAdministrationService.getSystemVariables()public java.lang.String getGlobalProperty(java.lang.String propertyName)
                                   throws APIException
AdministrationServicepropertyName.
 
 If propertyName is not found in the list of Global Properties currently in the
 database, a null value is returned. This method should not have any authorization check.
getGlobalProperty in interface AdministrationServicepropertyName - property key to look forAPIExceptionAdministrationService.getGlobalProperty(java.lang.String)public java.lang.String getGlobalProperty(java.lang.String propertyName,
                                          java.lang.String defaultValue)
                                   throws APIException
AdministrationServicepropertyName
 
 If propertyName is not found in the list of Global Properties currently in the database, a
 defaultValue is returned
 
This method should not have any authorization check
getGlobalProperty in interface AdministrationServicepropertyName - property key to look fordefaultValue - value to return if propertyName is not foundAPIExceptionAdministrationService.getGlobalProperty(java.lang.String,
      java.lang.String)public GlobalProperty getGlobalPropertyObject(java.lang.String propertyName)
AdministrationServicepropertyNamegetGlobalPropertyObject in interface AdministrationServicepropertyName - property key to look forpropertyNameAdministrationService.getGlobalPropertyObject(java.lang.String)@Deprecated public java.util.List<GlobalProperty> getGlobalProperties() throws APIException
getGlobalProperties in interface AdministrationServiceAPIExceptionAdministrationService.getGlobalProperties()@Deprecated public void setGlobalProperties(java.util.List<GlobalProperty> props) throws APIException
setGlobalProperties in interface AdministrationServiceAPIExceptionAdministrationService.setGlobalProperties(java.util.List)@Deprecated
public void deleteGlobalProperty(java.lang.String propertyName)
                                      throws APIException
AdministrationServicepurgeGlobalProperty(new GlobalProperty(propertyName));
deleteGlobalProperty in interface AdministrationServiceAPIExceptionAdministrationService.deleteGlobalProperty(java.lang.String)@Deprecated
public void setGlobalProperty(java.lang.String propertyName,
                                          java.lang.String propertyValue)
                                   throws APIException
AdministrationServicesaveGlobalProperty(new GlobalProperty(propertyName, propertyValue));
setGlobalProperty in interface AdministrationServiceAPIExceptionAdministrationService.setGlobalProperty(java.lang.String,
      java.lang.String)@Deprecated public void setGlobalProperty(GlobalProperty gp) throws APIException
setGlobalProperty in interface AdministrationServiceAPIExceptionAdministrationService.setGlobalProperty(org.openmrs.GlobalProperty)@Deprecated public void addGlobalProperty(GlobalProperty gp)
addGlobalProperty in interface AdministrationServiceAdministrationService.addGlobalProperty(org.openmrs.GlobalProperty)@Deprecated
public void addGlobalProperty(java.lang.String propertyName,
                                          java.lang.String propertyValue)
                                   throws APIException
addGlobalProperty in interface AdministrationServiceAPIExceptionAdministrationService.addGlobalProperty(java.lang.String,
      java.lang.String)public java.util.List<GlobalProperty> getAllGlobalProperties() throws APIException
AdministrationServicegetAllGlobalProperties in interface AdministrationServiceAPIExceptionAdministrationService.getAllGlobalProperties()public java.util.List<GlobalProperty> getGlobalPropertiesByPrefix(java.lang.String prefix)
AdministrationServiceprefix.getGlobalPropertiesByPrefix in interface AdministrationServiceprefix - The beginning of the property name to match.List of GlobalPropertys that match prefixAdministrationService.getGlobalPropertiesByPrefix(java.lang.String)public java.util.List<GlobalProperty> getGlobalPropertiesBySuffix(java.lang.String suffix)
AdministrationServicesuffix.getGlobalPropertiesBySuffix in interface AdministrationServiceList of GlobalPropertys that match .*suffixAdministrationService.getGlobalPropertiesBySuffix(java.lang.String)public void purgeGlobalProperty(GlobalProperty globalProperty) throws APIException
AdministrationServicepurgeGlobalProperty in interface AdministrationServiceglobalProperty - the global property to delete/remove from the databaseAPIExceptionAdministrationService.purgeGlobalProperty(org.openmrs.GlobalProperty)public java.util.List<GlobalProperty> saveGlobalProperties(java.util.List<GlobalProperty> props) throws APIException
AdministrationServicesaveGlobalProperties in interface AdministrationServiceprops - list of GlobalProperty objects to saveAPIExceptionAdministrationService.saveGlobalProperties(java.util.List)public GlobalProperty saveGlobalProperty(GlobalProperty gp) throws APIException
AdministrationServicesaveGlobalProperty in interface AdministrationServicegp - global property to saveAPIExceptionAdministrationService.saveGlobalProperty(org.openmrs.GlobalProperty)public java.util.List<java.util.List<java.lang.Object>> executeSQL(java.lang.String sql,
                                                                   boolean selectOnly)
                                                            throws APIException
AdministrationServicesql on the database. If selectOnly is flagged then any
 non-select sql statements will be rejected.executeSQL in interface AdministrationServiceAPIExceptionAdministrationService.executeSQL(java.lang.String, boolean)public void addGlobalPropertyListener(GlobalPropertyListener listener)
AdministrationServiceaddGlobalPropertyListener in interface AdministrationServicelistener - The listener to registerAdministrationService.addGlobalPropertyListener(GlobalPropertyListener)public void removeGlobalPropertyListener(GlobalPropertyListener listener)
AdministrationServiceAdministrationService.addGlobalPropertyListener(GlobalPropertyListener)removeGlobalPropertyListener in interface AdministrationServiceAdministrationService.removeGlobalPropertyListener(GlobalPropertyListener)public ImplementationId getImplementationId() throws APIException
AdministrationServicegetImplementationId in interface AdministrationServiceAPIExceptionAdministrationService.getImplementationId()public void setImplementationId(ImplementationId implementationId) throws APIException
AdministrationServiceimplementationId as this implementation's unique idsetImplementationId in interface AdministrationServiceimplementationId - the ImplementationId to saveAPIException - if implementationId is empty or is invalid according to central id
             serverAdministrationService.setImplementationId(org.openmrs.ImplementationId)public java.util.List<java.util.Locale> getAllowedLocales()
AdministrationServiceOpenmrsConstants.GLOBAL_PROPERTY_LOCALE_ALLOWED_LIST.getAllowedLocales in interface AdministrationServiceAdministrationService.getAllowedLocales()public void setGlobalLocaleList(GlobalLocaleList gll)
gll - the GlobalLocaleList object that is registered to the GlobalPropertyListeners as
            wellpublic java.util.Set<java.util.Locale> getPresentationLocales()
AdministrationServicegetPresentationLocales in interface AdministrationServiceAdministrationService.getPresentationLocales()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)public GlobalProperty getGlobalPropertyByUuid(java.lang.String uuid)
AdministrationServicegetGlobalPropertyByUuid in interface AdministrationServiceAdministrationService.getGlobalPropertyByUuid(java.lang.String)public <T> T getGlobalPropertyValue(java.lang.String propertyName,
                                    T defaultValue)
                             throws APIException
AdministrationServicegetGlobalPropertyValue in interface AdministrationServiceAPIExceptionAdministrationService.getGlobalPropertyValue(java.lang.String,
      java.lang.Object)public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getSystemInformation()
                                                                                                      throws APIException
AdministrationServicegetSystemInformation in interface AdministrationServiceAPIExceptionAdministrationService.getSystemInformation()public void purgeGlobalProperties(java.util.List<GlobalProperty> globalProperties) throws APIException
AdministrationServicepurgeGlobalProperties in interface AdministrationServiceglobalProperties - the global properties to delete/remove from the databaseAPIExceptionAdministrationService.purgeGlobalProperties(java.util.List)public int getMaximumPropertyLength(java.lang.Class<? extends OpenmrsObject> aClass, java.lang.String fieldName)
getMaximumPropertyLength in interface AdministrationServiceaClass - class of object getting length forfieldName - name of the field to get the length forAdministrationService.getMaximumPropertyLength(Class, String)public void validate(java.lang.Object object,
                     org.springframework.validation.Errors errors)
              throws APIException
AdministrationService
 Used by ValidateUtil.validate(Object).
validate in interface AdministrationServiceAPIExceptionAdministrationService.validate(java.lang.Object, Errors)public java.util.List<java.util.Locale> getSearchLocales()
                                                  throws APIException
AdministrationServiceThe list is constructed from a currently selected locale and allowed user proficient locales.
getSearchLocales in interface AdministrationServiceAPIExceptionorg.openmrs.api.AdministrationService#getSearchLocales(org.openmrs.User)public void setImplementationIdHttpClient(HttpClient implementationIdHttpClient)
AdministrationServicesetImplementationIdHttpClient in interface AdministrationServiceimplementationIdHttpClient - The implementation http clientpublic boolean isDatabaseStringComparisonCaseSensitive()
AdministrationServiceIt is an optimisation parameter for MySQL, which can speed up searching if set to false. See http://dev.mysql.com/doc/refman/5.7/en/case-sensitivity.html
It is set to true by default.
isDatabaseStringComparisonCaseSensitive in interface AdministrationServiceAdministrationService.isDatabaseStringComparisonCaseSensitive()Copyright © 2018 OpenMRS Inc.. All Rights Reserved.