From portal-commits at lists.jboss.org Mon Apr 23 15:27:57 2007 Content-Type: multipart/mixed; boundary="===============8623768290517875177==" MIME-Version: 1.0 From: portal-commits at lists.jboss.org To: portal-commits at lists.jboss.org Subject: [portal-commits] JBoss Portal SVN: r7030 - in trunk/core/src/main/org/jboss/portal/core: ns and 1 other directory. Date: Mon, 23 Apr 2007 15:27:57 -0400 Message-ID: --===============8623768290517875177== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: julien(a)jboss.com Date: 2007-04-23 15:27:57 -0400 (Mon, 23 Apr 2007) New Revision: 7030 Modified: trunk/core/src/main/org/jboss/portal/core/controller/portlet/CachedUserI= mpl.java trunk/core/src/main/org/jboss/portal/core/ns/NavigationalStateKey.java Log: make CachedUserImpl and NSKey serializable for clustering Modified: trunk/core/src/main/org/jboss/portal/core/controller/portlet/Cach= edUserImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/core/src/main/org/jboss/portal/core/controller/portlet/CachedUser= Impl.java 2007-04-23 14:59:51 UTC (rev 7029) +++ trunk/core/src/main/org/jboss/portal/core/controller/portlet/CachedUser= Impl.java 2007-04-23 19:27:57 UTC (rev 7030) @@ -25,6 +25,7 @@ import org.jboss.portal.identity.User; = import java.util.Map; +import java.io.Serializable; = /** * Simple POJO to cache user data. @@ -32,7 +33,7 @@ * @author Boleslaw Dawidowicz * @version $Revision: 0.1 $ */ -public class CachedUserImpl implements User +public class CachedUserImpl implements User, Serializable { = /** . */ Modified: trunk/core/src/main/org/jboss/portal/core/ns/NavigationalStateKey= .java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/core/src/main/org/jboss/portal/core/ns/NavigationalStateKey.java = 2007-04-23 14:59:51 UTC (rev 7029) +++ trunk/core/src/main/org/jboss/portal/core/ns/NavigationalStateKey.java = 2007-04-23 19:27:57 UTC (rev 7030) @@ -22,13 +22,16 @@ *************************************************************************= *****/ package org.jboss.portal.core.ns; = +import java.io.Serializable; +import java.io.Externalizable; + /** * A key for navigational state. * * @author Julien Viet * @version $Revision: 1.1 $ */ -public final class NavigationalStateKey +public final class NavigationalStateKey implements Serializable { = /** The type. */ @@ -47,6 +50,10 @@ { throw new IllegalArgumentException("No id provided"); } + if (id instanceof Serializable =3D=3D false && id instanceof Externa= lizable =3D=3D false) + { + throw new IllegalArgumentException("Id should implement Serializa= ble or Externalizable"); + } this.type =3D type; this.id =3D id; } --===============8623768290517875177==--