0 Replies Latest reply on Jan 17, 2006 4:03 AM by vswarnakar

    method to get all groups

    vswarnakar

      Hi

      In the class org.jbpm.identity.hibernate.IdentitySession there is a method getGroupByName(String groupName).

      In case one does not know the groupName a priori, would it make sense to also add to this same class another method that returns a list of all groups, similar to getUsers()?

      public List getGroups()
      {
      Query query = session.createQuery(
      "select g " +
      "from org.jbpm.identity.Group as g " +
      );
      return query.list();
      }