コード例 #1
0
 @Execute
 public HtmlResponse register(String account, String token) { // from mail link
   Member member = new Member();
   member.setMemberAccount(account);
   member.setMemberStatusCode_Formalized();
   memberBhv.update(member);
   return redirect(SigninAction.class);
 }
コード例 #2
0
  // ===================================================================================
  //                                                                        Assist Logic
  //                                                                        ============
  private Integer newMember(SignupForm form) {
    Member member = new Member();
    member.setMemberName(form.memberName);
    member.setMemberAccount(form.memberAccount);
    member.setMemberStatusCode_Provisional();
    memberBhv.insert(member);

    MemberSecurity security = new MemberSecurity();
    security.setMemberId(member.getMemberId());
    security.setLoginPassword(orleansLoginAssist.encryptPassword(form.password));
    security.setReminderQuestion(form.reminderQuestion);
    security.setReminderAnswer(form.reminderAnswer);
    security.setReminderUseCount(0);
    memberSecurityBhv.insert(security);

    MemberService service = new MemberService();
    service.setMemberId(member.getMemberId());
    service.setServicePointCount(0);
    service.setServiceRankCode_Plastic();
    memberServiceBhv.insert(service);
    return member.getMemberId();
  }
コード例 #3
0
 // ===================================================================================
 //                                                                         Constructor
 //                                                                         ===========
 public DocksideUserBean(Member member) {
   memberId = member.getMemberId();
   memberName = member.getMemberName();
 }