@RelationshipResource(name="comments", entityResource=NodesEntityResource.class, title="Document or folder comments") public class NodeCommentsRelation extends java.lang.Object implements RelationshipResourceAction.Read, RelationshipResourceAction.Create, RelationshipResourceAction.Update, RelationshipResourceAction.Delete, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
NodeCommentsRelation() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
java.util.List |
create(java.lang.String nodeId,
java.util.List entity,
Parameters parameters)
Create a comment for the node given by nodeId.
|
void |
delete(java.lang.String nodeId,
java.lang.String commentNodeId,
Parameters parameters) |
CollectionWithPagingInfo |
readAll(java.lang.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(java.lang.String nodeId,
Comment entity,
Parameters parameters) |
public void setComments(Comments comments)
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public java.util.List create(java.lang.String nodeId, java.util.List entity, Parameters parameters)
create
in interface RelationshipResourceAction.Create
public CollectionWithPagingInfo readAll(java.lang.String nodeId, Parameters parameters)
readAll
in interface RelationshipResourceAction.Read
nodeId
- Entity resource context for this relationshipparameters
- - will never be null and will have the PAGING default valuespublic Comment update(java.lang.String nodeId, Comment entity, Parameters parameters)
update
in interface RelationshipResourceAction.Update
public void delete(java.lang.String nodeId, java.lang.String commentNodeId, Parameters parameters)
delete
in interface RelationshipResourceAction.Delete
Copyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.