|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.shibboleth.utilities.java.support.component.AbstractDestructableInitializableComponent
net.shibboleth.utilities.java.support.component.AbstractDestructableIdentifiableInitializableComponent
net.shibboleth.metadata.pipeline.BaseStage<Item<?>>
net.shibboleth.metadata.pipeline.AbstractItemMetadataSelectionStage
@ThreadSafe 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 item contains, will cause the Item to be selected. |
| Constructor Summary | |
|---|---|
AbstractItemMetadataSelectionStage()
|
|
| Method Summary | |
|---|---|
protected void |
doDestroy()
|
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 item 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 item contains, will cause the Item to be
selected. |
| Methods inherited from class net.shibboleth.metadata.pipeline.BaseStage |
|---|
execute, setId |
| 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 |
| Field Detail |
|---|
private Collection<Class<ItemMetadata>> selectionRequirements
ItemMetadata classes that, if the an item contains, will cause the Item to be selected.
private ItemIdentificationStrategy identifierStrategy
| Constructor Detail |
|---|
public AbstractItemMetadataSelectionStage()
| Method Detail |
|---|
@Nonnull @NonnullElements @Unmodifiable public Collection<Class<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 elements
public void setSelectionRequirements(@Nullable@NullableElements
Collection<Class<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 getItemIdentifierStrategy()
Item identifiers for logging purposes.
Item identifiers for logging purposes
public void setIdentifierStrategy(@Nonnull
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
The stage is guaranteed to be have been initialized and not destroyed when this is invoked.
doExecute in class BaseStage<Item<?>>itemCollection - collection to be processed
StageProcessingException - thrown if there is an unrecoverable problem when processing the stageprotected void doDestroy()
doDestroy in class net.shibboleth.utilities.java.support.component.AbstractDestructableInitializableComponent
protected abstract void doExecute(@Nonnull@NonnullElements
Collection<Item<?>> itemCollection,
@Nonnull
Item<?> 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 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 | |||||||||