org.kuali.kfs.module.bc.document.web.struts
Class OrganizationReportSelectionAction

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.bc.document.web.struts.BudgetExpansionAction
                  extended by org.kuali.kfs.module.bc.document.web.struts.OrganizationReportSelectionAction

public class OrganizationReportSelectionAction
extends BudgetExpansionAction

Struts Action Class for the Organization Report Selection Screen.


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
OrganizationReportSelectionAction()
           
 
Method Summary
 org.apache.struts.action.ActionForward performReport(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Generates the Budget Report and returns pdf.
 org.apache.struts.action.ActionForward selectAllObjectCodes(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Selects all object codes.
 org.apache.struts.action.ActionForward selectAllReasonCodes(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Selects all reason codes.
 org.apache.struts.action.ActionForward selectAllSubFunds(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Selects all sub-fund codes.
 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)
          Called from org select or account listing.
protected  boolean storedSelectedObjectCodes(List<BudgetConstructionObjectPick> objectCodePickList)
          Checks that at least one object code is selected and stores the selection settings.
protected  boolean storedSelectedReasonCodes(List<BudgetConstructionReasonCodePick> reasonCodePickList)
          Checks that at least one reason code is selected and stores the selection settings.
protected  boolean storedSelectedSubFunds(List<BudgetConstructionSubFundPick> subFundPickList)
          Checks that at least one sub fund is selected and stores the selection settings.
 org.apache.struts.action.ActionForward unselectAllObjectCodes(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          unselects all object codes.
 org.apache.struts.action.ActionForward unselectAllReasonCodes(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Unselects all reason codes.
 org.apache.struts.action.ActionForward unselectAllSubFunds(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Unselects all sub-fund codes.
protected  boolean validThresholdSettings(BudgetConstructionReportThresholdSettings thresholdSettings)
          When apply threshold is checked, and displays error if no percent change threshold value is set.
 
Methods inherited from class org.kuali.kfs.module.bc.document.web.struts.BudgetExpansionAction
addCallBackMessagesAsObjectInSession, cleanupAnySessionForm, close, execute, moveCallBackMessagesInPlace, refresh, removeCallBackMessagesObjectFromSession, returnToCaller
 
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, retrieveLookupParameterValue, showAllTabs, 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

OrganizationReportSelectionAction

public OrganizationReportSelectionAction()
Method Detail

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 Exception
Called from org select or account listing. Checks for needed control list build, makes call to build control list if necessary, and forwards to subfund or object code select page.

Throws:
Exception

performReport

public org.apache.struts.action.ActionForward performReport(org.apache.struts.action.ActionMapping mapping,
                                                            org.apache.struts.action.ActionForm form,
                                                            javax.servlet.http.HttpServletRequest request,
                                                            javax.servlet.http.HttpServletResponse response)
                                                     throws Exception
Generates the Budget Report and returns pdf.

Throws:
Exception

selectAllSubFunds

public org.apache.struts.action.ActionForward selectAllSubFunds(org.apache.struts.action.ActionMapping mapping,
                                                                org.apache.struts.action.ActionForm form,
                                                                javax.servlet.http.HttpServletRequest request,
                                                                javax.servlet.http.HttpServletResponse response)
                                                         throws Exception
Selects all sub-fund codes.

Throws:
Exception

selectAllObjectCodes

public org.apache.struts.action.ActionForward selectAllObjectCodes(org.apache.struts.action.ActionMapping mapping,
                                                                   org.apache.struts.action.ActionForm form,
                                                                   javax.servlet.http.HttpServletRequest request,
                                                                   javax.servlet.http.HttpServletResponse response)
                                                            throws Exception
Selects all object codes.

Throws:
Exception

selectAllReasonCodes

public org.apache.struts.action.ActionForward selectAllReasonCodes(org.apache.struts.action.ActionMapping mapping,
                                                                   org.apache.struts.action.ActionForm form,
                                                                   javax.servlet.http.HttpServletRequest request,
                                                                   javax.servlet.http.HttpServletResponse response)
                                                            throws Exception
Selects all reason codes.

Throws:
Exception

unselectAllSubFunds

public org.apache.struts.action.ActionForward unselectAllSubFunds(org.apache.struts.action.ActionMapping mapping,
                                                                  org.apache.struts.action.ActionForm form,
                                                                  javax.servlet.http.HttpServletRequest request,
                                                                  javax.servlet.http.HttpServletResponse response)
                                                           throws Exception
Unselects all sub-fund codes.

Throws:
Exception

unselectAllObjectCodes

public org.apache.struts.action.ActionForward unselectAllObjectCodes(org.apache.struts.action.ActionMapping mapping,
                                                                     org.apache.struts.action.ActionForm form,
                                                                     javax.servlet.http.HttpServletRequest request,
                                                                     javax.servlet.http.HttpServletResponse response)
                                                              throws Exception
unselects all object codes.

Throws:
Exception

unselectAllReasonCodes

public org.apache.struts.action.ActionForward unselectAllReasonCodes(org.apache.struts.action.ActionMapping mapping,
                                                                     org.apache.struts.action.ActionForm form,
                                                                     javax.servlet.http.HttpServletRequest request,
                                                                     javax.servlet.http.HttpServletResponse response)
                                                              throws Exception
Unselects all reason codes.

Throws:
Exception

storedSelectedSubFunds

protected boolean storedSelectedSubFunds(List<BudgetConstructionSubFundPick> subFundPickList)
Checks that at least one sub fund is selected and stores the selection settings. If no sub fund is selected, an error message is displayed to the user.

Parameters:
subFundPickList - - List of BudgetConstructionSubFundPick objects to check
Returns:
boolean - true if there was a selection and the list was saved, otherwise false

storedSelectedObjectCodes

protected boolean storedSelectedObjectCodes(List<BudgetConstructionObjectPick> objectCodePickList)
Checks that at least one object code is selected and stores the selection settings. If no object code is selected, an error message is displayed to the user.

Parameters:
objectCodePickList - - List of BudgetConstructionObjectPick objects to check
Returns:
boolean - true if there was a selection and the list was saved, otherwise false

storedSelectedReasonCodes

protected boolean storedSelectedReasonCodes(List<BudgetConstructionReasonCodePick> reasonCodePickList)
Checks that at least one reason code is selected and stores the selection settings. If no reason code is selected, an error message is displayed to the user.

Parameters:
reasonCodePickList - - List of BudgetConstructionReasonCodePick objects to check
Returns:
boolean - true if there was a selection and the list was saved, otherwise false

validThresholdSettings

protected boolean validThresholdSettings(BudgetConstructionReportThresholdSettings thresholdSettings)
When apply threshold is checked, and displays error if no percent change threshold value is set.

Parameters:
thresholdSettings -
Returns:


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