1 package org.openecomp.sdc.asdctool.impl.validator.executers;
3 import java.util.HashMap;
7 import org.openecomp.sdc.be.dao.jsongraph.types.VertexTypeEnum;
8 import org.openecomp.sdc.be.datatypes.enums.ComponentTypeEnum;
9 import org.openecomp.sdc.be.datatypes.enums.GraphPropertyEnum;
10 import org.openecomp.sdc.be.model.Component;
11 import org.openecomp.sdc.be.model.LifecycleStateEnum;
13 public class NodeToscaArtifactsValidatorExecuter extends ArtifactValidatorExecuter implements IArtifactValidatorExecuter{
14 protected String name;
16 public NodeToscaArtifactsValidatorExecuter() {
17 setName("RESOURCE_TOSCA_ARTIFACTS");
20 public boolean executeValidations() {
22 Map<GraphPropertyEnum, Object> hasProps = new HashMap<>();
23 hasProps.put(GraphPropertyEnum.COMPONENT_TYPE, ComponentTypeEnum.RESOURCE.name());
24 hasProps.put(GraphPropertyEnum.STATE, LifecycleStateEnum.CERTIFIED.name());
26 Map<String, List<Component>> vertices = getVerticesToValidate(VertexTypeEnum.NODE_TYPE, hasProps);
27 return validate(vertices);
32 public String getName() {
37 public void setName(String name) {