* This method adds a dvd to a user's collection.
*/
@Path("/users/{user.login}/dvds/{dvd.id}")
@Put
public void addToMyList(final User user, final Dvd dvd) {
final User sessionUser = refreshUser();
validator.checking(new Validations() {{
that(user.getLogin(), is(sessionUser.getLogin()),"user", "you_cant_add_to_others_list");
that(sessionUser.getDvds(), not(hasItem(dvd)), "dvd", "you_already_have_this_dvd");
}});
validator.onErrorUsePageOf(UsersController.class).home();
dao.add(new DvdRental(user, dvd));