@RequiresSession
  public List<PrivilegeEntity> findAll() {
    TypedQuery<PrivilegeEntity> query = entityManagerProvider.get().createQuery("SELECT privilege FROM PrivilegeEntity privilege", PrivilegeEntity.class);
    return daoUtils.selectList(query);
  }
Find all privileges.

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