a553b90e6110da3c9e4b205e13cfc30ffd70be90
[usecase-ui/intent-analysis.git] /
1 /*
2  * Copyright (C) 2022 CMCC, Inc. and others. All rights reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package org.onap.usecaseui.intentanalysis.service.impl;
17
18 import org.onap.usecaseui.intentanalysis.bean.enums.ConditionParentType;
19 import org.onap.usecaseui.intentanalysis.bean.models.Condition;
20 import org.onap.usecaseui.intentanalysis.mapper.ConditionMapper;
21 import org.onap.usecaseui.intentanalysis.service.ConditionService;
22 import org.slf4j.Logger;
23 import org.slf4j.LoggerFactory;
24 import org.springframework.beans.factory.annotation.Autowired;
25 import org.springframework.stereotype.Service;
26
27 import java.util.List;
28
29
30 @Service
31 public class ConditionServiceImpl implements ConditionService {
32
33     private static Logger LOGGER = LoggerFactory.getLogger(ContextServiceImpl.class);
34
35     @Autowired
36     private ConditionMapper conditionMapper;
37
38     @Autowired
39     private ConditionService conditionService;
40
41     @Override
42     public void createConditionList(List<Condition> conditionList, ConditionParentType conditionParentType, String parentId) {
43         conditionMapper.insertConditionList(conditionList);
44         conditionMapper.insertConditionParentList(conditionList,conditionParentType,parentId);
45     }
46
47     @Override
48     public void insertCondition(Condition condition, String parentId) {
49
50     }
51
52     @Override
53     public void deleteConditionListByParentId(String parentId) {
54
55     }
56
57     @Override
58     public void deleteConditionById(String conditionId) {
59
60     }
61
62     @Override
63     public void updateConditionListByParentId(List<Condition> conditionList, String parentId) {
64
65     }
66
67     @Override
68     public List<Condition> getConditionListByParentId(String parentId) {
69         return conditionMapper.selectConditionByParentId(parentId);
70     }
71 }