StorageService: how to read/store a collection of records

Tom Zeller tzeller at dragonacea.biz
Thu Dec 31 13:53:47 EST 2015


>> Reviewing the StorageService interface, I am trying to find a way to read a collection of records. Here is the use case:
>> 
>> For OIDC, I intend to delegate the management and storage of Oauth tokens (refresh/access) to the storage service. For this to work, I need to find a way to retrieve a collection of tokens that are persisted by the service and do additional processing on them. Of the current impls, I only see the JPA variant doing something like this, specific to that implementation. The contract seems to not specify a way to do this as far as I can tell.
> 
> Sometimes there's a higher level key that can be used, in which case you store them all in a common context, but even in that case you can't iterate over the context, so you normally have to maintain a secondary index record containing a list of the keys.

Following-up Scott’s comment to say : consent reads/writes multiple storage service records. I can provide details as to how that was done, if you are interested, just let me know.


More information about the dev mailing list