%--
- $RCSfile$
- $Revision$
- $Date$
-
- Copyright (C) 2004 Jive Software. All rights reserved.
-
- This software is published under the terms of the GNU Public License (GPL),
- a copy of which is included in this distribution.
--%>
<%@ page import="org.jivesoftware.util.*,
org.jivesoftware.openfire.group.Group,
java.net.URLEncoder"
errorPage="error.jsp"
%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %>
<% webManager.init(request, response, session, application, out ); %>
<% // Get parameters //
boolean cancel = request.getParameter("cancel") != null;
boolean delete = request.getParameter("delete") != null;
String groupName = ParamUtils.getParameter(request,"group");
// Handle a cancel
if (cancel) {
response.sendRedirect("group-edit.jsp?group=" + URLEncoder.encode(groupName, "UTF-8"));
return;
}
// Load the group object
Group group = webManager.getGroupManager().getGroup(groupName);
// Handle a group delete:
if (delete) {
// Delete the group
webManager.getGroupManager().deleteGroup(group);
// Done, so redirect
response.sendRedirect("group-summary.jsp?deletesuccess=true");
return;
}
%>
"/>
<% if (webManager.getGroupManager().isReadOnly()) { %>
<% } %>
"><%= group.getName() %>
<% // Disable the form if a read-only user provider.
if (webManager.getGroupManager().isReadOnly()) { %>
<% } %>