abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r550706 - in /incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server: provider/RequestContext.java servlet/HttpServletRequestContext.java
Date Tue, 26 Jun 2007 06:20:45 GMT
Author: jmsnell
Date: Mon Jun 25 23:20:44 2007
New Revision: 550706

URL: http://svn.apache.org/viewvc?view=rev&rev=550706
Log:
Need a way of allowing Provider impl's to determine what role the authenticated user is in

Modified:
    incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/provider/RequestContext.java
    incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/servlet/HttpServletRequestContext.java

Modified: incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/provider/RequestContext.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/provider/RequestContext.java?view=diff&rev=550706&r1=550705&r2=550706
==============================================================================
--- incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/provider/RequestContext.java
(original)
+++ incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/provider/RequestContext.java
Mon Jun 25 23:20:44 2007
@@ -81,4 +81,6 @@
   <T extends Element>Document<T> getDocument(Parser parser, ParserOptions options)
throws ParseException, IOException;
   
   <T extends Element>Document<T> getDocument(ParserOptions options) throws ParseException,
IOException;
+  
+  boolean isUserInRole(String role);
 }

Modified: incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/servlet/HttpServletRequestContext.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/servlet/HttpServletRequestContext.java?view=diff&rev=550706&r1=550705&r2=550706
==============================================================================
--- incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/servlet/HttpServletRequestContext.java
(original)
+++ incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/servlet/HttpServletRequestContext.java
Mon Jun 25 23:20:44 2007
@@ -25,6 +25,7 @@
 import java.util.Enumeration;
 import java.util.List;
 
+import javax.security.auth.Subject;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpSession;
 
@@ -221,5 +222,9 @@
       buf.append("?" + request.getQueryString());
     uri = new IRI(buf.toString());
     return uri;
+  }
+
+  public boolean isUserInRole(String role) {
+    return request.isUserInRole(role);
   }
 }



Mime
View raw message