[jboss-cvs] JBossAS SVN: r62553 - trunk/server/src/main/org/jboss/invocation.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Apr 25 11:04:34 EDT 2007


Author: anil.saldhana at jboss.com
Date: 2007-04-25 11:04:34 -0400 (Wed, 25 Apr 2007)
New Revision: 62553

Modified:
   trunk/server/src/main/org/jboss/invocation/Invocation.java
Log:
new methods for the security context and inter-vm semantics

Modified: trunk/server/src/main/org/jboss/invocation/Invocation.java
===================================================================
--- trunk/server/src/main/org/jboss/invocation/Invocation.java	2007-04-25 15:03:36 UTC (rev 62552)
+++ trunk/server/src/main/org/jboss/invocation/Invocation.java	2007-04-25 15:04:34 UTC (rev 62553)
@@ -30,6 +30,8 @@
 
 import javax.transaction.Transaction;
 
+import org.jboss.security.SecurityContext;
+
 /**
  * The Invocation object is the generic object flowing through our interceptors.
  *
@@ -43,7 +45,7 @@
  *
  * @author  <a href="mailto:marc at jboss.org">Marc Fleury</a>
  * @author  <a href="mailto:christoph.jung at infor.de">Christoph G. Jung</a>
- * @author Anil.Saldhana at jboss.org
+ * @author Anil.Saldhana at redhat.com
  * @version $Revision$
  */
 public class Invocation
@@ -324,6 +326,27 @@
       return getTransientPayload().get(InvocationKey.ENTERPRISE_CONTEXT);
    }
    
+   public SecurityContext getSecurityContext()
+   {
+      return (SecurityContext) getAsIsPayload().get(InvocationKey.SECURITY_CONTEXT);
+   }
+   
+   public void setSecurityContext(SecurityContext sc)
+   {
+      getAsIsPayload().put(InvocationKey.SECURITY_CONTEXT, sc);
+   }
+   
+   public boolean isInterVM()
+   {
+      Boolean b = (Boolean) getAsIsPayload().get(InvocationKey.INTERVM);
+      return b != null && b == Boolean.TRUE;
+   }
+   
+   public void setInterVM(Boolean boolValue)
+   {
+      getAsIsPayload().put(InvocationKey.INTERVM, boolValue);
+   }
+   
    /**
     * Set whether the invocation is secure or not
     * @param secure boolean value




More information about the jboss-cvs-commits mailing list