@RelationshipResource(name="ratings", entityResource=NodesEntityResource.class, title="Document or folder ratings") public class NodeRatingsRelation extends Object implements RelationshipResourceAction.Read<NodeRating>, RelationshipResourceAction.ReadById<NodeRating>, RelationshipResourceAction.Delete, RelationshipResourceAction.Create<NodeRating>, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
NodeRatingsRelation() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
List<NodeRating> |
create(String nodeId,
List<NodeRating> ratingEntity,
Parameters parameters)
Create a rating for the node with id 'nodeId'.
|
void |
delete(String nodeId,
String ratingSchemeId,
Parameters parameters) |
CollectionWithPagingInfo<NodeRating> |
readAll(String nodeId,
Parameters parameters)
Reads all the relationship entities from the collection using the related entityResourceId.
|
NodeRating |
readById(String nodeId,
String ratingSchemeId,
Parameters parameters)
Returns the rating with id 'schemeName' for node with id 'nodeId'.
|
void |
setNodeRatings(NodeRatings nodeRatings) |
public void setNodeRatings(NodeRatings nodeRatings)
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public CollectionWithPagingInfo<NodeRating> readAll(String nodeId, Parameters parameters)
RelationshipResourceAction.Read
readAll
in interface RelationshipResourceAction.Read<NodeRating>
nodeId
- Entity resource context for this relationshipparameters
- - will never be null and will have the PAGING default valuespublic List<NodeRating> create(String nodeId, List<NodeRating> ratingEntity, Parameters parameters)
create
in interface RelationshipResourceAction.Create<NodeRating>
public NodeRating readById(String nodeId, String ratingSchemeId, Parameters parameters)
readById
in interface RelationshipResourceAction.ReadById<NodeRating>
public void delete(String nodeId, String ratingSchemeId, Parameters parameters)
delete
in interface RelationshipResourceAction.Delete
Copyright © 2005–2017 Alfresco Software. All rights reserved.