public interface ModerationOperations
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DISPLAY_FLAG_REASON_BOX |
| Modifier and Type | Method and Description |
|---|---|
void |
allow(java.util.List<Resource> resourceList,
Session session,
ResourceResolver resourceResolver)
Process a bulk comment allow request sent by a client.
|
void |
allow(Resource resource,
Session session,
java.lang.String userId)
Process an allow request sent by a client.
|
void |
close(java.util.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(java.util.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(java.util.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,
java.lang.String flagReason,
boolean doFlag,
java.lang.String userId)
Process a comment flag request sent by a client.
|
static final java.lang.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(java.util.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, java.lang.String flagReason, boolean doFlag, java.lang.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, java.lang.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(java.util.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(java.util.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(java.util.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 - 2018 Adobe Systems Incorporated. All Rights Reserved"