public void afterAuthenticate(Authentication auth) {
}
public void afterRemove(OnlineActivity info) {
SessionActivity record = (SessionActivity) Model.newInstance(SessionActivity.class);
record.setSessionid(info.getSessionid());
record.setName((String) info.getPrincipal());
record.setFullname(info.getFullname());
record.setCategory(info.getCategory());
record.setLoginAt(info.getLoginAt());
record.setHost(info.getHost());
record.setLastAccessAt(info.getLastAccessAt());
record.setLogoutAt(new Timestamp(System.currentTimeMillis()));
record.setRemark(info.getRemark());
record.calcOnlineTime();
entityDao.saveOrUpdate(record);
}