Package org.openmeetings.app.persistence.beans.recording

Examples of org.openmeetings.app.persistence.beans.recording.Recording


      }
      if (whereClause.length()!=0) whereClause += ") AND ";
      List<Recording> rList = RecordingDaoImpl.getInstance().getRecordingsByWhereClause(whereClause);
     
      for (Iterator<Recording> iter = rList.iterator();iter.hasNext();) {
        Recording rec = iter.next();
        log.debug("rec: "+rec.getStarttime());
        rec.setStarttimeAsString(CalendarPatterns.getDateWithTimeByMiliSeconds(rec.getStarttime()));
      }
     
     
     
    } catch (Exception err) {
View Full Code Here


        }
        if (whereClause.length()!=0) whereClause += ") AND ";
        List<Recording> rList = RecordingDaoImpl.getInstance().getRecordingsByWhereClause(whereClause);
       
        for (Iterator<Recording> iter = rList.iterator();iter.hasNext();) {
          Recording rec = iter.next();
          rec.setStarttimeAsString(CalendarPatterns.getDateWithTimeByMiliSeconds(rec.getStarttime()));
        }
       
        return rList;
          }
View Full Code Here

     
          Long users_id = Sessionmanagement.getInstance().checkSession(SID);
          Long user_level = Usermanagement.getInstance().getUserLevelByID(users_id)

          if (AuthLevelmanagement.getInstance().checkUserLevel(user_level)){
            Recording rec = RecordingDaoImpl.getInstance().getRecordingById(recording_id);
           
            rec.getRoomRecording().setRoomClients(
                RecordingClientDaoImpl.getInstance().getRecordingClientByroomRecordingId(
                    rec.getRoomRecording().getRoomrecordingId()));
           
            rec.getRoomRecording().setChatvalues(
                ChatvaluesEventDaoImpl.getInstance().getChatvaluesEventByRoomRecordingId(
                      rec.getRoomRecording().getRoomrecordingId()));
           
            rec.getRoomRecording().setRoomStreams(
                RoomStreamDaoImpl.getInstance().getRoomStreamsByRoomRecordingId(
                    rec.getRoomRecording().getRoomrecordingId()));
           
        //Set Conversion Job Record
            rec.setRecordingConversionJob(RecordingConversionJobDaoImpl.getInstance().
                getRecordingConversionJobsByRecording(rec.getRecording_id()));
           
        return rec;
          }
         
    } catch (Exception err) {
View Full Code Here

  public Long deleteRecordedFile(String SID, Long recording_id){
    try {
        Long users_id = Sessionmanagement.getInstance().checkSession(SID);
        Long user_level = Usermanagement.getInstance().getUserLevelByID(users_id);
        if (AuthLevelmanagement.getInstance().checkUserLevel(user_level)){
          Recording rec = RecordingDaoImpl.getInstance().getRecordingById(recording_id);
          if (rec!=null) {
            rec.setDeleted("true");
            RecordingDaoImpl.getInstance().updateRecording(rec);
            return new Long(recording_id);
          }
        }
    } catch (Exception err) {
View Full Code Here

    }
    return instance;
  }
 
  public Long addRecording(String name, Long duration, String xmlString, Long rooms_id, Users recordedby, String  comment, RoomRecording roomRecording) throws Exception{
    Recording recording = new Recording();
    recording.setDeleted("false");
    recording.setDuration(duration);
    recording.setComment(comment);
    recording.setRecordedby(recordedby);
    recording.setName(name);
    recording.setXmlString(xmlString);
    recording.setWhiteBoardConverted(false);
    recording.setRooms(Roommanagement.getInstance().getRoomById(rooms_id));
    recording.setStarttime(new java.util.Date());
    recording.setRoomRecording(roomRecording);
    return this.addRecording(recording);
  }
View Full Code Here

      EntityTransaction tx = session.getTransaction();
      tx.begin();
      Query query = session.createQuery(hql);
      query.setParameter("recording_id", recording_id);
      query.setParameter("deleted", "true");
      Recording rec = null;
      try {
        rec = (Recording) query.getSingleResult();
        } catch (NoResultException ex) {
        }
      tx.commit();
View Full Code Here

TOP

Related Classes of org.openmeetings.app.persistence.beans.recording.Recording

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.