From: Charles du Jeu Date: Mon, 14 Sep 2009 14:54:23 +0000 (+0000) Subject: Security RIA project X-Git-Tag: argeo-commons-2.1.30~1829 X-Git-Url: https://git.argeo.org/?p=lgpl%2Fargeo-commons.git;a=commitdiff_plain;h=79448bb289a3189aef143139eba1b6b3324d6ead Security RIA project git-svn-id: https://svn.argeo.org/commons/trunk@2910 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc --- diff --git a/security/runtime/org.argeo.security.ria/.project b/security/runtime/org.argeo.security.ria/.project new file mode 100644 index 000000000..e957cf815 --- /dev/null +++ b/security/runtime/org.argeo.security.ria/.project @@ -0,0 +1,11 @@ + + + org.argeo.security.ria + + + + + + + + diff --git a/security/runtime/org.argeo.security.ria/config.json b/security/runtime/org.argeo.security.ria/config.json new file mode 100644 index 000000000..edbea55bf --- /dev/null +++ b/security/runtime/org.argeo.security.ria/config.json @@ -0,0 +1,221 @@ +{ + "name" : "ria", + + "include" : + [ + { + "path" : "${QOOXDOO_PATH}/component/apiviewer/api.json", + "as" : "apiconf" + }, + { + "path" : "${QOOXDOO_PATH}/component/testrunner/testrunner.json", + "as" : "testrunner" + } + ], + + "let" : + { + "APPLICATION" : "org.argeo.ria", + "QOOXDOO_PATH" : "src/qooxdoo-sdk", + "QXTHEME" : "org.argeo.ria.theme.RiaTheme", + "API_EXCLUDE" : ["qx.legacy.*"], + "LOCALES" : [ "en" ], + "ROOT" : "src/argeo-ria-src", + "BUILD_PATH" : "target/classes/argeo-ria", + "RIA_LIB_PATH" : "src/argeo-ria-lib", + "RIA_LIB_URI" : "../argeo-ria-lib", + "CACHE" : "cache" , + "CUSTOM_PACKAGE" : "org.argeo.security.ria" + }, + + "jobs" : + { + "common" : + { + "library" : + [ + { + "manifest" : "${QOOXDOO_PATH}/framework/Manifest.json" + }, + { + "manifest" : "${RIA_LIB_PATH}/security/Manifest.json" + }, + { + "manifest" : "${ROOT}/Manifest.json" + } + ], + + "include" : + [ + "${APPLICATION}.Application", + "${CUSTOM_PACKAGE}.*", + "${QXTHEME}" + ], + + "cache" : + { + "compile" : "${CACHE}" + }, + + "settings" : + { + "qx.version" : "${QXVERSION}", + "qx.theme" : "${QXTHEME}", + "qx.application" : "${APPLICATION}.Application", + "ria.auth.enableAuth" : "false", + "ria.auth.credentialsURI" : "/org.argeo.slc.webapp/getCredentials.ria", + "ria.auth.loginURI" : "/org.argeo.slc.webapp/authService.ria", + "ria.auth.logoutURI" : "/org.argeo.slc.webapp/authService.ria?logout=true", + "ria.StartupPerspective":"org.argeo.slc.web.LauncherPerspective" + } + }, + + // -- source jobs -------------------------------------------------- + + "source-script" : + { + "extend" : ["common"], + + "compile-source" : + { + "file" : "${ROOT}/script/${APPLICATION}.js", + "locales" : "${LOCALES}", + "root" : "${ROOT}", + "gzip" : false + } + }, + + + "slc-source" : + { + "run" : + [ + "source-script" + ] + }, + + // -- build jobs -------------------------------------------------- + + "build-script" : + { + "extend" : ["common"], + + "variants" : + { + "qx.debug" : ["off"] + }, + + "compile-dist" : + { + "paths" : + { + "file" : "${BUILD_PATH}/script/${APPLICATION}.js", + "gzip" : false + }, + "uris" : + { + "script" : "script", + "resource" : "resource" + }, + "code" : + { + "format" : true, + "locales" : "${LOCALES}", + "optimize" : ["variables", "basecalls", "privates", "strings"] + } + /* + "file" : "${BUILD_PATH}/script/${APPLICATION}.js", + "target" : "${BUILD_PATH}", + "uri" : "script/${APPLICATION}.js", + "root" : "${BUILD_PATH}", + "format" : "on", + "locales" : "${LOCALES}", + "optimize" : ["basecalls", "variables", "privates", "strings"] + */ + } + }, + + + "build-resources": + { + "extend" : ["common"], + + "copy-resources" : + { + "target" : "${BUILD_PATH}", + "resource-filter" : true + } + }, + + "my-build-files" : + { + "extend" : ["common"], + + "copy-files" : + { + "files" : + [ + "index.html" + ], + "source" : "${ROOT}", + "target" : "${BUILD_PATH}" + } + }, + + "slc-build" : + { + "run" : + [ + "build-script", + "my-build-files", + "build-resources" + ] + }, + + "slc-api" : + { + "extend" : ["apiconf::build"], + + "let" : + { + "APIVIEWER_ROOT" : "${QOOXDOO_PATH}/component/apiviewer", + "BUILD_PATH" : "./target/site/argeo-ria-api/", + "API_INCLUDE" : ["${APPLICATION}.*", "${CUSTOM_PACKAGE}.*"] + }, + + "library" : + [ + { + "manifest" : "${ROOT}/Manifest.json", + "uri" : ".." + }, + { + "manifest" : "${RIA_LIB_PATH}/security/Manifest.json", + "uri" : "${RIA_LIB_URI}/security" + } + ] + }, + + "slc-test" : + { + "extend" : ["testrunner::build"], + + "let" : + { + "TESTRUNNER_ROOT" : "${QOOXDOO_PATH}/component/testrunner", + "TEST_INCLUDE" : "${APPLICATION}.test.*", + "BUILD_PATH" : "./target/site/argeo-ria-test/" + }, + + "library" : + [ + { + "manifest" : "${ROOT}/Manifest.json", + "uri" : ".." + } + ] + } + + + } +} diff --git a/security/runtime/org.argeo.security.ria/pom.xml b/security/runtime/org.argeo.security.ria/pom.xml new file mode 100644 index 000000000..e76d3c554 --- /dev/null +++ b/security/runtime/org.argeo.security.ria/pom.xml @@ -0,0 +1,181 @@ + + 4.0.0 + + org.argeo.commons.security + runtime + 0.1.1-SNAPSHOT + .. + + org.argeo.commons.security + org.argeo.security.ria + jar + Argeo Security Management + + + + src + + + + + + org.argeo.maven.plugins + maven-argeo-qooxdoo-plugin + ${version.maven-argeo-qooxdoo} + + 0.8.2.argeo.1 + + + + env + initialize + + env + + + + env-site + pre-site + + env + + + + slc-source + test + + generate + + + slc-source + + + + slc-build + test + + generate + + + slc-build + + + + slc-test + site + + generate + + + slc-test + + + + slc-api + site + + generate + + + slc-api + + + + + + maven-jar-plugin + + + target/classes/META-INF/MANIFEST.MF + + + + + org.apache.felix + maven-bundle-plugin + ${version.maven-bundle-plugin} + + + ${project.artifactId} + ${project.version}-r${buildNumber} + + + 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 + + org.argeo.slc.ria + + + + + bundle-manifest + process-classes + + manifest + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + unpack-argeo-ria-sdk + initialize + + unpack + + + + + org.argeo.ria + org.argeo.ria.core + ria + zip + src/argeo-ria-src + + + false + true + + + + + + org.apache.maven.plugins + maven-assembly-plugin + + + assembly-ria-slc + package + + single + + + + assembly/ria-slc.xml + + + + + + + + \ 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 index 000000000..f66957e98 --- /dev/null +++ b/security/runtime/org.argeo.security.ria/src/argeo-ria-lib/security/Manifest.json @@ -0,0 +1,34 @@ +{ + "info" : + { + "name" : "org.argeo.security.ria", + + "summary" : "Ria library for security management", + "description" : "Ria library for security management", + + "homepage" : "http://www.argeo.org/", + + "license" : "LGPL", + "authors" : + [ + { + "name" : "Charles du Jeu", + "email" : "charles.dujeu@argeo.org" + } + ], + + "version" : "trunk", + "qooxdoo-versions": ["0.8"] + }, + + "provides" : + { + "namespace" : "org.argeo.security.ria", + "encoding" : "utf-8", + "class" : "class", + "resource" : "resource", + "translation" : "translation", + "type" : "library" + } +} +