/*
 * Copyright 2015-2017 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 * either express or implied. See the License for the specific language
 * governing permissions and limitations under the License.
 */
package org.docksidestage.mylasta.action;

import org.docksidestage.dbflute.exentity.Member;
import org.lastaflute.web.login.TypicalUserBean;

/**
 * @author jflute
 */
public class FortressUserBean extends TypicalUserBean<Integer> {

    // ===================================================================================
    //                                                                          Definition
    //                                                                          ==========
    /** The serial version UID for object serialization. (Default) */
    private static final long serialVersionUID = 1L;

    // ===================================================================================
    //                                                                           Attribute
    //                                                                           =========
    protected final Integer memberId;
    protected final String memberName;

    // ===================================================================================
    //                                                                         Constructor
    //                                                                         ===========
    public FortressUserBean(Member member) { // #change_it
        memberId = member.getMemberId();
        memberName = member.getMemberName();
    }

    // ===================================================================================
    //                                                                      Implementation
    //                                                                      ==============
    @Override
    public Integer getUserId() {
        return getMemberId();
    }

    // ===================================================================================
    //                                                                            Accessor
    //                                                                            ========
    public Integer getMemberId() {
        return memberId;
    }

    public String getMemberName() {
        return memberName;
    }
}

@@ -846,17 +846,48 @@
 teger%3E %7B
+ // #change_it also LoginAssist
 %0A
-
 %0A    // 
@@ -1625,16 +1625,58 @@
 berName;
+%0A    protected final String memberAccount;
 %0A%0A    //
@@ -1986,30 +1986,16 @@
 ember) %7B
- // #change_it
 %0A       
@@ -2069,24 +2069,75 @@
 mberName();%0A
+        memberAccount = member.getMemberAccount();%0A
     %7D%0A%0A    /
@@ -2860,24 +2860,24 @@
 berName() %7B%0A
-
         retu
@@ -2896,11 +2896,87 @@
 e;%0A    %7D
+%0A%0A    public String getMemberAccount() %7B%0A        return memberAccount;%0A    %7D
 %0A%7D%0A

add member account to user bean