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.dao;
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.ComputeEntity;
26 import org.openecomp.sdc.vendorsoftwareproduct.dao.type.DeploymentFlavorEntity;
27 import org.openecomp.sdc.vendorsoftwareproduct.dao.type.ImageEntity;
28 import org.openecomp.sdc.vendorsoftwareproduct.dao.type.NicEntity;
29 import org.openecomp.sdc.vendorsoftwareproduct.dao.type.ProcessEntity;
30 import org.openecomp.sdc.vendorsoftwareproduct.dao.type.VspDetails;
31 import org.openecomp.sdc.versioning.dao.VersionableDao;
32 import org.openecomp.sdc.versioning.dao.types.Version;
34 import java.util.Collection;
35 import java.util.List;
38 public interface VendorSoftwareProductDao extends VersionableDao {
40 //VspDetails getVendorSoftwareProductInfo(VspDetails vspDetails);
42 Collection<ComponentEntity> listComponents(String vspId, Version version);
44 Collection<ComponentEntity> listComponentsQuestionnaire(String vspId, Version version);
46 Collection<ComponentEntity> listComponentsCompositionAndQuestionnaire(String vspId,
50 Collection<ProcessEntity> listProcesses(String vspId, Version version, String componentId);
52 void deleteProcesses(String vspId, Version version, String componentId);
54 ProcessEntity getProcess(String vspId, Version version, String componentId, String processId);
56 void createProcess(ProcessEntity processEntity);
58 void updateProcess(ProcessEntity processEntity);
60 void deleteProcess(String vspId, Version version, String componentId, String processId);
63 void uploadProcessArtifact(String vspId, Version version, String componentId, String processId,
64 byte[] artifact, String artifactFileName);
66 ProcessEntity getProcessArtifact(String vspId, Version version, String componentId,
69 void deleteProcessArtifact(String vspId, Version version, String componentId, String processId);
72 Collection<NicEntity> listNicsByVsp(String vspId, Version version);
75 void deleteUploadData(String vspId, Version version);
77 //void updateVspLatestModificationTime(String vspId, Version version);
78 void createComponentDependencyModel(
79 List<ComponentDependencyModelEntity> componentDependencyModelEntity, String vspId,
82 Collection<ComponentDependencyModelEntity> listComponentDependencies(String vspId,Version
85 void createDeploymentFlavor(DeploymentFlavorEntity deploymentFlavor);
87 Collection<DeploymentFlavorEntity> listDeploymentFlavors(String vspId, Version version);
89 DeploymentFlavorEntity getDeploymentFlavor(String vspId, Version version, String
91 void deleteDeploymentFlavor(String vspId, Version version, String deploymentFlavorId);
94 void createImage(ImageEntity imageEntity);
96 Collection<ImageEntity> listImages(String vspId, Version version, String componentId);
98 ImageEntity getImage(String vspId, Version version, String componentId, String imageId);
100 Collection<ImageEntity> listImagesByVsp(String vspId, Version version);
102 void createCompute(ComputeEntity computeEntity);
104 Collection<ComputeEntity> listComputes(String vspId, Version version, String componentId);
106 Collection<ComputeEntity> listComputesByVsp(String vspId, Version version);
108 ComputeEntity getCompute(String vspId, Version version, String componentId, String
111 void deleteImage(String vspId, Version version, String componentId, String imageId);
113 void updateDeploymentFlavor(DeploymentFlavorEntity deploymentFlavorEntity);
115 void updateImage(ImageEntity imageEntity);
117 void updateImageQuestionnaire(String vspId, Version activeVersion, String componentId,
118 String imageId, String questionnaireData);
120 void updateComputeQuestionnaire(String vspId, Version activeVersion, String componentId,
121 String computeId, String questionnaireData);
123 void updateCompute(ComputeEntity compute);
125 void deleteCompute(String vspId, Version version, String componentId, String computeFlavorId);