| @@ 232-242 (lines=11) @@ | ||
| 229 | /** |
|
| 230 | * {@inheritdoc} |
|
| 231 | */ |
|
| 232 | public function create(CreateStruct $locationStruct) |
|
| 233 | { |
|
| 234 | $this->logger->logCall(__METHOD__, array('struct' => $locationStruct)); |
|
| 235 | $location = $this->persistenceHandler->locationHandler()->create($locationStruct); |
|
| 236 | ||
| 237 | // need to clear loadLocationsByContent and similar collections involving locations data |
|
| 238 | // also need to clear content info on main location changes |
|
| 239 | $this->cache->invalidateTags(['content-' . $locationStruct->contentId, 'role-assignment-group-list-' . $locationStruct->contentId]); |
|
| 240 | ||
| 241 | return $location; |
|
| 242 | } |
|
| 243 | ||
| 244 | /** |
|
| 245 | * {@inheritdoc} |
|
| @@ 127-136 (lines=10) @@ | ||
| 124 | /** |
|
| 125 | * {@inheritdoc} |
|
| 126 | */ |
|
| 127 | public function update(User $user) |
|
| 128 | { |
|
| 129 | $this->logger->logCall(__METHOD__, array('struct' => $user)); |
|
| 130 | $return = $this->persistenceHandler->userHandler()->update($user); |
|
| 131 | ||
| 132 | // Clear corresponding content cache as update of the User changes it's external data |
|
| 133 | $this->cache->invalidateTags(['content-fields-' . $user->id, 'user-' . $user->id]); |
|
| 134 | ||
| 135 | return $return; |
|
| 136 | } |
|
| 137 | ||
| 138 | /** |
|
| 139 | * {@inheritdoc} |
|
| @@ 141-150 (lines=10) @@ | ||
| 138 | /** |
|
| 139 | * {@inheritdoc} |
|
| 140 | */ |
|
| 141 | public function updateUserToken(UserTokenUpdateStruct $userTokenUpdateStruct) |
|
| 142 | { |
|
| 143 | $this->logger->logCall(__METHOD__, array('struct' => $userTokenUpdateStruct)); |
|
| 144 | $return = $this->persistenceHandler->userHandler()->updateUserToken($userTokenUpdateStruct); |
|
| 145 | ||
| 146 | // Clear corresponding content cache as update of the User changes it's external data |
|
| 147 | $this->cache->invalidateTags(['content-fields-' . $userTokenUpdateStruct->userId, 'user-' . $userTokenUpdateStruct->userId]); |
|
| 148 | ||
| 149 | return $return; |
|
| 150 | } |
|
| 151 | ||
| 152 | /** |
|
| 153 | * {@inheritdoc} |
|
| @@ 422-430 (lines=9) @@ | ||
| 419 | /** |
|
| 420 | * {@inheritdoc} |
|
| 421 | */ |
|
| 422 | public function updatePolicy(Policy $policy) |
|
| 423 | { |
|
| 424 | $this->logger->logCall(__METHOD__, array('struct' => $policy)); |
|
| 425 | $return = $this->persistenceHandler->userHandler()->updatePolicy($policy); |
|
| 426 | ||
| 427 | $this->cache->invalidateTags(['policy-' . $policy->id, 'role-' . $policy->roleId]); |
|
| 428 | ||
| 429 | return $return; |
|
| 430 | } |
|
| 431 | ||
| 432 | /** |
|
| 433 | * {@inheritdoc} |
|
| @@ 32-40 (lines=9) @@ | ||
| 29 | /** |
|
| 30 | * {@inheritdoc} |
|
| 31 | */ |
|
| 32 | public function trashSubtree($locationId) |
|
| 33 | { |
|
| 34 | $this->logger->logCall(__METHOD__, array('locationId' => $locationId)); |
|
| 35 | $return = $this->persistenceHandler->trashHandler()->trashSubtree($locationId); |
|
| 36 | ||
| 37 | $this->cache->invalidateTags(['location-' . $locationId, 'location-path-' . $locationId]); |
|
| 38 | ||
| 39 | return $return; |
|
| 40 | } |
|
| 41 | ||
| 42 | /** |
|
| 43 | * {@inheritdoc} |
|