Package org.alfresco.rest.api.nodes
Class NodeParentsRelation
java.lang.Object
org.alfresco.rest.api.nodes.AbstractNodeRelation
org.alfresco.rest.api.nodes.NodeParentsRelation
- All Implemented Interfaces:
RelationshipResourceAction.Read<Node>
,ResourceAction
,org.springframework.beans.factory.InitializingBean
@RelationshipResource(name="parents",
entityResource=NodesEntityResource.class,
title="Node Parents")
public class NodeParentsRelation
extends AbstractNodeRelation
implements RelationshipResourceAction.Read<Node>
Node Parents
- Author:
- janv
-
Field Summary
Fields inherited from class org.alfresco.rest.api.nodes.AbstractNodeRelation
dictionaryService, EXCLUDED_NS, namespaceService, nodes, nodeService, sr
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreadAll
(String childNodeId, Parameters parameters) List child node's parent(s) based on (parent ->) child associations.Methods inherited from class org.alfresco.rest.api.nodes.AbstractNodeRelation
afterPropertiesSet, getAssocTypeFromWhereElseAll, listNodeChildAssocs, listNodePeerAssocs, listPage, setNodes, setServiceRegistry
-
Constructor Details
-
NodeParentsRelation
public NodeParentsRelation()
-
-
Method Details
-
readAll
List child node's parent(s) based on (parent ->) child associations. Returns primary parent & also secondary parents, if any.- Specified by:
readAll
in interfaceRelationshipResourceAction.Read<Node>
- Parameters:
childNodeId
- String id of child nodeparameters
- - will never be null and will have the PAGING default values
-