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.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;
32 import java.io.IOException;
33 import java.util.List;
35 public interface VendorSoftwareProductManager {
37 Version checkout(String vendorSoftwareProductId, String user);
39 Version undoCheckout(String vendorSoftwareProductId, String user);
41 Version checkin(String vendorSoftwareProductId, String user);
43 ValidationResponse submit(String vendorSoftwareProductId, String user) throws IOException;
46 List<VersionedVendorSoftwareProductInfo> listVsps(String versionFilter, String user);
48 VspDetails createVsp(VspDetails vspDetails, String user);
50 void updateVsp(VspDetails vspDetails, String user);
52 VspDetails getVsp(String vspId, Version version, String user);
54 Version callAutoHeal(String vspId, VersionInfo versionInfo,
55 VspDetails vendorSoftwareProductInfo, String user) throws Exception;
57 void deleteVsp(String vspIdToDelete, String user);
59 QuestionnaireResponse getVspQuestionnaire(String vspId, Version version, String user);
61 void updateVspQuestionnaire(String vspId, Version version, String questionnaireData, String user);
64 byte[] getOrchestrationTemplateFile(String vspId, Version version, String user);
66 PackageInfo createPackage(String vspId, Version version, String user) throws IOException;
68 List<PackageInfo> listPackages(String category, String subCategory);
70 File getTranslatedFile(String vspId, Version version, String user);
72 void heal(String vspId, Version version, String user);
74 File getInformationArtifact(String vspId, Version version, String user);
77 String fetchValidationVsp(String user);