Skip to content

Commit

Permalink
- bringing bigbluebutton-web into trunk
Browse files Browse the repository at this point in the history
git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@1190 af16638f-c34d-0410-8cfa-b39d5352b314
  • Loading branch information
ritzalam committed Apr 1, 2009
1 parent bd26c36 commit 98dc0bc
Show file tree
Hide file tree
Showing 235 changed files with 21,402 additions and 0 deletions.
92 changes: 92 additions & 0 deletions bigbluebutton-web/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/java"/>
<classpathentry kind="src" path="src/groovy"/>
<classpathentry kind="src" path="grails-app/conf"/>
<classpathentry kind="src" path="grails-app/controllers"/>
<classpathentry kind="src" path="grails-app/domain"/>
<classpathentry kind="src" path="grails-app/services"/>
<classpathentry kind="src" path="grails-app/taglib"/>
<classpathentry kind="src" path="test/integration"/>
<classpathentry kind="src" path="test/unit"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="lib/asterisk-java-0.3.1.jar"/>
<classpathentry kind="lib" path="lib/groovy-all-1.5.4.jar"/>
<classpathentry kind="lib" path="lib/mysql-connector-java-5.1.6-bin.jar"/>
<classpathentry kind="lib" path="lib/commons-httpclient.jar"/>
<classpathentry kind="lib" path="lib/commons-codec-1.3.jar"/>
<classpathentry kind="output" path="web-app/WEB-INF/classes"/>
<classpathentry kind="var" path="GRAILS_HOME/ant/lib/ant.jar"/>
<classpathentry kind="var" path="GRAILS_HOME/lib/ant-junit.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/ant-launcher.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/ant-nodeps.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/ant-trax.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/ant.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/antlr-2.7.6.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/backport-util-concurrent-3.0.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/cglib-nodep-2.1_3.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/commons-beanutils-1.7.0.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/commons-cli-1.0.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/commons-codec-1.3.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/commons-collections-3.2.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/commons-dbcp-1.2.1.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/commons-el-1.0.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/commons-fileupload-1.1.1.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/commons-io-1.4.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/commons-lang-2.1.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/commons-logging-1.1.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/commons-pool-1.2.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/commons-validator-1.3.0.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/dom4j-1.6.1.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/ehcache-1.5.0.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/ejb3-persistence.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/groovy-all-1.5.6.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/hibernate-annotations.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/hibernate-commons-annotations.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/hibernate3.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/hsqldb-1.8.0.5.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/jasper-compiler-5.5.15.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/jasper-compiler-jdt-5.5.15.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/jasper-runtime-5.5.15.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/jaxen-1.1-beta-11.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/jdbc2_0-stdext.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/jetty-6.1.12.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/jetty-naming-6.1.12.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/jetty-plus-6.1.12.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/jetty-util-6.1.12.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/jline-0.9.91.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/jsp-api-2.0.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/jsr107cache-1.0.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/jstl-2.3.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/jstl-2.4.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/jta.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/junit-3.8.2.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/log4j-1.2.15.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/ognl-2.6.9.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/oro-2.0.8.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/oscache-2.4.1.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/serializer.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/servlet-api-2.5-6.1.4.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/sitemesh-2.3.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/spring-2.5.6.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/spring-binding-2.0-m1.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/spring-test.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/spring-webflow-2.0-m1.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/spring-webmvc.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/standard-2.3.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/standard-2.4.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/start.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/svnkit-1.2.0.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/xalan.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/xercesImpl.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/xpp3_min-1.1.3.4.O.jar" />
<classpathentry kind="var" path="GRAILS_HOME/lib/xstream-1.2.1.jar" />
<classpathentry kind="var" path="GRAILS_HOME/dist/grails-cli-1.0.4.jar" />
<classpathentry kind="var" path="GRAILS_HOME/dist/grails-core-1.0.4.jar" />
<classpathentry kind="var" path="GRAILS_HOME/dist/grails-crud-1.0.4.jar" />
<classpathentry kind="var" path="GRAILS_HOME/dist/grails-gorm-1.0.4.jar" />
<classpathentry kind="var" path="GRAILS_HOME/dist/grails-spring-1.0.4.jar" />
<classpathentry kind="var" path="GRAILS_HOME/dist/grails-test-1.0.4.jar" />
<classpathentry kind="var" path="GRAILS_HOME/dist/grails-web-1.0.4.jar" />
<classpathentry kind="var" path="GRAILS_HOME/dist/grails-webflow-1.0.4.jar" />
</classpath>
23 changes: 23 additions & 0 deletions bigbluebutton-web/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>bigbluebutton</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.codehaus.groovy.eclipse.groovyBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.codehaus.groovy.eclipse.groovyNature</nature>
</natures>
</projectDescription>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#Created by grails
eclipse.preferences.version=1
groovy.dont.generate.class.files=true
11 changes: 11 additions & 0 deletions bigbluebutton-web/INSTALL
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
1. Create database
> mysql -u root -p
Enter password: ********

mysql> create database bigbluebutton_dev;

mysql> create database bigbluebutton_test;

mysql> create database bigbluebutton_prod;

mysql> grant all on bigbluebutton_dev.* to 'bbb'@'localhost' identified by 'secret';
76 changes: 76 additions & 0 deletions bigbluebutton-web/agi/scripts/meetme.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@

println "meetme begin"


number = channel.getData("conf-getconfno", 10000, 10)
conf = db.firstRow("SELECT * FROM conference WHERE conference_number=$number")
if (conf) println "found one! " + conf.conference_name

if (conf) {
pin = channel.getData("conf-getpin", 10000)
println pin
println conf.pin
if (pin.toInteger() == conf.pin) {
channel.streamFile("conf-placeintoconf")
channel.exec("Meetme", "$number|dMq")
} else {
channel.streamFile("conf-invalidpin")
}
} else {
channel.streamFile("conf-invalid")
}

/*
//channel.streamFile("conf-adminmenu")
//channel.streamFile("conf-banned")
//channel.streamFile("conf-enteringno")
//channel.streamFile("conference-call")
//channel.streamFile("conference")
//channel.streamFile("conference-reservations")
//channel.streamFile("conf-errormenu")
channel.streamFile("conf-full")
//channel.streamFile("conf-getchannel")
channel.streamFile("conf-getpin")
//channel.streamFile("conf-hasentered")
//channel.streamFile("conf-hasjoin")
//channel.streamFile("conf-hasleft")
channel.streamFile("conf-invalid")
channel.streamFile("confirm-number-is")
//channel.streamFile("conf-kicked")
//channel.streamFile("conf-leaderhasleft")
//channel.streamFile("conf-locked")
//channel.streamFile("conf-lockednow")
//channel.streamFile("conf-muted")
//channel.streamFile("conf-noempty")
//channel.streamFile("conf-onlyone")
//channel.streamFile("conf-onlyperson")
//channel.streamFile("conf-onlypersonleft")
//channel.streamFile("conf-otherinparty")
//channel.streamFile("conf-peopleinconf")
//channel.streamFile("conf-recordings")
//channel.streamFile("conf-sysop")
//channel.streamFile("conf-sysopreqcancelled")
//channel.streamFile("conf-sysopreq")
channel.streamFile("conf-thereare")
//channel.streamFile("conf-unlockednow")
//channel.streamFile("conf-unmuted")
//channel.streamFile("conf-usermenu")
//channel.streamFile("conf-userswilljoin")
//channel.streamFile("conf-userwilljoin")
channel.streamFile("conf-waitforleader")
channel.streamFile("conf-youareinconfnum")
*/

println "meetme end"


def getDigits(int number) {
StringBuffer sb = new StringBuffer()
for (int t = 0; t < number; t++) {
sb.append(channel.waitForDigit(10000))
}
return sb.toString()
}
6 changes: 6 additions & 0 deletions bigbluebutton-web/application.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Do not edit app.grails.* properties, they may change automatically. DO NOT put application configuration in here, it is not the right place!
#Wed Jan 21 21:39:37 EST 2009
app.version=0.1
app.servlet.version=2.4
app.grails.version=1.0.4
app.name=bigbluebutton
20 changes: 20 additions & 0 deletions bigbluebutton-web/bigbluebutton.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="grails.util.GrailsMain"/>
<booleanAttribute key="org.eclipse.jdt.debug.ui.INCLUDE_EXTERNAL_JARS" value="true"/>
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot; javaProject=&quot;bigbluebutton&quot; path=&quot;1&quot; type=&quot;4&quot;/&gt;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry id=&quot;org.eclipse.jdt.launching.classpathentry.defaultClasspath&quot;&gt;&#10;&lt;memento exportedEntriesOnly=&quot;false&quot; project=&quot;bigbluebutton&quot;/&gt;&#10;&lt;/runtimeClasspathEntry&gt;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/bigbluebutton&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#10;"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="4"/>
</listAttribute>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="bigbluebutton"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dbase.dir=${project_loc} -Dserver.port=8080 -Dgrails.env=development"/>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/bigbluebutton"/>
</listAttribute>
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
</launchConfiguration>
73 changes: 73 additions & 0 deletions bigbluebutton-web/bigbluebutton.tmproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>documents</key>
<array>
<dict>
<key>filename</key>
<string>bigbluebutton.launch</string>
</dict>
<dict>
<key>filename</key>
<string>build.xml</string>
</dict>
<dict>
<key>name</key>
<string>grails-app</string>
<key>regexFolderFilter</key>
<string>!.*/(\.[^/]*|CVS|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$</string>
<key>sourceDirectory</key>
<string>grails-app</string>
</dict>
<dict>
<key>name</key>
<string>test</string>
<key>regexFolderFilter</key>
<string>!.*/(\.[^/]*|CVS|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$</string>
<key>sourceDirectory</key>
<string>test</string>
</dict>
<dict>
<key>name</key>
<string>lib</string>
<key>regexFolderFilter</key>
<string>!.*/(\.[^/]*|CVS|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$</string>
<key>sourceDirectory</key>
<string>lib</string>
</dict>
<dict>
<key>name</key>
<string>scripts</string>
<key>regexFolderFilter</key>
<string>!.*/(\.[^/]*|CVS|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$</string>
<key>sourceDirectory</key>
<string>scripts</string>
</dict>
<dict>
<key>name</key>
<string>src</string>
<key>regexFolderFilter</key>
<string>!.*/(\.[^/]*|CVS|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$</string>
<key>sourceDirectory</key>
<string>src</string>
</dict>
<dict>
<key>name</key>
<string>web-app</string>
<key>regexFolderFilter</key>
<string>!.*/(\.[^/]*|CVS|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$</string>
<key>sourceDirectory</key>
<string>web-app</string>
</dict>
</array>
<key>fileHierarchyDrawerWidth</key>
<integer>200</integer>
<key>metaData</key>
<dict/>
<key>showFileHierarchyDrawer</key>
<true/>
<key>windowFrame</key>
<string>{{237, 127}, {742, 553}}</string>
</dict>
</plist>
41 changes: 41 additions & 0 deletions bigbluebutton-web/build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<project name="bigbluebutton" default="test">

<condition property="grails" value="grails.bat">
<os family="windows"/>
</condition>
<property name="grails" value="grails" />

<!-- =================================
target: clean
================================= -->
<target name="clean" description="--> Cleans a Grails application">
<exec executable="${grails}" failonerror="true">
<arg value="clean"/>
</exec>
</target>

<!-- =================================
target: war
================================= -->
<target name="war" description="--> Creates a WAR of a Grails application">
<exec executable="${grails}" failonerror="true">
<arg value="war"/>
</exec>
</target>

<!-- =================================
target: test
================================= -->
<target name="test" description="--> Run a Grails applications unit tests">
<exec executable="${grails}" failonerror="true">
<arg value="test-app"/>
</exec>
</target>

<!-- =================================
target: deploy
================================= -->
<target name="deploy" depends="war" description="--> The deploy target (initially empty)">
<!-- TODO -->
</target>
</project>
36 changes: 36 additions & 0 deletions bigbluebutton-web/grails-app/conf/BootStrap.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import org.jsecurity.crypto.hash.Sha1Hash
//import org.springframework.jms.listener.DefaultMessageListenerContainer

class BootStrap {
def jmsContainer

def init = { servletContext ->
// Administrator user and role.
def adminRole = new Role(name: "Administrator").save()
def adminUser = new User(username: "admin", passwordHash: new Sha1Hash("admin").toHex(),
email: "[email protected]", fullName: "Admin").save()
new UserRoleRel(user: adminUser, role: adminRole).save()

// A normal user.
def userRole = new Role(name: "User").save()
def normalUser = new User(username: "phil", passwordHash: new Sha1Hash("password").toHex(),
email: "[email protected]", fullName: "Phil").save()
new UserRoleRel(user: normalUser, role: userRole).save()

// Give another user the "User" role.
normalUser = new User(username: "alice", passwordHash: new Sha1Hash("changeit").toHex(),
email: "[email protected]", fullName: "Alice").save()
new UserRoleRel(user: normalUser, role: userRole).save()

/** Start the JMS Container defined in resources.groovy**/

log.info "Starting JMS Container"
println "Starting JMS Container"
jmsContainer.initialize()
jmsContainer.start()
println "Started JMS Container"
}

def destroy = {
}
}
Loading

0 comments on commit 98dc0bc

Please sign in to comment.