|
Clearspace API (1.7.0) Core 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<AbuseReport> |
getAbuseReports(ForumMessage message)
Gets a list of open abuse reports for a particular message |
java.util.List<AbuseReport> |
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.community.JiveManager |
|---|
destroy, initialize |
| 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 |
|---|
boolean isReportAbuseEnabled()
void setReportAbuseEnabled(boolean reportAbuseEnabled)
throws UnauthorizedException
reportAbuseEnabled - true to enable report abuse, false to disable
UnauthorizedException - if not an administratorvoid reportAbuse(AbuseReport report)
report - the report to create
java.util.List<AbuseReport> getAbuseReports(ForumMessage message)
throws UnauthorizedException
message - the message to check
UnauthorizedException - if not an administrator
java.util.List<AbuseReport> getAbuseReports(User user)
throws UnauthorizedException
user - the user to check
UnauthorizedException - if not an administratorint getNumberOfAbuseReports(ForumMessage message)
message - the message to check
void resolveAbuseReport(AbuseReport abuseReport)
throws UnauthorizedException
abuseReport - the abuse report to resolve
UnauthorizedException - if not an administrator
void resolveAbuseReports(ForumMessage message)
throws UnauthorizedException
message - the message to resolve all abuse reports
UnauthorizedException - if not an administrator
boolean hasUserReportedAbuse(ForumMessage message,
User user)
throws UnauthorizedException
message - the message to checkuser - the user to check
UnauthorizedException - if not an administratorint getAbuseThreshold()
void setAbuseThreshold(int abuseThreshold)
throws UnauthorizedException
abuseThreshold - the number of abuse reports needed to automatically hide a message.
UnauthorizedException - if not an administrator
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||