portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From woon...@apache.org
Subject svn commit: r887895 - /portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/services/beans/PortletDefinitionBean.java
Date Mon, 07 Dec 2009 11:48:06 GMT
Author: woonsan
Date: Mon Dec  7 11:48:05 2009
New Revision: 887895

URL: http://svn.apache.org/viewvc?rev=887895&view=rev
Log:
JS2-1087: Adds portlet icon property.

Modified:
    portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/services/beans/PortletDefinitionBean.java

Modified: portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/services/beans/PortletDefinitionBean.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/services/beans/PortletDefinitionBean.java?rev=887895&r1=887894&r2=887895&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/services/beans/PortletDefinitionBean.java
(original)
+++ portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/services/beans/PortletDefinitionBean.java
Mon Dec  7 11:48:05 2009
@@ -46,6 +46,7 @@
     private String applicationName;
     private String portletName;
     private String uniqueName;
+    private String portletIcon;
     private PortletInfoBean portletInfoBean;
     private Collection<DisplayNameBean> displayNameBeans;
     private Collection<DescriptionBean> descriptionBeans;
@@ -108,6 +109,11 @@
         for (InitParam initParam : portletDefinition.getInitParams())
         {
             initParamBeanList.add(new InitParamBean(initParam));
+            
+            if ("portlet-icon".equals(initParam.getParamName()))
+            {
+                portletIcon = initParam.getParamValue();
+            }
         }
         initParamBeans = initParamBeanList;
     }
@@ -132,6 +138,16 @@
         this.portletName = portletName;
     }
 
+    public String getPortletIcon()
+    {
+        return portletIcon;
+    }
+
+    public void setPortletIcon(String portletIcon)
+    {
+        this.portletIcon = portletIcon;
+    }
+
     public String getUniqueName()
     {
         return uniqueName;
@@ -224,8 +240,8 @@
         this.containerRuntimeOptionBeans = containerRuntimeOptionBeans;
     }
     
-    @XmlElementWrapper(name="initparams")
-    @XmlElements(@XmlElement(name="initparam"))
+    @XmlElementWrapper(name="initParams")
+    @XmlElements(@XmlElement(name="initParam"))
     public Collection<InitParamBean> getInitParamBeans()
     {
         return initParamBeans;



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