[java-opensaml COMMIT] /trunk/opensaml-saml-impl/src/main/java/org/opensaml/saml/metadata/resolver/filter/impl/Predic...
noreply at shibboleth.net
noreply at shibboleth.net
Mon Sep 22 23:21:34 EDT 2014
Author: scantor
Date: Mon Sep 22 23:21:34 2014
New Revision: 4051
URL: http://svn.shibboleth.net/view/java-opensaml?rev=4051&view=rev
Log:
Add getters to facilitate Spring tests.
Modified:
trunk/opensaml-saml-impl/src/main/java/org/opensaml/saml/metadata/resolver/filter/impl/PredicateFilter.java
Modified: trunk/opensaml-saml-impl/src/main/java/org/opensaml/saml/metadata/resolver/filter/impl/PredicateFilter.java
URL: http://svn.shibboleth.net/view/java-opensaml/trunk/opensaml-saml-impl/src/main/java/org/opensaml/saml/metadata/resolver/filter/impl/PredicateFilter.java?rev=4051&r1=4050&r2=4051&view=diff
==============================================================================
--- trunk/opensaml-saml-impl/src/main/java/org/opensaml/saml/metadata/resolver/filter/impl/PredicateFilter.java (original)
+++ trunk/opensaml-saml-impl/src/main/java/org/opensaml/saml/metadata/resolver/filter/impl/PredicateFilter.java Mon Sep 22 23:21:34 2014
@@ -72,6 +72,24 @@
condition = Constraint.isNotNull(theCondition, "Matching condition cannot be null");
direction = Constraint.isNotNull(dir, "Direction cannot be null");
removeEmptyEntitiesDescriptors = true;
+ }
+
+ /**
+ * Get the direction of filtering.
+ *
+ * @return filtering direction
+ */
+ @Nonnull public Direction getDirection() {
+ return direction;
+ }
+
+ /**
+ * Get the predicate to be applied.
+ *
+ * @return the predicate to be applied
+ */
+ @Nonnull public Predicate<EntityDescriptor> getCondition() {
+ return condition;
}
/**
More information about the commits
mailing list