mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
* [ADF-5582] Update NodeCommentsService to take userId as an argument in getUserImage * [ADF-5582] Add unit tests for avatar caching and retrieval in NodeCommentsService * Refactor NodeCommentsService unit tests to avoid accessing private members * [ADF-5582] Remove picture Id from getUserImage * [ADF-5582] Add comment to getAvatarCache and fix sonarcloud issues * Update node-comments.service.spec.ts * Trigger sonar * [ADF-5582] Add method to return avatar url in people api * [ADF-5582] Fix sonar cloud issue * [ADF-5582] Add comment to getUserImage and fix request address for getAvatarImageUrl
27 lines
1.3 KiB
Markdown
27 lines
1.3 KiB
Markdown
---
|
|
Title: Node Comments Service
|
|
Added: v6.0.0
|
|
Status: Active
|
|
Last reviewed: 2022-12-19
|
|
---
|
|
|
|
# Node Comments Service
|
|
|
|
Adds and retrieves comments for nodes in Content Services.
|
|
|
|
## API
|
|
|
|
- **add**(id: `string`, message: `string`): [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`CommentModel`](../../../lib/core/src/lib/models/comment.model.ts)`>`<br/>
|
|
Adds a comment to a task.
|
|
- _id:_ `string` - ID of the target task
|
|
- _message:_ `string` - Text for the comment
|
|
- **Returns** [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`CommentModel`](../../../lib/core/src/lib/models/comment.model.ts)`>` - Details about the comment
|
|
- **get**(id: `string`): [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`CommentModel`](../../../lib/core/src/lib/models/comment.model.ts)`[]>`<br/>
|
|
Gets all comments that have been added to a task.
|
|
- _id:_ `string` - ID of the target task
|
|
- **Returns** [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`CommentModel`](../../../lib/core/src/lib/models/comment.model.ts)`[]>` - Details for each comment
|
|
- **getUserImage**(userId: `string`): `string`<br/>
|
|
Returns the avatar URL for the specified user.
|
|
- _userId:_ `string` - ID of the user
|
|
- **Returns** `string` - URL of the user's avatar image
|