7e9a002ad12ab095ef2aea9de97c203c26aab19f
[sdc.git] / openecomp-be / backend / openecomp-sdc-vendor-software-product-manager / src / main / java / org / openecomp / sdc / vendorsoftwareproduct / VendorSoftwareProductManager.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.openecomp.sdc.vendorsoftwareproduct;
22
23 import org.openecomp.sdc.vendorsoftwareproduct.dao.type.PackageInfo;
24 import org.openecomp.sdc.vendorsoftwareproduct.dao.type.VspDetails;
25 import org.openecomp.sdc.vendorsoftwareproduct.types.QuestionnaireResponse;
26 import org.openecomp.sdc.vendorsoftwareproduct.types.ValidationResponse;
27 import org.openecomp.sdc.vendorsoftwareproduct.types.VersionedVendorSoftwareProductInfo;
28 import org.openecomp.sdc.versioning.dao.types.Version;
29 import org.openecomp.sdc.versioning.types.VersionInfo;
30
31 import java.io.File;
32 import java.io.IOException;
33 import java.util.List;
34
35 public interface  VendorSoftwareProductManager {
36
37   Version checkout(String vendorSoftwareProductId, String user);
38
39   Version undoCheckout(String vendorSoftwareProductId, String user);
40
41   Version checkin(String vendorSoftwareProductId, String user);
42
43   ValidationResponse submit(String vendorSoftwareProductId, String user) throws IOException;
44
45
46   List<VersionedVendorSoftwareProductInfo> listVsps(String versionFilter, String user);
47
48   VspDetails createVsp(VspDetails vspDetails, String user);
49
50   void updateVsp(VspDetails vspDetails, String user);
51
52   VspDetails getVsp(String vspId, Version version, String user);
53
54   Version callAutoHeal(String vspId, VersionInfo versionInfo,
55                        VspDetails vendorSoftwareProductInfo, String user) throws Exception;
56
57   void deleteVsp(String vspIdToDelete, String user);
58
59   QuestionnaireResponse getVspQuestionnaire(String vspId, Version version, String user);
60
61   void updateVspQuestionnaire(String vspId, Version version, String questionnaireData, String user);
62
63
64   byte[] getOrchestrationTemplateFile(String vspId, Version version, String user);
65
66   PackageInfo createPackage(String vspId, Version version, String user) throws IOException;
67
68   List<PackageInfo> listPackages(String category, String subCategory);
69
70   File getTranslatedFile(String vspId, Version version, String user);
71
72   void heal(String vspId, Version version, String user);
73
74   File getInformationArtifact(String vspId, Version version, String user);
75
76
77   String fetchValidationVsp(String user);
78 }