|
Added
Link Here
|
| 1 |
<% |
| 2 |
/******************************************************************************* |
| 3 |
* Copyright (c) 2005 IBM Corporation and others. |
| 4 |
* All rights reserved. This program and the accompanying materials |
| 5 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 6 |
* which accompanies this distribution, and is available at |
| 7 |
* http://www.eclipse.org/legal/epl-v10.html |
| 8 |
* |
| 9 |
* Contributors: |
| 10 |
* IBM Corporation - initial API and implementation |
| 11 |
*******************************************************************************/ |
| 12 |
%> |
| 13 |
<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.perspective.*, |
| 14 |
org.eclipse.wst.ws.internal.explorer.platform.constants.*, |
| 15 |
org.eclipse.wst.ws.internal.explorer.platform.datamodel.*, |
| 16 |
org.eclipse.wst.ws.internal.explorer.platform.favorites.constants.*, |
| 17 |
org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective.FavoritesPerspective, |
| 18 |
org.eclipse.wst.ws.internal.explorer.platform.favorites.datamodel.*, |
| 19 |
org.eclipse.wst.ws.internal.explorer.platform.util.*, |
| 20 |
org.apache.wsil.extension.uddi.*, |
| 21 |
java.io.*, |
| 22 |
java.util.*, |
| 23 |
org.eclipse.wst.ws.internal.model.v10.registry.Name, |
| 24 |
org.eclipse.wst.ws.internal.model.v10.registry.Description, |
| 25 |
org.eclipse.wst.ws.internal.model.v10.uddiregistry.Taxonomies, |
| 26 |
org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy" %> |
| 27 |
|
| 28 |
<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> |
| 29 |
<% |
| 30 |
FavoritesPerspective favPerspective = controller.getFavoritesPerspective(); |
| 31 |
NodeManager nodeManager = favPerspective.getNodeManager(); |
| 32 |
Node selectedNode = nodeManager.getSelectedNode(); |
| 33 |
ToolManager currentToolManager = selectedNode.getCurrentToolManager(); |
| 34 |
TreeElement selectedElement = selectedNode.getTreeElement(); |
| 35 |
%> |
| 36 |
<html> |
| 37 |
<head> |
| 38 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| 39 |
<title><%=favPerspective.getMessage("FORM_TITLE_USER_DEF_UDDI_REGISTRY_DETAILS")%></title> |
| 40 |
<link rel="stylesheet" type="text/css" href="<%=response.encodeURL(controller.getPathWithContext("css/windows.css"))%>"> |
| 41 |
</head> |
| 42 |
<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>" class="contentbodymargin"> |
| 43 |
<div id="contentborder"> |
| 44 |
|
| 45 |
<% |
| 46 |
String titleImagePath = "images/details_highlighted.gif"; |
| 47 |
String title = favPerspective.getMessage("ALT_FAVORITES_USER_DEF_UDDI_REGISTRY_DETAILS"); |
| 48 |
%> |
| 49 |
<%@ include file = "/forms/formheader.inc" %> |
| 50 |
<% |
| 51 |
if (selectedElement instanceof FavoritesUserDefUDDIRegistryElement) { |
| 52 |
FavoritesUserDefUDDIRegistryElement regElement = (FavoritesUserDefUDDIRegistryElement)selectedElement; |
| 53 |
%> |
| 54 |
|
| 55 |
<% |
| 56 |
String version = regElement.getVersion(); |
| 57 |
if (version != null) |
| 58 |
{ |
| 59 |
%> |
| 60 |
<table width="95%" border=0 cellpadding=3 cellspacing=0 class="tableborder"> |
| 61 |
<tr> |
| 62 |
<th class="singleheadercolor" height=20 valign="bottom" align="left"> |
| 63 |
<%=favPerspective.getMessage("FORM_LABEL_UDDI_VERSION")%> |
| 64 |
</th> |
| 65 |
</tr> |
| 66 |
<tr> |
| 67 |
<td class="tablecells"> |
| 68 |
<%=version%> |
| 69 |
</td> |
| 70 |
</tr> |
| 71 |
</table> |
| 72 |
<% |
| 73 |
} |
| 74 |
%> |
| 75 |
|
| 76 |
<% |
| 77 |
List names = regElement.getNames(); |
| 78 |
if (names != null && !names.isEmpty()) |
| 79 |
{ |
| 80 |
%> |
| 81 |
<br> |
| 82 |
<table width="95%" border=0 cellpadding=3 cellspacing=0 class="tableborder"> |
| 83 |
<tr> |
| 84 |
<th class="singleheadercolor" height=20 valign="bottom" align="left" width="1" nowrap> |
| 85 |
<%=favPerspective.getMessage("FORM_LABEL_LANGUAGE")%> |
| 86 |
</th> |
| 87 |
<th class="singleheadercolor" height=20 valign="bottom" align="left"> |
| 88 |
<%=favPerspective.getMessage("FORM_LABEL_REGISTRY_NAME")%> |
| 89 |
</th> |
| 90 |
</tr> |
| 91 |
<% |
| 92 |
for (Iterator it = names.iterator(); it.hasNext();) |
| 93 |
{ |
| 94 |
Name name = (Name)it.next(); |
| 95 |
String lang = name.getLang(); |
| 96 |
%> |
| 97 |
<tr> |
| 98 |
<td class="tablecells"><%=lang != null ? lang : "--"%></td> |
| 99 |
<td class="tablecells"><%=name.getValue()%></td> |
| 100 |
</tr> |
| 101 |
<% |
| 102 |
} |
| 103 |
%> |
| 104 |
</table> |
| 105 |
<% |
| 106 |
} |
| 107 |
%> |
| 108 |
|
| 109 |
<% |
| 110 |
List descs = regElement.getDescs(); |
| 111 |
if (descs != null && !descs.isEmpty()) |
| 112 |
{ |
| 113 |
%> |
| 114 |
<br> |
| 115 |
<table width="95%" border=0 cellpadding=3 cellspacing=0 class="tableborder"> |
| 116 |
<tr> |
| 117 |
<th class="singleheadercolor" height=20 valign="bottom" align="left" width="1" nowrap> |
| 118 |
<%=favPerspective.getMessage("FORM_LABEL_LANGUAGE")%> |
| 119 |
</th> |
| 120 |
<th class="singleheadercolor" height=20 valign="bottom" align="left"> |
| 121 |
<%=favPerspective.getMessage("FORM_LABEL_DESC")%> |
| 122 |
</th> |
| 123 |
</tr> |
| 124 |
<% |
| 125 |
for (Iterator it = descs.iterator(); it.hasNext();) |
| 126 |
{ |
| 127 |
Description desc = (Description)it.next(); |
| 128 |
String lang = desc.getLang(); |
| 129 |
%> |
| 130 |
<tr> |
| 131 |
<td class="tablecells"><%=lang != null ? lang : "--"%></td> |
| 132 |
<td class="tablecells"><%=desc.getValue()%></td> |
| 133 |
</tr> |
| 134 |
<% |
| 135 |
} |
| 136 |
%> |
| 137 |
</table> |
| 138 |
<% |
| 139 |
} |
| 140 |
%> |
| 141 |
|
| 142 |
<% |
| 143 |
String defaultLogin = regElement.getDefaultLogin(); |
| 144 |
if (defaultLogin != null) |
| 145 |
{ |
| 146 |
%> |
| 147 |
<br> |
| 148 |
<table width="95%" border=0 cellpadding=3 cellspacing=0 class="tableborder"> |
| 149 |
<tr> |
| 150 |
<th class="singleheadercolor" height=20 valign="bottom" align="left"> |
| 151 |
<%=favPerspective.getMessage("FORM_LABEL_DEFAULT_LOGIN")%> |
| 152 |
</th> |
| 153 |
</tr> |
| 154 |
<tr> |
| 155 |
<td class="tablecells"> |
| 156 |
<%=defaultLogin%> |
| 157 |
</td> |
| 158 |
</tr> |
| 159 |
</table> |
| 160 |
<% |
| 161 |
} |
| 162 |
%> |
| 163 |
|
| 164 |
<% |
| 165 |
String defaultPassword = regElement.getDefaultPassword(); |
| 166 |
if (defaultPassword != null) |
| 167 |
{ |
| 168 |
%> |
| 169 |
<br> |
| 170 |
<table width="95%" border=0 cellpadding=3 cellspacing=0 class="tableborder"> |
| 171 |
<tr> |
| 172 |
<th class="singleheadercolor" height=20 valign="bottom" align="left"> |
| 173 |
<%=favPerspective.getMessage("FORM_LABEL_DEFAULT_PASSWORD")%> |
| 174 |
</th> |
| 175 |
</tr> |
| 176 |
<tr> |
| 177 |
<td class="tablecells"> |
| 178 |
<%=defaultPassword%> |
| 179 |
</td> |
| 180 |
</tr> |
| 181 |
</table> |
| 182 |
<% |
| 183 |
} |
| 184 |
%> |
| 185 |
|
| 186 |
<% |
| 187 |
String inquiryURL = regElement.getInquiryURL(); |
| 188 |
if (inquiryURL != null) |
| 189 |
{ |
| 190 |
%> |
| 191 |
<br> |
| 192 |
<table width="95%" border=0 cellpadding=3 cellspacing=0 class="tableborder"> |
| 193 |
<tr> |
| 194 |
<th class="singleheadercolor" height=20 valign="bottom" align="left"> |
| 195 |
<%=favPerspective.getMessage("FORM_LABEL_INQUIRY_URL")%> |
| 196 |
</th> |
| 197 |
</tr> |
| 198 |
<tr> |
| 199 |
<td class="tablecells"> |
| 200 |
<%=inquiryURL%> |
| 201 |
</td> |
| 202 |
</tr> |
| 203 |
</table> |
| 204 |
<% |
| 205 |
} |
| 206 |
%> |
| 207 |
|
| 208 |
<% |
| 209 |
String publishURL = regElement.getPublishURL(); |
| 210 |
if (Validator.validateURL(publishURL)) |
| 211 |
{ |
| 212 |
%> |
| 213 |
<br> |
| 214 |
<table width="95%" border=0 cellpadding=3 cellspacing=0 class="tableborder"> |
| 215 |
<tr> |
| 216 |
<th class="singleheadercolor" height=20 valign="bottom" align="left"> |
| 217 |
<%=favPerspective.getMessage("FORM_LABEL_PUBLISH_URL")%> |
| 218 |
</th> |
| 219 |
</tr> |
| 220 |
<tr> |
| 221 |
<td class="tablecells"> |
| 222 |
<%=publishURL%> |
| 223 |
</td> |
| 224 |
</tr> |
| 225 |
</table> |
| 226 |
<% |
| 227 |
} |
| 228 |
|
| 229 |
String secureInquiryURL = regElement.getSecureInquiryURL(); |
| 230 |
if (Validator.validateURL(secureInquiryURL)) |
| 231 |
{ |
| 232 |
%> |
| 233 |
<br> |
| 234 |
<table width="95%" border=0 cellpadding=3 cellspacing=0 class="tableborder"> |
| 235 |
<tr> |
| 236 |
<th class="singleheadercolor" height=20 valign="bottom" align="left"> |
| 237 |
<%=favPerspective.getMessage("FORM_LABEL_SECURE_INQUIRY_URL")%> |
| 238 |
</th> |
| 239 |
</tr> |
| 240 |
<tr> |
| 241 |
<td class="tablecells"> |
| 242 |
<%=secureInquiryURL%> |
| 243 |
</td> |
| 244 |
</tr> |
| 245 |
</table> |
| 246 |
<% |
| 247 |
} |
| 248 |
|
| 249 |
String securePublishURL = regElement.getSecurePublishURL(); |
| 250 |
if (Validator.validateURL(securePublishURL)) |
| 251 |
{ |
| 252 |
%> |
| 253 |
<br> |
| 254 |
<table width="95%" border=0 cellpadding=3 cellspacing=0 class="tableborder"> |
| 255 |
<tr> |
| 256 |
<th class="singleheadercolor" height=20 valign="bottom" align="left"> |
| 257 |
<%=favPerspective.getMessage("FORM_LABEL_SECURE_PUBLISH_URL")%> |
| 258 |
</th> |
| 259 |
</tr> |
| 260 |
<tr> |
| 261 |
<td class="tablecells"> |
| 262 |
<%=securePublishURL%> |
| 263 |
</td> |
| 264 |
</tr> |
| 265 |
</table> |
| 266 |
<% |
| 267 |
} |
| 268 |
%> |
| 269 |
|
| 270 |
<% |
| 271 |
Taxonomies taxonomies = regElement.getTaxonomies(); |
| 272 |
if (taxonomies != null) |
| 273 |
{ |
| 274 |
List t = taxonomies.getTaxonomy(); |
| 275 |
if (t != null && !t.isEmpty()) |
| 276 |
{ |
| 277 |
%> |
| 278 |
<br> |
| 279 |
<table width="95%" border=0 cellpadding=3 cellspacing=0 class="tableborder"> |
| 280 |
<tr> |
| 281 |
<th class="singleheadercolor" height=20 valign="bottom" align="left"> |
| 282 |
<%=favPerspective.getMessage("FORM_LABEL_TAXONOMY")%> |
| 283 |
</th> |
| 284 |
</tr> |
| 285 |
<% |
| 286 |
for (Iterator it = t.iterator(); it.hasNext();) |
| 287 |
{ |
| 288 |
Taxonomy taxonomy = (Taxonomy)it.next(); |
| 289 |
%> |
| 290 |
<tr> |
| 291 |
<td class="tablecells"><%=taxonomy.getName()%></td> |
| 292 |
</tr> |
| 293 |
<% |
| 294 |
} |
| 295 |
%> |
| 296 |
</table> |
| 297 |
<% |
| 298 |
} |
| 299 |
} |
| 300 |
%> |
| 301 |
|
| 302 |
<jsp:useBean id="currentToolManagerHash" class="java.util.Hashtable" scope="request"> |
| 303 |
<% |
| 304 |
currentToolManagerHash.put(ActionInputs.CURRENT_TOOL_MANAGER,currentToolManager); |
| 305 |
%> |
| 306 |
</jsp:useBean> |
| 307 |
<jsp:include page="/forms/otherActions.jsp" flush="true"/> |
| 308 |
<% |
| 309 |
} |
| 310 |
%> |
| 311 |
</div> |
| 312 |
</body> |
| 313 |
</html> |