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