Class RemoteTaskUtils
- java.lang.Object
-
- org.wso2.carbon.ntask.core.impl.remote.RemoteTaskUtils
-
public class RemoteTaskUtils extends Object
This class represents remote task related utility methods.
-
-
Field Summary
Fields Modifier and Type Field Description static String
REG_REMOTE_TASK_PROPS_BASE_PATH
static String
REMOTE_TASK_TASK_NAME
static String
REMOTE_TASK_TASK_TYPE
static String
REMOTE_TASK_TENANT_ID
-
Constructor Summary
Constructors Constructor Description RemoteTaskUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.wso2.carbon.remotetasks.stub.admin.common.xsd.StaticTaskInformation
convert(TaskInfo taskInfo, String taskType, String remoteTaskId, int tenantId)
static String
createRemoteTaskMapping(int tenantId, String taskType, String taskName)
static String
generateRemoteTaskID()
static String
getTenantDomainFromId(int tid)
static Object[]
lookupRemoteTask(String remoteTaskId)
static String
remoteTaskNameFromTaskInfo(String taskType, String taskName)
static void
removeRemoteTaskMapping(String remoteTaskId)
-
-
-
Field Detail
-
REG_REMOTE_TASK_PROPS_BASE_PATH
public static final String REG_REMOTE_TASK_PROPS_BASE_PATH
- See Also:
- Constant Field Values
-
REMOTE_TASK_TENANT_ID
public static final String REMOTE_TASK_TENANT_ID
- See Also:
- Constant Field Values
-
REMOTE_TASK_TASK_TYPE
public static final String REMOTE_TASK_TASK_TYPE
- See Also:
- Constant Field Values
-
REMOTE_TASK_TASK_NAME
public static final String REMOTE_TASK_TASK_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
generateRemoteTaskID
public static String generateRemoteTaskID()
-
removeRemoteTaskMapping
public static void removeRemoteTaskMapping(String remoteTaskId) throws org.wso2.carbon.ntask.common.TaskException
- Throws:
org.wso2.carbon.ntask.common.TaskException
-
createRemoteTaskMapping
public static String createRemoteTaskMapping(int tenantId, String taskType, String taskName) throws org.wso2.carbon.ntask.common.TaskException
- Throws:
org.wso2.carbon.ntask.common.TaskException
-
lookupRemoteTask
public static Object[] lookupRemoteTask(String remoteTaskId) throws org.wso2.carbon.ntask.common.TaskException
- Throws:
org.wso2.carbon.ntask.common.TaskException
-
getTenantDomainFromId
public static String getTenantDomainFromId(int tid)
-
remoteTaskNameFromTaskInfo
public static String remoteTaskNameFromTaskInfo(String taskType, String taskName)
-
-