Add collaboration feature
[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.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;
31
32 import java.io.File;
33 import java.io.IOException;
34 import java.util.Collection;
35 import java.util.List;
36 import java.util.Map;
37
38 public interface VendorSoftwareProductManager {
39
40   VspDetails createVsp(VspDetails vspDetails);
41
42   void updateVsp(VspDetails vspDetails);
43
44   VspDetails getVsp(String vspId, Version version);
45
46   void deleteVsp(String vspIdToDelete);
47
48   ValidationResponse validate(String vspId, Version version) throws IOException;
49
50   Map<String, List<ErrorMessage>> compile(String vspId, Version version);
51
52
53   QuestionnaireResponse getVspQuestionnaire(String vspId, Version version);
54
55   void updateVspQuestionnaire(String vspId, Version version, String questionnaireData);
56
57
58   byte[] getOrchestrationTemplateFile(String vspId, Version version);
59
60   OrchestrationTemplateEntity getOrchestrationTemplateInfo(String vspId, Version version);
61
62
63   PackageInfo createPackage(String vspId, Version version) throws IOException;
64
65   List<PackageInfo> listPackages(String category, String subCategory);
66
67
68   File getTranslatedFile(String vspId, Version version);
69
70   File getInformationArtifact(String vspId, Version version);
71
72
73   Collection<ComputeEntity> getComputeByVsp(String vspId, Version version);
74 }