/*
* 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;
}