Christina Ricci has obtained a restraining order against her estranged husband, James Heerdegen, after accusing him of being violent towards her for seven years.