code: @SuppressWarnings("unchecked")
      public List<Permission> getPermissions() {
          final Query query = pm.newQuery(Permission.class);
          query.setOrdering("name asc");
          return (List<Permission>) query.execute();
      }
docs: Returns a list of all Permissions defined in the system.
  @return a List of Permission objects
  @since 1.1.0