[jboss-svn-commits] JBoss Portal SVN: r5188 - in trunk/portlet/src/main/org/jboss/portal/portlet: . state/consumer stateful test
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Tue Sep 12 19:01:13 EDT 2006
Author: julien at jboss.com
Date: 2006-09-12 19:01:07 -0400 (Tue, 12 Sep 2006)
New Revision: 5188
Added:
trunk/portlet/src/main/org/jboss/portal/portlet/stateful/PortletClonedEvent.java
Removed:
trunk/portlet/src/main/org/jboss/portal/portlet/PortletClonedEvent.java
Modified:
trunk/portlet/src/main/org/jboss/portal/portlet/state/consumer/ConsumerPortletInvoker.java
trunk/portlet/src/main/org/jboss/portal/portlet/test/InstanceContextImpl.java
Log:
move PortletClonedEvent in the stateful package
Deleted: trunk/portlet/src/main/org/jboss/portal/portlet/PortletClonedEvent.java
===================================================================
--- trunk/portlet/src/main/org/jboss/portal/portlet/PortletClonedEvent.java 2006-09-12 19:02:13 UTC (rev 5187)
+++ trunk/portlet/src/main/org/jboss/portal/portlet/PortletClonedEvent.java 2006-09-12 23:01:07 UTC (rev 5188)
@@ -1,47 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-package org.jboss.portal.portlet;
-
-/**
- * @author <a href="mailto:julien at jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
- */
-public class PortletClonedEvent extends StateEvent
-{
-
- /** . */
- private final String clonedId;
-
- public PortletClonedEvent(String cloneId)
- {
- if (cloneId == null)
- {
- throw new IllegalArgumentException();
- }
- this.clonedId = cloneId;
- }
-
- public String getClonedId()
- {
- return clonedId;
- }
-}
Modified: trunk/portlet/src/main/org/jboss/portal/portlet/state/consumer/ConsumerPortletInvoker.java
===================================================================
--- trunk/portlet/src/main/org/jboss/portal/portlet/state/consumer/ConsumerPortletInvoker.java 2006-09-12 19:02:13 UTC (rev 5187)
+++ trunk/portlet/src/main/org/jboss/portal/portlet/state/consumer/ConsumerPortletInvoker.java 2006-09-12 23:01:07 UTC (rev 5188)
@@ -169,12 +169,12 @@
ConsumerState state = new ConsumerState(pictx.clonedContext.getId(), pictx.clonedContext.getMarshalldState());
String stateId = persistenceManager.createState(state);
String clonedId = CLONE_ID_PREFIX + stateId;
- org.jboss.portal.portlet.PortletClonedEvent event = new org.jboss.portal.portlet.PortletClonedEvent(clonedId);
+ org.jboss.portal.portlet.stateful.PortletClonedEvent event = new org.jboss.portal.portlet.stateful.PortletClonedEvent(clonedId);
cictx.onStateEvent(event);
}
else
{
- org.jboss.portal.portlet.PortletClonedEvent event = new org.jboss.portal.portlet.PortletClonedEvent(pictx.clonedContext.getId());
+ org.jboss.portal.portlet.stateful.PortletClonedEvent event = new org.jboss.portal.portlet.stateful.PortletClonedEvent(pictx.clonedContext.getId());
cictx.onStateEvent(event);
}
}
Copied: trunk/portlet/src/main/org/jboss/portal/portlet/stateful/PortletClonedEvent.java (from rev 5180, trunk/portlet/src/main/org/jboss/portal/portlet/PortletClonedEvent.java)
===================================================================
--- trunk/portlet/src/main/org/jboss/portal/portlet/PortletClonedEvent.java 2006-09-12 16:51:45 UTC (rev 5180)
+++ trunk/portlet/src/main/org/jboss/portal/portlet/stateful/PortletClonedEvent.java 2006-09-12 23:01:07 UTC (rev 5188)
@@ -0,0 +1,49 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.portal.portlet.stateful;
+
+import org.jboss.portal.portlet.StateEvent;
+
+/**
+ * @author <a href="mailto:julien at jboss.org">Julien Viet</a>
+ * @version $Revision: 1.1 $
+ */
+public class PortletClonedEvent extends StateEvent
+{
+
+ /** . */
+ private final String clonedId;
+
+ public PortletClonedEvent(String cloneId)
+ {
+ if (cloneId == null)
+ {
+ throw new IllegalArgumentException();
+ }
+ this.clonedId = cloneId;
+ }
+
+ public String getClonedId()
+ {
+ return clonedId;
+ }
+}
Modified: trunk/portlet/src/main/org/jboss/portal/portlet/test/InstanceContextImpl.java
===================================================================
--- trunk/portlet/src/main/org/jboss/portal/portlet/test/InstanceContextImpl.java 2006-09-12 19:02:13 UTC (rev 5187)
+++ trunk/portlet/src/main/org/jboss/portal/portlet/test/InstanceContextImpl.java 2006-09-12 23:01:07 UTC (rev 5188)
@@ -93,9 +93,9 @@
PortletModifiedEvent pme = (PortletModifiedEvent)event;
modifiedContext = pme.getModifiedContext();
}
- else if (event instanceof org.jboss.portal.portlet.PortletClonedEvent)
+ else if (event instanceof org.jboss.portal.portlet.stateful.PortletClonedEvent)
{
- org.jboss.portal.portlet.PortletClonedEvent pce = (org.jboss.portal.portlet.PortletClonedEvent)event;
+ org.jboss.portal.portlet.stateful.PortletClonedEvent pce = (org.jboss.portal.portlet.stateful.PortletClonedEvent)event;
clonedId = pce.getClonedId();
}
}
More information about the jboss-svn-commits
mailing list