Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
    grouperSession = GrouperSession.start(subject);

    ... do things as non root ...

    GrouperSession.internal_callbackRootGrouperSession(new GrouperSessionHandler() {
      
      @Override
      public Object callback(GrouperSession grouperSession) throws GrouperSessionException {
        
        ... do things as root ...        

        return null;
      }
    });

    ... do things as original non root user

    GrouperSession.stopQuietly(grouperSession);

Options

Java docs:  https://software.internet2.edu/grouper/doc/2.5.x/grouper/apidocs/edu/internet2/middleware/grouper/GrouperSession.html