Commit 7ba4dbf7 authored by Holger Bergunde's avatar Holger Bergunde Committed by holger.bergunde

OF-490 fixing package not found exception in gojara


git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@12953 b35dd754-fafc-0310-a699-88a17e54d16e
parent 823668d0
......@@ -233,6 +233,19 @@ public class DatabaseManager {
return -1;
}
/**
* Counts the number of log entries in the databse
*
* @param subdomain
* subdomain of the component the packages were flown by
* @param packetClass
* the class the packet was instance of
* @return number of rows found in database or -1 if there was an error
*/
public int getPacketCount(String subdomain, @SuppressWarnings("rawtypes") Class packetClass) {
return getPacketCountOlderThan(subdomain, packetClass, _dbCleanMinutes);
}
/**
* Counts the number of log entries in the databse that are older than
* specified value
......@@ -246,7 +259,7 @@ public class DatabaseManager {
* smaller than currentTime - minutes)
* @return number of rows found in database or -1 if there was an error
*/
public int getPacketCountOlderThan(String component, Class packetClass, int minutes) {
public int getPacketCountOlderThan(String component, @SuppressWarnings("rawtypes") Class packetClass, int minutes) {
String classname = packetClass.getName();
Connection con = null;
PreparedStatement pstmt = null;
......
<%@page import="org.jivesoftware.openfire.plugin.PermissionManager"%>
<%@ page import="org.jivesoftware.openfire.plugin.gojara.permissions.PermissionManager"%>
<%@ page import="org.jivesoftware.openfire.plugin.gojara.database.DatabaseManager"%>
<%@ page import="org.dom4j.tree.DefaultElement"%>
<%@ page import="org.jivesoftware.openfire.group.GroupManager"%>
<%@ page import="org.jivesoftware.openfire.group.Group"%>
......@@ -10,7 +11,6 @@
<%@ page import="java.util.Map"%>
<%@ page import="java.util.List"%>
<%@ page import="java.util.Date"%>
<%@ page import="org.jivesoftware.openfire.plugin.database.DatabaseManager"%>
<%@ page import="org.jivesoftware.util.ParamUtils"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt"%>
......
<%@page import="org.jivesoftware.openfire.plugin.PermissionManager"%>
<%@ page import="org.jivesoftware.openfire.plugin.gojara.database.DatabaseManager"%>
<%@ page import="org.jivesoftware.openfire.plugin.gojara.permissions.PermissionManager"%>
<%@ page import="org.dom4j.tree.DefaultElement"%>
<%@ page import="org.jivesoftware.openfire.group.GroupManager"%>
<%@ page import="org.jivesoftware.openfire.group.Group"%>
......@@ -9,7 +10,6 @@
<%@ page import="java.util.HashMap"%>
<%@ page import="java.util.Map"%>
<%@ page import="java.util.List"%>
<%@ page import="org.jivesoftware.openfire.plugin.database.DatabaseManager"%>
<%@ page import="org.jivesoftware.util.ParamUtils"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt"%>
......
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