net.shibboleth.metadata.pipeline
Class BaseIteratingStage<ItemType extends Item<?>>
java.lang.Object
net.shibboleth.metadata.pipeline.AbstractComponent
net.shibboleth.metadata.pipeline.BaseStage<ItemType>
net.shibboleth.metadata.pipeline.BaseIteratingStage<ItemType>
- Type Parameters:
ItemType - type of Items this stage operates upon
- All Implemented Interfaces:
- Component, Stage<ItemType>
- Direct Known Subclasses:
- EntityDescriptorItemIdPopulationStage, EntityFilterStage, EntityRegistrationAuthorityFilterStage, EntityRoleFilterStage, PullUpCacheDurationStage, PullUpValidUntilStage, RemoveContactPersonStage, RemoveOrganizationStage, SetCacheDurationStage, SetValidUntilStage, ValidateValidUntilStage, XMLSchemaValidationStage, XMLSignatureSigningStage, XMLSignatureValidationStage
public abstract class BaseIteratingStage<ItemType extends Item<?>>
- extends BaseStage<ItemType>
Base class for Stage implementations that iterate over each Item in a collection and do something.
BaseIteratingStage
public BaseIteratingStage()
doExecute
protected void doExecute(Collection<ItemType> itemCollection)
throws StageProcessingException
- Iterates over each element of the Item collection and delegates the processing of that element to
doExecute(Item).
Performs the stage processing on the given Item collection.
- Specified by:
doExecute in class BaseStage<ItemType extends Item<?>>
- Parameters:
itemCollection - collection to be processed
- Throws:
StageProcessingException - thrown if there is an unrecoverable problem when processing the stage
doExecute
protected abstract boolean doExecute(ItemType item)
throws StageProcessingException
- Processes a given Item.
- Parameters:
item - Item on which to operate
- Returns:
- true if the Item should be retained in the collection, false if not
- Throws:
StageProcessingException - thrown if there is a problem with the stage processing
Copyright © 2009-2011. All Rights Reserved.