|
@@ -1,15 +1,3 @@
|
|
|
-<%@ page import="password.pwm.config.PwmSettingCategory" %>
|
|
|
-<%@ page import="password.pwm.config.PwmSettingSyntax" %>
|
|
|
-<%@ page import="password.pwm.config.PwmSettingTemplate" %>
|
|
|
-<%@ page import="password.pwm.error.PwmError" %>
|
|
|
-<%@ page import="password.pwm.error.PwmException" %>
|
|
|
-<%@ page import="password.pwm.http.JspUtility" %>
|
|
|
-<%@ page import="password.pwm.i18n.PwmLocaleBundle" %>
|
|
|
-<%@ page import="password.pwm.svc.event.AuditEvent" %>
|
|
|
-<%@ page import="password.pwm.svc.stats.Statistic" %>
|
|
|
-<%@ page import="password.pwm.util.LocaleHelper" %>
|
|
|
-<%@ page import="password.pwm.util.StringUtil" %>
|
|
|
-<%@ page import="java.util.*" %>
|
|
|
<%--
|
|
|
~ Password Management Servlets (PWM)
|
|
|
~ http://code.google.com/p/pwm/
|
|
@@ -33,399 +21,10 @@
|
|
|
--%>
|
|
|
|
|
|
<!DOCTYPE html>
|
|
|
-<% JspUtility.setFlag(pageContext, PwmRequest.Flag.HIDE_HEADER_WARNINGS); %>
|
|
|
-<% JspUtility.setFlag(pageContext, PwmRequest.Flag.HIDE_THEME); %>
|
|
|
-<% JspUtility.setFlag(pageContext, PwmRequest.Flag.NO_REQ_COUNTER); %>
|
|
|
-<% JspUtility.setFlag(pageContext, PwmRequest.Flag.NO_IDLE_TIMEOUT); %>
|
|
|
-<% JspUtility.setFlag(pageContext, PwmRequest.Flag.HIDE_HEADER_BUTTONS); %>
|
|
|
-<% JspUtility.setFlag(pageContext, PwmRequest.Flag.HIDE_FOOTER_TEXT); %>
|
|
|
-<% final boolean advancedMode = JspUtility.getPwmRequest(pageContext).hasParameter("advanced"); %>
|
|
|
<%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
|
|
|
<%@ taglib uri="pwm" prefix="pwm" %>
|
|
|
-<% final Locale userLocale = JspUtility.locale(request); %>
|
|
|
-<%
|
|
|
- PwmRequest pwmRequest = null;
|
|
|
- List<PwmSettingCategory> sortedCategories = new ArrayList();
|
|
|
- try {
|
|
|
- pwmRequest = PwmRequest.forRequest(request, response);
|
|
|
- sortedCategories.addAll(PwmSettingCategory.sortedValues(pwmRequest.getLocale()));
|
|
|
- for (Iterator<PwmSettingCategory> iterator = sortedCategories.iterator(); iterator.hasNext(); ) {
|
|
|
- PwmSettingCategory category = iterator.next();
|
|
|
- if (category.isHidden() || (category.getSettings().isEmpty() && category.getDescription(userLocale).isEmpty())) {
|
|
|
- iterator.remove();
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- } catch (PwmException e) {
|
|
|
- JspUtility.logError(pageContext, "error during page setup: " + e.getMessage());
|
|
|
- }
|
|
|
-%>
|
|
|
<html dir="<pwm:LocaleOrientation/>">
|
|
|
-<%@ include file="/WEB-INF/jsp/fragment/header.jsp" %>
|
|
|
-<body class="nihilo">
|
|
|
-<div id="wrapper">
|
|
|
- <jsp:include page="/WEB-INF/jsp/fragment/header-body.jsp">
|
|
|
- <jsp:param name="pwm.PageName" value="Reference"/>
|
|
|
- </jsp:include>
|
|
|
- <div id="centerbody" style="width: 800px">
|
|
|
- <ol>
|
|
|
- <li><a href="#eventStatistics">Event Statistics</a></li>
|
|
|
- <li><a href="#auditEvents">Audit Events</a></li>
|
|
|
- <li><a href="#errors">Errors</a></li>
|
|
|
- <li><a href="#settings">Settings</a></li>
|
|
|
- <ol>
|
|
|
- <% for (final PwmSettingCategory category : sortedCategories) { %>
|
|
|
- <li><a href="#settings_category_<%=category.toString()%>"><%=category.toMenuLocationDebug(null,userLocale)%></a></li>
|
|
|
- <% } %>
|
|
|
- </ol>
|
|
|
- <% if (advancedMode) { %>
|
|
|
- <li><a href="#settingStatistics">Setting Statistics</a></li>
|
|
|
- <li><a href="#appProperties">Application Properties</a></li>
|
|
|
- <% } %>
|
|
|
- <li><a href="#displayStrings">Display Strings</a></li>
|
|
|
- <ol>
|
|
|
- <% for (PwmLocaleBundle bundle : PwmLocaleBundle.values()) { %>
|
|
|
- <li><a href="#displayStrings_<%=bundle.getTheClass().getSimpleName()%>"><%=bundle.getTheClass().getSimpleName()%></a></li>
|
|
|
- <% } %>
|
|
|
- </ol>
|
|
|
- </ol>
|
|
|
- <br/>
|
|
|
- <h1><a id="eventStatistics">Event Statistics</a></h1>
|
|
|
- <table>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <h3>Label</h3>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <h3>Key</h3>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <h3>Description</h3>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <% for (final Statistic statistic : Statistic.sortedValues(userLocale)) { %>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <%=statistic.getLabel(userLocale)%>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <%=statistic.getKey()%>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <%=statistic.getDescription(userLocale)%>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <% } %>
|
|
|
- </table>
|
|
|
- <h1><a id="auditEvents">Audit Events</a></h1>
|
|
|
- <table>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <h3>Key</h3>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <h3>Type</h3>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <h3>Resource Key</h3>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <h3>Label</h3>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <% for (AuditEvent auditEvent : AuditEvent.values()) { %>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <%= auditEvent.toString() %>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <%= auditEvent.getType() %>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <%= auditEvent.getMessage().getKey() %>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <%= auditEvent.getMessage().getLocalizedMessage(userLocale, null) %>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <% } %>
|
|
|
- </table>
|
|
|
- <h1><a id="errors">Errors</a></h1>
|
|
|
- <table class="tablemain">
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <h3>Error Number</h3>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <h3>Key</h3>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <h3>Resource Key</h3>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <h3>Message</h3>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <% for (PwmError error : PwmError.values()) { %>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <%=error.getErrorCode()%>
|
|
|
- </td>
|
|
|
- <td >
|
|
|
- <%=error.toString()%>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <%=error.getResourceKey()%>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <%=error.getLocalizedMessage(userLocale, null)%>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <% } %>
|
|
|
- </table>
|
|
|
- <h1><a id="settings">Configuration Settings</a></h1>
|
|
|
- <% for (final PwmSettingCategory category : sortedCategories) { %>
|
|
|
- <h2><a id="settings_category_<%=category.toString()%>"><%=category.getLabel(userLocale)%></a></h2>
|
|
|
- <p>
|
|
|
- <%=category.getDescription(userLocale)%>
|
|
|
- </p>
|
|
|
- <% for (final PwmSetting setting : category.getSettings()) { %>
|
|
|
- <% if (!setting.isHidden()) { %>
|
|
|
- <a id="setting_key_<%=setting.getKey()%>" style="font-weight: inherit; text-decoration: none">
|
|
|
- <table>
|
|
|
- <tr>
|
|
|
- <td class="key" style="width: 100px">
|
|
|
-
|
|
|
- <div style="text-align: left">
|
|
|
- <a href="#setting_key_<%=setting.getKey()%>" style="text-decoration: inherit">
|
|
|
- <span class="btn-icon fa fa-link"></span>
|
|
|
- </a>
|
|
|
- </div>
|
|
|
- Label
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <%=setting.getLabel(userLocale)%>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class="key" style="width: 100px">
|
|
|
- Key
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <%=setting.getKey()%>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class="key" style="width: 100px">
|
|
|
- Navigation
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <%=setting.toMenuLocationDebug(null,userLocale)%>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class="key" style="width: 100px">
|
|
|
- Syntax
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <%=setting.getSyntax()%>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class="key" style="width: 100px">
|
|
|
- Level
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <%=setting.getLevel()%>
|
|
|
- <% if (setting.getLevel() == 0) { %>
|
|
|
- (Normal)
|
|
|
- <% } else if (setting.getLevel() == 1) { %>
|
|
|
- (Advanced)
|
|
|
- <% } %>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class="key" style="width: 100px">
|
|
|
- Required
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <%=setting.isRequired()%>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class="key" style="width: 100px">
|
|
|
- Confidential
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <%=setting.isConfidential()%>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <% if (setting.getSyntax() == PwmSettingSyntax.OPTIONLIST || setting.getSyntax() == PwmSettingSyntax.SELECT) { %>
|
|
|
- <tr>
|
|
|
- <td class="key" style="width: 100px">
|
|
|
- Options
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <table>
|
|
|
- <thead>
|
|
|
- <tr><td><b>Stored Value</b></td><td><b>Display</b></td></tr>
|
|
|
- </thead>
|
|
|
- <tbody>
|
|
|
- <% for (final String key : setting.getOptions().keySet()) { %>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <%=key%>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <%=setting.getOptions().get(key)%>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <% } %>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <% } %>
|
|
|
- <% final Map<PwmSettingTemplate,String> defaultValues = setting.getDefaultValueDebugStrings(userLocale); %>
|
|
|
- <tr>
|
|
|
- <td class="key" style="width: 100px">
|
|
|
- Default
|
|
|
- </td>
|
|
|
- <td style="max-width: 690px; overflow-x: auto">
|
|
|
- <% if (defaultValues.size() > 1) { %>
|
|
|
- <table>
|
|
|
- <thead>
|
|
|
- <tr><td><b>Template</b></td><td><b>Value</b></td></tr>
|
|
|
- </thead>
|
|
|
- <tbody>
|
|
|
- <%
|
|
|
- for (final PwmSettingTemplate template : defaultValues.keySet()) {
|
|
|
- final String defaultValue = defaultValues.get(template);
|
|
|
- %>
|
|
|
- <tr><td><%=template.getLabel(userLocale)%></td><td>
|
|
|
- <%=defaultValue == null ? "" : StringUtil.escapeHtml(defaultValue)%>
|
|
|
- </td></tr>
|
|
|
- <% } %>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- <%
|
|
|
- } else if (defaultValues.size() == 1) {
|
|
|
- final String defaultValue = defaultValues.values().iterator().next();
|
|
|
- %>
|
|
|
- <pre><%=defaultValue == null ? "" : StringUtil.escapeHtml(defaultValue)%></pre>
|
|
|
- <% } %>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td colspan="2">
|
|
|
- <%=setting.getDescription(userLocale)%>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <% } %>
|
|
|
- </table>
|
|
|
- </a>
|
|
|
- <br/>
|
|
|
- <% } %>
|
|
|
- <% } %>
|
|
|
- <% if (advancedMode) { %>
|
|
|
- <h2><a id="settingStatistics">Setting Statistics</a></h2>
|
|
|
- <% Map<PwmSetting.SettingStat,Object> settingStats = PwmSetting.getStats(); %>
|
|
|
- <table>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- Total Settings
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <%= settingStats.get(PwmSetting.SettingStat.Total) %>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- Settings that are part of a Profile
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <%= settingStats.get(PwmSetting.SettingStat.hasProfile) %>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <% Map<PwmSettingSyntax,Integer> syntaxCounts = (Map<PwmSettingSyntax,Integer>)settingStats.get(PwmSetting.SettingStat.syntaxCounts); %>
|
|
|
- <% for (final PwmSettingSyntax loopSyntax : syntaxCounts.keySet()) { %>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- Settings with syntax type <%= loopSyntax.toString() %>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <%= syntaxCounts.get(loopSyntax) %>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <% } %>
|
|
|
- </table>
|
|
|
-
|
|
|
- <h2><a id="appProperties">Application Properties</a></h2>
|
|
|
- <table>
|
|
|
- <tr>
|
|
|
- <td class="key" style="text-align: left">
|
|
|
- Key
|
|
|
- </td>
|
|
|
- <td class="key" style="text-align: left">
|
|
|
- Default Value
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <% for (final AppProperty appProperty : AppProperty.values()) { %>
|
|
|
- <tr>
|
|
|
- <td style="width: auto; white-space: nowrap; text-align: left">
|
|
|
- <%=appProperty.getKey()%>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <%=appProperty.getDefaultValue()%>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <% } %>
|
|
|
- </table>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- <% } %>
|
|
|
- <h1><a id="displayStrings">Display Strings</a></h1>
|
|
|
- <% for (PwmLocaleBundle bundle : PwmLocaleBundle.values()) { %>
|
|
|
- <h2>
|
|
|
- <a id="displayStrings_<%=bundle.getTheClass().getSimpleName()%>"><%=bundle.getTheClass().getSimpleName()%></a>
|
|
|
- <% if (bundle.isAdminOnly()) { %> (admin-only) <% } %>
|
|
|
- </h2>
|
|
|
- <table>
|
|
|
- <% final ResourceBundle resourceBundle = ResourceBundle.getBundle(bundle.getTheClass().getName()); %>
|
|
|
- <% for (final String key : new TreeSet<String>(Collections.list(resourceBundle.getKeys()))) { %>
|
|
|
- <% final Map<Locale,String> values = LocaleHelper.getUniqueLocalizations(pwmRequest.getPwmApplication(), bundle.getTheClass(), key, PwmConstants.DEFAULT_LOCALE); %>
|
|
|
- <% for (final Locale locale : values.keySet()) { %>
|
|
|
- <% if (locale.equals(PwmConstants.DEFAULT_LOCALE)) { %>
|
|
|
- <tr>
|
|
|
- <td rowspan="<%=values.size()%>">
|
|
|
- <%=key%>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <%= locale.toString()%> - <%=locale.getDisplayName(userLocale)%>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <%= values.get(locale) %>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <% } else { %>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <%= locale.toString()%> - <%=locale.getDisplayName(userLocale)%>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <%= values.get(locale) %>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <% } %>
|
|
|
- <% } %>
|
|
|
- <% } %>
|
|
|
- </table>
|
|
|
- <br/>
|
|
|
- <% } %>
|
|
|
- <div class="push"></div>
|
|
|
- </div>
|
|
|
-</div>
|
|
|
-<%@ include file="/WEB-INF/jsp/fragment/footer.jsp" %>
|
|
|
+<body>
|
|
|
+This page has moved to <a href=".">Reference Library</a>.
|
|
|
</body>
|
|
|
</html>
|