Package com.saperion.ngc.servlet.process
Class LRPControlBean
java.lang.Object
com.saperion.ngc.servlet.process.LRPControlBean
Bean that contains information needed by a
LongRunningProcess
.-
Constructor Summary
ConstructorsConstructorDescriptionLRPControlBean
(Class<? extends LongRunningProcess> processClass, Object data) -
Method Summary
Modifier and TypeMethodDescriptiongetData()
Class<? extends LongRunningProcess>
getTitle()
boolean
void
setEmbedResult
(boolean embedResult) void
setErrorMessage
(String errorMessage) void
setMimeType
(String mimeType) void
void
setWorkingMessage
(String workingMessage)
-
Constructor Details
-
LRPControlBean
- Parameters:
processClass
- class of the process to startdata
- data needed by the process to run
-
-
Method Details
-
getProcessClass
- Returns:
- class of the process to start
-
getData
- Returns:
- data needed by the process to run
-
getTitle
- Returns:
- title of the progress window
-
setTitle
- Parameters:
title
- the title of the progress window
-
getErrorMessage
- Returns:
- error message shown by the progress window
-
setErrorMessage
- Parameters:
errorMessage
- the error message shown by the progress window
-
getWorkingMessage
- Returns:
- working message shown by the progress window
-
setWorkingMessage
- Parameters:
workingMessage
- the working message shown by the progress window
-
getMimeType
- Returns:
- the mime-type of the result
-
setMimeType
- 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
-