Examples of SessionData


Examples of org.openmeetings.app.persistence.beans.basic.Sessiondata

      List<Sessiondata> sessions = query.getResultList();
      tx.commit();
      PersistenceSessionUtil.closeSession(idf);

      Sessiondata sessiondata = null;
      if (sessions != null && sessions.size() > 0) {
        sessiondata = sessions.get(0);
      }

      // if (sessiondata!=null) {
      // log.debug("checkSession USER_ID: "+sessiondata.getUser_id());
      // } else {
      // log.debug("Session IS NULL SID: "+SID);
      // }

      // Update the Session Object
      if (sessiondata != null)
        updatesession(SID);

      // Checks if wether the Session or the User Object of that Session
      // is set yet
      if (sessiondata == null || sessiondata.getUser_id() == null
          || sessiondata.getUser_id().equals(new Long(0))) {
        return new Long(0);
      } else {
        return sessiondata.getUser_id();
      }
    } catch (Exception ex2) {
      log.error("[checkSession]: ", ex2);
    }
    return null;
View Full Code Here

Examples of org.openmeetings.app.persistence.beans.basic.Sessiondata

      List<Sessiondata> sessions = query.getResultList();
      tx.commit();
      PersistenceSessionUtil.closeSession(idf);

      Sessiondata sessiondata = null;
      if (sessions != null && sessions.size() > 0) {
        sessiondata = sessions.get(0);
      }

      if (sessiondata == null) {
        log.error("Could not find session to Update");
        return false;
      }
      log.debug("Found session to update: " + sessiondata.getSession_id()
          + " userId: " + USER_ID);

      idf = PersistenceSessionUtil.createSession();
      session = PersistenceSessionUtil.getSession();
      tx = session.getTransaction();
      tx.begin();
      sessiondata.setRefresh_time(new Date());
      // session.refresh(sd);
      sessiondata.setUser_id(USER_ID);
      if (sessiondata.getId() == null) {
        session.persist(sessiondata);
      } else {
        if (!session.contains(sessiondata)) {
          session.merge(sessiondata);
        }
View Full Code Here

Examples of org.openmeetings.app.persistence.beans.basic.Sessiondata

  }

  public Users loginUserByRemoteHash(String SID, String remoteHash) {
    try {

      Sessiondata sessionData = Sessionmanagement.getInstance()
          .getSessionByHash(remoteHash);

      if (sessionData != null) {

        Users u = Usermanagement.getInstance().getUserById(
            sessionData.getUser_id());

        Sessionmanagement.getInstance().updateUserWithoutSession(SID,
            u.getUser_id());

        return u;
View Full Code Here

Examples of org.openmeetings.app.persistence.beans.basic.Sessiondata

      Long user_level = Usermanagement.getInstance().getUserLevelByID(
          users_id);
      if (AuthLevelmanagement.getInstance().checkWebServiceLevel(
          user_level)) {

        Sessiondata sd = Sessionmanagement.getInstance()
            .getSessionByHash(SID);
        if (sd == null || sd.getSessionXml() == null) {
          return new Long(-37);
        } else {

          // XStream xStream = new XStream(new XppDriver());
          XStream xStream = new XStream(new DomDriver("UTF-8"));
          xStream.setMode(XStream.NO_REFERENCES);

          String xmlString = sd.getSessionXml();
          RemoteSessionObject userObject = (RemoteSessionObject) xStream
              .fromXML(xmlString);

          log.debug("userObject.getUsername(), userObject.getFirstname(), userObject.getLastname() "
              + userObject.getUsername()
View Full Code Here

Examples of rabbit.data.internal.access.model.SessionData

  }

  @Override
  protected ISessionData createDataNode(LocalDate cal, WorkspaceStorage ws,
      SessionEventType type) throws Exception {
    return new SessionData(cal, ws, new Duration(type.getDuration()));
  }
View Full Code Here

Examples of us.aaronweiss.juicebot.SessionData

    join("#vana");
  }

  @Override
  public void receive(Message message) {
    SessionData sdo = message.session().attr(DataAwareBot.sessionData).get();
    if (message.type().equals("PRIVMSG") && message.message().contains(username())) {
      if (Bot.containsIgnoreCase("users", message.message())) {
        message.replyDirect("Channel Users: " + sdo.server.channels.get(message.channel()).userCount());
        message.replyDirect("Server Users: " + sdo.server.online());
      } else if (Bot.containsIgnoreCase("opers", message.message())) {
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.