@RequiresSession
  public List<ViewEntity> findAll() {
    TypedQuery<ViewEntity> query = entityManagerProvider.get().
        createNamedQuery("allViews", ViewEntity.class);

    return query.getResultList();
  }
Find all views.

@return all views or an empty List
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/ViewDAO.java