Merge pull request #471 from Alfresco/dev-mromano-441

Dev mromano 441
This commit is contained in:
Maurizio Vitale
2016-07-26 16:28:35 +01:00
committed by GitHub
20 changed files with 172 additions and 91 deletions

View File

@@ -63,7 +63,7 @@ class WebscriptDemo implements OnInit {
authenticated: boolean;
host: string = 'http://127.0.0.1:8080';
ecmHost: string = 'http://127.0.0.1:8080';
scriptPath: string = 'sample/folder/Company%20Home';
@@ -78,7 +78,7 @@ class WebscriptDemo implements OnInit {
constructor(private authService: AlfrescoAuthenticationService,
private alfrescoSettingsService: AlfrescoSettingsService) {
alfrescoSettingsService.host = this.host;
alfrescoSettingsService.ecmHost = this.ecmHost;
if (this.authService.getTicket()) {
this.token = this.authService.getTicket();
}
@@ -89,7 +89,7 @@ class WebscriptDemo implements OnInit {
}
public updateHost(): void {
this.alfrescoSettingsService.host = this.host;
this.alfrescoSettingsService.ecmHost = this.ecmHost;
this.login();
}

View File

@@ -26,7 +26,7 @@ export class AlfrescoSettingsServiceMock {
private _host: string = AlfrescoSettingsServiceMock.DEFAULT_HOST_ADDRESS;
public get host(): string {
public get ecmHost(): string {
return this._host;
}