mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2905] Updated JSDocs for core (#3271)
This commit is contained in:
committed by
Eugenio Romano
parent
fe0ac0e474
commit
c824e646de
@@ -36,8 +36,8 @@ export class BpmUserService {
|
||||
}
|
||||
|
||||
/**
|
||||
* get Current User information for BPM
|
||||
* @param userName - the user name
|
||||
* Gets information about the current user.
|
||||
* @returns User information object
|
||||
*/
|
||||
getCurrentUserInfo(): Observable<BpmUserModel> {
|
||||
return Observable.fromPromise(this.apiService.getInstance().activiti.profileApi.getProfile())
|
||||
@@ -45,6 +45,10 @@ export class BpmUserService {
|
||||
.catch(err => this.handleError(err));
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the current user's profile image as a URL.
|
||||
* @returns URL string
|
||||
*/
|
||||
getCurrentUserProfileImage(): string {
|
||||
return this.apiService.getInstance().activiti.profileApi.getProfilePictureUrl();
|
||||
}
|
||||
|
Reference in New Issue
Block a user