|
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 ModerationManager
Manages the moderation feature within Clearspace
| Field Summary | |
|---|---|
static java.lang.String |
PROPERTY_EMAIL_ADDRESS
|
static java.lang.String |
PROPERTY_EMAIL_BODY
|
static java.lang.String |
PROPERTY_EMAIL_ENABLED
|
static java.lang.String |
PROPERTY_EMAIL_NAME
|
static java.lang.String |
PROPERTY_EMAIL_SUBJECT
|
static java.lang.String |
PROPERTY_MESSAGE_TIME_APPROVED
|
| Method Summary | |
|---|---|
void |
approve(AuthToken authToken,
ForumMessage message)
Approve a moderated message |
void |
editAndApprove(AuthToken authToken,
ForumMessage message,
java.lang.String subject,
java.lang.String body,
java.lang.String tags)
Edit and approve a moderated message |
java.util.List<Community> |
getCommunities(AuthToken authToken)
This method will return a list of communities where the user is a moderator. |
int |
getMessageCount(Community community)
Gets the number of moderated messages in a community |
int |
getMessageCount(ModerationFilter modFilter,
AuthToken authToken)
Gets the number of moderated messages in the system |
int |
getMessageCount(ModerationFilter modFilter,
Community community)
Gets the number of moderated messages in a community |
java.util.List<ForumMessage> |
getMessages(AuthToken authToken)
This method will return a list of messages where the user is a moderator. |
java.lang.Iterable<ForumMessage> |
getMessages(AuthToken authToken,
Community community)
Gets a list of moderated messages for a particular community. |
java.util.List<ForumMessage> |
getMessages(ModerationFilter modFilter,
AuthToken authToken)
This method will return a list of messages where the user is a moderator. |
java.lang.Iterable<ForumMessage> |
getMessages(ModerationFilter modFilter,
AuthToken authToken,
Community community)
Gets a list of moderated messages for a particular community. |
boolean |
isCommentModerationEnabled()
Returns whether comment moderation is enabled or not. |
boolean |
isEmailAlertEnabled()
Returns true if moderation email alerts enabled. |
void |
reject(AuthToken authToken,
ForumMessage message)
Reject a moderated message |
void |
setCommentModerationEnabled(boolean enabled)
Sets whether comment moderation is enabled or not. |
void |
setEmailAlertEnabled(boolean emailAlertEnabled)
Enables or disables moderation email alerts. |
| Methods inherited from interface com.jivesoftware.community.JiveManager |
|---|
destroy, initialize |
| Field Detail |
|---|
static final java.lang.String PROPERTY_EMAIL_ENABLED
static final java.lang.String PROPERTY_EMAIL_NAME
static final java.lang.String PROPERTY_EMAIL_ADDRESS
static final java.lang.String PROPERTY_EMAIL_SUBJECT
static final java.lang.String PROPERTY_EMAIL_BODY
static final java.lang.String PROPERTY_MESSAGE_TIME_APPROVED
| Method Detail |
|---|
java.util.List<Community> getCommunities(AuthToken authToken)
authToken - the users authToken
java.util.List<ForumMessage> getMessages(AuthToken authToken)
authToken - the users authToken
java.util.List<ForumMessage> getMessages(ModerationFilter modFilter,
AuthToken authToken)
modFilter - the moderation filterauthToken - the users authToken
java.lang.Iterable<ForumMessage> getMessages(AuthToken authToken,
Community community)
throws UnauthorizedException
authToken - the users authTokencommunity - the community to retrieve the moderated messages for
UnauthorizedException - if the user is not a moderator of the community
java.lang.Iterable<ForumMessage> getMessages(ModerationFilter modFilter,
AuthToken authToken,
Community community)
throws UnauthorizedException
modFilter - the moderation filterauthToken - the users authTokencommunity - the community to retrieve the moderated messages for
UnauthorizedException - if the user is not a moderator of the community
int getMessageCount(ModerationFilter modFilter,
AuthToken authToken)
modFilter - the moderation filterauthToken - the users authToken
int getMessageCount(Community community)
community - the community to retrieve the moderated message count for
int getMessageCount(ModerationFilter modFilter,
Community community)
modFilter - the moderation filtercommunity - the community to scan
void approve(AuthToken authToken,
ForumMessage message)
throws UnauthorizedException
authToken - the users authTokenmessage - the message to approve
UnauthorizedException - if the user is not a moderator of the community in which the message belongs
void editAndApprove(AuthToken authToken,
ForumMessage message,
java.lang.String subject,
java.lang.String body,
java.lang.String tags)
throws UnauthorizedException
authToken - the users authTokenmessage - the message to edit and approvesubject - the new message subjectbody - the new message bodytags - the new tags for the message
UnauthorizedException - if the user is not a moderator of the community in which the message belongs
void reject(AuthToken authToken,
ForumMessage message)
throws UnauthorizedException
authToken - the users authTokenmessage - the message to reject
UnauthorizedException - if the user is not a moderator of the community in which the message belongsboolean isEmailAlertEnabled()
void setEmailAlertEnabled(boolean emailAlertEnabled)
emailAlertEnabled - true to enable the email alert feature, false to disable.boolean isCommentModerationEnabled()
void setCommentModerationEnabled(boolean enabled)
throws UnauthorizedException
enabled - true if comment moderation is enabled, false otherwise.
UnauthorizedException - if not an administator.
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||