net.shibboleth.metadata.pipeline
Class ItemMetadataFilterStage
java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractDestructableInitializableComponent
net.shibboleth.utilities.java.support.component.AbstractDestructableIdentifiableInitializableComponent
net.shibboleth.metadata.pipeline.BaseStage<Item<?>>
net.shibboleth.metadata.pipeline.AbstractItemMetadataSelectionStage
net.shibboleth.metadata.pipeline.ItemMetadataFilterStage
- All Implemented Interfaces:
- Stage<Item<?>>, net.shibboleth.utilities.java.support.component.Component, net.shibboleth.utilities.java.support.component.DestructableComponent, net.shibboleth.utilities.java.support.component.IdentifiableComponent, net.shibboleth.utilities.java.support.component.InitializableComponent
@ThreadSafe
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. |
| Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractDestructableIdentifiableInitializableComponent |
doInitialize, getId |
| Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractDestructableInitializableComponent |
destroy, initialize, isDestroyed, isInitialized |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.shibboleth.utilities.java.support.component.DestructableComponent |
destroy, isDestroyed |
| Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiableComponent |
getId |
| Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent |
initialize, isInitialized |
log
private final Logger log
- Class logger.
ItemMetadataFilterStage
public ItemMetadataFilterStage()
doExecute
protected void doExecute(@Nonnull@NonnullElements
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 © 1999-2012. All Rights Reserved.