[SDC] Onboarding 1710 rebase.
[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.ComputeEntity;
24 import org.openecomp.sdc.vendorsoftwareproduct.dao.type.PackageInfo;
25 import org.openecomp.sdc.vendorsoftwareproduct.dao.type.VspDetails;
26 import org.openecomp.sdc.vendorsoftwareproduct.types.QuestionnaireResponse;
27 import org.openecomp.sdc.vendorsoftwareproduct.types.ValidationResponse;
28 import org.openecomp.sdc.vendorsoftwareproduct.types.VersionedVendorSoftwareProductInfo;
29 import org.openecomp.sdc.versioning.dao.types.Version;
30 import org.openecomp.sdc.versioning.types.VersionInfo;
31
32 import java.io.File;
33 import java.io.IOException;
34 import java.util.Collection;
35 import java.util.List;
36
37 public interface  VendorSoftwareProductManager {
38
39   Version checkout(String vendorSoftwareProductId, String user);
40
41   Version undoCheckout(String vendorSoftwareProductId, String user);
42
43   Version checkin(String vendorSoftwareProductId, String user);
44
45   ValidationResponse submit(String vendorSoftwareProductId, String user) throws IOException;
46
47
48   List<VersionedVendorSoftwareProductInfo> listVsps(String versionFilter, String user);
49
50   VspDetails createVsp(VspDetails vspDetails, String user);
51
52   void updateVsp(VspDetails vspDetails, String user);
53
54   VspDetails getVsp(String vspId, Version version, String user);
55
56   Version callAutoHeal(String vspId, VersionInfo versionInfo,
57                        VspDetails vendorSoftwareProductInfo, String user) throws Exception;
58
59   void deleteVsp(String vspIdToDelete, String user);
60
61   QuestionnaireResponse getVspQuestionnaire(String vspId, Version version, String user);
62
63   void updateVspQuestionnaire(String vspId, Version version, String questionnaireData, String user);
64
65
66   byte[] getOrchestrationTemplateFile(String vspId, Version version, String user);
67
68   PackageInfo createPackage(String vspId, Version version, String user) throws IOException;
69
70   List<PackageInfo> listPackages(String category, String subCategory);
71
72   File getTranslatedFile(String vspId, Version version, String user);
73
74   void heal(String vspId, Version version, String user);
75
76   File getInformationArtifact(String vspId, Version version, String user);
77
78   String fetchValidationVsp(String user);
79
80   Collection<ComputeEntity> getComputeByVsp(String vspId, Version version, String user);
81 }