public void setValidator(Validator validator) {
    this.validator = validator;
  }
Set the view validator.

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