public interface ModerationOperations
Modifier and Type | Field and Description |
---|---|
static String |
DISPLAY_FLAG_REASON_BOX |
Modifier and Type | Method and Description |
---|---|
void |
allow(Resource resource,
Session session,
String userId)
Process an allow request sent by a client.
|
void |
close(Resource sessionResource,
Session session,
boolean close)
Process a close/open request sent by a client.
|
void |
deny(Resource resource,
Session session)
Process a comment deny request sent by a client.
|
void |
flag(Resource resource,
String flagReason,
boolean doFlag,
String userId)
Process a comment flag request sent by a client.
|
static final String DISPLAY_FLAG_REASON_BOX
void deny(Resource resource, Session session) throws CommentException
resource
- the resource to denysession
- the session used to denyCommentException
- when the session cannot save the changes in the comment systemvoid flag(Resource resource, String flagReason, boolean doFlag, String userId) throws CommentException
resource
- the resource to flagflagReason
- the reason the UGC is being flagged for moderationdoFlag
- flag if true, remove a flag if falseuserId
- the id of the user flagging the commentCommentException
- when the session cannot save the changes in the comment systemvoid allow(Resource resource, Session session, String userId) throws CommentException
resource
- the resource to flagsession
- the session used to flaguserId
- id of the originating userCommentException
- when the session cannot save the changes in the comment systemvoid close(Resource sessionResource, Session session, boolean close)
resource
- the resource to closesession
- the session used to closeclose
- true if the request is to close content, false if it is to open.CommentException
- when the session cannot save the changes in the comment system"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"