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.public abstract class AbstractCommentOperationService<T extends OperationExtension,U extends Operation> extends AbstractOperationService<T,U,Comment>
Modifier and Type | Field and Description |
---|---|
static String |
CHARSET_PROPERTY
The Constant CHARSET_PROPERTY.
|
static boolean |
DEFAULT_REVERSE_REPLICATE
The reverse replication state.
|
static String |
PROP_MESSAGE
The name of the property that holds the comment message.
|
static String |
PROPERTY_ATTACHMENT_TYPE_BLACKLIST
The name of the property that holds a black list of attachment mime types that are unsafe.
|
static 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 String |
PROPERTY_REVERSE_REPLICATE
The name of the property that contains defines whether the comment should be reverse-replicated.
|
static String[] |
RESERVED_PROPERTY_NAMES
List of properties that the comment will overwrite.
|
static String |
TAGS_PROPERTY
The Constant TAGS_PROPERTY.
|
Constructor and Description |
---|
AbstractCommentOperationService() |
Modifier and Type | Method and Description |
---|---|
Resource |
create(Resource root,
String author,
Map<String,Object> props,
List<javax.activation.DataSource> attachments,
Session session) |
Resource |
create(SlingHttpServletRequest request,
Session session) |
void |
delete(Resource commentResource,
CommentSystem cs,
Session session)
Process a comment delete request sent by a client.
|
void |
delete(Resource commentResource,
Session session) |
void |
delete(SlingHttpServletRequest request,
Session session)
|
Resource |
update(Resource commentResource,
Map<String,Object> props,
List<javax.activation.DataSource> attachments,
Session session) |
Resource |
update(SlingHttpServletRequest request,
Session session) |
addOperationExtension, performAfterActions, performBeforeActions, removeOperationExtension
public static final String CHARSET_PROPERTY
public static final String TAGS_PROPERTY
public static final String PROPERTY_REVERSE_REPLICATE
public static final String PROPERTY_FIELD_WHITELIST
public static final String[] RESERVED_PROPERTY_NAMES
public static final String PROPERTY_ATTACHMENT_TYPE_BLACKLIST
public static final boolean DEFAULT_REVERSE_REPLICATE
public static final String PROP_MESSAGE
public Resource create(Resource root, String author, Map<String,Object> props, List<javax.activation.DataSource> attachments, Session session) throws OperationException
OperationException
public Resource create(SlingHttpServletRequest request, Session session) throws OperationException
OperationException
public Resource update(SlingHttpServletRequest request, Session session) throws OperationException
OperationException
public Resource update(Resource commentResource, Map<String,Object> props, List<javax.activation.DataSource> attachments, Session session) throws OperationException
OperationException
public void delete(SlingHttpServletRequest request, Session session) throws OperationException
request
- session
- OperationException
public void delete(Resource commentResource, Session session) throws OperationException
OperationException
public void delete(Resource commentResource, CommentSystem cs, Session session) throws OperationException
commentResource
- the comment to deletecs
- the comment systemsession
- the session used to deleteOperationException
- when the session cannot save the changes in the comment system"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"