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 com.adobe.cq.social.commons.CommentException
resource
- the resource to denysession
- the session used to denycom.adobe.cq.social.commons.CommentException
- when the session cannot save the changes in the comment systemvoid deny(java.util.List<Resource> resourceList, Session session, ResourceResolver resourceResolver) throws com.adobe.cq.social.commons.CommentException
resourceList
- an array of resources to denysession
- the user session requesting the bulk denyresourceResolver
- the resource resolvercom.adobe.cq.social.commons.CommentException
- 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 com.adobe.cq.social.commons.CommentException, OperationException
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 commentcom.adobe.cq.social.commons.CommentException
- when the session cannot save the changes in the comment systemOperationException
- when the flag action can't be performed on resourcevoid allow(Resource resource, Session session, java.lang.String userId) throws com.adobe.cq.social.commons.CommentException
resource
- the resource to allowsession
- the session used to allowuserId
- id of the originating usercom.adobe.cq.social.commons.CommentException
- when the session cannot save the changes in the comment systemvoid allow(java.util.List<Resource> resourceList, Session session, ResourceResolver resourceResolver) throws com.adobe.cq.social.commons.CommentException
resourceList
- an array of resources to allowsession
- the user session requesting the bulk allowresourceResolver
- the resource resolvercom.adobe.cq.social.commons.CommentException
- 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.com.adobe.cq.social.commons.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.com.adobe.cq.social.commons.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.com.adobe.cq.social.commons.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.com.adobe.cq.social.commons.CommentException
- when the session cannot save the changes in the comment systemvoid delete(Resource resource, Session session, ResourceResolver resourceResolver) throws com.adobe.cq.social.commons.CommentException
resource
- the resource to deletesession
- the session used to deleteresourceResolver
- the resource resolvercom.adobe.cq.social.commons.CommentException
- when the session cannot save the changes in the comment systemvoid delete(java.util.List<Resource> resourceList, Session session, ResourceResolver resourceResolver) throws com.adobe.cq.social.commons.CommentException
resourceList
- an array of resources to deletesession
- the user session requesting the bulk deleteresourceResolver
- the resource resolvercom.adobe.cq.social.commons.CommentException
- 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.com.adobe.cq.social.commons.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.com.adobe.cq.social.commons.CommentException
- - when the session cannot save the changes in the comment systemCopyright © 2010 - 2020 Adobe. All Rights Reserved