public interface CommentOperations
Comment
.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)
Create a new comment base on the specified
SlingHttpServletRequest using the specified Session . |
void |
delete(Resource commentResource,
Session session)
Delete a
Comment using the specified Session . |
void |
delete(SlingHttpServletRequest request,
Session session)
Delete a
Comment specified by the SlingHttpServletRequest using the specified Session . |
Resource |
update(Resource commentResource,
Map<String,Object> props,
List<javax.activation.DataSource> attachments,
Session session)
|
Resource |
update(SlingHttpServletRequest request,
Session session)
Update a
Comment base on the specified SlingHttpServletRequest using the specified. |
Resource create(SlingHttpServletRequest request, Session session) throws OperationException
SlingHttpServletRequest
using the specified Session
.request
- the client requestsession
- the user session to be used to create the new commentComment
OperationException
- if there is an error occursResource create(Resource root, String author, Map<String,Object> props, List<javax.activation.DataSource> attachments, Session session) throws OperationException
root
- the root resource of the comment to be createdauthor
- the user nameprops
- a list of properties for the new commentattachments
- a list of comment attachmentssession
- the user session to be used to create the new commentComment
OperationException
- if there is an error occursResource update(SlingHttpServletRequest request, Session session) throws OperationException
Comment
base on the specified SlingHttpServletRequest
using the specified.
Session
.request
- session
- OperationException
- if there is an error occursResource update(Resource commentResource, Map<String,Object> props, List<javax.activation.DataSource> attachments, Session session) throws OperationException
comment
- the target commentprops
- a map of the properties to be updatedattachments
- a list of attachment to be added to the specified commentsession
- the user session to be used to perform the operationOperationException
- if there is an error occursvoid delete(SlingHttpServletRequest request, Session session) throws OperationException
Comment
specified by the SlingHttpServletRequest
using the specified Session
.request
- the http request which specifies the target commentsession
- the user session to be used to perform the operationOperationException
- if there is an error occursvoid delete(Resource commentResource, Session session) throws OperationException
Comment
using the specified Session
.comment
- the target commentsession
- the user session to be used to delete the specified comment.OperationException
- if there is an error occurs"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"