Code Monkey home page Code Monkey logo

lightweightcmisserver's Introduction

CMIS 1.1 compliant lightweight server

Status

Build Status Coverage Status

This implementation is a fork of Apache Chemistry OpenCMIS inMemory Server with file persistence!

If you want a lightweight CMIS 1.1 server that allows custom types, secondary types and authentication support. This implementation is for you.

It persists all content files and metadata files (.metatdata extension file) on hard drive.

If you want to know more about the CMIS Standard (see https://www.oasis-open.org/committees/cmis)

Compilation

It's a maven project. Just run

mvn clean install

Usage

The configuration file is /src/main/webapp/WEB_INF/classes/repository.properties.

# ServiceFactory Implementation class
# Don't modify unless you know exactly what you are doing	
class=org.apache.chemistry.opencmis.inmemory.server.InMemoryServiceFactoryImpl

All the configure repository need to have a dedicated properties file at /src/main/webapp/WEB_INF/classes/. The content of these reposiroties file is the same as default.properties.

In the next section, you have to configure each repository.

Repository definition

There are many properties to configure for a repository. The most important ones are :

  • auth.mode
  • InMemoryServer.RepositoryId
  • persistenceDirectory
# Authentication mode
auth.mode=basic

# List of authenticated users
user.1 = test:test
user.2 = reader:reader
user.3 = admin:admin

# In Memory Settings
InMemoryServer.RepositoryId=default
InMemoryServer.TypeDefinitionsFile=/data/cmis/default-types.xml
InMemoryServer.Class=org.apache.chemistry.opencmis.inmemory.storedobj.impl.StoreManagerImpl
InMemoryServer.TempDir=/temp/cmis/A1

# settings for init repository with data
persistenceDirectory=/data/cmis/default

Installation

To install war file, you should use a Tomcat or Jetty server. In Tomcat, just copy the war into /webapp directory and start your service. An index page will be available at(http://localhost:8080/lightweightcmis).

Testing

There is a good CMIS client developed by Apache Chemistry. Just download the archive available here (http://chemistry.apache.org/java/developing/tools/dev-tools-workbench.html). Uncompress it and run workbench.bat or workbench.sh (depends on your platform).

URL : http://localhost:8080/lightweightcmis/browser
Binding : Browser
Username : test
Password : test
Authentication : Standard
Compression : On
Client Compression : Off
Cookies : On

Test Client Kit

Workbench provides a Test Client Kit (TCK) to verify CMIS 1.1 conformity. Feel free to run it on this implementation!

Proxyfied server

If you want to trace every HTTP exchange between client and server then just install Fiddler (http://www.telerik.com/fiddler) and change your server url

URL : http://localhost.:8080/lightweightcmis/browser

Note: Usage of this URL may slowed down the server's response time!

Docker

If you want to create a docker image.

git clone https://github.com/MGDIS/lightweightCMISserver.git
cd lightweightCMISserver
docker build -t lightweightcmis .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.