Theory of Justice

How did Plato and/or Aristotle approach the question of justice in their ideal state?