public function setAllowedGroupIds($allowedGroupIds)
{
if (is_string($allowedGroupIds) && !empty($allowedGroupIds)) {
$allowedGroupIds = str_replace([" ", "\n"], "", $allowedGroupIds);
$parts = explode(",", $allowedGroupIds);
}
$this->allowedGroupIds = $parts;
}