REST Services on Groovy

REST Services on Groovy

Concept

Starting from version 1.9 JCR Service supports REST services creation on Groovy script.

The feature based on RESTful framework and uses ResourceContainer concept.

Usage

Scripts should extend ResourceContainer and should be stored in JCR as a node of type exo:groovyResourceContainer.

Detailed REST services step-by-step implementation check there Create REST service step by step.

Component configuration enables Groovy services loader:

<component>
    <type>org.exoplatform.services.jcr.ext.script.groovy.GroovyScript2RestLoader</type>
    <init-params>
      <object-param>
        <name>observation.config</name>
        <object type="org.exoplatform.services.jcr.ext.script.groovy.GroovyScript2RestLoader$ObservationListenerConfiguration">
          <field name="repository">
            <string>repository</string>
          </field>
          <field name="workspaces">
            <collection type="java.util.ArrayList">
              <value>
                <string>collaboration</string>
              </value>
            </collection>
          </field>
        </object>
      </object-param>
    </init-params>
  </component>
Tags:
Created by Peter Nedonosko on 07/10/2008
Last modified by Sören Schmidt on 08/13/2009

Products

generated on Thu Sep 02 15:23:53 UTC 2010

eXo Optional Modules

eXo Core Foundations


Copyright (c) 2000-2010. All Rights Reserved - eXo platform SAS
2.4.30451