Implements node operations used by the Document List component.
copyNode(nodeId: string, targetParentId: string): Observable<NodeEntry>
Copy a node to destination node
string - The id of the node to be copiedstring - The id of the folder where the node will be copiedObservable<NodeEntry> - NodeEntry for the copied nodedeleteNode(nodeId: string): Observable<any>
Deletes a node.
string - ID of the node to deleteObservable<any> - Empty response when the operation is completegetFolder(folder: string, opts?: any, includeFields: string[] = []): Observable<NodePaging>
Gets the folder node with the specified relative name path below the root node.
string - Path to folder.any - (Optional) Options.string[] - Extra information to include (available options are "aspectNames", "isLink" and "association")Observable<NodePaging> - Details of the foldergetFolderNode(nodeId: string, includeFields: string[] = []): Observable<NodeEntry>
Gets a folder node via its node ID.
string - ID of the folder nodestring[] - Extra information to include (available options are "aspectNames", "isLink" and "association")Observable<NodeEntry> - Details of the foldergetNode(nodeId: string, includeFields: string[] = []): Observable<MinimalNode>
Gets a node via its node ID.
string - ID of the target nodestring[] - Extra information to include (available options are "aspectNames", "isLink" and "association")Observable<MinimalNode> - Details of the folderisCustomSourceService(nodeId: any): boolean
any - boolean - loadFolderByNodeId(nodeId: string, pagination: PaginationModel, includeFields: string[], where?: string, orderBy?: string[]): Observable<DocumentLoaderNode>
Load a folder by Node Id.
string - ID of the folder nodePaginationModel - string[] - List of data field names to include in the resultsstring - (Optional) Optionally filter the liststring[] - (Optional) order by node propertyObservable<DocumentLoaderNode> - Details of the foldermoveNode(nodeId: string, targetParentId: string): Observable<NodeEntry>
Moves a node to destination node.
string - The id of the node to be movedstring - The id of the folder where the node will be movedObservable<NodeEntry> - NodeEntry for the moved nodeThis service makes extensive use of the Alfresco JS API. In particular, see the Nodes API for further details of the types, options and the underlying REST architecture.
Both moveNode and copyNode create a copy of the existing node under a new
parent, but moveNode also deletes the original. The new node has the same
name as the original and if it is a folder then all its contents will be copied
in-place.
Use deleteNode to move a node from its original location into the trash (from
where it can be restored if necessary). If the deleted node is a folder then its
child items will also be moved to the trash.
Use getFolderNode to get a folder node by its node ID and getFolder to access
the folder via its pathname from the root folder. Also, getFolder allows you to
specify extra options in the opts parameter; see the
getNodeChildren
method in the Alfresco JS API for more information about the available options.
Use createFolder to add a new folder in a given parent folder node. You can
specify the well-known names "-my-" , "-shared-" and "-root-" as shortcuts for
the parentId.
The hasAllowableOperations method reports whether or not the user has the specified permission for the
node. The Permissions enum contains the values DELETE, UPDATE, CREATE, UPDATEPERMISSIONS, NOT_DELETE, NOT_UPDATE, NOT_CREATE and NOT_UPDATEPERMISSIONS but you can also supply these
values via their string equivalents.
© 2023 Alfresco Software, Inc. All Rights Reserved.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.