Class LRPControlBean

java.lang.Object
com.saperion.ngc.servlet.process.LRPControlBean

public class LRPControlBean extends Object
Bean that contains information needed by a LongRunningProcess.
  • Constructor Details

    • LRPControlBean

      public LRPControlBean(Class<? extends LongRunningProcess> processClass, Object data)
      Parameters:
      processClass - class of the process to start
      data - data needed by the process to run
  • Method Details

    • getProcessClass

      public Class<? extends LongRunningProcess> getProcessClass()
      Returns:
      class of the process to start
    • getData

      public Object getData()
      Returns:
      data needed by the process to run
    • getTitle

      public String getTitle()
      Returns:
      title of the progress window
    • setTitle

      public void setTitle(String title)
      Parameters:
      title - the title of the progress window
    • getErrorMessage

      public String getErrorMessage()
      Returns:
      error message shown by the progress window
    • setErrorMessage

      public void setErrorMessage(String errorMessage)
      Parameters:
      errorMessage - the error message shown by the progress window
    • getWorkingMessage

      public String getWorkingMessage()
      Returns:
      working message shown by the progress window
    • setWorkingMessage

      public void setWorkingMessage(String workingMessage)
      Parameters:
      workingMessage - the working message shown by the progress window
    • getMimeType

      public String getMimeType()
      Returns:
      the mime-type of the result
    • setMimeType

      public void setMimeType(String mimeType)
      Parameters:
      mimeType - the mime-type of the result. Needed only if the result will be embedded in the progress-window.
    • isEmbedResult

      public boolean isEmbedResult()
      Returns:
      whether the result of the process should be embedded in the progress window. If not, a download will be triggered for the result
    • setEmbedResult

      public void setEmbedResult(boolean embedResult)
      Parameters:
      embedResult - whether the result of the process should be embedded in the progress window. If not, a download will be triggered for the result