public abstract class AbstractModerationOperation extends AbstractSocialOperation
Modifier and Type | Field and Description |
---|---|
java.lang.String |
BULK_PARAM |
static java.lang.String |
PROPERTY_REVERSE_REPLICATE
The name of the property that contains defines whether the comment should be reverse-replicated.
|
PROP_OPERATION_NAME, SERVICE_NAME
Constructor and Description |
---|
AbstractModerationOperation() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
getOperationName()
Perform the operation and send the response using the provided session
|
Resource |
getSessionResource(SlingHttpServletRequest request,
Session session)
Return the resolved resource from the session.
|
abstract SocialOperationResult |
performOperation(SlingHttpServletRequest request)
Perform the operation and send the response using the provided session
|
void |
setComponentFactoryManager(SocialComponentFactoryManager aSocialComponentFactoryManager)
for unit testing..
|
void |
setModerationOperations(ModerationOperations modOps)
for unit testing..
|
void |
setRepository(SlingRepository aRepository)
for unit testing..
|
void |
setResourceResolverFactory(ResourceResolverFactory aRRFactory)
for unit testing..
|
void |
setSocialUtils(SocialUtils aSocialUtils)
for unit testing..
|
getEndpoint, getRequestParameters, run
public final java.lang.String BULK_PARAM
public static final java.lang.String PROPERTY_REVERSE_REPLICATE
public abstract java.lang.String getOperationName()
public abstract SocialOperationResult performOperation(SlingHttpServletRequest request) throws OperationException
request
- SlingHttpServletRequestOperationException
- OperationExceptionpublic Resource getSessionResource(SlingHttpServletRequest request, Session session) throws OperationException
request
- the servlet requestsession
- the session associated with the resourceOperationException
- OperationExceptionpublic void setResourceResolverFactory(ResourceResolverFactory aRRFactory)
aRRFactory
- ResourceResolverFactorypublic void setRepository(SlingRepository aRepository)
aRepository
- SlingRepositorypublic void setModerationOperations(ModerationOperations modOps)
modOps
- ModerationOperationspublic void setSocialUtils(SocialUtils aSocialUtils)
aSocialUtils
- SocialUtilspublic void setComponentFactoryManager(SocialComponentFactoryManager aSocialComponentFactoryManager)
aSocialComponentFactoryManager
- SocialComponentFactoryManager"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"