[java-opensaml COMMIT] in /trunk/opensaml-profile-api/src/main/java/org/opensaml/profile: context/AccessControlContex...

noreply at shibboleth.net noreply at shibboleth.net
Sat Aug 13 13:31:02 EDT 2016


Author: scantor
Date: Sat Aug 13 13:31:02 2016
New Revision: 4474

URL: http://svn.shibboleth.net/view/java-opensaml?rev=4474&view=rev
Log:
Add an AccessControlContext to hold state and an adapter to leverage predicates.

Added:
    trunk/opensaml-profile-api/src/main/java/org/opensaml/profile/context/AccessControlContext.java   (with props)
    trunk/opensaml-profile-api/src/main/java/org/opensaml/profile/logic/PredicateAccessControl.java   (with props)
Modified:
    trunk/opensaml-profile-api/src/main/java/org/opensaml/profile/context/EventContext.java

Modified: trunk/opensaml-profile-api/src/main/java/org/opensaml/profile/context/EventContext.java
URL: http://svn.shibboleth.net/view/java-opensaml/trunk/opensaml-profile-api/src/main/java/org/opensaml/profile/context/EventContext.java?rev=4474&r1=4473&r2=4474&view=diff
==============================================================================
--- trunk/opensaml-profile-api/src/main/java/org/opensaml/profile/context/EventContext.java	(original)
+++ trunk/opensaml-profile-api/src/main/java/org/opensaml/profile/context/EventContext.java	Sat Aug 13 13:31:02 2016
@@ -17,6 +17,7 @@
 
 package org.opensaml.profile.context;
 
+import javax.annotation.Nonnull;
 import javax.annotation.Nullable;
 
 import org.opensaml.messaging.context.BaseContext;
@@ -50,9 +51,13 @@
      * Set the event represented by the context.
      * 
      * @param newEvent the event
+     * 
+     * @return this context
      */
-    public void setEvent(@Nullable final EventType newEvent) {
+    @Nonnull public EventContext setEvent(@Nullable final EventType newEvent) {
         event = newEvent;
+        
+        return this;
     }
 
 }



More information about the commits mailing list