Class ParameterizedExecutableSearchFilterBuilder
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.idp.attribute.resolver.dc.ldap.AbstractExecutableSearchFilterBuilder
net.shibboleth.idp.attribute.resolver.dc.ldap.ParameterizedExecutableSearchFilterBuilder
- All Implemented Interfaces:
ExecutableSearchBuilder<ExecutableSearchFilter>,Component,DestructableComponent,InitializableComponent
public class ParameterizedExecutableSearchFilterBuilder
extends AbstractExecutableSearchFilterBuilder
An
ExecutableSearchBuilder that generates the search filter to
be executed by evaluating a parameterized filter string against the currently resolved attributes within a
AttributeResolutionContext.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(AttributeResolutionContext resolutionContext, Map<String, List<IdPAttributeValue>> dependencyAttributes) Creates an executable search that can be executed against a data source in order to produce results.protected voidvoidsetSearchFilter(String filter) Set the filter used for the LDAP search.Methods inherited from class net.shibboleth.idp.attribute.resolver.dc.ldap.AbstractExecutableSearchFilterBuilder
buildMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitialized
-
Field Details
-
searchFilter
LDAP search filter.
-
-
Constructor Details
-
ParameterizedExecutableSearchFilterBuilder
public ParameterizedExecutableSearchFilterBuilder()
-
-
Method Details
-
setSearchFilter
Set the filter used for the LDAP search.- Parameters:
filter- used for the LDAP search
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
build
@Nonnull public ExecutableSearchFilter build(@Nonnull AttributeResolutionContext resolutionContext, @Nonnull Map<String, List<IdPAttributeValue>> dependencyAttributes) throws ResolutionExceptionCreates an executable search that can be executed against a data source in order to produce results.- Parameters:
resolutionContext- current request contextdependencyAttributes- made available to the executable search- Returns:
- executable search
- Throws:
ResolutionException- throw if their is a problem creating the executable search
-