diff options
author | vasraz <vasyl.razinkov@est.tech> | 2021-08-26 12:17:08 +0100 |
---|---|---|
committer | Vasyl Razinkov <vasyl.razinkov@est.tech> | 2021-08-26 20:22:26 +0000 |
commit | 4701612ba26c4b8c7c7e9fbfa38f582a4b74669f (patch) | |
tree | 8516c4cffec989c90bf31601454625a47d270bdb /catalog-dao/src/main/java | |
parent | 69cb5577bc59f8b25b0b267f5ea5e37c6aa20dbd (diff) |
Add types to imports
Change-Id: Ifa1dea17841d8667044aff4e7a9a17b2a75b78e4
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Issue-ID: SDC-3684
Diffstat (limited to 'catalog-dao/src/main/java')
-rw-r--r-- | catalog-dao/src/main/java/org/openecomp/sdc/be/dao/cassandra/ToscaModelImportCassandraDao.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/cassandra/ToscaModelImportCassandraDao.java b/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/cassandra/ToscaModelImportCassandraDao.java index a8b1ec635d..5d1501c0b5 100644 --- a/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/cassandra/ToscaModelImportCassandraDao.java +++ b/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/cassandra/ToscaModelImportCassandraDao.java @@ -99,6 +99,12 @@ public class ToscaModelImportCassandraDao extends CassandraDao { ); } + public void importOnly(final String modelId, final List<ToscaImportByModel> toscaImportByModelList) { + toscaImportByModelList.stream() + .filter(toscaImportByModel -> modelId.equals(toscaImportByModel.getModelId())) + .forEach(toscaImportByModelMapper::save); + } + public List<ToscaImportByModel> findAllByModel(final String modelId) { return toscaImportByModelAccessor.findAllByModel(modelId).all(); } |