public interface MessagingOperations extends CommentOperations
MessageSocialComponent.| Modifier and Type | Field and Description |
|---|---|
static String |
MESSAGE_CUSTOM_PROPERTIES_WHITE_LIST
Custom properties Names white list service property name.
|
static String |
PN_INBOX_PATH_CONFIGURATION
inbox path
Configuration property name. |
static String |
PN_SENDER_ID_CONFIGURATION
sender id
Configuration property name. |
static String |
PN_SENT_ITEMS_PATH_CONFIGURATION
sent items path
Configuration property name. |
| Modifier and Type | Method and Description |
|---|---|
short |
create(ResourceResolver resolver,
Resource resource,
String senderAuthId,
Map<String,Object> props,
List<DataSource> 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)
Delete a
MessageSocialComponent specified by the
SlingHttpServletRequest using the specified javax.jcr.Session. |
Usage |
getUserStatistics(Resource resource)
Get the usage statistics of the user corresponding to the passed resolver.
|
List<String> |
getWhiteList()
Return a list of message fields that have been whitelisted.
|
Resource |
update(Resource commentResource,
Map<String,Object> props,
List<FileDataSource> attachments)
|
Resource |
update(SlingHttpServletRequest request)
Update a message based on the specified
SlingHttpServletRequest. |
changeState, changeState, create, create, move, move, removeAttachment, removeAttachment, update, update, uploadImagestatic final String MESSAGE_CUSTOM_PROPERTIES_WHITE_LIST
static final String PN_INBOX_PATH_CONFIGURATION
Configuration property name.static final String PN_SENT_ITEMS_PATH_CONFIGURATION
Configuration property name.static final String PN_SENDER_ID_CONFIGURATION
Configuration property name.short create(SlingHttpServletRequest request) throws OperationException
SlingHttpServletRequest.request - the client requestOperationException - if there is an error occursshort create(ResourceResolver resolver, Resource resource, String senderAuthId, Map<String,Object> props, List<DataSource> 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 FileDataSource of the message
attachments.clientUtils - A ClientUtilities object.MessageSocialComponentOperationException - 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, 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.OperationException - if there is an error occursvoid delete(SlingHttpServletRequest request, Session session) throws OperationException
MessageSocialComponent specified by the
SlingHttpServletRequest using the specified javax.jcr.Session.delete in interface CommentOperationsrequest - 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.delete in interface CommentOperationsmessageResource - The Resource that is the message to be deleted.session - javax.jcr.SessionOperationException - if there is an error occursUsage getUserStatistics(Resource resource) throws RepositoryException
resource - The message box resource.UsageRepositoryException - RepositoryException if some exception occurs in calculating the statistics."Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"