简体   繁体   English

两个文件夹之间的关系 - Alfresco

[英]Relationship between 2 folders - Alfresco

I'm reading the book AlfrescoCMIS, and the book refers a creation of a relationship between two folders in Alfresco. 我正在阅读AlfrescoCMIS这本书,这本书指的是在Alfresco中创建两个文件夹之间的关系。 I run the code and I don't understand what is in fact this relationship, can anyone help me to understand what is a relationship between two folders or between two files? 我运行代码并且我不明白实际上这是什么关系,任何人都可以帮助我理解两个文件夹之间或两个文件之间的关系是什么?

A relationship or association is a link between two objects. 关系或关联是两个对象之间的链接。 A concrete example is "related documents". 一个具体的例子是“相关文件”。 Suppose you create a PDF in your CMIS repository and that PDF is related to N other PDFs. 假设您在CMIS存储库中创建PDF,并且该PDF与其他N个PDF相关。 You'd like to be able to ask that PDF for all of its related documents. 您希望能够向PDF索取所有相关文档。 So, one way to implement that is to create a "related documents" relationship between the source PDF and all of its related PDFs. 因此,实现这一点的一种方法是在源PDF和其所有相关PDF之间创建“相关文档”关系。

Relationships are typed, so you can define any kind of relationship that makes sense for your requirements. 关系是键入的,因此您可以定义任何对您的要求有意义的关系。

My example describes a relationship between documents, but relationships can be created between folders and between folders and documents as well. 我的示例描述了文档之间的关系,但也可以在文件夹之间以及文件夹和文档之间创建关系。

For a more detailed discussion on relationships, please refer to relationships section in the CMIS specification . 有关关系的更详细讨论,请参阅CMIS规范中的关系部分。

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

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