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