Permalink
Browse files

First cut from keynote demo

  • Loading branch information...
knrc committed Jun 30, 2012
0 parents commit 18ab6c7e8e52bbdb9a098f8ae3816c2b12a8ff9a
Showing 791 changed files with 55,827 additions and 0 deletions.
@@ -0,0 +1,2 @@
+.idea
+.errai
69 README
@@ -0,0 +1,69 @@
+Building
+--------
+
+1 - Build the admin and leaderboard applications
+ mvn clean install -Padmin
+ mvn clean install -Pleaderboard
+2 - Build the main application
+ mvn clean install
+ (add -DskipTests to build without running tests)
+
+Deploying
+---------
+
+There are three deployable artifacts created by the build
+ - distribution/target/drools-guvnor.war
+ Guvnor application
+ - distribution/target/designer.war
+ Process Designer application
+ - distribution/target/jbwdemo-application.ear
+ REST services, jBPM integration, mobile client application
+
+During the keynote demo we deployed the Guvnor and Designer applications on one server with the REST services etc. being deployed on a second server, however all artifacts can be deployed on the same server.
+
+Configuring Guvnor Server
+-------------------------
+
+1 - Add drools-guvnor domain into standalone/configuration/standalone.xml
+
+ <security-domain name="drools-guvnor" cache-type="default">
+ <authentication>
+ <login-module code="UsersRoles" flag="required">
+ <module-option name="usersProperties" value="${jboss.server.config.dir}/guvnor-users.properties"/>
+ <module-option name="rolesProperties" value="${jboss.server.config.dir}/guvnor-roles.properties"/>
+ </login-module>
+ </authentication>
+ </security-domain>
+
+2 - Create standalone/configuration/guvnor-users.properties
+ admin=admin
+
+3 - Create standalone/configuration/guvnor-roles.properties
+ admin=admin,manager,user,webdesigner,functionalanalyst
+
+Configuring REST Server
+-----------------------
+If you are using the default h2 ExampleDS then make sure that you enable MVCC as follows
+ <connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;MVCC=TRUE</connection-url>
+
+Initialising Guvnor Repository
+------------------------------
+
+After deploying the Guvnor/designer applications, and configuring the Guvnor server, log in to the Guvnor console (<host>:<port>/drools-guvnor, user admin, password admin) and import the repository using the contents of process/guvnor_repository_export.zip
+
+Accessing the Client Application
+--------------------------------
+
+- buyer application
+ <host>:<port>/jbossworld-client
+- approver application
+ <host>:<port>/jbossworld-client/#approver
+- VP application
+ <host>:<port>/jbossworld-client/#vp
+
+Running Robots
+--------------
+
+Execute the following from within the robots directory
+ mvn exec:java -Dexec.mainClass=org.jboss.jbw2012.keynote.robots.RobotsClient
+
@@ -0,0 +1,6 @@
+target
+.project
+.classpath
+.settings
+.gwt
+jbwdemo-admin-model.iml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
+ xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+
+ <artifactId>jbwdemo-admin-model</artifactId>
+
+ <parent>
+ <groupId>org.jboss.jbw.keynote2012</groupId>
+ <artifactId>parent</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <relativePath>../parent/pom.xml</relativePath>
+ </parent>
+
+ <packaging>jar</packaging>
+
+ <name>Keynote Admin model for JBoss World 2012</name>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+</project>
@@ -0,0 +1,7 @@
+package org.jboss.jbw2012.keynote.admin.model ;
+
+
+public enum AdminStoreStatus
+{
+ OPEN, VIP_ONLY, CLOSED
+}
@@ -0,0 +1,31 @@
+package org.jboss.jbw2012.keynote.admin.model;
+
+
+public class AdminUserInfo
+{
+ private final String name ;
+ private final String id ;
+ private final boolean vip ;
+
+ public AdminUserInfo(final String name, final String id, final boolean vip)
+ {
+ this.name = name ;
+ this.id = id ;
+ this.vip = vip ;
+ }
+
+ public String getName()
+ {
+ return name ;
+ }
+
+ public String getId()
+ {
+ return id ;
+ }
+
+ public boolean isVip()
+ {
+ return vip ;
+ }
+}
@@ -0,0 +1,5 @@
+package org.jboss.jbw2012.keynote.admin.model.events;
+
+public class AdminChooseWinnersEvent
+{
+}
@@ -0,0 +1,5 @@
+package org.jboss.jbw2012.keynote.admin.model.events;
+
+public class AdminChosenWinnersEvent
+{
+}
@@ -0,0 +1,5 @@
+package org.jboss.jbw2012.keynote.admin.model.events;
+
+public class AdminClearedEvent
+{
+}
@@ -0,0 +1,5 @@
+package org.jboss.jbw2012.keynote.admin.model.events;
+
+public class AdminConnectedEvent
+{
+}
@@ -0,0 +1,5 @@
+package org.jboss.jbw2012.keynote.admin.model.events;
+
+public class AdminResetEvent
+{
+}
@@ -0,0 +1,19 @@
+package org.jboss.jbw2012.keynote.admin.model.events;
+
+import org.jboss.jbw2012.keynote.admin.model.AdminStoreStatus ;
+
+
+public class AdminStoreStatusChangeEvent
+{
+ private final AdminStoreStatus storeStatus ;
+
+ public AdminStoreStatusChangeEvent(final AdminStoreStatus storeStatus)
+ {
+ this.storeStatus = storeStatus ;
+ }
+
+ public AdminStoreStatus getStoreStatus()
+ {
+ return storeStatus ;
+ }
+}
@@ -0,0 +1,19 @@
+package org.jboss.jbw2012.keynote.admin.model.events;
+
+import org.jboss.jbw2012.keynote.admin.model.AdminStoreStatus ;
+
+
+public class AdminStoreStatusEvent
+{
+ private final AdminStoreStatus storeStatus ;
+
+ public AdminStoreStatusEvent(final AdminStoreStatus storeStatus)
+ {
+ this.storeStatus = storeStatus ;
+ }
+
+ public AdminStoreStatus getStoreStatus()
+ {
+ return storeStatus ;
+ }
+}
@@ -0,0 +1,17 @@
+package org.jboss.jbw2012.keynote.admin.model.events;
+
+
+public class AdminUpdateBuyerCountEvent
+{
+ private final int buyerCount ;
+
+ public AdminUpdateBuyerCountEvent(final int buyerCount)
+ {
+ this.buyerCount = buyerCount;
+ }
+
+ public int getBuyerCount()
+ {
+ return buyerCount;
+ }
+}
@@ -0,0 +1,24 @@
+package org.jboss.jbw2012.keynote.admin.model.events;
+
+
+public class AdminUserQueryEvent
+{
+ private final int start ;
+ private final int length ;
+
+ public AdminUserQueryEvent(final int start, final int length)
+ {
+ this.start = start ;
+ this.length = length ;
+ }
+
+ public int getStart()
+ {
+ return start ;
+ }
+
+ public int getLength()
+ {
+ return length ;
+ }
+}
@@ -0,0 +1,27 @@
+package org.jboss.jbw2012.keynote.admin.model.events;
+
+import java.util.List ;
+
+import org.jboss.jbw2012.keynote.admin.model.AdminUserInfo ;
+
+public class AdminUserUpdateEvent
+{
+ private final int start ;
+ private final List<AdminUserInfo> userInfo ;
+
+ public AdminUserUpdateEvent(final int start, final List<AdminUserInfo> userInfo)
+ {
+ this.start = start ;
+ this.userInfo = userInfo ;
+ }
+
+ public int getStart()
+ {
+ return start ;
+ }
+
+ public List<AdminUserInfo> getUserInfo()
+ {
+ return userInfo ;
+ }
+}
@@ -0,0 +1,23 @@
+package org.jboss.jbw2012.keynote.admin.model.events;
+
+public class AdminUserVIPUpdateEvent
+{
+ private final String id ;
+ private final boolean vip ;
+
+ public AdminUserVIPUpdateEvent(final String id, final boolean vip)
+ {
+ this.id = id ;
+ this.vip = vip ;
+ }
+
+ public String getId()
+ {
+ return id ;
+ }
+
+ public boolean isVip()
+ {
+ return vip ;
+ }
+}
@@ -0,0 +1,6 @@
+target
+.project
+.classpath
+.settings
+.gwt
+jbwdemo-admin.iml
Oops, something went wrong.

0 comments on commit 18ab6c7

Please sign in to comment.