mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
* [ADF-3323] Moved source file parsing to main doc tool * [ADF-3323] Moved source info classes * [ADF-3323] Added doc YAML generator tool * [ADF-3323] Added doc YAML/JSON source paths to gitignore * [ADF-3323] Completed templates and template context code * [ADF-3323] Added source paths and updated type linker * [ADF-3323] Final fixes to templates and type linking * [ADF-3323] Fixed filter for private and protected methods * [ADF-3323] Content services docs after check and rebuild * [ADF-3323] Updated docbuild script in package.json
2.1 KiB
2.1 KiB
Added, Status, Last reviewed
Added | Status | Last reviewed |
---|---|---|
v2.0.0 | Active | 2018-04-05 |
Tag service
Manages tags in Content Services.
Class members
Methods
- addTag(nodeId:
string
, tagName:string
):any
Adds a tag to a node.- nodeId:
string
- ID of the target node - tagName:
string
- Name of the tag to add - Returns
any
- TagEntry object (defined in JSAPI) with details of the new tag
- nodeId:
- getAllTheTags():
Observable
<any>
Gets a list of all the tags already defined in the repository.- Returns
Observable
<any>
- TagPaging object (defined in JSAPI) containing the tags
- Returns
- getTagsByNodeId(nodeId:
string
):any
Gets a list of tags added to a node.- nodeId:
string
- ID of the target node - Returns
any
- TagPaging object (defined in JSAPI) containing the tags
- nodeId:
- removeTag(nodeId:
string
, tag:string
):any
Removes a tag from a node.- nodeId:
string
- ID of the target node - tag:
string
- Name of the tag to remove - Returns
any
- Null object when the operation completes
- nodeId:
Details
Content Services supports tagging of file and folder nodes to assist with searches. A tag is a short text string added to an item, rather like a hashtag in social media.
Usually, it is wise to let the user see a list of existing tags and let
them choose one by clicking. If they type a tag name with incorrect spelling
then it will be treated as a new tag, even though that was not intended.
Use getAllTheTags
to find all tags in the repository when you need to
construct a list like this.
See the Tags API in the Alfresco JS API for more information about the types returned by Tag service methods and for the implementation of the REST API the service is based on.