|
Clearspace API (2.5.29) 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 String |
PROPERTY_ABUSE_ENABLED
|
static String |
PROPERTY_ABUSE_THRESHOLD
|
| Method Summary | |
|---|---|
void |
deleteAbuseReports(User user)
Removes all abuse reports from a particular user from the system. |
AbuseReport |
getAbuseReport(long abuseID)
Gets an abuse report associated with an id |
List<AbuseReport> |
getAbuseReports(JiveObject message)
Gets a list of open abuse reports for a particular message |
List<AbuseReport> |
getAbuseReports(User user)
message-abuse.jspa 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(JiveObject message)
Gets the number of abuse reports for a particular message |
boolean |
hasUserReportedAbuse(JiveObject 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(JiveObject 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 |
| Field Detail |
|---|
static final int DEFAULT_ABUSE_THRESHOLD
static final String PROPERTY_ABUSE_ENABLED
static final 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
List<AbuseReport> getAbuseReports(JiveObject message)
throws UnauthorizedException
message - the message to check
UnauthorizedException - if not an administrator
List<AbuseReport> getAbuseReports(User user)
throws UnauthorizedException
user - the user to check
UnauthorizedException - if not an administrator
AbuseReport getAbuseReport(long abuseID)
throws UnauthorizedException
abuseID - the id to get the report for
UnauthorizedException - if not an administrator
void deleteAbuseReports(User user)
throws UnauthorizedException
user - the author of the abuse reports.
UnauthorizedException - if not an system administrator, moderator, or user administratorint getNumberOfAbuseReports(JiveObject 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(JiveObject message)
throws UnauthorizedException
message - the message to resolve all abuse reports
UnauthorizedException - if not an administrator
boolean hasUserReportedAbuse(JiveObject 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 | |||||||||