简体   繁体   English

Java文件存储实现

[英]Java file storage implementation

I would like to create small DMS in java. 我想在Java中创建小型DMS I will need for this some storage which will store only binary data. 我将需要一些仅存储二进制数据的存储。 I found jackrabbit or gridfs could help me to create something like filestore/repository, but don't know if that will be good enough. 我发现jackrabbitgridfs可以帮助我创建诸如文件存储/存储库之类的东西,但不知道这样是否足够好。

I need: 我需要:

  • Storage which will return ID on first save 存储将在首次保存时返回ID
  • If possible, save additional metadata of file 如果可能,保存文件的其他元数据
  • Versioning 版本
  • Query for the document 查询文件
  • Possibility to sync content between many servers 可以在许多服务器之间同步内容

What could be advantages of using something like jackrabbit or gridfs (or if there's better solution)? 使用jackrabbit或gridfs之类的东西(或者如果有更好的解决方案)可能有什么优势? I know that there exists some free DMS systems like alfresco but that's overkill for my needs. 我知道有一些免费的DMS系统,例如露天系统,但是对于我的需求来说这太过分了。

Apache Jackrabbit (or rather its more modern successor, Oak ) will do all this, and Oak can use MongoDB as its storage backend (I mention this as you have tagged your question with "mongodb"). Apache Jackrabbit(或者更现代的继承人Oak )将完成所有这些工作,并且Oak可以使用MongoDB作为其存储后端(我提到了这一点,因为您已经用“ mongodb”标记了您的问题)。 Using it together with Apache Sling provides you with a flexible content management framework. Apache Sling一起使用它可以为您提供一个灵活的内容管理框架。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM