@@ -14,7 +14,6 @@ |
||
14 | 14 | use OCA\Richdocuments\Db\WopiMapper; |
15 | 15 | use OCA\Richdocuments\Service\FederationService; |
16 | 16 | use OCA\Richdocuments\TokenManager; |
17 | -use OCA\Richdocuments\WOPI\Parser; |
|
18 | 17 | use \OCP\AppFramework\Controller; |
19 | 18 | use OCP\AppFramework\Http; |
20 | 19 | use OCP\AppFramework\Http\JSONResponse; |
@@ -189,6 +189,10 @@ |
||
189 | 189 | } |
190 | 190 | } |
191 | 191 | |
192 | + /** |
|
193 | + * @param string $userId |
|
194 | + * @param integer $templateDestination |
|
195 | + */ |
|
192 | 196 | public function getTokenForTemplate(File $file, $userId, $templateDestination, $direct = false) { |
193 | 197 | $owneruid = $userId; |
194 | 198 | $editoruid = $userId; |
@@ -32,7 +32,6 @@ |
||
32 | 32 | use OCP\IGroupManager; |
33 | 33 | use OCP\IURLGenerator; |
34 | 34 | use OCP\IUserManager; |
35 | -use OCP\Security\ISecureRandom; |
|
36 | 35 | use OCP\Share\IManager; |
37 | 36 | use OCP\IL10N; |
38 | 37 | use OCP\Util; |