SAN FRANCISCO — A Superior Court judge this week rejected claims by a former professor at Stanford University’s Graduate School of Business that its dean harassed and discriminated against him.

The case combined racial and gender issues, a workplace romance, online snooping, accusations of violence and lavish housing benefits, all tied to a top business school. The suit, filed in April 2014, drew national scrutiny. That it was being heard in Silicon Valley, where assertions of sexual harassment have steadily grown more pervasive, added to the attention.

The publicity surrounding the case brought to light significant ill feelings at Stanford against the hard-charging dean, Garth Saloner, who announced in September 2015 that he would step down at the end of the school year. At the time, Mr. Saloner was a little more than a year into his second five-year term.

In a decision filed Tuesday in Santa Clara Superior Court, Judge Theodore C. Zayner granted the requests of Stanford and Mr. Saloner for summary judgment, saying the plaintiff, James A. Phills, had “failed to show that he was subject to discrimination, was wrongfully terminated or was subject to harassment.”