Examples of Sessiondata


Examples of com.barchart.feed.api.model.data.SessionData

   
    if(!current.close().isNull()) {
      return new LastPriceImpl(Source.LAST_TRADE, current.close());
    }
   
    final SessionData previous = sessionSet().session(Type.DEFAULT_PREVIOUS);
   
    if (!previous.isSettled().isNull() && previous.isSettled().value()) {
      return new LastPriceImpl(Source.PREV_SETTLE, previous.settle());
    }
   
    if(!previous.close().isNull()) {
      return new LastPriceImpl(Source.PREV_CLOSE, previous.close());
    }
   
    return LastPrice.NULL;
  }
View Full Code Here

Examples of com.vladium.emma.data.SessionData

  }

  private void writeSessionData(IMetaData metadata,
      ICoverageData coveragedata, File folder) throws IOException {
    File f = new File(folder, "coverage.es");
    DataFactory.persist(new SessionData(metadata, coveragedata), f, false);
  }
View Full Code Here

Examples of de.innovationgate.webgate.api.WGContent.SessionData

    }
   
    private SessionData getSessionData() {
       
        DocumentContext con = getDocumentSessionContext();
        SessionData data = (SessionData) con.getCustomData();
        if (data == null) {
            data = new SessionData();
            con.setCustomData(data);
        }
        return data;
       
    }
View Full Code Here

Examples of de.innovationgate.webgate.api.WGStructEntry.SessionData

    }
   
    private SessionData getSessionData() {
       
        DocumentContext con = getDocumentSessionContext();
        SessionData data = (SessionData) con.getCustomData();
        if (data == null) {
            data = new SessionData();
            con.setCustomData(data);
        }
        return data;
    }
View Full Code Here

Examples of etch.util.core.io.SessionData

  /** @throws Exception */
  @Test
  public void constructor3() throws Exception
  {
    SessionData dh = new MyDataHandler();
    SocketChannel s = newSocketChannel( "127.0.0.1", port );
    SocketChannel t = lh.accepted.waitUntilNotEqAndSet( null, TIMEOUT, null );

    r.put( "connection", s );
    Tcp2Connection c = new Tcp2Connection( "tcp:", r );
View Full Code Here

Examples of org.apache.etch.util.core.io.SessionData

  /** @throws Exception */
  @Test
  public void constructor3() throws Exception
  {
    SessionData dh = new MyDataHandler();
    SocketChannel s = newSocketChannel( "127.0.0.1", port );
    SocketChannel t = lh.accepted.waitUntilNotEqAndSet( null, TIMEOUT, null );

    r.put( "connection", s );
    Tcp2Connection c = new Tcp2Connection( "tcp:", r );
View Full Code Here

Examples of org.apache.etch.util.core.io.SessionData

  /** @throws Exception */
  @Test
  public void constructor9() throws Exception
  {
    SessionData dh = new MyDataHandler();
    Tcp2Connection c = new Tcp2Connection( "tcp://localhost:"+port, r );
    c.setSession( dh );
    assertSame( dh, c.getSession() );
  }
View Full Code Here

Examples of org.apache.openmeetings.db.entity.server.Sessiondata

  private UserManager userManager;
 
  @Test
  public void testSendInvitationLink() {
    try {
      Sessiondata sessionData = mService.getsessiondata();
     
      User us = (User) userManager.loginUser(sessionData.getSession_id(), username, userpass, null, null, false);
     
      invitationService.sendInvitationHash(sessionData.getSession_id(), username, "message", "sebawagner@apache.org",
          "subject", 1L, "", false, "", 1, new Date(), "12:00", new Date(), "14:00", 1L, us.getTimeZoneId(), true);
     
    } catch (Exception err) {
      log.error("[testSendInvitationLink]", err);
    }
View Full Code Here

Examples of org.apache.openmeetings.db.entity.server.Sessiondata

    //FIXME code is duplicated from MainService, need to be unified
    SOAPLoginDao soapDao = getBean(SOAPLoginDao.class);
    SOAPLogin soapLogin = soapDao.get(secureHash);
    if (soapLogin != null && !soapLogin.getUsed()) { //add code for  || (soapLogin.getAllowSameURLMultipleTimes())
      SessiondataDao sessionDao = getBean(SessiondataDao.class);
      Sessiondata sd = sessionDao.getSessionByHash(soapLogin.getSessionHash());
      if (sd != null && sd.getSessionXml() != null) {
        RemoteSessionObject remoteUser = RemoteSessionObject.fromXml(sd.getSessionXml());
        if (remoteUser != null && !Strings.isEmpty(remoteUser.getExternalUserId())) {
          AdminUserDao userDao = getBean(AdminUserDao.class);
          User user = userDao.getExternalUser(remoteUser.getExternalUserId(), remoteUser.getExternalUserType());
          if (user == null) {
            user = userDao.getNewUserInstance(null);
View Full Code Here

Examples of org.apache.openmeetings.db.entity.server.Sessiondata

      bind();
    }
  }
 
  public boolean signIn(String login, String password, String ldapConfigFileName) {
    Sessiondata sessData = getBean(SessiondataDao.class).startsession();
    SID = sessData.getSession_id();
    Object _u = Strings.isEmpty(ldapConfigFileName)
        ? getBean(IUserManager.class).loginUser(SID, login, password, null, null, false)
        : getBean(ILdapLoginManagement.class).doLdapLogin(login, password, null, null, SID, ldapConfigFileName);
   
    if (_u instanceof User) {
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.