Class IncidentReportForm

java.lang.Object
org.kuali.rice.krad.web.form.UifFormBase
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:
  • Field Details

    • 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 Details

    • IncidentReportForm

      public IncidentReportForm()
  • Method Details

    • 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
    • setSessionId

      public void setSessionId(String copiedSessionId)
      Parameters:
      copiedSessionId - the session id to associate with the form