如何使用 java 客户端按 artifactory 中的多个属性进行过滤?
How can I filter by multiple properties in artifactory using the java client?
Properties are for Guiding, not for Restricting
When you define a property-set with 'strongly-typed' property values, those values are used to provide an intuitive, guiding UI for tagging and locating items.
The actual value does not force a strong relationship to the original property-set's predefined values. This is by design, to not slow-down common repository operations and for keeping artifacts management simple by allowing properties to change and evolve freely over time, without worrying about breaking older property rules.
Properties are therefore a helpful and non-restrictive feature.
来自这个link:https://www.jfrog.com/confluence/display/RTF/Properties
这是否意味着 artifactory 不受任何属性的限制?
所以如果我有以下内容:
file1.txt 具有属性 a、b、c
file2.txt 具有属性 a、b、e
并且我搜索属性为 'b' 和 'e' 的文件,这两个文件都将被 returned,因为这两个文件都有 属性 'b',甚至尽管 file1.txt 没有 属性 'e'?
我希望能够按 属性 搜索,并且只搜索 return 个包含 属性 'b' 和 'e' 的文件。那可能吗?
还是查询后过滤的唯一解决方案?
我正在使用 java 客户端,我事先不知道文件名,只知道一些属性。
您需要使用 AQL 通过 java 客户端进行查询。根据属性搜索文件非常快速且功能强大。一旦找到所需的文件,然后查询这些确切的文件。
Properties are for Guiding, not for Restricting
When you define a property-set with 'strongly-typed' property values, those values are used to provide an intuitive, guiding UI for tagging and locating items.
The actual value does not force a strong relationship to the original property-set's predefined values. This is by design, to not slow-down common repository operations and for keeping artifacts management simple by allowing properties to change and evolve freely over time, without worrying about breaking older property rules.
Properties are therefore a helpful and non-restrictive feature.
来自这个link:https://www.jfrog.com/confluence/display/RTF/Properties
这是否意味着 artifactory 不受任何属性的限制?
所以如果我有以下内容:
file1.txt 具有属性 a、b、c
file2.txt 具有属性 a、b、e
并且我搜索属性为 'b' 和 'e' 的文件,这两个文件都将被 returned,因为这两个文件都有 属性 'b',甚至尽管 file1.txt 没有 属性 'e'?
我希望能够按 属性 搜索,并且只搜索 return 个包含 属性 'b' 和 'e' 的文件。那可能吗?
还是查询后过滤的唯一解决方案?
我正在使用 java 客户端,我事先不知道文件名,只知道一些属性。
您需要使用 AQL 通过 java 客户端进行查询。根据属性搜索文件非常快速且功能强大。一旦找到所需的文件,然后查询这些确切的文件。