Skip to content

Commit 279a781

Browse files
committed
Trunk 6426:Deprecate the use of Context.get...Service
1 parent f0e5491 commit 279a781

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+950
-677
lines changed

api/src/main/java/org/openmrs/api/AdministrationService.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,6 @@ public interface AdministrationService extends OpenmrsService {
4545

4646
public static final String GP_SERIALIZER_WHITELIST_HIERARCHY_TYPES_PREFIX = "hierarchyOf:";
4747

48-
/**
49-
* Used by Spring to set the specific/chosen database access implementation
50-
*
51-
* @param dao The dao implementation to use
52-
*/
53-
public void setAdministrationDAO(AdministrationDAO dao);
54-
5548
/**
5649
* Get a global property by its uuid. There should be only one of these in the database (well,
5750
* in the world actually). If multiple are found, an error is thrown.

api/src/main/java/org/openmrs/api/CohortService.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,6 @@
3333
*/
3434
public interface CohortService extends OpenmrsService {
3535

36-
/**
37-
* Sets the CohortDAO for this service to use
38-
*
39-
* @param dao
40-
*/
41-
public void setCohortDAO(CohortDAO dao);
42-
4336
/**
4437
* Save a cohort to the database (create if new, or update if changed) This method will throw an
4538
* exception if any patientIds in the Cohort don't exist.

api/src/main/java/org/openmrs/api/ConceptService.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,6 @@
7575
*/
7676
public interface ConceptService extends OpenmrsService {
7777

78-
/**
79-
* Sets the data access object for Concepts. The dao is used for saving and getting concepts
80-
* to/from the database
81-
*
82-
* @param dao The data access object to use
83-
*/
84-
public void setConceptDAO(ConceptDAO dao);
85-
8678
/**
8779
* Get Concept by its UUID
8880
*

api/src/main/java/org/openmrs/api/EncounterService.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,6 @@
3838
*/
3939
public interface EncounterService extends OpenmrsService {
4040

41-
/**
42-
* Set the given <code>dao</code> on this encounter service. The dao will act as the conduit
43-
* through with all encounter calls get to the database
44-
*
45-
* @param dao
46-
*/
47-
public void setEncounterDAO(EncounterDAO dao);
48-
4941
/**
5042
* Saves a new encounter or updates an existing encounter. If an existing encounter, this method
5143
* will automatically apply encounter.patient to all encounter.obs.patient

api/src/main/java/org/openmrs/api/LocationService.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,6 @@
3535
*/
3636
public interface LocationService extends OpenmrsService {
3737

38-
/**
39-
* Set the data access object that the service will use to interact with the database. This is
40-
* set by spring in the applicationContext-service.xml file
41-
*
42-
* @param dao
43-
*/
44-
public void setLocationDAO(LocationDAO dao);
45-
4638
/**
4739
* Save location to database (create if new or update if changed)
4840
*

api/src/main/java/org/openmrs/api/ObsService.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,6 @@
4545
*/
4646
public interface ObsService extends OpenmrsService {
4747

48-
/**
49-
* Set the given <code>dao</code> on this obs service. The dao will act as the conduit through
50-
* with all obs calls get to the database
51-
*
52-
* @param dao specific ObsDAO to use for this service
53-
*/
54-
public void setObsDAO(ObsDAO dao);
55-
5648
/**
5749
* Get an observation
5850
*

api/src/main/java/org/openmrs/api/OrderService.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,6 @@ public interface OrderService extends OpenmrsService {
4141

4242
public static final String PARALLEL_ORDERS = "PARALLEL_ORDERS";
4343

44-
/**
45-
* Setter for the Order data access object. The dao is used for saving and getting orders
46-
* to/from the database
47-
*
48-
* @param dao The data access object to use
49-
*/
50-
public void setOrderDAO(OrderDAO dao);
51-
5244
/**
5345
* Save or update the given <code>order</code> in the database. If the OrderType for the order
5446
* is not specified, then it will be set to the one set on the OrderContext if any, if none

api/src/main/java/org/openmrs/api/OrderSetService.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,6 @@
2626
*/
2727
public interface OrderSetService extends OpenmrsService {
2828

29-
/**
30-
* Setter for the OrderSet data access object. The dao is used for saving and getting orders
31-
* to/from the database
32-
*
33-
* @param dao The data access object to use
34-
*/
35-
void setOrderSetDAO(OrderSetDAO dao);
36-
3729
/**
3830
* Save or update the given <code>orderSet</code> in the database. If the OrderSet is retired
3931
* it will set retired by and retired date.

api/src/main/java/org/openmrs/api/PatientService.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,6 @@
4242
*/
4343
public interface PatientService extends OpenmrsService {
4444

45-
/**
46-
* Sets the DAO for this service. This is done by DI and Spring. See the
47-
* applicationContext-service.xml definition file.
48-
*
49-
* @param dao DAO for this service
50-
*/
51-
public void setPatientDAO(PatientDAO dao);
52-
5345
/**
5446
* Saved the given <code>patient</code> to the database
5547
*

api/src/main/java/org/openmrs/api/PersonService.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,8 @@ public static enum ATTR_VIEW_TYPE {
6565
* Attributes to be shown in the header
6666
*/
6767
HEADER,
68-
6968
}
7069

71-
/**
72-
* Sets the DAO for this service. This is done through spring injection
73-
*
74-
* @param dao DAO for this service
75-
*/
76-
public void setPersonDAO(PersonDAO dao);
77-
7870
/**
7971
* Find a similar person given the attributes. This does a very loose lookup with the
8072
* <code>nameSearch</code> parameter. This does a very loose lookup on <code>birthyear</code> as

0 commit comments

Comments
 (0)