ServerEditUMA.jsp revision 8df974db6a280f05491e26c4f0f59e7568fe5b02
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync ~ The contents of this file are subject to the terms of the Common Development and
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync ~ Distribution License (the License). You may not use this file except in compliance with the
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync ~ You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync ~ specific language governing permission and limitations under the License.
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync ~ When distributing Covered Software, include this CDDL Header Notice in each file and include
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync ~ the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync ~ Header, with the fields enclosed by brackets [] replaced by your own identifying
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync ~ information: "Portions copyright [year] [name of copyright owner]".
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync ~ Copyright 2015 ForgeRock AS.
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync<%@ page info="ServerEditUMA" language="java" %>
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync<%@taglib uri="/WEB-INF/jato.tld" prefix="jato" %>
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync<%@taglib uri="/WEB-INF/cc.tld" prefix="cc" %>
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync<jato:useViewBean className="com.sun.identity.console.service.ServerEditUMAViewBean" fireChildDisplayEvents="true" >
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync <cc:i18nbundle baseName="amConsole" id="amConsole" locale="<%=((com.sun.identity.console.base.AMViewBeanBase)viewBean).getUserLocale()%>"/>
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync <cc:header name="hdrCommon" pageTitle="webconsole.title" bundleID="amConsole" copyrightYear="2007" fireDisplayEvents="true">
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync <script language="javascript">
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync // Field names.
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync var storeLocationRadioButtonName = 'ServerEditUMA.cscorg-forgerock-services-resourcesets-store-location';
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync var sslEnableCheckBoxName = 'ServerEditUMA.cscorg-forgerock-services-resourcesets-store-ssl-enabled';
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync var directoryNameFieldName = 'ServerEditUMA.cscorg-forgerock-services-resourcesets-store-directory-name';
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync var portFieldName = 'ServerEditUMA.cscorg-forgerock-services-resourcesets-store-port';
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync var loginIdFieldName = 'ServerEditUMA.cscorg-forgerock-services-resourcesets-store-loginid';
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync var passwordFieldName = 'ServerEditUMA.cscorg-forgerock-services-resourcesets-store-password';
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync var maxConnectionsFieldName = 'ServerEditUMA.cscorg-forgerock-services-resourcesets-store-max-connections';
5c47137ffdbcb823e83b3cfc93bf8ccd3318bec3vboxsync var heartbeat = 'ServerEditUMA.cscorg-forgerock-services-resourcesets-store-heartbeat';
5c47137ffdbcb823e83b3cfc93bf8ccd3318bec3vboxsync window.onload = function() {
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync // Set the initial state of the fields.
5c47137ffdbcb823e83b3cfc93bf8ccd3318bec3vboxsync var radioBtns = document.getElementsByName(storeLocationRadioButtonName);
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync // Do nothing, there must be two radio buttons.
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync toggleExternalConfig((radioBtns[0].checked) ? radioBtns[0] : radioBtns[1]);
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync // Retrieves the first element of the given name.
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync function getFirstElementByName(name) {
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync var elements = document.getElementsByName(name);
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync return (elements.length > 0) ? elements[0] : null;
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync // Toggles the status of the external configuration fields.
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync function toggleExternalConfig(storeLocationRadioButton) {
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync var readonly = storeLocationRadioButton.value == 'default';
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync toggleField(sslEnableCheckBoxName, readonly);
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync toggleField(directoryNameFieldName, readonly);
20024c6bd4100e9925d1ff0516af5753814fc43dvboxsync toggleField(portFieldName, readonly);
field.setAttribute('readonly', 'readonly');
field.className = 'TxtFldDis';
field.removeAttribute('readonly');
field.className = 'TxtFld';
return confirm("<cc:text name="txtLogout" defaultValue="masthead.logoutMessage" bundleID="amConsole"/>");
<cc:primarymasthead name="mhCommon" bundleID="amConsole" logoutOnClick="return confirmLogout();" locale="<%=((com.sun.identity.console.base.AMViewBeanBase)viewBean).getUserLocale()%>"/>
<cc:pagetitle name="pgtitleThreeBtns" bundleID="amConsole" pageTitleText="page.title.server.edit" showPageTitleSeparator="true" viewMenuLabel="" pageTitleHelpMessage="" showPageButtonsTop="true" showPageButtonsBottom="false" />
<cc:button name="btnInherit" bundleID="amConsole" defaultValue="serverconfig.button.inherit" type="primary" />