net.shibboleth.metadata.dom.saml
Class RemoveContactPersonStage

java.lang.Object
  extended by net.shibboleth.metadata.pipeline.AbstractComponent
      extended by net.shibboleth.metadata.pipeline.BaseStage<ItemType>
          extended by net.shibboleth.metadata.pipeline.BaseIteratingStage<DomElementItem>
              extended by net.shibboleth.metadata.dom.saml.RemoveContactPersonStage
All Implemented Interfaces:
Component, Stage<DomElementItem>

public class RemoveContactPersonStage
extends BaseIteratingStage<DomElementItem>

Filtering stage that removes ContactPerson elements from EntityDescriptors.


Field Summary
private  Logger log
          Class logger.
 
Constructor Summary
RemoveContactPersonStage()
           
 
Method Summary
protected  boolean doExecute(DomElementItem item)
          Processes a given Item.
protected  void processEntitiesDescriptor(Element entitiesDescriptor)
          Iterates over all child EntitiesDescriptor, passing each to processEntitiesDescriptor(Element), and EntityDescriptor, passing each to processEntityDescriptor(Element).
protected  void processEntityDescriptor(Element entityDescriptor)
          Processes an EntityDescriptor by removing any ContactPerson that is within it.
 
Methods inherited from class net.shibboleth.metadata.pipeline.BaseIteratingStage
doExecute
 
Methods inherited from class net.shibboleth.metadata.pipeline.BaseStage
execute
 
Methods inherited from class net.shibboleth.metadata.pipeline.AbstractComponent
doInitialize, 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

log

private final Logger log
Class logger.

Constructor Detail

RemoveContactPersonStage

public RemoveContactPersonStage()
Method Detail

doExecute

protected boolean doExecute(DomElementItem item)
                     throws StageProcessingException
Processes a given Item.

Specified by:
doExecute in class BaseIteratingStage<DomElementItem>
Parameters:
item - Item on which to operate
Returns:
true if the Item should be retained in the collection, false if not
Throws:
StageProcessingException - thrown if there is a problem with the stage processing

processEntitiesDescriptor

protected void processEntitiesDescriptor(Element entitiesDescriptor)
Iterates over all child EntitiesDescriptor, passing each to processEntitiesDescriptor(Element), and EntityDescriptor, passing each to processEntityDescriptor(Element).

Parameters:
entitiesDescriptor - EntitiesDescriptor being processed

processEntityDescriptor

protected void processEntityDescriptor(Element entityDescriptor)
Processes an EntityDescriptor by removing any ContactPerson that is within it.

Parameters:
entityDescriptor - entity descriptor being processed


Copyright © 2009-2011. All Rights Reserved.