Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3/**
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; under version 2
7 * of the License (non-upgradable).
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
17 *
18 * Copyright (c) 2017 (original work) Open Assessment Technologies SA (under the project TAO-PRODUCT);
19 *
20 */
21
22namespace oat\oatbox\task\TaskInterface;
23
24use oat\oatbox\task\Queue;
25use oat\oatbox\task\Task;
26
27/**
28 * @deprecated since version 7.10.0, to be removed in 8.0. Use \oat\tao\model\taskQueue\QueueDispatcher instead.
29 */
30interface TaskQueue extends Queue
31{
32    /**
33     * @deprecated since version 7.10.0, to be removed in 8.0.
34     *
35     * @return TaskPersistenceInterface
36     */
37    public function getPersistence();
38
39    /**
40     * @deprecated since version 7.10.0, to be removed in 8.0.
41     *
42     * @param TaskPersistenceInterface $persistence
43     * @return $this
44     */
45    public function setPersistence(TaskPersistenceInterface $persistence);
46
47    /**
48     * @deprecated since version 7.10.0, to be removed in 8.0.
49     *
50     * @param TaskRunner $runner
51     * @return $this
52     */
53    public function setRunner(TaskRunner $runner);
54
55    /**
56     * @deprecated since version 7.10.0, to be removed in 8.0.
57     *
58     * @return TaskRunner
59     */
60    public function getRunner();
61
62    /**
63     * @deprecated since version 7.10.0, to be removed in 8.0.
64     *
65     * @param Task $task
66     * @return mixed
67     */
68    public function runTask(Task $task);
69
70    /**
71     * @deprecated since version 7.10.0, to be removed in 8.0.
72     *
73     * @param $currentUserId
74     * @return TaskPayLoad
75     */
76    public function getPayload($currentUserId);
77
78    /**
79     * @deprecated since version 7.10.0, to be removed in 8.0.
80     *
81     * Get resource from rdf storage which represents task in the task queue by linked resource
82     * Returns null if there is no task linked to given resource
83     * @param \core_kernel_classes_Resource $resource
84     * @return mixed
85     */
86    public function getTaskResource(\core_kernel_classes_Resource $resource);
87
88    /**
89     * @deprecated since version 7.10.0, to be removed in 8.0.
90     *
91     * @param \core_kernel_classes_Resource $resource
92     * @return \common_report_Report
93     */
94    public function getReportByLinkedResource(\core_kernel_classes_Resource $resource);
95
96    /**
97     * Create task resource in the rdf storage and link placeholder resource to it.
98     *
99     * @deprecated since version 7.10.0, to be removed in 8.0.
100     *
101     * @param Task $task
102     * @param \core_kernel_classes_Resource|null $resource - placeholder resource to be linked with task.
103     */
104    public function linkTask(Task $task, \core_kernel_classes_Resource $resource = null);
105}