Middlesex County Assignment Judge Alberto Rivas has admitted to multiple violations of the Code of Judicial Conduct over intemperate comments he made while adjudicating a dispute involving nude photographs.

Rivas publicly humiliated, embarrassed and demeaned the parties in his courtroom and improperly gave vent to his personal feelings in the January hearing between a husband, wife and the husband’s girlfriend, the Advisory Committee on Judicial Conduct said in a complaint that was made public Thursday, along with a response and statement from Rivas.