Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.forum.abuse
Class AbuseDAOImpl

java.lang.Object
  extended by 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)
 );
 


Method Summary
 void createAbuseReport(AbuseReport report)
          Creates an abuse report entry in the database
 java.util.List getAbuseReportsByMessage(long messageID)
           
 java.util.List getAbuseReportsByUser(long userID)
           
static AbuseDAO getInstance()
           
 int getNumberOfAbuseReports(long messageID)
           
 boolean hasUserReportedAbuse(long messageID, long userID)
           
 void resolveAbuseReport(long abuseID)
           
 void resolveAbuseReportsByMessage(long messageID)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.