2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.openecomp.sdc.vendorsoftwareproduct;
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;
33 import java.io.IOException;
34 import java.util.Collection;
35 import java.util.List;
37 public interface VendorSoftwareProductManager {
39 Version checkout(String vendorSoftwareProductId, String user);
41 Version undoCheckout(String vendorSoftwareProductId, String user);
43 Version checkin(String vendorSoftwareProductId, String user);
45 ValidationResponse submit(String vendorSoftwareProductId, String user) throws IOException;
48 List<VersionedVendorSoftwareProductInfo> listVsps(String versionFilter, String user);
50 VspDetails createVsp(VspDetails vspDetails, String user);
52 void updateVsp(VspDetails vspDetails, String user);
54 VspDetails getVsp(String vspId, Version version, String user);
56 Version callAutoHeal(String vspId, VersionInfo versionInfo,
57 VspDetails vendorSoftwareProductInfo, String user) throws Exception;
59 void deleteVsp(String vspIdToDelete, String user);
61 QuestionnaireResponse getVspQuestionnaire(String vspId, Version version, String user);
63 void updateVspQuestionnaire(String vspId, Version version, String questionnaireData, String user);
66 byte[] getOrchestrationTemplateFile(String vspId, Version version, String user);
68 PackageInfo createPackage(String vspId, Version version, String user) throws IOException;
70 List<PackageInfo> listPackages(String category, String subCategory);
72 File getTranslatedFile(String vspId, Version version, String user);
74 void heal(String vspId, Version version, String user);
76 File getInformationArtifact(String vspId, Version version, String user);
78 String fetchValidationVsp(String user);
80 Collection<ComputeEntity> getComputeByVsp(String vspId, Version version, String user);