Security RIA project
authorCharles du Jeu <charles.dujeu@gmail.com>
Mon, 14 Sep 2009 14:54:23 +0000 (14:54 +0000)
committerCharles du Jeu <charles.dujeu@gmail.com>
Mon, 14 Sep 2009 14:54:23 +0000 (14:54 +0000)
git-svn-id: https://svn.argeo.org/commons/trunk@2910 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

security/runtime/org.argeo.security.ria/.project [new file with mode: 0644]
security/runtime/org.argeo.security.ria/config.json [new file with mode: 0644]
security/runtime/org.argeo.security.ria/pom.xml [new file with mode: 0644]
security/runtime/org.argeo.security.ria/src/argeo-ria-lib/security/Manifest.json [new file with mode: 0644]

diff --git a/security/runtime/org.argeo.security.ria/.project b/security/runtime/org.argeo.security.ria/.project
new file mode 100644 (file)
index 0000000..e957cf8
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<projectDescription>\r
+       <name>org.argeo.security.ria</name>\r
+       <comment></comment>\r
+       <projects>\r
+       </projects>\r
+       <buildSpec>\r
+       </buildSpec>\r
+       <natures>\r
+       </natures>\r
+</projectDescription>\r
diff --git a/security/runtime/org.argeo.security.ria/config.json b/security/runtime/org.argeo.security.ria/config.json
new file mode 100644 (file)
index 0000000..edbea55
--- /dev/null
@@ -0,0 +1,221 @@
+{\r
+  "name"    : "ria",\r
+\r
+  "include" :\r
+  [\r
+    {\r
+      "path" : "${QOOXDOO_PATH}/component/apiviewer/api.json",\r
+      "as"   : "apiconf"\r
+    },\r
+    {\r
+      "path" : "${QOOXDOO_PATH}/component/testrunner/testrunner.json",\r
+      "as"   : "testrunner"\r
+    }    \r
+  ],\r
+  \r
+  "let" :\r
+  {\r
+    "APPLICATION"  : "org.argeo.ria",\r
+    "QOOXDOO_PATH" : "src/qooxdoo-sdk",\r
+    "QXTHEME"      : "org.argeo.ria.theme.RiaTheme",\r
+    "API_EXCLUDE"  : ["qx.legacy.*"],\r
+    "LOCALES"      : [ "en" ],\r
+    "ROOT"         : "src/argeo-ria-src",\r
+       "BUILD_PATH"   : "target/classes/argeo-ria",\r
+       "RIA_LIB_PATH" : "src/argeo-ria-lib",\r
+       "RIA_LIB_URI"  : "../argeo-ria-lib",\r
+       "CACHE"            : "cache" ,\r
+       "CUSTOM_PACKAGE" : "org.argeo.security.ria"\r
+  },\r
+\r
+  "jobs" : \r
+  {\r
+    "common" :\r
+    {\r
+      "library" :\r
+      [\r
+        {\r
+          "manifest" : "${QOOXDOO_PATH}/framework/Manifest.json"\r
+        },\r
+        {\r
+          "manifest" : "${RIA_LIB_PATH}/security/Manifest.json"\r
+        },\r
+        {\r
+          "manifest" : "${ROOT}/Manifest.json"\r
+        }\r
+      ],\r
+\r
+      "include" :\r
+      [\r
+        "${APPLICATION}.Application",\r
+        "${CUSTOM_PACKAGE}.*",\r
+        "${QXTHEME}"\r
+      ],\r
+\r
+      "cache" :\r
+      {\r
+        "compile" :  "${CACHE}"\r
+      },\r
+\r
+      "settings" :\r
+      {\r
+        "qx.version"     : "${QXVERSION}",\r
+        "qx.theme"       : "${QXTHEME}",\r
+        "qx.application" : "${APPLICATION}.Application",\r
+        "ria.auth.enableAuth"          : "false",\r
+        "ria.auth.credentialsURI"      : "/org.argeo.slc.webapp/getCredentials.ria",\r
+        "ria.auth.loginURI"                    : "/org.argeo.slc.webapp/authService.ria",\r
+        "ria.auth.logoutURI"           : "/org.argeo.slc.webapp/authService.ria?logout=true",\r
+        "ria.StartupPerspective":"org.argeo.slc.web.LauncherPerspective"               \r
+      }\r
+    },\r
+\r
+    // -- source jobs --------------------------------------------------\r
+\r
+    "source-script" :\r
+    {\r
+      "extend" : ["common"],\r
+\r
+      "compile-source" :\r
+      {\r
+        "file" : "${ROOT}/script/${APPLICATION}.js",\r
+        "locales" : "${LOCALES}",\r
+        "root" : "${ROOT}",\r
+        "gzip" : false\r
+      }\r
+    },\r
+\r
+\r
+    "slc-source" :\r
+    {\r
+      "run" :\r
+      [\r
+        "source-script"\r
+      ]\r
+    },\r
+\r
+    // -- build jobs --------------------------------------------------\r
+\r
+    "build-script" :\r
+    {\r
+      "extend" : ["common"],\r
+\r
+      "variants" :\r
+      {\r
+        "qx.debug" : ["off"]\r
+      },\r
+\r
+      "compile-dist" :\r
+      {\r
+                 "paths" :\r
+                 {\r
+               "file" : "${BUILD_PATH}/script/${APPLICATION}.js",\r
+                   "gzip"     : false\r
+                 },\r
+                 "uris" :\r
+                 {\r
+                   "script"   : "script",\r
+                   "resource" : "resource"\r
+                 },\r
+                 "code" :\r
+                 {\r
+                   "format"   : true,\r
+                   "locales"  : "${LOCALES}",\r
+                   "optimize" : ["variables", "basecalls", "privates", "strings"]\r
+                 }\r
+      /*\r
+      "file" : "${BUILD_PATH}/script/${APPLICATION}.js",\r
+        "target" : "${BUILD_PATH}",\r
+        "uri"  : "script/${APPLICATION}.js",\r
+        "root" : "${BUILD_PATH}",\r
+        "format" : "on",\r
+        "locales" : "${LOCALES}",\r
+        "optimize" : ["basecalls", "variables", "privates", "strings"]\r
+       */\r
+      }\r
+    },\r
+\r
+\r
+    "build-resources":\r
+    {\r
+      "extend" : ["common"],\r
+\r
+      "copy-resources" :\r
+      {\r
+        "target"          : "${BUILD_PATH}",\r
+        "resource-filter" : true\r
+      }\r
+    },\r
+\r
+    "my-build-files" :\r
+    {\r
+      "extend" : ["common"],\r
+\r
+      "copy-files" :\r
+      {\r
+        "files" :\r
+        [\r
+          "index.html"\r
+        ],\r
+               "source" : "${ROOT}",\r
+        "target" : "${BUILD_PATH}"\r
+      }\r
+    },\r
+       \r
+    "slc-build" :\r
+    {\r
+      "run" :\r
+      [\r
+        "build-script",\r
+        "my-build-files",\r
+        "build-resources"\r
+      ]\r
+    },\r
+    \r
+    "slc-api" :\r
+    {\r
+      "extend" : ["apiconf::build"],\r
+\r
+      "let" :\r
+      {\r
+        "APIVIEWER_ROOT" : "${QOOXDOO_PATH}/component/apiviewer",\r
+        "BUILD_PATH" : "./target/site/argeo-ria-api/",\r
+        "API_INCLUDE" : ["${APPLICATION}.*", "${CUSTOM_PACKAGE}.*"]\r
+      },\r
+\r
+      "library" :\r
+      [\r
+        {\r
+          "manifest" : "${ROOT}/Manifest.json",\r
+          "uri"      : ".."\r
+        },\r
+        {\r
+          "manifest" : "${RIA_LIB_PATH}/security/Manifest.json",\r
+          "uri"      : "${RIA_LIB_URI}/security"\r
+        }       \r
+      ]\r
+    },\r
+    \r
+    "slc-test" :\r
+    {\r
+      "extend" : ["testrunner::build"],\r
+\r
+      "let" :\r
+      {\r
+        "TESTRUNNER_ROOT" : "${QOOXDOO_PATH}/component/testrunner",\r
+        "TEST_INCLUDE"    : "${APPLICATION}.test.*",\r
+        "BUILD_PATH"      : "./target/site/argeo-ria-test/"\r
+      },\r
+\r
+      "library" :\r
+      [\r
+        {\r
+          "manifest" : "${ROOT}/Manifest.json",\r
+          "uri"      : ".."\r
+        }\r
+      ]\r
+    }\r
+    \r
+       \r
+  }\r
+}\r
diff --git a/security/runtime/org.argeo.security.ria/pom.xml b/security/runtime/org.argeo.security.ria/pom.xml
new file mode 100644 (file)
index 0000000..e76d3c5
--- /dev/null
@@ -0,0 +1,181 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+       <modelVersion>4.0.0</modelVersion>
+       <parent>
+               <groupId>org.argeo.commons.security</groupId>
+               <artifactId>runtime</artifactId>
+               <version>0.1.1-SNAPSHOT</version>
+               <relativePath>..</relativePath>
+       </parent>
+       <groupId>org.argeo.commons.security</groupId>
+       <artifactId>org.argeo.security.ria</artifactId>
+       <packaging>jar</packaging>
+       <name>Argeo Security Management</name>
+       <build>
+               <resources>
+                       <resource>
+                               <directory>src</directory>
+                               <!--
+                               <includes>
+                                       <include>index.jsp</include>
+                                       <include>WEB-INF/*</include>
+                               </includes>
+                               -->
+                       </resource>
+               </resources>
+               <plugins>
+                       <plugin>
+                               <groupId>org.argeo.maven.plugins</groupId>
+                               <artifactId>maven-argeo-qooxdoo-plugin</artifactId>
+                               <version>${version.maven-argeo-qooxdoo}</version>
+                               <configuration>
+                                       <sdkVersion>0.8.2.argeo.1</sdkVersion>
+                               </configuration>
+                               <executions>
+                                       <execution>
+                                               <id>env</id>
+                                               <phase>initialize</phase>
+                                               <goals>
+                                                       <goal>env</goal>
+                                               </goals>
+                                       </execution>
+                                       <execution>
+                                               <id>env-site</id>
+                                               <phase>pre-site</phase>
+                                               <goals>
+                                                       <goal>env</goal>
+                                               </goals>
+                                       </execution>
+                                       <execution>
+                                               <id>slc-source</id>
+                                               <phase>test</phase>
+                                               <goals>
+                                                       <goal>generate</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <job>slc-source</job>
+                                               </configuration>
+                                       </execution>
+                                       <execution>
+                                               <id>slc-build</id>
+                                               <phase>test</phase>
+                                               <goals>
+                                                       <goal>generate</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <job>slc-build</job>
+                                               </configuration>
+                                       </execution>
+                                       <execution>
+                                               <id>slc-test</id>
+                                               <phase>site</phase>
+                                               <goals>
+                                                       <goal>generate</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <job>slc-test</job>
+                                               </configuration>
+                                       </execution>
+                                       <execution>
+                                               <id>slc-api</id>
+                                               <phase>site</phase>
+                                               <goals>
+                                                       <goal>generate</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <job>slc-api</job>
+                                               </configuration>
+                                       </execution>
+                               </executions>
+                       </plugin>
+                       <plugin>
+                               <artifactId>maven-jar-plugin</artifactId>
+                               <configuration>
+                                       <archive>
+                                               <manifestFile>target/classes/META-INF/MANIFEST.MF</manifestFile>
+                                       </archive>
+                               </configuration>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.apache.felix</groupId>
+                               <artifactId>maven-bundle-plugin</artifactId>
+                               <version>${version.maven-bundle-plugin}</version>
+                               <configuration>
+                                       <instructions>
+                                               <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
+                                               <Bundle-Version>${project.version}-r${buildNumber}</Bundle-Version>
+                                               <Export-Package />
+                                               <Import-Package>
+                                                       javax.servlet,
+                                                       javax.servlet.http,
+                                                       javax.servlet.jsp,
+                                                       javax.servlet.jsp.jstl.core,
+                                                       javax.servlet.jsp.jstl.fmt,
+                                                       javax.servlet.jsp.jstl.tlv,
+                                                       javax.servlet.resources,
+                                                       org.springframework.security.ui.webapp,
+                                                       org.springframework.security.userdetails.memory,
+                                                       org.springframework.web.context,
+                                                       org.springframework.osgi.web.context.support,
+                                                       org.springframework.web.filter,
+                                                       org.springframework.security.context
+                                               </Import-Package>
+                                               <Web-ContextPath>org.argeo.slc.ria</Web-ContextPath>
+                                       </instructions>
+                               </configuration>
+                               <executions>
+                                       <execution>
+                                               <id>bundle-manifest</id>
+                                               <phase>process-classes</phase>
+                                               <goals>
+                                                       <goal>manifest</goal>
+                                               </goals>
+                                       </execution>
+                               </executions>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-dependency-plugin</artifactId>
+                               <executions>
+                                       <execution>
+                                               <id>unpack-argeo-ria-sdk</id>
+                                               <phase>initialize</phase>
+                                               <goals>
+                                                       <goal>unpack</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <artifactItems>
+                                                               <artifactItem>
+                                                                       <groupId>org.argeo.ria</groupId>
+                                                                       <artifactId>org.argeo.ria.core</artifactId>
+                                                                       <classifier>ria</classifier>
+                                                                       <type>zip</type>
+                                                                       <outputDirectory>src/argeo-ria-src</outputDirectory>
+                                                               </artifactItem>
+                                                       </artifactItems>
+                                                       <overWriteReleases>false</overWriteReleases>
+                                                       <overWriteSnapshots>true</overWriteSnapshots>
+                                               </configuration>
+                                       </execution>
+                               </executions>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-assembly-plugin</artifactId>
+                               <executions>
+                                       <execution>
+                                               <id>assembly-ria-slc</id>
+                                               <phase>package</phase>
+                                               <goals>
+                                                       <goal>single</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <descriptors>
+                                                               <descriptor>assembly/ria-slc.xml</descriptor>
+                                                       </descriptors>
+                                               </configuration>
+                                       </execution>
+                               </executions>
+                       </plugin>
+               </plugins>
+       </build>
+</project>
\ No newline at end of file
diff --git a/security/runtime/org.argeo.security.ria/src/argeo-ria-lib/security/Manifest.json b/security/runtime/org.argeo.security.ria/src/argeo-ria-lib/security/Manifest.json
new file mode 100644 (file)
index 0000000..f66957e
--- /dev/null
@@ -0,0 +1,34 @@
+{\r
+  "info" : \r
+  {\r
+    "name" : "org.argeo.security.ria",\r
+\r
+    "summary" : "Ria library for security management",\r
+    "description" : "Ria library for security management",\r
+    \r
+    "homepage" : "http://www.argeo.org/",\r
+\r
+    "license" : "LGPL",\r
+    "authors" : \r
+    [\r
+      {\r
+        "name" : "Charles du Jeu",\r
+        "email" : "charles.dujeu@argeo.org"\r
+      }\r
+    ],\r
+\r
+    "version" : "trunk",\r
+    "qooxdoo-versions": ["0.8"]\r
+  },\r
+  \r
+  "provides" : \r
+  {\r
+    "namespace"   : "org.argeo.security.ria",\r
+    "encoding"    : "utf-8",\r
+    "class"       : "class",\r
+    "resource"    : "resource",\r
+    "translation" : "translation",\r
+    "type"        : "library"\r
+  }\r
+}\r
+\r