|
||||||||||
| 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<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()
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
addDescriptorName(Element entitiesDescriptor)
Adds the Name attribute to the EntitiesDescriptor. |
protected void |
doExecute(Collection<DomElementItem> itemCollection)
Performs the stage processing on the given Item collection. |
protected void |
doInitialize()
Do the initialization of the component. |
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 |
| Methods inherited from class net.shibboleth.metadata.pipeline.AbstractComponent |
|---|
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 |
|---|
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 errorpublic EntitiesDescriptorAssemblerStage.ItemOrderingStrategy getItemOrderingStrategy()
public void setItemOrderingStrategy(EntitiesDescriptorAssemblerStage.ItemOrderingStrategy strategy)
strategy - strategy used to order a collection of Itemspublic String getDescriptorName()
public void setDescriptorName(String name)
name - Name used for the generated descriptor
protected void doExecute(Collection<DomElementItem> itemCollection)
throws StageProcessingException
doExecute in class BaseStage<DomElementItem>itemCollection - collection to be processed
StageProcessingException - thrown if there is an unrecoverable problem when processing the stageprotected void addDescriptorName(Element entitiesDescriptor)
descriptorName is not
null.
entitiesDescriptor - the entity descriptor to which the
protected void doInitialize()
throws ComponentInitializationException
doInitialize in class AbstractComponentComponentInitializationException - throw if there is a problem initializing the component
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||