<%@ page contentType="text/html; charset=UTF-8" %> <%-- - - Copyright (C) 2005-2008 Jive Software, 2020-2025 Ignite Realtime Foundation. All rights reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. --%> <%@ page import="org.jivesoftware.util.ParamUtils"%> <%@ page import="org.jivesoftware.util.StringUtils"%> <%@ page import="java.net.URLEncoder"%> <%@ page import="java.util.*"%> <%@ page import="org.jivesoftware.openfire.privacy.PrivacyListProvider" %> <%@ page import="org.jivesoftware.openfire.privacy.PrivacyList" %> <%@ page import="org.jivesoftware.openfire.privacy.PrivacyListManager" %> <%@ page import="java.nio.charset.StandardCharsets" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> <% webManager.init(pageContext); %> <% // Get parameters String username = StringUtils.escapeHTMLTags(ParamUtils.getParameter(request, "username")); Map privacyListNames = PrivacyListProvider.getInstance().getPrivacyLists( username ); String defaultListName = ""; Set privacyLists = new HashSet<>(); for (final Map.Entry entry : privacyListNames.entrySet() ) { String name = entry.getKey(); if ( entry.getValue() ) { defaultListName = name; } privacyLists.add(PrivacyListManager.getInstance().getPrivacyList(username, name)); } pageContext.setAttribute("username", username); pageContext.setAttribute("defaultListName", defaultListName); pageContext.setAttribute("privacyLists", privacyLists); %> <fmt:message key="user.privacylists.title" />

.