This writ can be issued only in case of a substantive public office of a permanent character created by a statute or by the Constitution.