grouperSession should be easier to use if not sure if open

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • 2.2.1, 2.3.0
    • Affects Version/s: 2.2.0
    • Component/s: API
    • None

      The old way was something like this:

      boolean startedRootSession = false;
      //dont assign if creating a new one
      GrouperSession theGrouperSession = GrouperSession.staticGrouperSession(false);
      try {
      if (theGrouperSession == null)

      { startedRootSession = true; theGrouperSession = GrouperSession.startRootSession(); }

      // do work
      } finally {
      if (startedRootSession)

      { GrouperSession.stopQuietly(theGrouperSession); }

      }

            Assignee:
            Chris Hyzer (upenn.edu)
            Reporter:
            Chris Hyzer (upenn.edu)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: