Community
Participate
Working Groups
As discussed in the call from Nov 24th 2008, it could be interesting to see if there is any benefit to be gained by having a query mechanism similar to the one of the metadata repositories. See also bug #256415.
Andrew will be looking into this as part of fixing the problem ArtifactDescriptor identity.
We moved the Query stuff to the metadata bundle. Does this still make sense if artifact repositories also support querying?
We will move it if it is necessary.
Created attachment 151357 [details] patch This Patch makes IArtifactRepository extend IQueryable. It also includes IArtifactQuery which uses IQuery#getProperty to indicate whether it is interested in IArtifactKeys or IArtifactDescriptors (or both). Two basic ArtifactKeyQuery and ArtifactDescriptorQuery implementations, as well as an ArtifactIterator. The implementation of query (currently in AbstractArtifactRepository) is untested, and subject to change (for example bug 256415 would have an impact here). Susan/Ian let me know if you have any comments about the general shape of this.
(In reply to comment #2) > We moved the Query stuff to the metadata bundle. Does this still make sense if > artifact repositories also support querying? The artifact stuff depends on Version and IArtifactKey which are both in the metadata bundle, so I see no problem with the Query stuff staying there as well.
done in the branch. IArtifactRepository implements IQueryable
More to do here, need some synchronization
Created attachment 161027 [details] patch Patch adds synchronization in descriptorQueryable(). Also some minor warning fixes
Patch looks good to me.
Thanks Thomas. Patch released.