How to use the @alfresco/adf-core.StorageService function in @alfresco/adf-core

To help you get started, we’ve selected a few @alfresco/adf-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Alfresco / alfresco-ng2-components / lib / process-services / src / lib / task-list / services / task-filter.service.spec.ts View on Github external
beforeEach(async(() => {
        service = new TaskFilterService(
            new AlfrescoApiServiceMock(new AppConfigService(null), new StorageService()),
            new LogService(new AppConfigService(null)));
        jasmine.Ajax.install();
    }));
github Alfresco / alfresco-ng2-components / lib / content-services / src / lib / document-list / services / document-list.service.spec.ts View on Github external
beforeEach(() => {
        const logService = new LogService(new AppConfigServiceMock(null));
        const contentService = TestBed.get(ContentService);
        alfrescoApiService = new AlfrescoApiServiceMock(new AppConfigService(null), new StorageService());
        const customActionService = new CustomResourcesService(alfrescoApiService, logService);
        service = new DocumentListService(contentService, alfrescoApiService, logService, customActionService);
        jasmine.Ajax.install();
    });
github Alfresco / alfresco-ng2-components / lib / process-services / src / lib / process-list / services / process.service.spec.ts View on Github external
beforeEach(() => {
        apiService = new AlfrescoApiServiceMock(new AppConfigService(null), new StorageService());
        service = new ProcessService(apiService);
        alfrescoApi = apiService.getInstance();
    });
github Alfresco / alfresco-ng2-components / lib / content-services / src / lib / document-list / services / folder-actions.service.spec.ts View on Github external
beforeEach(() => {
        const appConfig: AppConfigService = TestBed.get(AppConfigService);
        appConfig.config.ecmHost = 'http://localhost:9876/ecm';

        const contentService = TestBed.get(ContentService);
        const alfrescoApiService = new AlfrescoApiServiceMock(new AppConfigService(null), new StorageService());
        documentListService = new DocumentListService(contentService, alfrescoApiService, null, null);
        service = new FolderActionsService(null, documentListService, contentService,  new TranslationMock());
    });
github Alfresco / alfresco-ng2-components / lib / process-services / src / lib / process-list / services / process-filter.service.spec.ts View on Github external
beforeEach(() => {
        apiService = new AlfrescoApiServiceMock(new AppConfigService(null), new StorageService());
        service = new ProcessFilterService(apiService);
        alfrescoApi = apiService.getInstance();
    });
github Alfresco / alfresco-ng2-components / lib / process-services-cloud / src / lib / task / services / task-cloud.service.spec.ts View on Github external
beforeEach(async(() => {
        alfrescoApiMock = new AlfrescoApiServiceMock(new AppConfigService(null), new StorageService());
        identityUserService = TestBed.get(IdentityUserService);
        spyOn(identityUserService, 'getCurrentUserInfo').and.returnValue(cloudMockUser);
        service = new TaskCloudService(alfrescoApiMock,
                                           new AppConfigService(null),
                                           new LogService(new AppConfigService(null)),
                                           identityUserService);

    }));
github Alfresco / alfresco-ng2-components / lib / content-services / src / lib / document-list / services / document-actions.service.spec.ts View on Github external
beforeEach(() => {
        const alfrescoApiService = new AlfrescoApiServiceMock(new AppConfigService(null), new StorageService());
        const contentService = TestBed.get(ContentService);

        documentListService = new DocumentListService(contentService, alfrescoApiService, null, null);
        service = new DocumentActionsService(null, null, new TranslationMock(), documentListService, contentService);
    });
github Alfresco / alfresco-content-app / src / app / directives / library-membership.directive.spec.ts View on Github external
beforeEach(() => {
    TestBed.configureTestingModule({
      imports: [AppTestingModule, DirectivesModule, CoreModule.forRoot()],
      schemas: [NO_ERRORS_SCHEMA]
    });
    alfrescoApiService = new AlfrescoApiServiceMock(
      new AppConfigService(null),
      new StorageService()
    );
    peopleApi = alfrescoApiService.getInstance().core.peopleApi;
    directive = new LibraryMembershipDirective(alfrescoApiService);
  });