portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r707502 - /portals/jetspeed-2/portal/branches/JS2-871-pluto-2.0-upgrade/jetspeed-api/src/main/java/org/apache/jetspeed/om/portlet/PortletDefinition.java
Date Thu, 23 Oct 2008 23:35:04 GMT
Author: ate
Date: Thu Oct 23 16:35:03 2008
New Revision: 707502

URL: http://svn.apache.org/viewvc?rev=707502&view=rev
Log:
JS2-871 - Upgrade Pluto container to version 2.0
See:  http://issues.apache.org/jira/browse/JS2-871
As we no longer have direct access to the internal identities of the OM classes, we need a
way of checking it has changed:
- adding an boolean isSameIdentity(type) method for PortletDefinition
- if similar usages come up elsewhere we should follow the same pattern there, not exposing
the identities themselves anymore

Modified:
    portals/jetspeed-2/portal/branches/JS2-871-pluto-2.0-upgrade/jetspeed-api/src/main/java/org/apache/jetspeed/om/portlet/PortletDefinition.java

Modified: portals/jetspeed-2/portal/branches/JS2-871-pluto-2.0-upgrade/jetspeed-api/src/main/java/org/apache/jetspeed/om/portlet/PortletDefinition.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/JS2-871-pluto-2.0-upgrade/jetspeed-api/src/main/java/org/apache/jetspeed/om/portlet/PortletDefinition.java?rev=707502&r1=707501&r2=707502&view=diff
==============================================================================
--- portals/jetspeed-2/portal/branches/JS2-871-pluto-2.0-upgrade/jetspeed-api/src/main/java/org/apache/jetspeed/om/portlet/PortletDefinition.java
(original)
+++ portals/jetspeed-2/portal/branches/JS2-871-pluto-2.0-upgrade/jetspeed-api/src/main/java/org/apache/jetspeed/om/portlet/PortletDefinition.java
Thu Oct 23 16:35:03 2008
@@ -162,4 +162,11 @@
      * the portletDefinition store() method
      * */
     void storeChildren();
+    
+    /**
+     * Check if this instance its persistent identity has changed
+     * @param other
+     * @return true only if the internal identities are the same
+     */
+    boolean isSameIdentity(PortletDefinition other);
 }



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