Improve repo webapp
authorMathieu Baudier <mbaudier@argeo.org>
Fri, 15 Mar 2013 12:38:17 +0000 (12:38 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Fri, 15 Mar 2013 12:38:17 +0000 (12:38 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@6137 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

modules/org.argeo.slc.server.repo.webapp/WEB-INF/maven-servlet.xml
modules/org.argeo.slc.server.repo.webapp/WEB-INF/security.xml
modules/org.argeo.slc.server.repo.webapp/WEB-INF/web.xml
modules/org.argeo.slc.server.repo.webapp/howto.jsp [new file with mode: 0644]
modules/org.argeo.slc.server.repo.webapp/index.jsp [new file with mode: 0644]
modules/org.argeo.slc.server.repo.webapp/pom.xml

index 04d5151f04e11e2c14d4836bd3a1614951d99a7a..520280804b0e382780a328731ecd217a813f7b69 100644 (file)
@@ -28,6 +28,7 @@
        </bean>
 
        <bean id="jcrSession" class="org.argeo.security.jcr.SecureThreadBoundSession">
+               <property name="workspace" value="localrepo" />
                <property name="repository" ref="jcrRepository" />
        </bean>
 </beans>
\ No newline at end of file
index ddb4d2ec46f8abeacc7dcf18cf0ede31ac14d16d..948d935c5c9a7ae90c0301891ef3ecd570847d9e 100644 (file)
                        <value>
                                CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
                                PATTERN_TYPE_APACHE_ANT
-                               /public/**=IS_AUTHENTICATED_ANONYMOUSLY
-                               /**=ROLE_USER
+                               /private/**=ROLE_USER
+                               /**=IS_AUTHENTICATED_ANONYMOUSLY
                        </value>
-                       <!-- <value> -->
-                       <!-- CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON -->
-                       <!-- PATTERN_TYPE_APACHE_ANT -->
-                       <!-- /config/**=ROLE_ADMINISTRATOR -->
-                       <!-- /**=IS_AUTHENTICATED_ANONYMOUSLY -->
-                       <!-- </value> -->
                </property>
        </bean>
 
index a998cda0dfd6e442508c4d90daac53beddd96b1c..c2a68fbfcf21bf14780f8cb2dbd7a08731ad89e4 100644 (file)
@@ -2,6 +2,9 @@
 <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
        version="2.5">
+    <welcome-file-list>
+        <welcome-file>index.jsp</welcome-file>
+    </welcome-file-list>
 
        <display-name>Argeo SLC Repo Webapp</display-name>
 
diff --git a/modules/org.argeo.slc.server.repo.webapp/howto.jsp b/modules/org.argeo.slc.server.repo.webapp/howto.jsp
new file mode 100644 (file)
index 0000000..a8295da
--- /dev/null
@@ -0,0 +1 @@
+<h1>SLC Repository</h1>
diff --git a/modules/org.argeo.slc.server.repo.webapp/index.jsp b/modules/org.argeo.slc.server.repo.webapp/index.jsp
new file mode 100644 (file)
index 0000000..abcf57d
--- /dev/null
@@ -0,0 +1 @@
+You can browse public artifacts <a href="/ui/public">here</a>.
\ No newline at end of file
index 7efdbd0324154db6d7045bc34fa0088418d77548..44a37ea981804c12fbae857940d7b5af53d8954f 100644 (file)
@@ -1,4 +1,5 @@
-<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">
+<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.slc</groupId>
@@ -15,7 +16,7 @@
                                <artifactId>maven-bundle-plugin</artifactId>
                                <configuration>
                                        <instructions>
-                                               <Web-ContextPath>org.argeo.slc.repo.webapp</Web-ContextPath>
+                                               <Web-ContextPath>repo</Web-ContextPath>
                                                <!-- TODO optimize -->
                                                <Import-Package>
                                                        *,