incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1405039 - /sling/whiteboard/portal/container/src/main/java/org/apache/sling/portal/container/internal/PortletRenderResponseContextImpl.java
Date Fri, 02 Nov 2012 16:34:56 GMT
Author: cziegeler
Date: Fri Nov  2 16:34:56 2012
New Revision: 1405039

URL: http://svn.apache.org/viewvc?rev=1405039&view=rev
Log:
Make portlet title rendering pluggable

Modified:
    sling/whiteboard/portal/container/src/main/java/org/apache/sling/portal/container/internal/PortletRenderResponseContextImpl.java

Modified: sling/whiteboard/portal/container/src/main/java/org/apache/sling/portal/container/internal/PortletRenderResponseContextImpl.java
URL: http://svn.apache.org/viewvc/sling/whiteboard/portal/container/src/main/java/org/apache/sling/portal/container/internal/PortletRenderResponseContextImpl.java?rev=1405039&r1=1405038&r2=1405039&view=diff
==============================================================================
--- sling/whiteboard/portal/container/src/main/java/org/apache/sling/portal/container/internal/PortletRenderResponseContextImpl.java
(original)
+++ sling/whiteboard/portal/container/src/main/java/org/apache/sling/portal/container/internal/PortletRenderResponseContextImpl.java
Fri Nov  2 16:34:56 2012
@@ -159,22 +159,26 @@ public class PortletRenderResponseContex
             }
 
             public SlingPortletWindow getPortletWindow() {
-                return this.getPortletWindow();
+                return getSlingPortletWindow();
             }
 
             public String createPortletURL(final PortletMode newMode, final WindowState newState)
{
                 final PortalURL url = getPortalURL().clone();
                 if ( newMode != null ) {
-                    url.setPortletMode(getPortletWindow().getId().getStringId(), newMode);
+                    url.setPortletMode(getSlingPortletWindow().getId().getStringId(), newMode);
                 }
                 if ( newState != null ) {
-                    url.setWindowState(getPortletWindow().getId().getStringId(), newState);
+                    url.setWindowState(getSlingPortletWindow().getId().getStringId(), newState);
                 }
                 return url.toURL(false);
             }
         });
     }
 
+    private SlingPortletWindow getSlingPortletWindow() {
+        return (SlingPortletWindow)this.getPortletWindow();
+    }
+
     @Override
     public PrintWriter getWriter() throws IOException, IllegalStateException {
         final PrintWriter pw = portletContent.getWriter();



Mime
View raw message