#441 add dynamic host to activiti components

This commit is contained in:
Mario Romano
2016-07-25 19:31:27 +01:00
parent d604a1f766
commit 126fecdf34
7 changed files with 24 additions and 27 deletions

View File

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

View File

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