コード例 #1
0
 @Override
 public void commissionManagerClub(int clubNo, SocialPerson originPerson, SocialPerson nwPerson) {
   //
   memberDao.deleteClubManager(clubNo, originPerson.getEmail());
   memberDao.addClubMember(new ClubMember(clubNo, originPerson));
   memberDao.deleteClubMember(clubNo, nwPerson.getEmail());
   memberDao.addClubManager(new ClubManager(clubNo, nwPerson));
 }
コード例 #2
0
  @Override
  public void joinAsMember(int clubNo, String email) {
    //
    Club club = clubDao.readClub(clubNo);
    if (club == null) {
      throw NamooClubExceptionFactory.createRuntime("클럽이 존재하지 않습니다.");
    }

    memberDao.addClubMember(new ClubMember(clubNo, new SocialPerson(email, "qwer")));
  }