|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.shibboleth.metadata.pipeline.AbstractComponent
net.shibboleth.metadata.pipeline.BaseStage<Item<?>>
net.shibboleth.metadata.pipeline.AbstractItemMetadataSelectionStage
public abstract class AbstractItemMetadataSelectionStage
A Stage that selects Items for further processing if they have a specific type of ItemMetadata
attached to them.
| Field Summary | |
|---|---|
private ItemIdentificationStrategy |
identifierStrategy
Strategy used to generate Item identifiers for logging purposes. |
private Collection<Class<ItemMetadata>> |
selectionRequirements
ItemMetadata classes that, if the an contains, will cause the Item to be selected. |
| Constructor Summary | |
|---|---|
AbstractItemMetadataSelectionStage()
|
|
| Method Summary | |
|---|---|
protected void |
doExecute(Collection<Item<?>> itemCollection)
Performs the stage processing on the given Item collection. |
protected abstract void |
doExecute(Collection<Item<?>> itemCollection,
Item<?> 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 |
getItemIdentifierStrategy()
Gets the strategy used to generate Item identifiers for logging purposes. |
Collection<Class<ItemMetadata>> |
getSelectionRequirements()
Gets the ItemMetadata classes that, if the an contains, will cause the Item to be
selected. |
void |
setIdentifierStrategy(ItemIdentificationStrategy strategy)
Sets the strategy used to generate Item identifiers for logging purposes. |
void |
setSelectionRequirements(Collection<Class<ItemMetadata>> requirements)
Sets the ItemMetadata classes that, if the an contains, will cause the Item to be
selected. |
| Methods inherited from class net.shibboleth.metadata.pipeline.BaseStage |
|---|
execute |
| Methods inherited from class net.shibboleth.metadata.pipeline.AbstractComponent |
|---|
doInitialize, equals, getId, getInitializationInstant, hashCode, initialize, isInitialized, setId |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.shibboleth.metadata.pipeline.Component |
|---|
getId, getInitializationInstant, initialize, isInitialized |
| Field Detail |
|---|
private Collection<Class<ItemMetadata>> selectionRequirements
ItemMetadata classes that, if the an contains, will cause the Item to be selected.
private ItemIdentificationStrategy identifierStrategy
Item identifiers for logging purposes.
| Constructor Detail |
|---|
public AbstractItemMetadataSelectionStage()
| Method Detail |
|---|
public Collection<Class<ItemMetadata>> getSelectionRequirements()
ItemMetadata classes that, if the an contains, will cause the Item to be
selected.
ItemMetadata classes that, if the an contains, will cause the Item to be
selected, never null nor containing null elementspublic void setSelectionRequirements(Collection<Class<ItemMetadata>> requirements)
ItemMetadata classes that, if the an contains, will cause the Item to be
selected.
requirements - ItemMetadata classes that, if the an contains, will cause the
Item to be selected, may be null or contain null elementspublic ItemIdentificationStrategy getItemIdentifierStrategy()
Item identifiers for logging purposes.
Item identifiers for logging purposespublic void setIdentifierStrategy(ItemIdentificationStrategy strategy)
Item identifiers for logging purposes.
strategy - strategy used to generate Item identifiers for logging purposes, can not be null
protected void doExecute(Collection<Item<?>> itemCollection)
throws StageProcessingException
doExecute in class BaseStage<Item<?>>itemCollection - collection to be processed
StageProcessingException - thrown if there is an unrecoverable problem when processing the stage
protected abstract void doExecute(Collection<Item<?>> itemCollection,
Item<?> matchingItem,
Map<Class<? extends ItemMetadata>,List<? extends ItemMetadata>> matchingMetadata)
throws StageProcessingException
itemCollection - current item collectionmatchingItem - matching itemmatchingMetadata - all the ItemMetadata instances that match a selection criteria
StageProcessingException - thrown if there is a problem processing the item
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||