public class IntegrationContext extends java.lang.Object implements MetaDataProperties
ACCESSMODIFIER, CURRENTDISPLAYKEY, CURRENTKEY, CURRENTOBJNUM, DEFAULT, ENDPOINT, ENDPOINTPROPS, ERDATA, IMPORTUSERINFO, INTERNALRESPONSE, IRDATA, ISPREVIEW, JTA, MAXCOUNT, OSFILTER, PRIMARYOBJECT, PROCESSRULES, RUNASLOGINID, SOURCEOBJECT, SOURCETYPE, SYNCRESPONSE, TARGET_OBJECT, TARGETOBJECT, UNIQUEID, USERRESPONSE, WSIOTXN
Modifier and Type | Method and Description |
---|---|
static IntegrationContext |
createCurrentContext()
Creates Integration Context if its not there and returnes it
if no IntegrationContext is assocoated with the current thread.
|
static void |
destroyCurrentContext() |
java.lang.String |
getAPICsrfToken() |
boolean |
getBooleanProperty(java.lang.String propName,
boolean dflt)
Return proprty value for specified property as Integer
|
java.util.Map<java.lang.String,java.util.Set<java.lang.Long>> |
getBranchFilter() |
static IntegrationContext |
getCurrentContext()
Returns Integration Context
|
java.util.Date |
getDateProperty(java.lang.String propName)
Return proprty value for specified property as Date
|
java.lang.Double |
getDoubleProperty(java.lang.String propName)
Return proprty value for specified property as Double
|
java.lang.Integer |
getIntegerProperty(java.lang.String propName)
Return proprty value for specified property as Integer
|
java.lang.Long |
getLongProperty(java.lang.String propName)
Return proprty value for specified property as Long
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
returns Map of all context properties.
|
java.lang.Object |
getProperty(java.lang.String propName)
Return proprty value for specified property
|
java.lang.String |
getStringProperty(java.lang.String propName)
Return proprty value for specified property as string
|
boolean |
isAPICall() |
boolean |
isInteractive() |
boolean |
isMonitorTokenAPICall() |
void |
removeProperty(java.lang.String propName)
Removes property
propName . |
void |
setAPICall() |
void |
setAPICsrfToken(java.lang.String csrfToken) |
void |
setDoubleProperty(java.lang.String propName,
double val)
Sets property with double value
|
void |
setIntegerProperty(java.lang.String propName,
int val)
Sets property with integer value
|
void |
setInteractive(boolean b) |
void |
setLongProperty(java.lang.String propName,
long val)
Sets property with integer value
|
void |
setProperties(java.util.Map<java.lang.String,java.lang.Object> data)
Sets properties from the list
|
void |
setProperty(java.lang.String propName,
java.lang.Object value)
Sets property with any value
|
void |
setupBranchFilter(java.lang.String name,
java.lang.Long id) |
void |
softClearContext() |
public boolean isAPICall()
public boolean isMonitorTokenAPICall()
public java.lang.String getAPICsrfToken()
public void setAPICsrfToken(java.lang.String csrfToken)
public void setupBranchFilter(java.lang.String name, java.lang.Long id)
public java.util.Map<java.lang.String,java.util.Set<java.lang.Long>> getBranchFilter()
public void setAPICall()
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
public java.lang.Object getProperty(java.lang.String propName)
propName
- property namepublic java.lang.String getStringProperty(java.lang.String propName)
propName
- property namepublic java.lang.Integer getIntegerProperty(java.lang.String propName)
propName
- property namepublic boolean getBooleanProperty(java.lang.String propName, boolean dflt)
propName
- property namepublic java.lang.Long getLongProperty(java.lang.String propName)
propName
- property namepublic void setLongProperty(java.lang.String propName, long val)
propName
- property nameval
- property valuepublic void setIntegerProperty(java.lang.String propName, int val)
propName
- property nameval
- property valuepublic void setDoubleProperty(java.lang.String propName, double val)
propName
- property nameval
- property valuepublic java.lang.Double getDoubleProperty(java.lang.String propName)
propName
- property namepublic java.util.Date getDateProperty(java.lang.String propName)
propName
- property namepublic void setProperty(java.lang.String propName, java.lang.Object value)
propName
- property namevalue
- property valuepublic void removeProperty(java.lang.String propName)
propName
.propName
- name of the property.public void setProperties(java.util.Map<java.lang.String,java.lang.Object> data)
data
- set of properties for the context.public static IntegrationContext getCurrentContext()
public static IntegrationContext createCurrentContext()
create
.public static void destroyCurrentContext()
public void softClearContext()
public void setInteractive(boolean b)
public boolean isInteractive()