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.datatypes.error.ErrorMessage;
24 import org.openecomp.sdc.vendorsoftwareproduct.dao.type.ComputeEntity;
25 import org.openecomp.sdc.vendorsoftwareproduct.dao.type.OrchestrationTemplateEntity;
26 import org.openecomp.sdc.vendorsoftwareproduct.dao.type.PackageInfo;
27 import org.openecomp.sdc.vendorsoftwareproduct.dao.type.VspDetails;
28 import org.openecomp.sdc.vendorsoftwareproduct.types.QuestionnaireResponse;
29 import org.openecomp.sdc.vendorsoftwareproduct.types.ValidationResponse;
30 import org.openecomp.sdc.versioning.dao.types.Version;
33 import java.io.IOException;
34 import java.util.Collection;
35 import java.util.List;
38 public interface VendorSoftwareProductManager {
40 VspDetails createVsp(VspDetails vspDetails);
42 void updateVsp(VspDetails vspDetails);
44 VspDetails getVsp(String vspId, Version version);
46 void deleteVsp(String vspIdToDelete);
48 ValidationResponse validate(String vspId, Version version) throws IOException;
50 Map<String, List<ErrorMessage>> compile(String vspId, Version version);
53 QuestionnaireResponse getVspQuestionnaire(String vspId, Version version);
55 void updateVspQuestionnaire(String vspId, Version version, String questionnaireData);
58 byte[] getOrchestrationTemplateFile(String vspId, Version version);
60 OrchestrationTemplateEntity getOrchestrationTemplateInfo(String vspId, Version version);
63 PackageInfo createPackage(String vspId, Version version) throws IOException;
65 List<PackageInfo> listPackages(String category, String subCategory);
68 File getTranslatedFile(String vspId, Version version);
70 File getInformationArtifact(String vspId, Version version);
73 Collection<ComputeEntity> getComputeByVsp(String vspId, Version version);