Magnolia CMS Modules

by Devexperts

Child pages
  • dx-magnolia-ocm

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 14 Next »

dx-magnolia-ocm is a library which integrates Jackrabbit OCM with Magnolia CMS

dx-magnolia-ocm doesn't depend on Magnolia, allowing to read and write Magnolia Jackrabbit storage from external applications

Advantages over Jackrabbit OCM
  • More polished API
  • Generic type safety
  • Magnolia content and node data collections are supported
  • Magnolia mgnl:resource type is supported
  • 1 to 1 mapping of OCM beans and JCR types is not required
  • Enums are fully supported, enum type is detected by field type
Getting started

Download library:
dx-magnolia-ocm-1.0.1.jar
dx-magnolia-ocm-1.0.1-sources.jar

Install it into your Maven repository:

call mvn install:install-file -DgroupId=com.devexperts.web -DartifactId=dx-magnolia-ocm -Dversion=1.0.1 -Dpackaging=jar -Dfile=dx-magnolia-ocm-1.0.1.jar -DgeneratePom=true
call mvn install:install-file -DgroupId=com.devexperts.web -DartifactId=dx-magnolia-ocm -Dversion=1.0.1 -Dpackaging=jar -Dclassifier=sources -Dfile=dx-magnolia-ocm-1.0.1-sources.jar -DgeneratePom=false

You may also put this library into external repository instead of local one.

Note: the library is going be published to publicitly available Maven repository soon, making these steps reduntant. Stay tuned.

Add the following dependency to your Maven project:

<dependency>
<groupId>com.devexperts.web</groupId>
<artifactId>dx-magnolia-ocm</artifactId>
<version>${dx-magnolia-ocm.version}</version>
</dependency>

Specify packages where OCM bean classes are searched. Add the following JVM parameter:

-Dcom.devexperts.ocm.packages=<comma separated list of packages> 

Now you can use this library in your code.

License 

The library is released under GPL license. Contact us if you need this module under different license.

  • No labels