Class MetadataIndexStore<T>
java.lang.Object
org.opensaml.saml.metadata.resolver.index.impl.MetadataIndexStore<T>
- Type Parameters:
T- the type of data being indexed
Component which stores indexed instances of a particular type of data,
for example
EntityDescriptor,
under one or more instances of MetadataIndexKey.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<MetadataIndexKey,Set<T>> The indexed storage of data. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(MetadataIndexKey key, T item) Add the supplied data item to the index under the suppliedMetadataIndexKey.voidclear()Clear all indexed data items from the store.voidclear(MetadataIndexKey key) Clear all data items indexed under the suppliedMetadataIndexKey.getKeys()Get the set of allMetadataIndexKeyinstances currently indexed.lookup(MetadataIndexKey key) Lookup the instances of data indexed under the suppliedMetadataIndexKey.voidremove(MetadataIndexKey key, T item) Remove the supplied data item from the index under the suppliedMetadataIndexKey.
-
Field Details
-
index
The indexed storage of data.
-
-
Constructor Details
-
MetadataIndexStore
public MetadataIndexStore()Constructor.
-
-
Method Details
-
getKeys
Get the set of allMetadataIndexKeyinstances currently indexed.- Returns:
- the set of all currently indexed keys
-
lookup
Lookup the instances of data indexed under the suppliedMetadataIndexKey.- Parameters:
key- the index key to lookup- Returns:
- the set of data items indexed under that key
-
add
Add the supplied data item to the index under the suppliedMetadataIndexKey.- Parameters:
key- the index keyitem- the data item to index
-
remove
Remove the supplied data item from the index under the suppliedMetadataIndexKey.- Parameters:
key- the index keyitem- the data item to index
-
clear
Clear all data items indexed under the suppliedMetadataIndexKey.- Parameters:
key- the index key
-
clear
public void clear()Clear all indexed data items from the store.
-