private void setViewStatus(ViewEntity viewDefinition, ViewEntity.ViewStatus status, String statusDetail) {
    viewDefinition.setStatus(status);
    viewDefinition.setStatusDetail(statusDetail);
  }
Check the configured view max and min Ambari versions for the given view entity
against the given Ambari server version.

@param view          the view
@param serverVersion the server version
@return true if the given server version >= min version && <= max version for the given view
ambari-server/src/main/java/org/apache/ambari/server/view/ViewRegistry.java