Package org.kuali.rice.ksb.messaging.web
Class MessageQueueAction
java.lang.Object
org.apache.struts.action.Action
org.apache.struts.actions.BaseAction
org.apache.struts.actions.DispatchAction
org.kuali.rice.ksb.messaging.web.KSBAction
org.kuali.rice.ksb.messaging.web.MessageQueueAction
Struts action for interacting with the queue of messages.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Field Summary
Fields inherited from class org.apache.struts.actions.DispatchAction
clazz, log, methods, typesFields inherited from class org.apache.struts.actions.BaseAction
messagesFields inherited from class org.apache.struts.action.Action
servlet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.struts.action.ActionForwardclear(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) org.apache.struts.action.ActionForwarddelete(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) org.apache.struts.action.ActionForwardedit(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) org.apache.struts.action.ActionMessagesestablishRequiredState(javax.servlet.http.HttpServletRequest request, org.apache.struts.action.ActionForm form) Sets up the expected state by retrieving the selected RouteQueue by RouteQueueId, and placing it in the ExistingRouteQueue member.org.apache.struts.action.ActionForwardexecuteMessageFetcher(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) protected List<org.kuali.rice.ksb.messaging.PersistedMessageBO> findRouteQueues(javax.servlet.http.HttpServletRequest request, MessageQueueForm routeQueueForm, int maxRows) org.apache.struts.action.ActionForwardquickRequeueMessage(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) protected org.kuali.rice.ksb.messaging.PersistedMessageBOquickRequeueMessage(org.kuali.rice.ksb.messaging.PersistedMessageBO message) Performs a quick ReQueue of the indicated persisted message.org.apache.struts.action.ActionForwardreset(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) org.apache.struts.action.ActionForwardsave(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) org.apache.struts.action.ActionForwardsaveAndResubmit(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) org.apache.struts.action.ActionForwardstart(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) org.apache.struts.action.ActionForwardview(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Methods inherited from class org.kuali.rice.ksb.messaging.web.KSBAction
checkAuthorization, establishFinalState, execute, findMethodToCall, getKualiModuleService, getRoleQualification, isModuleLocked, noOp, refreshMethods inherited from class org.apache.struts.actions.DispatchAction
cancelled, dispatchMethod, getMethod, getMethodName, getParameter, unspecifiedMethods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
-
Constructor Details
-
MessageQueueAction
public MessageQueueAction()
-
-
Method Details
-
start
public org.apache.struts.action.ActionForward start(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException - Specified by:
startin classKSBAction- Throws:
IOExceptionjavax.servlet.ServletException
-
save
public org.apache.struts.action.ActionForward save(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception - Throws:
Exception
-
saveAndResubmit
public org.apache.struts.action.ActionForward saveAndResubmit(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception - Throws:
Exception
-
quickRequeueMessage
protected org.kuali.rice.ksb.messaging.PersistedMessageBO quickRequeueMessage(org.kuali.rice.ksb.messaging.PersistedMessageBO message) Performs a quick ReQueue of the indicated persisted message.The net effect of this requeue is to set the Date to now, and to reset the RetryCount to zero. The payload is not modified.
- Parameters:
message- The populated message to be requeued.
-
quickRequeueMessage
public org.apache.struts.action.ActionForward quickRequeueMessage(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception - Throws:
Exception
-
edit
public org.apache.struts.action.ActionForward edit(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException - Throws:
IOExceptionjavax.servlet.ServletException
-
view
public org.apache.struts.action.ActionForward view(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception - Throws:
Exception
-
reset
public org.apache.struts.action.ActionForward reset(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception - Throws:
Exception
-
clear
public org.apache.struts.action.ActionForward clear(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception - Throws:
Exception
-
delete
public org.apache.struts.action.ActionForward delete(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception - Throws:
Exception
-
executeMessageFetcher
public org.apache.struts.action.ActionForward executeMessageFetcher(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception - Throws:
Exception
-
establishRequiredState
public org.apache.struts.action.ActionMessages establishRequiredState(javax.servlet.http.HttpServletRequest request, org.apache.struts.action.ActionForm form) throws Exception Sets up the expected state by retrieving the selected RouteQueue by RouteQueueId, and placing it in the ExistingRouteQueue member.Called by the super's Execute method on every request.
- Specified by:
establishRequiredStatein classKSBAction- Throws:
Exception
-
findRouteQueues
protected List<org.kuali.rice.ksb.messaging.PersistedMessageBO> findRouteQueues(javax.servlet.http.HttpServletRequest request, MessageQueueForm routeQueueForm, int maxRows)
-