T
- is a OperationExtension
that will be used as hooks by the extending class.U
- is a Operation
that is being provided by the extending class.@Property(name="fieldWhitelist",value={"cq:tags","tags","composedFor"},cardinality=100) @Property(name="attachmentTypeBlacklist",cardinality=2147483647,value="DEFAULT") public abstract class AbstractCommentOperationService<T extends OperationExtension,U extends Operation,S extends Comment> extends AbstractOperationService<T,U,S>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CHARSET_PROPERTY
The Constant CHARSET_PROPERTY.
|
SocialComponentFactoryManager |
componentFactoryManager |
static java.lang.String |
PROP_CONTEXT_PATH |
static java.lang.String |
PROP_MESSAGE
The name of the property that holds the comment message.
|
static java.lang.String |
PROPERTY_ATTACHMENT_TYPE_BLACKLIST
The name of the property that holds a black list of attachment mime types that are unsafe.
|
static java.lang.String |
PROPERTY_FIELD_WHITELIST
The name of the property that holds a white list of form field names added as additional properties to the
comment.
|
static java.lang.String[] |
RESERVED_PROPERTY_NAMES
List of properties that the comment will overwrite.
|
static java.lang.String |
TAGS_PROPERTY
The Constant TAGS_PROPERTY.
|
Constructor and Description |
---|
AbstractCommentOperationService() |
Modifier and Type | Method and Description |
---|---|
Resource |
changeState(Resource commentResource,
java.lang.String author,
java.util.Map<java.lang.String,java.lang.Object> props,
java.util.List<javax.activation.DataSource> attachments,
Session session) |
Resource |
changeState(SlingHttpServletRequest request,
Session session) |
Resource |
create(Resource root,
java.lang.String author,
java.util.Map<java.lang.String,java.lang.Object> props,
java.util.List<javax.activation.DataSource> attachments,
Session session) |
Resource |
create(SlingHttpServletRequest request,
Session session) |
void |
delete(Resource commentResource,
com.adobe.cq.social.commons.CommentSystem cs,
Session session) |
void |
delete(Resource commentResource,
com.adobe.cq.social.commons.CommentSystem cs,
Session session,
java.util.Map<java.lang.String,java.lang.Object> conditionals)
Process a comment delete request sent by a client.
|
void |
delete(Resource commentResource,
Session session) |
void |
delete(Resource commentResource,
Session session,
java.util.Map<java.lang.String,java.lang.Object> conditionals) |
void |
delete(SlingHttpServletRequest request,
Session session) |
void |
delete(SlingHttpServletRequest request,
Session session,
java.util.Map<java.lang.String,java.lang.Object> conditionals)
|
InheritedOperationExtensionManager |
getInheritedOperationExtensionManager()
Get the
InheritedOperationExtensionManager which allows parent extension to be executed as part of the
operation. |
Resource |
move(Resource commentResource,
Resource parentResource,
Session session) |
Resource |
move(SlingHttpServletRequest request,
Session session) |
void |
removeAttachment(Resource attachment,
ResourceResolver serviceUserResolver) |
void |
removeAttachment(Resource commentResource,
java.lang.String attachment,
Session session) |
void |
removeAttachment(SlingHttpServletRequest request,
Session session) |
Resource |
update(Resource commentResource,
java.util.Map<java.lang.String,java.lang.Object> props,
java.util.List<javax.activation.DataSource> attachments,
Session session) |
Resource |
update(SlingHttpServletRequest request,
Session session) |
Resource |
uploadImage(Resource targetCommentSystemResource,
com.adobe.cq.social.commons.CommentSystem cs,
java.lang.String author,
java.util.Map<java.lang.String,java.lang.Object> props,
java.util.List<javax.activation.DataSource> attachments,
Session session) |
Resource |
uploadImage(SlingHttpServletRequest request,
Session session) |
Resource |
uploadImageToTemp(Resource targetCommentSystemResource,
com.adobe.cq.social.commons.CommentSystem cs,
java.lang.String author,
java.util.List<javax.activation.DataSource> attachments,
Session session) |
addOperationExtension, performAfterActions, performBeforeActions, removeOperationExtension
public static final java.lang.String CHARSET_PROPERTY
public static final java.lang.String TAGS_PROPERTY
public static final java.lang.String PROPERTY_FIELD_WHITELIST
public static final java.lang.String[] RESERVED_PROPERTY_NAMES
public static final java.lang.String PROPERTY_ATTACHMENT_TYPE_BLACKLIST
public static final java.lang.String PROP_MESSAGE
public static final java.lang.String PROP_CONTEXT_PATH
@Reference public SocialComponentFactoryManager componentFactoryManager
public InheritedOperationExtensionManager getInheritedOperationExtensionManager()
OperationService
InheritedOperationExtensionManager
which allows parent extension to be executed as part of the
operation.getInheritedOperationExtensionManager
in interface OperationService<T extends OperationExtension,U extends Operation,S extends Comment>
getInheritedOperationExtensionManager
in class AbstractOperationService<T extends OperationExtension,U extends Operation,S extends Comment>
public void removeAttachment(Resource attachment, ResourceResolver serviceUserResolver)
public Resource create(Resource root, java.lang.String author, java.util.Map<java.lang.String,java.lang.Object> props, java.util.List<javax.activation.DataSource> attachments, Session session) throws OperationException
OperationException
public Resource create(SlingHttpServletRequest request, Session session) throws OperationException
OperationException
public Resource uploadImage(SlingHttpServletRequest request, Session session) throws OperationException
OperationException
public Resource uploadImageToTemp(Resource targetCommentSystemResource, com.adobe.cq.social.commons.CommentSystem cs, java.lang.String author, java.util.List<javax.activation.DataSource> attachments, Session session) throws OperationException
OperationException
public Resource uploadImage(Resource targetCommentSystemResource, com.adobe.cq.social.commons.CommentSystem cs, java.lang.String author, java.util.Map<java.lang.String,java.lang.Object> props, java.util.List<javax.activation.DataSource> attachments, Session session) throws OperationException
OperationException
public Resource update(SlingHttpServletRequest request, Session session) throws OperationException
OperationException
public void removeAttachment(SlingHttpServletRequest request, Session session) throws OperationException
OperationException
public void removeAttachment(Resource commentResource, java.lang.String attachment, Session session) throws OperationException
OperationException
public Resource update(Resource commentResource, java.util.Map<java.lang.String,java.lang.Object> props, java.util.List<javax.activation.DataSource> attachments, Session session) throws OperationException
OperationException
public void delete(SlingHttpServletRequest request, Session session) throws OperationException
OperationException
public void delete(SlingHttpServletRequest request, Session session, java.util.Map<java.lang.String,java.lang.Object> conditionals) throws OperationException
request
- SlingHttpServletRequestsession
- Sessionconditionals
- params deciding execution flowOperationException
- OperationExceptionpublic void delete(Resource commentResource, Session session) throws OperationException
OperationException
public void delete(Resource commentResource, Session session, java.util.Map<java.lang.String,java.lang.Object> conditionals) throws OperationException
OperationException
public Resource move(SlingHttpServletRequest request, Session session) throws OperationException
OperationException
public Resource move(Resource commentResource, Resource parentResource, Session session) throws OperationException
OperationException
public Resource changeState(Resource commentResource, java.lang.String author, java.util.Map<java.lang.String,java.lang.Object> props, java.util.List<javax.activation.DataSource> attachments, Session session) throws OperationException
OperationException
public Resource changeState(SlingHttpServletRequest request, Session session) throws OperationException
OperationException
public void delete(Resource commentResource, com.adobe.cq.social.commons.CommentSystem cs, Session session) throws OperationException
OperationException
public void delete(Resource commentResource, com.adobe.cq.social.commons.CommentSystem cs, Session session, java.util.Map<java.lang.String,java.lang.Object> conditionals) throws OperationException
commentResource
- the comment to deletecs
- the comment systemsession
- the session used to deleteconditionals
- MapOperationException
- when the session cannot save the changes in the comment systemCopyright © 2010 - 2020 Adobe. All Rights Reserved