Author: fmui
Date: Tue Dec 25 21:09:25 2012
New Revision: 1425773

URL: http://svn.apache.org/viewvc?rev=1425773&view=rev
Log:
Added OpenCMIS Server archetype

Added:
    
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/
    
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/pom.xml
   (with props)
    
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/
    
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/
    
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/
    
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/META-INF/
    
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/META-INF/maven/
    
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
   (with props)
    
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/
    
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/pom.xml
   (with props)
    
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/
    
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/
    
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/java/
    
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/java/src/
    
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/java/src/__projectPrefix__CmisService.java
   (with props)
    
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/java/src/__projectPrefix__CmisServiceFactory.java
   (with props)
    
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/webapp/
    
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/
    
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/classes/
    
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/classes/repository.properties
   (with props)
    
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/webapp/index.jsp
   (with props)
Modified:
    chemistry/opencmis/trunk/pom.xml

Added: 
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/pom.xml
URL: 
http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/pom.xml?rev=1425773&view=auto
==============================================================================
--- 
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/pom.xml
 (added)
+++ 
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/pom.xml
 Tue Dec 25 21:09:25 2012
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+    <!--
+        Licensed under the Apache License, Version 2.0 (the "License"); you 
may not use this file except in compliance
+        with the License. You may obtain a copy of the License at 
http://www.apache.org/licenses/LICENSE-2.0 Unless
+        required by applicable law or agreed to in writing, software 
distributed under the License is distributed on an
+        "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 
express or implied. See the License for the
+        specific language governing permissions and limitations under the 
License.
+    -->
+
+<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.apache.chemistry.opencmis</groupId>
+        <artifactId>chemistry-opencmis</artifactId>
+        <version>0.9.0-SNAPSHOT</version>
+        <relativePath>../../pom.xml</relativePath>
+    </parent>
+
+    <artifactId>chemistry-opencmis-server-archetype</artifactId>
+    <name>OpenCMIS Server Archetype</name>
+    <packaging>maven-archetype</packaging>
+    <description>OpenCMIS Server Framework archetype</description>
+
+    <properties>
+        <parentBasedir>../../</parentBasedir>
+        <opencmisVersion>${version}</opencmisVersion>
+    </properties>
+
+    <build>   
+        <resources>
+            <resource>
+                <directory>src/main/resources</directory>
+                <filtering>true</filtering>
+                <includes>
+                    <include>archetype-resources/pom.xml</include>
+                </includes>
+            </resource>
+            <resource>
+                <directory>src/main/resources</directory>
+                <filtering>false</filtering>
+                <excludes>
+                    <exclude>archetype-resources/pom.xml</exclude>
+                </excludes>
+            </resource>
+        </resources>
+
+        <extensions>
+            <extension>
+                <groupId>org.apache.maven.archetype</groupId>
+                <artifactId>archetype-packaging</artifactId>
+                <version>2.2</version>
+            </extension>
+        </extensions>
+
+        <pluginManagement>
+            <plugins>
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-archetype-plugin</artifactId>
+                    <version>2.2</version>
+                </plugin>
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-resources-plugin</artifactId>
+                    <version>2.6</version>
+                    <configuration>
+                         <escapeString>\</escapeString>
+                    </configuration>
+                </plugin>
+            </plugins>
+        </pluginManagement>
+    </build>
+
+</project>

Propchange: 
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
URL: 
http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml?rev=1425773&view=auto
==============================================================================
--- 
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
 (added)
+++ 
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
 Tue Dec 25 21:09:25 2012
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+    <!--
+        Licensed under the Apache License, Version 2.0 (the "License"); you 
may not use this file except in compliance
+        with the License. You may obtain a copy of the License at 
http://www.apache.org/licenses/LICENSE-2.0 Unless
+        required by applicable law or agreed to in writing, software 
distributed under the License is distributed on an
+        "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 
express or implied. See the License for the
+        specific language governing permissions and limitations under the 
License.
+    -->
+
+<archetype-descriptor name="OpenCMIS Server Framework">
+
+    <fileSets>
+        <fileSet filtered="true" packaged="true" encoding="UTF-8">
+            <directory>src/main/java</directory>
+            <includes>
+                <include>**/*.java</include>
+            </includes>
+        </fileSet>
+        <fileSet filtered="true" encoding="UTF-8">
+            <directory>src/main/webapp</directory>
+            <includes>
+                 <include>**/*.properties</include>
+                 <include>**/*.xml</include>
+                 <include>**/*.wsdl</include>
+                 <include>**/*.jsp</include>
+            </includes>
+        </fileSet>
+    </fileSets>
+
+    <requiredProperties>
+        <requiredProperty key="projectPrefix"/>
+    </requiredProperties>
+
+</archetype-descriptor>
\ No newline at end of file

Propchange: 
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
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=1425773&view=auto
==============================================================================
--- 
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/pom.xml
 (added)
+++ 
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/pom.xml
 Tue Dec 25 21:09:25 2012
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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>
+
+    <groupId>\${groupId}</groupId>
+    <artifactId>\${artifactId}</artifactId>
+    <version>\${version}</version>
+    <packaging>war</packaging>
+
+    <properties>
+        <opencmis.version>${opencmisVersion}</opencmis.version>
+    </properties>
+
+   <name>Your OpenCMIS Server</name>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-war-plugin</artifactId>
+                <version>2.3</version>
+                <configuration>
+                    <overlays>
+                        <overlay></overlay>
+                        <overlay>
+                            <groupId>org.apache.chemistry.opencmis</groupId>
+                            
<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>
+                            </excludes>
+                        </overlay>
+                    </overlays>
+                    <archiveClasses>true</archiveClasses>
+                    <attachClasses>true</attachClasses>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-eclipse-plugin</artifactId>
+                <version>2.9</version>
+                <configuration>
+                    <wtpversion>2.0</wtpversion>
+                    <wtpContextName>\${artifactId}</wtpContextName>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.chemistry.opencmis</groupId>
+            <artifactId>chemistry-opencmis-server-bindings</artifactId>
+            <version>\${opencmis.version}</version>
+            <type>war</type>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.chemistry.opencmis</groupId>
+            <artifactId>chemistry-opencmis-server-support</artifactId>
+            <version>\${opencmis.version}</version>
+        </dependency>
+    </dependencies>
+
+</project>

Propchange: 
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/java/src/__projectPrefix__CmisService.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/src/__projectPrefix__CmisService.java?rev=1425773&view=auto
==============================================================================
--- 
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/java/src/__projectPrefix__CmisService.java
 (added)
+++ 
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/java/src/__projectPrefix__CmisService.java
 Tue Dec 25 21:09:25 2012
@@ -0,0 +1,131 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+package ${package};
+
+import java.math.BigInteger;
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.chemistry.opencmis.commons.data.ExtensionsData;
+import org.apache.chemistry.opencmis.commons.data.ObjectData;
+import org.apache.chemistry.opencmis.commons.data.ObjectInFolderList;
+import org.apache.chemistry.opencmis.commons.data.ObjectParentData;
+import org.apache.chemistry.opencmis.commons.data.RepositoryInfo;
+import org.apache.chemistry.opencmis.commons.definitions.TypeDefinition;
+import org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionList;
+import org.apache.chemistry.opencmis.commons.enums.CapabilityAcl;
+import org.apache.chemistry.opencmis.commons.enums.CapabilityChanges;
+import 
org.apache.chemistry.opencmis.commons.enums.CapabilityContentStreamUpdates;
+import org.apache.chemistry.opencmis.commons.enums.CapabilityJoin;
+import org.apache.chemistry.opencmis.commons.enums.CapabilityQuery;
+import org.apache.chemistry.opencmis.commons.enums.CapabilityRenditions;
+import org.apache.chemistry.opencmis.commons.enums.IncludeRelationships;
+import 
org.apache.chemistry.opencmis.commons.impl.dataobjects.RepositoryCapabilitiesImpl;
+import 
org.apache.chemistry.opencmis.commons.impl.dataobjects.RepositoryInfoImpl;
+import org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService;
+import org.apache.chemistry.opencmis.commons.server.CallContext;
+
+/**
+ * CMIS Service Implementation.
+ */
+public class ${projectPrefix}CmisService extends AbstractCmisService {
+
+    private CallContext context;
+
+    // --- Call Context ---
+
+    /**
+     * Sets the call context.
+     * 
+     * This method should only be called by the service factory.
+     */
+    public void setCallContext(CallContext context) {
+        this.context = context;
+    }
+
+    /**
+     * Gets the call context.
+     */
+    public CallContext getCallContext() {
+        return context;
+    }
+
+    // --- CMIS Operations ---
+
+    @Override
+    public List<RepositoryInfo> getRepositoryInfos(ExtensionsData extension) {
+        // very basic repository info set up
+        RepositoryInfoImpl repositoryInfo = new RepositoryInfoImpl();
+
+        repositoryInfo.setId("repository1");
+        repositoryInfo.setName("${projectPrefix}");
+        repositoryInfo.setDescription("This is my first repository!");
+
+        repositoryInfo.setCmisVersionSupported("1.0");
+
+        repositoryInfo.setProductName("My Document Management System");
+        repositoryInfo.setProductVersion("0.1");
+        repositoryInfo.setVendorName("My Company");
+
+        repositoryInfo.setRootFolder("1234567890");
+
+        repositoryInfo.setThinClientUri("");
+
+        RepositoryCapabilitiesImpl capabilities = new 
RepositoryCapabilitiesImpl();
+        capabilities.setCapabilityAcl(CapabilityAcl.NONE);
+        capabilities.setAllVersionsSearchable(false);
+        capabilities.setCapabilityJoin(CapabilityJoin.NONE);
+        capabilities.setSupportsMultifiling(false);
+        capabilities.setSupportsUnfiling(false);
+        capabilities.setSupportsVersionSpecificFiling(false);
+        capabilities.setIsPwcSearchable(false);
+        capabilities.setIsPwcUpdatable(false);
+        capabilities.setCapabilityQuery(CapabilityQuery.NONE);
+        capabilities.setCapabilityChanges(CapabilityChanges.NONE);
+        
capabilities.setCapabilityContentStreamUpdates(CapabilityContentStreamUpdates.ANYTIME);
+        capabilities.setSupportsGetDescendants(true);
+        capabilities.setSupportsGetFolderTree(true);
+        capabilities.setCapabilityRendition(CapabilityRenditions.NONE);
+
+        return Collections.singletonList((RepositoryInfo) repositoryInfo);
+    }
+
+    @Override
+    public TypeDefinitionList getTypeChildren(String repositoryId, String 
typeId, Boolean includePropertyDefinitions,
+            BigInteger maxItems, BigInteger skipCount, ExtensionsData 
extension) {
+        // TODO implement
+        return null;
+    }
+
+    @Override
+    public TypeDefinition getTypeDefinition(String repositoryId, String 
typeId, ExtensionsData extension) {
+        // TODO implement
+        return null;
+    }
+
+    @Override
+    public ObjectInFolderList getChildren(String repositoryId, String 
folderId, String filter, String orderBy,
+            Boolean includeAllowableActions, IncludeRelationships 
includeRelationships, String renditionFilter,
+            Boolean includePathSegment, BigInteger maxItems, BigInteger 
skipCount, ExtensionsData extension) {
+        // TODO implement
+        return null;
+    }
+
+    @Override
+    public List<ObjectParentData> getObjectParents(String repositoryId, String 
objectId, String filter,
+            Boolean includeAllowableActions, IncludeRelationships 
includeRelationships, String renditionFilter,
+            Boolean includeRelativePathSegment, ExtensionsData extension) {
+        // TODO implement
+        return null;
+    }
+
+    @Override
+    public ObjectData getObject(String repositoryId, String objectId, String 
filter, Boolean includeAllowableActions,
+            IncludeRelationships includeRelationships, String renditionFilter, 
Boolean includePolicyIds,
+            Boolean includeAcl, ExtensionsData extension) {
+        // TODO implement
+        return null;
+    }
+
+}

Propchange: 
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/java/src/__projectPrefix__CmisService.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
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/src/__projectPrefix__CmisServiceFactory.java?rev=1425773&view=auto
==============================================================================
--- 
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/java/src/__projectPrefix__CmisServiceFactory.java
 (added)
+++ 
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/java/src/__projectPrefix__CmisServiceFactory.java
 Tue Dec 25 21:09:25 2012
@@ -0,0 +1,67 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+package ${package};
+
+import java.math.BigInteger;
+import java.util.Map;
+
+import 
org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory;
+import org.apache.chemistry.opencmis.commons.server.CallContext;
+import org.apache.chemistry.opencmis.commons.server.CmisService;
+import org.apache.chemistry.opencmis.server.support.CmisServiceWrapper;
+
+/**
+ * CMIS Service Factory.
+ */
+public class ${projectPrefix}CmisServiceFactory extends AbstractServiceFactory 
{
+
+    /** Default maxItems value for getTypeChildren()}. */
+    private static final BigInteger DEFAULT_MAX_ITEMS_TYPES = 
BigInteger.valueOf(50);
+
+    /** Default depth value for getTypeDescendants(). */
+    private static final BigInteger DEFAULT_DEPTH_TYPES = 
BigInteger.valueOf(-1);
+
+    /**
+     * Default maxItems value for getChildren() and other methods returning
+     * lists of objects.
+     */
+    private static final BigInteger DEFAULT_MAX_ITEMS_OBJECTS = 
BigInteger.valueOf(200);
+
+    /** Default depth value for getDescendants(). */
+    private static final BigInteger DEFAULT_DEPTH_OBJECTS = 
BigInteger.valueOf(10);
+
+    @Override
+    public void init(Map<String, String> parameters) {
+    }
+
+    @Override
+    public void destroy() {
+    }
+
+    @Override
+    public CmisService getService(CallContext context) {
+        // authentication can go here
+        String user = context.getUsername();
+        String password = context.getPassword();
+
+        // if authentication fails, throw CmisPermissionDeniedException
+
+        // create a new service object
+        // (can also be pooled or stored in a ThreadLocal)
+        ${projectPrefix}CmisService service = new 
${projectPrefix}CmisService();
+
+        // add the CMIS service wrapper
+        // (The wrapper catches invalid CMIS requests and sets default values
+        // for parameters that have not been provided by the client.)
+        CmisServiceWrapper<${projectPrefix}CmisService> wrapperService = 
+                new CmisServiceWrapper<${projectPrefix}CmisService>(service,
+                DEFAULT_MAX_ITEMS_TYPES, DEFAULT_DEPTH_TYPES, 
DEFAULT_MAX_ITEMS_OBJECTS, DEFAULT_DEPTH_OBJECTS);
+
+        // hand over the call context to the service object
+        service.setCallContext(context);
+
+        return wrapperService;
+    }
+
+}

Propchange: 
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/java/src/__projectPrefix__CmisServiceFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/classes/repository.properties
URL: 
http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/classes/repository.properties?rev=1425773&view=auto
==============================================================================
--- 
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/classes/repository.properties
 (added)
+++ 
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/classes/repository.properties
 Tue Dec 25 21:09:25 2012
@@ -0,0 +1 @@
+class=${package}.${projectPrefix}CmisServiceFactory
\ No newline at end of file

Propchange: 
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/classes/repository.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
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=1425773&view=auto
==============================================================================
--- 
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/webapp/index.jsp
 (added)
+++ 
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/webapp/index.jsp
 Tue Dec 25 21:09:25 2012
@@ -0,0 +1,76 @@
+<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
+    pageEncoding="ISO-8859-1"%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd";>
+
+<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>
+</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>
+
+<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>
+
+<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>
+
+
+<hr/>
+This software is powered by <a href="http://chemistry.apache.org/";> Apache 
Chemistry.</a>
+<br/>
+
+</body>
+</html>
\ No newline at end of file

Propchange: 
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/src/main/resources/archetype-resources/src/main/webapp/index.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: chemistry/opencmis/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/chemistry/opencmis/trunk/pom.xml?rev=1425773&r1=1425772&r2=1425773&view=diff
==============================================================================
--- chemistry/opencmis/trunk/pom.xml (original)
+++ chemistry/opencmis/trunk/pom.xml Tue Dec 25 21:09:25 2012
@@ -190,13 +190,14 @@
         
<module>chemistry-opencmis-server/chemistry-opencmis-server-inmemory</module>
         
<module>chemistry-opencmis-server/chemistry-opencmis-server-fileshare</module>
         
<module>chemistry-opencmis-server/chemistry-opencmis-server-jcr</module>
-        <module>chemistry-opencmis-bridge/chemistry-opencmis-bridge</module>   
     
+        
<module>chemistry-opencmis-server/chemistry-opencmis-server-archetype</module>
+        <module>chemistry-opencmis-bridge/chemistry-opencmis-bridge</module>
         <module>chemistry-opencmis-test/chemistry-opencmis-test-fit</module>
         <module>chemistry-opencmis-test/chemistry-opencmis-test-tck</module>
         <module>chemistry-opencmis-test/chemistry-opencmis-test-tools</module>
         <module>chemistry-opencmis-test/chemistry-opencmis-test-util</module>
         
<module>chemistry-opencmis-test/chemistry-opencmis-test-browser</module>
-        
<module>chemistry-opencmis-test/chemistry-opencmis-test-browser-app</module>    
    
+        
<module>chemistry-opencmis-test/chemistry-opencmis-test-browser-app</module>
         
<module>chemistry-opencmis-workbench/chemistry-opencmis-workbench</module>
         <module>chemistry-opencmis-osgi/chemistry-opencmis-osgi-client</module>
         <module>chemistry-opencmis-osgi/chemistry-opencmis-osgi-server</module>


Reply via email to