@RelationshipResource(name="renditions", entityResource=NodesEntityResource.class, title="Node renditions") public class NodeRenditionsRelation extends Object implements RelationshipResourceAction.Read<Rendition>, RelationshipResourceAction.ReadById<Rendition>, RelationshipResourceAction.Create<Rendition>, RelationshipResourceBinaryAction.Read, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
NodeRenditionsRelation() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
List<Rendition> |
create(String nodeId,
List<Rendition> entity,
Parameters parameters) |
CollectionWithPagingInfo<Rendition> |
readAll(String nodeId,
Parameters parameters)
Reads all the relationship entities from the collection using the related entityResourceId.
|
Rendition |
readById(String nodeId,
String renditionId,
Parameters parameters) |
BinaryResource |
readProperty(String nodeId,
String renditionId,
Parameters parameters)
Retrieves a binary property by returning a BinaryResource object.
|
void |
setRenditions(Renditions renditions) |
public void setRenditions(Renditions renditions)
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public CollectionWithPagingInfo<Rendition> readAll(String nodeId, Parameters parameters)
RelationshipResourceAction.Read
readAll
in interface RelationshipResourceAction.Read<Rendition>
nodeId
- Entity resource context for this relationshipparameters
- - will never be null and will have the PAGING default valuespublic Rendition readById(String nodeId, String renditionId, Parameters parameters)
readById
in interface RelationshipResourceAction.ReadById<Rendition>
public List<Rendition> create(String nodeId, List<Rendition> entity, Parameters parameters)
create
in interface RelationshipResourceAction.Create<Rendition>
public BinaryResource readProperty(String nodeId, String renditionId, Parameters parameters)
RelationshipResourceBinaryAction.Read
Parameters
object.
See Parameters.hasBinaryProperty(String)
or Parameters.getBinaryProperty()
readProperty
in interface RelationshipResourceBinaryAction.Read
nodeId
- unique idrenditionId
- Entity resource context for this relationshipparameters
- Parameters
FileBinaryResource
or NodeBinaryResource
Copyright © 2005–2017 Alfresco Software. All rights reserved.