|
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 OldModerationManager
Manages the moderation feature within Clearspace
| Field Summary | |
|---|---|
static String |
PROPERTY_EMAIL_ADDRESS
|
static String |
PROPERTY_EMAIL_BODY
|
static String |
PROPERTY_EMAIL_ENABLED
|
static String |
PROPERTY_EMAIL_NAME
|
static String |
PROPERTY_EMAIL_SUBJECT
|
static String |
PROPERTY_MESSAGE_TIME_APPROVED
|
| Method Summary | |
|---|---|
void |
approve(ForumMessage message)
Approve a moderated message |
void |
editAndApprove(ForumMessage message,
String subject,
String body,
String tags)
Edit and approve a moderated message |
List<JiveContainer> |
getContainers()
This method will return a list of containers where the user is a moderator. |
int |
getMessageCount(JiveContainer container)
Gets the number of moderated messages in a container |
int |
getMessageCount(ModerationFilter modFilter)
Gets the number of moderated messages in the system |
int |
getMessageCount(ModerationFilter modFilter,
JiveContainer container)
Gets the number of moderated messages in a container |
List<ForumMessage> |
getMessages()
This method will return a list of messages where the user is a moderator. |
Iterable<ForumMessage> |
getMessages(JiveContainer container)
Gets a list of moderated messages for a particular container. |
List<ForumMessage> |
getMessages(ModerationFilter modFilter)
This method will return a list of messages where the user is a moderator. |
Iterable<ForumMessage> |
getMessages(ModerationFilter modFilter,
JiveContainer container)
Gets a list of moderated messages for a particular container. |
boolean |
isCommentModerationEnabled()
Returns whether comment moderation is enabled or not. |
boolean |
isEmailAlertEnabled()
Returns true if moderation email alerts enabled. |
void |
reject(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 |
| Field Detail |
|---|
static final String PROPERTY_EMAIL_ENABLED
static final String PROPERTY_EMAIL_NAME
static final String PROPERTY_EMAIL_ADDRESS
static final String PROPERTY_EMAIL_SUBJECT
static final String PROPERTY_EMAIL_BODY
static final String PROPERTY_MESSAGE_TIME_APPROVED
| Method Detail |
|---|
List<JiveContainer> getContainers()
List<ForumMessage> getMessages()
List<ForumMessage> getMessages(ModerationFilter modFilter)
modFilter - the moderation filter
Iterable<ForumMessage> getMessages(JiveContainer container)
throws UnauthorizedException
container - the container to retrieve the moderated messages for
UnauthorizedException - if the user is not a moderator of the container
Iterable<ForumMessage> getMessages(ModerationFilter modFilter,
JiveContainer container)
throws UnauthorizedException
modFilter - the moderation filtercontainer - the container to retrieve the moderated messages for
UnauthorizedException - if the user is not a moderator of the containerint getMessageCount(ModerationFilter modFilter)
modFilter - the moderation filter
int getMessageCount(JiveContainer container)
container - the container to retrieve the moderated message count for
int getMessageCount(ModerationFilter modFilter,
JiveContainer container)
modFilter - the moderation filtercontainer - the container to scan
void approve(ForumMessage message)
throws UnauthorizedException
message - the message to approve
UnauthorizedException - if the user is not a moderator of the container in which the message belongs
void editAndApprove(ForumMessage message,
String subject,
String body,
String tags)
throws UnauthorizedException
message - 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 container in which the message belongs
void reject(ForumMessage message)
throws UnauthorizedException
message - the message to reject
UnauthorizedException - if the user is not a moderator of the container 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 | |||||||||