T
- the generic typepublic abstract class RequestIN<T>
extends java.lang.Object
RequestIN.RequestType
enum.
Modifier and Type | Class and Description |
---|---|
static class |
RequestIN.CallerType |
static class |
RequestIN.RequestType |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
VERSION |
Constructor and Description |
---|
RequestIN() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(java.lang.String key) |
RequestIN.CallerType |
getCallerType() |
Database |
getEngineDatabase() |
java.lang.String |
getJobID() |
ClipboardPage |
getLogPage() |
com.pega.pegarules.priv.rulemgmt.MgmtLog |
getMoveLog() |
PRThread |
getPRThread() |
java.util.List<T> |
getQueryObjects() |
RequestIN.RequestType |
getRequestType() |
PRRequestor.RequestorType |
getRunWithRequestor() |
boolean |
isFirstRequest() |
boolean |
isLastRequest() |
void |
set(java.lang.String key,
java.lang.Object value)
Any additional parameters that needs to be added can added in the below place holder.
|
void |
setCallerType(RequestIN.CallerType callerType)
Sets the caller type.
|
void |
setEngineDatabase(Database engineDatabase) |
void |
setFirstRequest(boolean isFirstRequest)
Set this flag if the request is first request.
|
void |
setJobID(java.lang.String jobID) |
void |
setLastRequest(boolean isLastRequest) |
void |
setLogPage(ClipboardPage logPage) |
void |
setMoveLog(com.pega.pegarules.priv.rulemgmt.MgmtLog moveLog)
Set the move log so that the returned object can have complete log that was written.
|
void |
setPersistMoveLog(boolean persistMoveLog)
Set the log if the moveLog needs to be persisted into database.
|
void |
setPRThread(PRThread prThread) |
void |
setQueryObjects(java.util.List<T> queryObjects) |
void |
setRequestType(RequestIN.RequestType requestType)
Sets the request type.
RequestIN.RequestType |
void |
setRunWithRequestor(PRRequestor.RequestorType requestorType) |
void |
setSendRequestBackInResponse(boolean sendRequestBackInResponse)
Set the flag if the request needs to send back in the response.
|
void |
setThrowExceptionBack(boolean throwExceptionBack)
Set the flag if the exception needs to be thrown back to the caller.
|
boolean |
shouldPersistMoveLog()
Checks if is persist move log.
|
boolean |
shouldSendRequestBackInResponse()
Checks if is throw exception back.
|
boolean |
shouldThrowExceptionBack()
Checks if is throw exception back.
|
abstract void |
validate()
The validate method needs to be overridden by subclass to perform the validations.
|
public final java.lang.Object get(java.lang.String key)
public final void set(java.lang.String key, java.lang.Object value)
key
- value
- public final PRRequestor.RequestorType getRunWithRequestor()
public final void setRunWithRequestor(PRRequestor.RequestorType requestorType)
public final boolean isLastRequest()
public final void setLastRequest(boolean isLastRequest)
public final boolean isFirstRequest()
public final void setFirstRequest(boolean isFirstRequest)
isFirstRequest
- the new first requestpublic final RequestIN.RequestType getRequestType()
public final void setRequestType(RequestIN.RequestType requestType)
RequestIN.RequestType
requestType
- the new request typepublic final RequestIN.CallerType getCallerType()
public final void setCallerType(RequestIN.CallerType callerType)
RequestIN.CallerType
callerType
- the new caller typepublic final Database getEngineDatabase()
public final PRThread getPRThread()
public final void setPRThread(PRThread prThread)
public final com.pega.pegarules.priv.rulemgmt.MgmtLog getMoveLog()
public final void setEngineDatabase(Database engineDatabase)
public final java.util.List<T> getQueryObjects()
public final void setMoveLog(com.pega.pegarules.priv.rulemgmt.MgmtLog moveLog)
moveLog
- the new move logpublic final void setQueryObjects(java.util.List<T> queryObjects)
public final ClipboardPage getLogPage()
public final void setLogPage(ClipboardPage logPage)
public final boolean shouldPersistMoveLog()
public final void setPersistMoveLog(boolean persistMoveLog)
persistMoveLog
- the new persist move logpublic final boolean shouldThrowExceptionBack()
public final void setThrowExceptionBack(boolean throwExceptionBack)
ResponseOUT.getErrorMessages()
(Or) ResponseOUT.getErrorList(String)
throwExceptionBack
- the new throw exception backpublic final boolean shouldSendRequestBackInResponse()
public final void setSendRequestBackInResponse(boolean sendRequestBackInResponse)
sendRequestBackInResponse
- the new throw exception backpublic java.lang.String getJobID()
public void setJobID(java.lang.String jobID)
public abstract void validate() throws PRException
PRException
- the PR exceptionCopyright © 2018 Pegasystems Inc. All Rights Reserved.