test coverage
[sdc.git] / openecomp-be / lib / openecomp-sdc-validation-lib / openecomp-sdc-validation-sdk / src / main / java / org / openecomp / sdc / validation / type / HeatResourceValidationContext.java
1 /*
2  * Copyright © 2018 European Support Limited
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.openecomp.sdc.validation.type;
17
18 import org.openecomp.sdc.heat.datatypes.model.HeatOrchestrationTemplate;
19 import org.openecomp.sdc.validation.ValidationContext;
20
21 import java.util.List;
22 import java.util.Map;
23 import lombok.Getter;
24 import lombok.EqualsAndHashCode;
25
26 /**
27  * Created by TALIO on 2/23/2017.
28  */
29 @Getter
30 @EqualsAndHashCode
31 public class HeatResourceValidationContext implements ValidationContext {
32
33   private HeatOrchestrationTemplate heatOrchestrationTemplate;
34   // key - resource type, value - map with key = resource id and
35   // value = map with key = pointing / pointed resource type and
36   // value = pointing / pointed resource id
37   private Map<String, Map<String, Map<String, List<String>>>> fileLevelResourceDependencies;
38   private String envFileName;
39
40
41   public HeatResourceValidationContext(
42       HeatOrchestrationTemplate heatOrchestrationTemplate,
43       Map<String, Map<String, Map<String, List<String>>>> fileLevelResourceDependencies,
44       String envFileName) {
45
46     this.heatOrchestrationTemplate = heatOrchestrationTemplate;
47     this.fileLevelResourceDependencies = fileLevelResourceDependencies;
48     this.envFileName = envFileName;
49   }
50 }