Class SessionContextUtils

java.lang.Object
com.sap.cds.services.utils.SessionContextUtils

public class SessionContextUtils extends Object
  • Method Details

    • toSessionContext

      public static com.sap.cds.SessionContext toSessionContext(EventContext context)
      Creates a SessionContext from the given EventContext.
      Parameters:
      context - the EventContext
      Returns:
      the SessionContext
    • toSessionContext

      public static com.sap.cds.SessionContext toSessionContext(RequestContext context)
      Creates a SessionContext from the given RequestContext.
      Parameters:
      context - the RequestContext
      Returns:
      the SessionContext