Package org.openmeetings.app.persistence.beans.logs

Examples of org.openmeetings.app.persistence.beans.logs.ConferenceLog


      if (confLogType == null) {
        ConferenceLogTypeDaoImpl.getInstance().addConferenceLogType(eventType);
        confLogType = ConferenceLogTypeDaoImpl.getInstance().getConferenceLogTypeByEventName(eventType);
      }
     
      ConferenceLog confLog = new ConferenceLog();
      confLog.setConferenceLogType(confLogType);
      confLog.setInserted(new Date());
      confLog.setUserId(userId);
      confLog.setStreamid(streamid);
      confLog.setScopeName(scopeName);
      confLog.setRoom_id(room_id);
      confLog.setUserip(userip);
      confLog.setExternalUserId(externalUserId);
      confLog.setExternalUserType(externalUserType);
      confLog.setFirstname(firstname);
      confLog.setLastname(lastname);
      confLog.setEmail(email);
     
      Object idf = PersistenceSessionUtil.createSession();
      EntityManager session = PersistenceSessionUtil.getSession();
      EntityTransaction tx = session.getTransaction();
      tx.begin();
     
      confLog = session.merge(confLog);
      session.flush();
      Long confLogId = confLog.getConferenceLogId();

      tx.commit();
      PersistenceSessionUtil.closeSession(idf);
     
      return confLogId;
View Full Code Here


      if (confLogType == null) {
        conferenceLogTypeDao.addConferenceLogType(eventType);
        confLogType = conferenceLogTypeDao.getConferenceLogTypeByEventName(eventType);
      }
     
      ConferenceLog confLog = new ConferenceLog();
      confLog.setConferenceLogType(confLogType);
      confLog.setInserted(new Date());
      confLog.setUserId(userId);
      confLog.setStreamid(streamid);
      confLog.setScopeName(scopeName);
      confLog.setRoom_id(room_id);
      confLog.setUserip(userip);
      confLog.setExternalUserId(externalUserId);
      confLog.setExternalUserType(externalUserType);
      confLog.setFirstname(firstname);
      confLog.setLastname(lastname);
      confLog.setEmail(email);
     
      confLog = em.merge(confLog);
      Long confLogId = confLog.getConferenceLogId();

      return confLogId;
    } catch (Exception ex2) {
      log.error("[addConferenceLog]: ",ex2);
    }
View Full Code Here

TOP

Related Classes of org.openmeetings.app.persistence.beans.logs.ConferenceLog

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.