2 * Copyright © 2018 European Support Limited
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 package org.openecomp.sdc.validation.type;
18 import org.openecomp.sdc.heat.datatypes.model.HeatOrchestrationTemplate;
19 import org.openecomp.sdc.validation.ValidationContext;
21 import java.util.List;
24 import lombok.EqualsAndHashCode;
27 * Created by TALIO on 2/23/2017.
31 public class HeatResourceValidationContext implements ValidationContext {
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;
41 public HeatResourceValidationContext(
42 HeatOrchestrationTemplate heatOrchestrationTemplate,
43 Map<String, Map<String, Map<String, List<String>>>> fileLevelResourceDependencies,
46 this.heatOrchestrationTemplate = heatOrchestrationTemplate;
47 this.fileLevelResourceDependencies = fileLevelResourceDependencies;
48 this.envFileName = envFileName;