com.jivesoftware.forum.abuse
Class AbuseDAOImpl
java.lang.Object
com.jivesoftware.forum.abuse.AbuseDAOImpl
- All Implemented Interfaces:
- AbuseDAO
public class AbuseDAOImpl
- extends java.lang.Object
- implements AbuseDAO
Defines methods used to create, access, update, and remove abuse report objects.
Database script to create jiveAbuse table
CREATE TABLE jiveAbuse (
abuseID BIGINT NOT NULL,
abuseType INTEGER NOT NULL,
messageID BIGINT NOT NULL,
userID BIGINT NOT NULL,
reportDate BIGINT NOT NULL,
comments VARCHAR(500) NULL,
resolved INTEGER NULL,
CONSTRAINT jiveAbuse_pk PRIMARY KEY (abuseID)
);
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static AbuseDAO getInstance()
createAbuseReport
public void createAbuseReport(AbuseReport report)
- Description copied from interface:
AbuseDAO
- Creates an abuse report entry in the database
- Specified by:
createAbuseReport
in interface AbuseDAO
- Parameters:
report
- the report to create
getAbuseReportsByMessage
public java.util.List getAbuseReportsByMessage(long messageID)
- Specified by:
getAbuseReportsByMessage
in interface AbuseDAO
getAbuseReportsByUser
public java.util.List getAbuseReportsByUser(long userID)
- Specified by:
getAbuseReportsByUser
in interface AbuseDAO
getNumberOfAbuseReports
public int getNumberOfAbuseReports(long messageID)
- Specified by:
getNumberOfAbuseReports
in interface AbuseDAO
resolveAbuseReport
public void resolveAbuseReport(long abuseID)
- Specified by:
resolveAbuseReport
in interface AbuseDAO
resolveAbuseReportsByMessage
public void resolveAbuseReportsByMessage(long messageID)
- Specified by:
resolveAbuseReportsByMessage
in interface AbuseDAO
hasUserReportedAbuse
public boolean hasUserReportedAbuse(long messageID,
long userID)
- Specified by:
hasUserReportedAbuse
in interface AbuseDAO
Copyright © 1999-2006 Jive Software.