@@ -89,7 +89,7 @@ |
||
89 | 89 | /** |
90 | 90 | * Get current user permissions for a board |
91 | 91 | * |
92 | - * @param Board|Entity $board |
|
92 | + * @param Board $board |
|
93 | 93 | * @return array|bool |
94 | 94 | * @internal param $boardId |
95 | 95 | */ |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | |
93 | 93 | /** |
94 | 94 | * @param $id |
95 | - * @return RelationalEntity if not found |
|
95 | + * @return Entity if not found |
|
96 | 96 | * @throws \OCP\AppFramework\Db\MultipleObjectsReturnedException |
97 | 97 | * @throws \OCP\AppFramework\Db\DoesNotExistException |
98 | 98 | */ |
@@ -136,6 +136,9 @@ discard block |
||
136 | 136 | return parent::delete($entity); |
137 | 137 | } |
138 | 138 | |
139 | + /** |
|
140 | + * @param integer $stackId |
|
141 | + */ |
|
139 | 142 | public function deleteByStack($stackId) { |
140 | 143 | $cards = $this->findAllByStack($stackId); |
141 | 144 | foreach ($cards as $card) { |
@@ -63,7 +63,7 @@ |
||
63 | 63 | * Check if user exists before assigning it to a card |
64 | 64 | * |
65 | 65 | * @param Entity $entity |
66 | - * @return null|Entity |
|
66 | + * @return AssignedUsers|null |
|
67 | 67 | */ |
68 | 68 | public function insert(Entity $entity) { |
69 | 69 | $user = $this->userManager->get($entity->getParticipant()); |
@@ -163,7 +163,7 @@ |
||
163 | 163 | * @param $cardId |
164 | 164 | * @param $attachmentId |
165 | 165 | * @param $request |
166 | - * @return mixed |
|
166 | + * @return \OCP\AppFramework\Db\Entity |
|
167 | 167 | * @throws \OCA\Deck\NoPermissionException |
168 | 168 | * @throws \OCP\AppFramework\Db\DoesNotExistException |
169 | 169 | * @throws \OCP\AppFramework\Db\MultipleObjectsReturnedException |
@@ -30,8 +30,6 @@ |
||
30 | 30 | use OCA\Deck\Db\Stack; |
31 | 31 | use OCA\Deck\Db\StackMapper; |
32 | 32 | use OCA\Deck\StatusException; |
33 | -use OCP\ICache; |
|
34 | -use OCP\ICacheFactory; |
|
35 | 33 | |
36 | 34 | |
37 | 35 | class StackService { |
@@ -23,15 +23,11 @@ |
||
23 | 23 | |
24 | 24 | namespace OCA\Deck\Service; |
25 | 25 | |
26 | -use OC\Security\CSP\ContentSecurityPolicyManager; |
|
27 | 26 | use OCA\Deck\Db\Attachment; |
28 | 27 | use OCA\Deck\StatusException; |
29 | 28 | use OCP\AppFramework\Http\ContentSecurityPolicy; |
30 | -use OCP\AppFramework\Http\EmptyContentSecurityPolicy; |
|
31 | 29 | use OCP\AppFramework\Http\FileDisplayResponse; |
32 | 30 | use OCP\AppFramework\Http\StreamResponse; |
33 | -use OCP\Files\Cache\IScanner; |
|
34 | -use OCP\Files\Folder; |
|
35 | 31 | use OCP\Files\IAppData; |
36 | 32 | use OCP\Files\IRootFolder; |
37 | 33 | use OCP\Files\NotFoundException; |