public function setComponentRestrictions(array $componentRestrictions)
    {
        $this->componentRestrictions = array();

        foreach ($componentRestrictions as $type => $value) {
            $this->addComponentRestriction($type, $value);
        }
    }