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

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