portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From woon...@apache.org
Subject svn commit: r1088865 - /portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/prm/PortletDataProvider.java
Date Tue, 05 Apr 2011 02:54:42 GMT
Author: woonsan
Date: Tue Apr  5 02:54:42 2011
New Revision: 1088865

URL: http://svn.apache.org/viewvc?rev=1088865&view=rev
Log:
JS2-1247: Applying portlet/clone filter in search form

Modified:
    portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/prm/PortletDataProvider.java

Modified: portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/prm/PortletDataProvider.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/prm/PortletDataProvider.java?rev=1088865&r1=1088864&r2=1088865&view=diff
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/prm/PortletDataProvider.java
(original)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/prm/PortletDataProvider.java
Tue Apr  5 02:54:42 2011
@@ -234,7 +234,10 @@ public class PortletDataProvider extends
                         PortletDefinition pd = serviceLocator.getPortletRegistry().getPortletDefinitionByUniqueName(name);
                         if (pd != null)
                         {
-                            searchResults.add(new PortletDefinitionBean(pd, paName, locale));
+                            if ((pd.isClone() && withClonedPortlets) || (!pd.isClone()
&& withOriginalPortlets))
+                            {
+                                searchResults.add(new PortletDefinitionBean(pd, paName, locale));
+                            }
                         }                        
                     }
                 }



---------------------------------------------------------------------
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