public interface MessagingOperationsService
Message
.Modifier and Type | Method and Description |
---|---|
short |
create(ResourceResolver resolver,
Resource resource,
String senderAuthId,
Map<String,Object> props,
List<FileDataSource> attachments,
ClientUtilities clientUtils)
|
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,
Map<String,Object> props,
List<FileDataSource> attachments)
|
Resource |
update(SlingHttpServletRequest request)
Update a message based on the specified
SlingHttpServletRequest . |
short create(SlingHttpServletRequest request) throws OperationException
SlingHttpServletRequest
.request
- the client requestcom.adobe.cq.social.commons.client.endpoints.OperationException
- if there is an error occursOperationException
short create(ResourceResolver resolver, Resource resource, String senderAuthId, Map<String,Object> props, List<FileDataSource> attachments, ClientUtilities clientUtils) throws OperationException
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 com.adobe.cq.social.ugcbase.FileDataSource
of the message attachments.Message
com.adobe.cq.social.commons.client.endpoints.OperationException
- if there is an error occursOperationException
Resource update(SlingHttpServletRequest request) throws OperationException
SlingHttpServletRequest
.request
- The SlingHttpServletRequest
.com.adobe.cq.social.commons.client.endpoints.OperationException
- if there is an error occursOperationException
Resource update(Resource commentResource, Map<String,Object> props, List<FileDataSource> attachments) throws OperationException
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.com.adobe.cq.social.commons.client.endpoints.OperationException
- if there is an error occursOperationException
void delete(SlingHttpServletRequest request, Session session) throws OperationException
request
- the http request which specifies the target message.com.adobe.cq.social.commons.client.endpoints.OperationException
- if there is an error occursOperationException
void delete(Resource messageResource, Session session) throws OperationException
Resource
.messageResource
- The Resource
that is the message to be deleted.com.adobe.cq.social.commons.client.endpoints.OperationException
- if there is an error occursOperationException
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"