|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
@Transactional public interface AdministrationService
Contains methods pertaining to doing some administrative tasks in OpenMRS
Use:
ListglobalProperties = Context.getAdministrationService().getGlobalProperties();
Context| Method Summary | |
|---|---|
void |
addGlobalProperty(GlobalProperty gp)
|
void |
addGlobalProperty(java.lang.String propertyName,
java.lang.String propertyValue)
Deprecated. use saveGlobalProperty(GlobalProperty) |
void |
addGlobalPropertyListener(GlobalPropertyListener listener)
Allows code to be notified when a global property is created/edited/deleted. |
void |
createConceptClass(ConceptClass cc)
Deprecated. use org.openmrs.api.ConceptService.saveConceptClass(ConceptClass) |
void |
createConceptDatatype(ConceptDatatype cd)
Deprecated. use org.openmrs.api.ConceptService.saveConceptDatatype(ConceptDatatype) |
void |
createConceptProposal(ConceptProposal cp)
Deprecated. use org.openmrs.api.ConceptService.saveConceptProposal(ConceptProposal) |
void |
createEncounterType(EncounterType encounterType)
Deprecated. use EncounterService.saveEncounterType(EncounterType) |
void |
createFieldType(FieldType fieldType)
Deprecated. use FormService.saveFieldType(FieldType) |
void |
createLocation(Location location)
Deprecated. @see LocationService.saveLocation(Location) |
void |
createMimeType(MimeType mimeType)
Deprecated. @see ObsService.saveMimeType(MimeType) |
void |
createPatientIdentifierType(PatientIdentifierType patientIdentifierType)
Deprecated. replaced by PatientService.savePatientIdentifierType(PatientIdentifierType) |
void |
createPrivilege(Privilege privilege)
Deprecated. @see UserService.savePrivilege(Privilege) |
void |
createReport(Report report)
Create a new Report |
void |
createReportObject(AbstractReportObject reportObject)
Create a new Report Object |
void |
createRole(Role role)
Deprecated. @see UserService.saveRole(Role) |
void |
createTribe(Tribe tribe)
Deprecated. tribe will be moved to patient attribute |
void |
deleteConceptClass(ConceptClass cc)
Deprecated. use org.openmrs.api.ConceptService.retireConceptClass(ConceptClass) or org.openmrs.api.ConcepService.purgeConceptClass(ConceptClass) |
void |
deleteConceptDatatype(ConceptDatatype cd)
Deprecated. use org.openmrs.api.ConceptService.retireConceptDatatype(ConceptDatatype) or org.openmrs.api.deleteConceptDatatype(ConceptDatatype) |
void |
deleteEncounterType(EncounterType encounterType)
Deprecated. use EncounterService.purgeEncounterType(EncounterType) |
void |
deleteFieldType(FieldType fieldType)
Deprecated. use FormService.purgeFieldType(FieldType) |
void |
deleteGlobalProperty(java.lang.String propertyName)
Deprecated. use purgeGlobalProperty(GlobalProperty) |
void |
deleteLocation(Location location)
Deprecated. @see LocationService.purgeLocation(Location) |
void |
deleteMimeType(MimeType mimeType)
Deprecated. @see ObsService.purgeMimeType(MimeType) |
void |
deletePatientIdentifierType(PatientIdentifierType patientIdentifierType)
Deprecated. replaced by PatientService.purgePatientIdentifierType(PatientIdentifierType) |
void |
deletePrivilege(Privilege privilege)
Deprecated. @see UserService.purgePrivilege(Privilege) |
void |
deleteReport(Report report)
Delete Report |
void |
deleteReportObject(java.lang.Integer reportObjectId)
Delete Report Object |
void |
deleteRole(Role role)
Deprecated. @see UserService.purgeRole(Role) |
void |
deleteTribe(Tribe tribe)
Deprecated. tribe will be moved to patient attribute |
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<DataEntryStatistic> |
getDataEntryStatistics(java.util.Date fromDate,
java.util.Date toDate,
java.lang.String encounterUserColumn,
java.lang.String orderUserColumn,
java.lang.String groupBy)
Creates a list of data entry stats from fromDate to toDate
EncounterUserColumn is a column in the encounter table like creator, provider, etc
(defaults to creator)
EncounterUserColumn is a column in the encounter table like creator, orderer, etc
(defaults to orderer) |
java.util.List<GlobalProperty> |
getGlobalProperties()
Deprecated. use getAllGlobalProperties() |
java.lang.String |
getGlobalProperty(java.lang.String propertyName)
Gets the global property that has the given propertyName
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 |
java.lang.String |
getGlobalProperty(java.lang.String propertyName,
java.lang.String defaultValue)
Gets the global property that has the given propertyName
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 |
java.util.Collection<?> |
getMRNGeneratorLog()
To be deprecated when the mrn generator module is completed |
java.util.SortedMap<java.lang.String,java.lang.String> |
getSystemVariables()
Get a listing or important variables used in openmrs |
void |
mapConceptProposalToConcept(ConceptProposal cp,
Concept mappedConcept)
Deprecated. moved to org.openmrs.api.ConceptService.mapConceptProposalToConcept(ConceptProposal, Concept) |
void |
mrnGeneratorLog(java.lang.String site,
java.lang.Integer start,
java.lang.Integer count)
To be deprecated when mrn generator module is completed |
void |
purgeGlobalProperty(GlobalProperty globalProperty)
Completely remove the given global property from the database |
void |
rejectConceptProposal(ConceptProposal cp)
Deprecated. moved to org.openmrs.api.ConceptServicerejectConceptProposal(ConceptProposal) |
void |
removeGlobalPropertyListener(GlobalPropertyListener listener)
Removes a GlobalPropertyListener previously registered by #addGlobalPropertyListener(String, GlobalPropertyListener) |
void |
retireTribe(Tribe tribe)
Deprecated. tribe will be moved to patient attribute |
java.util.List<GlobalProperty> |
saveGlobalProperties(java.util.List<GlobalProperty> props)
Save the given list of global properties to the database overwriting all values with the given values. |
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 |
setGlobalProperties(java.util.List<GlobalProperty> props)
Deprecated. use saveGlobalProperties(List) |
void |
setGlobalProperty(GlobalProperty gp)
Deprecated. use saveGlobalProperty(GlobalProperty) |
void |
setGlobalProperty(java.lang.String propertyName,
java.lang.String propertyValue)
Deprecated. use #saveGlobalProperty(GlobalProperty) |
void |
unretireTribe(Tribe tribe)
Deprecated. tribe will be moved to patient attribute |
void |
updateConceptClass(ConceptClass cc)
Deprecated. use org.openmrs.api.ConceptService.saveConceptClass(ConceptClass) |
void |
updateConceptDatatype(ConceptDatatype cd)
Deprecated. use org.openmrs.api.ConceptService.saveConceptDatatype(ConceptDatatype) |
void |
updateConceptProposal(ConceptProposal cp)
Deprecated. use org.openmrs.api.ConceptService.saveConceptProposal(ConceptProposal) |
void |
updateConceptSetDerived()
Deprecated. moved to org.openmrs.api.ConceptService.updateConceptSetDerived() |
void |
updateConceptSetDerived(Concept concept)
Deprecated. moved to org.openmrs.api.ConceptService.updateConceptSetDerived(Concept); |
void |
updateConceptWord(Concept concept)
Deprecated. moved to org.openmrs.api.ConceptService.updateConceptWord(Concept) |
void |
updateConceptWords()
Deprecated. moved to org.openmrs.api.ConceptService.updateConceptWords() |
void |
updateConceptWords(java.lang.Integer conceptIdStart,
java.lang.Integer conceptIdEnd)
Deprecated. moved to org.openmrs.api.ConceptService.updateConceptWords(Integer, Integer) |
void |
updateEncounterType(EncounterType encounterType)
Deprecated. use EncounterService.saveEncounterType(EncounterType) |
void |
updateFieldType(FieldType fieldType)
Deprecated. use FormService.saveFieldType(FieldType) |
void |
updateLocation(Location location)
Deprecated. @see LocationService.saveLocation(Location) |
void |
updateMimeType(MimeType mimeType)
Deprecated. @see ObsService.saveMimeType(MimeType) |
void |
updatePatientIdentifierType(PatientIdentifierType patientIdentifierType)
Deprecated. replaced by PatientService.savePatientIdentifierType(PatientIdentifierType) |
void |
updatePrivilege(Privilege privilege)
Deprecated. @see UserService.savePrivilege(Privilege) |
void |
updateReport(Report report)
Update Report |
void |
updateReportObject(AbstractReportObject reportObject)
Update Report Object |
void |
updateRole(Role role)
Deprecated. @see UserService.saveRole(Role) |
void |
updateTribe(Tribe tribe)
Deprecated. tribe will be moved to patient attribute |
| Methods inherited from interface org.openmrs.api.OpenmrsService |
|---|
onShutdown, onStartup |
| Method Detail |
|---|
void setAdministrationDAO(AdministrationDAO dao)
dao - The dao implementation to use
void createEncounterType(EncounterType encounterType)
throws APIException
EncounterService.saveEncounterType(EncounterType)
APIException
void updateEncounterType(EncounterType encounterType)
throws APIException
EncounterService.saveEncounterType(EncounterType)
APIException
void deleteEncounterType(EncounterType encounterType)
throws APIException
EncounterService.purgeEncounterType(EncounterType)
APIException
void createPatientIdentifierType(PatientIdentifierType patientIdentifierType)
throws APIException
PatientService.savePatientIdentifierType(PatientIdentifierType)
APIExceptionPatientService.savePatientIdentifierType(PatientIdentifierType)
void updatePatientIdentifierType(PatientIdentifierType patientIdentifierType)
throws APIException
PatientService.savePatientIdentifierType(PatientIdentifierType)
APIExceptionPatientService.savePatientIdentifierType(PatientIdentifierType)
void deletePatientIdentifierType(PatientIdentifierType patientIdentifierType)
throws APIException
PatientService.purgePatientIdentifierType(PatientIdentifierType)
APIExceptionPatientService.purgePatientIdentifierType(PatientIdentifierType)
void createTribe(Tribe tribe)
throws APIException
APIException
void updateTribe(Tribe tribe)
throws APIException
APIException
void deleteTribe(Tribe tribe)
throws APIException
APIException
void retireTribe(Tribe tribe)
throws APIException
APIException
void unretireTribe(Tribe tribe)
throws APIException
APIException
void createFieldType(FieldType fieldType)
throws APIException
FormService.saveFieldType(FieldType)
APIException
void updateFieldType(FieldType fieldType)
throws APIException
FormService.saveFieldType(FieldType)
APIException
void deleteFieldType(FieldType fieldType)
throws APIException
FormService.purgeFieldType(FieldType)
APIException
@Authorized(value="Manage Mime Types")
void createMimeType(MimeType mimeType)
throws APIException
ObsService.saveMimeType(MimeType)
APIException
@Authorized(value="Manage Mime Types")
void updateMimeType(MimeType mimeType)
throws APIException
ObsService.saveMimeType(MimeType)
APIException
@Authorized(value="Manage Mime Types")
void deleteMimeType(MimeType mimeType)
throws APIException
ObsService.purgeMimeType(MimeType)
APIException
void createLocation(Location location)
throws APIException
LocationService.saveLocation(Location)
APIException
void updateLocation(Location location)
throws APIException
LocationService.saveLocation(Location)
APIException
void deleteLocation(Location location)
throws APIException
LocationService.purgeLocation(Location)
APIException
void createRole(Role role)
throws APIException
UserService.saveRole(Role)
APIException
void updateRole(Role role)
throws APIException
UserService.saveRole(Role)
APIException
void deleteRole(Role role)
throws APIException
UserService.purgeRole(Role)
APIException
void createPrivilege(Privilege privilege)
throws APIException
UserService.savePrivilege(Privilege)
APIException
void updatePrivilege(Privilege privilege)
throws APIException
UserService.savePrivilege(Privilege)
APIException
void deletePrivilege(Privilege privilege)
throws APIException
UserService.purgePrivilege(Privilege)
APIException
void createConceptClass(ConceptClass cc)
throws APIException
org.openmrs.api.ConceptService.saveConceptClass(ConceptClass)
ConceptClass - to create
APIException
void updateConceptClass(ConceptClass cc)
throws APIException
org.openmrs.api.ConceptService.saveConceptClass(ConceptClass)
ConceptClass - to update
APIException
void deleteConceptClass(ConceptClass cc)
throws APIException
org.openmrs.api.ConceptService.retireConceptClass(ConceptClass) or org.openmrs.api.ConcepService.purgeConceptClass(ConceptClass)
ConceptClass - to delete
APIException
void createConceptDatatype(ConceptDatatype cd)
throws APIException
org.openmrs.api.ConceptService.saveConceptDatatype(ConceptDatatype)
ConceptDatatype - to create
APIException
void updateConceptDatatype(ConceptDatatype cd)
throws APIException
org.openmrs.api.ConceptService.saveConceptDatatype(ConceptDatatype)
ConceptDatatype - to update
APIException
void deleteConceptDatatype(ConceptDatatype cd)
throws APIException
org.openmrs.api.ConceptService.retireConceptDatatype(ConceptDatatype) or org.openmrs.api.deleteConceptDatatype(ConceptDatatype)
ConceptDatatype - to delete
APIException
void createReport(Report report)
throws APIException
Report - to create
APIException
void updateReport(Report report)
throws APIException
Report - to update
APIException
void deleteReport(Report report)
throws APIException
Report - to delete
APIException
void createReportObject(AbstractReportObject reportObject)
throws APIException
Report - Object to create
APIException
void updateReportObject(AbstractReportObject reportObject)
throws APIException
Report - Object to update
APIException
void deleteReportObject(java.lang.Integer reportObjectId)
throws APIException
Report - Object to delete
APIException
void updateConceptWord(Concept concept)
throws APIException
org.openmrs.api.ConceptService.updateConceptWord(Concept)
concept -
APIException
void updateConceptWords()
throws APIException
org.openmrs.api.ConceptService.updateConceptWords()
APIException
void updateConceptWords(java.lang.Integer conceptIdStart,
java.lang.Integer conceptIdEnd)
throws APIException
org.openmrs.api.ConceptService.updateConceptWords(Integer, Integer)
conceptIdStart
and conceptIdEnd (inclusive) calling updateConceptWord(concept)
APIException
void updateConceptSetDerived(Concept concept)
throws APIException
org.openmrs.api.ConceptService.updateConceptSetDerived(Concept);
concept -
APIException
void updateConceptSetDerived()
throws APIException
org.openmrs.api.ConceptService.updateConceptSetDerived()
APIException
void createConceptProposal(ConceptProposal cp)
throws APIException
org.openmrs.api.ConceptService.saveConceptProposal(ConceptProposal)
cp -
APIException
void updateConceptProposal(ConceptProposal cp)
throws APIException
org.openmrs.api.ConceptService.saveConceptProposal(ConceptProposal)
cp -
APIException
void mapConceptProposalToConcept(ConceptProposal cp,
Concept mappedConcept)
throws APIException
org.openmrs.api.ConceptService.mapConceptProposalToConcept(ConceptProposal, Concept)
cp - mappedConcept -
APIExceptionvoid rejectConceptProposal(ConceptProposal cp)
org.openmrs.api.ConceptServicerejectConceptProposal(ConceptProposal)
cp -
void mrnGeneratorLog(java.lang.String site,
java.lang.Integer start,
java.lang.Integer count)
site - start - count - @Transactional(readOnly=true) java.util.Collection<?> getMRNGeneratorLog()
@Transactional(readOnly=true)
@Authorized(value="View Administration Functions")
java.util.SortedMap<java.lang.String,java.lang.String> getSystemVariables()
throws APIException
APIException
@Transactional(readOnly=true)
java.lang.String getGlobalProperty(java.lang.String propertyName)
throws APIException
propertyName
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
propertyName - property key to look for
APIExceptiongetGlobalProperty(String, String)
@Transactional(readOnly=true)
java.lang.String getGlobalProperty(java.lang.String propertyName,
java.lang.String defaultValue)
throws APIException
propertyName
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
propertyName - property key to look fordefaultValue - value to return if propertyName is not found
APIException
@Transactional(readOnly=true)
@Authorized(value="View Global Properties")
java.util.List<GlobalProperty> getAllGlobalProperties()
throws APIException
APIException@Transactional(readOnly=true) java.util.List<GlobalProperty> getGlobalProperties()
getAllGlobalProperties()
@Authorized(value="Manage Global Properties")
java.util.List<GlobalProperty> saveGlobalProperties(java.util.List<GlobalProperty> props)
throws APIException
props - GlobalProperty objects to save
APIExceptionvoid setGlobalProperties(java.util.List<GlobalProperty> props)
saveGlobalProperties(List)
@Authorized(value="Purge Global Properties")
void purgeGlobalProperty(GlobalProperty globalProperty)
throws APIException
globalProperty - the global property to delete/remove from the database
APIExceptionvoid deleteGlobalProperty(java.lang.String propertyName)
purgeGlobalProperty(GlobalProperty)
purgeGlobalProperty(new GlobalProperty(propertyName));
void setGlobalProperty(java.lang.String propertyName,
java.lang.String propertyValue)
purgeGlobalProperty(new GlobalProperty(propertyName, propertyValue));
@Authorized(value="Manage Global Properties")
GlobalProperty saveGlobalProperty(GlobalProperty gp)
throws APIException
gp - global property to save
APIExceptionvoid setGlobalProperty(GlobalProperty gp)
saveGlobalProperty(GlobalProperty)
void addGlobalProperty(java.lang.String propertyName,
java.lang.String propertyValue)
saveGlobalProperty(GlobalProperty)
void addGlobalProperty(GlobalProperty gp)
void addGlobalPropertyListener(GlobalPropertyListener listener)
listener - The listener to registerGlobalPropertyListenervoid removeGlobalPropertyListener(GlobalPropertyListener listener)
#addGlobalPropertyListener(String, GlobalPropertyListener)
listener -
java.util.List<DataEntryStatistic> getDataEntryStatistics(java.util.Date fromDate,
java.util.Date toDate,
java.lang.String encounterUserColumn,
java.lang.String orderUserColumn,
java.lang.String groupBy)
fromDate to toDate
EncounterUserColumn is a column in the encounter table like creator, provider, etc
(defaults to creator)
EncounterUserColumn is a column in the encounter table like creator, orderer, etc
(defaults to orderer)
fromDate - toDate - encounterUserColumn - orderUserColumn - groupBy - (optional)
java.util.List<java.util.List<java.lang.Object>> executeSQL(java.lang.String sql,
boolean selectOnly)
throws APIException
sql on the database. If selectOnly is
flagged then any non-select sql statements will be rejected.
sql - selectOnly -
APIException
|
OpenMRS-trunk | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||