mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
#441 add dynamic host to activiti components
This commit is contained in:
@@ -72,7 +72,7 @@ export class AlfrescoAuthenticationBPM extends AlfrescoAuthenticationBase implem
|
||||
}
|
||||
|
||||
private apiActivitiLogin(username: string, password: string) {
|
||||
let url = this.alfrescoSettingsService.getBPMApiBaseUrl + '/authentication';
|
||||
let url = this.alfrescoSettingsService.getBPMApiBaseUrl() + '/authentication';
|
||||
let headers = new Headers({
|
||||
'Content-Type': 'application/x-www-form-urlencoded'
|
||||
});
|
||||
@@ -88,7 +88,7 @@ export class AlfrescoAuthenticationBPM extends AlfrescoAuthenticationBase implem
|
||||
}
|
||||
|
||||
private apiActivitiLogout() {
|
||||
let url = this.alfrescoSettingsService.getBPMApiBaseUrl + '/logout';
|
||||
let url = this.alfrescoSettingsService.getBPMApiBaseUrl() + '/logout';
|
||||
return this.http.get(url).toPromise();
|
||||
}
|
||||
|
||||
|
@@ -56,19 +56,19 @@ export class AlfrescoSettingsService {
|
||||
this._bpmHost = value;
|
||||
}
|
||||
|
||||
getBPMApiBaseUrl(): string {
|
||||
public getBPMApiBaseUrl(): string {
|
||||
return this._bpmHost + this._bpmContextPath + this._apiBPMBasePath;
|
||||
}
|
||||
|
||||
getECMApiBaseUrl(): string {
|
||||
public getECMApiBaseUrl(): string {
|
||||
return this._ecmHost + this._ecmContextPath + this._apiECMBasePath;
|
||||
}
|
||||
|
||||
getProviders(): string [] {
|
||||
public getProviders(): string [] {
|
||||
return this.providers;
|
||||
}
|
||||
|
||||
setProviders(providers: string []) {
|
||||
public setProviders(providers: string []) {
|
||||
this.providers = providers;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user