5eaf6351dde1a782b84dfc81bcfa88a70ad9d148
[sdc/sdc-workflow-designer.git] / sdc-workflow-designer-ui / src / app / services / data-access / catalog.service.ts
1 /**\r
2  * Copyright (c) 2017 ZTE Corporation.\r
3  * All rights reserved. This program and the accompanying materials\r
4  * are made available under the terms of the Eclipse Public License v1.0\r
5  * and the Apache License 2.0 which both accompany this distribution,\r
6  * and are available at http://www.eclipse.org/legal/epl-v10.html\r
7  * and http://www.apache.org/licenses/LICENSE-2.0\r
8  *\r
9  * Contributors:\r
10  *     ZTE - initial API and implementation and/or initial documentation\r
11  */\r
12 \r
13 import { Injectable } from '@angular/core';\r
14 import { WorkflowNode } from "../../model/workflow-node";\r
15 import { Observable } from "rxjs/Observable";\r
16 import { HttpService } from "../../util/http.service";\r
17 import { Workflow } from "../../model/workflow";\r
18 \r
19 /**\r
20  * CatalogService\r
21  * provides data access from backend\r
22  */\r
23 @Injectable()\r
24 export abstract class CatalogService {\r
25 \r
26     constructor(protected httpService: HttpService) {}\r
27 \r
28     public abstract loadWorkflow(workflowId: string): Observable<Workflow>;\r
29 \r
30     public abstract saveWorkflow(workflow: Workflow): Observable<boolean>;\r
31 }\r