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.
|
void |
pin(java.util.List<Resource> resourceList,
Session session,
ResourceResolver resolver,
boolean pin)
Process a bulk pin/unpin request sent by a client.
|
void |
pin(Resource sessionResource,
Session session,
boolean pin)
Process a pin/unpin request sent by a client.
|
void |
toggleFeatured(java.util.List<Resource> resourceList,
Session session,
ResourceResolver resolver,
boolean markFeatured)
Process a bulk Feature / unFeature request sent by a client.
|
void |
toggleFeatured(Resource sessionResource,
Session session,
boolean markFeatured)
Process a Feature / unFeature 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)
sessionResource
- 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 closeresolver
- ResourceResolverclose
- 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 pin(Resource sessionResource, Session session, boolean pin)
sessionResource
- the resource to pinsession
- the session used to pinpin
- true if the request is to pin content, false if it is to unpin.CommentException
- when the session cannot save the changes in the comment systemvoid pin(java.util.List<Resource> resourceList, Session session, ResourceResolver resolver, boolean pin)
resourceList
- an array of resources to pinsession
- the session used to pinresolver
- ResourceResolverpin
- true if the request is to pin content, false if it is to unpin.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 changevoid toggleFeatured(Resource sessionResource, Session session, boolean markFeatured)
sessionResource
- - the resource to Feature / unFeaturesession
- - the session used to Feature / unFeaturemarkFeatured
- - true if the request is to mark a content as featured, false if it is to unFeature.CommentException
- - when the session cannot save the changes in the comment systemvoid toggleFeatured(java.util.List<Resource> resourceList, Session session, ResourceResolver resolver, boolean markFeatured)
resourceList
- an array of resources to Feature / unFeaturesession
- - the session used to Feature / unFeatureresolver
- ResourceResolvermarkFeatured
- - true if the request is to mark a content as featured, false if it is to unFeature.CommentException
- - when the session cannot save the changes in the comment system"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"