java 如何学习使用内容存储库和 Apache JackRabbit?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17783838/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to learn using content repository and Apache HymanRabbit?
提问by LuckyLuke
Where do I go after doing the "First hops" in the Apache HymanRabbit website? I don't understand how to create a repository that is not in memory and how to configure it and so on.
在 Apache HymanRabbit 网站上完成“First hops”之后我该去哪里?我不明白如何创建不在内存中的存储库以及如何配置它等等。
采纳答案by ehsavoie
You could look also at Silverpeascode. It's using Hymanrabbit with some simple code to create nodes, browse them etc. For example take a look into https://github.com/Silverpeas/Silverpeas-Core/blob/master/lib-core/src/main/java/org/silverpeas/attachment/repository/DocumentRepository.javaThe tests are using in memory repository but the final stuff is using a 'real' repository.
您还可以查看Silverpeas代码。它使用 Hymanrabbit 和一些简单的代码来创建节点,浏览它们等。例如查看https://github.com/Silverpeas/Silverpeas-Core/blob/master/lib-core/src/main/java/org /silverpeas/attachment/repository/DocumentRepository.java测试在内存存储库中使用,但最终的内容是使用“真实”存储库。
Also you might take a look at JBoss Modeshapewhich is another implementation of the JCR API. Some of the docs are cross implementation. There is also Crashwhich enables you to add a shell to your running repository.
您还可以查看JBoss Modeshape,它是 JCR API 的另一个实现。一些文档是交叉实现的。还有Crash,它使您能够向正在运行的存储库添加一个 shell。
回答by greenkode
Welcome to my world. The Hymanrabbit documentation is a bit all over the place. you will have to do some serious googling.
欢迎来到我的世界。Hymanrabbit 文档有点到处都是。你将不得不做一些认真的谷歌搜索。
However the Wikiis a good place to start. Start with the Examples page. Just try to add a new record into the CMS. Then implement versioning. Don't worry about embedding it yet into an application. I would use the standalone version at this stage.
然而,Wiki是一个很好的起点。从示例页面开始。只需尝试将新记录添加到 CMS 中。然后实现版本控制。不要担心将它嵌入到应用程序中。在这个阶段我会使用独立版本。
If you're up to it, you can also download the Apache Slingsource codes. Look through the JCR packages. You'll get a few tips on how to use it in a Web application.
如果您愿意,还可以下载Apache Sling源代码。查看 JCR 包。您将获得一些有关如何在 Web 应用程序中使用它的提示。