Class RemoteTaskUtils


  • public class RemoteTaskUtils
    extends Object
    This class represents remote task related utility methods.
    • Constructor Detail

      • RemoteTaskUtils

        public RemoteTaskUtils()
    • 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)
      • convert

        public static org.wso2.carbon.remotetasks.stub.admin.common.xsd.StaticTaskInformation convert​(TaskInfo taskInfo,
                                                                                                      String taskType,
                                                                                                      String remoteTaskId,
                                                                                                      int tenantId)
                                                                                               throws org.wso2.carbon.ntask.common.TaskException
        Throws:
        org.wso2.carbon.ntask.common.TaskException