1010
1111use Ibexa \AdminUi \Permission \LimitationResolverInterface ;
1212use Ibexa \AdminUi \Permission \LookupLimitationsTransformer ;
13+ use Ibexa \AdminUi \REST \Value \ContentTree \LoadSubtreeRequest ;
1314use Ibexa \AdminUi \REST \Value \ContentTree \LoadSubtreeRequestNode ;
1415use Ibexa \AdminUi \REST \Value \ContentTree \Node ;
1516use Ibexa \AdminUi \REST \Value \ContentTree \NodeExtendedInfo ;
1819use Ibexa \AdminUi \Specification \ContentType \ContentTypeIsUser ;
1920use Ibexa \AdminUi \UI \Module \ContentTree \NodeFactory ;
2021use Ibexa \Contracts \Core \Limitation \Target ;
22+ use Ibexa \Contracts \Core \Repository \Exceptions \BadStateException ;
23+ use Ibexa \Contracts \Core \Repository \Exceptions \InvalidArgumentException ;
24+ use Ibexa \Contracts \Core \Repository \Exceptions \NotFoundException ;
25+ use Ibexa \Contracts \Core \Repository \Exceptions \UnauthorizedException ;
2126use Ibexa \Contracts \Core \Repository \LocationService ;
2227use Ibexa \Contracts \Core \Repository \PermissionResolver ;
2328use Ibexa \Contracts \Core \Repository \Values \Content \Content ;
@@ -48,9 +53,9 @@ public function __construct(
4853 }
4954
5055 /**
51- * @throws \Ibexa\Contracts\Core\Repository\Exceptions\ NotFoundException
52- * @throws \Ibexa\Contracts\Core\Repository\Exceptions\ UnauthorizedException
53- * @throws \Ibexa\Contracts\Core\Repository\Exceptions\ InvalidArgumentException
56+ * @throws NotFoundException
57+ * @throws UnauthorizedException
58+ * @throws InvalidArgumentException
5459 */
5560 public function loadChildrenAction (
5661 Request $ request ,
@@ -77,13 +82,13 @@ public function loadChildrenAction(
7782 }
7883
7984 /**
80- * @throws \Ibexa\Contracts\Core\Repository\Exceptions\ InvalidArgumentException
81- * @throws \Ibexa\Contracts\Core\Repository\Exceptions\ NotFoundException
82- * @throws \Ibexa\Contracts\Core\Repository\Exceptions\ UnauthorizedException
85+ * @throws InvalidArgumentException
86+ * @throws NotFoundException
87+ * @throws UnauthorizedException
8388 */
8489 public function loadSubtreeAction (Request $ request ): Root
8590 {
86- /** @var \Ibexa\AdminUi\REST\Value\ContentTree\ LoadSubtreeRequest $loadSubtreeRequest */
91+ /** @var LoadSubtreeRequest $loadSubtreeRequest */
8792 $ loadSubtreeRequest = $ this ->inputDispatcher ->parse (
8893 new Message (
8994 ['Content-Type ' => $ request ->headers ->get ('Content-Type ' )],
@@ -152,9 +157,9 @@ private function prepareLocationsArray(array $locationIdList): array
152157 /**
153158 * @internal for internal use by this package
154159 *
155- * @throws \Ibexa\Contracts\Core\Repository\Exceptions\ BadStateException
156- * @throws \Ibexa\Contracts\Core\Repository\Exceptions\ InvalidArgumentException
157- * @throws \Ibexa\Contracts\Core\Repository\Exceptions\ NotFoundException
160+ * @throws BadStateException
161+ * @throws InvalidArgumentException
162+ * @throws NotFoundException
158163 */
159164 public function loadNodeExtendedInfoAction (Location $ location ): NodeExtendedInfo
160165 {
@@ -174,9 +179,9 @@ public function loadNodeExtendedInfoAction(Location $location): NodeExtendedInfo
174179 /**
175180 * @return TPermissionRestrictions
176181 *
177- * @throws \Ibexa\Contracts\Core\Repository\Exceptions\ BadStateException
178- * @throws \Ibexa\Contracts\Core\Repository\Exceptions\ InvalidArgumentException
179- * @throws \Ibexa\Contracts\Core\Repository\Exceptions\ NotFoundException
182+ * @throws BadStateException
183+ * @throws InvalidArgumentException
184+ * @throws NotFoundException
180185 */
181186 private function getLocationPermissionRestrictions (Location $ location ): array
182187 {
@@ -216,8 +221,8 @@ private function getLocationPermissionRestrictions(Location $location): array
216221 }
217222
218223 /**
219- * @throws \Ibexa\Contracts\Core\Repository\Exceptions\ BadStateException
220- * @throws \Ibexa\Contracts\Core\Repository\Exceptions\ InvalidArgumentException
224+ * @throws BadStateException
225+ * @throws InvalidArgumentException
221226 */
222227 private function canUserRemoveContent (Location $ location ): bool
223228 {
@@ -252,8 +257,8 @@ private function canUserRemoveContent(Location $location): bool
252257 }
253258
254259 /**
255- * @throws \Ibexa\Contracts\Core\Repository\Exceptions\ BadStateException
256- * @throws \Ibexa\Contracts\Core\Repository\Exceptions\ InvalidArgumentException
260+ * @throws BadStateException
261+ * @throws InvalidArgumentException
257262 */
258263 private function canUserHideContent (Location $ location ): bool
259264 {
@@ -271,8 +276,8 @@ private function canUserHideContent(Location $location): bool
271276 }
272277
273278 /**
274- * @throws \Ibexa\Contracts\Core\Repository\Exceptions\ BadStateException
275- * @throws \Ibexa\Contracts\Core\Repository\Exceptions\ InvalidArgumentException
279+ * @throws BadStateException
280+ * @throws InvalidArgumentException
276281 */
277282 private function isPreviewable (
278283 Location $ location ,
@@ -302,8 +307,8 @@ private function isPreviewable(
302307 }
303308
304309 /**
305- * @throws \Ibexa\Contracts\Core\Repository\Exceptions\ BadStateException
306- * @throws \Ibexa\Contracts\Core\Repository\Exceptions\ InvalidArgumentException
310+ * @throws BadStateException
311+ * @throws InvalidArgumentException
307312 */
308313 private function canUserEditContent (Location $ location ): bool
309314 {
0 commit comments