summaryrefslogtreecommitdiff
path: root/java/broker-plugins/management-http/src/main/java/resources/addPort.html
blob: c76a230382ab877bdadeb409edbb144f068e19b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
<!--
 -
 - 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:'Port'" id="addPort">
        <form id="formAddPort" method="post" data-dojo-type="dijit.form.Form">
            <div class="hidden infoMessage" id="portEditWarning">NOTE: changes will only take effect after Broker restart.</div>
            <div id="formAddPort:fields">

                <div class="clear">
                    <div class="formLabel-labelCell">
                        <label for="formAddPort.name">Name*:</label>
                    </div>
                    <div class="formLabel-controlCell">
                        <input id="formAddPort.name" type="text"
                               data-dojo-type="dijit.form.ValidationTextBox"
                               data-dojo-props="
                                name: 'name',
                                required: 'true',
                                placeHolder: 'name',
                                promptMessage: 'Name of port, must be unique',
                                title: 'Enter name of port'"/>
                    </div>
                </div>

                <div class="clear">
                    <div class="formLabel-labelCell">
                        <label for="formAddPort.type">Port Type*:</label>
                    </div>
                    <div class="formLabel-controlCell">
                        <select id="formAddPort.type"
                                data-dojo-type="dijit.form.FilteringSelect"
                                data-dojo-props="
                                    name: 'type',
                                    label: 'Port Type*:',
                                    value: '',
                                    placeHolder: 'port type',
                                    promptMessage: 'Port type',
                                    title: 'Enter port type'">
                        </select>
                    </div>
                </div>

                <div class="clear">
                    <div class="formLabel-labelCell">
                        <label for="formAddPort.port">Port Number*:</label>
                    </div>
                    <div class="formLabel-controlCell">
                        <input id="formAddPort.port" type="text"
                               data-dojo-type="dijit.form.ValidationTextBox"
                               data-dojo-props="
                                name: 'port',
                                required: 'true',
                                placeHolder: 'port number',
                                promptMessage: 'Port number to be bound',
                                title: 'Enter port number'"/>
                    </div>
                </div>
            </div>

            <div id="formAddPort:fieldsProtocols">
                <div class="clear">
                    <div class="formLabel-labelCell">
                        <label for="formAddPort.protocols">Protocols:</label>
                    </div>
                    <div class="formLabel-controlCell">
                        <select id="formAddPort.protocols"
                                data-dojo-type="dijit.form.MultiSelect"
                                data-dojo-props="
                                    name: 'protocols',
                                    value: '',
                                    title: 'Select protocol(s) to be associated with this port'">
                        </select>
                    </div>
                    <div id="formAddPort.protocols.tooltip"
                         data-dojo-type="dijit.Tooltip"
                         data-dojo-props="connectId: 'formAddPort.protocols',
                                          label: 'Protocol(s) to be associated with the port'">
                    </div>

                </div>
            </div>

            <div id="formAddPort:fieldsAuthenticationProvider">
                <div class="clear">
                    <div class="formLabel-labelCell">
                        <label for="formAddPort.authenticationProvider">Authentication Provider*:</label>
                    </div>
                    <div class="formLabel-controlCell">
                        <select id="formAddPort.authenticationProvider"
                                data-dojo-type="dijit.form.FilteringSelect"
                                data-dojo-props="
                            name: 'authenticationProvider',
                            searchAttr: 'name',
                            required: true,
                            placeHolder: 'provider',
                            promptMessage: 'Authentication provider to authenticate users connecting to the port',
                            title: 'Associate the port with an authentication provider'">
                        </select>
                    </div>
                </div>
            </div>

            <div id="formAddPort:fieldsBindingAddress">
                <div class="clear">
                    <div class="formLabel-labelCell">
                        <label for="formAddPort.bindingAddress">Binding address:</label>
                    </div>
                    <div class="formLabel-controlCell">
                        <input id="formAddPort.bindingAddress" type="text"
                               data-dojo-type="dijit.form.ValidationTextBox"
                               data-dojo-props="
                            name: 'bindingAddress',
                            placeHolder: 'binding address',
                            promptMessage: 'Restricts the port to listen on the specified address only. The <code>*</code> wildcard signifies all addresses',
                            title: 'Enter a binding address'"/>
                    </div>
                </div>
            </div>

            <div id="formAddPort:transport" >
                <div class="clear">
                    <div class="formLabel-labelCell">
                        <label for="formAddPort.transports">Transport:</label>
                    </div>
                    <div class="formLabel-controlCell">
                        <select id="formAddPort.transports"
                                data-dojo-type="dijit.form.MultiSelect"
                                data-dojo-props="
                                    name: 'transports',
                                    placeHolder: 'TCP',
                                    value: '',
                                    multiple: true,
                                    title: 'Select transport(s) to be associated with the port'">
                        </select>
                        <div id="formAddPort.transports.tooltip"
                             data-dojo-type="dijit.Tooltip"
                             data-dojo-props="connectId: 'formAddPort.transports',
                                              label: 'Transport(s) to be associated with the port'">
                        </div>
                    </div>
                </div>
            </div>

            <div id="formAddPort:fieldsTransportSSL">
                <div class="clear">
                    <div class="formLabel-labelCell">
                        <label for="formAddPort.keyStore">Key Store*:</label>
                    </div>
                    <div class="formLabel-controlCell">
                        <select id="formAddPort.keyStore"
                                data-dojo-type="dijit.form.FilteringSelect"
                                data-dojo-props="
                                    name: 'keyStore',
                                    label: 'Key Store*:',
                                    searchAttr: 'name',
                                    placeHolder: 'keystore',
                                    value: '',
                                    required: true,
                            promptMessage: 'Keystore that provides the SSL certificate',
                            title: 'Select the keystore that provides the SSL certificate'">
                        </select>
                    </div>
                </div>
            </div>

            <div id="formAddPort:fieldsClientAuth">
                <div id="formAddPort:fieldsClientAuthCheckboxes">
                    <div class="clear">
                        <div class="formLabel-labelCell">
                            <label for="formAddPort.needClientAuth">Need SSL Client Certificate:</label>
                        </div>
                        <div class="formLabel-controlCell">
                            <input id="formAddPort.needClientAuth" type="checkbox"
                                   data-dojo-type="dijit.form.CheckBox"
                                   data-dojo-props="
                                    name: 'needClientAuth'" />
                        </div>
                    </div>
                    <div class="clear">
                        <div class="formLabel-labelCell">
                            <label for="formAddPort.wantClientAuth">Want SSL Client Certificate:</label>
                        </div>
                        <div class="formLabel-controlCell">
                            <input id="formAddPort.wantClientAuth" type="checkbox"
                                   data-dojo-type="dijit.form.CheckBox"
                                   data-dojo-props="
                            name: 'wantClientAuth'" />
                        </div>
                    </div>
                </div>

                <div class="clear">
                    <div class="formLabel-labelCell">
                        Trust Stores:
                    </div>
                </div>

                <div class="clear">
                    <div class="formLabel-controlCell">
                        <table id="formAddPort.trustStores"
                               data-dojo-type="dojox.grid.EnhancedGrid"
                               data-dojo-props="
                                plugins: {indirectSelection: true},
                                rowSelector:'0px'"
                               style="height: 100px; width:400px"> <!--todo remove -->
                            <thead>
                                <tr>
                                    <th field="name">Name</th>
                                    <th field="peersOnly">Peers Only</th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                </div>
            </div>

            <input type="hidden" id="formAddPort.id" name="id"/>
            <div class="clear"></div>
            <div class="dijitDialogPaneActionBar">
                <!-- submit buttons -->
                <input type="submit" value="Save Port" label="Save Port" dojoType="dijit.form.Button" />
            </div>
        </form>
    </div>
</div>