1 | <?php |
||
27 | class DefaultRoleEditingService implements RoleEditingServiceInterface |
||
28 | { |
||
29 | /** |
||
30 | * @var CommandBusInterface |
||
31 | */ |
||
32 | private $commandBus; |
||
33 | |||
34 | /** |
||
35 | * @var UuidGeneratorInterface |
||
36 | */ |
||
37 | private $uuidGenerator; |
||
38 | |||
39 | /** |
||
40 | * @var RepositoryInterface |
||
41 | */ |
||
42 | private $writeRepository; |
||
43 | |||
44 | /** |
||
45 | * DefaultRoleEditingService constructor. |
||
46 | * |
||
47 | * @param CommandBusInterface $commandBus |
||
48 | * @param UuidGeneratorInterface $uuidGenerator |
||
49 | * @param RepositoryInterface $writeRepository |
||
50 | */ |
||
51 | public function __construct( |
||
60 | |||
61 | /** |
||
62 | * @inheritdoc |
||
63 | */ |
||
64 | public function create(StringLiteral $name) |
||
74 | |||
75 | /** |
||
76 | * @inheritdoc |
||
77 | */ |
||
78 | public function rename(UUID $uuid, StringLiteral $name) |
||
87 | |||
88 | /** |
||
89 | * @inheritdoc |
||
90 | */ |
||
91 | public function addPermission(UUID $uuid, Permission $permission) |
||
100 | |||
101 | /** |
||
102 | * @inheritdoc |
||
103 | */ |
||
104 | public function removePermission(UUID $uuid, Permission $permission) |
||
113 | |||
114 | /** |
||
115 | * @inheritdoc |
||
116 | */ |
||
117 | public function addUser(UUID $uuid, StringLiteral $userId) |
||
126 | |||
127 | /** |
||
128 | * @inheritdoc |
||
129 | */ |
||
130 | public function removeUser(UUID $uuid, StringLiteral $userId) |
||
139 | |||
140 | /** |
||
141 | * @inheritdoc |
||
142 | */ |
||
143 | public function setConstraint(UUID $uuid, StringLiteral $query) |
||
152 | |||
153 | /** |
||
154 | * @inheritdoc |
||
155 | */ |
||
156 | public function addConstraint(UUID $uuid, SapiVersion $sapiVersion, Query $query): string |
||
166 | |||
167 | /** |
||
168 | * @inheritdoc |
||
169 | */ |
||
170 | public function updateConstraint(UUID $uuid, SapiVersion $sapiVersion, Query $query): string |
||
180 | |||
181 | /** |
||
182 | * @inheritdoc |
||
183 | */ |
||
184 | public function removeConstraint(UUID $uuid, SapiVersion $sapiVersion): string |
||
193 | |||
194 | /** |
||
195 | * @inheritdoc |
||
196 | */ |
||
197 | public function addLabel(UUID $uuid, UUID $labelId) |
||
206 | |||
207 | /** |
||
208 | * {@inheritdoc} |
||
209 | */ |
||
210 | public function removeLabel(UUID $uuid, UUID $labelId) |
||
219 | |||
220 | /** |
||
221 | * {@inheritdoc} |
||
222 | */ |
||
223 | public function delete(UUID $uuid) |
||
231 | } |
||
232 |