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