CreateSoapSTSDeployment.jsp revision 81ec9608aca5c5fb618d1c92ff435c2ad36f4770
0N/A<%--
82N/A ~ The contents of this file are subject to the terms of the Common Development and
0N/A ~ Distribution License (the License). You may not use this file except in compliance with the
0N/A ~ License.
0N/A ~
0N/A ~ You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
0N/A ~ specific language governing permission and limitations under the License.
0N/A ~
0N/A ~ When distributing Covered Software, include this CDDL Header Notice in each file and include
0N/A ~ the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
0N/A ~ Header, with the fields enclosed by brackets [] replaced by your own identifying
0N/A ~ information: "Portions copyright [year] [name of copyright owner]".
0N/A ~
0N/A ~ Copyright 2015 ForgeRock AS.
0N/A--%>
0N/A
0N/A<%@ page info="CreateSoapSTSDeployment" language="java" %>
0N/A<%@taglib uri="/WEB-INF/jato.tld" prefix="jato" %>
0N/A<%@taglib uri="/WEB-INF/cc.tld" prefix="cc" %>
0N/A<%@taglib tagdir="/WEB-INF/tags" prefix="console"%>
0N/A<%
0N/A request.setCharacterEncoding("UTF-8");
0N/A%>
0N/A<jato:useViewBean
0N/A className="com.sun.identity.console.task.CreateSoapSTSDeploymentViewBean"
862N/A fireChildDisplayEvents="true" >
0N/A
0N/A <cc:i18nbundle baseName="amConsole" id="amConsole"
0N/A locale="<%=((com.sun.identity.console.base.AMViewBeanBase)viewBean).getUserLocale()%>"/>
862N/A
862N/A <cc:header name="hdrCommon" pageTitle="webconsole.title" bundleID="amConsole" copyrightYear="2015" fireDisplayEvents="true">
862N/A
0N/A <link rel="stylesheet" type="text/css" href="../console/css/openam.css" />
0N/A <script language="javascript" src="../console/js/am.js"></script>
862N/A <script language="javascript" src="../console/js/tasksPage.js"></script>
0N/A <script language="javascript" src="../com_sun_web_ui/js/dynamic.js"></script>
0N/A
0N/A <div id="main" style="position: absolute; margin: 0; border: none; padding: 0; width:auto; height:101%;">
0N/A <div id="divhelp" style="display: none; position:absolute; margin: 0; border: 1px solid #AABCC8; padding: 0; width:400px; height:200px; background:#FCFCFC">
0N/A <table border=0 cellpadding=2 cellspacing=0 width="100%">
0N/A <tr><td width=99%><span id="divHelpmsg" /></td>
0N/A <td width="1%" valign="top">
0N/A <img src="../console/images/tasks/close.gif" width="16" height="16" onClick="hideHelp()" />
0N/A </td>
0N/A </tr>
0N/A </table>
0N/A </div>
0N/A
0N/A <cc:form name="CreateSoapSTSDeployment" method="post">
0N/A <jato:hidden name="szCache" />
0N/A <script language="javascript">
0N/A function confirmLogout() {
0N/A return confirm("<cc:text name="txtLogout" defaultValue="masthead.logoutMessage" bundleID="amConsole"/>");
0N/A }
0N/A
0N/A function cancelOp() {
0N/A redirectToXui();
0N/A return false;
1066N/A }
0N/A
430N/A </script>
430N/A
0N/A <cc:primarymasthead name="mhCommon" bundleID="amConsole" logoutOnClick="return confirmLogout();" locale="<%=((com.sun.identity.console.base.AMViewBeanBase)viewBean).getUserLocale()%>"/>
0N/A <table border="0" cellpadding="10" cellspacing="0" width="100%">
0N/A <tr>
0N/A <td>
0N/A <cc:alertinline name="ialertCommon" bundleID="amConsole" />
0N/A </td>
0N/A </tr>
0N/A </table>
0N/A
0N/A <%-- PAGE CONTENT --------------------------------------------------------- --%>
0N/A <cc:pagetitle name="pgtitle" bundleID="amConsole" pageTitleText="page.title.configure.soapstsdeployment" showPageTitleSeparator="true" viewMenuLabel="" pageTitleHelpMessage="" showPageButtonsTop="true" showPageButtonsBottom="false" />
0N/A
0N/A <table border="0" cellpadding="20" cellspacing="0">
0N/A <tr><td>
0N/A <cc:text name="txtDesc" defaultValue="page.desc.configure.soapstsdeployment" bundleID="amConsole" />
0N/A </td></tr>
0N/A </table>
0N/A
0N/A
0N/A <cc:propertysheet name="propertyAttributes" bundleID="amConsole" showJumpLinks="false"/>
0N/A
0N/A </cc:form>
0N/A </cc:header>
0N/A </div>
430N/A <div id="dlg" class="dvs"></div>
430N/A
0N/A <console:redirectToXui realm="encodeURIComponent(frm.elements['CreateSoapSTSDeployment.tfRealm'].value)"
0N/A xuiPath="../XUI#realms/{realm}/dashboard"/>
0N/A
0N/A <script language="javascript">
0N/A var msgCreating = "<p><img src=\"../console/images/processing.gif\" width=\"66\" height\"66\"/></p><cc:text name="txtConfiguring" defaultValue="configuring.soapstsdeployment.waiting" bundleID="amConsole" escape="false" />";
0N/A var ttlCreated = "<h3><cc:text name="txtTtlCreated" defaultValue="soapstsdeployment.configured.title" escape="false" bundleID="amConsole" /></h3>";
0N/A var msgCreated = "<p>&nbsp;</p><input name=\"btnOK\" type=\"submit\" class=\"Btn1\" value=\"<cc:text name="txtOKBtn" defaultValue="ajax.ok.button" bundleID="amConsole" />\" onClick=\"redirectToXui();return false;\" /></div></p>";
0N/A var closeBtn = "<p>&nbsp;</p><p><div class=\"TtlBtnDiv\"><input name=\"btnClose\" type=\"submit\" class=\"Btn1\" value=\"<cc:text name="txtCloseBtn" defaultValue="ajax.close.button" bundleID="amConsole" />\" onClick=\"focusMain();return false;\" /></div></p>";
0N/A
0N/A var frm = document.forms['CreateSoapSTSDeployment'];
0N/A var btn1 = frm.elements['CreateSoapSTSDeployment.button1'];
0N/A btn1.onclick = submitPage;
0N/A var btn2 = frm.elements['CreateSoapSTSDeployment.button2'];
0N/A btn2.onclick = cancelOp;
0N/A var ajaxObj = getXmlHttpRequestObject();
0N/A var userLocale = "<%= viewBean.getUserLocale().toString() %>";
0N/A
0N/A function getData() {
0N/A var realm = frm.elements['CreateSoapSTSDeployment.tfRealm'].value;
0N/A var openAMUrl = frm.elements['CreateSoapSTSDeployment.tfOpenAMUrl'].value;
0N/A var soapAgentName = frm.elements['CreateSoapSTSDeployment.tfSoapAgentName'].value;
0N/A var soapAgentPassword = frm.elements['CreateSoapSTSDeployment.tfSoapAgentPassword'].value;
0N/A
0N/A var keystoreFileNamesSize = frm.elements['CreateSoapSTSDeployment.elKeystoreFileNames.listbox'].length;
0N/A var i=0;
0N/A var keystoreFileNames="";
0N/A for (i=0;i<keystoreFileNamesSize-1;i++)
0N/A {
0N/A keystoreFileNames+=frm.elements['CreateSoapSTSDeployment.elKeystoreFileNames.listbox'].options[i].value + ",";
0N/A }
0N/A
0N/A var wsdlFileNamesSize = frm.elements['CreateSoapSTSDeployment.elCustomWsdlFileNames.listbox'].length;
0N/A var wsdlFileNames="";
0N/A for (i=0;i<wsdlFileNamesSize-1;i++)
0N/A {
0N/A wsdlFileNames+=frm.elements['CreateSoapSTSDeployment.elCustomWsdlFileNames.listbox'].options[i].value + ",";
0N/A }
0N/A
0N/A var params = "&realm=" + escapeEx(realm)
0N/A + "&openAMUrl=" + escapeEx(openAMUrl)
0N/A + "&soapAgentName=" + escapeEx(soapAgentName)
0N/A + "&soapAgentPassword=" + escapeEx(soapAgentPassword)
0N/A + "&keystoreFileNames=" + escapeEx(keystoreFileNames)
0N/A + "&wsdlFileNames=" + escapeEx(wsdlFileNames);
0N/A
0N/A return params;
0N/A }
0N/A
0N/A function submitPage() {
0N/A document.getElementById('dlg').style.top = '300px';
0N/A fade();
0N/A document.getElementById('dlg').innerHTML = '<center>' +
0N/A msgCreating + '</center>';
0N/A var url = "../console/ajax/AjaxProxy.jsp";
0N/A var params = 'locale=' + userLocale +
0N/A '&class=com.sun.identity.workflow.CreateSoapSTSDeployment' + getData();
0N/A ajaxPost(ajaxObj, url, params, configured);
0N/A return false;
0N/A }
0N/A
0N/A function configured() {
0N/A if (ajaxObj.readyState == 4) {
0N/A var result = hexToString(ajaxObj.responseText);
0N/A var status = result.substring(0, result.indexOf('|'));
0N/A var result = result.substring(result.indexOf('|') +1);
0N/A var msg = '<center><p>' + result + '</p></center>';
0N/A if (status == 0) {
0N/A msg = '<center>' + ttlCreated + msg + msgCreated + '</center>';
0N/A } else {
0N/A msg = msg + '<center>' + closeBtn + '</center>';
0N/A }
0N/A document.getElementById('dlg').innerHTML = msg;
0N/A }
0N/A }
0N/A
0N/A </script>
0N/A</jato:useViewBean>