Manages tags in Content Services.
string
, tagName: string
): Observable
<
TagEntry
>
string
- ID of the target nodestring
- Name of the tag to addObservable
<
TagEntry
>
- TagEntry object (defined in JS-API) with details of the new tagstring
, tags: TagBody[]
): Observable
<
TagPaging
|
TagEntry
>
string
- Id of node to which tags should be assigned.TagBody[]
- List of tags to create and assign or just assign if they already exist.Observable
<
TagPaging
|
TagEntry
>
- Just linked tags to node or single tag if linked only one tag.TagBody[]
): Observable
<
TagEntry
[]>
TagBody[]
- list of tags to create.Observable
<
TagEntry
[]>
- Created tags.string
): Observable
<void>
string
- of the tag to be deletedObservable
<void>
- Null object when the operation completesstring
): Observable
<
TagEntry
>
string
- Value for name which should be used during finding exact tag.Observable
<
TagEntry
>
- Found tag which name matches exactly to passed name.any
, includedCounts?: boolean
): Observable
<
TagPaging
>
any
- (Optional) Options supported by JS-APIboolean
- (Optional) True if count field should be included in response object for each tag, false otherwise.Observable
<
TagPaging
>
- TagPaging object (defined in JS-API) containing the tagsstring
): Observable
<
TagPaging
>
string
- ID of the target nodeObservable
<
TagPaging
>
- TagPaging object (defined in JS-API) containing the tagsstring
, tag: string
): Observable
<void>
string
- ID of the target nodestring
- Name of the tag to removeObservable
<void>
- Null object when the operation completesstring
, sorting: Function
= { orderBy: 'tag', direction: 'asc' }
, includedCounts?: boolean
, skipCount: number
= 0
, maxItems?: number
): Observable
<
TagPaging
>
string
- Value for name which should be used during searching tags.Function
- Object which configures sorting. OrderBy field specifies field used for sorting, direction specified ascending or descending direction. Default sorting is ascending by tag field.boolean
- (Optional) True if count field should be included in response object for each tag, false otherwise.number
- Specify how many first results should be skipped. Default 0.number
- (Optional) Specify max number of returned tags. Default is specified by UserPreferencesService.Observable
<
TagPaging
>
- Found tags which name contains searched name.string
, tagBody: TagBody
): Observable
<
TagEntry
>
string
- The identifier of a tag.TagBody
- The updated tag.Observable
<
TagEntry
>
- Updated tag.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.
© 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.