Andy Stark a7cdcbf7b9 [ADF-3551] Doc review updates (#3789)
* [ADF-3551] Updated docs plus minor ToC tool fix

* [ADF-3551] Updated docs and JSDocs

* [ADF-3551] Updated docs and JSDocs
2018-09-13 18:08:47 +01:00

2.3 KiB

Added, Status, Last reviewed
Added Status Last reviewed
v2.0.0 Active 2018-09-13

Node Service

Gets Alfresco Repository node metadata and creates nodes with metadata.

Class members

Methods

  • createNode(name: string, nodeType: string, properties: any, path: string): Observable<any>
    Create a new Node from form metadata
    • name: string - Node name
    • nodeType: string - Node type
    • properties: any - Node body properties
    • path: string - Path to the node
    • Returns Observable<any> - The created node
  • createNodeMetadata(nodeType: string, nameSpace: any, data: any, path: string, name?: string): Observable<any>
    Create a new Node from form metadata.
    • nodeType: string - Node type
    • nameSpace: any - Namespace for properties
    • data: any - Property data to store in the node under namespace
    • path: string - Path to the node
    • name: string - (Optional) Node name
    • Returns Observable<any> - The created node
  • getNodeMetadata(nodeId: string): Observable<NodeMetadata>
    Get the metadata and the nodeType for a nodeId cleaned by the prefix.

Details

Note that this service cannot be used to create nodes with content.

The path parameter to createNode and createNodeMetadata specifies an intermediate path of folders to create between the root and the target node.

Importing

import { NodeService } from '@alfresco/adf-core';

export class SomePageComponent implements OnInit {

  constructor(private nodeService: NodeService) {
  }

See also