Skip to main content

[identity-api-spec commits] [identity-api-spec~git:2d85e74d] javadoc edit ( added class description sentence)

  • From: monzillo@...
  • To: commits@...
  • Subject: [identity-api-spec commits] [identity-api-spec~git:2d85e74d] javadoc edit ( added class description sentence)
  • Date: Mon, 26 Aug 2013 20:10:09 +0000

Project:    identity-api-spec
Repository: git
Revision:   2d85e74db01e4c93267cccd89f7ee2ccab6f52f8
Author:     monzillo
Date:       2013-08-26 20:09:54 UTC
Link:       

Log Message:
------------
javadoc edit ( added class description sentence)
changed implementation to rely on PredicateOperator subtypes (i.e., 
BooleanPredicateOperator and ExpressionPredicateOperator).
added implementation for new getPredicates method (of AttributeProvider) that 
serves as extensibility point for
new BooleanPredicateOperators.


Revisions:
----------
2d85e74db01e4c93267cccd89f7ee2ccab6f52f8


Modified Paths:
---------------
IdentityApiGit/src/test/java/security/identity/AttributeRepositoryForTesting.java


Diffs:
------
--- 
a/IdentityApiGit/src/test/java/security/identity/AttributeRepositoryForTesting.java
+++ 
b/IdentityApiGit/src/test/java/security/identity/AttributeRepositoryForTesting.java
@@ -16,10 +16,11 @@
 package security.identity;
 
 import java.io.Serializable;
+import javax.security.identity.client.BooleanPredicateOperator;
+import javax.security.identity.client.ExpressionPredicateOperator;
 import javax.security.identity.client.IDBooleanOperator;
 import javax.security.identity.client.IDOperator;
 import javax.security.identity.client.IDPredicate;
-import javax.security.identity.client.PredicateOperator;
 import javax.security.identity.client.ProviderLookupContext;
 import javax.security.identity.client.RepositoryDescriptor;
 import javax.security.identity.client.expression.IDExpression;
@@ -28,6 +29,13 @@ import 
javax.security.identity.provider.AttributeLookupService;
 import javax.security.identity.provider.AttributeRepository;
 import javax.security.identity.provider.AttributeUpdateService;
 
+
+/**
+ * AttributeRepository implementation for use in testing.
+ * 
+ * @author monzillo
+ */
+
 public class AttributeRepositoryForTesting implements AttributeRepository {
 
     private final RepositoryDescriptor _descriptor;
@@ -104,7 +112,13 @@ public class AttributeRepositoryForTesting implements 
AttributeRepository {
     }
 
     @Override
-    public <E extends Enum<E> & PredicateOperator<E>> IDPredicate 
getPredicate(E operator, IDExpression<? extends Serializable> x) {
+    public IDPredicate getPredicate(ExpressionPredicateOperator<? extends 
Enum<?>> operator, IDExpression<? extends Serializable> x) {
         return new PredicateForTesting(this._context, operator, x);
     }
+
+    @Override
+    public IDPredicate getPredicate(BooleanPredicateOperator<? extends 
Enum<?>> operator, IDPredicate... predicates) {
+        return new PredicateForTesting(this._context, operator, predicates);
+    }
+    
 }





[identity-api-spec commits] [identity-api-spec~git:2d85e74d] javadoc edit ( added class description sentence)

monzillo 08/26/2013
 
 
Close
loading
Please Confirm
Close