Metadata secondary indexes
Brent Putman
putmanb at georgetown.edu
Fri Oct 2 21:12:13 EDT 2015
As I mentioned on the call today, I had been thinking about this a lot
over the last couple of weeks. Wanting to take a break from delegation
work, I decided to start coding something up. It proved to be as easy,
or perhaps easier, than I expected.
I basically have the fundamental indexing framework done and tested.
Details in the issue. [1] If anyone has any
comments/feedback/concerns, let me know.
I did a MetadataIndex impl for indexing by roles. Might be useful for
example in a discovery interface - "give me all the IdPs".
I also did a Function-driven impl of the MetadataIndex. Just need to
plugin a couple of functions like so:
/** Function for producing index keys from a CriteriaSet. */
@Nonnull private Function<CriteriaSet, Set<MetadataIndexKey>> criteriaStrategy;
/** Function for producing index keys from an EntityDescriptor. */
@Nonnull private Function<EntityDescriptor, Set<MetadataIndexKey>> descriptorStrategy;
That impl would be very useful if we can do scripted impls of those 2
functions. I don't know how hard that is, but if it's easy, it would
mean deployers could theoretically configue adhoc indexes right in
config without having to write any Java, esp if the indexed info can be
flattened out to a simple String, for which there is a common API
SimpleStringMetadataIndexKey impl.
All that remains is to implement MetadataIndex impls for the 2 use
cases we had on deck for CAS endpoint stuff and SAML artifact. Should
be pretty easy. Just need to clarify some details.
[1] https://issues.shibboleth.net/jira/browse/OSJ-128
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/dev/attachments/20151002/70629a33/attachment.html>
More information about the dev
mailing list