|
Jive API (3.0.13) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JiveObjectModerator
The main function of this class is to aquire the ModerationStrategy implementation
for the given JiveObject and delegate all subsequent calls to the strategy.
| Nested Class Summary | |
|---|---|
static class |
JiveObjectModerator.Type
|
| Field Summary | |
|---|---|
static String |
MOD_PROPERTY
|
| Method Summary | |
|---|---|
void |
approve(Long workflowID,
JiveObject jiveObject,
User user,
String responseMessage)
Approves the workflow for the given workflow ID and JiveObject. |
void |
handleApprovalCallback(Long workflowID,
JiveObject jiveObject,
User user,
String responseMessage)
Handles the approval callback. |
void |
handleFinishCallback(Long workflowID,
JiveObject jiveObject)
Handles the finish call back. |
void |
handleNewCallback(User user,
long entryID,
JiveObject jiveObject,
Set<Long> moderators,
String requestMessage)
Handles the new callback. |
void |
handleRejectedCallback(Long workflowID,
JiveObject jiveObject,
User user,
String responseMessage)
Handles the rejection callback. |
void |
handleStateChangeCallback(JiveObject jiveObject,
JiveContentObject.Status status)
Handles any state changes for a given object. |
boolean |
isModerationEnabled(JiveContainer jiveContainer,
JiveObject jiveObject,
User user)
Determines if moderation is enabled for the given JiveContainer and object Type. |
boolean |
isModerationEnabled(JiveObject jiveObject,
User user)
Determines if moderation for the given JiveObject is enabled. |
boolean |
isModerator(JiveObject jiveObject,
User user)
Determines if the given User is a moderator for the given JiveObject. |
void |
moderate(JiveObject jiveObject,
User user)
Puts the JiveObject into the moderation queue. |
void |
notificationCallback(Long workflowID,
JiveObject jiveObject,
User user,
String responseMessage)
Handles the notification callback. |
void |
reject(Long workflowID,
JiveObject jiveObject,
User user,
String responseMessage)
Rejects the workflow for the given workflow ID and JiveObject. |
| Field Detail |
|---|
static final String MOD_PROPERTY
| Method Detail |
|---|
void moderate(JiveObject jiveObject,
User user)
JiveObject into the moderation queue.
jiveObject - the jiveObject to send into moderation.user - the user that owns the jiveObject.
boolean isModerationEnabled(JiveObject jiveObject,
User user)
JiveObject is enabled. Moderation is enabled for an object
if the space/community it is created in has moderation enabled for jiveObject's type.
jiveObject - the jiveObject for which moderation might be enabled.user - the user that owns the jiveObject.
boolean isModerationEnabled(JiveContainer jiveContainer,
JiveObject jiveObject,
User user)
JiveContainer and object Type. Moderation is enabled
if the moderation enabled property is set for the given object type on the container.
jiveContainer - the jiveContainer.jiveObject - the object for which moderation might be enabled.user - the user that owns the jiveObject.
boolean isModerator(JiveObject jiveObject,
User user)
User is a moderator for the given JiveObject.
jiveObject - the jiveObject.user - the user.
void approve(Long workflowID,
JiveObject jiveObject,
User user,
String responseMessage)
JiveObject. This method is responsible for advancing the
workflow into the "Approved" step and toggling the status of the JiveObject to "APPROVED".
workflowID - the unique ID of the workflow.jiveObject - the jiveObject.user - the user approving the workflow item.responseMessage - an optional message stating why the jiveObject was approved.
void handleApprovalCallback(Long workflowID,
JiveObject jiveObject,
User user,
String responseMessage)
JiveObject.
workflowID - the unique ID of the workflow.jiveObject - the jiveObject.user - the user who approved the workflow item.responseMessage - an optional message stating why the jiveObject was approved.
void reject(Long workflowID,
JiveObject jiveObject,
User user,
String responseMessage)
JiveObject. This method is responsible for advancing the
workflow into the "Rejected" step and toggling the status of the JiveObject to "REJECTED".
workflowID - the unique ID of the workflow.jiveObject - the jiveObject.user - the user who rejected the workflow item.responseMessage - an optional message stating why the jiveObject was rejected.
void handleRejectedCallback(Long workflowID,
JiveObject jiveObject,
User user,
String responseMessage)
JiveObject.
workflowID - the unique ID of the workflow.jiveObject - the jiveObject.user - the user who rejected teh workflow item.responseMessage - an optional message stating why the jiveObject was rejected.
void notificationCallback(Long workflowID,
JiveObject jiveObject,
User user,
String responseMessage)
workflowID - the unique ID of the workflow.jiveObject - the jiveObject.user - the user who approved or rejected the workflow item.responseMessage - an optional message why the jiveObject was approved/rejected.
void handleNewCallback(User user,
long entryID,
JiveObject jiveObject,
Set<Long> moderators,
String requestMessage)
user - the user who owns the jiveObject.entryID - the unique ID that will be used for the workflow ID.jiveObject - the jiveObject.moderators - a set of long values representing moderators user ids.requestMessage - an optional message stating why the message was sent into moderation.
void handleFinishCallback(Long workflowID,
JiveObject jiveObject)
JiveObject. A workflow entry is
considered to be empty if it's neither approved nor rejected and its request/response message field is empty.
workflowID - the unique id of the workflow.jiveObject - the jiveObject.
void handleStateChangeCallback(JiveObject jiveObject,
JiveContentObject.Status status)
jiveObject - the jiveObject to change.status - the new status.
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||