@@ -65,6 +65,9 @@ |
||
65 | 65 | $this->timeFactory = $timeFactory; |
66 | 66 | } |
67 | 67 | |
68 | + /** |
|
69 | + * @return string |
|
70 | + */ |
|
68 | 71 | public function get() { |
69 | 72 | // First check if there is a local valid discovery file |
70 | 73 | try { |
@@ -12,7 +12,6 @@ |
||
12 | 12 | namespace OCA\Richdocuments\Controller; |
13 | 13 | |
14 | 14 | use OCA\Richdocuments\TokenManager; |
15 | -use OCA\Richdocuments\WOPI\Parser; |
|
16 | 15 | use \OCP\AppFramework\Controller; |
17 | 16 | use OCP\AppFramework\Http; |
18 | 17 | use OCP\AppFramework\Http\JSONResponse; |
@@ -28,7 +28,6 @@ |
||
28 | 28 | use OCP\AppFramework\Http\DataResponse; |
29 | 29 | use OCP\AppFramework\OCS\OCSBadRequestException; |
30 | 30 | use OCP\AppFramework\OCS\OCSNotFoundException; |
31 | -use OCP\Files\File; |
|
32 | 31 | use OCP\Files\Folder; |
33 | 32 | use OCP\Files\IRootFolder; |
34 | 33 | use OCP\Files\NotFoundException; |
@@ -31,7 +31,6 @@ |
||
31 | 31 | use OCP\Files\NotFoundException; |
32 | 32 | use OCP\IConfig; |
33 | 33 | use OCP\IL10N; |
34 | -use OCP\IPreview; |
|
35 | 34 | use OCP\IURLGenerator; |
36 | 35 | use OC\Files\AppData\Factory; |
37 | 36 |
@@ -135,6 +135,9 @@ discard block |
||
135 | 135 | $this->l = $l; |
136 | 136 | } |
137 | 137 | |
138 | + /** |
|
139 | + * @param string $userId |
|
140 | + */ |
|
138 | 141 | public function setUserId($userId) { |
139 | 142 | $this->userId = $userId; |
140 | 143 | } |
@@ -297,6 +300,9 @@ discard block |
||
297 | 300 | })); |
298 | 301 | } |
299 | 302 | |
303 | + /** |
|
304 | + * @param string $type |
|
305 | + */ |
|
300 | 306 | public function getAllFormatted($type) { |
301 | 307 | if (!array_key_exists($type, self::$tplTypes)) { |
302 | 308 | return []; |
@@ -429,6 +435,9 @@ discard block |
||
429 | 435 | ]; |
430 | 436 | } |
431 | 437 | |
438 | + /** |
|
439 | + * @param integer $fileId |
|
440 | + */ |
|
432 | 441 | public function isTemplate($fileId) { |
433 | 442 | $empty = $this->getEmpty(); |
434 | 443 | $system = $this->getSystem(); |
@@ -23,14 +23,10 @@ |
||
23 | 23 | |
24 | 24 | namespace OCA\Richdocuments; |
25 | 25 | |
26 | -use OCP\AppFramework\Utility\ITimeFactory; |
|
27 | 26 | use OCP\Capabilities\ICapability; |
28 | 27 | use OCP\Files\IAppData; |
29 | 28 | use OCP\Files\NotFoundException; |
30 | 29 | use OCP\Files\SimpleFS\ISimpleFolder; |
31 | -use OCP\Http\Client\IClientService; |
|
32 | -use OCP\IConfig; |
|
33 | -use OCP\IURLGenerator; |
|
34 | 30 | |
35 | 31 | class Capabilities implements ICapability { |
36 | 32 |
@@ -14,7 +14,6 @@ |
||
14 | 14 | use OCA\Richdocuments\Service\CapabilitiesService; |
15 | 15 | use OCA\Richdocuments\WOPI\DiscoveryManager; |
16 | 16 | use \OCP\AppFramework\Controller; |
17 | -use OCP\AppFramework\Http; |
|
18 | 17 | use OCP\AppFramework\Http\DataResponse; |
19 | 18 | use OCP\AppFramework\Http\JSONResponse; |
20 | 19 | use \OCP\IRequest; |
@@ -25,7 +25,6 @@ |
||
25 | 25 | |
26 | 26 | use OCP\Files\IAppData; |
27 | 27 | use OCP\Files\NotFoundException; |
28 | -use OCP\Files\SimpleFS\ISimpleFile; |
|
29 | 28 | use OCP\Files\SimpleFS\ISimpleFolder; |
30 | 29 | use OCP\Http\Client\IClientService; |
31 | 30 | use OCP\IConfig; |