Package org.beangle.security.auth.session

Examples of org.beangle.security.auth.session.SessionActivity


  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);
  }
View Full Code Here

TOP

Related Classes of org.beangle.security.auth.session.SessionActivity

Copyright © 2018 www.massapicom. 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.