Man gets seven years for violating protection order