本文整理了Java中com.evolveum.midpoint.task.api.TaskManager.resumeTasks()
方法的一些代码示例,展示了TaskManager.resumeTasks()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TaskManager.resumeTasks()
方法的具体详情如下:
包路径:com.evolveum.midpoint.task.api.TaskManager
类名称:TaskManager
方法名:resumeTasks
[英]Resume suspended tasks.
[中]恢复暂停的任务。
代码示例来源:origin: Evolveum/midpoint
@Override
public void resumeTasks(Collection<String> taskOids, Task operationTask, OperationResult parentResult) throws SecurityViolationException, ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException {
authorizeTaskCollectionOperation(ModelAuthorizationAction.RESUME_TASK, taskOids, operationTask, parentResult);
taskManager.resumeTasks(taskOids, parentResult);
}
代码示例来源:origin: Evolveum/midpoint
protected void resetTriggerTask(String taskOid, File taskFile, OperationResult result)
throws ObjectNotFoundException, SchemaException, ObjectAlreadyExistsException, FileNotFoundException {
taskManager.suspendAndDeleteTasks(Collections.singletonList(taskOid), 60000L, true, result);
importObjectFromFile(taskFile, result);
taskManager.suspendTasks(Collections.singletonList(taskOid), 60000L, result);
modifySystemObjectInRepo(TaskType.class, taskOid,
prismContext.deltaFor(TaskType.class)
.item(TaskType.F_SCHEDULE).replace()
.asItemDeltas(),
result);
taskManager.resumeTasks(singleton(taskOid), result);
}
代码示例来源:origin: Evolveum/midpoint
taskManager.resumeTasks(TaskUtil.tasksToOids(task.listSubtasks(true, opResult)), opResult);
LOGGER.info("Worker tasks were successfully created for coordinator {}", task);
} catch (SchemaException | ObjectNotFoundException | ObjectAlreadyExistsException e) {
代码示例来源:origin: Evolveum/midpoint
testTriggerHandler.setDelay(ONE_DAY);
taskManager.resumeTasks(singleton(TASK_TRIGGER_SCANNER_OID), result);
内容来源于网络,如有侵权,请联系作者删除!