@ThreadSafe public class EntitiesDescriptorAssemblerStage extends BaseStage<Element>
Stage capable of assembling a collection of EntityDescriptor elements in
to a single EntitiesDescriptor element.| Modifier and Type | Class and Description |
|---|---|
static interface |
EntitiesDescriptorAssemblerStage.ItemOrderingStrategy
A strategy that defines how to order a
Item collection. |
private class |
EntitiesDescriptorAssemblerStage.NoOpItemOrderingStrategy
An ordering strategy that simply returns the collection in whatever order it was already in.
|
| Modifier and Type | Field and Description |
|---|---|
private String |
descriptorName
Name to use for the EntitiesDescriptor.
|
private Logger |
log
Class logger.
|
static QName |
NAME_ATTRIB_NAME
Name of the EntitiesDescriptor's Name attribute.
|
private boolean |
noChildrenAProcessingError
Whether attempting to turn an empty item collection, which would result in a schema-invalid childless
EntitiesDescriptor, should be treated as processing error.
|
private EntitiesDescriptorAssemblerStage.ItemOrderingStrategy |
orderingStrategy
Strategy used to order a collection of Items.
|
| Constructor and Description |
|---|
EntitiesDescriptorAssemblerStage() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDescriptorName(Element entitiesDescriptor)
Adds the Name attribute to the EntitiesDescriptor.
|
protected void |
doDestroy() |
protected void |
doExecute(Collection<Item<Element>> itemCollection)
Performs the stage processing on the given Item collection.
|
protected void |
doInitialize() |
String |
getDescriptorName()
Gets the Name used for the generated descriptor.
|
EntitiesDescriptorAssemblerStage.ItemOrderingStrategy |
getItemOrderingStrategy()
Gets the strategy used to order a collection of Items.
|
boolean |
isNoChildrenAProcessingError()
Gets whether attempting to turn an empty item collection, which would result in a schema-invalid childless
EntitiesDescriptor, should be treated as processing error.
|
void |
setDescriptorName(String name)
Sets the Name used for the generated descriptor.
|
void |
setItemOrderingStrategy(EntitiesDescriptorAssemblerStage.ItemOrderingStrategy strategy)
Sets the strategy used to order a collection of Items.
|
void |
setNoChildrenAProcessingError(boolean isError)
Sets whether attempting to turn an empty item collection, which would result in a schema-invalid childless
EntitiesDescriptor, should be treated as processing error.
|
execute, getCollectionPredicate, setCollectionPredicatesetIdgetIddestroy, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, isDestroyedpublic static final QName NAME_ATTRIB_NAME
private final Logger log
private boolean noChildrenAProcessingError
falseprivate EntitiesDescriptorAssemblerStage.ItemOrderingStrategy orderingStrategy
private String descriptorName
public boolean isNoChildrenAProcessingError()
public void setNoChildrenAProcessingError(boolean isError)
isError - whether attempting to turn an empty item collection should be treated as processing error@Nonnull public EntitiesDescriptorAssemblerStage.ItemOrderingStrategy getItemOrderingStrategy()
public void setItemOrderingStrategy(@Nonnull EntitiesDescriptorAssemblerStage.ItemOrderingStrategy strategy)
strategy - strategy used to order a collection of Items@Nullable public String getDescriptorName()
public void setDescriptorName(@Nullable String name)
name - Name used for the generated descriptorprotected void doExecute(@Nonnull@NonnullElements Collection<Item<Element>> itemCollection) throws StageProcessingException
The stage is guaranteed to be have been initialized and not destroyed when this is invoked.
doExecute in class BaseStage<Element>itemCollection - collection to be processedStageProcessingException - thrown if there is an unrecoverable problem when processing the stageprotected void addDescriptorName(@Nonnull Element entitiesDescriptor)
descriptorName is not
null.entitiesDescriptor - the entity descriptor to which theprotected void doDestroy()
doDestroy in class net.shibboleth.utilities.java.support.component.AbstractInitializableComponentprotected void doInitialize()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
doInitialize in class net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponentnet.shibboleth.utilities.java.support.component.ComponentInitializationExceptionCopyright © 1999–2016. All rights reserved.