mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2557] Updated docs with new props script (#3149)
* [ADF-2557] Updated docs for services with new props script * [ADF-2557] Updated service docs with new props script
This commit is contained in:
committed by
Eugenio Romano
parent
8769c257f8
commit
1d517d3a8a
@@ -35,6 +35,7 @@ export class PeopleProcessService {
|
||||
* Gets information about users across all tasks.
|
||||
* @param taskId ID of the task
|
||||
* @param searchWord Filter text to search for
|
||||
* @returns Array of user information objects
|
||||
*/
|
||||
getWorkflowUsers(taskId?: string, searchWord?: string): Observable<UserProcessModel[]> {
|
||||
let option = { excludeTaskId: taskId, filter: searchWord };
|
||||
@@ -46,6 +47,7 @@ export class PeopleProcessService {
|
||||
/**
|
||||
* Gets the profile picture URL for the specified user.
|
||||
* @param user The target user
|
||||
* @returns Profile picture URL
|
||||
*/
|
||||
getUserImage(user: UserProcessModel): string {
|
||||
return this.getUserProfileImageApi(user.id);
|
||||
@@ -55,6 +57,7 @@ export class PeopleProcessService {
|
||||
* Sets a user to be involved with a task.
|
||||
* @param taskId ID of the target task
|
||||
* @param idToInvolve ID of the user to involve
|
||||
* @returns Empty response when the update completes
|
||||
*/
|
||||
involveUserWithTask(taskId: string, idToInvolve: string): Observable<UserProcessModel[]> {
|
||||
let node = {userId: idToInvolve};
|
||||
@@ -66,6 +69,7 @@ export class PeopleProcessService {
|
||||
* Removes a user who is currently involved with a task.
|
||||
* @param taskId ID of the target task
|
||||
* @param idToRemove ID of the user to remove
|
||||
* @returns Empty response when the update completes
|
||||
*/
|
||||
removeInvolvedUser(taskId: string, idToRemove: string): Observable<UserProcessModel[]> {
|
||||
let node = {userId: idToRemove};
|
||||
|
Reference in New Issue
Block a user