|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AbuseManager
Manages all aspects of reporting abuse and managing abuse reports.
Field Summary | |
---|---|
static int |
DEFAULT_ABUSE_THRESHOLD
|
static java.lang.String |
PROPERTY_ABUSE_ENABLED
|
static java.lang.String |
PROPERTY_ABUSE_THRESHOLD
|
Method Summary | |
---|---|
java.util.List |
getAbuseReports(ForumMessage message)
Gets a list of open abuse reports for a particular message |
java.util.List |
getAbuseReports(User user)
Gets a list of open abuse reports from a particular user |
int |
getAbuseThreshold()
Gets the number of abuse reports needed to automatically hide a message. |
int |
getNumberOfAbuseReports(ForumMessage message)
Gets the number of abuse reports for a particular message |
boolean |
hasUserReportedAbuse(ForumMessage message,
User user)
Checks if a user has already reported abuse for a particular message. |
boolean |
isReportAbuseEnabled()
Checks if report abuse feature is enabled. |
void |
reportAbuse(AbuseReport report)
Creates an abuse report entry in the database and marks the message for moderation |
void |
resolveAbuseReport(AbuseReport abuseReport)
Resolves an abuse report |
void |
resolveAbuseReports(ForumMessage message)
REsolves all abuse reports for a particular message |
void |
setAbuseThreshold(int abuseThreshold)
Sets the number of abuse reports needed to automatically hide a message. |
void |
setReportAbuseEnabled(boolean reportAbuseEnabled)
Enables or disables the report abuse feature. |
Methods inherited from interface com.jivesoftware.base.event.UserListener |
---|
userCreated, userDeleted, userModified |
Methods inherited from interface com.jivesoftware.forum.event.MessageListener |
---|
messageAdded, messageDeleted, messageModerationModified, messageModified, messageMoved, messageRated |
Field Detail |
---|
static final int DEFAULT_ABUSE_THRESHOLD
static final java.lang.String PROPERTY_ABUSE_ENABLED
static final java.lang.String PROPERTY_ABUSE_THRESHOLD
Method Detail |
---|
void reportAbuse(AbuseReport report)
report
- the report to createjava.util.List getAbuseReports(ForumMessage message)
message
- the message to check
java.util.List getAbuseReports(User user)
user
- the user to check
int getNumberOfAbuseReports(ForumMessage message)
message
- the message to check
void resolveAbuseReport(AbuseReport abuseReport)
abuseReport
- the abuse report to resolvevoid resolveAbuseReports(ForumMessage message)
message
- the message to resolve all abuse reportsboolean hasUserReportedAbuse(ForumMessage message, User user)
message
- the message to checkuser
- the user to check
boolean isReportAbuseEnabled()
void setReportAbuseEnabled(boolean reportAbuseEnabled)
reportAbuseEnabled
- true to enable report abuse, false to disableint getAbuseThreshold()
void setAbuseThreshold(int abuseThreshold)
abuseThreshold
- the number of abuse reports needed to automatically hide a message.
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |