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, nodeAssocService, nodes, nodeService, sr
-
-
Constructor Summary
Constructors Constructor Description NodeParentsRelation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CollectionWithPagingInfo<Node>
readAll(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, setNodeAssocService, setNodes, setServiceRegistry
-
-
-
-
Method Detail
-
readAll
public CollectionWithPagingInfo<Node> readAll(String childNodeId, Parameters parameters)
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
-
-