Package net.shibboleth.metadata.pipeline
Class ItemMetadataAddingStage<T>
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.metadata.pipeline.AbstractStage<T>
net.shibboleth.metadata.pipeline.AbstractIteratingStage<T>
net.shibboleth.metadata.pipeline.ItemMetadataAddingStage<T>
- Type Parameters:
T- type ofItemthis stage operates upon
- All Implemented Interfaces:
Stage<T>,net.shibboleth.shared.component.Component,net.shibboleth.shared.component.DestructableComponent,net.shibboleth.shared.component.IdentifiableComponent,net.shibboleth.shared.component.IdentifiedComponent,net.shibboleth.shared.component.InitializableComponent
A pipeline stage that adds a collection of
ItemMetadata objects to each Item's item metadata.- Since:
- 0.9.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<ItemMetadata>ItemMetadataobjects to add to eachItem's item metadata. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidProcesses a givenItem.final Collection<ItemMetadata>Gets theItemMetadatabeing added to eachItem's item metadata.voidsetAdditionalItemMetadata(Collection<ItemMetadata> metadata) Gets theItemMetadatato be added to eachItem's item metadata.Methods inherited from class net.shibboleth.metadata.pipeline.AbstractIteratingStage
doExecuteMethods inherited from class net.shibboleth.metadata.pipeline.AbstractStage
execute, getCollectionPredicate, setCollectionPredicateMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
doInitialize, ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.DestructableComponent
destroy, isDestroyedMethods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getIdMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
additionalItemMetadata
ItemMetadataobjects to add to eachItem's item metadata.
-
-
Constructor Details
-
ItemMetadataAddingStage
public ItemMetadataAddingStage()
-
-
Method Details
-
getAdditionalItemMetadata
@Nonnull @NonnullElements @Unmodifiable public final Collection<ItemMetadata> getAdditionalItemMetadata()Gets theItemMetadatabeing added to eachItem's item metadata.- Returns:
- the
ItemMetadatabeing added to eachItem's item metadata
-
setAdditionalItemMetadata
public void setAdditionalItemMetadata(@Nonnull @NonnullElements @Unmodifiable Collection<ItemMetadata> metadata) Gets theItemMetadatato be added to eachItem's item metadata.- Parameters:
metadata- theItemMetadatato be added to eachItem's item metadata
-
doExecute
Description copied from class:AbstractIteratingStageProcesses a givenItem.- Specified by:
doExecutein classAbstractIteratingStage<T>- Parameters:
item-Itemon which to operate- Throws:
StageProcessingException- thrown if there is a problem with the stage processing
-