Author: fmui
Date: Thu Dec 27 20:38:32 2012
New Revision: 1426308
URL: http://svn.apache.org/viewvc?rev=1426308&view=rev
Log:
OpenCMIS server archetype improvements
Added:
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/java/__projectPrefix__CmisService.java
- copied unchanged from r1425773,
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/java/src/__projectPrefix__CmisService.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/java/__projectPrefix__CmisServiceFactory.java
- copied, changed from r1425773,
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/java/src/__projectPrefix__CmisServiceFactory.java
Removed:
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/java/src/
Modified:
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/pom.xml
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/webapp/index.jsp
Modified:
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/pom.xml
URL:
http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/pom.xml?rev=1426308&r1=1426307&r2=1426308&view=diff
==============================================================================
---
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/pom.xml
(original)
+++
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/pom.xml
Thu Dec 27 20:38:32 2012
@@ -28,16 +28,16 @@
<artifactId>chemistry-opencmis-server-bindings</artifactId>
<excludes>
<!-- exclude everything you don't need -->
- <exclude>index.html</exclude>
- <exclude>web/**</exclude>
-
<exclude>WEB-INF/classes/sample-repository.properties</exclude>
- <exclude>WEB-INF/token/**</exclude>
- <exclude>WEB-INF/websphere/**</exclude>
+ <exclude>index.html</exclude> <!-- default
index page -->
+ <exclude>css/**</exclude> <!-- CSS for the
default index page -->
+ <exclude>images/**</exclude> <!-- images for
the default index page -->
+ <exclude>web/**</exclude> <!-- sample
JavaScript application -->
+
<exclude>WEB-INF/classes/sample-repository.properties</exclude> <!-- sample
server properties file -->
+ <exclude>WEB-INF/token/**</exclude> <!--
sample Browser Binding token implementation -->
+ <exclude>WEB-INF/websphere/**</exclude> <!--
WebSphere specfic files -->
</excludes>
</overlay>
</overlays>
- <archiveClasses>true</archiveClasses>
- <attachClasses>true</attachClasses>
</configuration>
</plugin>
<plugin>
Copied:
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/java/__projectPrefix__CmisServiceFactory.java
(from r1425773,
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/java/src/__projectPrefix__CmisServiceFactory.java)
URL:
http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/java/__projectPrefix__CmisServiceFactory.java?p2=chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/java/__projectPrefix__CmisServiceFactory.java&p1=chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/java/src/__projectPrefix__CmisServiceFactory.java&r1=1425773&r2=1426308&rev=1426308&view=diff
==============================================================================
---
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/java/src/__projectPrefix__CmisServiceFactory.java
(original)
+++
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/java/__projectPrefix__CmisServiceFactory.java
Thu Dec 27 20:38:32 2012
@@ -45,7 +45,7 @@ public class ${projectPrefix}CmisService
String user = context.getUsername();
String password = context.getPassword();
- // if authentication fails, throw CmisPermissionDeniedException
+ // if the authentication fails, throw a CmisPermissionDeniedException
// create a new service object
// (can also be pooled or stored in a ThreadLocal)
Modified:
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/webapp/index.jsp
URL:
http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/webapp/index.jsp?rev=1426308&r1=1426307&r2=1426308&view=diff
==============================================================================
---
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/webapp/index.jsp
(original)
+++
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/webapp/index.jsp
Thu Dec 27 20:38:32 2012
@@ -4,72 +4,67 @@
<html>
<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<link rel="stylesheet" type="text/css" href="css/opencmis.css"/>
-<title>${artifactId} Server</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+ <link rel="stylesheet" type="text/css" href="css/opencmis.css">
+ <title>${artifactId} Server</title>
+ <style type="text/css">
+ <!--
+ body {
+ font-family: Verdana, arial, sans-serif;
+ color: black;
+ font-size: 12px;
+ }
+
+ h1 {
+ font-size: 24px;
+ line-height: normal;
+ font-weight: bold;
+ background-color: #f0f0f0;
+ color: #003366;
+ border-bottom: 1px solid #3c78b5;
+ padding: 2px;
+ margin: 4px 0px 4px 0px;
+ }
+
+ h2 {
+ font-size: 18px;
+ line-height: normal;
+ font-weight: bold;
+ background-color: #f0f0f0;
+ border-bottom: 1px solid #3c78b5;
+ padding: 2px;
+ margin: 4px 0px 4px 0px;
+ }
+
+ hr {
+ color: 3c78b5;
+ height: 1;
+ }
+ -->
+ </style>
</head>
<body>
<h1>${artifactId} Server</h1>
-<p> Your server is up and running.</p>
-<p>
- The ${artifactId} Server is a CMIS server based on Apache Chemistry
OpenCMIS.
-</p>
-<p>
- You have to use a CMIS client to use this application. An example for
- such a client is the <a
href="http://chemistry.apache.org/java/developing/tools/dev-tools-workbench.html">
CMIS Workbench.</a>
-</p>
+
+<p style="font-weight: bold">Your server is up and running.</p>
+<p>The ${artifactId} server is a CMIS server based on Apache Chemistry
OpenCMIS.</p>
+<p>You need a CMIS client to access this server. Download the <a
href="http://chemistry.apache.org/java/developing/tools/dev-tools-workbench.html">CMIS
Workbench</a>.</p>
<h2>Access Information</h2>
-<p>
-WS (SOAP) Binding: <a href="services/RepositoryService">All Services</a>
-</p>
-<p>
-AtomPub Binding: <a href="atom">Service Document</a>
-</p>
-<p>
-Browser Binding: <a href="browser">Service Document</a>
-</p>
-<p>
-Authentication: Basic Authentication
-Note: After initial creation of the application authentication is disabled.
-</p>
-
-<h2>Status</h2>
-<table>
-<tr> <th> Java VM </th> <th>Size</th></tr>
-<%
- Runtime runtime = Runtime.getRuntime ();
- long mb = 1048576;
- long value;
- value = runtime.totalMemory ();
- value = (value + mb/2) / mb;
- out.println("<tr><td> Used Memory </td>");
- out.println("<td>" + value + "MB</td></tr>");
- value = runtime.maxMemory ();
- value = (value + mb/2) / mb;
- out.println("<tr><td> Max Memory </td>");
- out.println("<td>" + value + "MB</td></tr>");
- value = runtime.freeMemory ();
- value = (value + mb/2) / mb;
- out.println("<tr><td> Free Memory </td>");
- out.println("<td>" + value + "MB</td>");
- out.println("<tr><td> Processors </td>");
- out.println("<td>" + runtime.availableProcessors() + "</td></tr>");
-%>
-</table>
+
+<p>Web Services Binding: <a href="services/RepositoryService">All
Services</a></p>
+<p>AtomPub Binding: <a href="atom">Service Document</a></p>
+<p>Browser Binding: <a href="browser">Service Document</a></p>
+<p>No authentication required.</p>
<h2>More Information</h2>
-<p>
- <a href="http://chemistry.apache.org"> Apache Chemistry web site</a>
-</p>
-<p>
- <a href="http://www.oasis-open.org/committees/cmis"> CMIS page at OASIS</a>
-</p>
+<p><a href="http://chemistry.apache.org">Apache Chemistry web site</a></p>
+<p><a href="http://www.oasis-open.org/committees/cmis">CMIS Technical
Committees at OASIS</a></p>
<hr/>
-This software is powered by <a href="http://chemistry.apache.org/"> Apache
Chemistry.</a>
+This software is powered by <a href="http://chemistry.apache.org/">Apache
Chemistry.</a>
<br/>
</body>