public interface CommentCreator
CommentCreator interface provides opportunity to create comments to required social components. Method
create used to provide access to CommentOperations implementation related to required social
component.| Modifier and Type | Method and Description |
|---|---|
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,
ResourceResolver resolver)
Create a comment with the specified
Map of properties and List of attachments. |
int |
getPriority()
This determines the priority of this comment creator with respect to others that support the same resource
types as this one.
|
java.lang.String[] |
getSupportedResourceTypes() |
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, ResourceResolver resolver) 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 attachmentsresolver - the user resource resolver to be used to create the new commentResourceOperationException - if there is an error occursjava.lang.String[] getSupportedResourceTypes()
int getPriority()
Copyright © 2010 - 2023 Adobe. All Rights Reserved