Package org.apache.ofbiz.webapp.event
Class CoreEvents
java.lang.Object
org.apache.ofbiz.webapp.event.CoreEvents
CoreEvents - WebApp Events Related To Framework pieces
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Object
getObjectFromServicePath
(String servicePath, Map<String, ? extends Object> serviceResult) static String
returnError
(HttpServletRequest request, HttpServletResponse response) Return error event.static String
returnNull
(HttpServletRequest request, HttpServletResponse response) Return null event.static String
returnSuccess
(HttpServletRequest request, HttpServletResponse response) Return success event.static String
runService
(HttpServletRequest request, HttpServletResponse response) Run a service.static String
saveServiceResultsToSession
(HttpServletRequest request, HttpServletResponse response) 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)static String
streamFile
(HttpServletRequest request, HttpServletResponse response)
-
Constructor Details
-
CoreEvents
public CoreEvents()
-
-
Method Details
-
returnSuccess
Return success event. Used as a place holder for events.- Parameters:
request
- HttpServletRequestresponse
- HttpServletResponse- Returns:
- Response code string
-
returnError
Return error event. Used as a place holder for events.- Parameters:
request
- HttpServletRequestresponse
- HttpServletResponse- Returns:
- Response code string
-
returnNull
Return null event. Used as a place holder for events.- Parameters:
request
- HttpServletRequestresponse
- HttpServletResponse- Returns:
- Response code string
-
scheduleService
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
- HttpServletRequestresponse
- HttpServletResponse- Returns:
- Response code string
-
saveServiceResultsToSession
public static String saveServiceResultsToSession(HttpServletRequest request, HttpServletResponse response) -
getObjectFromServicePath
-
runService
Run a service. Request Parameters which are used for this event: SERVICE_NAME - Name of the service to invoke- Parameters:
request
- HttpServletRequestresponse
- HttpServletResponse- Returns:
- Response code string
-
streamFile
-