|
|||||||||
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:
List<GlobalProperty> globalProperties = Context.getAdministrationService().getGlobalProperties();
Context
Method Summary | ||
---|---|---|
void |
addGlobalProperty(GlobalProperty gp)
Deprecated. use saveGlobalProperty(GlobalProperty) |
|
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 ConceptService.saveConceptClass(ConceptClass) |
|
void |
createConceptDatatype(ConceptDatatype cd)
Deprecated. use ConceptService.saveConceptDatatype(ConceptDatatype) |
|
void |
createConceptProposal(ConceptProposal cp)
Deprecated. use 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)
Deprecated. see reportingcompatibility module |
|
void |
createReportObject(AbstractReportObject reportObject)
Deprecated. see reportingcompatibility module |
|
void |
createRole(Role role)
Deprecated. see UserService.saveRole(Role) |
|
void |
createTribe(Tribe tribe)
Deprecated. The Tribe object is no longer supported. Install the Tribe module |
|
void |
deleteConceptClass(ConceptClass cc)
Deprecated. use ConceptService.purgeConceptClass(ConceptClass) |
|
void |
deleteConceptDatatype(ConceptDatatype cd)
Deprecated. use org.openmrs.api |
|
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)
Deprecated. see reportingcompatibility module |
|
void |
deleteReportObject(java.lang.Integer reportObjectId)
Deprecated. see reportingcompatibility module |
|
void |
deleteRole(Role role)
Deprecated. see UserService.purgeRole(Role) |
|
void |
deleteTribe(Tribe tribe)
Deprecated. The Tribe object is no longer supported. Install the Tribe module |
|
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. use getAllGlobalProperties() |
|
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 |
|
|
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 |
|
java.util.Collection<?> |
getMRNGeneratorLog()
Deprecated. use the mrngen module instead |
|
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.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 ConceptService.mapConceptProposalToConcept(ConceptProposal, Concept) |
|
void |
mrnGeneratorLog(java.lang.String site,
java.lang.Integer start,
java.lang.Integer count)
Deprecated. use the mrngen module instead |
|
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.rejectConceptProposal(ConceptProposal) |
|
void |
removeGlobalPropertyListener(GlobalPropertyListener listener)
Removes a GlobalPropertyListener previously registered by addGlobalPropertyListener(GlobalPropertyListener) |
|
void |
retireTribe(Tribe tribe)
Deprecated. The Tribe object is no longer supported. Install the Tribe module |
|
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 |
setImplementationId(ImplementationId implementationId)
Set the given implementationId as this implementation's unique id |
|
void |
unretireTribe(Tribe tribe)
Deprecated. The Tribe object is no longer supported. Install the Tribe module |
|
void |
updateConceptClass(ConceptClass cc)
Deprecated. use ConceptService.saveConceptClass(ConceptClass) |
|
void |
updateConceptDatatype(ConceptDatatype cd)
Deprecated. use ConceptService.saveConceptDatatype(ConceptDatatype) |
|
void |
updateConceptProposal(ConceptProposal cp)
Deprecated. use ConceptService.saveConceptProposal(ConceptProposal) |
|
void |
updateConceptSetDerived()
Deprecated. moved to ConceptService.updateConceptSetDerived() |
|
void |
updateConceptSetDerived(Concept concept)
Deprecated. moved to ConceptService.updateConceptSetDerived(Concept) ; |
|
void |
updateConceptWord(Concept concept)
Deprecated. moved to ConceptService.updateConceptWord(Concept) |
|
void |
updateConceptWords()
Deprecated. moved to ConceptService.updateConceptWords() |
|
void |
updateConceptWords(java.lang.Integer conceptIdStart,
java.lang.Integer conceptIdEnd)
Deprecated. moved to 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)
Deprecated. see reportingcompatibility module |
|
void |
updateReportObject(AbstractReportObject reportObject)
Deprecated. see reportingcompatibility module |
|
void |
updateRole(Role role)
Deprecated. see UserService.saveRole(Role) |
|
void |
updateTribe(Tribe tribe)
Deprecated. The Tribe object is no longer supported. Install the Tribe module |
Methods inherited from interface org.openmrs.api.OpenmrsService |
---|
onShutdown, onStartup |
Method Detail |
---|
void setAdministrationDAO(AdministrationDAO dao)
dao
- The dao implementation to use@Deprecated void createEncounterType(EncounterType encounterType) throws APIException
EncounterService.saveEncounterType(EncounterType)
APIException
@Deprecated void updateEncounterType(EncounterType encounterType) throws APIException
EncounterService.saveEncounterType(EncounterType)
APIException
@Deprecated void deleteEncounterType(EncounterType encounterType) throws APIException
EncounterService.purgeEncounterType(EncounterType)
APIException
@Deprecated void createPatientIdentifierType(PatientIdentifierType patientIdentifierType) throws APIException
PatientService.savePatientIdentifierType(PatientIdentifierType)
APIException
PatientService.savePatientIdentifierType(PatientIdentifierType)
@Deprecated void updatePatientIdentifierType(PatientIdentifierType patientIdentifierType) throws APIException
PatientService.savePatientIdentifierType(PatientIdentifierType)
APIException
PatientService.savePatientIdentifierType(PatientIdentifierType)
@Deprecated void deletePatientIdentifierType(PatientIdentifierType patientIdentifierType) throws APIException
PatientService.purgePatientIdentifierType(PatientIdentifierType)
APIException
PatientService.purgePatientIdentifierType(PatientIdentifierType)
@Deprecated void createTribe(Tribe tribe) throws APIException
APIException
@Deprecated void updateTribe(Tribe tribe) throws APIException
APIException
@Deprecated void deleteTribe(Tribe tribe) throws APIException
APIException
@Deprecated void retireTribe(Tribe tribe) throws APIException
APIException
@Deprecated void unretireTribe(Tribe tribe) throws APIException
APIException
@Deprecated void createFieldType(FieldType fieldType) throws APIException
FormService.saveFieldType(FieldType)
APIException
@Deprecated void updateFieldType(FieldType fieldType) throws APIException
FormService.saveFieldType(FieldType)
APIException
@Deprecated void deleteFieldType(FieldType fieldType) throws APIException
FormService.purgeFieldType(FieldType)
APIException
@Deprecated @Authorized(value="Manage Mime Types") void createMimeType(MimeType mimeType) throws APIException
ObsService.saveMimeType(MimeType)
APIException
@Deprecated @Authorized(value="Manage Mime Types") void updateMimeType(MimeType mimeType) throws APIException
ObsService.saveMimeType(MimeType)
APIException
@Deprecated @Authorized(value="Manage Mime Types") void deleteMimeType(MimeType mimeType) throws APIException
ObsService.purgeMimeType(MimeType)
APIException
@Deprecated void createLocation(Location location) throws APIException
LocationService.saveLocation(Location)
APIException
@Deprecated void updateLocation(Location location) throws APIException
LocationService.saveLocation(Location)
APIException
@Deprecated void deleteLocation(Location location) throws APIException
LocationService.purgeLocation(Location)
APIException
@Deprecated void createRole(Role role) throws APIException
UserService.saveRole(Role)
APIException
@Deprecated void updateRole(Role role) throws APIException
UserService.saveRole(Role)
APIException
@Deprecated void deleteRole(Role role) throws APIException
UserService.purgeRole(Role)
APIException
@Deprecated void createPrivilege(Privilege privilege) throws APIException
UserService.savePrivilege(Privilege)
APIException
@Deprecated void updatePrivilege(Privilege privilege) throws APIException
UserService.savePrivilege(Privilege)
APIException
@Deprecated void deletePrivilege(Privilege privilege) throws APIException
UserService.purgePrivilege(Privilege)
APIException
@Deprecated void createConceptClass(ConceptClass cc) throws APIException
ConceptService.saveConceptClass(ConceptClass)
cc
- ConceptClass to create
APIException
@Deprecated void updateConceptClass(ConceptClass cc) throws APIException
ConceptService.saveConceptClass(ConceptClass)
cc
- ConceptClass to update
APIException
@Deprecated void deleteConceptClass(ConceptClass cc) throws APIException
ConceptService.purgeConceptClass(ConceptClass)
cc
- ConceptClass to delete
APIException
@Deprecated void createConceptDatatype(ConceptDatatype cd) throws APIException
ConceptService.saveConceptDatatype(ConceptDatatype)
cd
- ConceptDatatype to create
APIException
@Deprecated void updateConceptDatatype(ConceptDatatype cd) throws APIException
ConceptService.saveConceptDatatype(ConceptDatatype)
cd
- ConceptDatatype to update
APIException
@Deprecated void deleteConceptDatatype(ConceptDatatype cd) throws APIException
org.openmrs.api
cd
- ConceptDatatype to delete
APIException
@Deprecated void createReport(Report report) throws APIException
report
- Report to create
APIException
@Deprecated void updateReport(Report report) throws APIException
report
- Report to update
APIException
@Deprecated void deleteReport(Report report) throws APIException
report
- Report to delete
APIException
@Deprecated void createReportObject(AbstractReportObject reportObject) throws APIException
reportObject
- Report Object to create
APIException
@Deprecated void updateReportObject(AbstractReportObject reportObject) throws APIException
reportObject
- the Report Object to update
APIException
@Deprecated void deleteReportObject(java.lang.Integer reportObjectId) throws APIException
reportObjectId
- Internal identifier for the Report Object to delete
APIException
@Deprecated void updateConceptWord(Concept concept) throws APIException
ConceptService.updateConceptWord(Concept)
concept
-
APIException
@Deprecated void updateConceptWords() throws APIException
ConceptService.updateConceptWords()
APIException
@Deprecated void updateConceptWords(java.lang.Integer conceptIdStart, java.lang.Integer conceptIdEnd) throws APIException
ConceptService.updateConceptWords(Integer, Integer)
conceptIdStart
and
conceptIdEnd
(inclusive) calling updateConceptWord(concept)
APIException
@Deprecated void updateConceptSetDerived(Concept concept) throws APIException
ConceptService.updateConceptSetDerived(Concept)
;
concept
-
APIException
@Deprecated void updateConceptSetDerived() throws APIException
ConceptService.updateConceptSetDerived()
APIException
@Deprecated void createConceptProposal(ConceptProposal cp) throws APIException
ConceptService.saveConceptProposal(ConceptProposal)
cp
-
APIException
@Deprecated void updateConceptProposal(ConceptProposal cp) throws APIException
ConceptService.saveConceptProposal(ConceptProposal)
cp
-
APIException
@Deprecated void mapConceptProposalToConcept(ConceptProposal cp, Concept mappedConcept) throws APIException
ConceptService.mapConceptProposalToConcept(ConceptProposal, Concept)
cp
- mappedConcept
-
APIException
@Deprecated void rejectConceptProposal(ConceptProposal cp)
ConceptService.rejectConceptProposal(ConceptProposal)
cp
- @Deprecated void mrnGeneratorLog(java.lang.String site, java.lang.Integer start, java.lang.Integer count)
site
- start
- count
- @Deprecated @Transactional(readOnly=true) java.util.Collection<?> getMRNGeneratorLog()
@Transactional(readOnly=true) GlobalProperty getGlobalPropertyByUuid(java.lang.String uuid) throws APIException
APIException
@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
APIException
getGlobalProperty(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) GlobalProperty getGlobalPropertyObject(java.lang.String propertyName)
propertyName
propertyName
- property key to look for
propertyName
@Transactional(readOnly=true) java.util.List<GlobalProperty> getGlobalPropertiesByPrefix(java.lang.String prefix)
prefix
.
prefix
- The beginning of the property name to match.
List
of GlobalProperty
s that match prefix
@Transactional(readOnly=true) java.util.List<GlobalProperty> getGlobalPropertiesBySuffix(java.lang.String suffix)
suffix
.
prefix
- The end of the property name to match.
List
of GlobalProperty
s that match .*suffix
@Transactional(readOnly=true) @Authorized(value="View Global Properties") java.util.List<GlobalProperty> getAllGlobalProperties() throws APIException
APIException
@Deprecated @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
- list of GlobalProperty objects to save
APIException
@Deprecated void 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
APIException
@Authorized(value="Purge Global Properties") void purgeGlobalProperties(java.util.List<GlobalProperty> globalProperties) throws APIException
globalProperties
- the global properties to delete/remove from the database
APIException
@Deprecated void deleteGlobalProperty(java.lang.String propertyName)
purgeGlobalProperty(GlobalProperty)
purgeGlobalProperty(new GlobalProperty(propertyName));
@Deprecated 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
APIException
@Deprecated void setGlobalProperty(GlobalProperty gp)
saveGlobalProperty(GlobalProperty)
@Deprecated void addGlobalProperty(java.lang.String propertyName, java.lang.String propertyValue)
saveGlobalProperty(GlobalProperty)
@Deprecated void addGlobalProperty(GlobalProperty gp)
saveGlobalProperty(GlobalProperty)
void addGlobalPropertyListener(GlobalPropertyListener listener)
listener
- The listener to registerGlobalPropertyListener
void removeGlobalPropertyListener(GlobalPropertyListener listener)
addGlobalPropertyListener(GlobalPropertyListener)
listener
- @Authorized(value="SQL Level Access") 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
@Transactional(readOnly=true) @Authorized(value="Manage Implementation Id") ImplementationId getImplementationId() throws APIException
APIException
@Authorized(value="Manage Implementation Id") void setImplementationId(ImplementationId implementationId) throws APIException
implementationId
as this implementation's unique id
implementationId
- the ImplementationId to save
APIException
- if implementationId is empty or is invalid according to central id server@Transactional(readOnly=true) java.util.List<java.util.Locale> getAllowedLocales()
OpenmrsConstants.GLOBAL_PROPERTY_LOCALE_ALLOWED_LIST
.
@Transactional(readOnly=true) java.util.Set<java.util.Locale> getPresentationLocales()
<T> T getGlobalPropertyValue(java.lang.String propertyName, T defaultValue) throws APIException
T
- propertyName
-
APIException
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |