[AAE-12501] Restore get username methods

This commit is contained in:
Amedeo Lepore
2023-03-31 12:12:03 +02:00
parent 1aff2d0fce
commit 7db91b47af
2 changed files with 20 additions and 0 deletions
@@ -160,6 +160,24 @@ export class AuthenticationService extends BaseAuthenticationService {
return false;
}
/**
* Gets the ECM username.
*
* @returns The ECM username
*/
getEcmUsername(): string {
return this.alfrescoApi.getInstance().getEcmUsername();
}
/**
* Gets the BPM username
*
* @returns The BPM username
*/
getBpmUsername(): string {
return this.alfrescoApi.getInstance().getBpmUsername();
}
/**
* Gets the auth token.
*
@@ -50,6 +50,8 @@ export abstract class BaseAuthenticationService {
abstract logout(): Observable<any>;
abstract isEcmLoggedIn(): boolean;
abstract isBpmLoggedIn(): boolean;
abstract getEcmUsername(): string;
abstract getBpmUsername(): string;
abstract reset(): void;
abstract once(event: string): Observable<any>;