org.kuali.rice.krad.web.form
Class IncidentReportForm

java.lang.Object
  extended by org.kuali.rice.krad.web.form.UifFormBase
      extended by org.kuali.rice.krad.web.form.IncidentReportForm
All Implemented Interfaces:
Serializable, ViewModel

public class IncidentReportForm
extends UifFormBase

Form class for incident reports

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

Field Summary
protected  String controller
           
protected  boolean devMode
           
protected  String errorMessage
           
protected  Exception exception
           
protected  String exceptionMessage
           
protected  String exceptionStackTrace
           
protected  String incidentDocId
           
protected  String incidentViewId
           
protected  String userEmail
           
protected  String userId
           
protected  String userInput
           
protected  String userName
           
 
Fields inherited from class org.kuali.rice.krad.web.form.UifFormBase
actionParameters, addedCollectionItems, ajaxRequest, ajaxReturnType, attachmentFile, clientStateForSyncing, controllerMapping, defaultsApplied, dialogExplanation, dialogManager, dialogResponse, dirtyForm, extensionData, flowKey, focusId, formKey, formPostUrl, growlScript, historyFlow, historyManager, jumpToId, jumpToName, lightboxScript, methodToCall, newCollectionLines, pageId, postedView, readOnlyFieldsList, renderedInLightBox, requestedFormKey, requestRedirected, returnFormKey, returnLocation, selectedCollectionLines, sessionId, sessionTimeoutInterval, state, updateComponentId, view, viewId, viewName, viewRequestParameters, viewTypeName
 
Constructor Summary
IncidentReportForm()
           
 
Method Summary
 String createEmailMessage()
          Creates the email message from the exception, form and user data.
 String createEmailSubject()
          Creates the email subject containing the mode, view id and the exception message.
 String getController()
           
 String getErrorMessage()
           
 Exception getException()
           
 String getExceptionMessage()
           
 String getExceptionStackTrace()
           
 String getIncidentDocId()
           
 String getIncidentViewId()
           
protected  String getStackTrace(Throwable t)
          Gets the stack trace from an exception.
 String getUserEmail()
           
 String getUserId()
           
 String getUserInput()
           
 String getUserName()
           
 boolean isDevMode()
           
 void setController(String controller)
           
 void setDevMode(boolean devMode)
           
 void setErrorMessage(String errorMessage)
           
 void setException(Exception exception)
           
 void setExceptionMessage(String exceptionMessage)
           
 void setExceptionStackTrace(String exceptionStackTrace)
           
 void setIncidentDocId(String incidentDocId)
           
 void setIncidentViewId(String incidentViewId)
           
 void setUserEmail(String userEmail)
           
 void setUserId(String userId)
           
 void setUserInput(String userInput)
           
 void setUserName(String userName)
           
protected  String truncateString(String str, int maxLength)
          Truncate the string to specified length.
 
Methods inherited from class org.kuali.rice.krad.web.form.UifFormBase
generateFormKey, getActionEvent, getActionParamaterValue, getActionParameters, getActionParametersAsProperties, getAddedCollectionItems, getAjaxReturnType, getAttachmentFile, getClientStateForSyncing, getControllerMapping, getDialogExplanation, getDialogManager, getDialogResponse, getExtensionData, getFlowKey, getFocusId, getFormKey, getFormPostUrl, getGrowlScript, getHistoryFlow, getHistoryManager, getInitialRequestParameters, getJumpToId, getJumpToName, getLightboxScript, getMethodToCall, getNewCollectionLines, getPageId, getPostedView, getReadOnlyFieldsList, getRequestedFormKey, getRequestJsonTemplate, getRequestUrl, getReturnFormKey, getReturnLocation, getSelectedCollectionLines, getSessionId, getSessionTimeoutInterval, getState, getUpdateComponentId, getView, getViewId, getViewName, getViewRequestParameters, getViewService, getViewTypeName, isAddedCollectionItem, isAjaxRequest, isBuildViewRequest, isDefaultsApplied, isDirtyForm, isJsonRequest, isOriginalComponentRequest, isRenderedInLightBox, isRequestRedirected, isUpdateComponentRequest, isUpdateDialogRequest, isUpdateNoneRequest, isUpdatePageRequest, isUpdateViewRequest, postBind, setActionParameters, setAddedCollectionItems, setAjaxRequest, setAjaxReturnType, setAttachmentFile, setClientStateForSyncing, setDefaultsApplied, setDialogExplanation, setDialogManager, setDialogResponse, setDirtyForm, setDirtyForm, setExtensionData, setFlowKey, setFocusId, setFormKey, setFormPostUrl, setGrowlScript, setHistoryFlow, setHistoryManager, setInitialRequestParameters, setJumpToId, setJumpToName, setLightboxScript, setMethodToCall, setNewCollectionLines, setOriginalComponentRequest, setPageId, setPostedView, setReadOnlyFieldsList, setRenderedInLightBox, setRequestedFormKey, setRequestJsonTemplate, setRequestRedirected, setRequestUrl, setReturnFormKey, setReturnLocation, setSelectedCollectionLines, setState, setUpdateComponentId, setView, setViewId, setViewName, setViewRequestParameters, setViewTypeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

errorMessage

protected String errorMessage

exception

protected Exception exception

exceptionMessage

protected String exceptionMessage

exceptionStackTrace

protected String exceptionStackTrace

userInput

protected String userInput

incidentDocId

protected String incidentDocId

incidentViewId

protected String incidentViewId

controller

protected String controller

userName

protected String userName

userId

protected String userId

userEmail

protected String userEmail

devMode

protected boolean devMode
Constructor Detail

IncidentReportForm

public IncidentReportForm()
Method Detail

createEmailMessage

public String createEmailMessage()
Creates the email message from the exception, form and user data.

Returns:
the email message

createEmailSubject

public String createEmailSubject()
Creates the email subject containing the mode, view id and the exception message.

Returns:
the email subject

truncateString

protected String truncateString(String str,
                                int maxLength)
Truncate the string to specified length.

Parameters:
str - the string to truncate
maxLength - the max length
Returns:
the truncated string

getStackTrace

protected String getStackTrace(Throwable t)
Gets the stack trace from an exception.

Parameters:
t - the throwable to get the stack trace from
Returns:
the stack trace

getErrorMessage

public String getErrorMessage()
Returns:
the errorMessage

setErrorMessage

public void setErrorMessage(String errorMessage)
Parameters:
errorMessage - the errorMessage to set

getExceptionMessage

public String getExceptionMessage()
Returns:
the exceptionMessage

setExceptionMessage

public void setExceptionMessage(String exceptionMessage)
Parameters:
exceptionMessage - the exceptionMessage to set

getExceptionStackTrace

public String getExceptionStackTrace()
Returns:
the exceptionStackTrace

setExceptionStackTrace

public void setExceptionStackTrace(String exceptionStackTrace)
Parameters:
exceptionStackTrace - the exceptionStackTrace to set

getUserInput

public String getUserInput()
Returns:
the userInput

setUserInput

public void setUserInput(String userInput)
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

public void setIncidentDocId(String incidentDocId)
Parameters:
incidentDocId - the incidentDocId to set

getIncidentDocId

public String getIncidentDocId()
Returns:
the incidentDocId

setIncidentViewId

public void setIncidentViewId(String incidentViewId)
Parameters:
incidentViewId - the incidentViewId to set

getIncidentViewId

public String getIncidentViewId()
Returns:
the incidentViewId

setException

public void setException(Exception exception)
Parameters:
exception - the exception to set

getException

public Exception getException()
Returns:
the exception

setUserName

public void setUserName(String userName)
Parameters:
userName - the userName to set

getUserName

public String getUserName()
Returns:
the userName

setUserId

public void setUserId(String userId)
Parameters:
userId - the userId to set

getUserId

public String getUserId()
Returns:
the userId

setUserEmail

public void setUserEmail(String userEmail)
Parameters:
userEmail - the userEmail to set

getUserEmail

public String getUserEmail()
Returns:
the userEmail

setController

public void setController(String controller)
Parameters:
controller - the controller to set

getController

public String getController()
Returns:
the controller


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