mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
clean setting service file
This commit is contained in:
@@ -23,20 +23,14 @@ export class AlfrescoSettingsService {
|
|||||||
static DEFAULT_ECM_ADDRESS: string = 'http://' + window.location.hostname + ':8080';
|
static DEFAULT_ECM_ADDRESS: string = 'http://' + window.location.hostname + ':8080';
|
||||||
static DEFAULT_BPM_ADDRESS: string = 'http://' + window.location.hostname + ':9999';
|
static DEFAULT_BPM_ADDRESS: string = 'http://' + window.location.hostname + ':9999';
|
||||||
|
|
||||||
static DEFAULT_ECM_CONTEXT_PATH: string = '/alfresco';
|
|
||||||
static DEFAULT_BPM_CONTEXT_PATH: string = '/activiti-app';
|
static DEFAULT_BPM_CONTEXT_PATH: string = '/activiti-app';
|
||||||
|
|
||||||
static DEFAULT_ECM_BASE_API_PATH: string = '/api/-default-/public/alfresco/versions/1';
|
|
||||||
|
|
||||||
private _ecmHost: string = AlfrescoSettingsService.DEFAULT_ECM_ADDRESS;
|
private _ecmHost: string = AlfrescoSettingsService.DEFAULT_ECM_ADDRESS;
|
||||||
private _bpmHost: string = AlfrescoSettingsService.DEFAULT_BPM_ADDRESS;
|
private _bpmHost: string = AlfrescoSettingsService.DEFAULT_BPM_ADDRESS;
|
||||||
|
|
||||||
private _ecmContextPath = AlfrescoSettingsService.DEFAULT_ECM_CONTEXT_PATH;
|
|
||||||
private _bpmContextPath = AlfrescoSettingsService.DEFAULT_BPM_CONTEXT_PATH;
|
private _bpmContextPath = AlfrescoSettingsService.DEFAULT_BPM_CONTEXT_PATH;
|
||||||
|
|
||||||
private _apiECMBasePath: string = AlfrescoSettingsService.DEFAULT_ECM_BASE_API_PATH;
|
private providers: string[] = 'ALL';
|
||||||
|
|
||||||
private providers: string[] = ['ECM', 'BPM'];
|
|
||||||
|
|
||||||
public get ecmHost(): string {
|
public get ecmHost(): string {
|
||||||
return this._ecmHost;
|
return this._ecmHost;
|
||||||
@@ -58,15 +52,4 @@ export class AlfrescoSettingsService {
|
|||||||
return this._bpmHost + this._bpmContextPath;
|
return this._bpmHost + this._bpmContextPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
public getECMApiBaseUrl(): string {
|
|
||||||
return this._ecmHost + this._ecmContextPath + this._apiECMBasePath;
|
|
||||||
}
|
|
||||||
|
|
||||||
public getProviders(): string [] {
|
|
||||||
return this.providers;
|
|
||||||
}
|
|
||||||
|
|
||||||
public setProviders(providers: string []) {
|
|
||||||
this.providers = providers;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user