On the first prong, he had occupied the office for all 17 years of his employment.
The appeals court ordered the district court to enter judgement in Ortega's favor on that issue and hold proceedings to fix damages.