Skip to content

Commit

Permalink
O3-2440 Harmonize OpenMRS version(s) supported by Queue module
Browse files Browse the repository at this point in the history
  • Loading branch information
mseaton authored Sep 27, 2023
1 parent 14c0ea2 commit 175f0a1
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
*/
@SuppressWarnings("unused")
@SubResource(parent = QueueResource.class, path = "count", supportedClass = QueueEntryCount.class, supportedOpenmrsVersions = {
"2.0 - 2.*" }, order = 12)
"2.3 - 9.*" }, order = 12)
public class QueueEntryCountSubResource extends DelegatingSubResource<QueueEntryCount, Queue, QueueResource> {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
*/
@SuppressWarnings("unused")
@Resource(name = RestConstants.VERSION_1
+ "/queue-entry-metrics", supportedClass = QueueEntryMetric.class, supportedOpenmrsVersions = { "2.0 - 2.*" })
+ "/queue-entry-metrics", supportedClass = QueueEntryMetric.class, supportedOpenmrsVersions = { "2.3 - 9.*" })
public class QueueEntryMetricsResource extends DelegatingCrudResource<SimpleObject> {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import org.openmrs.module.webservices.rest.web.response.ResponseException;

@Resource(name = RestConstants.VERSION_1
+ "/queue-entry-number", supportedClass = QueueEntryNumber.class, supportedOpenmrsVersions = { "2.0 - 2.*" })
+ "/queue-entry-number", supportedClass = QueueEntryNumber.class, supportedOpenmrsVersions = { "2.3 - 9.*" })
public class QueueEntryNumberResource extends DelegatingCrudResource<SimpleObject> {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

@SuppressWarnings("unused")
@SubResource(parent = QueueResource.class, path = "entry", supportedClass = QueueEntry.class, supportedOpenmrsVersions = {
"2.0 - 2.*" }, order = 10)
"2.3 - 9.*" }, order = 10)
public class QueueEntrySubResource extends DelegatingSubResource<QueueEntry, Queue, QueueResource> {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import org.openmrs.module.webservices.rest.web.response.ResponseException;

@Resource(name = RestConstants.VERSION_1 + "/queue-metrics", supportedClass = QueueMetric.class, supportedOpenmrsVersions = {
"2.0 - 2.*" })
"2.3 - 9.*" })
public class QueueMetricsResource extends DelegatingCrudResource<SimpleObject> {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

@SuppressWarnings("unused")
@Resource(name = RestConstants.VERSION_1 + "/queue", supportedClass = Queue.class, supportedOpenmrsVersions = {
"2.0 - 2.*" })
"2.3 - 9.*" })
public class QueueResource extends DelegatingCrudResource<Queue> {

private final QueueService queueService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import org.openmrs.module.webservices.rest.web.response.ResponseException;

@Resource(name = RestConstants.VERSION_1 + "/queueroom", supportedClass = QueueRoom.class, supportedOpenmrsVersions = {
"2.0 - 2.*" })
"2.3 - 9.*" })
public class QueueRoomResource extends DelegatingCrudResource<QueueRoom> {

private final QueueRoomService queueRoomService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import org.openmrs.module.webservices.rest.web.response.ResponseException;

@Resource(name = RestConstants.VERSION_1
+ "/roomprovidermap", supportedClass = RoomProviderMap.class, supportedOpenmrsVersions = { "2.0 - 2.*" })
+ "/roomprovidermap", supportedClass = RoomProviderMap.class, supportedOpenmrsVersions = { "2.3 - 9.*" })
public class RoomProviderMapResource extends DelegatingCrudResource<RoomProviderMap> {

private final RoomProviderMapService roomProviderMapService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
@Slf4j
@SuppressWarnings("unused")
@Resource(name = RestConstants.VERSION_1
+ "/visit-queue-entry", supportedClass = VisitQueueEntry.class, supportedOpenmrsVersions = { "2.0 - 2.*" })
+ "/visit-queue-entry", supportedClass = VisitQueueEntry.class, supportedOpenmrsVersions = { "2.3 - 9.*" })
public class VisitQueueEntryResource extends DelegatingCrudResource<VisitQueueEntry> {

private final VisitQueueEntryService visitQueueEntryService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
public class InActiveQueueEntrySearchHandler implements SearchHandler {

private final static SearchConfig SEARCH_CONFIG = new SearchConfig("default",
RestConstants.VERSION_1 + "/visit-queue-entry", Collections.singletonList("2.0 - 2.*"),
RestConstants.VERSION_1 + "/visit-queue-entry", Collections.singletonList("2.3 - 9.*"),
new SearchQuery.Builder("Allows you to include/exclude inactive queue entries")
.withOptionalParameters("includeInactive").build());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
public class QueueCountSearchHandler implements SubResourceSearchHandler {

private final static SearchConfig SEARCH_CONFIG = new SearchConfig("default", RestConstants.VERSION_1 + "/queue/count",
Collections.singletonList("2.0 - 2.*"),
Collections.singletonList("2.3 - 9.*"),
new SearchQuery.Builder("Allows you to find queue entries by status").withOptionalParameters("status").build());

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
public class QueueEntrySearchHandler implements SubResourceSearchHandler {

private final static SearchConfig SEARCH_CONFIG = new SearchConfig("default", RestConstants.VERSION_1 + "/queue/entry",
Collections.singletonList("2.0 - 2.*"),
Collections.singletonList("2.3 - 9.*"),
new SearchQuery.Builder("Allows you to find queue entries by status").withOptionalParameters("status").build());

@Override
Expand Down
2 changes: 1 addition & 1 deletion omod/src/main/resources/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<!-- <updateURL>https://modules.openmrs.org/modules/download/@MODULE_ID@/update.rdf</updateURL> -->
<!-- /Base Module Properties -->

<require_version>2.0.5 - 2.*</require_version>
<require_version>2.3.0</require_version>

<require_modules>
<require_module>org.openmrs.module.webservices.rest</require_module>
Expand Down

0 comments on commit 175f0a1

Please sign in to comment.