ontomde-demo-flex 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ # 2008
2
+ initial publication
@@ -0,0 +1,35 @@
1
+ bin/ontomde-demo-flex-install
2
+ demo/1-unpack.bat
3
+ demo/1-unpack.sh
4
+ demo/2-generate.bat
5
+ demo/2-generate.sh
6
+ demo/3-flex.bat
7
+ demo/3-flex.sh
8
+ demo/4-start-webapp.bat
9
+ demo/4-start-webapp.sh
10
+ demo/9-eclipse.bat
11
+ demo/9-eclipse.sh
12
+ demo/domain/pom.xml
13
+ demo/ear/pom.xml
14
+ demo/flex2_sdk/flex2_sdk_hf1_download.URL
15
+ demo/flex2_sdk/README.txt
16
+ demo/mda/clean-generated.sh
17
+ demo/mda/pom.xml
18
+ demo/mda/src/main/mda/customDataTypes.rb
19
+ demo/mda/src/main/mda/dbDiscriminatorCache.rb
20
+ demo/mda/src/main/mda/javaMapping.rb-notused
21
+ demo/mda/src/main/mda/mda.rb
22
+ demo/mda/src/main/model/.project
23
+ demo/mda/src/main/model/model.emx
24
+ demo/mda/src/main/model/model.emx.nt
25
+ demo/mda/src/main/model/model.emx.nt_kb.pprj
26
+ demo/mda/src/main/model/model.emx.nt_kb.rdf
27
+ demo/mda/src/main/model/model.emx.nt_kb.rdfs
28
+ demo/mda/src/main/resources/formatter.properties
29
+ demo/pom.xml
30
+ demo/webapp/pom.xml
31
+ History.txt
32
+ lib/ontomde-demo-flex.rb
33
+ Manifest.txt
34
+ Rakefile
35
+ README.txt
@@ -0,0 +1,79 @@
1
+ ontomde-demo-acegi
2
+ by stephane (pierre) Carrie
3
+ http://ontomde.rubyforge.org/
4
+
5
+ == DESCRIPTION:
6
+
7
+ This is a demonstration project for our acegi integration
8
+
9
+ == FEATURES:
10
+
11
+ Generates a webapp with built in security:
12
+ * Authentification
13
+ * Access rights based on declared groups and roles.
14
+ * Access rights based on runtime rules.
15
+
16
+ Security provided by this demonstration is fully customisable.
17
+
18
+ == SYNOPSIS:
19
+ === INSTALLATION:
20
+ 1) download and install a ruby distribution (>=1.8.6)
21
+ ( http://rubyforge.org/frs/?group_id=167&release_id=17128 )
22
+ 2) update ruby plateform
23
+ $ set HTTP_PROXY=http://yourproxy:yourport (in case you need one)
24
+ $ gem update --system
25
+ 3) install ontomde
26
+ $ set HTTP_PROXY=http://yourproxy:yourport (in case you need one)
27
+ $ gem install ontomde
28
+
29
+ === RUN DEMONSTRATION:
30
+
31
+ unpack webapp ressources:
32
+ $ 1-unpack.bat (or .sh under cygwin or linux)
33
+
34
+ generate source code from UML model in mda/src/main/model
35
+ $ 2-generate.bat
36
+
37
+ Start webapp with security disabled (to setup an admin users)
38
+ $ 3-start-webapp-nosecurity.bat
39
+
40
+ Start webapp with security enabled
41
+ $ 4-start-webapp.bat
42
+
43
+ === Create your own uml model
44
+ This is modeler dependent. Please refer to the section that applies:
45
+
46
+ ====CREATE YOUR OWN UML MODEL (Objecteering users)
47
+ 1) download and install export plugin for objecteering on ontomde.rubyforge.org
48
+ 2) create a ontomde workproduct at the root of your project
49
+ 3) select src/main/model/model.emx.nt as target for your workproduct.
50
+ 4) run generate on your workproduct.
51
+ (this will update model.emx.nt file)
52
+ 5) generate & compile project using initial method.
53
+
54
+ ====CREATE YOUR OWN UML MODEL (Sparx system, XMI)
55
+ --> This featured is planned for Q2-2008
56
+ 1) export your project as self-containted XMI export file
57
+
58
+ == LICENSE:
59
+
60
+ Copyright (C) 2008 Orange-labs
61
+ 38 rue General Leclerc
62
+ 92130 ISSY LES MOULINEAUX, France
63
+
64
+ This program is free software: you can redistribute it and/or modify
65
+ it under the terms of the GNU Affero General Public License as
66
+ published by the Free Software Foundation, either version 3 of the
67
+ License, or (at your option) any later version.
68
+
69
+ This program is distributed in the hope that it will be useful,
70
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
71
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
72
+ GNU Affero General Public License for more details.
73
+
74
+ You should have received a copy of the GNU Affero General Public License
75
+ along with this program. If not, see http://www.gnu.org/licenses/.
76
+
77
+
78
+
79
+
@@ -0,0 +1,22 @@
1
+ # -*- ruby -*-
2
+
3
+ require 'rubygems'
4
+ require 'ontomde-hoe'
5
+ require '../ontomde-core/lib/ontomde-core/version.rb'
6
+
7
+
8
+ OntomdeHoe.new('ontomde-demo-flex', Ontomde::Core::VERSION) do |p|
9
+ p.need_zip=true
10
+ p.rubyforge_name = 'ontomde'
11
+ p.author = 'Eric Goueffon / Stephane Carrie'
12
+ p.email = 'stephanepierre.carrie@orange-ftgroup.com'
13
+ p.summary = 'OntoMDE for jBPM demonstration'
14
+ p.description = p.paragraphs_of('README.txt', 2..5).join("\n\n")
15
+ p.url="http://ontomde.rubyforge.org"
16
+ p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
17
+ p.extra_deps=[ ['ontomde',"= #{Ontomde::Core::VERSION}"] ]
18
+ p.spec_extras[:required_ruby_version]='>=1.8.6'
19
+ p.spec_extras[:required_rubygems_version]='>=1.0.0'
20
+ end
21
+
22
+ # vim: syntax=Ruby
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env ruby
2
+
3
+
4
+ require 'ontomde-core/demoInstaller.rb'
5
+ include DemoInstaller
6
+
7
+ # install demo by infering demo name
8
+ # and demo location from script name and location.
9
+ installDefaultDemo(__FILE__)
10
+
11
+
@@ -0,0 +1,6 @@
1
+ @echo off
2
+
3
+
4
+ cd webapp
5
+ mvn dependency:unpack
6
+
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env bash
2
+
3
+ cd webapp
4
+ mvn dependency:unpack
5
+
@@ -0,0 +1,4 @@
1
+ REM generate and compile application
2
+ @echo off
3
+ mvn clean install
4
+
@@ -0,0 +1,5 @@
1
+ #!/bin/bash
2
+ # generate and compile application
3
+
4
+ mvn clean install
5
+
@@ -0,0 +1,4 @@
1
+ @echo off
2
+
3
+ cd webapp/src/main/flex
4
+ ant
@@ -0,0 +1,4 @@
1
+ #!/bin/bash
2
+
3
+ cd webapp/src/main/flex
4
+ ant
@@ -0,0 +1,7 @@
1
+ @echo off
2
+
3
+ REM setup variable if your model contains graphviz graphs
4
+ REM set GRAPHVIZ_HOME='C:\opt\Graphviz'
5
+
6
+ cd webapp
7
+ mvn jetty:run-exploded
@@ -0,0 +1,4 @@
1
+ #!/bin/bash
2
+
3
+ cd webapp
4
+ mvn jetty:run-exploded
@@ -0,0 +1,5 @@
1
+ @echo off
2
+ REM generate descriptors for eclipse
3
+ REM You will need to set M2_REPO classpath variable in eclipse
4
+ REM after installing MAVEN PLUGIN
5
+ mvn eclipse:eclipse
@@ -0,0 +1,6 @@
1
+ #!/bin/bash
2
+
3
+ # generate descriptors for eclipse
4
+ # You will need to set M2_REPO classpath variable in eclipse
5
+ # after installing MAVEN PLUGIN
6
+ mvn eclipse:eclipse
@@ -0,0 +1,61 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project xmlns="http://maven.apache.org/POM/4.0.0"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
5
+ <parent>
6
+ <artifactId>projectbase</artifactId>
7
+ <groupId>ontomde.sample</groupId>
8
+ <version>1.0-SNAPSHOT</version>
9
+ </parent>
10
+ <modelVersion>4.0.0</modelVersion>
11
+ <artifactId>domain</artifactId>
12
+ <packaging>jar</packaging>
13
+ <name>domain</name>
14
+ <build>
15
+ <defaultGoal>package</defaultGoal>
16
+ <finalName>${pom.artifactId}</finalName>
17
+
18
+ <plugins>
19
+ <plugin>
20
+ <artifactId>maven-jar-plugin</artifactId>
21
+ <configuration>
22
+ <archive>
23
+ <addMavenDescriptor>false</addMavenDescriptor>
24
+ <manifest>
25
+ <addClasspath>true</addClasspath>
26
+ </manifest>
27
+ </archive>
28
+ </configuration>
29
+ </plugin>
30
+
31
+ </plugins>
32
+ </build>
33
+ <dependencies>
34
+
35
+ <dependency>
36
+ <groupId>net.sourceforge.ontomde</groupId>
37
+ <artifactId>ontomde-jpa</artifactId>
38
+ <version>${ontomde.lib.version}</version>
39
+ </dependency>
40
+
41
+ <dependency>
42
+ <groupId>net.sourceforge.ontomde</groupId>
43
+ <artifactId>ontomde-bpm-client</artifactId>
44
+ <version>${ontomde.lib.version}</version>
45
+ </dependency>
46
+
47
+ <dependency>
48
+ <groupId>javax.persistence</groupId>
49
+ <artifactId>persistence-api</artifactId>
50
+ <version>1.0</version>
51
+ </dependency>
52
+
53
+ <dependency>
54
+ <groupId>log4j</groupId>
55
+ <artifactId>log4j</artifactId>
56
+ <version>1.2.12</version>
57
+ </dependency>
58
+
59
+ </dependencies>
60
+ </project>
61
+
@@ -0,0 +1,160 @@
1
+ <project xmlns="http://maven.apache.org/POM/4.0.0"
2
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4
+ <modelVersion>4.0.0</modelVersion>
5
+ <parent>
6
+ <groupId>ontomde.sample</groupId>
7
+ <artifactId>projectbase</artifactId>
8
+ <version>1.0-SNAPSHOT</version>
9
+ </parent>
10
+ <artifactId>sample-ear</artifactId>
11
+ <packaging>ear</packaging>
12
+ <name>sample-ear</name>
13
+ <url>http://maven.apache.org</url>
14
+ <dependencies>
15
+
16
+ <dependency>
17
+ <groupId>com.francetelecom.road.xmda</groupId>
18
+ <artifactId>ontomde-bpm-client</artifactId>
19
+ <version>${ontomde.lib.version}</version>
20
+ <type>ejb</type>
21
+ </dependency>
22
+
23
+ <dependency>
24
+ <groupId>${pom.groupId}</groupId>
25
+ <artifactId>domain</artifactId>
26
+ <version>${pom.version}</version>
27
+ <type>ejb</type>
28
+ </dependency>
29
+
30
+ <dependency>
31
+ <groupId>${pom.groupId}</groupId>
32
+ <artifactId>webapp</artifactId>
33
+ <version>${pom.version}</version>
34
+ <type>war</type>
35
+ </dependency>
36
+
37
+ </dependencies>
38
+
39
+ <!-- 4. Specify the content of generated artifact. -->
40
+ <build>
41
+
42
+ <!-- 4.1. Specify the final name of the artifact. -->
43
+ <finalName>${artifactId}</finalName>
44
+
45
+ <defaultGoal>package</defaultGoal>
46
+
47
+ <!-- 4.2. We don't want to filter for this module: "filters" section is empty. -->
48
+
49
+ <plugins>
50
+
51
+ <plugin>
52
+ <groupId>org.apache.maven.plugins</groupId>
53
+ <artifactId>maven-ear-plugin</artifactId>
54
+ <configuration>
55
+ <encoding>UTF-8</encoding>
56
+ <version>5</version>
57
+ <!-- 4.5. Specify modules to include. -->
58
+ <modules>
59
+ <webModule>
60
+ <groupId>${pom.groupId}</groupId>
61
+ <artifactId>webapp</artifactId>
62
+ <contextRoot>/webapp</contextRoot>
63
+ <!-- 4.5.3.1. Only if you want different file name inside "ear" file.
64
+ <bundleFileName>myBundleWebApplicationModule1FileName</bundleFileName>
65
+ -->
66
+ <!-- 4.5.3.2. Specify the context root if you need different name. -->
67
+ <!-- Default is: "/${pom.artifactId} -->
68
+ </webModule>
69
+ <!-- 4.5.2. Include EJB Module. -->
70
+ <ejbModule>
71
+ <groupId>com.francetelecom.road.xmda</groupId>
72
+ <artifactId>ontomde-bpm-client</artifactId>
73
+ </ejbModule>
74
+ <ejbModule>
75
+ <groupId>${pom.groupId}</groupId>
76
+ <artifactId>domain</artifactId>
77
+ </ejbModule>
78
+ </modules>
79
+ <archive>
80
+ <addMavenDescriptor>false</addMavenDescriptor>
81
+ </archive>
82
+ </configuration>
83
+ </plugin>
84
+
85
+ </plugins>
86
+ </build>
87
+
88
+ <profiles>
89
+ <profile>
90
+ <id>JBOSS</id>
91
+ <activation>
92
+ <property>
93
+ <!-- a BUG avoid using ${env.JEE_SERVER} instead using mvn task -DJEE_SERVER -->
94
+ <name>JEE_SERVER</name>
95
+ <value>JBOSS</value>
96
+ </property>
97
+ </activation>
98
+ <build>
99
+ <plugins>
100
+ <plugin>
101
+ <groupId>org.codehaus.mojo</groupId>
102
+ <artifactId>jboss-maven-plugin</artifactId>
103
+ <executions>
104
+ <execution>
105
+ <phase>install</phase>
106
+ <goals>
107
+ <goal>deploy</goal>
108
+ </goals>
109
+ </execution>
110
+ </executions>
111
+ <configuration>
112
+ <jbossHome>
113
+ C:\applis\AppServers\jboss-5.0.0.Beta2
114
+ </jbossHome>
115
+ </configuration>
116
+ </plugin>
117
+ </plugins>
118
+ </build>
119
+ </profile>
120
+ <profile>
121
+
122
+ <id>GLASSFISH</id>
123
+ <activation>
124
+ <property>
125
+ <!-- a BUG avoid using ${env.JEE_SERVER} instead using mvn task -DJEE_SERVER -->
126
+ <name>JEE_SERVER</name>
127
+ <value>GLASSFISH</value>
128
+ </property>
129
+ </activation>
130
+ <build>
131
+ <plugins>
132
+ <plugin>
133
+ <groupId>pl.sliwa.maven.plugin</groupId>
134
+ <artifactId>glassfish-maven-plugin</artifactId>
135
+ <version>1.0-SNAPSHOT</version>
136
+ <executions>
137
+ <execution>
138
+ <phase>install</phase>
139
+ <goals>
140
+ <goal>deploy</goal>
141
+ </goals>
142
+ </execution>
143
+ </executions>
144
+ <configuration>
145
+ <glassfishHome>
146
+ c:\applis\AppServers\glassfish-v2-b58
147
+ </glassfishHome>
148
+ <domain>runtime</domain>
149
+ <domaindir>
150
+ c:\MesProjets\agis\ejb3
151
+ </domaindir>
152
+ <port>8048</port>
153
+ </configuration>
154
+ </plugin>
155
+ </plugins>
156
+ </build>
157
+ </profile>
158
+ </profiles>
159
+
160
+ </project>