Package org.openmeetings.app.data.flvrecord.beans

Examples of org.openmeetings.app.data.flvrecord.beans.FLVRecorderObject


    try {
      Long users_id = Sessionmanagement.getInstance().checkSession(SID);
          Long user_level = Usermanagement.getInstance().getUserLevelByID(users_id)
          if (AuthLevelmanagement.getInstance().checkUserLevel(user_level)){ 
           
            FLVRecorderObject fileExplorerObject = new FLVRecorderObject();
           
            //User Home Recordings
            List<FlvRecording> homeFlvRecordings = this.flvRecordingDaoImpl.getFlvRecordingRootByOwner(users_id);
            long homeFileSize = 0;
           
            for (FlvRecording homeFlvRecording : homeFlvRecordings) {
              homeFileSize += this.getSizeOfDirectoryAndSubs(homeFlvRecording);
            }
           
            fileExplorerObject.setUserHome(homeFlvRecordings);
            fileExplorerObject.setUserHomeSize(homeFileSize);
           
            //Public Recordings by Organization
            List<FlvRecording> publicFlvRecordings = this.flvRecordingDaoImpl.getFlvRecordingRootByPublic(organization_id);
            long publicFileSize = 0;
           
            for (FlvRecording publicFlvRecording : publicFlvRecordings) {
              publicFileSize += this.getSizeOfDirectoryAndSubs(publicFlvRecording);
            }
            fileExplorerObject.setRoomHome(publicFlvRecordings);
            fileExplorerObject.setRoomHomeSize(publicFileSize);
           
            return fileExplorerObject;
           
          }
    } catch (Exception err){
View Full Code Here


    try {
      Long users_id = sessionManagement.checkSession(SID);
      Long user_level = userManagement.getUserLevelByID(users_id);
      if (authLevelManagement.checkUserLevel(user_level)) {

        FLVRecorderObject fileExplorerObject = new FLVRecorderObject();

        // User Home Recordings
        List<FlvRecording> homeFlvRecordings = this.flvRecordingDaoImpl
            .getFlvRecordingRootByOwner(users_id);
        long homeFileSize = 0;

        for (FlvRecording homeFlvRecording : homeFlvRecordings) {
          homeFileSize += this
              .getSizeOfDirectoryAndSubs(homeFlvRecording);
        }

        fileExplorerObject.setUserHome(homeFlvRecordings);
        fileExplorerObject.setUserHomeSize(homeFileSize);

        // Public Recordings by Organization
        List<FlvRecording> publicFlvRecordings = this.flvRecordingDaoImpl
            .getFlvRecordingRootByPublic(organization_id);
        long publicFileSize = 0;

        for (FlvRecording publicFlvRecording : publicFlvRecordings) {
          publicFileSize += this
              .getSizeOfDirectoryAndSubs(publicFlvRecording);
        }
        fileExplorerObject.setRoomHome(publicFlvRecordings);
        fileExplorerObject.setRoomHomeSize(publicFileSize);

        return fileExplorerObject;

      }
    } catch (Exception err) {
View Full Code Here

TOP

Related Classes of org.openmeetings.app.data.flvrecord.beans.FLVRecorderObject

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.