aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-validation-lib/openecomp-sdc-validation-sdk/src/main/java/org/openecomp/sdc/validation/type/HeatResourceValidationContext.java
blob: 606787653297a5945c2a22c4014946c052e433cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package org.openecomp.sdc.validation.type;

import org.openecomp.sdc.heat.datatypes.model.HeatOrchestrationTemplate;
import org.openecomp.sdc.validation.ValidationContext;

import java.util.List;
import java.util.Map;

/**
 * Created by TALIO on 2/23/2017.
 */
public class HeatResourceValidationContext implements ValidationContext {

  private HeatOrchestrationTemplate heatOrchestrationTemplate;
  // key - resource type, value - map with key = resource id and
  // value = map with key = pointing / pointed resource type and
  // value = pointing / pointed resource id
  private Map<String, Map<String, Map<String, List<String>>>> fileLevelResourceDependencies;
  private String envFileName;


  public HeatResourceValidationContext(
      HeatOrchestrationTemplate heatOrchestrationTemplate,
      Map<String, Map<String, Map<String, List<String>>>> fileLevelResourceDependencies,
      String envFileName) {

    this.heatOrchestrationTemplate = heatOrchestrationTemplate;
    this.fileLevelResourceDependencies = fileLevelResourceDependencies;
//    this.zipLevelResourceDependencies = zipLevelResourceDependencies;
    this.envFileName = envFileName;
  }

  public HeatOrchestrationTemplate getHeatOrchestrationTemplate() {
    return heatOrchestrationTemplate;
  }

  public Map<String, Map<String, Map<String, List<String>>>> getFileLevelResourceDependencies() {
    return fileLevelResourceDependencies;
  }

  public String getEnvFileName() {
    return envFileName;
  }
}