Merge pull request #1383 from Alfresco/dev-mvitale-1370

Remove use of deprecated Services
This commit is contained in:
Mario Romano
2017-01-04 19:42:41 +00:00
committed by GitHub
29 changed files with 107 additions and 107 deletions

View File

@@ -18,7 +18,7 @@
import { NgModule, Component } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { CoreModule, AlfrescoSettingsService, AlfrescoAuthenticationService, StorageService } from 'ng2-alfresco-core';
import { CoreModule, SettingsService, AuthService, StorageService } from 'ng2-alfresco-core';
import { ViewerModule } from 'ng2-alfresco-viewer';
@Component({
@@ -54,8 +54,8 @@ class MyDemoApp {
ticket: string;
constructor(private authService: AlfrescoAuthenticationService,
private settingsService: AlfrescoSettingsService,
constructor(private authService: AuthService,
private settingsService: SettingsService,
private storage: StorageService) {
settingsService.ecmHost = this.ecmHost;
settingsService.setProviders('ECM');

View File

@@ -19,8 +19,8 @@ import { ComponentFixture, TestBed, async } from '@angular/core/testing';
import { ImgViewerComponent } from './imgViewer.component';
import { DebugElement } from '@angular/core';
import {
AlfrescoAuthenticationService,
AlfrescoSettingsService,
AuthService,
SettingsService,
AlfrescoApiService,
CoreModule
} from 'ng2-alfresco-core';
@@ -39,8 +39,8 @@ describe('Test ng2-alfresco-viewer Img viewer component ', () => {
],
declarations: [ImgViewerComponent],
providers: [
AlfrescoSettingsService,
AlfrescoAuthenticationService,
SettingsService,
AuthService,
AlfrescoApiService
]
}).compileComponents();

View File

@@ -19,8 +19,8 @@ import { ComponentFixture, TestBed, async } from '@angular/core/testing';
import { MediaPlayerComponent } from './mediaPlayer.component';
import { DebugElement } from '@angular/core';
import {
AlfrescoAuthenticationService,
AlfrescoSettingsService,
AuthService,
SettingsService,
AlfrescoApiService,
CoreModule
} from 'ng2-alfresco-core';
@@ -39,8 +39,8 @@ describe('Test ng2-alfresco-viewer Media player component ', () => {
],
declarations: [MediaPlayerComponent],
providers: [
AlfrescoSettingsService,
AlfrescoAuthenticationService,
SettingsService,
AuthService,
AlfrescoApiService
]
}).compileComponents();

View File

@@ -19,8 +19,8 @@ import { ComponentFixture, TestBed, async } from '@angular/core/testing';
import { NotSupportedFormat } from './notSupportedFormat.component';
import { DebugElement } from '@angular/core';
import {
AlfrescoAuthenticationService,
AlfrescoSettingsService,
AuthService,
SettingsService,
AlfrescoApiService,
CoreModule
} from 'ng2-alfresco-core';
@@ -39,8 +39,8 @@ describe('Test ng2-alfresco-viewer Not Supported Format View component', () => {
],
declarations: [NotSupportedFormat],
providers: [
AlfrescoSettingsService,
AlfrescoAuthenticationService,
SettingsService,
AuthService,
AlfrescoApiService
]
}).compileComponents();

View File

@@ -21,8 +21,8 @@ import { PdfViewerComponent } from './pdfViewer.component';
import { EventMock } from '../assets/event.mock';
import { DebugElement } from '@angular/core';
import {
AlfrescoAuthenticationService,
AlfrescoSettingsService,
AuthService,
SettingsService,
AlfrescoApiService,
CoreModule
} from 'ng2-alfresco-core';
@@ -41,8 +41,8 @@ describe('Test ng2-alfresco-viewer PdfViewer component', () => {
],
declarations: [PdfViewerComponent],
providers: [
AlfrescoSettingsService,
AlfrescoAuthenticationService,
SettingsService,
AuthService,
AlfrescoApiService,
RenderingQueueServices
]

View File

@@ -25,8 +25,8 @@ import { ViewerComponent } from './viewer.component';
import { EventMock } from '../assets/event.mock';
import { DebugElement } from '@angular/core';
import {
AlfrescoAuthenticationService,
AlfrescoSettingsService,
AuthService,
SettingsService,
AlfrescoApiService,
CoreModule
} from 'ng2-alfresco-core';
@@ -53,8 +53,8 @@ describe('Test ng2-alfresco-viewer ViewerComponent', () => {
ImgViewerComponent
],
providers: [
AlfrescoSettingsService,
AlfrescoAuthenticationService,
SettingsService,
AuthService,
AlfrescoApiService,
RenderingQueueServices
]