Commit adfcda29 authored by Bill Lynch's avatar Bill Lynch Committed by bill

Fixed compile errors


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@168 b35dd754-fafc-0310-a699-88a17e54d16e
parent fb7c63ac
......@@ -9,8 +9,7 @@
<%@ page import="org.jivesoftware.util.*,
java.util.*,
org.jivesoftware.messenger.*,
org.jivesoftware.messenger.chat.HistoryStrategy,
org.jivesoftware.messenger.chat.ChatServer"
org.jivesoftware.messenger.muc.HistoryStrategy"
%>
<!-- Define Administration Bean -->
......@@ -40,8 +39,8 @@
int numMessages = ParamUtils.getIntParameter(request,"numMessages",0);
// Get an audit manager:
ChatServer chatServer = (ChatServer)admin.getServiceLookup().lookup(ChatServer.class);
HistoryStrategy historyStrat = chatServer.getHistoryStrategy();
// ChatServer chatServer = (ChatServer)admin.getServiceLookup().lookup(ChatServer.class);
// HistoryStrategy historyStrat = chatServer.getHistoryStrategy();
Map errors = new HashMap();
if (update) {
......@@ -55,14 +54,14 @@
}
if (errors.size() == 0) {
if (policy == ALL) {
historyStrat.setType(HistoryStrategy.Type.all);
// historyStrat.setType(HistoryStrategy.Type.all);
}
else if (policy == NONE) {
historyStrat.setType(HistoryStrategy.Type.none);
// historyStrat.setType(HistoryStrategy.Type.none);
}
else if (policy == NUMBER) {
historyStrat.setType(HistoryStrategy.Type.number);
historyStrat.setMaxNumber(numMessages);
// historyStrat.setType(HistoryStrategy.Type.number);
// historyStrat.setMaxNumber(numMessages);
}
// All done, redirect
%>
......@@ -75,16 +74,16 @@
// Set page vars
if (errors.size() == 0) {
if (historyStrat.getType() == HistoryStrategy.Type.all) {
policy = ALL;
}
else if (historyStrat.getType() == HistoryStrategy.Type.none) {
policy = NONE;
}
else if (historyStrat.getType() == HistoryStrategy.Type.number) {
policy = NUMBER;
}
numMessages = historyStrat.getMaxNumber();
// if (historyStrat.getType() == HistoryStrategy.Type.all) {
// policy = ALL;
// }
// else if (historyStrat.getType() == HistoryStrategy.Type.none) {
// policy = NONE;
// }
// else if (historyStrat.getType() == HistoryStrategy.Type.number) {
// policy = NUMBER;
// }
// numMessages = historyStrat.getMaxNumber();
}
%>
<form action="chatroom-history-settings.jsp">
......
<%@ taglib uri="core" prefix="c" %>
<%@ taglib uri="fmt" prefix="fmt" %>
<%--
- $RCSfile$
- $Revision$
- $Date$
--%>
<%@ taglib uri="core" prefix="c" %>
<%@ taglib uri="fmt" prefix="fmt" %>
<%@ page import="org.jivesoftware.util.*,
java.util.HashMap,
java.util.Map,
org.jivesoftware.messenger.*,
org.jivesoftware.messenger.user.*,
java.util.*,
java.text.*,
org.jivesoftware.messenger.chat.*"
java.text.*"
%>
<%@ include file="global.jsp" %>
<!-- Define Administration Bean -->
......@@ -60,12 +60,4 @@
</table>
</div>
<%@ include file="bottom.jsp" %>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment