I was wondering if there is a library that provides developers with some sort of abstraction for accessing JackRabbit more easily.
I'm aware of the fact that there are a few CMS that utilizes jackRabbit and that have such an abstraction.
Something that would cover all this :
InputStream stream = new BufferedInputStream(new FileInputStream(file));
Node folder = session.getNode("/absolute/path/to/folder/node");
Node file = folder.addNode("Article.pdf","nt:file");
Node content = file.addNode("jcr:content","nt:resource");
Binary binary = session.getValueFactory().createBinary(stream);
content.setProperty("jcr:data",binary);
Example :
JCRUtils.addFile(File file, String Title, String description, Map<String, String> properties, MixinType mixinType)
I'm going to implement this layer myself, but I wanted to be sure, that I won't "implement a wheel" that has been implemented.