public interface MessagingOperationsService
Message.| Modifier and Type | Method and Description |
|---|---|
short |
create(ResourceResolver resolver,
Resource resource,
java.lang.String senderAuthId,
java.util.Map<java.lang.String,java.lang.Object> props,
java.util.List<FileDataSource> attachments,
ClientUtilities clientUtils)
Create a a new message with the specified
Map of properties and List of
attachments. |
short |
create(SlingHttpServletRequest request)
Creates a new message from/based on
SlingHttpServletRequest. |
void |
delete(Resource messageResource,
Session session)
Delete a message represented by the specified
Resource. |
void |
delete(SlingHttpServletRequest request,
Session session)
|
Resource |
update(Resource commentResource,
java.util.Map<java.lang.String,java.lang.Object> props,
java.util.List<FileDataSource> attachments)
Update the specified message with the specified
Map of properties and List
of attachments. |
Resource |
update(SlingHttpServletRequest request)
Update a message based on the specified
SlingHttpServletRequest. |
short create(SlingHttpServletRequest request) throws OperationException
SlingHttpServletRequest.request - the client requestOperationException - if there is an error occursshort create(ResourceResolver resolver, Resource resource, java.lang.String senderAuthId, java.util.Map<java.lang.String,java.lang.Object> props, java.util.List<FileDataSource> attachments, ClientUtilities clientUtils) throws OperationException
Map of properties and List of
attachments.resolver - the root resource of the message to be created.resource - the resource that triggered the message creation.senderAuthId - Authorizable Id of the message sender.props - message properties passed as a java map.attachments - List of FileDataSource of the message
attachments.clientUtils - A ClientUtilities object.MessageOperationException - if there is an error occursResource update(SlingHttpServletRequest request) throws OperationException
SlingHttpServletRequest.request - The SlingHttpServletRequest.OperationException - if there is an error occursResource update(Resource commentResource, java.util.Map<java.lang.String,java.lang.Object> props, java.util.List<FileDataSource> attachments) throws OperationException
Map of properties and List
of attachments.commentResource - the target message resource.props - a map of the properties to be updatedattachments - a list of attachment to be added to the specified message.OperationException - if there is an error occursvoid delete(SlingHttpServletRequest request, Session session) throws OperationException
request - the http request which specifies the target message.session - javax.jcr.SessionOperationException - if there is an error occursvoid delete(Resource messageResource, Session session) throws OperationException
Resource.messageResource - The Resource that is the message to be deleted.session - javax.jcr.SessionOperationException - if there is an error occurs"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"