portals-pluto-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r652974 - /portals/pluto/branches/2.0-spi-refactoring/pluto-container/src/main/java/org/apache/pluto/spi/optional/PortletRegistryEvent.java
Date Sat, 03 May 2008 02:29:03 GMT
Author: ate
Date: Fri May  2 19:29:02 2008
New Revision: 652974

URL: http://svn.apache.org/viewvc?rev=652974&view=rev
Log:
Getting rid of -Descriptor method naming as now everything should use/reflect the om interfaces
again
Also by default deriving applicationId directly from contained PortletApp (still can be set/overridden
although I doubt that's very useful)

Modified:
    portals/pluto/branches/2.0-spi-refactoring/pluto-container/src/main/java/org/apache/pluto/spi/optional/PortletRegistryEvent.java

Modified: portals/pluto/branches/2.0-spi-refactoring/pluto-container/src/main/java/org/apache/pluto/spi/optional/PortletRegistryEvent.java
URL: http://svn.apache.org/viewvc/portals/pluto/branches/2.0-spi-refactoring/pluto-container/src/main/java/org/apache/pluto/spi/optional/PortletRegistryEvent.java?rev=652974&r1=652973&r2=652974&view=diff
==============================================================================
--- portals/pluto/branches/2.0-spi-refactoring/pluto-container/src/main/java/org/apache/pluto/spi/optional/PortletRegistryEvent.java
(original)
+++ portals/pluto/branches/2.0-spi-refactoring/pluto-container/src/main/java/org/apache/pluto/spi/optional/PortletRegistryEvent.java
Fri May  2 19:29:02 2008
@@ -27,22 +27,22 @@
 public class PortletRegistryEvent {
 
     private String applicationId;
-    private PortletApp portletApplicationDescriptor;
+    private PortletApp portletApplication;
 
 
     public String getApplicationId() {
-        return applicationId;
+        return applicationId != null ? applicationId : portletApplication.getId();
     }
 
     public void setApplicationId(String applicationId) {
         this.applicationId = applicationId;
     }
 
-    public PortletApp getPortletApplicationDescriptor() {
-        return portletApplicationDescriptor;
+    public PortletApp getPortletApplication() {
+        return portletApplication;
     }
 
-    public void setPortletApplicationDescriptor(PortletApp portletApplicationDescriptor)
{
-        this.portletApplicationDescriptor = portletApplicationDescriptor;
+    public void setPortletApplication(PortletApp portletApplication) {
+        this.portletApplication = portletApplication;
     }
 }
\ No newline at end of file



Mime
View raw message