public interface ModerationOperations
| Modifier and Type | Field and Description |
|---|---|
static String |
DISPLAY_FLAG_REASON_BOX |
| Modifier and Type | Method and Description |
|---|---|
void |
allow(List<Resource> resourceList,
Session session,
ResourceResolver resourceResolver)
Process a bulk comment allow request sent by a client.
|
void |
allow(Resource resource,
Session session,
String userId)
Process an allow request sent by a client.
|
void |
close(List<Resource> resourceList,
Session session,
ResourceResolver resolver,
boolean close)
Process a bulk close/open request sent by a client.
|
void |
close(Resource sessionResource,
Session session,
boolean close)
Process a close/open request sent by a client.
|
void |
delete(List<Resource> resourceList,
Session session,
ResourceResolver resourceResolver)
Process a bulk comment delete request sent by a client.
|
void |
delete(Resource resource,
Session session,
ResourceResolver resourceResolver)
Process a delete request sent by a client.
|
void |
deny(List<Resource> resourceList,
Session session,
ResourceResolver resourceResolver)
Process a bulk comment deny 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 deny(List<Resource> resourceList, Session session, ResourceResolver resourceResolver) throws CommentException
resourceList - an array of resources to denysession - the user session requesting the bulk denyresourceResolver - the resource resolverCommentException - for any exception, including when the session cannot save the changevoid 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 allowsession - the session used to allowuserId - id of the originating userCommentException - when the session cannot save the changes in the comment systemvoid allow(List<Resource> resourceList, Session session, ResourceResolver resourceResolver) throws CommentException
resourceList - an array of resources to allowsession - the user session requesting the bulk allowresourceResolver - the resource resolverCommentException - for any exception, including when the session cannot save the changevoid 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 systemvoid close(List<Resource> resourceList, Session session, ResourceResolver resolver, boolean close)
resourceList - an array of resources 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 systemvoid delete(Resource resource, Session session, ResourceResolver resourceResolver) throws CommentException
resource - the resource to deletesession - the session used to deleteresourceResolver - the resource resolverCommentException - when the session cannot save the changes in the comment systemvoid delete(List<Resource> resourceList, Session session, ResourceResolver resourceResolver) throws CommentException
resourceList - an array of resources to deletesession - the user session requesting the bulk deleteresourceResolver - the resource resolverCommentException - for any exception, including when the session cannot save the change"Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"