|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts.action.ActionForm
org.kuali.rice.kns.web.struts.pojo.PojoFormBase
org.kuali.rice.kns.web.struts.form.KualiForm
org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase
org.kuali.rice.kns.web.struts.form.KualiTransactionalDocumentFormBase
org.kuali.kfs.sys.document.web.struts.FinancialSystemTransactionalDocumentFormBase
org.kuali.kfs.sys.web.struts.KualiAccountingDocumentFormBase
public class KualiAccountingDocumentFormBase
This class is the base action form for all financial documents.
Field Summary | |
---|---|
protected Map |
editableAccounts
|
protected Map |
forcedLookupOptionalFields
|
protected boolean |
hideDetails
|
protected static org.apache.log4j.Logger |
LOG
|
protected SourceAccountingLine |
newSourceLine
|
protected TargetAccountingLine |
newTargetLine
|
protected org.apache.struts.upload.FormFile |
sourceFile
|
protected org.apache.struts.upload.FormFile |
targetFile
|
Fields inherited from class org.kuali.rice.kns.web.struts.form.KualiTransactionalDocumentFormBase |
---|
forcedReadOnlyFields |
Fields inherited from class org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase |
---|
adHocActionRequestCodes, attachmentFile, documentActions, editingMode, suppressAllButtons |
Fields inherited from class org.kuali.rice.kns.web.struts.form.KualiForm |
---|
extraButtons |
Fields inherited from class org.kuali.rice.kns.web.struts.pojo.PojoFormBase |
---|
requiredNonEditableProperties |
Fields inherited from class org.apache.struts.action.ActionForm |
---|
multipartRequestHandler, servlet |
Constructor Summary | |
---|---|
KualiAccountingDocumentFormBase()
This constructor sets up empty instances for the dependent objects... |
Method Summary | |
---|---|
protected SourceAccountingLine |
createNewSourceAccountingLine(AccountingDocument financialDocument)
|
protected TargetAccountingLine |
createNewTargetAccountingLine(AccountingDocument financialDocument)
|
protected void |
customInitMaxUploadSizes()
Adds the accounting line file size to the list of max file sizes. |
String |
getAccountingLineImportInstructionsUrl()
|
String |
getCurrencyFormattedSourceTotal()
Retrieves the source accounting lines total in a currency format with commas. |
String |
getCurrencyFormattedTargetTotal()
Retrieves the source accounting lines total in a currency format with commas. |
Map |
getEditableAccounts()
|
protected List<String> |
getExcludedmethodToCall()
get the names of the methods to call that can be excluded from the "be used" check. |
AccountingDocument |
getFinancialDocument()
This method retrieves an instance of the form. |
Map |
getForcedLookupOptionalFields()
A of names of optional accounting line fields that require a quickfinder. |
boolean |
getHideDetails()
|
SourceAccountingLine |
getNewSourceLine()
|
TargetAccountingLine |
getNewTargetLine()
|
org.apache.struts.upload.FormFile |
getSourceFile()
|
org.apache.struts.upload.FormFile |
getTargetFile()
|
protected List<AccountingLine> |
harvestAccountingLines(List lines)
This method takes a generic list, hopefully with some AccountingLine objects in it, and returns a list of AccountingLine objects, because Java generics are just so wonderful. |
boolean |
isHideDetails()
|
void |
populate(javax.servlet.http.HttpServletRequest request)
Overrides the parent to call super.populate and then to call the accounting lines populate method that is specific to loading the two select lists on the page. |
protected void |
populateAccountingLine(AccountingLine line,
String accountingLinePropertyName,
Map parameterMap)
Populates the dependent fields of objects contained within the given accountingLine |
protected void |
populateAccountingLines(Map parameterMap)
This method iterates over all of the source lines and all of the target lines in a transactional document, and calls prepareAccountingLineForValidationAndPersistence on each one. |
protected void |
populateAccountingLinesForResponse(String methodToCall,
Map parameterMap)
Populates the accounting lines which need to be updated to successfully complete a response to the request |
void |
populateSourceAccountingLine(SourceAccountingLine sourceLine,
String accountingLinePropertyName,
Map parameterMap)
Populates a source accounting line bo using values from the struts form. |
void |
populateTargetAccountingLine(TargetAccountingLine targetLine,
String accountingLinePropertyName,
Map parameterMap)
Populates a target accounting line bo using values from the struts form. |
protected void |
repopulateOverrides(AccountingLine line,
String accountingLinePropertyName,
Map parameterMap)
This repopulates the override values from the request |
void |
setEditableAccounts(Map editableAccounts)
|
void |
setForcedLookupOptionalFields(Map fieldMap)
A of names of optional accounting line fields that require a quickfinder. |
void |
setHideDetails(boolean hideDetails)
|
void |
setNewSourceLine(SourceAccountingLine newIncomeLine)
|
void |
setNewTargetLine(TargetAccountingLine newExpenseLine)
|
void |
setSourceFile(org.apache.struts.upload.FormFile sourceFile)
|
void |
setTargetFile(org.apache.struts.upload.FormFile targetFile)
|
boolean |
shouldMethodToCallParameterBeUsed(String methodToCallParameterName,
String methodToCallParameterValue,
javax.servlet.http.HttpServletRequest request)
|
Methods inherited from class org.kuali.kfs.sys.document.web.struts.FinancialSystemTransactionalDocumentFormBase |
---|
extendDocInfoToThreeColumns, generateErrorCorrectionButton, getExtraButtons, populateHeaderFields |
Methods inherited from class org.kuali.rice.kns.web.struts.form.KualiTransactionalDocumentFormBase |
---|
discoverDocumentTypeName, formatReversalDate, getForcedReadOnlyFields, getTransactionalDocument, instantiateTransactionalDocumentByDocumentTypeName, populateEmptyMultiSelect, populateFalseCheckboxes, populationSpecialEmptyFields, setForcedReadOnlyFields |
Methods inherited from class org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase |
---|
addRequiredNonEditableProperties, buildHtmlLink, getAdditionalScriptFile, getAdditionalScriptFiles, getAdHocActionRequestCodes, getAdHocRoutePerson, getAdHocRoutePersons, getAdHocRouteWorkgroup, getAdHocRouteWorkgroups, getAnnotation, getAttachmentFile, getBoNotes, getCommand, getDefaultDocumentTypeName, getDocId, getDocNum, getDocTypeName, getDocument, getDocumentActions, getDocumentHandlerUrl, getEditingMode, getErrorMapFromPreviousRequest, getFormKey, getInitiator, getInitiatorNetworkId, getMessageMapFromPreviousRequest, getNewAdHocRoutePerson, getNewAdHocRouteWorkgroup, getNewNote, getPersonInquiryUrlLink, getStandardHeaderFields, getWorkflowDocument, hasDocumentId, initializeHeaderNavigationTabs, instantiateDocument, isDocumentEnRoute, isFormDocumentInitialized, isHasWorkflowDocument, isReturnToActionList, isSuppressAllButtons, isUserDocumentInitiator, reset, setAdditionalScriptFile, setAdditionalScriptFiles, setAdHocActionRequestCodes, setAdHocRoutePersons, setAdHocRouteWorkgroups, setAnnotation, setAttachmentFile, setBoNotes, setCommand, setDerivedValuesOnForm, setDocId, setDocNum, setDocTypeName, setDocument, setDocumentActions, setEditingMode, setErrorMapFromPreviousRequest, setFormKey, setMessageMapFromPreviousRequest, setNewAdHocRoutePerson, setNewAdHocRouteWorkgroup, setNewNote, setReturnToActionList, setSuppressAllButtons, shouldPropertyBePopulatedInForm, validate |
Methods inherited from class org.kuali.rice.kns.web.struts.form.KualiForm |
---|
clearEditablePropertyInformation, getActionFormUtilMap, getAnchor, getBackLocation, getCurrentTabIndex, getDisplayedErrors, getDisplayedInfo, getDisplayedWarnings, getDocInfo, getExtraButton, getFieldNameToFocusOnAfterSubmit, getHeaderNavigationTabs, getMethodToCall, getNavigationCss, getNextArbitrarilyHighIndex, getNumColumns, getRefreshCaller, getTabState, getTabStates, incrementTabIndex, isFieldLevelHelpEnabled, populateBackLocation, populateFieldLevelHelpEnabled, reset, retrieveFormValueForLookupInquiryParameters, setActionFormUtilMap, setAnchor, setBackLocation, setCurrentTabIndex, setDocInfo, setExtraButton, setExtraButtons, setFieldLevelHelpEnabled, setFieldNameToFocusOnAfterSubmit, setHeaderNavigationTabs, setMethodToCall, setNavigationCss, setNumColumns, setRefreshCaller, setTabStates |
Methods inherited from class org.kuali.rice.kns.web.struts.pojo.PojoFormBase |
---|
addMaxUploadSize, cacheUnconvertedValue, copyPopulateEditablePropertiesToActionEditableProperties, formatterClassForKeypath, formatValue, getActionEditablePropertiesGuid, getEditableProperties, getFormatter, getFormatterTypes, getIsNewForm, getMaxUploadSizes, getMethodToCallsToBypassSessionRetrievalForGETRequests, getParameter, getParameterValues, getPopulateEditableProperties, getPopulateEditablePropertiesGuid, getPropertyType, getRequiredNonEditableProperties, getStrutsActionMappingScope, getUnconvertedValues, getUnknownKeys, initMaxUploadSizes, isPropertyEditable, isPropertyNonEditableButRequired, populateForProperty, postprocessRequestParameters, processValidationFail, registerEditableProperty, registerIsNewForm, registerRequiredNonEditableProperty, registerStrutsActionMappingScope, setActionEditablePropertiesGuid, setFormatterType, setFormatterTypes, setPopulateEditablePropertiesGuid, setUnconvertedValues |
Methods inherited from class org.apache.struts.action.ActionForm |
---|
getMultipartRequestHandler, getServlet, getServletWrapper, setMultipartRequestHandler, setServlet, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.log4j.Logger LOG
protected SourceAccountingLine newSourceLine
protected TargetAccountingLine newTargetLine
protected Map editableAccounts
protected Map forcedLookupOptionalFields
protected org.apache.struts.upload.FormFile sourceFile
protected org.apache.struts.upload.FormFile targetFile
protected boolean hideDetails
Constructor Detail |
---|
public KualiAccountingDocumentFormBase()
Method Detail |
---|
public void populate(javax.servlet.http.HttpServletRequest request)
populate
in interface org.kuali.rice.kns.web.struts.pojo.PojoForm
populate
in class org.kuali.rice.kns.web.struts.form.KualiTransactionalDocumentFormBase
PojoForm.populate(javax.servlet.http.HttpServletRequest)
protected void populateAccountingLinesForResponse(String methodToCall, Map parameterMap)
methodToCall
- the method to call in the action to complete this request transactionparameterMap
- the map of parameters which came in with the transactionprotected void populateAccountingLines(Map parameterMap)
parameterMap
- the map of parameters that were sent in with the requestpublic void populateSourceAccountingLine(SourceAccountingLine sourceLine, String accountingLinePropertyName, Map parameterMap)
sourceLine
- accountingLinePropertyName
- the property path from the form to the accounting lineparameterMap
- the map of parameters that were sent in with the requestpublic void populateTargetAccountingLine(TargetAccountingLine targetLine, String accountingLinePropertyName, Map parameterMap)
targetLine
- accountingLinePropertyName
- the property path from the form to the accounting lineparameterMap
- the map of parameters that were sent in with the requestprotected void populateAccountingLine(AccountingLine line, String accountingLinePropertyName, Map parameterMap)
line
- accountingLinePropertyName
- the property path from the form to the accounting lineparameterMap
- the map of parameters that were sent in with the requestprotected void repopulateOverrides(AccountingLine line, String accountingLinePropertyName, Map parameterMap)
line
- the line to repopulate override values foraccountingLinePropertyName
- the property path from the form to the accounting lineparameterMap
- the map of parameters that were sent in with the requestpublic AccountingDocument getFinancialDocument()
public TargetAccountingLine getNewTargetLine()
public void setNewTargetLine(TargetAccountingLine newExpenseLine)
newExpenseLine
- The newTargetLine to set.public SourceAccountingLine getNewSourceLine()
public void setNewSourceLine(SourceAccountingLine newIncomeLine)
newIncomeLine
- The newSourceLine to set.public org.apache.struts.upload.FormFile getSourceFile()
public void setSourceFile(org.apache.struts.upload.FormFile sourceFile)
sourceFile
- The sourceFile to set.public org.apache.struts.upload.FormFile getTargetFile()
public void setTargetFile(org.apache.struts.upload.FormFile targetFile)
targetFile
- The targetFile to set.public Map getEditableAccounts()
public void setEditableAccounts(Map editableAccounts)
editableAccounts
- the account Map to setpublic boolean isHideDetails()
public boolean getHideDetails()
isHideDetails()
public void setHideDetails(boolean hideDetails)
hideDetails
- public String getCurrencyFormattedSourceTotal()
public String getCurrencyFormattedTargetTotal()
public String getAccountingLineImportInstructionsUrl()
protected SourceAccountingLine createNewSourceAccountingLine(AccountingDocument financialDocument)
financialDocument
-
protected TargetAccountingLine createNewTargetAccountingLine(AccountingDocument financialDocument)
financialDocument
-
protected List<AccountingLine> harvestAccountingLines(List lines)
lines
- a list of objects
public void setForcedLookupOptionalFields(Map fieldMap)
Map
of names of optional accounting line fields that require a quickfinder.
public Map getForcedLookupOptionalFields()
Map
of names of optional accounting line fields that require a quickfinder.
protected void customInitMaxUploadSizes()
customInitMaxUploadSizes
in class org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase
PojoFormBase.customInitMaxUploadSizes()
public boolean shouldMethodToCallParameterBeUsed(String methodToCallParameterName, String methodToCallParameterValue, javax.servlet.http.HttpServletRequest request)
shouldMethodToCallParameterBeUsed
in class org.kuali.rice.kns.web.struts.form.KualiTransactionalDocumentFormBase
KualiDocumentFormBase.shouldMethodToCallParameterBeUsed(java.lang.String, java.lang.String, javax.servlet.http.HttpServletRequest)
protected List<String> getExcludedmethodToCall()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |