public void setConfiguration(ViewConfig configuration) {
    this.configuration       = configuration;
    this.clusterConfigurable = false;

    if(configuration.getClusterConfigOptions() != null &&
       configuration.getClusterConfigOptions().equals(AMBARI_ONLY)){
      this.clusterConfigurable = true;
      return;
    }

    // if any of the parameters contain a cluster config element then the view is cluster configurable
    for (ParameterConfig parameterConfig : configuration.getParameters()) {
      String clusterConfig = parameterConfig.getClusterConfig();
      if (clusterConfig != null && !clusterConfig.isEmpty()) {
        this.clusterConfigurable = true;
        return;
      }
    }
  }
Set the view configuration.

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