Class LRPControlBean


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

      • LRPControlBean

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

      • getProcessClass

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

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

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

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

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

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

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

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

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

        public void setMimeType​(java.lang.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