|
||||||||||
| 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<DomElementItem>
net.shibboleth.metadata.dom.saml.EntitiesDescriptorAssemblerStage
@ThreadSafe public class EntitiesDescriptorAssemblerStage
A Stage capable of assembling a collection of EntityDescriptor elements in
to a single EntitiesDescriptor element.
| Nested Class Summary | |
|---|---|
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. |
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
EntitiesDescriptorAssemblerStage()
|
|
| Method Summary | |
|---|---|
protected void |
addDescriptorName(Element entitiesDescriptor)
Adds the Name attribute to the EntitiesDescriptor. |
protected void |
doDestroy()
|
protected void |
doExecute(Collection<DomElementItem> 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. |
| Methods inherited from class net.shibboleth.metadata.pipeline.BaseStage |
|---|
execute, setId |
| Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractDestructableIdentifiableInitializableComponent |
|---|
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 |
|---|
public static final QName NAME_ATTRIB_NAME
private final Logger log
private boolean noChildrenAProcessingError
false
private EntitiesDescriptorAssemblerStage.ItemOrderingStrategy orderingStrategy
private String descriptorName
| Constructor Detail |
|---|
public EntitiesDescriptorAssemblerStage()
| Method Detail |
|---|
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 descriptor
protected void doExecute(@Nonnull@NonnullElements
Collection<DomElementItem> itemCollection)
throws StageProcessingException
The stage is guaranteed to be have been initialized and not destroyed when this is invoked.
doExecute in class BaseStage<DomElementItem>itemCollection - collection to be processed
StageProcessingException - thrown if there is an unrecoverable problem when processing the stage
protected 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.AbstractDestructableInitializableComponent
protected void doInitialize()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
doInitialize in class net.shibboleth.utilities.java.support.component.AbstractDestructableIdentifiableInitializableComponentnet.shibboleth.utilities.java.support.component.ComponentInitializationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||