Package cli_fmw.login

Source Code of cli_fmw.login.LoginDialogFrame

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package cli_fmw.login;

import cli_fmw.main.ClipsException;
import cli_fmw.utils.ModalDialog;
import framework.beans.security.LoginRemoteAbstarct;
import framework.beans.security.SessionSecurityDetails;

/**
*
* @param <USERINFO>
* @author axe
*/
public abstract class LoginDialogFrame<USERINFO extends UserInfoAbstract<?>>
        extends ModalDialog {

    protected USERINFO user;

    public LoginDialogFrame(String title) {
        super(null, title, null);
    }


    protected void tryLogin(Object collId, char passwd[]) throws Exception {
        SessionSecurityDetails det = UserInfoAbstract.tryLogin(collId, passwd);
        user = initUser(det);
    }



    public USERINFO getUser() {
        return user;
}

    protected abstract USERINFO initUser(SessionSecurityDetails details) throws ClipsException;
}
TOP

Related Classes of cli_fmw.login.LoginDialogFrame

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.