Class CoreEvents

java.lang.Object
org.apache.ofbiz.webapp.event.CoreEvents

public class CoreEvents extends Object
CoreEvents - WebApp Events Related To Framework pieces
  • Constructor Details

    • CoreEvents

      public CoreEvents()
  • Method Details

    • returnSuccess

      public static String returnSuccess(HttpServletRequest request, HttpServletResponse response)
      Return success event. Used as a place holder for events.
      Parameters:
      request - HttpServletRequest
      response - HttpServletResponse
      Returns:
      Response code string
    • returnError

      public static String returnError(HttpServletRequest request, HttpServletResponse response)
      Return error event. Used as a place holder for events.
      Parameters:
      request - HttpServletRequest
      response - HttpServletResponse
      Returns:
      Response code string
    • returnNull

      public static String returnNull(HttpServletRequest request, HttpServletResponse response)
      Return null event. Used as a place holder for events.
      Parameters:
      request - HttpServletRequest
      response - HttpServletResponse
      Returns:
      Response code string
    • scheduleService

      public static String scheduleService(HttpServletRequest request, HttpServletResponse response)
      Schedule a service for a specific time or recurrence Request Parameters which are used for this service: SERVICE_NAME - Name of the service to invoke SERVICE_TIME - First time the service will occur SERVICE_FREQUENCY - The type of recurrence (SECONDLY, MINUTELY, DAILY,etc) SERVICE_INTERVAL - The interval of the frequency (every 5 minutes, etc)
      Parameters:
      request - HttpServletRequest
      response - HttpServletResponse
      Returns:
      Response code string
    • saveServiceResultsToSession

      public static String saveServiceResultsToSession(HttpServletRequest request, HttpServletResponse response)
    • getObjectFromServicePath

      public static Object getObjectFromServicePath(String servicePath, Map<String,? extends Object> serviceResult)
    • runService

      public static String runService(HttpServletRequest request, HttpServletResponse response)
      Run a service. Request Parameters which are used for this event: SERVICE_NAME - Name of the service to invoke
      Parameters:
      request - HttpServletRequest
      response - HttpServletResponse
      Returns:
      Response code string
    • streamFile

      public static String streamFile(HttpServletRequest request, HttpServletResponse response)