Class KualiDocumentFormBase
java.lang.Object
org.apache.struts.action.ActionForm
org.kuali.rice.kns.web.struts.form.pojo.PojoFormBase
org.kuali.rice.kns.web.struts.form.KualiForm
org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase
- All Implemented Interfaces:
Serializable,PojoForm
- Direct Known Subclasses:
KualiMaintenanceForm,KualiTransactionalDocumentFormBase
Deprecated.
TODO we should not be referencing kew constants from this class and wedding ourselves to that workflow application This class is
the base action form for all documents.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.kuali.rice.kns.web.struts.form.KualiForm
KualiForm.TabState -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected MapDeprecated.protected org.apache.struts.upload.FormFileDeprecated.protected MapDeprecated.protected MapDeprecated.protected booleanDeprecated.Fields inherited from class org.kuali.rice.kns.web.struts.form.KualiForm
extraButtonsFields inherited from class org.kuali.rice.kns.web.struts.form.pojo.PojoFormBase
requiredNonEditablePropertiesFields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.no args constructor that just initializes things for us -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.This method adds the required property names, that are not directly editable by user on the html page, to a list, regardless of the context in which they appear.protected StringbuildHtmlLink(String url, String linkBody) Deprecated.protected voidDeprecated.Adds the attachment file size to the list of max file sizes.List<org.kuali.rice.kew.api.action.ActionRequest> Deprecated.List<org.kuali.rice.kew.api.action.ActionRequest> Deprecated.getAdditionalScriptFile(int index) Deprecated.Deprecated.Deprecated.org.kuali.rice.krad.bo.AdHocRoutePersongetAdHocRoutePerson(int index) Deprecated.Special getter based on index to work with multi rows for ad hoc routing to persons struts pageList<org.kuali.rice.krad.bo.AdHocRoutePerson> Deprecated.org.kuali.rice.krad.bo.AdHocRouteWorkgroupgetAdHocRouteWorkgroup(int index) Deprecated.Special getter based on index to work with multi rows for ad hoc routing to workgroups struts pageList<org.kuali.rice.krad.bo.AdHocRouteWorkgroup> Deprecated.get the ad hoc routing workgroup requestsDeprecated.org.apache.struts.upload.FormFileDeprecated.Deprecated.Gets the boNotes attribute.Deprecated.protected StringDeprecated.getDocId()Deprecated.Deprecated.Deprecated.getter for the docTypeName that was passed from workflow on the urlorg.kuali.rice.krad.document.DocumentDeprecated.Deprecated.protected StringgetDocumentHandlerUrl(String documentId) Deprecated.Deprecated.Deprecated.org.kuali.rice.kim.api.identity.PersonDeprecated.Deprecated.getter for convenience that will return the initiators network idorg.kuali.rice.krad.util.MessageMapDeprecated.org.kuali.rice.krad.bo.AdHocRoutePersonDeprecated.org.kuali.rice.krad.bo.AdHocRouteWorkgroupDeprecated.org.kuali.rice.krad.bo.NoteDeprecated.protected StringgetPersonInquiryUrlLink(org.kuali.rice.kim.api.identity.Person user, String linkBody) Deprecated.Deprecated.protected List<HeaderField> getStandardHeaderFields(org.kuali.rice.kew.api.WorkflowDocument workflowDocument) Deprecated.This method returns a list ofHeaderFieldobjects that are used by default on Kuali document display pages.Deprecated.org.kuali.rice.kew.api.WorkflowDocumentDeprecated.booleanDeprecated.protected voidDeprecated.initializes the header tabs from what is defined in the datadictionary ifgetDefaultDocumentTypeName()is overridden to return a valid value.protected voidDeprecated.will instatiate a new document setting it on the form ifgetDefaultDocumentTypeName()is overridden to return a valid value.booleanDeprecated.final booleanDeprecated.booleanDeprecated.Null-safe check to see if the workflow document object exists before attempting to retrieve it.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanisStateInitiatedFinalCancelled(org.kuali.rice.kew.api.document.DocumentStatus status) Deprecated.booleanisStateProcessedOrDisapproved(org.kuali.rice.kew.api.document.DocumentStatus status) Deprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.final booleanDeprecated.Gets the suppressAllButtons attribute.booleanDeprecated.TODO rk implemented to account for caps coming from kuali user service from workflowvoidpopulate(javax.servlet.http.HttpServletRequest request) Deprecated.Setup workflow doc in the document.voidpopulateHeaderFields(org.kuali.rice.kew.api.WorkflowDocument workflowDocument) Deprecated.This method is used to populate the list of header field objects (seeKualiForm.getDocInfo()) displayed on the Kuali document form display pages.voidreset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request) Deprecated.voidsetActionRequests(List<org.kuali.rice.kew.api.action.ActionRequest> actionRequests) Deprecated.voidsetAdditionalScriptFile(int index, String scriptFile) Deprecated.voidsetAdditionalScriptFiles(List<String> additionalScriptFiles) Deprecated.voidsetAdHocActionRequestCodes(Map adHocActionRequestCodes) Deprecated.voidsetAdHocRoutePersons(List<org.kuali.rice.krad.bo.AdHocRoutePerson> adHocRouteRecipients) Deprecated.set the ad hoc routing persons listvoidsetAdHocRouteWorkgroups(List<org.kuali.rice.krad.bo.AdHocRouteWorkgroup> adHocRouteWorkgroups) Deprecated.set the ad hoc routing workgroup requestsvoidsetAnnotation(String annotation) Deprecated.voidsetAttachmentFile(org.apache.struts.upload.FormFile attachmentFile) Deprecated.voidsetBoNotes(List boNotes) Deprecated.Sets the boNotes attribute value.voidsetCommand(String command) Deprecated.setter for the command that was passed from workflow on the urlvoidsetDerivedValuesOnForm(javax.servlet.http.HttpServletRequest request) Deprecated.voidDeprecated.setter for the docId that was passed from workflow on the urlvoidDeprecated.voidsetDocTypeName(String docTypeName) Deprecated.setter for the docTypeName that was passed from workflow on the urlvoidsetDocument(org.kuali.rice.krad.document.Document document) Deprecated.voidsetDocumentActions(Map documentActions) Deprecated.voidsetEditingMode(Map editingMode) Deprecated.Set editingMode for this documentvoidsetFormKey(String formKey) Deprecated.voidsetMessageMapFromPreviousRequest(org.kuali.rice.krad.util.MessageMap errorMapFromPreviousRequest) Deprecated.voidsetNewAdHocRoutePerson(org.kuali.rice.krad.bo.AdHocRoutePerson newAdHocRoutePerson) Deprecated.set the new ad hoc route person objectvoidsetNewAdHocRouteWorkgroup(org.kuali.rice.krad.bo.AdHocRouteWorkgroup newAdHocRouteWorkgroup) Deprecated.set the new ad hoc route workgroup objectvoidsetNewNote(org.kuali.rice.krad.bo.Note newNote) Deprecated.voidsetReturnToActionList(boolean returnToActionList) Deprecated.Sets flag indicating whether upon completion of approve, blanketApprove, cancel, or disapprove, the user should be returned to the actionList instead of to the portalvoidsetSelectedActionRequests(List<String> selectedActionRequests) Deprecated.voidsetSuperUserAnnotation(String superUserAnnotation) Deprecated.final voidsetSuppressAllButtons(boolean suppressAllButtons) Deprecated.Sets the suppressAllButtons attribute value.booleanshouldMethodToCallParameterBeUsed(String methodToCallParameterName, String methodToCallParameterValue, javax.servlet.http.HttpServletRequest request) Deprecated.booleanshouldPropertyBePopulatedInForm(String requestParameterName, javax.servlet.http.HttpServletRequest request) Deprecated.IMPORTANT: any overrides of this method must ensure that nothing in the HTTP request will be used to determine whether document is in sessionorg.apache.struts.action.ActionErrorsvalidate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request) Deprecated.Methods inherited from class org.kuali.rice.kns.web.struts.form.KualiForm
clearEditablePropertyInformation, getActionFormUtilMap, getAnchor, getBackLocation, getCurrentTabIndex, getDisplayedErrors, getDisplayedInfo, getDisplayedWarnings, getDocInfo, getExtraButton, getExtraButtons, 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, setTabStatesMethods inherited from class org.kuali.rice.kns.web.struts.form.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, setUnconvertedValuesMethods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, setMultipartRequestHandler, setServlet, validate
-
Field Details
-
attachmentFile
protected transient org.apache.struts.upload.FormFile attachmentFileDeprecated. -
editingMode
Deprecated. -
documentActions
Deprecated. -
suppressAllButtons
protected boolean suppressAllButtonsDeprecated. -
adHocActionRequestCodes
Deprecated.
-
-
Constructor Details
-
KualiDocumentFormBase
public KualiDocumentFormBase()Deprecated.no args constructor that just initializes things for us
-
-
Method Details
-
addRequiredNonEditableProperties
public void addRequiredNonEditableProperties()Deprecated.Description copied from interface:PojoFormThis method adds the required property names, that are not directly editable by user on the html page, to a list, regardless of the context in which they appear. Request parameter names corresponding to these properties will be populated into the form.- Specified by:
addRequiredNonEditablePropertiesin interfacePojoForm- Overrides:
addRequiredNonEditablePropertiesin classKualiForm- See Also:
-
getDocNum
Deprecated.- Returns:
- the docNum
-
setDocNum
Deprecated.- Parameters:
docNum- the docNum to set
-
populate
public void populate(javax.servlet.http.HttpServletRequest request) Deprecated.Setup workflow doc in the document. -
getPersonInquiryUrlLink
protected String getPersonInquiryUrlLink(org.kuali.rice.kim.api.identity.Person user, String linkBody) Deprecated. -
getDocumentHandlerUrl
Deprecated. -
buildHtmlLink
Deprecated. -
populateHeaderFields
public void populateHeaderFields(org.kuali.rice.kew.api.WorkflowDocument workflowDocument) Deprecated.This method is used to populate the list of header field objects (seeKualiForm.getDocInfo()) displayed on the Kuali document form display pages.- Parameters:
workflowDocument- - the workflow document of the document being displayed (null is allowed)
-
getStandardHeaderFields
protected List<HeaderField> getStandardHeaderFields(org.kuali.rice.kew.api.WorkflowDocument workflowDocument) Deprecated.This method returns a list ofHeaderFieldobjects that are used by default on Kuali document display pages. To use this list and override an individualHeaderFieldobject the id constants fromKRADConstants.DocumentFormHeaderFieldIdscan be used to identify items from the list.- Parameters:
workflowDocument- - the workflow document of the document being displayed (null is allowed)- Returns:
- a list of the standard fields displayed by default for all Kuali documents
-
validate
public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request) Deprecated.- Overrides:
validatein classorg.apache.struts.action.ActionForm- See Also:
-
isFormDocumentInitialized
public final boolean isFormDocumentInitialized()Deprecated.- Returns:
- true if this document was properly initialized with a DocumentHeader and related KualiWorkflowDocument
-
getEditingMode
Deprecated.- Returns:
- Map of editingModes for this document, as set during the most recent call to populate(javax.servlet.http.HttpServletRequest)
-
setEditingMode
Deprecated.Set editingMode for this document -
getDocumentActions
Deprecated.- Returns:
- the documentActions
-
setDocumentActions
Deprecated.- Parameters:
documentActions- the documentActions to set
-
setAdHocActionRequestCodes
Deprecated.- Parameters:
adHocActionRequestCodes- the adHocActionRequestCodes to set
-
getAdHocActionRequestCodes
Deprecated.- Returns:
- a map of the possible action request codes that takes into account the users context on the document
-
getAdHocRoutePersons
Deprecated.- Returns:
- the list of ad hoc routing persons
-
getAttachmentFile
public org.apache.struts.upload.FormFile getAttachmentFile()Deprecated.- Returns:
- attachmentFile
-
setAttachmentFile
public void setAttachmentFile(org.apache.struts.upload.FormFile attachmentFile) Deprecated.- Parameters:
attachmentFile- The attachmentFile to set.
-
setAdHocRoutePersons
public void setAdHocRoutePersons(List<org.kuali.rice.krad.bo.AdHocRoutePerson> adHocRouteRecipients) Deprecated.set the ad hoc routing persons list -
getAdHocRouteWorkgroups
Deprecated.get the ad hoc routing workgroup requests -
setAdHocRouteWorkgroups
public void setAdHocRouteWorkgroups(List<org.kuali.rice.krad.bo.AdHocRouteWorkgroup> adHocRouteWorkgroups) Deprecated.set the ad hoc routing workgroup requests -
getAdHocRoutePerson
public org.kuali.rice.krad.bo.AdHocRoutePerson getAdHocRoutePerson(int index) Deprecated.Special getter based on index to work with multi rows for ad hoc routing to persons struts page -
getAdHocRouteWorkgroup
public org.kuali.rice.krad.bo.AdHocRouteWorkgroup getAdHocRouteWorkgroup(int index) Deprecated.Special getter based on index to work with multi rows for ad hoc routing to workgroups struts page -
getNewAdHocRoutePerson
public org.kuali.rice.krad.bo.AdHocRoutePerson getNewAdHocRoutePerson()Deprecated.- Returns:
- the new ad hoc route person object
-
setNewAdHocRoutePerson
public void setNewAdHocRoutePerson(org.kuali.rice.krad.bo.AdHocRoutePerson newAdHocRoutePerson) Deprecated.set the new ad hoc route person object -
getNewAdHocRouteWorkgroup
public org.kuali.rice.krad.bo.AdHocRouteWorkgroup getNewAdHocRouteWorkgroup()Deprecated.- Returns:
- the new ad hoc route workgroup object
-
setNewAdHocRouteWorkgroup
public void setNewAdHocRouteWorkgroup(org.kuali.rice.krad.bo.AdHocRouteWorkgroup newAdHocRouteWorkgroup) Deprecated.set the new ad hoc route workgroup object -
getDocument
public org.kuali.rice.krad.document.Document getDocument()Deprecated.- Returns:
- Returns the Document
-
setDocument
public void setDocument(org.kuali.rice.krad.document.Document document) Deprecated. -
getWorkflowDocument
public org.kuali.rice.kew.api.WorkflowDocument getWorkflowDocument()Deprecated.- Returns:
- WorkflowDocument for this form's document
-
isHasWorkflowDocument
public boolean isHasWorkflowDocument()Deprecated.Null-safe check to see if the workflow document object exists before attempting to retrieve it. (Which, if called, will throw an exception.) -
isUserDocumentInitiator
public boolean isUserDocumentInitiator()Deprecated.TODO rk implemented to account for caps coming from kuali user service from workflow -
getInitiator
public org.kuali.rice.kim.api.identity.Person getInitiator()Deprecated. -
isDocumentEnRoute
public boolean isDocumentEnRoute()Deprecated.- Returns:
- true if the workflowDocument associated with this form is currently enroute
-
setAnnotation
Deprecated.- Parameters:
annotation- The annotation to set.
-
getAnnotation
Deprecated.- Returns:
- Returns the annotation.
-
getCommand
Deprecated.- Returns:
- returns the command that was passed from workflow
-
setCommand
Deprecated.setter for the command that was passed from workflow on the url -
getDocId
Deprecated.- Returns:
- returns the docId that was passed from workflow on the url
-
setDocId
Deprecated.setter for the docId that was passed from workflow on the url -
getDocTypeName
Deprecated.getter for the docTypeName that was passed from workflow on the url -
setDocTypeName
Deprecated.setter for the docTypeName that was passed from workflow on the url -
getInitiatorNetworkId
Deprecated.getter for convenience that will return the initiators network id -
isSuppressAllButtons
public final boolean isSuppressAllButtons()Deprecated.Gets the suppressAllButtons attribute.- Returns:
- Returns the suppressAllButtons.
-
setSuppressAllButtons
public final void setSuppressAllButtons(boolean suppressAllButtons) Deprecated.Sets the suppressAllButtons attribute value.- Parameters:
suppressAllButtons- The suppressAllButtons to set.
-
hasDocumentId
public boolean hasDocumentId()Deprecated.- Returns:
- true if this form's getDocument() method returns a Document, and if that Document's getDocumentHeaderId method returns a non-null
-
setReturnToActionList
public void setReturnToActionList(boolean returnToActionList) Deprecated.Sets flag indicating whether upon completion of approve, blanketApprove, cancel, or disapprove, the user should be returned to the actionList instead of to the portal -
isReturnToActionList
public boolean isReturnToActionList()Deprecated. -
getAdditionalScriptFiles
Deprecated. -
setAdditionalScriptFiles
Deprecated. -
setAdditionalScriptFile
Deprecated. -
getAdditionalScriptFile
Deprecated. -
getNewNote
public org.kuali.rice.krad.bo.Note getNewNote()Deprecated. -
setNewNote
public void setNewNote(org.kuali.rice.krad.bo.Note newNote) Deprecated. -
getBoNotes
Deprecated.Gets the boNotes attribute.- Returns:
- Returns the boNotes.
-
setBoNotes
Deprecated.Sets the boNotes attribute value.- Parameters:
boNotes- The boNotes to set.
-
getFormKey
Deprecated. -
setFormKey
Deprecated. -
reset
public void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request) Deprecated. -
customInitMaxUploadSizes
protected void customInitMaxUploadSizes()Deprecated.Adds the attachment file size to the list of max file sizes.- Overrides:
customInitMaxUploadSizesin classPojoFormBase
-
shouldPropertyBePopulatedInForm
public boolean shouldPropertyBePopulatedInForm(String requestParameterName, javax.servlet.http.HttpServletRequest request) Deprecated.IMPORTANT: any overrides of this method must ensure that nothing in the HTTP request will be used to determine whether document is in session- Specified by:
shouldPropertyBePopulatedInFormin interfacePojoForm- Overrides:
shouldPropertyBePopulatedInFormin classKualiForm- Parameters:
requestParameterName- the name of the request parameterrequest- the HTTP request- Returns:
- whether the parameter should be
- See Also:
-
shouldMethodToCallParameterBeUsed
public boolean shouldMethodToCallParameterBeUsed(String methodToCallParameterName, String methodToCallParameterValue, javax.servlet.http.HttpServletRequest request) Deprecated.- Overrides:
shouldMethodToCallParameterBeUsedin classKualiForm
-
getMessageMapFromPreviousRequest
public org.kuali.rice.krad.util.MessageMap getMessageMapFromPreviousRequest()Deprecated. -
setMessageMapFromPreviousRequest
public void setMessageMapFromPreviousRequest(org.kuali.rice.krad.util.MessageMap errorMapFromPreviousRequest) Deprecated. -
setDerivedValuesOnForm
public void setDerivedValuesOnForm(javax.servlet.http.HttpServletRequest request) Deprecated.- Overrides:
setDerivedValuesOnFormin classKualiForm
-
getDefaultDocumentTypeName
Deprecated. -
instantiateDocument
protected void instantiateDocument()Deprecated.will instatiate a new document setting it on the form ifgetDefaultDocumentTypeName()is overridden to return a valid value. -
getActionRequests
Deprecated. -
setActionRequests
Deprecated. -
getSelectedActionRequests
Deprecated. -
setSelectedActionRequests
Deprecated. -
getActionRequestsRequiringApproval
Deprecated. -
getSuperUserAnnotation
Deprecated. -
setSuperUserAnnotation
Deprecated. -
isSuperUserActionAvaliable
public boolean isSuperUserActionAvaliable()Deprecated. -
isSuperUserApproveSingleActionRequestAuthorized
public boolean isSuperUserApproveSingleActionRequestAuthorized()Deprecated. -
isSuperUserApproveDocumentAuthorized
public boolean isSuperUserApproveDocumentAuthorized()Deprecated. -
isSuperUserDisapproveDocumentAuthorized
public boolean isSuperUserDisapproveDocumentAuthorized()Deprecated. -
isSuperUserAuthorized
public boolean isSuperUserAuthorized()Deprecated. -
isStateAllowsApproveOrDisapprove
public boolean isStateAllowsApproveOrDisapprove()Deprecated. -
isStateAllowsApproveSingleActionRequest
public boolean isStateAllowsApproveSingleActionRequest()Deprecated. -
isStateProcessedOrDisapproved
public boolean isStateProcessedOrDisapproved(org.kuali.rice.kew.api.document.DocumentStatus status) Deprecated. -
isStateInitiatedFinalCancelled
public boolean isStateInitiatedFinalCancelled(org.kuali.rice.kew.api.document.DocumentStatus status) Deprecated.
-
DocumentFormBase.