public function destroyNotPermanentActions(ManialinkInterface $manialink)
    {
        if (isset($this->actionsByManialink[$manialink->getId()])) {
            foreach ($this->actionsByManialink[$manialink->getId()] as $actionId => $action) {
                if (!$action->isPermanent()) {
                    $this->destroyAction($actionId);
                }
            }
        }
    }