mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-1769] Added JSDocs for services (#2949)
This commit is contained in:
committed by
Eugenio Romano
parent
8bfac2f9f8
commit
9887d8bca4
@@ -29,6 +29,10 @@ export class PeopleContentService {
|
||||
return this.apiService.getInstance().core.peopleApi;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets information about a user identified by their username.
|
||||
* @param personId ID of the target user
|
||||
*/
|
||||
getPerson(personId: string): Observable<any> {
|
||||
const { peopleApi, handleError } = this;
|
||||
const promise = peopleApi.getPerson(personId);
|
||||
@@ -38,6 +42,7 @@ export class PeopleContentService {
|
||||
.catch(handleError);
|
||||
}
|
||||
|
||||
/** Gets information about the user who is currently logged-in. */
|
||||
getCurrentPerson(): Observable<any> {
|
||||
return this.getPerson('-me-');
|
||||
}
|
||||
|
Reference in New Issue
Block a user