public class BackgroundTaskManagerUtil
extends Object
Constructor and Description |
---|
BackgroundTaskManagerUtil() |
Modifier and Type | Method and Description |
---|---|
static BackgroundTask |
addBackgroundTask(long userId,
long groupId,
String name,
String[] servletContextNames,
Class<?> taskExecutorClass,
Map<String,Serializable> taskContextMap,
ServiceContext serviceContext) |
static BackgroundTask |
addBackgroundTask(long userId,
long groupId,
String name,
String taskExecutorClassName,
Map<String,Serializable> taskContextMap,
ServiceContext serviceContext) |
static void |
addBackgroundTaskAttachment(long userId,
long backgroundTaskId,
String fileName,
File file) |
static BackgroundTask |
amendBackgroundTask(long backgroundTaskId,
Map<String,Serializable> taskContextMap,
int status,
ServiceContext serviceContext) |
static BackgroundTask |
amendBackgroundTask(long backgroundTaskId,
Map<String,Serializable> taskContextMap,
int status,
String statusMessage,
ServiceContext serviceContext) |
static void |
cleanUpBackgroundTask(BackgroundTask backgroundTask,
int status) |
static void |
cleanUpBackgroundTasks() |
static BackgroundTask |
deleteBackgroundTask(long backgroundTaskId) |
static void |
deleteCompanyBackgroundTasks(long companyId) |
static void |
deleteGroupBackgroundTasks(long groupId) |
static void |
deleteGroupBackgroundTasks(long groupId,
String name,
String taskExecutorClassName) |
static BackgroundTask |
fetchBackgroundTask(long backgroundTaskId) |
static BackgroundTask |
fetchFirstBackgroundTask(long groupId,
String taskExecutorClassName,
boolean completed,
OrderByComparator<BackgroundTask> orderByComparator) |
static BackgroundTask |
fetchFirstBackgroundTask(String taskExecutorClassName,
int status) |
static BackgroundTask |
fetchFirstBackgroundTask(String taskExecutorClassName,
int status,
OrderByComparator<BackgroundTask> orderByComparator) |
static BackgroundTask |
getBackgroundTask(long backgroundTaskId) |
static List<BackgroundTask> |
getBackgroundTasks(long[] groupIds,
String taskExecutorClassName,
boolean completed,
int start,
int end,
OrderByComparator<BackgroundTask> orderByComparator) |
static List<BackgroundTask> |
getBackgroundTasks(long[] groupIds,
String taskExecutorClassName,
int start,
int end,
OrderByComparator<BackgroundTask> orderByComparator) |
static List<BackgroundTask> |
getBackgroundTasks(long[] groupIds,
String name,
String taskExecutorClassName,
int start,
int end,
OrderByComparator<BackgroundTask> orderByComparator) |
static List<BackgroundTask> |
getBackgroundTasks(long groupId,
int status) |
static List<BackgroundTask> |
getBackgroundTasks(long groupId,
String taskExecutorClassName) |
static List<BackgroundTask> |
getBackgroundTasks(long groupId,
String[] taskExecutorClassNames) |
static List<BackgroundTask> |
getBackgroundTasks(long groupId,
String[] taskExecutorClassNames,
int status) |
static List<BackgroundTask> |
getBackgroundTasks(long groupId,
String[] taskExecutorClassNames,
int start,
int end,
OrderByComparator<BackgroundTask> orderByComparator) |
static List<BackgroundTask> |
getBackgroundTasks(long groupId,
String taskExecutorClassName,
boolean completed,
int start,
int end,
OrderByComparator<BackgroundTask> orderByComparator) |
static List<BackgroundTask> |
getBackgroundTasks(long groupId,
String taskExecutorClassName,
int status) |
static List<BackgroundTask> |
getBackgroundTasks(long groupId,
String taskExecutorClassName,
int start,
int end,
OrderByComparator<BackgroundTask> orderByComparator) |
static List<BackgroundTask> |
getBackgroundTasks(long groupId,
String name,
String taskExecutorClassName,
int start,
int end,
OrderByComparator<BackgroundTask> orderByComparator) |
static List<BackgroundTask> |
getBackgroundTasks(String[] taskExecutorClassNames,
int status) |
static List<BackgroundTask> |
getBackgroundTasks(String[] taskExecutorClassNames,
int status,
int start,
int end,
OrderByComparator<BackgroundTask> orderByComparator) |
static List<BackgroundTask> |
getBackgroundTasks(String taskExecutorClassName,
int status) |
static List<BackgroundTask> |
getBackgroundTasks(String taskExecutorClassName,
int status,
int start,
int end,
OrderByComparator<BackgroundTask> orderByComparator) |
static int |
getBackgroundTasksCount(long[] groupIds,
String taskExecutorClassName) |
static int |
getBackgroundTasksCount(long[] groupIds,
String taskExecutorClassName,
boolean completed) |
static int |
getBackgroundTasksCount(long[] groupIds,
String name,
String taskExecutorClassName) |
static int |
getBackgroundTasksCount(long[] groupIds,
String name,
String taskExecutorClassName,
boolean completed) |
static int |
getBackgroundTasksCount(long groupId,
String taskExecutorClassName) |
static int |
getBackgroundTasksCount(long groupId,
String[] taskExecutorClassNames) |
static int |
getBackgroundTasksCount(long groupId,
String[] taskExecutorClassNames,
boolean completed) |
static int |
getBackgroundTasksCount(long groupId,
String taskExecutorClassName,
boolean completed) |
static int |
getBackgroundTasksCount(long groupId,
String name,
String taskExecutorClassName) |
static int |
getBackgroundTasksCount(long groupId,
String name,
String taskExecutorClassName,
boolean completed) |
static String |
getBackgroundTaskStatusJSON(long backgroundTaskId) |
static void |
resumeBackgroundTask(long backgroundTaskId) |
static void |
triggerBackgroundTask(long backgroundTaskId) |
public static BackgroundTask addBackgroundTask(long userId, long groupId, String name, String taskExecutorClassName, Map<String,Serializable> taskContextMap, ServiceContext serviceContext) throws PortalException
PortalException
public static BackgroundTask addBackgroundTask(long userId, long groupId, String name, String[] servletContextNames, Class<?> taskExecutorClass, Map<String,Serializable> taskContextMap, ServiceContext serviceContext) throws PortalException
PortalException
public static void addBackgroundTaskAttachment(long userId, long backgroundTaskId, String fileName, File file) throws PortalException
PortalException
public static BackgroundTask amendBackgroundTask(long backgroundTaskId, Map<String,Serializable> taskContextMap, int status, ServiceContext serviceContext)
public static BackgroundTask amendBackgroundTask(long backgroundTaskId, Map<String,Serializable> taskContextMap, int status, String statusMessage, ServiceContext serviceContext)
public static void cleanUpBackgroundTask(BackgroundTask backgroundTask, int status)
public static void cleanUpBackgroundTasks()
public static BackgroundTask deleteBackgroundTask(long backgroundTaskId) throws PortalException
PortalException
public static void deleteCompanyBackgroundTasks(long companyId) throws PortalException
PortalException
public static void deleteGroupBackgroundTasks(long groupId) throws PortalException
PortalException
public static void deleteGroupBackgroundTasks(long groupId, String name, String taskExecutorClassName) throws PortalException
PortalException
public static BackgroundTask fetchBackgroundTask(long backgroundTaskId)
public static BackgroundTask fetchFirstBackgroundTask(long groupId, String taskExecutorClassName, boolean completed, OrderByComparator<BackgroundTask> orderByComparator)
public static BackgroundTask fetchFirstBackgroundTask(String taskExecutorClassName, int status)
public static BackgroundTask fetchFirstBackgroundTask(String taskExecutorClassName, int status, OrderByComparator<BackgroundTask> orderByComparator)
public static BackgroundTask getBackgroundTask(long backgroundTaskId) throws PortalException
PortalException
public static List<BackgroundTask> getBackgroundTasks(long groupId, int status)
public static List<BackgroundTask> getBackgroundTasks(long groupId, String taskExecutorClassName)
public static List<BackgroundTask> getBackgroundTasks(long groupId, String taskExecutorClassName, boolean completed, int start, int end, OrderByComparator<BackgroundTask> orderByComparator)
public static List<BackgroundTask> getBackgroundTasks(long groupId, String taskExecutorClassName, int status)
public static List<BackgroundTask> getBackgroundTasks(long groupId, String taskExecutorClassName, int start, int end, OrderByComparator<BackgroundTask> orderByComparator)
public static List<BackgroundTask> getBackgroundTasks(long groupId, String name, String taskExecutorClassName, int start, int end, OrderByComparator<BackgroundTask> orderByComparator)
public static List<BackgroundTask> getBackgroundTasks(long groupId, String[] taskExecutorClassNames)
public static List<BackgroundTask> getBackgroundTasks(long groupId, String[] taskExecutorClassNames, int status)
public static List<BackgroundTask> getBackgroundTasks(long groupId, String[] taskExecutorClassNames, int start, int end, OrderByComparator<BackgroundTask> orderByComparator)
public static List<BackgroundTask> getBackgroundTasks(long[] groupIds, String taskExecutorClassName, boolean completed, int start, int end, OrderByComparator<BackgroundTask> orderByComparator)
public static List<BackgroundTask> getBackgroundTasks(long[] groupIds, String taskExecutorClassName, int start, int end, OrderByComparator<BackgroundTask> orderByComparator)
public static List<BackgroundTask> getBackgroundTasks(long[] groupIds, String name, String taskExecutorClassName, int start, int end, OrderByComparator<BackgroundTask> orderByComparator)
public static List<BackgroundTask> getBackgroundTasks(String taskExecutorClassName, int status)
public static List<BackgroundTask> getBackgroundTasks(String taskExecutorClassName, int status, int start, int end, OrderByComparator<BackgroundTask> orderByComparator)
public static List<BackgroundTask> getBackgroundTasks(String[] taskExecutorClassNames, int status)
public static List<BackgroundTask> getBackgroundTasks(String[] taskExecutorClassNames, int status, int start, int end, OrderByComparator<BackgroundTask> orderByComparator)
public static int getBackgroundTasksCount(long groupId, String taskExecutorClassName)
public static int getBackgroundTasksCount(long groupId, String taskExecutorClassName, boolean completed)
public static int getBackgroundTasksCount(long groupId, String name, String taskExecutorClassName)
public static int getBackgroundTasksCount(long groupId, String name, String taskExecutorClassName, boolean completed)
public static int getBackgroundTasksCount(long groupId, String[] taskExecutorClassNames)
public static int getBackgroundTasksCount(long groupId, String[] taskExecutorClassNames, boolean completed)
public static int getBackgroundTasksCount(long[] groupIds, String taskExecutorClassName)
public static int getBackgroundTasksCount(long[] groupIds, String taskExecutorClassName, boolean completed)
public static int getBackgroundTasksCount(long[] groupIds, String name, String taskExecutorClassName)
public static int getBackgroundTasksCount(long[] groupIds, String name, String taskExecutorClassName, boolean completed)
public static String getBackgroundTaskStatusJSON(long backgroundTaskId)
public static void resumeBackgroundTask(long backgroundTaskId)
public static void triggerBackgroundTask(long backgroundTaskId)