portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r365786 - in /portals/jetspeed-1/trunk: fusion/src/java/org/apache/jetspeed/fusion/engine/servlet/FusionServletRequestImpl.java webapp/WEB-INF/conf/assembly/pluto-factories.xml
Date Wed, 04 Jan 2006 00:59:44 GMT
Author: taylor
Date: Tue Jan  3 16:59:42 2006
New Revision: 365786

URL: http://svn.apache.org/viewcvs?rev=365786&view=rev
Log:
http://issues.apache.org/jira/browse/JS1-556

Enabled Fusion Request wrapper
Implemented getRemoteUser

Modified:
    portals/jetspeed-1/trunk/fusion/src/java/org/apache/jetspeed/fusion/engine/servlet/FusionServletRequestImpl.java
    portals/jetspeed-1/trunk/webapp/WEB-INF/conf/assembly/pluto-factories.xml

Modified: portals/jetspeed-1/trunk/fusion/src/java/org/apache/jetspeed/fusion/engine/servlet/FusionServletRequestImpl.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-1/trunk/fusion/src/java/org/apache/jetspeed/fusion/engine/servlet/FusionServletRequestImpl.java?rev=365786&r1=365785&r2=365786&view=diff
==============================================================================
--- portals/jetspeed-1/trunk/fusion/src/java/org/apache/jetspeed/fusion/engine/servlet/FusionServletRequestImpl.java
(original)
+++ portals/jetspeed-1/trunk/fusion/src/java/org/apache/jetspeed/fusion/engine/servlet/FusionServletRequestImpl.java
Tue Jan  3 16:59:42 2006
@@ -125,6 +125,16 @@
         this._getHttpServletRequest().setAttribute(name, value);        
     }
     
+    public String getRemoteUser()
+    {
+        Principal principal = getUserPrincipal();
+        if (principal != null)
+        {
+            return principal.getName();
+        }
+        return null;
+    }
+    
     public Principal getUserPrincipal()
     {
         JetspeedRequestContext context = (JetspeedRequestContext) getAttribute("org.apache.jetspeed.request.RequestContext");

Modified: portals/jetspeed-1/trunk/webapp/WEB-INF/conf/assembly/pluto-factories.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-1/trunk/webapp/WEB-INF/conf/assembly/pluto-factories.xml?rev=365786&r1=365785&r2=365786&view=diff
==============================================================================
--- portals/jetspeed-1/trunk/webapp/WEB-INF/conf/assembly/pluto-factories.xml (original)
+++ portals/jetspeed-1/trunk/webapp/WEB-INF/conf/assembly/pluto-factories.xml Tue Jan  3 16:59:42
2006
@@ -183,7 +183,7 @@
   <bean id="javax.servlet.http.HttpServletRequest"
         class="org.apache.jetspeed.components.factorybeans.PlutoFactoryFactoryBean"
   >             
-       <property name="className"><value>org.apache.jetspeed.engine.servlet.ServletRequestFactoryImpl</value></property>
+       <property name="className"><value>org.apache.jetspeed.fusion.engine.servlet.FusionServletRequestFactoryImpl</value></property>
        <property name="servletConfig"><ref bean="javax.servlet.ServletConfig"/></property>
   </bean>
   



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message