@ProviderType
public interface CommentOperations
Comment.| Modifier and Type | Method and Description |
|---|---|
Resource |
changeState(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)
Change state of a comment with the specified
Map of properties and List of attachments. |
Resource |
changeState(SlingHttpServletRequest request,
Session session)
Change state of a comment base on the specified
SlingHttpServletRequest using the specified
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)
Create a comment with the specified
Map of properties and List of attachments. |
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)
|
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)
|
Resource |
move(Resource commentResource,
Resource parentResource,
Session session)
Move the provided resource onto the provided parent resource
|
Resource |
move(SlingHttpServletRequest request,
Session session)
Perform a move operation.
|
void |
removeAttachment(Resource commentResource,
java.lang.String attachment,
Session session)
Removes attachment from comment if the user has privileges to do so
|
void |
removeAttachment(SlingHttpServletRequest request,
Session session)
Removes attachment from comment if the user has privileges to do so.
|
Resource |
update(Resource commentResource,
java.util.Map<java.lang.String,java.lang.Object> props,
java.util.List<javax.activation.DataSource> attachments,
Session session)
Update the specified comment with the specified
Map of properties and List of attachments. |
Resource |
update(SlingHttpServletRequest request,
Session session)
Update a
Comment base on the specified
SlingHttpServletRequest using the specified. |
Resource |
uploadImage(SlingHttpServletRequest request,
Session session)
Upload image.
|
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 commentCommentOperationException - if there is an error occursResource 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
Map of properties and List of attachments.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 commentCommentOperationException - if there is an error occursResource update(SlingHttpServletRequest request, Session session) throws OperationException
request - the requestsession - the sessionOperationException - if there is an error occursResource update(Resource commentResource, java.util.Map<java.lang.String,java.lang.Object> props, java.util.List<javax.activation.DataSource> attachments, Session session) throws OperationException
Map of properties and List of attachments.commentResource - 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 occursResource uploadImage(SlingHttpServletRequest request, Session session) throws OperationException
request - the requestsession - the sessionOperationException - if an error occursvoid delete(SlingHttpServletRequest request, Session session) throws OperationException
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(SlingHttpServletRequest request, Session session, java.util.Map<java.lang.String,java.lang.Object> conditionals) throws OperationException
request - the http request which specifies the target commentsession - the user session to be used to perform the operationconditionals - params deciding execution flowOperationException - if there is an error occursvoid delete(Resource commentResource, Session session) throws OperationException
commentResource - the target commentsession - the user session to be used to delete the specified comment.OperationException - if there is an error occursvoid delete(Resource commentResource, Session session, java.util.Map<java.lang.String,java.lang.Object> conditionals) throws OperationException
commentResource - the target commentsession - the user session to be used to delete the specified comment.conditionals - params deciding execution flowOperationException - if there is an error occursResource changeState(SlingHttpServletRequest request, Session session) throws OperationException
SlingHttpServletRequest using the specified
Session.request - the client requestsession - the user session to be used to change comment stateCommentOperationException - if there is an error occursResource changeState(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
Map of properties and List of attachments.root - the root resource of the comment to be changedauthor - the user nameprops - a list of properties for the commentattachments - a list of comment attachmentssession - the user session to be used to change the comment's stateCommentOperationException - if there is an error occursResource move(SlingHttpServletRequest request, Session session) throws OperationException
request - the requestsession - the sessionOperationException - OperationExceptionResource move(Resource commentResource, Resource parentResource, Session session) throws OperationException
commentResource - the resource being movedparentResource - the target parent resourcesession - the sessionOperationException - OperationExceptionvoid removeAttachment(SlingHttpServletRequest request, Session session) throws OperationException
request - the requestsession - the sessionOperationException - OperationExceptionvoid removeAttachment(Resource commentResource, java.lang.String attachment, Session session) throws OperationException
commentResource - the resource being movedattachment - the attachment to be removedsession - the sessionOperationException - OperationExceptionCopyright © 2010 - 2023 Adobe. All Rights Reserved