From a22fa634fe3a3f51d1a27078e17cba82e48fcf46 Mon Sep 17 00:00:00 2001 From: Keith Wall Date: Sat, 16 Aug 2014 15:03:21 +0000 Subject: QPID-6006: [Java Broker] UI to expose attribute defaults during create and edit workflows * Metadata service now used to discover the attributes for each category instance type. * Create/edit dialogues now have promptMessages to provide a fuller description of the field's purpose * If the attribute has a default, the default is interpolated into the promptMessage in a standard way. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1618373 13f79535-47bb-0310-9956-ffa450edef68 --- .../js/qpid/management/virtualhost/bdb_ha/edit.js | 18 +- .../js/qpid/management/virtualhost/bdb_ha/show.js | 4 +- .../java/resources/virtualhost/bdb_ha/edit.html | 59 ++- .../java/resources/virtualhostnode/bdb/add.html | 3 +- .../java/resources/virtualhostnode/bdb_ha/add.html | 4 +- .../bdb_ha/add/existinggroup/add.html | 19 +- .../virtualhostnode/bdb_ha/add/newgroup/add.html | 18 +- .../resources/virtualhostnode/bdb_ha/edit.html | 21 +- .../js/qpid/management/virtualhost/derby/edit.js | 4 +- .../java/resources/virtualhostnode/derby/add.html | 3 +- .../java/resources/virtualhostnode/jdbc/add.html | 10 +- .../plugin/servlet/rest/MessageServlet.java | 7 +- .../src/main/java/resources/addBinding.html | 2 +- .../src/main/java/resources/addExchange.html | 71 ++-- .../src/main/java/resources/addPort.html | 144 +++++-- .../src/main/java/resources/addQueue.html | 446 +++++++++++++-------- .../addVirtualHostNodeAndVirtualHost.html | 6 +- .../src/main/java/resources/css/common.css | 20 + .../src/main/java/resources/editVirtualHost.html | 175 ++++---- .../src/main/java/resources/index.html | 2 +- .../main/java/resources/js/qpid/common/metadata.js | 57 +++ .../src/main/java/resources/js/qpid/common/util.js | 45 ++- .../resources/js/qpid/common/widgetconfigurer.js | 97 +++++ .../java/resources/js/qpid/management/Broker.js | 20 +- .../java/resources/js/qpid/management/KeyStore.js | 1 + .../js/qpid/management/addAccessControlProvider.js | 4 + .../resources/js/qpid/management/addBinding.js | 8 +- .../js/qpid/management/addGroupProvider.js | 4 + .../resources/js/qpid/management/addKeystore.js | 29 +- .../java/resources/js/qpid/management/addPort.js | 18 +- .../java/resources/js/qpid/management/addQueue.js | 12 +- .../management/addVirtualHostNodeAndVirtualHost.js | 62 ++- .../js/qpid/management/editVirtualHost.js | 3 + .../js/qpid/management/editVirtualHostNode.js | 2 + .../js/qpid/management/plugin/managementhttp.js | 4 +- .../js/qpid/management/plugin/managementjmx.js | 4 +- .../src/main/java/resources/strings.html | 21 + .../resources/virtualhost/providedstore/add.html | 6 +- .../resources/virtualhost/providedstore/edit.html | 6 +- .../resources/virtualhost/sizemonitoring/add.html | 9 +- .../resources/virtualhost/sizemonitoring/edit.html | 7 +- 41 files changed, 971 insertions(+), 484 deletions(-) create mode 100644 qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/common/metadata.js create mode 100644 qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/common/widgetconfigurer.js create mode 100644 qpid/java/broker-plugins/management-http/src/main/java/resources/strings.html (limited to 'qpid/java') diff --git a/qpid/java/bdbstore/src/main/java/resources/js/qpid/management/virtualhost/bdb_ha/edit.js b/qpid/java/bdbstore/src/main/java/resources/js/qpid/management/virtualhost/bdb_ha/edit.js index 087caf34c6..ed34bbbd7a 100644 --- a/qpid/java/bdbstore/src/main/java/resources/js/qpid/management/virtualhost/bdb_ha/edit.js +++ b/qpid/java/bdbstore/src/main/java/resources/js/qpid/management/virtualhost/bdb_ha/edit.js @@ -16,10 +16,11 @@ * specific language governing permissions and limitations * under the License. */ -define(["qpid/common/util", "dijit/registry", "dojo/_base/window", "dojo/domReady!"], - function (util, registry, win) +define(["qpid/common/util", "qpid/common/metadata", "dijit/registry", "dojo/_base/window", "dojo/domReady!"], + function (util, metadata, registry, win) { - var fieldNames = ["storeUnderfullSize", "storeOverfullSize"]; + var fieldNames = ["storeUnderfullSize", "storeOverfullSize", + "localTransactionSynchronizationPolicy", "remoteTransactionSynchronizationPolicy"]; return { show: function(data) { @@ -28,17 +29,6 @@ define(["qpid/common/util", "dijit/registry", "dojo/_base/window", "dojo/domRead registry.byId("editVirtualHost.storeUnderfullSize").set("regExpGen", util.numericOrContextVarRegexp); registry.byId("editVirtualHost.storeOverfullSize").set("regExpGen", util.numericOrContextVarRegexp); - var widget = registry.byId("editVirtualHost.localTransactionSynchronizationPolicy-" + data.data["localTransactionSynchronizationPolicy"]); - if (widget) - { - widget.set("checked", true); - } - widget = registry.byId("editVirtualHost.remoteTransactionSynchronizationPolicy-" + data.data["remoteTransactionSynchronizationPolicy"]); - if (widget) - { - widget.set("checked", true); - } - var that = this; this.permittedNodes = registry.byId("editVirtualHost.permittedNodes"); this.permittedNodesList = registry.byId("editVirtualHost.permittedNodesList"); diff --git a/qpid/java/bdbstore/src/main/java/resources/js/qpid/management/virtualhost/bdb_ha/show.js b/qpid/java/bdbstore/src/main/java/resources/js/qpid/management/virtualhost/bdb_ha/show.js index 9cf6bdea66..f211d19d16 100644 --- a/qpid/java/bdbstore/src/main/java/resources/js/qpid/management/virtualhost/bdb_ha/show.js +++ b/qpid/java/bdbstore/src/main/java/resources/js/qpid/management/virtualhost/bdb_ha/show.js @@ -47,8 +47,8 @@ define(["qpid/common/util", "dojo/query", "dojo/domReady!"], } this["permittedNodes"].innerHTML = permittedNodesMarkup ; - var localSyncPolicy = data[localTransactionSynchronizationPolicy].toLowerCase(); - var remoteSyncPolicy = data[remoteTransactionSynchronizationPolicy].toLowerCase(); + var localSyncPolicy = data[localTransactionSynchronizationPolicy] ? data[localTransactionSynchronizationPolicy].toLowerCase() : ""; + var remoteSyncPolicy = data[remoteTransactionSynchronizationPolicy] ? data[remoteTransactionSynchronizationPolicy].toLowerCase() : ""; for(var i=0; i + title: 'Enter ceiling (in bytes) at which store will begin to throttle sessions producing messages', + promptMessage: 'Ceiling (in bytes) at which store will begin to throttle sessions producing messages'"/>
@@ -39,7 +40,8 @@ name: 'storeUnderfullSize', placeHolder: 'size in bytes', required: false, - title: 'Enter floor (in bytes) at which store will cease to throttle sessions producing messages'"/> + title: 'Enter floor (in bytes) at which store will cease to throttle sessions producing messages', + promptMessage: 'Floor (in bytes) at which store will cease to throttle sessions producing messages'"/>
@@ -74,8 +76,9 @@ data-dojo-props=" name: 'permittedNode', placeHolder: 'host:port', - title: 'Enter address', - intermediateChanges: true" /> + intermediateChanges: true, + title: 'Enter address of node to be permitted into the group', + promptMessage: 'Address of node to be permitted into the group'" /> @@ -86,42 +89,30 @@
- High availability durability -
-
Master transaction sync policy
+ High availability durability
- - -
- -
- - -
+
Master transaction sync policy
-
- - -
-
-
-
-
Replica transaction sync policy
-
- - +
- +
- - -
+
Replica transaction sync policy
-
- - +
-
diff --git a/qpid/java/bdbstore/src/main/java/resources/virtualhostnode/bdb/add.html b/qpid/java/bdbstore/src/main/java/resources/virtualhostnode/bdb/add.html index 9ce23084c5..c16dd675d2 100644 --- a/qpid/java/bdbstore/src/main/java/resources/virtualhostnode/bdb/add.html +++ b/qpid/java/bdbstore/src/main/java/resources/virtualhostnode/bdb/add.html @@ -27,7 +27,8 @@ data-dojo-props=" name: 'storePath', placeHolder: 'path/to/store', - title: 'Enter store path'" /> + title: 'Enter store path', + promptMessage: 'File system location for the configuration store.'"/> diff --git a/qpid/java/bdbstore/src/main/java/resources/virtualhostnode/bdb_ha/add.html b/qpid/java/bdbstore/src/main/java/resources/virtualhostnode/bdb_ha/add.html index c7e44a38b2..6973cf9002 100644 --- a/qpid/java/bdbstore/src/main/java/resources/virtualhostnode/bdb_ha/add.html +++ b/qpid/java/bdbstore/src/main/java/resources/virtualhostnode/bdb_ha/add.html @@ -31,7 +31,9 @@ data-dojo-props="store:groupStore, searchAttr:'name', required: true, - placeHolder: 'choose new or existing'" + placeHolder: 'choose new or existing', + promptMessage: 'Create a new group or join to an existing one', + title: 'Choose whether to create a new group or join to an existing one'" name="group" id="addVirtualHostNode.group" /> diff --git a/qpid/java/bdbstore/src/main/java/resources/virtualhostnode/bdb_ha/add/existinggroup/add.html b/qpid/java/bdbstore/src/main/java/resources/virtualhostnode/bdb_ha/add/existinggroup/add.html index 820a94e754..d8f1ae5c57 100644 --- a/qpid/java/bdbstore/src/main/java/resources/virtualhostnode/bdb_ha/add/existinggroup/add.html +++ b/qpid/java/bdbstore/src/main/java/resources/virtualhostnode/bdb_ha/add/existinggroup/add.html @@ -30,8 +30,8 @@ name: 'groupName', placeHolder: 'group name', required: true, - missingMessage: 'The group name must be supplied', - title: 'Enter the group name'" /> + promptMessage: 'Name of the existing group', + title: 'Enter name of the existing group'," />
@@ -43,8 +43,8 @@ name: 'helperNodeName', placeHolder: 'node name from group', required: true, - missingMessage: 'A node name must be supplied', - title: 'Enter a node name'" /> + promptMessage: 'Node name of an existing group member.', + title: 'Enter node name of an existing member of the group'" />
@@ -56,8 +56,8 @@ name: 'helperAddress', placeHolder: 'node address from group', required: true, - missingMessage: 'Node host and port must be supplied', - title: 'Enter address'" /> + promptMessage: 'Node address of the existing group member.', + title: 'Enter node address of the existing group member'" />
@@ -76,8 +76,8 @@ name: 'address', placeHolder: 'host:port', required: true, - missingMessage: 'Node host and port must be supplied', - title: 'Enter address'" /> + promptMessage: 'Node hostname and port number that new node will use.
Other nodes will use connect to this address to replicate messages', + title: 'Enter node hostname and port number that new node will use'" />
@@ -88,7 +88,8 @@ data-dojo-props=" name: 'storePath', placeHolder: 'path/to/store', - title: 'Enter store path'" /> + promptMessage: 'File system location for the store', + title: 'Enter file system location for the store'" />
diff --git a/qpid/java/bdbstore/src/main/java/resources/virtualhostnode/bdb_ha/add/newgroup/add.html b/qpid/java/bdbstore/src/main/java/resources/virtualhostnode/bdb_ha/add/newgroup/add.html index 1d3b2a1906..c25bae3419 100644 --- a/qpid/java/bdbstore/src/main/java/resources/virtualhostnode/bdb_ha/add/newgroup/add.html +++ b/qpid/java/bdbstore/src/main/java/resources/virtualhostnode/bdb_ha/add/newgroup/add.html @@ -27,8 +27,8 @@ name: 'groupName', placeHolder: 'group name', required: true, - missingMessage: 'A group name must be supplied', - title: 'Enter a group name'" /> + title: 'Enter name to identify the new group', + promptMessage: 'Name to identify the new group.'"/>
@@ -40,8 +40,8 @@ name: 'address', placeHolder: 'host:port', required: true, - missingMessage: 'Node host and port must be supplied', - title: 'Enter address'" /> + title: 'Enter node hostname and port number that new node will use', + promptMessage: 'Node hostname and port number that new node will use.
Other nodes will use connect to this address to replicate messages'" />
@@ -52,7 +52,8 @@ data-dojo-props=" name: 'storePath', placeHolder: 'path/to/store', - title: 'Enter store path'" /> + title: 'Enter file system location for the store', + promptMessage: 'File system location for the store'" />
@@ -66,7 +67,7 @@ data-dojo-props=" name: 'permittedNodesList', readOnly : 'true', - title: 'Enter permitted nodes'"> + title: 'Enter list of the other node address that will form the group'">
@@ -81,8 +82,9 @@ data-dojo-props=" name: 'permittedNode', placeHolder: 'host:port', - title: 'Enter address', - intermediateChanges: true" /> + intermediateChanges: true, + title: 'Enter address of node to be permitted into the group', + promptMessage: 'Address of node to be permitted into the group'" /> diff --git a/qpid/java/bdbstore/src/main/java/resources/virtualhostnode/bdb_ha/edit.html b/qpid/java/bdbstore/src/main/java/resources/virtualhostnode/bdb_ha/edit.html index 189eb6f7b6..f163390fa2 100644 --- a/qpid/java/bdbstore/src/main/java/resources/virtualhostnode/bdb_ha/edit.html +++ b/qpid/java/bdbstore/src/main/java/resources/virtualhostnode/bdb_ha/edit.html @@ -25,8 +25,7 @@ placeHolder: 'Group Name', required: true, disabled: true, - missingMessage: 'A group name must be supplied', - title: 'Enter group name'" /> + title: 'Name of the group'" />
@@ -39,9 +38,7 @@ placeHolder: 'host:port', required: true, disabled: true, - missingMessage: 'A Host and Port must be supplied', - invalidMessage: 'Must be of the form host:port', - title: 'Enter Host and Port name'" /> + title: 'Node address of the group member'" />
@@ -51,8 +48,9 @@ data-dojo-type="dijit/form/ValidationTextBox" data-dojo-props=" name: 'storePath', - placeHolder: 'path/to/store', - title: 'Enter configuration store path'" /> + title: 'File system location for the store', + promptMessage: 'File system location for the store'" /> +
@@ -63,7 +61,8 @@ data-dojo-props=" name: 'designatedPrimary', required: false, - title: 'Designate node as primary. It is applicable only to 2-nodes cluster'" /> + title: 'Designate node as primary allowing it to operate solo in a group of two.', + promptMessage: 'Designate node as primary allowing it to operate solo operate solo in a group of two'" />
@@ -80,8 +79,9 @@ data-dojo-props=" name: 'priority', required: false, - title: 'Select node priority for election as a Master', store: nodePriorityStore, + title: 'Set the election priority associated with this node', + promptMessage: 'Election priority associated with this node.
Elections will choose the node with the most recent transactions.
If there is a tie, priority is used as a tie-breaker.', searchAttr: 'name'" />
@@ -95,7 +95,8 @@ data-dojo-props=" name: 'quorumOverride', required: false, - title: 'Enter quorum override. 0 signifies simple majority', + title: 'Select minimum required number of nodes or choose Majority', + promptMessage: 'Modifies the minimum number of nodes required to be present to elect a master or commit transactions.
Majority signifies that a natural majority of nodes must be present.', store: nodeQuorumOverrideStore, searchAttr: 'name'" /> diff --git a/qpid/java/broker-plugins/derby-store/src/main/java/resources/js/qpid/management/virtualhost/derby/edit.js b/qpid/java/broker-plugins/derby-store/src/main/java/resources/js/qpid/management/virtualhost/derby/edit.js index c71c2c28de..3a3107b01a 100644 --- a/qpid/java/broker-plugins/derby-store/src/main/java/resources/js/qpid/management/virtualhost/derby/edit.js +++ b/qpid/java/broker-plugins/derby-store/src/main/java/resources/js/qpid/management/virtualhost/derby/edit.js @@ -16,8 +16,8 @@ * specific language governing permissions and limitations * under the License. */ -define(["qpid/common/util", "dojo/domReady!"], - function (util) +define(["qpid/common/util", "dijit/registry", "dojo/domReady!"], + function (util, registry) { var fieldNames = ["storeUnderfullSize", "storeOverfullSize", "storePath"]; return { diff --git a/qpid/java/broker-plugins/derby-store/src/main/java/resources/virtualhostnode/derby/add.html b/qpid/java/broker-plugins/derby-store/src/main/java/resources/virtualhostnode/derby/add.html index 0ec1e89c24..4e82ab09e9 100644 --- a/qpid/java/broker-plugins/derby-store/src/main/java/resources/virtualhostnode/derby/add.html +++ b/qpid/java/broker-plugins/derby-store/src/main/java/resources/virtualhostnode/derby/add.html @@ -27,7 +27,8 @@ data-dojo-props=" name: 'storePath', placeHolder: 'path/to/store', - title: 'Enter store path'" /> + title: 'Enter store path', + promptMessage: 'File system location for the configuration store'"/>
diff --git a/qpid/java/broker-plugins/jdbc-store/src/main/java/resources/virtualhostnode/jdbc/add.html b/qpid/java/broker-plugins/jdbc-store/src/main/java/resources/virtualhostnode/jdbc/add.html index f60f54e7d8..f9561d4c51 100644 --- a/qpid/java/broker-plugins/jdbc-store/src/main/java/resources/virtualhostnode/jdbc/add.html +++ b/qpid/java/broker-plugins/jdbc-store/src/main/java/resources/virtualhostnode/jdbc/add.html @@ -28,7 +28,7 @@ name: 'connectionUrl', placeHolder: 'jdbc:provider:info', required: true, - missingMessage: 'JDBC URL must be supplied', + promptMessage: 'JDBC URL specifying the connection to the database', title: 'Enter JDBC URL'"/> @@ -41,7 +41,7 @@ name: 'username', placeHolder: 'username', required: true, - missingMessage: 'Username must be supplied', + promptMessage: 'Database user name', title: 'Enter username'" /> @@ -54,7 +54,7 @@ name: 'password', placeHolder: 'password', required: true, - missingMessage: 'Password must be supplied', + promptMessage: 'Database password', title: 'Enter password'" /> @@ -66,8 +66,8 @@ data-dojo-props=" name: 'connectionPoolType', required: true, - missingMessage: 'Connection Pool type must be supplied', - title: 'Select Connection Pool', + promptMessage: 'Connection pool type to use when connecting to the database', + title: 'Select the connection pool type', placeHolder: 'Select pool type'" /> diff --git a/qpid/java/broker-plugins/management-http/src/main/java/org/apache/qpid/server/management/plugin/servlet/rest/MessageServlet.java b/qpid/java/broker-plugins/management-http/src/main/java/org/apache/qpid/server/management/plugin/servlet/rest/MessageServlet.java index 8de74d189b..cb77735a7b 100644 --- a/qpid/java/broker-plugins/management-http/src/main/java/org/apache/qpid/server/management/plugin/servlet/rest/MessageServlet.java +++ b/qpid/java/broker-plugins/management-http/src/main/java/org/apache/qpid/server/management/plugin/servlet/rest/MessageServlet.java @@ -143,7 +143,12 @@ public class MessageServlet extends AbstractServlet throw new IllegalArgumentException("Could not find virtual host with name '" + vhostName + "'"); } - return getQueueFromVirtualHost(queueName, vhost); + Queue queueFromVirtualHost = getQueueFromVirtualHost(queueName, vhost); + if (queueFromVirtualHost == null) + { + throw new IllegalArgumentException("Could not find queue with name '" + queueName + "' on virtual host '" + vhost.getName() + "'"); + } + return queueFromVirtualHost; } private Queue getQueueFromVirtualHost(String queueName, VirtualHost vhost) diff --git a/qpid/java/broker-plugins/management-http/src/main/java/resources/addBinding.html b/qpid/java/broker-plugins/management-http/src/main/java/resources/addBinding.html index a07419977b..1b30c6ddcc 100644 --- a/qpid/java/broker-plugins/management-http/src/main/java/resources/addBinding.html +++ b/qpid/java/broker-plugins/management-http/src/main/java/resources/addBinding.html @@ -39,7 +39,7 @@ name: 'name', placeHolder: 'Binding Key', required: true, - missingMessage: 'A binding key must be supplied', + promptMessage: 'Binding key', title: 'Enter binding key'" /> diff --git a/qpid/java/broker-plugins/management-http/src/main/java/resources/addExchange.html b/qpid/java/broker-plugins/management-http/src/main/java/resources/addExchange.html index 8c9968e37a..77d5ed0bc1 100644 --- a/qpid/java/broker-plugins/management-http/src/main/java/resources/addExchange.html +++ b/qpid/java/broker-plugins/management-http/src/main/java/resources/addExchange.html @@ -21,32 +21,53 @@
- - - - - - - - - - - - - -
Exchange Name*:
Durable?
Exchange Type: - -
+
+
Name*:
+
+ +
+
+
+
Exchange Type:
+
+ +
+
+
+
Durable?
+
+ +
+
+ + +
+
- - +
diff --git a/qpid/java/broker-plugins/management-http/src/main/java/resources/addPort.html b/qpid/java/broker-plugins/management-http/src/main/java/resources/addPort.html index 69d49248b8..25f2600b74 100644 --- a/qpid/java/broker-plugins/management-http/src/main/java/resources/addPort.html +++ b/qpid/java/broker-plugins/management-http/src/main/java/resources/addPort.html @@ -24,35 +24,77 @@
- + - - +
-
- +
- - +
-
-
-
-
- - + +
Trust Stores:
- +
diff --git a/qpid/java/broker-plugins/management-http/src/main/java/resources/addQueue.html b/qpid/java/broker-plugins/management-http/src/main/java/resources/addQueue.html index 75d0888200..352e69893b 100644 --- a/qpid/java/broker-plugins/management-http/src/main/java/resources/addQueue.html +++ b/qpid/java/broker-plugins/management-http/src/main/java/resources/addQueue.html @@ -21,216 +21,316 @@
-
-
Name
- - - - - - - - - - - - - - - - - - - - - - - - -
Queue Name*:
Durable?
Persist Messages? - -
Max Ttl:
Min Ttl:
Queue Type: + +
+
Queue Name*:
+
+ +
+
+
+
Queue Type:
+
-    +   -    +   -    +   -
+
+
+
+
Durable?
+
+ +
+
+
+
Persist Messages?
+
+ +
+
+
+
Maximum Ttl:
+
+ +
+
+
+
Minimum Ttl:
+
+ +
+
+
+
+ -
- - - - - - - - - - - - -
Capacity:
Resume Capacity:
+
+
Capacity:
+
+ +
+
+
+
Resume Capacity:
+
+ +
+
+
+
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Queue Depth:
Queue Depth:
Message Age:
Message Size:
Gap between alerts:
+
+
Queue Depth:
+
+ +
+
+
+
Queue Depth:
+
+ +
+
+
+
Message Age:
+
+ +
+
+
+
Message Size:
+
+ +
+
+
+
Gap between alerts:
+
+ +
+
+
+
- +
+
Maximum Delivery Retries:
+
+ +
+
+
+
Create DLQ?
+
+ +
+
- - - - - - - - - -
Maximum Delivery Retries:
Create DLQ?
- - - - -
NOTE: Configuring maximum delivery retries on a queue which has no DLQ / AlternateExchange will result in messages being discarded after the limit is reached.
- +
+
Configuring maximum delivery retries on a queue which has no DLQ or alternate
exchange will result in messages being discarded after the limit is reached.
- - - - - - - - - - - -
Message Group Key:
Shared Message Groups?
-
+
+
Message Group Key:
+
+ +
+
+
+
Shared Message Groups?
+
+ +
+
+
+
+ diff --git a/qpid/java/broker-plugins/management-http/src/main/java/resources/addVirtualHostNodeAndVirtualHost.html b/qpid/java/broker-plugins/management-http/src/main/java/resources/addVirtualHostNodeAndVirtualHost.html index d751a6c1cd..738af25332 100644 --- a/qpid/java/broker-plugins/management-http/src/main/java/resources/addVirtualHostNodeAndVirtualHost.html +++ b/qpid/java/broker-plugins/management-http/src/main/java/resources/addVirtualHostNodeAndVirtualHost.html @@ -34,9 +34,9 @@ data-dojo-type="dijit/form/ValidationTextBox" data-dojo-props=" name: 'name', - placeHolder: 'unique node name per broker', + placeHolder: 'node name', required: true, - missingMessage: 'A node name must be supplied', + promptMessage: 'Name of node, must be unique', title: 'Enter a unique node name per broker'" /> @@ -49,6 +49,7 @@ required: true, disabled: true, placeHolder: 'select virtual host node type', + promptMessage: 'Type of virtual host node', title: 'Select virtual host node type', searchAttr: 'name'"> @@ -75,6 +76,7 @@ required: true, disabled: true, placeHolder: 'select virtual host type', + promptMessage: 'Type of virtual host', title: 'Select virtual host type', searchAttr: 'name'"> diff --git a/qpid/java/broker-plugins/management-http/src/main/java/resources/css/common.css b/qpid/java/broker-plugins/management-http/src/main/java/resources/css/common.css index bfe0839cbc..f49451b5d8 100644 --- a/qpid/java/broker-plugins/management-http/src/main/java/resources/css/common.css +++ b/qpid/java/broker-plugins/management-http/src/main/java/resources/css/common.css @@ -239,8 +239,28 @@ div .messages { font-weight: bold; margin-left: 5px; } + .editNoteBanner { font-style: italic; margin: 0px 0px 10px 5px; } +/* Required to keep queue type radio buttons on one line when dialog adds scrollbar */ +#addQueue { + max-height: 350px; + overflow: auto; + width: 630px; +} + +#authenticatedUserControls { + max-width: 300px; +} + +.claro .dojoxCheckedMultiSelectWrapper { + height: auto; +} + +.claro .dojoxCheckedMultiSelect .dojoxCheckedMultiSelectWrapper { + border: none; + background-color: transparent; +} diff --git a/qpid/java/broker-plugins/management-http/src/main/java/resources/editVirtualHost.html b/qpid/java/broker-plugins/management-http/src/main/java/resources/editVirtualHost.html index 6f4db66c7d..9b981b055e 100644 --- a/qpid/java/broker-plugins/management-http/src/main/java/resources/editVirtualHost.html +++ b/qpid/java/broker-plugins/management-http/src/main/java/resources/editVirtualHost.html @@ -19,111 +19,112 @@
-
NOTE: All changes will only take effect after Virtual Host restart.
-
-
Name*:
-
- +
NOTE: All changes will only take effect after Virtual Host restart.
+
+
Name*:
+
+ +
-
-
+
-
-
- Store transaction settings -
-
Idle Timeout Warn:
-
- +
+
+ Store transaction settings +
+
Idle Timeout Warn:
+
+ +
-
-
-
Idle Timeout Close:
-
- +
+
Idle Timeout Close:
+
+ +
-
-
-
Open Timeout Warn:
-
- +
+
Open Timeout Warn:
+
+ +
-
-
-
Open Timeout Close:
-
- +
+
Open Timeout Close:
+
+ +
-
-
-
+ +
-
-
- House keeping settings -
-
Check period (ms):
-
- +
+
+ House keeping settings +
+
Check period (ms):
+
+ +
-
-
-
Thread count:
-
- +
+
Thread count:
+
+ +
-
-
-
-
+ +
+
-
-
Dead letter queue enabled:
-
- - +
+
Dead letter queue enabled:
+
+ + +
-
-
+
-
- - +
+ + +
diff --git a/qpid/java/broker-plugins/management-http/src/main/java/resources/index.html b/qpid/java/broker-plugins/management-http/src/main/java/resources/index.html index ee67e4ce21..dfbec13320 100644 --- a/qpid/java/broker-plugins/management-http/src/main/java/resources/index.html +++ b/qpid/java/broker-plugins/management-http/src/main/java/resources/index.html @@ -86,7 +86,7 @@
@@ -41,7 +42,8 @@ name: 'storeUnderfullSize', placeHolder: 'size in bytes', required: false, - title: 'Enter floor (in bytes) at which store will cease to throttle sessions producing messages'" + title: 'Enter floor (in bytes) at which store will cease to throttle sessions producing messages', + promptMessage: 'Floor (in bytes) at which store will cease to throttle sessions producing messages'" />
diff --git a/qpid/java/broker-plugins/management-http/src/main/java/resources/virtualhost/sizemonitoring/add.html b/qpid/java/broker-plugins/management-http/src/main/java/resources/virtualhost/sizemonitoring/add.html index 88ca0b3807..484a85b965 100644 --- a/qpid/java/broker-plugins/management-http/src/main/java/resources/virtualhost/sizemonitoring/add.html +++ b/qpid/java/broker-plugins/management-http/src/main/java/resources/virtualhost/sizemonitoring/add.html @@ -26,7 +26,8 @@ data-dojo-props=" name: 'storePath', placeHolder: 'path/to/store', - title: 'Enter message store path'" /> + title: 'Enter message store path', + promptMessage: 'File system location for the message store'" />
@@ -38,7 +39,8 @@ name: 'storeOverfullSize', placeHolder: 'size in bytes', required: false, - title: 'Enter ceiling (in bytes) at which store will begin to throttle sessions producing messages'" /> + title: 'Enter ceiling (in bytes) at which store will begin to throttle sessions producing messages', + promptMessage: 'Ceiling (in bytes) at which store will begin to throttle sessions producing messages'" />
@@ -50,7 +52,8 @@ name: 'storeUnderfullSize', placeHolder: 'size in bytes', required: false, - title: 'Enter floor (in bytes) at which store will cease to throttle sessions producing messages'" /> + title: 'Enter floor (in bytes) at which store will cease to throttle sessions producing messages', + promptMessage: 'Floor (in bytes) at which store will cease to throttle sessions producing messages'" />
diff --git a/qpid/java/broker-plugins/management-http/src/main/java/resources/virtualhost/sizemonitoring/edit.html b/qpid/java/broker-plugins/management-http/src/main/java/resources/virtualhost/sizemonitoring/edit.html index 60b8faef56..2486cdcf42 100644 --- a/qpid/java/broker-plugins/management-http/src/main/java/resources/virtualhost/sizemonitoring/edit.html +++ b/qpid/java/broker-plugins/management-http/src/main/java/resources/virtualhost/sizemonitoring/edit.html @@ -26,7 +26,6 @@ data-dojo-type="dijit/form/ValidationTextBox" data-dojo-props=" name: 'storePath', - placeHolder: 'path/to/store', disabled: true, title: 'Enter message store path'" /> @@ -41,7 +40,8 @@ name: 'storeOverfullSize', placeHolder: 'size in bytes', required: false, - title: 'Enter ceiling (in bytes) at which store will begin to throttle sessions producing messages'" + title: 'Enter ceiling (in bytes) at which store will begin to throttle sessions producing messages', + promptMessage: 'Ceiling (in bytes) at which store will begin to throttle sessions producing messages'" /> @@ -54,7 +54,8 @@ name: 'storeUnderfullSize', placeHolder: 'size in bytes', required: false, - title: 'Enter floor (in bytes) at which store will cease to throttle sessions producing messages'" + title: 'Enter floor (in bytes) at which store will cease to throttle sessions producing messages', + promptMessage: 'Floor (in bytes) at which store will cease to throttle sessions producing messages'" /> -- cgit v1.2.1