diff --git a/record-and-playback/webminer/.gitignore b/labs/webminer/.gitignore similarity index 100% rename from record-and-playback/webminer/.gitignore rename to labs/webminer/.gitignore diff --git a/record-and-playback/webminer/README b/labs/webminer/README similarity index 100% rename from record-and-playback/webminer/README rename to labs/webminer/README diff --git a/record-and-playback/webminer/build.gradle b/labs/webminer/build.gradle similarity index 100% rename from record-and-playback/webminer/build.gradle rename to labs/webminer/build.gradle diff --git a/record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/Constants.java b/labs/webminer/src/main/java/org/bigbluebutton/webminer/Constants.java similarity index 100% rename from record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/Constants.java rename to labs/webminer/src/main/java/org/bigbluebutton/webminer/Constants.java diff --git a/record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/Main.java b/labs/webminer/src/main/java/org/bigbluebutton/webminer/Main.java similarity index 100% rename from record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/Main.java rename to labs/webminer/src/main/java/org/bigbluebutton/webminer/Main.java diff --git a/record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/config/ConfigHandler.java b/labs/webminer/src/main/java/org/bigbluebutton/webminer/config/ConfigHandler.java similarity index 100% rename from record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/config/ConfigHandler.java rename to labs/webminer/src/main/java/org/bigbluebutton/webminer/config/ConfigHandler.java diff --git a/record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/index/Index.java b/labs/webminer/src/main/java/org/bigbluebutton/webminer/index/Index.java similarity index 100% rename from record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/index/Index.java rename to labs/webminer/src/main/java/org/bigbluebutton/webminer/index/Index.java diff --git a/record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/search/Search.java b/labs/webminer/src/main/java/org/bigbluebutton/webminer/search/Search.java similarity index 100% rename from record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/search/Search.java rename to labs/webminer/src/main/java/org/bigbluebutton/webminer/search/Search.java diff --git a/record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/swf/PresentationMeta.java b/labs/webminer/src/main/java/org/bigbluebutton/webminer/swf/PresentationMeta.java similarity index 100% rename from record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/swf/PresentationMeta.java rename to labs/webminer/src/main/java/org/bigbluebutton/webminer/swf/PresentationMeta.java diff --git a/record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/swf/SwfDocument.java b/labs/webminer/src/main/java/org/bigbluebutton/webminer/swf/SwfDocument.java similarity index 100% rename from record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/swf/SwfDocument.java rename to labs/webminer/src/main/java/org/bigbluebutton/webminer/swf/SwfDocument.java diff --git a/record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/swf/SwfParser.java b/labs/webminer/src/main/java/org/bigbluebutton/webminer/swf/SwfParser.java similarity index 100% rename from record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/swf/SwfParser.java rename to labs/webminer/src/main/java/org/bigbluebutton/webminer/swf/SwfParser.java diff --git a/record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/swf/SwfParserException.java b/labs/webminer/src/main/java/org/bigbluebutton/webminer/swf/SwfParserException.java similarity index 100% rename from record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/swf/SwfParserException.java rename to labs/webminer/src/main/java/org/bigbluebutton/webminer/swf/SwfParserException.java diff --git a/record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/util/Log4jDirectConfigurer.java b/labs/webminer/src/main/java/org/bigbluebutton/webminer/util/Log4jDirectConfigurer.java similarity index 100% rename from record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/util/Log4jDirectConfigurer.java rename to labs/webminer/src/main/java/org/bigbluebutton/webminer/util/Log4jDirectConfigurer.java diff --git a/record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/web/CourseIndexingController.java b/labs/webminer/src/main/java/org/bigbluebutton/webminer/web/CourseIndexingController.java similarity index 100% rename from record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/web/CourseIndexingController.java rename to labs/webminer/src/main/java/org/bigbluebutton/webminer/web/CourseIndexingController.java diff --git a/record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/web/controller/CourseIndexingController.java b/labs/webminer/src/main/java/org/bigbluebutton/webminer/web/controller/CourseIndexingController.java similarity index 100% rename from record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/web/controller/CourseIndexingController.java rename to labs/webminer/src/main/java/org/bigbluebutton/webminer/web/controller/CourseIndexingController.java diff --git a/record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/web/controller/SearchController.java b/labs/webminer/src/main/java/org/bigbluebutton/webminer/web/controller/SearchController.java similarity index 100% rename from record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/web/controller/SearchController.java rename to labs/webminer/src/main/java/org/bigbluebutton/webminer/web/controller/SearchController.java diff --git a/record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/web/controller/ViewLinkController.java b/labs/webminer/src/main/java/org/bigbluebutton/webminer/web/controller/ViewLinkController.java similarity index 100% rename from record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/web/controller/ViewLinkController.java rename to labs/webminer/src/main/java/org/bigbluebutton/webminer/web/controller/ViewLinkController.java diff --git a/record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/web/model/IndexingContentSource.java b/labs/webminer/src/main/java/org/bigbluebutton/webminer/web/model/IndexingContentSource.java similarity index 100% rename from record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/web/model/IndexingContentSource.java rename to labs/webminer/src/main/java/org/bigbluebutton/webminer/web/model/IndexingContentSource.java diff --git a/record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/web/model/MatchVO.java b/labs/webminer/src/main/java/org/bigbluebutton/webminer/web/model/MatchVO.java similarity index 100% rename from record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/web/model/MatchVO.java rename to labs/webminer/src/main/java/org/bigbluebutton/webminer/web/model/MatchVO.java diff --git a/record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/web/model/SearchCriteriaCommand.java b/labs/webminer/src/main/java/org/bigbluebutton/webminer/web/model/SearchCriteriaCommand.java similarity index 100% rename from record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/web/model/SearchCriteriaCommand.java rename to labs/webminer/src/main/java/org/bigbluebutton/webminer/web/model/SearchCriteriaCommand.java diff --git a/record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/web/model/SessionHitsOrganizer.java b/labs/webminer/src/main/java/org/bigbluebutton/webminer/web/model/SessionHitsOrganizer.java similarity index 100% rename from record-and-playback/webminer/src/main/java/org/bigbluebutton/webminer/web/model/SessionHitsOrganizer.java rename to labs/webminer/src/main/java/org/bigbluebutton/webminer/web/model/SessionHitsOrganizer.java diff --git a/record-and-playback/webminer/src/main/webapp/SlidePlayer1.swf b/labs/webminer/src/main/webapp/SlidePlayer1.swf similarity index 100% rename from record-and-playback/webminer/src/main/webapp/SlidePlayer1.swf rename to labs/webminer/src/main/webapp/SlidePlayer1.swf diff --git a/record-and-playback/webminer/src/main/webapp/WEB-INF/applicationContext-Service.xml b/labs/webminer/src/main/webapp/WEB-INF/applicationContext-Service.xml similarity index 100% rename from record-and-playback/webminer/src/main/webapp/WEB-INF/applicationContext-Service.xml rename to labs/webminer/src/main/webapp/WEB-INF/applicationContext-Service.xml diff --git a/record-and-playback/webminer/src/main/webapp/WEB-INF/log4j.properties b/labs/webminer/src/main/webapp/WEB-INF/log4j.properties similarity index 100% rename from record-and-playback/webminer/src/main/webapp/WEB-INF/log4j.properties rename to labs/webminer/src/main/webapp/WEB-INF/log4j.properties diff --git a/record-and-playback/webminer/src/main/webapp/WEB-INF/messages.properties b/labs/webminer/src/main/webapp/WEB-INF/messages.properties similarity index 100% rename from record-and-playback/webminer/src/main/webapp/WEB-INF/messages.properties rename to labs/webminer/src/main/webapp/WEB-INF/messages.properties diff --git a/record-and-playback/webminer/src/main/webapp/WEB-INF/web.xml b/labs/webminer/src/main/webapp/WEB-INF/web.xml similarity index 100% rename from record-and-playback/webminer/src/main/webapp/WEB-INF/web.xml rename to labs/webminer/src/main/webapp/WEB-INF/web.xml diff --git a/record-and-playback/webminer/src/main/webapp/WEB-INF/webminer-servlet.xml b/labs/webminer/src/main/webapp/WEB-INF/webminer-servlet.xml similarity index 100% rename from record-and-playback/webminer/src/main/webapp/WEB-INF/webminer-servlet.xml rename to labs/webminer/src/main/webapp/WEB-INF/webminer-servlet.xml diff --git a/record-and-playback/webminer/src/main/webapp/WEB-INF/webminer.properties b/labs/webminer/src/main/webapp/WEB-INF/webminer.properties similarity index 100% rename from record-and-playback/webminer/src/main/webapp/WEB-INF/webminer.properties rename to labs/webminer/src/main/webapp/WEB-INF/webminer.properties diff --git a/record-and-playback/webminer/src/main/webapp/jsp/SlidePlayer1.mxml b/labs/webminer/src/main/webapp/jsp/SlidePlayer1.mxml similarity index 100% rename from record-and-playback/webminer/src/main/webapp/jsp/SlidePlayer1.mxml rename to labs/webminer/src/main/webapp/jsp/SlidePlayer1.mxml diff --git a/record-and-playback/webminer/src/main/webapp/jsp/courseIndexing.jsp b/labs/webminer/src/main/webapp/jsp/courseIndexing.jsp similarity index 100% rename from record-and-playback/webminer/src/main/webapp/jsp/courseIndexing.jsp rename to labs/webminer/src/main/webapp/jsp/courseIndexing.jsp diff --git a/record-and-playback/webminer/src/main/webapp/jsp/index.jsp b/labs/webminer/src/main/webapp/jsp/index.jsp similarity index 100% rename from record-and-playback/webminer/src/main/webapp/jsp/index.jsp rename to labs/webminer/src/main/webapp/jsp/index.jsp diff --git a/record-and-playback/webminer/src/main/webapp/jsp/search.jsp b/labs/webminer/src/main/webapp/jsp/search.jsp similarity index 100% rename from record-and-playback/webminer/src/main/webapp/jsp/search.jsp rename to labs/webminer/src/main/webapp/jsp/search.jsp diff --git a/record-and-playback/publish.py b/record-and-playback/publish.py deleted file mode 100755 index b167eb2cce..0000000000 --- a/record-and-playback/publish.py +++ /dev/null @@ -1,126 +0,0 @@ -import os, getopt, sys -import shutil -from lxml.builder import E -from lxml import etree -import time - -def usage(): - print ' -------------------------------------------------------------------------' - print ' ' - print ' Usage:' - print ' publish.py -m [meetingid] -i [ingest dir] -p [publish dir]' - print ' ' - print ' h, --help Print this' - print ' m, --meeting-id The id of the meeting' - print ' i, --ingest-dir The location of the ingest dir' - print ' p, --publish-dir The location of the publish dir' - print ' -------------------------------------------------------------------------' - -def printUsageHelp(): - usage() - sys.exit(2) - -def copy_files_to_publish_dir(meetingId, ingestDir, publishDir): - ''' - Copy all files from the archive directory to the ingest directory in preparation for processing. - ''' - if (os.path.isdir(publishDir) is False): - os.makedirs(publishDir) - shutil.copytree(ingestDir + "/" + meetingId, publishDir + "/" + meetingId) - -def generate_index_html(publishDir, playbackHost): - ''' - Copy all audio recordings and presentations into the archive directory. - ''' - html = page = ( - E.html( - E.head( - E.title("List of recordings"), - E.body( - E.h1('List of recordings!') - ) - ) - ) - ) - - - dirList = os.listdir(publishDir) - ctimeDict = {} - ctimes = [] - for fname in dirList: - if (os.path.isdir(publishDir + "/" + fname)): - tree = etree.parse(publishDir + "/" + fname + '/events.xml') - r = tree.xpath('/events/head/title') - title = r[0].text - print r[0].text - ctime = os.path.getctime(publishDir + "/" + fname) - ctimes.append(ctime) - link = "http://" + playbackHost + "/playback/playback.html?meetingId=" + fname - ctimeDict[ctime] = title, fname, link - - ctimes.sort() - ctimes.reverse() - - for c in ctimes: - lnk = ctimeDict[c] - ev = E.p(time.ctime(c), E.a(lnk[0], href=lnk[2])) - page.append(ev) - - print(etree.tostring(page, pretty_print=True)) - - targetFile = publishDir + "/index.html" - f = open(targetFile, 'w') - f.write(etree.tostring(page, pretty_print=True)) - f.close() - - -def main(): - meetingId = "" - ingestDir = "" - publishDir = "" - playbackHost = "" - - try: - opts, args = getopt.getopt(sys.argv[1:], "hm:i:p:k:", ["help", "meeting-id=", "ingest-dir=", "publish-dir=", "playback-host="]) - except getopt.GetoptError, err: - # print help information and exit: - print str(err) - usage() - sys.exit(2) - for o, a in opts: - if o in ("-h", "--help"): - usage() - sys.exit() - elif o in ("-m", "--meeting-id"): - meetingId = a - elif o in ("-i", "--ingest-dir"): - ingestDir = a - elif o in ("-p", "--publish-dir"): - publishDir = a - elif o in ("-k", "--playback-host"): - playbackHost = a - else: - assert False, "unhandled option" - - printUsage = False - if (meetingId == ""): - print "Missing meeting id." - printUsage = True - if (ingestDir == ""): - print "Missing ingest dir." - printUsage = True - if (publishDir == ""): - print "Missing publish dir." - printUsage = True - if (playbackHost == ""): - print "Missing playback host." - printUsage = True - if (printUsage): - printUsageHelp() - - copy_files_to_publish_dir(meetingId, ingestDir, publishDir) - - generate_index_html(publishDir, playbackHost) - -if __name__ == "__main__": - main()