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 EcmUserService {
|
||||
/**
|
||||
* Gets information about a user identified by their username.
|
||||
* @param userName Target username
|
||||
* @returns User information
|
||||
*/
|
||||
getUserInfo(userName: string): Observable<EcmUserModel> {
|
||||
return Observable.fromPromise(this.apiService.getInstance().core.peopleApi.getPerson(userName))
|
||||
@@ -44,6 +45,7 @@ export class EcmUserService {
|
||||
|
||||
/**
|
||||
* Gets information about the user who is currently logged-in.
|
||||
* @returns User information as for getUserInfo
|
||||
*/
|
||||
getCurrentUserInfo() {
|
||||
return this.getUserInfo('-me-');
|
||||
@@ -52,6 +54,7 @@ export class EcmUserService {
|
||||
/**
|
||||
* Returns a profile image as a URL.
|
||||
* @param avatarId Target avatar
|
||||
* @returns Image URL
|
||||
*/
|
||||
getUserProfileImage(avatarId: string) {
|
||||
if (avatarId) {
|
||||
|
Reference in New Issue
Block a user