@RelationshipResource(name="comments", entityResource=NodesEntityResource.class, title="Document or folder comments") public class NodeCommentsRelation extends Object implements RelationshipResourceAction.Read<Comment>, RelationshipResourceAction.Create<Comment>, RelationshipResourceAction.Update<Comment>, RelationshipResourceAction.Delete, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
NodeCommentsRelation() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
List<Comment> |
create(String nodeId,
List<Comment> entity,
Parameters parameters)
Create a comment for the node given by nodeId.
|
void |
delete(String nodeId,
String commentNodeId,
Parameters parameters) |
CollectionWithPagingInfo<Comment> |
readAll(String nodeId,
Parameters parameters)
Returns a paged list of comments for the document/folder identified by nodeId, sorted chronologically with the newest first.
|
void |
setComments(Comments comments) |
Comment |
update(String nodeId,
Comment entity,
Parameters parameters) |
public void setComments(Comments comments)
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public List<Comment> create(String nodeId, List<Comment> entity, Parameters parameters)
create
in interface RelationshipResourceAction.Create<Comment>
public CollectionWithPagingInfo<Comment> readAll(String nodeId, Parameters parameters)
readAll
in interface RelationshipResourceAction.Read<Comment>
nodeId
- Entity resource context for this relationshipparameters
- - will never be null and will have the PAGING default valuespublic Comment update(String nodeId, Comment entity, Parameters parameters)
update
in interface RelationshipResourceAction.Update<Comment>
public void delete(String nodeId, String commentNodeId, Parameters parameters)
delete
in interface RelationshipResourceAction.Delete
Copyright © 2005–2017 Alfresco Software. All rights reserved.