85262db20882caddcf660e468b9a8678d1d51669
[sdc.git] / openecomp-be / lib / openecomp-sdc-vendor-software-product-lib / openecomp-sdc-vendor-software-product-api / src / main / java / org / openecomp / sdc / vendorsoftwareproduct / dao / VendorSoftwareProductDao.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.dao;
22
23 import org.openecomp.sdc.vendorsoftwareproduct.dao.type.ComponentDependencyModelEntity;
24 import org.openecomp.sdc.vendorsoftwareproduct.dao.type.ComponentEntity;
25 import org.openecomp.sdc.vendorsoftwareproduct.dao.type.NicEntity;
26 import org.openecomp.sdc.vendorsoftwareproduct.dao.type.ProcessEntity;
27 import org.openecomp.sdc.versioning.dao.VersionableDao;
28 import org.openecomp.sdc.versioning.dao.types.Version;
29
30 import java.util.Collection;
31 import java.util.List;
32
33
34 public interface VendorSoftwareProductDao extends VersionableDao {
35
36
37   Collection<ComponentEntity> listComponents(String vspId, Version version);
38
39   Collection<ComponentEntity> listComponentsQuestionnaire(String vspId, Version version);
40
41   Collection<ComponentEntity> listComponentsCompositionAndQuestionnaire(String vspId,
42                                                                         Version version);
43
44
45   Collection<ProcessEntity> listProcesses(String vspId, Version version, String componentId);
46
47   void deleteProcesses(String vspId, Version version, String componentId);
48
49   ProcessEntity getProcess(String vspId, Version version, String componentId, String processId);
50
51   void createProcess(ProcessEntity processEntity);
52
53   void updateProcess(ProcessEntity processEntity);
54
55   void deleteProcess(String vspId, Version version, String componentId, String processId);
56
57
58   void uploadProcessArtifact(String vspId, Version version, String componentId, String processId,
59                              byte[] artifact, String artifactFileName);
60
61   ProcessEntity getProcessArtifact(String vspId, Version version, String componentId,
62                                    String processId);
63
64   void deleteProcessArtifact(String vspId, Version version, String componentId, String processId);
65
66
67   Collection<NicEntity> listNicsByVsp(String vspId, Version version);
68
69
70   void deleteUploadData(String vspId, Version version);
71
72   //void updateVspLatestModificationTime(String vspId, Version version);
73   void createComponentDependencyModel(
74       List<ComponentDependencyModelEntity> componentDependencyModelEntity, String vspId,
75       Version version);
76
77   Collection<ComponentDependencyModelEntity> listComponentDependencies(String vspId,Version
78       version);
79
80 }