public interface CommentsService
| Modifier and Type | Method and Description |
|---|---|
void |
addComment(org.apache.sling.api.resource.Resource resource,
Comment c)
Add a comment to the resource
|
String |
getCommentsResourcePath(org.apache.sling.api.resource.Resource resource)
Return the path to the comments resource for a resource.
|
String getCommentsResourcePath(org.apache.sling.api.resource.Resource resource)
resource - The content resource, this is usually an entry.null if
the passed in content resource is not part of
Slingshot.void addComment(org.apache.sling.api.resource.Resource resource,
Comment c)
throws org.apache.sling.api.resource.PersistenceException
resource - The resourcec - The commoentorg.apache.sling.api.resource.PersistenceException - If the comment can't be addedCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.