If judgment is given upon the right of and in favor of the person alleged in the complaint to be entitled to the office or franchise, the person shall be entitled to the possession and enjoyment of the franchise, or to take upon the person the execution of the office, after qualifying the person therefor as required by law, and to demand and receive the possession of all the books, papers and property belonging thereto.
ORS 30.540