|
37 | 37 | use Tuleap\Docman\REST\v1\Metadata\HardcodedMetadataUsageChecker;
|
38 | 38 | use Tuleap\Docman\REST\v1\Metadata\HardcodedMetdataObsolescenceDateChecker;
|
39 | 39 | use Tuleap\Docman\REST\v1\Metadata\ItemStatusMapper;
|
40 |
| -use Tuleap\Docman\REST\v1\Metadata\StatusNotFoundException; |
41 | 40 | use Tuleap\Docman\REST\v1\Wiki\DocmanWikiPOSTRepresentation;
|
42 | 41 | use Tuleap\Docman\Upload\Document\DocumentOngoingUploadRetriever;
|
43 | 42 | use Tuleap\Docman\Upload\Document\DocumentToUploadCreator;
|
@@ -141,25 +140,15 @@ private function checkDocumentIsNotBeingUploaded(
|
141 | 140 | }
|
142 | 141 |
|
143 | 142 | /**
|
144 |
| - * @param $item_type_id |
145 |
| - * @param \DateTimeImmutable $current_time |
146 |
| - * @param Docman_Item $parent_item |
147 |
| - * @param PFUser $user |
148 |
| - * @param Project $project |
149 |
| - * @param $title |
150 |
| - * @param $description |
151 |
| - * @param string $status |
152 |
| - * @param string $obsolescence_date |
153 |
| - * @param $wiki_page |
154 |
| - * @param $link_url |
155 |
| - * @param $content |
156 |
| - * |
157 | 143 | * @return CreatedItemRepresentation
|
158 | 144 | * @throws Metadata\InvalidDateComparisonException
|
159 | 145 | * @throws Metadata\InvalidDateTimeFormatException
|
160 | 146 | * @throws Metadata\ItemStatusUsageMismatchException
|
161 |
| - * @throws Metadata\ObsoloscenceDateUsageMismatchException |
162 |
| - * @throws StatusNotFoundException |
| 147 | + * @throws Metadata\ObsolescenceDateDisabledException |
| 148 | + * @throws Metadata\ObsolescenceDateMissingParameterException |
| 149 | + * @throws Metadata\ObsolescenceDateNullException |
| 150 | + * @throws Metadata\StatusNotFoundBadStatusGivenException |
| 151 | + * @throws Metadata\StatusNotFoundNullException |
163 | 152 | * @throws \Tuleap\Docman\CannotInstantiateItemWeHaveJustCreatedInDBException
|
164 | 153 | */
|
165 | 154 | private function createDocument(
|
@@ -223,12 +212,15 @@ private function createDocument(
|
223 | 212 | }
|
224 | 213 |
|
225 | 214 | /**
|
226 |
| - * @throws RestException |
227 |
| - * @throws Metadata\ItemStatusUsageMismatchException |
228 |
| - * @throws StatusNotFoundException |
229 |
| - * @throws Metadata\ObsoloscenceDateUsageMismatchException |
230 |
| - * @throws Metadata\InvalidDateTimeFormatException |
231 | 215 | * @throws Metadata\InvalidDateComparisonException
|
| 216 | + * @throws Metadata\InvalidDateTimeFormatException |
| 217 | + * @throws Metadata\ItemStatusUsageMismatchException |
| 218 | + * @throws Metadata\ObsolescenceDateDisabledException |
| 219 | + * @throws Metadata\ObsolescenceDateMissingParameterException |
| 220 | + * @throws Metadata\ObsolescenceDateNullException |
| 221 | + * @throws Metadata\StatusNotFoundBadStatusGivenException |
| 222 | + * @throws Metadata\StatusNotFoundNullException |
| 223 | + * @throws RestException |
232 | 224 | */
|
233 | 225 | public function createFileDocument(
|
234 | 226 | Docman_Item $parent_item,
|
@@ -296,19 +288,15 @@ public function createFileDocument(
|
296 | 288 | }
|
297 | 289 |
|
298 | 290 | /**
|
299 |
| - * @param Docman_Item $parent_item |
300 |
| - * @param PFUser $user |
301 |
| - * @param DocmanFolderPOSTRepresentation $representation |
302 |
| - * @param \DateTimeImmutable $current_time |
303 |
| - * @param Project $project |
304 |
| - * |
305 |
| - * @return CreatedItemRepresentation |
306 | 291 | * @throws Metadata\InvalidDateComparisonException
|
307 | 292 | * @throws Metadata\InvalidDateTimeFormatException
|
308 | 293 | * @throws Metadata\ItemStatusUsageMismatchException
|
309 |
| - * @throws Metadata\ObsoloscenceDateUsageMismatchException |
| 294 | + * @throws Metadata\ObsolescenceDateDisabledException |
| 295 | + * @throws Metadata\ObsolescenceDateMissingParameterException |
| 296 | + * @throws Metadata\ObsolescenceDateNullException |
| 297 | + * @throws Metadata\StatusNotFoundBadStatusGivenException |
| 298 | + * @throws Metadata\StatusNotFoundNullException |
310 | 299 | * @throws RestException
|
311 |
| - * @throws StatusNotFoundException |
312 | 300 | * @throws \Tuleap\Docman\CannotInstantiateItemWeHaveJustCreatedInDBException
|
313 | 301 | */
|
314 | 302 | public function createFolder(
|
@@ -347,19 +335,15 @@ public function createFolder(
|
347 | 335 | }
|
348 | 336 |
|
349 | 337 | /**
|
350 |
| - * @param Docman_Item $parent_item |
351 |
| - * @param PFUser $user |
352 |
| - * @param DocmanEmptyPOSTRepresentation $representation |
353 |
| - * @param \DateTimeImmutable $current_time |
354 |
| - * @param Project $project |
355 |
| - * |
356 |
| - * @return CreatedItemRepresentation |
357 | 338 | * @throws Metadata\InvalidDateComparisonException
|
358 | 339 | * @throws Metadata\InvalidDateTimeFormatException
|
359 | 340 | * @throws Metadata\ItemStatusUsageMismatchException
|
360 |
| - * @throws Metadata\ObsoloscenceDateUsageMismatchException |
| 341 | + * @throws Metadata\ObsolescenceDateDisabledException |
| 342 | + * @throws Metadata\ObsolescenceDateMissingParameterException |
| 343 | + * @throws Metadata\ObsolescenceDateNullException |
| 344 | + * @throws Metadata\StatusNotFoundBadStatusGivenException |
| 345 | + * @throws Metadata\StatusNotFoundNullException |
361 | 346 | * @throws RestException
|
362 |
| - * @throws StatusNotFoundException |
363 | 347 | * @throws \Tuleap\Docman\CannotInstantiateItemWeHaveJustCreatedInDBException
|
364 | 348 | */
|
365 | 349 | public function createEmpty(
|
@@ -397,19 +381,15 @@ public function createEmpty(
|
397 | 381 | }
|
398 | 382 |
|
399 | 383 | /**
|
400 |
| - * @param Docman_Item $parent_item |
401 |
| - * @param PFUser $user |
402 |
| - * @param DocmanWikiPOSTRepresentation $representation |
403 |
| - * @param \DateTimeImmutable $current_time |
404 |
| - * @param Project $project |
405 |
| - * |
406 |
| - * @return CreatedItemRepresentation |
407 | 384 | * @throws Metadata\InvalidDateComparisonException
|
408 | 385 | * @throws Metadata\InvalidDateTimeFormatException
|
409 | 386 | * @throws Metadata\ItemStatusUsageMismatchException
|
410 |
| - * @throws Metadata\ObsoloscenceDateUsageMismatchException |
| 387 | + * @throws Metadata\ObsolescenceDateDisabledException |
| 388 | + * @throws Metadata\ObsolescenceDateMissingParameterException |
| 389 | + * @throws Metadata\ObsolescenceDateNullException |
| 390 | + * @throws Metadata\StatusNotFoundBadStatusGivenException |
| 391 | + * @throws Metadata\StatusNotFoundNullException |
411 | 392 | * @throws RestException
|
412 |
| - * @throws StatusNotFoundException |
413 | 393 | * @throws \Tuleap\Docman\CannotInstantiateItemWeHaveJustCreatedInDBException
|
414 | 394 | */
|
415 | 395 | public function createWiki(
|
@@ -454,19 +434,16 @@ public function createWiki(
|
454 | 434 | }
|
455 | 435 |
|
456 | 436 | /**
|
457 |
| - * @param Docman_Item $parent_item |
458 |
| - * @param PFUser $user |
459 |
| - * @param DocmanEmbeddedPOSTRepresentation $representation |
460 |
| - * @param \DateTimeImmutable $current_time |
461 |
| - * @param Project $project |
462 |
| - * |
463 | 437 | * @return CreatedItemRepresentation
|
464 | 438 | * @throws Metadata\InvalidDateComparisonException
|
465 | 439 | * @throws Metadata\InvalidDateTimeFormatException
|
466 | 440 | * @throws Metadata\ItemStatusUsageMismatchException
|
467 |
| - * @throws Metadata\ObsoloscenceDateUsageMismatchException |
| 441 | + * @throws Metadata\ObsolescenceDateDisabledException |
| 442 | + * @throws Metadata\ObsolescenceDateMissingParameterException |
| 443 | + * @throws Metadata\ObsolescenceDateNullException |
| 444 | + * @throws Metadata\StatusNotFoundBadStatusGivenException |
| 445 | + * @throws Metadata\StatusNotFoundNullException |
468 | 446 | * @throws RestException
|
469 |
| - * @throws StatusNotFoundException |
470 | 447 | * @throws \Tuleap\Docman\CannotInstantiateItemWeHaveJustCreatedInDBException
|
471 | 448 | */
|
472 | 449 | public function createEmbedded(
|
@@ -504,19 +481,16 @@ public function createEmbedded(
|
504 | 481 | }
|
505 | 482 |
|
506 | 483 | /**
|
507 |
| - * @param Docman_Item $parent_item |
508 |
| - * @param PFUser $user |
509 |
| - * @param DocmanLinkPOSTRepresentation $representation |
510 |
| - * @param \DateTimeImmutable $current_time |
511 |
| - * @param Project $project |
512 |
| - * |
513 | 484 | * @return CreatedItemRepresentation
|
514 | 485 | * @throws Metadata\InvalidDateComparisonException
|
515 | 486 | * @throws Metadata\InvalidDateTimeFormatException
|
516 | 487 | * @throws Metadata\ItemStatusUsageMismatchException
|
517 |
| - * @throws Metadata\ObsoloscenceDateUsageMismatchException |
| 488 | + * @throws Metadata\ObsolescenceDateDisabledException |
| 489 | + * @throws Metadata\ObsolescenceDateMissingParameterException |
| 490 | + * @throws Metadata\ObsolescenceDateNullException |
| 491 | + * @throws Metadata\StatusNotFoundBadStatusGivenException |
| 492 | + * @throws Metadata\StatusNotFoundNullException |
518 | 493 | * @throws RestException
|
519 |
| - * @throws StatusNotFoundException |
520 | 494 | * @throws \Tuleap\Docman\CannotInstantiateItemWeHaveJustCreatedInDBException
|
521 | 495 | */
|
522 | 496 | public function createLink(
|
|
0 commit comments