You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by lq...@apache.org on 2016/03/17 13:49:40 UTC

svn commit: r1735414 - in /qpid/java/trunk/broker-plugins/management-http/src/main/java/resources: ./ js/qpid/ js/qpid/management/ js/qpid/management/port/ js/qpid/management/port/amqp/ js/qpid/management/port/http/ js/qpid/management/virtualhostalias/...

Author: lquack
Date: Thu Mar 17 12:49:39 2016
New Revision: 1735414

URL: http://svn.apache.org/viewvc?rev=1735414&view=rev
Log:
QPID-7110: [Java Broker] add UI for VirtualHostAliases on AmqpPorts

Added:
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/addVirtualHostAlias.html
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/addVirtualHostAlias.js
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/addVirtualHostAlias.js
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/port/
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/port/amqp/
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/port/amqp/show.js
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/port/http/
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/port/http/show.js
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/virtualhostalias/
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/virtualhostalias/defaultalias/
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/virtualhostalias/defaultalias/add.js
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/virtualhostalias/hostnamealias/
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/virtualhostalias/hostnamealias/add.js
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/virtualhostalias/namealias/
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/virtualhostalias/namealias/add.js
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/virtualhostalias/patternmatchingalias/
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/virtualhostalias/patternmatchingalias/add.js
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/port/
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/port/amqp/
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/port/amqp/show.html
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/port/http/
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/port/http/show.html
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/virtualhostalias/
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/virtualhostalias/defaultalias/
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/virtualhostalias/defaultalias/add.html
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/virtualhostalias/hostnamealias/
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/virtualhostalias/hostnamealias/add.html
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/virtualhostalias/namealias/
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/virtualhostalias/namealias/add.html
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/virtualhostalias/patternmatchingalias/
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/virtualhostalias/patternmatchingalias/add.html
Modified:
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/Port.js
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/showPort.html

Added: qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/addVirtualHostAlias.html
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/addVirtualHostAlias.html?rev=1735414&view=auto
==============================================================================
--- qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/addVirtualHostAlias.html (added)
+++ qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/addVirtualHostAlias.html Thu Mar 17 12:49:39 2016
@@ -0,0 +1,85 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~   http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<div class="dijitHidden">
+    <div data-dojo-type="dijit/Dialog" data-dojo-props="title:'Add Virtual Host Alias'" id="addVirtualHostAlias">
+        <form id="addVirtualHostAlias.form" method="post" data-dojo-type="dijit/form/Form">
+            <div id="addVirtualHostAlias.contentPane">
+                <div class="clear">
+                    <div class="formLabel-labelCell tableContainer-labelCell">Name*:</div>
+                    <div class="formLabel-controlCell tableContainer-valueCell">
+                        <input type="text" id="addVirtualHostAlias.name"
+                               data-dojo-type="dijit/form/ValidationTextBox"
+                               data-dojo-props="
+                          name: 'name',
+                          placeHolder: 'name for the virtual host alias',
+                          required: true,
+                          promptMessage: 'Name of the virtual host alias must be unique',
+                          title: 'Enter a unique name for the virtual host alias'" />
+                    </div>
+                </div>
+                <div class="clear">
+                    <div class="formLabel-labelCell tableContainer-labelCell">Type*:</div>
+                    <div class="tableContainer-valueCell formLabel-controlCell">
+                        <select id="addVirtualHostAlias.type" data-dojo-type="dijit/form/FilteringSelect"
+                                data-dojo-props="
+                                name: 'type',
+                                required: true,
+                                placeHolder: 'virtual host alias type',
+                                promptMessage: 'Type of virtual host alias',
+                                title: 'Select type',
+                                searchAttr: 'name'">
+                        </select>
+                    </div>
+                </div>
+                <div class="clear">
+                    <div class="formLabel-labelCell tableContainer-labelCell">Durable:</div>
+                    <div class="formLabel-controlCell tableContainer-valueCell">
+                        <input type="checkbox" id="addVirtualHostAlias.durable"
+                               data-dojo-type="dijit/form/CheckBox"
+                               data-dojo-props="
+                                  name: 'durable',
+                                  required: false,
+                                  checked: true"/>
+                    </div>
+                </div>
+                <div class="clear">
+                    <div class="formLabel-labelCell tableContainer-labelCell">Priority:</div>
+                    <div class="formLabel-controlCell tableContainer-valueCell">
+                        <input type="text" id="addVirtualHostAlias.priority"
+                               data-dojo-type="dijit.form.ValidationTextBox"
+                               data-dojo-props="
+                        name: 'priority',
+                        placeHolder: 'priority of virtual host alias',
+                        promptMessage: 'The Priority of this virtual host alias. Aliases with a low value will be preferred.',
+                        title: 'Enter a priority for this virtual host alias'"/>
+                    </div>
+                </div>
+                <div class="clear">
+                    <div id="addVirtualHostAlias.typeFields"></div>
+                </div>
+                <div class="clear"></div>
+            </div>
+            <div class="dijitDialogPaneActionBar qpidDialogPaneActionBar">
+                <button data-dojo-type="dijit/form/Button" id="addVirtualHostAlias.addButton" data-dojo-props="label: 'Save'" type="submit"></button>
+                <button data-dojo-type="dijit/form/Button" id="addVirtualHostAlias.cancelButton" data-dojo-props="label: 'Cancel'" ></button>
+            </div>
+        </form>
+    </div>
+</div>

Added: qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/addVirtualHostAlias.js
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/addVirtualHostAlias.js?rev=1735414&view=auto
==============================================================================
--- qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/addVirtualHostAlias.js (added)
+++ qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/addVirtualHostAlias.js Thu Mar 17 12:49:39 2016
@@ -0,0 +1,196 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+define(["dojo/_base/lang",
+        "dojo/dom",
+        "dojo/dom-construct",
+        "dijit/registry",
+        "dojo/parser",
+        "dojo/store/Memory",
+        "dojo/_base/array",
+        "dojo/_base/event",
+        'dojo/json',
+        "qpid/common/util",
+        "dojo/text!addLogInclusionRule.html",
+        "dojo/store/Memory",
+        "dojox/validate/us",
+        "dojox/validate/web",
+        "dijit/Dialog",
+        "dijit/form/CheckBox",
+        "dijit/form/Textarea",
+        "dijit/form/ComboBox",
+        "dijit/form/TextBox",
+        "dijit/form/ValidationTextBox",
+        "dijit/form/Button",
+        "dijit/form/Form",
+        "dijit/layout/ContentPane",
+        "dojox/layout/TableContainer",
+        "dojo/domReady!"],
+    function (lang, dom, construct, registry, parser, memory, array, event, json, util, template)
+    {
+        var addLogInclusionRule =
+        {
+            init: function()
+            {
+                var that=this;
+                this.containerNode = construct.create("div", {innerHTML: template});
+                parser.parse(this.containerNode).then(function(instances) { that._postParse(); });
+            },
+            _postParse: function()
+            {
+                var that=this;
+                this.name = registry.byId("addLogInclusionRule.name");
+                this.name.set("regExpGen", util.nameOrContextVarRegexp);
+
+                this.dialog = registry.byId("addLogInclusionRule");
+                this.addButton = registry.byId("addLogInclusionRule.addButton");
+                this.cancelButton = registry.byId("addLogInclusionRule.cancelButton");
+                this.cancelButton.on("click", function(e){that._cancel(e);});
+                this.addButton.on("click", function(e){that._add(e);});
+
+                this.typeFieldsContainer = dom.byId("addLogInclusionRule.typeFields");
+                this.form = registry.byId("addLogInclusionRule.form");
+                this.form.on("submit", function(){return false;});
+
+                this.logInclusionRuleType = registry.byId("addLogInclusionRule.type");
+                this.logInclusionRuleType.on("change", function(type){that._typeChanged(type);});
+
+                this.durable = registry.byId("addLogInclusionRule.durable");
+                this.allFieldsContainer = dom.byId("addLogInclusionRule.contentPane");
+            },
+            show: function(management, modelObj, category, actualData)
+            {
+                this.management = management;
+                this.modelObj = modelObj;
+                var metadata = management.metadata;
+                this.category = category;
+                this.configured = false;
+                this._destroyTypeFields(this.typeFieldsContainer);
+                this.logInclusionRuleType.set("store", util.makeTypeStoreFromMetadataByCategory(management.metadata, category));
+                this.form.reset();
+
+                this.initialData = actualData;
+                this.isNew = !actualData;
+
+                this.name.set("disabled", !this.isNew);
+                this.logInclusionRuleType.set("disabled", !this.isNew);
+                this.durable.set("disabled", !this.isNew);
+                this.dialog.set("title", this.isNew ? "Add Log Inclusion Rule" : "Edit Log Inclusion Rule - " + actualData.name);
+
+                if (actualData)
+                {
+                    this._configure(actualData.type);
+                }
+
+                this.dialog.show();
+            },
+            _cancel: function(e)
+            {
+                event.stop(e);
+                this._destroyTypeFields(this.typeFieldsContainer);
+                this.dialog.hide();
+            },
+            _add: function(e)
+            {
+                event.stop(e);
+                this._submit();
+            },
+            _submit: function()
+            {
+                if (this.form.validate())
+                {
+                    var that = this;
+                    var formData = util.getFormWidgetValues(this.form, this.initialData);
+
+                    if (this.isNew)
+                    {
+                        this.management.create(this.category, this.modelObj, formData).then(function(x){that.dialog.hide();});
+                    }
+                    else
+                    {
+                        this.management.update(this.modelObj, formData).then(function(x){that.dialog.hide();});
+                    }
+                }
+                else
+                {
+                    alert('Form contains invalid data. Please correct first');
+                }
+            },
+            _destroyTypeFields: function(typeFieldsContainer)
+            {
+                var widgets = registry.findWidgets(typeFieldsContainer);
+                array.forEach(widgets, function(item) { item.destroyRecursive();});
+                construct.empty(typeFieldsContainer);
+            },
+            _typeChanged: function(type)
+            {
+                this._destroyTypeFields(this.typeFieldsContainer);
+
+                if (type)
+                {
+                    this._configure(type);
+                    var that = this;
+                    require(["qpid/management/loginclusionrule/" + this.category.toLowerCase() + "/" + type.toLowerCase() + "/add"], function(typeUI)
+                    {
+                        try
+                        {
+                            var metadata = that.management.metadata;
+                            var promise = typeUI.show({containerNode:that.typeFieldsContainer, data: that.initialData, metadata: metadata, category: that.category, type: type});
+                            if (promise)
+                            {
+                                promise.then(
+                                    function(instances)
+                                    {
+                                        util.applyToWidgets(that.typeFieldsContainer, that.category, type, that.initialData, metadata);
+                                        if (!that.isNew)
+                                        {
+                                            util.disableWidgetsForImmutableFields(that.allFieldsContainer, that.category, type, metadata);
+                                        }
+                                    });
+                            }
+                        }
+                        catch(e)
+                        {
+                            console.warn(e);
+                        }
+                    });
+                }
+            },
+            _configure: function(type)
+            {
+                if (!this.configured)
+                {
+                    var metadata = this.management.metadata;
+                    util.applyToWidgets(this.allFieldsContainer, this.category, type, this.initialData, metadata);
+                    this.configured = true;
+                }
+            }
+        };
+
+        try
+        {
+            addLogInclusionRule.init();
+        }
+        catch(e)
+        {
+            console.warn(e);
+        }
+        return addLogInclusionRule;
+    });

Modified: qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/Port.js
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/Port.js?rev=1735414&r1=1735413&r2=1735414&view=diff
==============================================================================
--- qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/Port.js (original)
+++ qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/Port.js Thu Mar 17 12:49:39 2016
@@ -147,7 +147,9 @@ define(["dojo/dom",
                            "threadPoolSize",
                            "threadPoolMinimumValue",
                            "threadPoolMaximumValue",
-                           "threadPoolSizeValue"
+                           "threadPoolSizeValue",
+                           "portTypeSpecificDetails",
+                           "portAttributes"
                            ]);
            }
 
@@ -211,7 +213,8 @@ define(["dojo/dom",
 
               this.management.load(this.modelObj).then(function(data)
                    {
-                      thisObj.portData = data[0];
+                      thisObj.portData = data[0] || {};
+                      thisObj.updateUI(thisObj.portData);
                       util.flattenStatistics( thisObj.portData );
                       if (callback)
                       {
@@ -229,5 +232,32 @@ define(["dojo/dom",
                    });
            };
 
+           PortUpdater.prototype.updateUI = function(data)
+           {
+               if (!this.details)
+               {
+                   var that = this;
+                   require(["qpid/management/port/" + data.type.toLowerCase() + "/show"],
+                       function (Details)
+                       {
+                           that.details = new Details({
+                               containerNode: that.portAttributes,
+                               typeSpecificDetailsNode: that.portTypeSpecificDetails,
+                               metadata: that.tabObject.management.metadata,
+                               data: data,
+                               management: that.tabObject.management,
+                               modelObj: that.tabObject.modelObj,
+                               portUpdater: that.portUpdater
+                           });
+                       }
+                   );
+               }
+               else
+               {
+                   this.details.update(data);
+               }
+           }
+
+
            return Port;
        });

Added: qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/addVirtualHostAlias.js
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/addVirtualHostAlias.js?rev=1735414&view=auto
==============================================================================
--- qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/addVirtualHostAlias.js (added)
+++ qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/addVirtualHostAlias.js Thu Mar 17 12:49:39 2016
@@ -0,0 +1,200 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+define(["dojo/_base/lang",
+        "dojo/dom",
+        "dojo/dom-construct",
+        "dojo/parser",
+        "dojo/store/Memory",
+        "dojo/_base/array",
+        "dojo/_base/event",
+        'dojo/json',
+        "dojo/text!addVirtualHostAlias.html",
+/*
+        "dojox/validate/us",
+        "dojox/validate/web",
+        "dojox/layout/TableContainer",
+ */
+        "qpid/common/util",
+        "dijit/registry",
+        "dijit/Dialog",
+        "dijit/form/CheckBox",
+        "dijit/form/Textarea",
+        "dijit/form/ComboBox",
+        "dijit/form/TextBox",
+        "dijit/form/ValidationTextBox",
+        "dijit/form/Button",
+        "dijit/form/Form",
+        "dijit/layout/ContentPane",
+        "dojo/domReady!"],
+    function (lang, dom, construct, parser, memory, array, event, json, template, util, registry)
+    {
+        var addVirtualHostAlias =
+        {
+            init: function()
+            {
+                var that=this;
+                this.category = "VirtualHostAlias";
+                this.containerNode = construct.create("div", {innerHTML: template});
+                parser.parse(this.containerNode).then(function(instances) { that._postParse(); });
+            },
+            _postParse: function()
+            {
+                var that=this;
+                this.name = registry.byId("addVirtualHostAlias.name");
+                this.name.set("regExpGen", util.nameOrContextVarRegexp);
+
+                this.dialog = registry.byId("addVirtualHostAlias");
+                this.addButton = registry.byId("addVirtualHostAlias.addButton");
+                this.cancelButton = registry.byId("addVirtualHostAlias.cancelButton");
+                this.cancelButton.on("click", function(e){that._cancel(e);});
+                this.addButton.on("click", function(e){that._add(e);});
+
+                this.typeFieldsContainer = dom.byId("addVirtualHostAlias.typeFields");
+                this.form = registry.byId("addVirtualHostAlias.form");
+                this.form.on("submit", function(){return false;});
+
+                this.virtualHostAliasType = registry.byId("addVirtualHostAlias.type");
+                this.virtualHostAliasType.on("change", function(type){that._typeChanged(type);});
+
+                this.durable = registry.byId("addVirtualHostAlias.durable");
+                this.priority = registry.byId("addVirtualHostAlias.priority");
+                this.priority.set("regExpGen", util.numericOrContextVarRegexp);
+
+                this.allFieldsContainer = dom.byId("addVirtualHostAlias.contentPane");
+            },
+            show: function(management, modelObj, actualData)
+            {
+                this.management = management;
+                this.modelObj = modelObj;
+                var metadata = management.metadata;
+                this.configured = false;
+                this._destroyTypeFields(this.typeFieldsContainer);
+                this.virtualHostAliasType.set("store", util.makeTypeStoreFromMetadataByCategory(management.metadata, this.category));
+                this.form.reset();
+
+                this.initialData = actualData;
+                this.isNew = !actualData;
+
+                this.name.set("disabled", !this.isNew);
+                this.virtualHostAliasType.set("disabled", !this.isNew);
+                this.durable.set("disabled", !this.isNew);
+                this.dialog.set("title", this.isNew ? "Add Virtual Host Alias" : "Edit Virtual Host Alias - " + actualData.name);
+
+                if (actualData)
+                {
+                    this._configure(actualData.type);
+                }
+
+                this.dialog.show();
+            },
+            _cancel: function(e)
+            {
+                event.stop(e);
+                this._destroyTypeFields(this.typeFieldsContainer);
+                this.dialog.hide();
+            },
+            _add: function(e)
+            {
+                event.stop(e);
+                this._submit();
+            },
+            _submit: function()
+            {
+                if (this.form.validate())
+                {
+                    var that = this;
+                    var formData = util.getFormWidgetValues(this.form, this.initialData);
+
+                    if (this.isNew)
+                    {
+                        this.management.create(this.category, this.modelObj, formData).then(function(x){that.dialog.hide();});
+                    }
+                    else
+                    {
+                        this.management.update(this.modelObj, formData).then(function(x){that.dialog.hide();});
+                    }
+                }
+                else
+                {
+                    alert('Form contains invalid data. Please correct first');
+                }
+            },
+            _destroyTypeFields: function(typeFieldsContainer)
+            {
+                var widgets = registry.findWidgets(typeFieldsContainer);
+                array.forEach(widgets, function(item) { item.destroyRecursive();});
+                construct.empty(typeFieldsContainer);
+            },
+            _typeChanged: function(type)
+            {
+                this._destroyTypeFields(this.typeFieldsContainer);
+
+                if (type)
+                {
+                    this._configure(type);
+                    var that = this;
+                    require(["qpid/management/virtualhostalias/" + type.toLowerCase() + "/add"], function(typeUI)
+                    {
+                        try
+                        {
+                            var metadata = that.management.metadata;
+                            var promise = typeUI.show({containerNode:that.typeFieldsContainer, data: that.initialData, metadata: metadata, category: that.category, type: type});
+                            if (promise)
+                            {
+                                promise.then(
+                                    function(instances)
+                                    {
+                                        util.applyToWidgets(that.typeFieldsContainer, that.category, type, that.initialData, metadata);
+                                        if (!that.isNew)
+                                        {
+                                            util.disableWidgetsForImmutableFields(that.allFieldsContainer, that.category, type, metadata);
+                                        }
+                                    });
+                            }
+                        }
+                        catch(e)
+                        {
+                            console.warn(e);
+                        }
+                    });
+                }
+            },
+            _configure: function(type)
+            {
+                if (!this.configured)
+                {
+                    var metadata = this.management.metadata;
+                    util.applyToWidgets(this.allFieldsContainer, this.category, type, this.initialData, metadata);
+                    this.configured = true;
+                }
+            }
+        };
+
+        try
+        {
+            addVirtualHostAlias.init();
+        }
+        catch(e)
+        {
+            console.warn(e);
+        }
+        return addVirtualHostAlias;
+    });

Added: qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/port/amqp/show.js
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/port/amqp/show.js?rev=1735414&view=auto
==============================================================================
--- qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/port/amqp/show.js (added)
+++ qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/port/amqp/show.js Thu Mar 17 12:49:39 2016
@@ -0,0 +1,105 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+define(["dojo/query",
+        "dojo/text!port/amqp/show.html",
+        "dojox/grid/EnhancedGrid",
+        "dijit/registry",
+        "qpid/common/util",
+        "qpid/common/UpdatableStore",
+        "qpid/management/addVirtualHostAlias",
+        "dojo/domReady!"],
+    function (query, template, EnhancedGrid, registry, util, UpdatableStore, addVirtualHostAlias) {
+        function AmqpPort(params) {
+            var that = this;
+            util.parse(params.typeSpecificDetailsNode, template, function () {
+                that.postParse(params);
+            });
+            this.modelObj = params.modelObj;
+            this.portUpdater = params.portUpdater;
+            this.management = params.management;
+        }
+
+        AmqpPort.prototype.postParse = function (params) {
+            var that = this;
+            var gridProperties = {
+                height: 400,
+                sortInfo: 2,
+                canSort: function(column) { return false; },
+                plugins: {
+                    indirectSelection: true,  // KW TODO checkme
+                    pagination: {
+                        pageSizes: [10, 25, 50, 100],
+                        description: true,
+                        sizeSwitch: true,
+                        pageStepper: true,
+                        gotoButton: true,
+                        maxPageStep: 4,
+                        position: "bottom"
+                    }
+                }
+            };
+
+            this.addButton = registry.byNode(query(".addButton", params.typeSpecificDetailsNode)[0]);
+            this.addButton.on("click", function (e) {
+                addVirtualHostAlias.show(that.management, that.modelObj);
+            });
+            this.deleteButton = registry.byNode(query(".deleteButton", params.typeSpecificDetailsNode)[0]);
+            this.deleteButton.on("click", function (e) {
+                util.deleteSelectedObjects(
+                    that.virtualHostAliasesGrid.grid,
+                    "Are you sure you want to delete virtual host alias",
+                    that.management,
+                    {type: "virtualhostalias", parent:that.modelObj},
+                    that.portUpdater);
+            });
+
+            this.virtualHostAliasesGrid = new UpdatableStore(params.data.virtualhostaliases, query(".virtualHostAliasesGrid", params.typeSpecificDetailsNode)[0],
+                [
+                    {name: "Priority", field: "priority", width: "20%"},
+                    {name: "Name", field: "name", width: "40%"},
+                    {name: "Type", field: "type", width: "40%"}
+                ], function (obj) {
+                    obj.grid.on("rowDblClick",
+                        function (evt) {
+                            var idx = evt.rowIndex;
+                            var theItem = this.getItem(idx);
+                            var aliasModelObj = {name: theItem.name, type: "virtualhostalias", parent: that.modelObj};
+                            that.management.load(aliasModelObj, {actuals: true, depth: 0}).then(
+                                function (data) {
+                                    addVirtualHostAlias.show(that.management, aliasModelObj, data[0]);
+                                }
+                            );
+                        });
+                }, gridProperties, EnhancedGrid);
+        }
+
+        AmqpPort.prototype.update = function (restData) {
+            if (this.virtualHostAliasesGrid) {
+                if (this.virtualHostAliasesGrid.update(restData.virtualhostaliases)) {
+                    this.virtualHostAliasesGrid.grid.sort();
+                    this.virtualHostAliasesGrid.grid.update();
+                }
+            }
+        }
+
+        return AmqpPort;
+    }
+);

Added: qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/port/http/show.js
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/port/http/show.js?rev=1735414&view=auto
==============================================================================
--- qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/port/http/show.js (added)
+++ qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/port/http/show.js Thu Mar 17 12:49:39 2016
@@ -0,0 +1,41 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+define(["qpid/common/util",
+        "dojo/text!port/http/show.html",
+        "qpid/common/TypeTabExtension",
+        "dojo/domReady!"],
+    function (util, template, TypeTabExtension)
+    {
+        function HttpPort(params)
+        {
+            TypeTabExtension.call(this, params.containerNode, template, "Port", params.data.type, params.metadata, params.data);
+        }
+
+        util.extend(HttpPort, TypeTabExtension);
+
+        HttpPort.prototype.update = function (restData)
+        {
+            TypeTabExtension.prototype.update.call(this, restData);
+        }
+
+        return HttpPort;
+    }
+);

Added: qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/virtualhostalias/defaultalias/add.js
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/virtualhostalias/defaultalias/add.js?rev=1735414&view=auto
==============================================================================
--- qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/virtualhostalias/defaultalias/add.js (added)
+++ qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/virtualhostalias/defaultalias/add.js Thu Mar 17 12:49:39 2016
@@ -0,0 +1,47 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+define(["dojo/dom",
+        "dojo/query",
+        "dojo/_base/array",
+        "dijit/registry",
+        "qpid/common/util",
+        "dojo/parser",
+        "dojo/text!virtualhostalias/defaultalias/add.html",
+        "dojo/domReady!"],
+    function (dom, query, array, registry, util, parser, template)
+    {
+        var addVirtualHostAlias =
+        {
+            show: function(data)
+            {
+                var that = this;
+                this.metadata = data.metadata;
+                this.containerNode = data.containerNode;
+                data.containerNode.innerHTML = template;
+                return parser.parse(this.containerNode).then(function(instances)
+                {
+                });
+            }
+        };
+
+        return addVirtualHostAlias;
+    }
+);

Added: qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/virtualhostalias/hostnamealias/add.js
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/virtualhostalias/hostnamealias/add.js?rev=1735414&view=auto
==============================================================================
--- qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/virtualhostalias/hostnamealias/add.js (added)
+++ qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/virtualhostalias/hostnamealias/add.js Thu Mar 17 12:49:39 2016
@@ -0,0 +1,49 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+define(["dojo/dom",
+        "dojo/query",
+        "dojo/_base/array",
+        "dijit/registry",
+        "qpid/common/util",
+        "dojo/parser",
+        "dojo/text!virtualhostalias/hostnamealias/add.html",
+        "dojo/domReady!"],
+    function (dom, query, array, registry, util, parser, template)
+    {
+        var addVirtualHostAlias =
+        {
+            show: function(data)
+            {
+                var that = this;
+                this.metadata = data.metadata;
+                this.containerNode = data.containerNode;
+                data.containerNode.innerHTML = template;
+                return parser.parse(this.containerNode).then(function(instances)
+                {
+                    var virtualHostNodeNameWidget = registry.byId("addVirtualHostAlias.virtualHostNodeName");
+                    virtualHostNodeNameWidget.set("regExpGen", util.nameOrContextVarRegexp);
+                });
+            }
+        };
+
+        return addVirtualHostAlias;
+    }
+);

Added: qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/virtualhostalias/namealias/add.js
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/virtualhostalias/namealias/add.js?rev=1735414&view=auto
==============================================================================
--- qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/virtualhostalias/namealias/add.js (added)
+++ qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/virtualhostalias/namealias/add.js Thu Mar 17 12:49:39 2016
@@ -0,0 +1,47 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+define(["dojo/dom",
+        "dojo/query",
+        "dojo/_base/array",
+        "dijit/registry",
+        "qpid/common/util",
+        "dojo/parser",
+        "dojo/text!virtualhostalias/namealias/add.html",
+        "dojo/domReady!"],
+    function (dom, query, array, registry, util, parser, template)
+    {
+        var addVirtualHostAlias =
+        {
+            show: function(data)
+            {
+                var that = this;
+                this.metadata = data.metadata;
+                this.containerNode = data.containerNode;
+                data.containerNode.innerHTML = template;
+                return parser.parse(this.containerNode).then(function(instances)
+                {
+                });
+            }
+        };
+
+        return addVirtualHostAlias;
+    }
+);

Added: qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/virtualhostalias/patternmatchingalias/add.js
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/virtualhostalias/patternmatchingalias/add.js?rev=1735414&view=auto
==============================================================================
--- qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/virtualhostalias/patternmatchingalias/add.js (added)
+++ qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/virtualhostalias/patternmatchingalias/add.js Thu Mar 17 12:49:39 2016
@@ -0,0 +1,49 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+define(["dojo/dom",
+        "dojo/query",
+        "dojo/_base/array",
+        "dijit/registry",
+        "qpid/common/util",
+        "dojo/parser",
+        "dojo/text!virtualhostalias/patternmatchingalias/add.html",
+        "dojo/domReady!"],
+    function (dom, query, array, registry, util, parser, template)
+    {
+        var addVirtualHostAlias =
+        {
+            show: function(data)
+            {
+                var that = this;
+                this.metadata = data.metadata;
+                this.containerNode = data.containerNode;
+                data.containerNode.innerHTML = template;
+                return parser.parse(this.containerNode).then(function(instances)
+                {
+                    var virtualHostNodeNameWidget = registry.byId("addVirtualHostAlias.virtualHostNodeName");
+                    virtualHostNodeNameWidget.set("regExpGen", util.nameOrContextVarRegexp);
+                });
+            }
+        };
+
+        return addVirtualHostAlias;
+    }
+);

Added: qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/port/amqp/show.html
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/port/amqp/show.html?rev=1735414&view=auto
==============================================================================
--- qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/port/amqp/show.html (added)
+++ qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/port/amqp/show.html Thu Mar 17 12:49:39 2016
@@ -0,0 +1,29 @@
+<!--
+ -
+ - Licensed to the Apache Software Foundation (ASF) under one
+ - or more contributor license agreements.  See the NOTICE file
+ - distributed with this work for additional information
+ - regarding copyright ownership.  The ASF licenses this file
+ - to you under the Apache License, Version 2.0 (the
+ - "License"); you may not use this file except in compliance
+ - with the License.  You may obtain a copy of the License at
+ -
+ -   http://www.apache.org/licenses/LICENSE-2.0
+ -
+ - Unless required by applicable law or agreed to in writing,
+ - software distributed under the License is distributed on an
+ - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ - KIND, either express or implied.  See the License for the
+ - specific language governing permissions and limitations
+ - under the License.
+ -
+ -->
+<div>
+    <div data-dojo-type="dijit.TitlePane" data-dojo-props="title: 'VirtualHost Aliases'" class="clear virtualHostAliasesGridPanel">
+        <div class="virtualHostAliasesGrid hidden"></div>
+        <div class="clear">
+            <button data-dojo-type="dijit.form.Button" class="addButton">Add</button>
+            <button data-dojo-type="dijit.form.Button" class="deleteButton" data-dojo-props="iconClass: 'dijitIconDelete'">Delete</button>
+        </div>
+    </div>
+</div>

Added: qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/port/http/show.html
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/port/http/show.html?rev=1735414&view=auto
==============================================================================
--- qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/port/http/show.html (added)
+++ qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/port/http/show.html Thu Mar 17 12:49:39 2016
@@ -0,0 +1,22 @@
+<!--
+ -
+ - Licensed to the Apache Software Foundation (ASF) under one
+ - or more contributor license agreements.  See the NOTICE file
+ - distributed with this work for additional information
+ - regarding copyright ownership.  The ASF licenses this file
+ - to you under the Apache License, Version 2.0 (the
+ - "License"); you may not use this file except in compliance
+ - with the License.  You may obtain a copy of the License at
+ -
+ -   http://www.apache.org/licenses/LICENSE-2.0
+ -
+ - Unless required by applicable law or agreed to in writing,
+ - software distributed under the License is distributed on an
+ - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ - KIND, either express or implied.  See the License for the
+ - specific language governing permissions and limitations
+ - under the License.
+ -
+ -->
+<div>
+</div>

Modified: qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/showPort.html
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/showPort.html?rev=1735414&r1=1735413&r2=1735414&view=diff
==============================================================================
--- qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/showPort.html (original)
+++ qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/showPort.html Thu Mar 17 12:49:39 2016
@@ -105,12 +105,13 @@
             <div class="formLabel-labelCell">Number of connection threads:</div>
             <div class="formValue-valueCell threadPoolSizeValue"></div>
         </div>
-       <div class="clear"></div>
+        <div class="clear portAttributes"></div>
+        <div class="clear"></div>
     </div>
-    <br/>
-
     <div class="dijitDialogPaneActionBar">
         <button data-dojo-type="dijit.form.Button" class="editPortButton" type="button">Edit</button>
         <button data-dojo-type="dijit.form.Button" class="deletePortButton" type="button">Delete</button>
     </div>
+    <br/>
+    <div class="portTypeSpecificDetails"></div>
 </div>

Added: qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/virtualhostalias/defaultalias/add.html
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/virtualhostalias/defaultalias/add.html?rev=1735414&view=auto
==============================================================================
--- qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/virtualhostalias/defaultalias/add.html (added)
+++ qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/virtualhostalias/defaultalias/add.html Thu Mar 17 12:49:39 2016
@@ -0,0 +1,21 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~   http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<div>
+</div>

Added: qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/virtualhostalias/hostnamealias/add.html
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/virtualhostalias/hostnamealias/add.html?rev=1735414&view=auto
==============================================================================
--- qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/virtualhostalias/hostnamealias/add.html (added)
+++ qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/virtualhostalias/hostnamealias/add.html Thu Mar 17 12:49:39 2016
@@ -0,0 +1,33 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~   http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<div>
+    <div class="clear">
+        <div class="formLabel-labelCell tableContainer-labelCell">Virtual Host Node:</div>
+        <div class="formLabel-controlCell tableContainer-valueCell">
+            <input type="text" id="addVirtualHostAlias.virtualHostNodeName"
+                   data-dojo-type="dijit/form/ValidationTextBox"
+                   data-dojo-props="
+                              name: 'virtualHostNode',
+                              placeHolder: 'virtual host node name',
+                              promptMessage: 'Enter name of virtual host node this alias will map to.',
+                              title: 'Enter the name of the virtual host node this alias will map to'"/>
+        </div>
+    </div>
+</div>

Added: qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/virtualhostalias/namealias/add.html
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/virtualhostalias/namealias/add.html?rev=1735414&view=auto
==============================================================================
--- qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/virtualhostalias/namealias/add.html (added)
+++ qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/virtualhostalias/namealias/add.html Thu Mar 17 12:49:39 2016
@@ -0,0 +1,21 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~   http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<div>
+</div>

Added: qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/virtualhostalias/patternmatchingalias/add.html
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/virtualhostalias/patternmatchingalias/add.html?rev=1735414&view=auto
==============================================================================
--- qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/virtualhostalias/patternmatchingalias/add.html (added)
+++ qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/virtualhostalias/patternmatchingalias/add.html Thu Mar 17 12:49:39 2016
@@ -0,0 +1,45 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~   http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<div>
+    <div class="clear">
+        <div class="formLabel-labelCell tableContainer-labelCell">Virtual Host:</div>
+        <div class="formLabel-controlCell tableContainer-valueCell">
+            <input type="text" id="addVirtualHostAlias.virtualHostNodeName"
+                   data-dojo-type="dijit/form/ValidationTextBox"
+                   data-dojo-props="
+                              name: 'virtualHostNode',
+                              placeHolder: 'virtual host node name',
+                              promptMessage: 'Enter name of virtual host node this alias will map to.',
+                              title: 'Enter the name of the virtual host node this alias will map to'"/>
+        </div>
+    </div>
+    <div class="clear">
+        <div class="formLabel-labelCell tableContainer-labelCell">Pattern:</div>
+        <div class="formLabel-controlCell tableContainer-valueCell">
+            <input type="text" id="addVirtualHostAlias.pattern"
+                   data-dojo-type="dijit/form/ValidationTextBox"
+                   data-dojo-props="
+                              name: 'pattern',
+                              placeHolder: 'regex pattern',
+                              promptMessage: 'Enter a regular expression pattern. Virtual hosts matching this pattern will be mapped to the above virtual host.',
+                              title: 'Virtual hosts matching this pattern will be mapped to the above virtual host.'"/>
+        </div>
+    </div>
+</div>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org