org.kuali.kfs.module.cab.document.web.struts
Class GlLineAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by org.apache.struts.actions.DispatchAction
          extended by org.kuali.rice.kns.web.struts.action.KualiAction
              extended by org.kuali.kfs.module.cab.document.web.struts.CabActionBase
                  extended by org.kuali.kfs.module.cab.document.web.struts.GlLineAction

public class GlLineAction
extends CabActionBase

Struts action class that handles GL Line Processing Screen actions


Field Summary
 
Fields inherited from class org.kuali.rice.kns.web.struts.action.KualiAction
FORM_ACTION, FORWARD_NEXT, FORWARD_TEXT_AREA_UPDATE, METHOD_TO_CALL, POST_TEXT_AREA_TO_PARENT, TEXT_AREA_FIELD_ANCHOR, TEXT_AREA_FIELD_LABEL, TEXT_AREA_FIELD_NAME, TEXT_AREA_MAX_LENGTH, TEXT_AREA_READ_ONLY
 
Fields inherited from class org.apache.struts.actions.DispatchAction
clazz, log, messages, methods, types
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
GlLineAction()
           
 
Method Summary
 org.apache.struts.action.ActionForward cancel(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Cancels the action and returns to portal main page
protected  GeneralLedgerEntry findGeneralLedgerEntry(javax.servlet.http.HttpServletRequest request)
          Finds GL entry using the key from request
protected  GeneralLedgerEntry findGeneralLedgerEntry(Long generalLedgerEntryId, boolean requireNew)
          Retrieves the CAB General Ledger Entry from DB
protected  GlAndPurApHelperService getGlAndPurApHelperService()
           
protected  List<GeneralLedgerEntry> prepareSubmitList(GlLineForm glLineForm, GeneralLedgerEntry defaultGeneralLedgerEntry)
          Helper method to prepare the submit list
 org.apache.struts.action.ActionForward process(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Action "process" from CAB GL Lookup screen is processed by this method
 org.apache.struts.action.ActionForward reload(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.ActionForward showAllTabs(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.ActionForward submitAssetGlobal(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Action "Create Assets" from CAB GL Detail Selection screen is processed by this method.
 org.apache.struts.action.ActionForward submitPaymentGlobal(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Action "Create Payments" from CAB GL Detail Selection screen is processed by this method.
 
Methods inherited from class org.kuali.kfs.module.cab.document.web.struts.CabActionBase
execute, viewDoc
 
Methods inherited from class org.kuali.rice.kns.web.struts.action.KualiAction
addMethodToCallToUncheckedList, checkAuthorization, defaultDispatch, dispatchMethod, doProcessingAfterPost, findMethodToCall, getApplicationBaseUrl, getBasePath, getBusinessObjectAuthorizationService, getEncryptionService, getHeaderTabDispatch, getHeaderTabNavigateTo, getImageContext, getKualiModuleService, getLineToDelete, getReturnLocation, getRoleQualification, getSelectedLine, getTabToToggle, headerTab, hideAllTabs, performInquiry, performLookup, performQuestionWithInput, performQuestionWithInputAgainBecauseOfErrors, performQuestionWithoutInput, performWorkgroupLookup, postTextAreaToParent, refresh, retrieveLookupParameterValue, toggleTab, updateTextArea, validateLookupInquiryFullParameter
 
Methods inherited from class org.apache.struts.actions.DispatchAction
cancelled, getMethod, getMethodName, getParameter, unspecified
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlLineAction

public GlLineAction()
Method Detail

process

public org.apache.struts.action.ActionForward process(org.apache.struts.action.ActionMapping mapping,
                                                      org.apache.struts.action.ActionForm form,
                                                      javax.servlet.http.HttpServletRequest request,
                                                      javax.servlet.http.HttpServletResponse response)
                                               throws Exception
Action "process" from CAB GL Lookup screen is processed by this method

Parameters:
mapping - ActionMapping
form - ActionForm
request - HttpServletRequest
response - HttpServletResponse
Returns:
ActionForward
Throws:
Exception

findGeneralLedgerEntry

protected GeneralLedgerEntry findGeneralLedgerEntry(javax.servlet.http.HttpServletRequest request)
Finds GL entry using the key from request

Parameters:
request - HttpServletRequest
Returns:
GeneralLedgerEntry

submitAssetGlobal

public org.apache.struts.action.ActionForward submitAssetGlobal(org.apache.struts.action.ActionMapping mapping,
                                                                org.apache.struts.action.ActionForm form,
                                                                javax.servlet.http.HttpServletRequest request,
                                                                javax.servlet.http.HttpServletResponse response)
                                                         throws Exception
Action "Create Assets" from CAB GL Detail Selection screen is processed by this method. This will initiate an asset global document and redirect the user to document edit page.

Parameters:
mapping - ActionMapping
form - ActionForm
request - HttpServletRequest
response - HttpServletResponse
Returns:
ActionForward
Throws:
Exception

prepareSubmitList

protected List<GeneralLedgerEntry> prepareSubmitList(GlLineForm glLineForm,
                                                     GeneralLedgerEntry defaultGeneralLedgerEntry)
                                              throws Exception
Helper method to prepare the submit list

Parameters:
glLineForm - ActionForm
defaultGeneralLedgerEntry - Default selected GL Entry
Returns:
List of submitted entries
Throws:
Exception

submitPaymentGlobal

public org.apache.struts.action.ActionForward submitPaymentGlobal(org.apache.struts.action.ActionMapping mapping,
                                                                  org.apache.struts.action.ActionForm form,
                                                                  javax.servlet.http.HttpServletRequest request,
                                                                  javax.servlet.http.HttpServletResponse response)
                                                           throws Exception
Action "Create Payments" from CAB GL Detail Selection screen is processed by this method. This will initiate an asset payment global document and redirect the user to document edit page.

Parameters:
mapping - ActionMapping
form - ActionForm
request - HttpServletRequest
response - HttpServletResponse
Returns:
ActionForward
Throws:
Exception

findGeneralLedgerEntry

protected GeneralLedgerEntry findGeneralLedgerEntry(Long generalLedgerEntryId,
                                                    boolean requireNew)
Retrieves the CAB General Ledger Entry from DB

Parameters:
generalLedgerEntryId - Entry Id
Returns:
GeneralLedgerEntry

cancel

public org.apache.struts.action.ActionForward cancel(org.apache.struts.action.ActionMapping mapping,
                                                     org.apache.struts.action.ActionForm form,
                                                     javax.servlet.http.HttpServletRequest request,
                                                     javax.servlet.http.HttpServletResponse response)
                                              throws Exception
Cancels the action and returns to portal main page

Parameters:
mapping - ActionMapping
form - ActionForm
request - HttpServletRequest
response - HttpServletResponse
Returns:
ActionForward
Throws:
Exception

showAllTabs

public org.apache.struts.action.ActionForward showAllTabs(org.apache.struts.action.ActionMapping mapping,
                                                          org.apache.struts.action.ActionForm form,
                                                          javax.servlet.http.HttpServletRequest request,
                                                          javax.servlet.http.HttpServletResponse response)
                                                   throws Exception
Overrides:
showAllTabs in class org.kuali.rice.kns.web.struts.action.KualiAction
Throws:
Exception
See Also:
KualiAction.showAllTabs(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

reload

public org.apache.struts.action.ActionForward reload(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

getGlAndPurApHelperService

protected GlAndPurApHelperService getGlAndPurApHelperService()


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.