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