Class AbstractRegistrationInfoPredicate
java.lang.Object
org.opensaml.saml.common.profile.logic.AbstractRegistrationInfoPredicate
- All Implemented Interfaces:
Predicate<EntityDescriptor>
- Direct Known Subclasses:
RegistrationAuthorityPredicate,RegistrationPolicyPredicate
public abstract class AbstractRegistrationInfoPredicate
extends Object
implements Predicate<EntityDescriptor>
Base class for predicate that acts on
RegistrationInfo content.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanWhat to do if no extension data exists. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract booleandoApply(RegistrationInfo info) Override this method to implement the predicate.booleanGet whether a predicate should evaluate to true if the data being matched on does not exist.protected RegistrationInfogetRegistrationInfo(EntityDescriptor entity) Get theRegistrationInfoextension associated with an entity, if any.voidsetMatchIfMetadataSilent(boolean flag) Set whether a predicate should evaluate to true if the data being matched on does not exist.booleantest(EntityDescriptor input)
-
Field Details
-
matchIfMetadataSilent
private boolean matchIfMetadataSilentWhat to do if no extension data exists.
-
-
Constructor Details
-
AbstractRegistrationInfoPredicate
public AbstractRegistrationInfoPredicate()
-
-
Method Details
-
setMatchIfMetadataSilent
public void setMatchIfMetadataSilent(boolean flag) Set whether a predicate should evaluate to true if the data being matched on does not exist.- Parameters:
flag- flag to set
-
getMatchIfMetadataSilent
public boolean getMatchIfMetadataSilent()Get whether a predicate should evaluate to true if the data being matched on does not exist.- Returns:
- true iff missing data should evaluate to true
-
getRegistrationInfo
Get theRegistrationInfoextension associated with an entity, if any.- Parameters:
entity- the entity to examine- Returns:
- the associated extension, or null
-
test
- Specified by:
testin interfacePredicate<EntityDescriptor>
-
doApply
Override this method to implement the predicate.- Parameters:
info- the information to evaluate- Returns:
- the result of the predicate
-