public void updateViewInstance(ViewInstanceEntity instanceEntity)
      throws ValidationException, SystemException {
    ViewEntity viewEntity = getDefinition(instanceEntity.getViewName());

    if (viewEntity != null) {
      instanceEntity.validate(viewEntity, Validator.ValidationContext.PRE_UPDATE);
      instanceDAO.merge(instanceEntity);

      syncViewInstance(instanceEntity);
    }
  }
Update a view instance for the view with the given view name.

@param instanceEntity the view instance entity
@throws ValidationException if the given instance fails the validation checks
@throws SystemException     if the instance can not be updated
ambari-server/src/main/java/org/apache/ambari/server/view/ViewRegistry.java