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