Jackrabbit plugin is a module that seamlessly integrates the Apache Jackrabbit with the Play! framework 2.
- Java 5, 6 or 7
- Play 2.2.1
-
Installing Play framework 2.2.1
-
Executing the command for installing the Jackrabbit Plugin
% git clone [email protected]:sgougi/play21-jackrabbit-plugin.git
-
Publishing the Jackrabbit Plugin to your local repository
% cd play21-jackrabbit-plugin % play publish-local
At a command prompt, type the following commands:
% cd play21-jackrabbit-plugin
% cd samples
% cd jackrabbit-simple-ocm-app
( or % cd jackrabbit-simple-jcrom-app )
% play run
There are basic usage in the source code of a sample application.
- Annotated model classes
- Application configuration: conf/application.conf
- Dependency settings: project/Build.scala
- Controller with OCM
The com.wingnest.play2.jackrabbit.Jcr class is a Facade class for the JCR.
- Repository Jcr.getRepository()
- Session Jcr.login()
- Session Jcr.getCurrentSession
- void Jcr.setCurrentSession()
Facade Class for OCM
The com.wingnest.play2.jackrabbit.OCM class is a Facade class for the OCM.
- ObjectContentManager OCM.getOCM(...)
Facade Class for JCROM
The com.wingnest.play2.jackrabbit.JCROM class is a Facade class for the JCROM.
- Jcrom JCROM.createJcrom()
- Nothing
Jackrabbit Plugin is distributed under the Apache 2 licence.