1 | <?php |
||
33 | class Controller extends PortApiController |
||
34 | { |
||
35 | |||
36 | /** |
||
37 | * @param \App\Containers\Authorization\UI\API\Requests\ListAllPermissionsRequest $request |
||
38 | * @param \App\Containers\Authorization\Actions\ListAllPermissionsAction $action |
||
39 | * |
||
40 | * @return \Dingo\Api\Http\Response |
||
41 | */ |
||
42 | public function listAllPermissions(ListAllPermissionsRequest $request, ListAllPermissionsAction $action) |
||
48 | |||
49 | /** |
||
50 | * @param \App\Containers\Authorization\UI\API\Requests\GetPermissionRequest $request |
||
51 | * @param \App\Containers\Authorization\Actions\GetPermissionAction $action |
||
52 | * |
||
53 | * @return \Dingo\Api\Http\Response |
||
54 | */ |
||
55 | public function getPermission(GetPermissionRequest $request, GetPermissionAction $action) |
||
61 | |||
62 | /** |
||
63 | * @param \App\Containers\Authorization\UI\API\Requests\ListAllRolesRequest $request |
||
64 | * @param \App\Containers\Authorization\Actions\ListAllRolesAction $action |
||
65 | * |
||
66 | * @return \Dingo\Api\Http\Response |
||
67 | */ |
||
68 | public function listAllRoles(ListAllRolesRequest $request, ListAllRolesAction $action) |
||
74 | |||
75 | /** |
||
76 | * @param \App\Containers\Authorization\UI\API\Requests\GetRoleRequest $request |
||
77 | * @param \App\Containers\Authorization\Actions\GetRoleAction $action |
||
78 | * |
||
79 | * @return \Dingo\Api\Http\Response |
||
80 | */ |
||
81 | public function getRole(GetRoleRequest $request, GetRoleAction $action) |
||
87 | |||
88 | /** |
||
89 | * @param \App\Containers\Authorization\UI\API\Requests\AssignUserToRoleRequest $request |
||
90 | * @param \App\Containers\Authorization\Actions\AssignRoleAction $action |
||
91 | * |
||
92 | * @return \Dingo\Api\Http\Response |
||
93 | */ |
||
94 | public function assignUserToRole(AssignUserToRoleRequest $request, AssignRoleAction $action) |
||
100 | |||
101 | /** |
||
102 | * @param \App\Containers\Authorization\UI\API\Requests\AttachPermissionToRoleRequest $request |
||
103 | * @param \App\Containers\Authorization\Actions\AttachPermissionsToRoleAction $action |
||
104 | * |
||
105 | * @return \Dingo\Api\Http\Response |
||
106 | */ |
||
107 | public function attachPermissionToRole( |
||
115 | |||
116 | /** |
||
117 | * @param \App\Containers\Authorization\UI\API\Requests\DetachPermissionToRoleRequest $request |
||
118 | * @param \App\Containers\Authorization\Actions\DetachPermissionsFromRoleAction $action |
||
119 | * |
||
120 | * @return \Dingo\Api\Http\Response |
||
121 | */ |
||
122 | public function detachPermissionFromRole( |
||
130 | |||
131 | /** |
||
132 | * @param \App\Containers\Authorization\UI\API\Requests\CreateRoleRequest $request |
||
133 | * @param \App\Containers\Authorization\Actions\CreateRoleAction $action |
||
134 | * |
||
135 | * @return \Dingo\Api\Http\Response |
||
136 | */ |
||
137 | public function createRole(CreateRoleRequest $request, CreateRoleAction $action) |
||
143 | |||
144 | /** |
||
145 | * @param \App\Containers\Authorization\UI\API\Requests\CreatePermissionRequest $request |
||
146 | * @param \App\Containers\Authorization\Actions\CreatePermissionAction $action |
||
147 | * |
||
148 | * @return \Dingo\Api\Http\Response |
||
149 | */ |
||
150 | public function createPermission(CreatePermissionRequest $request, CreatePermissionAction $action) |
||
156 | |||
157 | |||
158 | } |
||
159 |