Package com.saperion.ngc.servlet.process
Class LRPControlBean
- java.lang.Object
-
- com.saperion.ngc.servlet.process.LRPControlBean
-
public class LRPControlBean extends java.lang.Object
Bean that contains information needed by aLongRunningProcess
.
-
-
Constructor Summary
Constructors Constructor Description LRPControlBean(java.lang.Class<? extends LongRunningProcess> processClass, java.lang.Object data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getData()
java.lang.String
getErrorMessage()
java.lang.String
getMimeType()
java.lang.Class<? extends LongRunningProcess>
getProcessClass()
java.lang.String
getTitle()
java.lang.String
getWorkingMessage()
boolean
isEmbedResult()
void
setEmbedResult(boolean embedResult)
void
setErrorMessage(java.lang.String errorMessage)
void
setMimeType(java.lang.String mimeType)
void
setTitle(java.lang.String title)
void
setWorkingMessage(java.lang.String workingMessage)
-
-
-
Constructor Detail
-
LRPControlBean
public LRPControlBean(java.lang.Class<? extends LongRunningProcess> processClass, java.lang.Object data)
- Parameters:
processClass
- class of the process to startdata
- 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
-
-