|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.dataservices.task.DataTaskContext
public class DataTaskContext
This class represents a context class used in data tasks.
| Constructor Summary | |
|---|---|
DataTaskContext(int tid)
|
|
| Method Summary | |
|---|---|
org.apache.axiom.om.OMElement |
accessResource(String serviceName,
String resourcePath,
Map<String,org.wso2.carbon.dataservices.core.engine.ParamValue> params,
String accessMethod)
Accesses a data services resource. |
boolean |
checkServices(String... services)
Checks if the given services are available. |
Map<String,String> |
getDataTaskProperties()
|
void |
invokeOperation(String serviceName,
String operationName,
List<Map<String,org.wso2.carbon.dataservices.core.engine.ParamValue>> batchParams)
Invokes a batch data service operation |
org.apache.axiom.om.OMElement |
invokeOperation(String serviceName,
String operationName,
Map<String,org.wso2.carbon.dataservices.core.engine.ParamValue> params)
Invokes a single data service operation. |
void |
setDataServicesUser(String username,
String password)
Sets the Carbon user for the current thread of execution. |
void |
setDataTaskProperties(Map<String,String> dataTaskProperties)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataTaskContext(int tid)
| Method Detail |
|---|
public boolean checkServices(String... services)
services - An array of service names to be checked
public org.apache.axiom.om.OMElement invokeOperation(String serviceName,
String operationName,
Map<String,org.wso2.carbon.dataservices.core.engine.ParamValue> params)
throws org.wso2.carbon.dataservices.core.DataServiceFault
serviceName - The name of the data serviceoperationName - The data service operation nameparams - The parameters to be passed into the operation
org.wso2.carbon.dataservices.core.DataServiceFault - If an error occurs in the service invocation
public void invokeOperation(String serviceName,
String operationName,
List<Map<String,org.wso2.carbon.dataservices.core.engine.ParamValue>> batchParams)
throws org.wso2.carbon.dataservices.core.DataServiceFault
serviceName - The name of the data serviceoperationName - The data service batch operation namebatchParams - The batch parameters to be passed into the operation
org.wso2.carbon.dataservices.core.DataServiceFault - If an error occurs in the service invocation
public org.apache.axiom.om.OMElement accessResource(String serviceName,
String resourcePath,
Map<String,org.wso2.carbon.dataservices.core.engine.ParamValue> params,
String accessMethod)
throws org.wso2.carbon.dataservices.core.DataServiceFault
serviceName - The name of the data serviceresourcePath - The resource path used to access the resourceparams - The parameters passed into the resource accessaccessMethod - The HTTP access method
org.wso2.carbon.dataservices.core.DataServiceFault - If an error occurs in the service invocation
public void setDataServicesUser(String username,
String password)
throws org.wso2.carbon.dataservices.core.DataServiceFault
username - The usernamepassword - The password
org.wso2.carbon.dataservices.core.DataServiceFault - If an error occurs in the service invocationpublic Map<String,String> getDataTaskProperties()
public void setDataTaskProperties(Map<String,String> dataTaskProperties)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||