Skip to content

Commit 7a863d0

Browse files
committed
Adding exercise file link entity and repository in model.
1 parent 175e2e2 commit 7a863d0

26 files changed

+234
-38
lines changed

app/V1Module/presenters/CommentsPresenter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public function checkTogglePrivate(string $threadId, string $commentId)
180180

181181
/**
182182
* Make a private comment public or vice versa
183-
* @DEPRECATED
183+
* @deprecated
184184
* @POST
185185
* @throws NotFoundException
186186
*/

app/V1Module/presenters/ExerciseFilesPresenter.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ public function checkUploadAttachmentFiles(string $id)
263263
/**
264264
* Associate attachment exercise files with an exercise
265265
* @POST
266-
* @DEPRECATED attachment files were unified with exercise files
266+
* @deprecated attachment files were unified with exercise files
267267
* @throws ForbiddenRequestException
268268
*/
269269
#[Post("files", new VMixed(), "Identifiers of attachment files", nullable: true)]
@@ -320,7 +320,7 @@ public function checkGetAttachmentFiles(string $id)
320320
/**
321321
* Get a list of all attachment files for an exercise
322322
* @GET
323-
* @DEPRECATED attachment files were unified with exercise files
323+
* @deprecated attachment files were unified with exercise files
324324
* @throws ForbiddenRequestException
325325
*/
326326
#[Path("id", new VUuid(), "identification of exercise", required: true)]
@@ -347,7 +347,7 @@ public function checkDeleteAttachmentFile(string $id, string $fileId)
347347
/**
348348
* Delete attachment exercise file with given id
349349
* @DELETE
350-
* @DEPRECATED attachment files were unified with exercise files
350+
* @deprecated attachment files were unified with exercise files
351351
* @throws ForbiddenRequestException
352352
* @throws NotFoundException
353353
*/
@@ -411,7 +411,7 @@ public function checkDownloadAttachmentFilesArchive(string $id)
411411
/**
412412
* Download archive containing all attachment files for exercise.
413413
* @GET
414-
* @DEPRECATED attachment files were unified with exercise files
414+
* @deprecated attachment files were unified with exercise files
415415
* @throws NotFoundException
416416
* @throws \Nette\Application\BadRequestException
417417
* @throws \Nette\Application\AbortException

app/V1Module/presenters/ExercisesConfigPresenter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ public function checkGetHardwareGroupLimits(string $id, string $runtimeEnvironme
409409

410410
/**
411411
* Get a description of resource limits for an exercise for given hwgroup.
412-
* @DEPRECATED
412+
* @deprecated
413413
* @GET
414414
* @throws ForbiddenRequestException
415415
* @throws NotFoundException
@@ -454,7 +454,7 @@ public function checkSetHardwareGroupLimits(string $id, string $runtimeEnvironme
454454

455455
/**
456456
* Set resource limits for an exercise for given hwgroup.
457-
* @DEPRECATED
457+
* @deprecated
458458
* @POST
459459
* @throws ApiException
460460
* @throws ExerciseConfigException
@@ -524,7 +524,7 @@ public function checkRemoveHardwareGroupLimits(string $id, string $runtimeEnviro
524524

525525
/**
526526
* Remove resource limits of given hwgroup from an exercise.
527-
* @DEPRECATED
527+
* @deprecated
528528
* @DELETE
529529
* @throws NotFoundException
530530
*/

app/V1Module/presenters/GroupsPresenter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ public function checkSubgroups(string $id)
891891
/**
892892
* Get a list of subgroups of a group
893893
* @GET
894-
* @DEPRECATED Subgroup list is part of group view.
894+
* @deprecated Subgroup list is part of group view.
895895
*/
896896
#[Path("id", new VUuid(), "Identifier of the group", required: true)]
897897
public function actionSubgroups(string $id)
@@ -922,7 +922,7 @@ public function checkMembers(string $id)
922922
/**
923923
* Get a list of members of a group
924924
* @GET
925-
* @DEPRECATED Members are listed in group view.
925+
* @deprecated Members are listed in group view.
926926
*/
927927
#[Path("id", new VUuid(), "Identifier of the group", required: true)]
928928
public function actionMembers(string $id)

app/V1Module/presenters/SisPresenter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434

3535
/**
3636
* @LoggedIn
37+
* @deprecated Use the new SIS extension instead
3738
*/
3839
class SisPresenter extends BasePresenter
3940
{

app/V1Module/presenters/UploadedFilesPresenter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ public function checkDownloadExerciseFile(string $id)
594594
/**
595595
* Download exercise file
596596
* @GET
597-
* @DEPRECATED use generic uploaded-file download endpoint instead
597+
* @deprecated use generic uploaded-file download endpoint instead
598598
* @throws ForbiddenRequestException
599599
* @throws NotFoundException
600600
* @throws \Nette\Application\AbortException

app/V1Module/security/Policies/SisBoundGroupPermissionPolicy.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@
66
use App\Model\Entity\ExternalLogin;
77
use App\Model\Entity\Group;
88
use App\Model\Repository\ExternalLogins;
9-
use App\Model\Repository\Groups;
109
use App\Model\Repository\SisGroupBindings;
1110
use App\Security\Identity;
1211

12+
/**
13+
* @deprecated Use the new SIS extension instead
14+
*/
1315
class SisBoundGroupPermissionPolicy implements IPermissionPolicy
1416
{
1517
/** @var SisGroupBindings */

app/V1Module/security/Policies/SisCoursePermissionPolicy.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
use App\Model\Repository\ExternalLogins;
77
use App\Security\Identity;
88

9+
/**
10+
* @deprecated Use the new SIS extension instead
11+
*/
912
class SisCoursePermissionPolicy implements IPermissionPolicy
1013
{
11-
1214
function getAssociatedClass()
1315
{
1416
return SisCourseRecord::class;

app/V1Module/security/Policies/SisGroupContextPermissionPolicy.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
use App\Security\ACL\SisGroupContext;
1313
use App\Security\Identity;
1414

15+
/**
16+
* @deprecated Use the new SIS extension instead
17+
*/
1518
class SisGroupContextPermissionPolicy implements IPermissionPolicy
1619
{
1720
public function getAssociatedClass()

app/V1Module/security/Policies/SisPermissionPolicy.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
use App\Security\ACL\SisIdWrapper;
77
use App\Security\Identity;
88

9+
/**
10+
* @deprecated Use the new SIS extension instead
11+
*/
912
class SisPermissionPolicy implements IPermissionPolicy
1013
{
1114
private $externalLogins;

0 commit comments

Comments
 (0)