Package er.persistentsessionstorage.model

Examples of er.persistentsessionstorage.model.ERSessionInfo.session()


  @Override
  public WOSession removeSessionWithID(String s) {
    EOEditingContext ec = ERXEC.newEditingContext();
    ERSessionInfo info = ERSessionInfo.clazz.objectMatchingKeyAndValue(ec, ERSessionInfo.SESSION_ID_KEY, s);
    if(info != null) {
      WOSession session = info.session();
      info.delete();
      ec.saveChanges();
      return session;
    }
    return null;
View Full Code Here


  @Override
  public WOSession restoreSessionWithID(String s, WORequest request) {
    EOEditingContext ec = ERXEC.newEditingContext();
    ERSessionInfo info = ERSessionInfo.clazz.objectMatchingKeyAndValue(ec, ERSessionInfo.SESSION_ID_KEY, s);
    return info == null || info.expirationDate().getTime() < System.currentTimeMillis()?null:info.session();
  }

  @Override
  public void saveSessionForContext(WOContext context) {
    WOSession session = context.session();
View Full Code Here

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.