[ADF-2905] Updated JSDocs for core (#3271)

This commit is contained in:
Andy Stark
2018-05-04 19:03:13 +01:00
committed by Eugenio Romano
parent fe0ac0e474
commit c824e646de
18 changed files with 256 additions and 119 deletions

View File

@@ -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();
}