public void addResourceDefinition(ViewSubResourceDefinition definition) {
    resourceDefinitions.put(definition.getType(), definition);
  }
Add a resource definition.

@param definition  the resource definition
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewEntity.java