@RelationshipResource(name="children", entityResource=NodesEntityResource.class, title="Folder children") public class NodeChildrenRelation extends Object implements RelationshipResourceAction.Read<Node>, RelationshipResourceAction.Create<Node>, MultiPartRelationshipResourceAction.Create<Node>, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
NodeChildrenRelation() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
Node |
create(String parentFolderNodeId,
org.springframework.extensions.webscripts.servlet.FormData formData,
Parameters parameters,
WithResponse withResponse) |
List<Node> |
create(String parentFolderNodeId,
List<Node> nodeInfos,
Parameters parameters)
Create one or more nodes (folder or empty file) below parent folder.
|
CollectionWithPagingInfo<Node> |
readAll(String parentFolderNodeId,
Parameters parameters)
List folder children - returns a filtered/sorted/paged list of nodes that are immediate children of the parent folder
|
void |
setNodes(Nodes nodes) |
public void setNodes(Nodes nodes)
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public CollectionWithPagingInfo<Node> readAll(String parentFolderNodeId, Parameters parameters)
readAll
in interface RelationshipResourceAction.Read<Node>
parentFolderNodeId
- String id of parent folder - will also accept well-known alias, eg. -root- or -my- or -shared-
Optional query parameters:
- include
- fields
- where
- orderBy
- skipCount
- maxItems
- ... etc
Please refer to OpenAPI spec for more details !
If parentFolderNodeId does not exist, EntityNotFoundException (status 404).
If parentFolderNodeId does not represent a folder, InvalidArgumentException (status 400).parameters
- - will never be null and will have the PAGING default valuespublic List<Node> create(String parentFolderNodeId, List<Node> nodeInfos, Parameters parameters)
create
in interface RelationshipResourceAction.Create<Node>
public Node create(String parentFolderNodeId, org.springframework.extensions.webscripts.servlet.FormData formData, Parameters parameters, WithResponse withResponse)
create
in interface MultiPartRelationshipResourceAction.Create<Node>
Copyright © 2005–2017 Alfresco Software. All rights reserved.