@RelationshipResource(name="versions", entityResource=NodesEntityResource.class, title="Node Versions") public class NodeVersionsRelation extends AbstractNodeRelation implements RelationshipResourceAction.Read<Node>, RelationshipResourceAction.ReadById<Node>, RelationshipResourceBinaryAction.Read, RelationshipResourceAction.Delete, org.springframework.beans.factory.InitializingBean
Modifier and Type | Field and Description |
---|---|
protected BehaviourFilter |
behaviourFilter |
protected VersionService |
versionService |
dictionaryService, EXCLUDED_NS, namespaceService, nodeAssocService, nodes, nodeService, sr
Constructor and Description |
---|
NodeVersionsRelation() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
delete(String nodeId,
String versionId,
Parameters parameters) |
Version |
findVersion(String nodeId,
String versionLabelId) |
void |
mapVersionInfo(Version v,
Node aNode,
org.alfresco.service.cmr.repository.NodeRef nodeRef) |
CollectionWithPagingInfo<Node> |
readAll(String nodeId,
Parameters parameters)
List version history
|
Node |
readById(String nodeId,
String versionId,
Parameters parameters) |
BinaryResource |
readProperty(String nodeId,
String versionId,
Parameters parameters)
Retrieves a binary property by returning a BinaryResource object.
|
Node |
revertById(String nodeId,
String versionId,
VersionOptions versionOptions,
Parameters parameters,
WithResponse withResponse) |
void |
setBehaviourFilter(BehaviourFilter behaviourFilter) |
getAssocTypeFromWhereElseAll, listNodeChildAssocs, listNodePeerAssocs, listPage, setNodeAssocService, setNodes, setServiceRegistry
protected VersionService versionService
protected BehaviourFilter behaviourFilter
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class AbstractNodeRelation
public void setBehaviourFilter(BehaviourFilter behaviourFilter)
public CollectionWithPagingInfo<Node> readAll(String nodeId, Parameters parameters)
readAll
in interface RelationshipResourceAction.Read<Node>
nodeId
- String id of (live) nodeparameters
- - will never be null and will have the PAGING default valuespublic void mapVersionInfo(Version v, Node aNode, org.alfresco.service.cmr.repository.NodeRef nodeRef)
public Node readById(String nodeId, String versionId, Parameters parameters)
readById
in interface RelationshipResourceAction.ReadById<Node>
public BinaryResource readProperty(String nodeId, String versionId, Parameters parameters)
RelationshipResourceBinaryAction.Read
Parameters
object.
See Parameters.hasBinaryProperty(String)
or Parameters.getBinaryProperty()
readProperty
in interface RelationshipResourceBinaryAction.Read
nodeId
- unique idversionId
- Entity resource context for this relationshipparameters
- Parameters
FileBinaryResource
or NodeBinaryResource
public Node revertById(String nodeId, String versionId, VersionOptions versionOptions, Parameters parameters, WithResponse withResponse)
public void delete(String nodeId, String versionId, Parameters parameters)
delete
in interface RelationshipResourceAction.Delete
Copyright © 2005–2017 Alfresco Software. All rights reserved.