Merge from ECOMP's repository
[vid.git] / vid-app-common / src / main / java / org / onap / vid / services / ChangeManagementService.java
1 package org.onap.vid.services;
2
3 import com.fasterxml.jackson.databind.node.ArrayNode;
4 import org.apache.commons.lang3.tuple.Pair;
5 import org.onap.vid.changeManagement.*;
6 import org.onap.vid.mso.RestObjectWithRequestInfo;
7 import org.onap.vid.mso.rest.Request;
8 import org.springframework.http.ResponseEntity;
9 import org.springframework.web.multipart.MultipartFile;
10
11 import java.util.Collection;
12 import java.util.List;
13
14 public interface ChangeManagementService {
15     Collection<Request> getMSOChangeManagements();
16         ResponseEntity<String> doChangeManagement(ChangeManagementRequest request, String vnfName);
17     ArrayNode getSchedulerChangeManagements();
18     RestObjectWithRequestInfo<ArrayNode> getSchedulerChangeManagementsWithRequestInfo();
19
20     /**
21      * Deleting a scheduled flow.
22      * @param scheduleId - the ID of the schedule.
23      * @return - a pair, left - String representation of the response, right - response code.
24      */
25     Pair<String, Integer> deleteSchedule(String scheduleId);
26     VnfWorkflowRelationResponse addVnfWorkflowRelation(VnfWorkflowRelationRequest vnfWorkflowRelationRequest);
27     List<String> getWorkflowsForVnf(GetVnfWorkflowRelationRequest getVnfWorkflowRelationRequest);
28     VnfWorkflowRelationResponse deleteVnfWorkflowRelation(VnfWorkflowRelationRequest vnfWorkflowRelationRequest);
29     VnfWorkflowRelationAllResponse getAllVnfWorkflowRelations();
30     String uploadConfigUpdateFile(MultipartFile file);
31
32 }