Package org.kuali.rice.krad.web.form
Class IncidentReportForm
java.lang.Object
org.kuali.rice.krad.web.form.UifFormBase
org.kuali.rice.krad.web.form.IncidentReportForm
- All Implemented Interfaces:
Serializable,ViewModel
Form class for incident reports
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected booleanprotected Stringprotected Exceptionprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected StringFields inherited from class org.kuali.rice.krad.web.form.UifFormBase
actionFlags, actionParameters, addedCollectionItems, ajaxRequest, ajaxReturnType, applyDefaultValues, attachmentFile, canEditView, clientStateForSyncing, controllerMapping, csrfToken, dialogExplanations, dialogResponses, dirtyForm, editModes, evaluateFlagsAndModes, extensionData, flowKey, focusId, formKey, formPostUrl, growlScript, historyFlow, historyManager, jumpToId, jumpToName, methodToCall, newCollectionLines, pageId, readOnlyFieldsList, renderedInDialog, renderedInIframe, request, requestedFormKey, requestRedirected, returnDialogId, returnDialogResponse, returnFormKey, returnLocation, selectedCollectionLines, selectedLookupResultsCache, sessionId, sessionTimeoutInterval, showDialogId, state, triggerActionId, updateComponentId, view, viewId, viewName, viewPostMetadata, viewRequestParameters, viewTypeName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates the email message from the exception, form and user data.Creates the email subject containing the mode, view id and the exception message.protected StringGets the stack trace from an exception.booleanvoidsetController(String controller) voidsetDevMode(boolean devMode) voidsetErrorMessage(String errorMessage) voidsetException(Exception exception) voidsetExceptionMessage(String exceptionMessage) voidsetExceptionStackTrace(String exceptionStackTrace) voidsetIncidentDocId(String incidentDocId) voidsetIncidentViewId(String incidentViewId) voidsetSessionId(String copiedSessionId) voidsetUserEmail(String userEmail) voidvoidsetUserInput(String userInput) voidsetUserName(String userName) protected StringtruncateString(String str, int maxLength) Truncate the string to specified length.Methods inherited from class org.kuali.rice.krad.web.form.UifFormBase
generateFormKey, getActionEvent, getActionFlags, getActionParamaterValue, getActionParameters, getActionParametersAsProperties, getAddedCollectionItems, getAjaxReturnType, getAttachmentFile, getClientStateForSyncing, getControllerMapping, getCsrfToken, getDialogDataObject, getDialogExplanations, getDialogResponse, getDialogResponses, getEditModes, getExtensionData, getFlowKey, getFocusId, getFormKey, getFormPostUrl, getGrowlScript, getHistoryFlow, getHistoryManager, getInitialRequestParameters, getJumpToId, getJumpToName, getMethodToCall, getNewCollectionLines, getPageId, getReadOnlyFieldsList, getRequest, getRequestedFormKey, getRequestJsonTemplate, getRequestUrl, getReturnDialogId, getReturnDialogResponse, getReturnFormKey, getReturnLocation, getSelectedCollectionLines, getSelectedLookupResultsCache, getSessionId, getSessionTimeoutInterval, getShowDialogId, getState, getTriggerActionId, getUpdateComponent, getUpdateComponentId, getView, getViewHelperService, getViewId, getViewName, getViewPostMetadata, getViewRequestParameters, getViewService, getViewTypeName, isAddedCollectionItem, isAjaxRequest, isApplyDefaultValues, isCanEditView, isCollectionPagingRequest, isDirtyForm, isEvaluateFlagsAndModes, isJsonRequest, isRenderedInDialog, isRenderedInIframe, isRequestRedirected, isUpdateComponentRequest, isUpdateDialogRequest, isUpdateNoneRequest, isUpdatePageRequest, postBind, preBind, preRender, setActionFlags, setActionParameters, setAddedCollectionItems, setAjaxRequest, setAjaxReturnType, setApplyDefaultValues, setAttachmentFile, setCanEditView, setClientStateForSyncing, setCollectionPagingRequest, setCsrfToken, setDialogDataObject, setDialogExplanations, setDialogResponses, setDirtyForm, setDirtyForm, setEditModes, setEvaluateFlagsAndModes, setExtensionData, setFlowKey, setFocusId, setFormKey, setFormPostUrl, setGrowlScript, setHistoryFlow, setHistoryManager, setInitialRequestParameters, setJumpToId, setJumpToName, setMethodToCall, setNewCollectionLines, setPageId, setReadOnlyFieldsList, setRenderedInDialog, setRenderedInIframe, setRequest, setRequestedFormKey, setRequestJsonTemplate, setRequestRedirected, setRequestUrl, setReturnDialogId, setReturnDialogResponse, setReturnFormKey, setReturnLocation, setSelectedCollectionLines, setSelectedLookupResultsCache, setShowDialogId, setState, setTriggerActionId, setUpdateComponent, setUpdateComponentId, setView, setViewId, setViewName, setViewPostMetadata, setViewRequestParameters, setViewTypeName, toString
-
Field Details
-
errorMessage
-
exception
-
exceptionMessage
-
exceptionStackTrace
-
userInput
-
incidentDocId
-
incidentViewId
-
controller
-
userName
-
userId
-
userEmail
-
devMode
protected boolean devMode
-
-
Constructor Details
-
IncidentReportForm
public IncidentReportForm()
-
-
Method Details
-
createEmailMessage
Creates the email message from the exception, form and user data.- Returns:
- the email message
-
createEmailSubject
Creates the email subject containing the mode, view id and the exception message.- Returns:
- the email subject
-
truncateString
Truncate the string to specified length.- Parameters:
str- the string to truncatemaxLength- the max length- Returns:
- the truncated string
-
getStackTrace
Gets the stack trace from an exception.- Parameters:
t- the throwable to get the stack trace from- Returns:
- the stack trace
-
getErrorMessage
- Returns:
- the errorMessage
-
setErrorMessage
- Parameters:
errorMessage- the errorMessage to set
-
getExceptionMessage
- Returns:
- the exceptionMessage
-
setExceptionMessage
- Parameters:
exceptionMessage- the exceptionMessage to set
-
getExceptionStackTrace
- Returns:
- the exceptionStackTrace
-
setExceptionStackTrace
- Parameters:
exceptionStackTrace- the exceptionStackTrace to set
-
getUserInput
- Returns:
- the userInput
-
setUserInput
- Parameters:
userInput- the userInput to set
-
isDevMode
public boolean isDevMode()- Returns:
- the devMode
-
setDevMode
public void setDevMode(boolean devMode) - Parameters:
devMode- the devMode to set
-
setIncidentDocId
- Parameters:
incidentDocId- the incidentDocId to set
-
getIncidentDocId
- Returns:
- the incidentDocId
-
setIncidentViewId
- Parameters:
incidentViewId- the incidentViewId to set
-
getIncidentViewId
- Returns:
- the incidentViewId
-
setException
- Parameters:
exception- the exception to set
-
getException
- Returns:
- the exception
-
setUserName
- Parameters:
userName- the userName to set
-
getUserName
- Returns:
- the userName
-
setUserId
- Parameters:
userId- the userId to set
-
getUserId
- Returns:
- the userId
-
setUserEmail
- Parameters:
userEmail- the userEmail to set
-
getUserEmail
- Returns:
- the userEmail
-
setController
- Parameters:
controller- the controller to set
-
getController
- Returns:
- the controller
-
setSessionId
- Parameters:
copiedSessionId- the session id to associate with the form
-