auth service enhancements (#1860)

This commit is contained in:
Denys Vuika
2017-05-18 14:00:28 +01:00
committed by Eugenio Romano
parent af82f83669
commit 608b3639ea

View File

@@ -167,6 +167,28 @@ export class AlfrescoAuthenticationService {
return this.alfrescoApi.getInstance().bpmAuth && !!this.alfrescoApi.getInstance().bpmAuth.isLoggedIn();
}
/**
* Get the ECM username
*
* @returns {string} The username value
*
* @memberof AlfrescoAuthenticationService
*/
getEcmUsername(): string {
return this.alfrescoApi.getInstance().ecmAuth.username;
}
/**
* Get the BPM username
*
* @returns {string} The username value
*
* @memberof AlfrescoAuthenticationService
*/
getBpmUsername(): string {
return this.alfrescoApi.getInstance().bpmAuth.username;
}
/**
* The method write the error in the console browser
* @param error