net.shibboleth.metadata.pipeline
Class ItemMetadataFilterStage
java.lang.Object
net.shibboleth.metadata.pipeline.AbstractComponent
net.shibboleth.metadata.pipeline.BaseStage<Item<?>>
net.shibboleth.metadata.pipeline.AbstractItemMetadataSelectionStage
net.shibboleth.metadata.pipeline.ItemMetadataFilterStage
- All Implemented Interfaces:
- Component, Stage<Item<?>>
public class ItemMetadataFilterStage
- extends AbstractItemMetadataSelectionStage
A Stage that filters out Item if they have a specific type of ItemMetadata attached to them.
This is useful, for example, in removing all Item elements which have an associated
ErrorStatus.
|
Field Summary |
private Logger |
log
Class logger. |
log
private final Logger log
- Class logger.
ItemMetadataFilterStage
public ItemMetadataFilterStage()
doExecute
protected void doExecute(Collection<Item<?>> itemCollection,
Item<?> matchingItem,
Map<Class<? extends ItemMetadata>,List<? extends ItemMetadata>> matchingMetadata)
throws StageProcessingException
- Performs the stage's logic on the given item that contained metadata of the given type.
- Specified by:
doExecute in class AbstractItemMetadataSelectionStage
- Parameters:
itemCollection - current item collectionmatchingItem - matching itemmatchingMetadata - all the ItemMetadata instances that match a selection criteria
- Throws:
StageProcessingException - thrown if there is a problem processing the item
Copyright © 2009-2011. All Rights Reserved.