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

    method to get all groups

    vivek swarnakar Newbie


      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();