T - the type of data included in the items being processed@ThreadSafe public abstract class AbstractItemMetadataSelectionStage<T> extends BaseStage<T>
Stage that selects Items for further processing if they have a specific type of ItemMetadata
attached to them.| Modifier and Type | Field and Description |
|---|---|
private ItemIdentificationStrategy |
identificationStrategy
Strategy used to generate item identifiers for logging purposes.
|
private Collection<Class<? extends ItemMetadata>> |
selectionRequirements
ItemMetadata classes that, if the an item contains, will cause the Item to be selected. |
| Constructor and Description |
|---|
AbstractItemMetadataSelectionStage() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doDestroy() |
protected void |
doExecute(Collection<Item<T>> itemCollection)
Performs the stage processing on the given Item collection.
|
protected abstract void |
doExecute(Collection<Item<T>> itemCollection,
Item<T> matchingItem,
Map<Class<? extends ItemMetadata>,List<? extends ItemMetadata>> matchingMetadata)
Performs the stage's logic on the given item that contained metadata of the given type.
|
ItemIdentificationStrategy |
getItemIdentificationStrategy()
Gets the strategy used to generate
Item identifiers for logging purposes. |
Collection<Class<? extends ItemMetadata>> |
getSelectionRequirements()
Gets the
ItemMetadata classes that, if the an item contains, will cause the Item to be
selected. |
void |
setIdentificationStrategy(ItemIdentificationStrategy strategy)
Sets the strategy used to generate
Item identifiers for logging purposes. |
void |
setSelectionRequirements(Collection<Class<? extends ItemMetadata>> requirements)
Sets the
ItemMetadata classes that, if the an item contains, will cause the Item to be
selected. |
execute, getCollectionPredicate, setCollectionPredicatesetIddoInitialize, getIddestroy, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, isDestroyedprivate Collection<Class<? extends ItemMetadata>> selectionRequirements
ItemMetadata classes that, if the an item contains, will cause the Item to be selected.private ItemIdentificationStrategy identificationStrategy
@Nonnull @NonnullElements @Unmodifiable public Collection<Class<? extends ItemMetadata>> getSelectionRequirements()
ItemMetadata classes that, if the an item contains, will cause the Item to be
selected.ItemMetadata classes that, if the an item contains, will cause the Item to be
selected, never null nor containing null elementspublic void setSelectionRequirements(@Nullable@NullableElements Collection<Class<? extends ItemMetadata>> requirements)
ItemMetadata classes that, if the an item contains, will cause the Item to be
selected.requirements - ItemMetadata classes that, if the an item contains, will cause the
Item to be selected, may be null or contain null elements@Nonnull public ItemIdentificationStrategy getItemIdentificationStrategy()
Item identifiers for logging purposes.Item identifiers for logging purposespublic void setIdentificationStrategy(@Nonnull ItemIdentificationStrategy strategy)
Item identifiers for logging purposes.strategy - strategy used to generate Item identifiers for logging purposes, can not be nullprotected void doExecute(Collection<Item<T>> itemCollection) throws StageProcessingException
The stage is guaranteed to be have been initialized and not destroyed when this is invoked.
doExecute in class BaseStage<T>itemCollection - collection to be processedStageProcessingException - thrown if there is an unrecoverable problem when processing the stageprotected void doDestroy()
doDestroy in class net.shibboleth.utilities.java.support.component.AbstractInitializableComponentprotected abstract void doExecute(@Nonnull@NonnullElements Collection<Item<T>> itemCollection, @Nonnull Item<T> matchingItem, @Nonnull@NonnullElements Map<Class<? extends ItemMetadata>,List<? extends ItemMetadata>> matchingMetadata) throws StageProcessingException
itemCollection - current item collectionmatchingItem - matching itemmatchingMetadata - all the ItemMetadata instances that match a selection criteriaStageProcessingException - thrown if there is a problem processing the itemCopyright © 1999–2016. All rights reserved.