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) {