Skip to content

Changes

Summary

  1. Bug 531986 - Change isQueryResult logic (#88) (commit: 631c78a) (details)
Commit 631c78aa8ea50fe0c9c69c599ce6807ab0974c4a by Jad El-khoury
Bug 531986 - Change isQueryResult logic (#88)
Previously, all arrays were treated as OSLC Query results unless the
array type was explicitly marked with @OslcNotQueryResult annotation.
This prevented from returning arrays of mixed-typed OSLC resources (as
Object[] or IResource[]) because there is no way to annotate those
classes accordingly.
From now on, only arrays returned from JAX-RS methods annotated with
@OslcQueryCapability will be automatically treated as OSLC Query results

(again, unless the returned array type is annotated with the
@OslcNotQueryResult).
Signed-off-by: Andrew Berezovskyi <andriib@kth.se>
(commit: 631c78a)
The file was addedoslc4j-jena-provider/src/main/java/org/eclipse/lyo/oslc4j/provider/jena/JenaProviderHelper.java
The file was modified oslc4j-jena-provider/src/main/java/org/eclipse/lyo/oslc4j/provider/jena/AbstractOslcRdfXmlProvider.java
The file was modified oslc4j-jena-provider/src/main/java/org/eclipse/lyo/oslc4j/provider/jena/OslcRdfXmlArrayProvider.java
The file was modified oslc4j-jena-provider/src/main/java/org/eclipse/lyo/oslc4j/provider/jena/OslcRdfXmlCollectionProvider.java