mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* move doc dependency in doctools * add ignore link * rebuild doc * version index * put it back some deps
3.2 KiB
3.2 KiB
Title, Added, Status, Last reviewed
Title | Added | Status | Last reviewed |
---|---|---|---|
Node Service | v2.0.0 | Active | 2018-11-20 |
Node Service Deprecated
use Nodes Api service instead of this.
Gets Alfresco Repository node metadata and creates nodes with metadata.
Class members
Methods
- createNode(name:
string
, nodeType:string
, properties:any
, path:string
):Observable
<
NodeEntry
>
(Deprecated: in 3.8.0, usecreateNodeInsideRoot
method from NodesApiService instead. 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
<
NodeEntry
>
- The created node
- name:
- createNodeMetadata(nodeType:
string
, nameSpace:any
, data:any
, path:string
, name?:string
):Observable
<
NodeEntry
>
(Deprecated: in 3.8.0, use NodesApiService instead. 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
<
NodeEntry
>
- The created node
- nodeType:
- getNodeMetadata(nodeId:
string
):Observable
<
NodeMetadata
>
(Deprecated: in 3.8.0, use NodesApiService instead. Get the metadata and the nodeType for a nodeId cleaned by the prefix.)- nodeId:
string
- ID of the target node - Returns
Observable
<
NodeMetadata
>
- Node metadata
- nodeId:
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) {
}