| @@ 22-31 (lines=10) @@ | ||
| 19 | /** |
|
| 20 | * {@inheritdoc} |
|
| 21 | */ |
|
| 22 | public function createGroup(InputStruct $input) |
|
| 23 | { |
|
| 24 | $this->logger->logCall(__METHOD__, array('struct' => $input)); |
|
| 25 | $group = $this->persistenceHandler->objectStateHandler()->createGroup($input); |
|
| 26 | ||
| 27 | $this->cache->clear('objectstategroup', 'all'); |
|
| 28 | $this->cache->getItem('objectstategroup', $group->id)->set($group)->save(); |
|
| 29 | ||
| 30 | return $group; |
|
| 31 | } |
|
| 32 | ||
| 33 | /** |
|
| 34 | * {@inheritdoc} |
|
| @@ 125-135 (lines=11) @@ | ||
| 122 | /** |
|
| 123 | * {@inheritdoc} |
|
| 124 | */ |
|
| 125 | public function deleteGroup($groupId) |
|
| 126 | { |
|
| 127 | $this->logger->logCall(__METHOD__, array('groupId' => $groupId)); |
|
| 128 | $return = $this->persistenceHandler->objectStateHandler()->deleteGroup($groupId); |
|
| 129 | ||
| 130 | $this->cache->clear('objectstategroup', 'all'); |
|
| 131 | $this->cache->clear('objectstategroup', $groupId); |
|
| 132 | $this->cache->clear('objectstate', 'byGroup', $groupId); |
|
| 133 | ||
| 134 | return $return; |
|
| 135 | } |
|
| 136 | ||
| 137 | /** |
|
| 138 | * {@inheritdoc} |
|