From 022ec167cf9d90d7b5e7e2d04020f61be0e7818b Mon Sep 17 00:00:00 2001 From: Justin Bertram Date: Thu, 26 Sep 2024 14:14:34 -0500 Subject: [PATCH] ARTEMIS-5071 align naming for management option syntax This commit aligns the naming for the management option syntax but also retains support for the old naming. --- .../webapp/plugin/js/components/addresses.js | 6 +-- .../plugin/js/components/connections.js | 6 +-- .../webapp/plugin/js/components/consumers.js | 6 +-- .../webapp/plugin/js/components/producers.js | 6 +-- .../webapp/plugin/js/components/queues.js | 6 +-- .../webapp/plugin/js/components/sessions.js | 6 +-- .../main/webapp/plugin/js/services/toolbar.js | 2 +- .../impl/view/ActiveMQAbstractView.java | 37 ++++++++++---- .../management/impl/view/AddressView.java | 4 +- .../management/impl/view/ConnectionView.java | 4 +- .../management/impl/view/ConsumerView.java | 4 +- .../management/impl/view/ProducerView.java | 4 +- .../core/management/impl/view/QueueView.java | 4 +- .../management/impl/view/SessionView.java | 4 +- .../core/management/impl/view/ViewTest.java | 51 +++++++++++++++++++ .../management/ActiveMQServerControlTest.java | 4 +- 16 files changed, 111 insertions(+), 43 deletions(-) diff --git a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/addresses.js b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/addresses.js index c0fc8be326..504b2a22db 100644 --- a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/addresses.js +++ b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/addresses.js @@ -124,7 +124,7 @@ var Artemis; operation: "", value: "", sortOrder: "asc", - sortColumn: "id" + sortField: "id" }, text: { fieldText: "Filter Field..", @@ -167,7 +167,7 @@ var Artemis; ctrl.filter.values.operation = ""; ctrl.filter.values.value = ""; ctrl.filter.sortOrder = "asc"; - ctrl.filter.sortColumn = "id"; + ctrl.filter.sortField = "id"; ctrl.refreshed = true; artemisAddress.address = null; ctrl.pagination.load(); @@ -220,7 +220,7 @@ var Artemis; operation: ctrl.filter.values.operation, value: ctrl.filter.values.value, sortOrder: ctrl.filter.values.sortOrder, - sortColumn: ctrl.filter.values.sortColumn + sortField: ctrl.filter.values.sortField }; if (ctrl.refreshed == true) { diff --git a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/connections.js b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/connections.js index 649fface20..d99754fd83 100644 --- a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/connections.js +++ b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/connections.js @@ -146,7 +146,7 @@ var Artemis; operation: "", value: "", sortOrder: "asc", - sortColumn: "connectionID" + sortField: "connectionID" }, text: { fieldText: "Filter Field..", @@ -204,7 +204,7 @@ var Artemis; ctrl.filter.values.operation = ""; ctrl.filter.values.value = ""; ctrl.filter.sortOrder = "asc"; - ctrl.filter.sortColumn = "connectionID"; + ctrl.filter.sortField = "connectionID"; ctrl.filter.text.fieldText = "Filter Field.."; ctrl.filter.text.operationText = "Operation.."; ctrl.filter.text.sortOrderText = "ascending"; @@ -222,7 +222,7 @@ var Artemis; operation: ctrl.filter.values.operation, value: ctrl.filter.values.value, sortOrder: ctrl.filter.values.sortOrder, - sortColumn: ctrl.filter.values.sortColumn + sortField: ctrl.filter.values.sortField }; if (ctrl.refreshed == true) { diff --git a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/consumers.js b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/consumers.js index 6c7ed8bc1d..58144361c0 100644 --- a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/consumers.js +++ b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/consumers.js @@ -164,7 +164,7 @@ var Artemis; operation: "", value: "", sortOrder: "asc", - sortColumn: "id" + sortField: "id" }, text: { fieldText: "Filter Field..", @@ -218,7 +218,7 @@ var Artemis; ctrl.filter.values.operation = ""; ctrl.filter.values.value = ""; ctrl.filter.sortOrder = "asc"; - ctrl.filter.sortColumn = "id"; + ctrl.filter.sortField = "id"; ctrl.filter.text.fieldText = "Filter Field.."; ctrl.filter.text.operationText = "Operation.."; ctrl.filter.text.sortOrderText = "ascending"; @@ -291,7 +291,7 @@ var Artemis; operation: ctrl.filter.values.operation, value: ctrl.filter.values.value, sortOrder: ctrl.filter.values.sortOrder, - sortColumn: ctrl.filter.values.sortColumn + sortField: ctrl.filter.values.sortField }; if (ctrl.refreshed == true) { diff --git a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/producers.js b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/producers.js index a58ebcef84..8ab622ea2d 100644 --- a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/producers.js +++ b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/producers.js @@ -130,7 +130,7 @@ var Artemis; operation: "", value: "", sortOrder: "asc", - sortColumn: "id" + sortField: "id" }, text: { fieldText: "Filter Field..", @@ -168,7 +168,7 @@ var Artemis; ctrl.filter.values.operation = ""; ctrl.filter.values.value = ""; ctrl.filter.sortOrder = "asc"; - ctrl.filter.sortColumn = "id"; + ctrl.filter.sortField = "id"; ctrl.filter.text.fieldText = "Filter Field.."; ctrl.filter.text.operationText = "Operation.."; ctrl.filter.text.sortOrderText = "ascending"; @@ -208,7 +208,7 @@ var Artemis; operation: ctrl.filter.values.operation, value: ctrl.filter.values.value, sortOrder: ctrl.filter.values.sortOrder, - sortColumn: ctrl.filter.values.sortColumn + sortField: ctrl.filter.values.sortField }; if (ctrl.refreshed == true) { diff --git a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/queues.js b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/queues.js index 4d5bcd6d6b..ac2c264bda 100644 --- a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/queues.js +++ b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/queues.js @@ -162,7 +162,7 @@ var Artemis; operation: "", value: "", sortOrder: "asc", - sortColumn: "id" + sortField: "id" }, text: { fieldText: "Filter Field..", @@ -233,7 +233,7 @@ var Artemis; ctrl.filter.values.operation = ""; ctrl.filter.values.value = ""; ctrl.filter.sortOrder = "asc"; - ctrl.filter.sortColumn = "id"; + ctrl.filter.sortField = "id"; ctrl.filter.text.fieldText = "Filter Field.."; ctrl.filter.text.operationText = "Operation.."; ctrl.filter.text.sortOrderText = "ascending"; @@ -321,7 +321,7 @@ var Artemis; operation: ctrl.filter.values.operation, value: ctrl.filter.values.value, sortOrder: ctrl.filter.values.sortOrder, - sortColumn: ctrl.filter.values.sortColumn + sortField: ctrl.filter.values.sortField }; if (ctrl.refreshed == true) { diff --git a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/sessions.js b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/sessions.js index 20af96ff3e..3328d5a75b 100644 --- a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/sessions.js +++ b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/sessions.js @@ -143,7 +143,7 @@ var Artemis; operation: "", value: "", sortOrder: "asc", - sortColumn: "id" + sortField: "id" }, text: { fieldText: "Filter Field..", @@ -182,7 +182,7 @@ var Artemis; ctrl.filter.values.operation = ""; ctrl.filter.values.value = ""; ctrl.filter.sortOrder = "asc"; - ctrl.filter.sortColumn = "id"; + ctrl.filter.sortField = "id"; ctrl.filter.text.fieldText = "Filter Field.."; ctrl.filter.text.operationText = "Operation.."; ctrl.filter.text.sortOrderText = "ascending"; @@ -257,7 +257,7 @@ var Artemis; operation: ctrl.filter.values.operation, value: ctrl.filter.values.value, sortOrder: ctrl.filter.values.sortOrder, - sortColumn: ctrl.filter.values.sortColumn + sortField: ctrl.filter.values.sortField }; if (ctrl.refreshed == true) { diff --git a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/services/toolbar.js b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/services/toolbar.js index 3a93c31dda..733862cfa5 100644 --- a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/services/toolbar.js +++ b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/services/toolbar.js @@ -51,7 +51,7 @@ var Artemis; + id="option.id" ng-click="$ctrl.filter.values.sortField = option.id;$ctrl.filter.text.sortByText = option.name">{{ option.name }}
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/view/ActiveMQAbstractView.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/view/ActiveMQAbstractView.java index 1491849d6a..9cadd78363 100644 --- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/view/ActiveMQAbstractView.java +++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/view/ActiveMQAbstractView.java @@ -42,23 +42,28 @@ public abstract class ActiveMQAbstractView { private static final String SORT_ORDER = "sortOrder"; + private static final String ASCENDING = "asc"; + + private static final String DESCENDING = "desc"; + + @Deprecated(forRemoval = true) private static final String SORT_COLUMN = "sortColumn"; + private static final String SORT_FIELD = "sortField"; + private static final JsonObject DEFAULT_FILTER = JsonUtil.toJsonObject(Map.of(FILTER_FIELD, "", FILTER_OPERATION, "", FILTER_VALUE, "")); protected Collection collection; protected ActiveMQFilterPredicate predicate; - protected String sortColumn; + protected String sortField; protected String sortOrder; - protected String options; - public ActiveMQAbstractView() { - this.sortColumn = getDefaultOrderColumn(); - this.sortOrder = "asc"; + this.sortField = getDefaultOrderColumn(); + this.sortOrder = ASCENDING; } public void setCollection(Collection collection) { @@ -102,10 +107,10 @@ public abstract class ActiveMQAbstractView { public Comparator getComparator() { return (left, right) -> { try { - Object leftValue = getField(left, sortColumn); - Object rightValue = getField(right, sortColumn); + Object leftValue = getField(left, sortField); + Object rightValue = getField(right, sortField); if (leftValue instanceof Comparable && rightValue instanceof Comparable) { - if (sortOrder.equals("desc")) { + if (sortOrder.equalsIgnoreCase(DESCENDING)) { return ((Comparable) rightValue).compareTo(leftValue); } else { return ((Comparable) leftValue).compareTo(rightValue); @@ -132,8 +137,12 @@ public abstract class ActiveMQAbstractView { predicate.setField(json.getString(FILTER_FIELD)); predicate.setOperation(json.getString(FILTER_OPERATION)); predicate.setValue(json.getString(FILTER_VALUE)); - if (json.containsKey(SORT_COLUMN) && json.containsKey(SORT_ORDER)) { - this.sortColumn = json.getString(SORT_COLUMN); + if ((json.containsKey(SORT_COLUMN) || json.containsKey(SORT_FIELD)) && json.containsKey(SORT_ORDER)) { + if (json.containsKey(SORT_COLUMN)) { + this.sortField = json.getString(SORT_COLUMN); + } else { + this.sortField = json.getString(SORT_FIELD); + } this.sortOrder = json.getString(SORT_ORDER); } } @@ -145,6 +154,14 @@ public abstract class ActiveMQAbstractView { public abstract String getDefaultOrderColumn(); + public String getSortField() { + return sortField; + } + + public String getSortOrder() { + return sortOrder; + } + /** * JsonObjectBuilder will throw an NPE if a null value is added. For this reason we check for null explicitly when * adding objects. diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/view/AddressView.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/view/AddressView.java index 523450edd3..d89ad514a0 100644 --- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/view/AddressView.java +++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/view/AddressView.java @@ -24,7 +24,7 @@ import org.apache.activemq.artemis.utils.JsonLoader; public class AddressView extends ActiveMQAbstractView { - private static final String defaultSortColumn = AddressField.ID.getName(); + private static final String defaultSortField = AddressField.ID.getName(); private final ActiveMQServer server; @@ -90,6 +90,6 @@ public class AddressView extends ActiveMQAbstractView { @Override public String getDefaultOrderColumn() { - return defaultSortColumn; + return defaultSortField; } } diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/view/ConnectionView.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/view/ConnectionView.java index 6f0a72b7b3..bc4045dbfd 100644 --- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/view/ConnectionView.java +++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/view/ConnectionView.java @@ -31,7 +31,7 @@ import org.apache.activemq.artemis.utils.StringUtil; public class ConnectionView extends ActiveMQAbstractView { - private static final String defaultSortColumn = ConnectionField.CONNECTION_ID.getName(); + private static final String defaultSortField = ConnectionField.CONNECTION_ID.getName(); private final ActiveMQServer server; @@ -104,6 +104,6 @@ public class ConnectionView extends ActiveMQAbstractView { @Override public String getDefaultOrderColumn() { - return defaultSortColumn; + return defaultSortField; } } diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/view/ConsumerView.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/view/ConsumerView.java index c3a5013faa..f79d859399 100644 --- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/view/ConsumerView.java +++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/view/ConsumerView.java @@ -32,7 +32,7 @@ public class ConsumerView extends ActiveMQAbstractView { public static final String CONSUMER_STATUS_ORPHANED = "Orphaned"; - private static final String defaultSortColumn = ConsumerField.ID.getName(); + private static final String defaultSortField = ConsumerField.ID.getName(); private final ActiveMQServer server; @@ -153,6 +153,6 @@ public class ConsumerView extends ActiveMQAbstractView { @Override public String getDefaultOrderColumn() { - return defaultSortColumn; + return defaultSortField; } } diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/view/ProducerView.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/view/ProducerView.java index 23df8c88bc..42e0b5bbbd 100644 --- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/view/ProducerView.java +++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/view/ProducerView.java @@ -25,7 +25,7 @@ import org.apache.activemq.artemis.utils.JsonLoader; public class ProducerView extends ActiveMQAbstractView { - private static final String defaultSortColumn = ProducerField.CREATION_TIME.getName(); + private static final String defaultSortField = ProducerField.CREATION_TIME.getName(); private final ActiveMQServer server; @@ -106,6 +106,6 @@ public class ProducerView extends ActiveMQAbstractView { @Override public String getDefaultOrderColumn() { - return defaultSortColumn; + return defaultSortField; } } diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/view/QueueView.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/view/QueueView.java index bc502742f1..29bcfae380 100644 --- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/view/QueueView.java +++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/view/QueueView.java @@ -26,7 +26,7 @@ import org.apache.activemq.artemis.utils.JsonLoader; public class QueueView extends ActiveMQAbstractView { - private static final String defaultSortColumn = QueueField.NAME.getName(); + private static final String defaultSortField = QueueField.NAME.getName(); private ActiveMQServer server; @@ -162,6 +162,6 @@ public class QueueView extends ActiveMQAbstractView { @Override public String getDefaultOrderColumn() { - return defaultSortColumn; + return defaultSortField; } } diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/view/SessionView.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/view/SessionView.java index 28104c7e82..a1b7d1204c 100644 --- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/view/SessionView.java +++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/view/SessionView.java @@ -25,7 +25,7 @@ import org.apache.activemq.artemis.utils.JsonLoader; public class SessionView extends ActiveMQAbstractView { - private static final String defaultSortColumn = SessionField.ID.getName(); + private static final String defaultSortField = SessionField.ID.getName(); public SessionView() { super(); @@ -79,6 +79,6 @@ public class SessionView extends ActiveMQAbstractView { @Override public String getDefaultOrderColumn() { - return defaultSortColumn; + return defaultSortField; } } diff --git a/artemis-server/src/test/java/org/apache/activemq/artemis/core/management/impl/view/ViewTest.java b/artemis-server/src/test/java/org/apache/activemq/artemis/core/management/impl/view/ViewTest.java index 10b7e2584b..997bdab071 100644 --- a/artemis-server/src/test/java/org/apache/activemq/artemis/core/management/impl/view/ViewTest.java +++ b/artemis-server/src/test/java/org/apache/activemq/artemis/core/management/impl/view/ViewTest.java @@ -20,6 +20,9 @@ import org.apache.activemq.artemis.core.server.ActiveMQServer; import org.junit.jupiter.api.Test; import org.mockito.Mockito; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotEquals; + public class ViewTest { @Test @@ -36,6 +39,14 @@ public class ViewTest { connectionView.setOptions(""); } + @Test + public void testConnectionViewLegacySort() { + ConnectionView connectionView = new ConnectionView(Mockito.mock(ActiveMQServer.class)); + assertNotEquals("protocol", connectionView.getDefaultOrderColumn()); + connectionView.setOptions("{\"field\":\"protocol\",\"operation\":\"EQUALS\",\"value\":\"CORE\",\"sortColumn\":\"protocol\",\"sortOrder\":\"asc\"}"); + assertEquals("protocol", connectionView.getSortField()); + } + @Test public void testDefaultSessionViewNullOptions() { SessionView sessionView = new SessionView(); @@ -50,6 +61,14 @@ public class ViewTest { sessionView.setOptions(""); } + @Test + public void testSessionViewLegacySort() { + SessionView sessionView = new SessionView(); + assertNotEquals("user", sessionView.getDefaultOrderColumn()); + sessionView.setOptions("{\"field\":\"user\",\"operation\":\"EQUALS\",\"value\":\"123\",\"sortColumn\":\"user\",\"sortOrder\":\"asc\"}"); + assertEquals("user", sessionView.getSortField()); + } + @Test public void testDefaultAddressViewNullOptions() { AddressView addressView = new AddressView(Mockito.mock(ActiveMQServer.class)); @@ -64,6 +83,14 @@ public class ViewTest { addressView.setOptions(""); } + @Test + public void testAddressViewLegacySort() { + AddressView addressView = new AddressView(Mockito.mock(ActiveMQServer.class)); + assertNotEquals("name", addressView.getDefaultOrderColumn()); + addressView.setOptions("{\"field\":\"name\",\"operation\":\"EQUALS\",\"value\":\"123\",\"sortColumn\":\"name\",\"sortOrder\":\"asc\"}"); + assertEquals("name", addressView.getSortField()); + } + @Test public void testDefaultQueueViewNullOptions() { QueueView queueView = new QueueView(Mockito.mock(ActiveMQServer.class)); @@ -78,6 +105,14 @@ public class ViewTest { queueView.setOptions(""); } + @Test + public void testQueueViewLegacySort() { + QueueView view = new QueueView(Mockito.mock(ActiveMQServer.class)); + assertNotEquals("id", view.getDefaultOrderColumn()); + view.setOptions("{\"field\":\"id\",\"operation\":\"EQUALS\",\"value\":\"123\",\"sortColumn\":\"id\",\"sortOrder\":\"asc\"}"); + assertEquals("id", view.getSortField()); + } + @Test public void testDefaultConsumerViewNullOptions() { ConsumerView consumerView = new ConsumerView(Mockito.mock(ActiveMQServer.class)); @@ -92,6 +127,14 @@ public class ViewTest { consumerView.setOptions(""); } + @Test + public void testConsumerViewLegacySort() { + ConsumerView view = new ConsumerView(Mockito.mock(ActiveMQServer.class)); + assertNotEquals("user", view.getDefaultOrderColumn()); + view.setOptions("{\"field\":\"user\",\"operation\":\"EQUALS\",\"value\":\"123\",\"sortColumn\":\"user\",\"sortOrder\":\"asc\"}"); + assertEquals("user", view.getSortField()); + } + @Test public void testDefaultProducerViewNullOptions() { ProducerView producerView = new ProducerView(Mockito.mock(ActiveMQServer.class)); @@ -105,4 +148,12 @@ public class ViewTest { // sanity check to ensure this doesn't just blow up producerView.setOptions(""); } + + @Test + public void testProducerViewLegacySort() { + ProducerView view = new ProducerView(Mockito.mock(ActiveMQServer.class)); + assertNotEquals("user", view.getDefaultOrderColumn()); + view.setOptions("{\"field\":\"user\",\"operation\":\"EQUALS\",\"value\":\"123\",\"sortColumn\":\"user\",\"sortOrder\":\"asc\"}"); + assertEquals("user", view.getSortField()); + } } diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ActiveMQServerControlTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ActiveMQServerControlTest.java index aaa50c7837..a55886fd2e 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ActiveMQServerControlTest.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ActiveMQServerControlTest.java @@ -6317,12 +6317,12 @@ public class ActiveMQServerControlTest extends ManagementTestBase { return ManagementControlHelper.createActiveMQServerControl(mbeanServer); } - private String createJsonFilter(String fieldName, String operationName, String value,String sortColumn, String sortOrder) { + private String createJsonFilter(String fieldName, String operationName, String value, String sortField, String sortOrder) { HashMap filterMap = new HashMap<>(); filterMap.put("field", fieldName); filterMap.put("operation", operationName); filterMap.put("value", value); - filterMap.put("sortColumn", sortColumn); + filterMap.put("sortField", sortField); filterMap.put("sortOrder", sortOrder); JsonObject jsonFilterObject = JsonUtil.toJsonObject(filterMap); return jsonFilterObject.toString();