| @@ 239-247 (lines=9) @@ | ||
| 236 | /** |
|
| 237 | * {@inheritdoc} |
|
| 238 | */ |
|
| 239 | public function setContentState($contentId, $groupId, $stateId) |
|
| 240 | { |
|
| 241 | $this->logger->logCall(__METHOD__, ['contentId' => $contentId, 'groupId' => $groupId, 'stateId' => $stateId]); |
|
| 242 | $return = $this->persistenceHandler->objectStateHandler()->setContentState($contentId, $groupId, $stateId); |
|
| 243 | ||
| 244 | $this->cache->deleteItem('ez-state-by-group-' . $groupId . '-on-content-' . $contentId); |
|
| 245 | ||
| 246 | return $return; |
|
| 247 | } |
|
| 248 | ||
| 249 | /** |
|
| 250 | * {@inheritdoc} |
|
| @@ 29-37 (lines=9) @@ | ||
| 26 | /** |
|
| 27 | * {@inheritdoc} |
|
| 28 | */ |
|
| 29 | public function update($id, $name, $identifier) |
|
| 30 | { |
|
| 31 | $this->logger->logCall(__METHOD__, ['section' => $id, 'name' => $name, 'identifier' => $identifier]); |
|
| 32 | $section = $this->persistenceHandler->sectionHandler()->update($id, $name, $identifier); |
|
| 33 | ||
| 34 | $this->cache->invalidateTags(['section-' . $id]); |
|
| 35 | ||
| 36 | return $section; |
|
| 37 | } |
|
| 38 | ||
| 39 | /** |
|
| 40 | * {@inheritdoc} |
|
| @@ 243-259 (lines=17) @@ | ||
| 240 | /** |
|
| 241 | * {@inheritdoc} |
|
| 242 | */ |
|
| 243 | public function locationMoved($locationId, $oldParentId, $newParentId) |
|
| 244 | { |
|
| 245 | $this->logger->logCall( |
|
| 246 | __METHOD__, |
|
| 247 | [ |
|
| 248 | 'location' => $locationId, |
|
| 249 | 'oldParent' => $oldParentId, |
|
| 250 | 'newParent' => $newParentId, |
|
| 251 | ] |
|
| 252 | ); |
|
| 253 | ||
| 254 | $return = $this->persistenceHandler->urlAliasHandler()->locationMoved($locationId, $oldParentId, $newParentId); |
|
| 255 | ||
| 256 | $this->cache->invalidateTags(['urlAlias-location-' . $locationId, 'urlAlias-location-path-' . $locationId]); |
|
| 257 | ||
| 258 | return $return; |
|
| 259 | } |
|
| 260 | ||
| 261 | /** |
|
| 262 | * {@inheritdoc} |
|
| @@ 264-283 (lines=20) @@ | ||
| 261 | /** |
|
| 262 | * {@inheritdoc} |
|
| 263 | */ |
|
| 264 | public function locationCopied($locationId, $newLocationId, $newParentId) |
|
| 265 | { |
|
| 266 | $this->logger->logCall( |
|
| 267 | __METHOD__, |
|
| 268 | [ |
|
| 269 | 'oldLocation' => $locationId, |
|
| 270 | 'newLocation' => $newLocationId, |
|
| 271 | 'newParent' => $newParentId, |
|
| 272 | ] |
|
| 273 | ); |
|
| 274 | ||
| 275 | $return = $this->persistenceHandler->urlAliasHandler()->locationCopied( |
|
| 276 | $locationId, |
|
| 277 | $newLocationId, |
|
| 278 | $newParentId |
|
| 279 | ); |
|
| 280 | $this->cache->invalidateTags(['urlAlias-location-' . $locationId, 'urlAlias-location-' . $newLocationId]); |
|
| 281 | ||
| 282 | return $return; |
|
| 283 | } |
|
| 284 | ||
| 285 | /** |
|
| 286 | * {@inheritdoc} |
|
| @@ 515-523 (lines=9) @@ | ||
| 512 | /** |
|
| 513 | * {@inheritdoc} |
|
| 514 | */ |
|
| 515 | public function unassignRole($contentId, $roleId) |
|
| 516 | { |
|
| 517 | $this->logger->logCall(__METHOD__, ['group' => $contentId, 'role' => $roleId]); |
|
| 518 | $return = $this->persistenceHandler->userHandler()->unassignRole($contentId, $roleId); |
|
| 519 | ||
| 520 | $this->cache->invalidateTags(['role-assignment-group-list-' . $contentId, 'role-assignment-role-list-' . $roleId]); |
|
| 521 | ||
| 522 | return $return; |
|
| 523 | } |
|
| 524 | ||
| 525 | /** |
|
| 526 | * {@inheritdoc} |
|
| @@ 298-313 (lines=16) @@ | ||
| 295 | /** |
|
| 296 | * {@inheritdoc} |
|
| 297 | */ |
|
| 298 | public function swap($locationId1, $locationId2) |
|
| 299 | { |
|
| 300 | $this->logger->logCall(__METHOD__, ['location1' => $locationId1, 'location2' => $locationId2]); |
|
| 301 | $locationHandler = $this->persistenceHandler->locationHandler(); |
|
| 302 | ||
| 303 | $return = $locationHandler->swap($locationId1, $locationId2); |
|
| 304 | ||
| 305 | $this->cache->invalidateTags( |
|
| 306 | [ |
|
| 307 | 'location-' . $locationId1, |
|
| 308 | 'location-' . $locationId2, |
|
| 309 | ] |
|
| 310 | ); |
|
| 311 | ||
| 312 | return $return; |
|
| 313 | } |
|
| 314 | ||
| 315 | /** |
|
| 316 | * {@inheritdoc} |
|