Class OneOffRequestContext


  • public class OneOffRequestContext
    extends Object
    Helper to create one-off request contexts.

    Each call to open() opens a new ReviewDb, so this class should only be used in a bounded try/finally block.

    The user in the request context is InternalUser or the IdentifiedUser associated to the userId passed as parameter.

    • Method Detail

      • open

        public ManualRequestContext open()
                                  throws com.google.gwtorm.server.OrmException
        Throws:
        com.google.gwtorm.server.OrmException
      • openAs

        public ManualRequestContext openAs​(Account.Id userId)
                                    throws com.google.gwtorm.server.OrmException
        Throws:
        com.google.gwtorm.server.OrmException