Class PredicateFilterParser
java.lang.Object
org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
net.shibboleth.ext.spring.util.AbstractCustomBeanDefinitionParser
net.shibboleth.idp.profile.spring.relyingparty.metadata.filter.impl.PredicateFilterParser
- All Implemented Interfaces:
BeanDefinitionParser
Parser for a <Predicate> filter.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.Logger
Class logger.static final QName
Element name.Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE, NAME_ATTRIBUTE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doParse
(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) protected Class<?>
getBeanClass
(Element element) parseCustomElements
(Element element) Parser custom element content into aPredicate
to pass to the filter constructor.parseEntityPredicate
(Element element) Parse Entity elements into a builder for anEntityIdPredicate
.parseGroupPredicate
(Element element) Parse Group elements into a builder for anEntityGroupNamePredicate
.parseMappedTagPredicate
(Element element) Parse MappedTag elements into a builder for anMappedEntityAttributesPredicate
.parseScripts
(Element element) Parse ConditionScript elements into a builder, wrapped in an OR as necessary.parseTagPredicate
(Element element) Parse Tag elements into a builder for anEntityAttributesPredicate
.protected boolean
Methods inherited from class net.shibboleth.ext.spring.util.AbstractCustomBeanDefinitionParser
registerBeanDefinition
Methods inherited from class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
doParse, getBeanClassName, getParentName, parseInternal
Methods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
parse, postProcessComponentDefinition, resolveId, shouldFireEvents, shouldGenerateIdAsFallback, shouldParseNameAsAliases
-
Field Details
-
TYPE_NAME
Element name. -
log
@Nonnull private final org.slf4j.Logger logClass logger.
-
-
Constructor Details
-
PredicateFilterParser
public PredicateFilterParser()
-
-
Method Details
-
getBeanClass
- Overrides:
getBeanClass
in classAbstractSingleBeanDefinitionParser
-
doParse
- Overrides:
doParse
in classAbstractSingleBeanDefinitionParser
-
parseCustomElements
Parser custom element content into aPredicate
to pass to the filter constructor.- Parameters:
element
- root element to parse- Returns:
- the bean definition of the Predicate to install
-
parseEntityPredicate
Parse Entity elements into a builder for anEntityIdPredicate
.- Parameters:
element
- root element to parse under- Returns:
- builder for the predicate, or null if none needed
-
parseGroupPredicate
Parse Group elements into a builder for anEntityGroupNamePredicate
.- Parameters:
element
- root element to parse under- Returns:
- builder for the predicate, or null if none needed
-
parseTagPredicate
Parse Tag elements into a builder for anEntityAttributesPredicate
.- Parameters:
element
- root element to parse under- Returns:
- builder for the predicate, or null if none needed
-
parseMappedTagPredicate
Parse MappedTag elements into a builder for anMappedEntityAttributesPredicate
.- Parameters:
element
- root element to parse under- Returns:
- builder for the predicate, or null if none needed
-
parseScripts
Parse ConditionScript elements into a builder, wrapped in an OR as necessary.- Parameters:
element
- root element to parse under- Returns:
- builder for the predicate, or null if none needed
-
shouldGenerateId
protected boolean shouldGenerateId()- Overrides:
shouldGenerateId
in classAbstractBeanDefinitionParser
-