Author: thomas.heute(a)jboss.com
Date: 2009-04-06 07:37:18 -0400 (Mon, 06 Apr 2009)
New Revision: 13162
Modified:
branches/Enterprise_Portal_Platform_4_3/core-admin/src/main/org/jboss/portal/core/admin/ui/AuthorizationBean.java
branches/Enterprise_Portal_Platform_4_3/core-admin/src/main/org/jboss/portal/core/admin/ui/InstanceManagerBean.java
branches/Enterprise_Portal_Platform_4_3/core-admin/src/main/org/jboss/portal/core/admin/ui/PortalObjectManagerBean.java
Log:
JBEPP-58: Default portlets store non serializable attributes in the session
Modified:
branches/Enterprise_Portal_Platform_4_3/core-admin/src/main/org/jboss/portal/core/admin/ui/AuthorizationBean.java
===================================================================
---
branches/Enterprise_Portal_Platform_4_3/core-admin/src/main/org/jboss/portal/core/admin/ui/AuthorizationBean.java 2009-04-06
11:19:36 UTC (rev 13161)
+++
branches/Enterprise_Portal_Platform_4_3/core-admin/src/main/org/jboss/portal/core/admin/ui/AuthorizationBean.java 2009-04-06
11:37:18 UTC (rev 13162)
@@ -1,6 +1,6 @@
/******************************************************************************
* JBoss, a division of Red Hat *
- * Copyright 2006, Red Hat Middleware, LLC, and individual *
+ * Copyright 2009, Red Hat Middleware, LLC, and individual *
* contributors as indicated by the @authors tag. See the *
* copyright.txt in the distribution for a full listing of *
* individual contributors. *
@@ -34,6 +34,7 @@
import org.jboss.portal.security.spi.provider.SecurityConfigurationException;
import javax.faces.model.SelectItem;
+import java.io.Serializable;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
@@ -47,7 +48,7 @@
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
* @version $Revision$
*/
-public abstract class AuthorizationBean
+public abstract class AuthorizationBean implements Serializable
{
public AbstractDynamicBean getForRole()
Modified:
branches/Enterprise_Portal_Platform_4_3/core-admin/src/main/org/jboss/portal/core/admin/ui/InstanceManagerBean.java
===================================================================
---
branches/Enterprise_Portal_Platform_4_3/core-admin/src/main/org/jboss/portal/core/admin/ui/InstanceManagerBean.java 2009-04-06
11:19:36 UTC (rev 13161)
+++
branches/Enterprise_Portal_Platform_4_3/core-admin/src/main/org/jboss/portal/core/admin/ui/InstanceManagerBean.java 2009-04-06
11:37:18 UTC (rev 13162)
@@ -1,6 +1,6 @@
/******************************************************************************
* JBoss, a division of Red Hat *
- * Copyright 2006, Red Hat Middleware, LLC, and individual *
+ * Copyright 2009, Red Hat Middleware, LLC, and individual *
* contributors as indicated by the @authors tag. See the *
* copyright.txt in the distribution for a full listing of *
* individual contributors. *
@@ -20,6 +20,7 @@
* 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.core.admin.ui;
import org.jboss.portal.Mode;
@@ -43,6 +44,7 @@
import javax.faces.context.FacesContext;
import javax.faces.event.ActionEvent;
import javax.faces.model.SelectItem;
+import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
@@ -433,8 +435,9 @@
}
};
- public class InstanceAuthorizationBean extends AuthorizationBean
+ public class InstanceAuthorizationBean extends AuthorizationBean implements
Serializable
{
+ private static final long serialVersionUID = -6284936544525435559L;
public DomainConfigurator getDomainConfigurator()
{
Modified:
branches/Enterprise_Portal_Platform_4_3/core-admin/src/main/org/jboss/portal/core/admin/ui/PortalObjectManagerBean.java
===================================================================
---
branches/Enterprise_Portal_Platform_4_3/core-admin/src/main/org/jboss/portal/core/admin/ui/PortalObjectManagerBean.java 2009-04-06
11:19:36 UTC (rev 13161)
+++
branches/Enterprise_Portal_Platform_4_3/core-admin/src/main/org/jboss/portal/core/admin/ui/PortalObjectManagerBean.java 2009-04-06
11:37:18 UTC (rev 13162)
@@ -88,28 +88,28 @@
// Wired services
/** . */
- private PortalObjectContainer portalObjectContainer;
+ private transient PortalObjectContainer portalObjectContainer;
/** . */
- private CoordinationConfigurator coordinationService;
+ private transient CoordinationConfigurator coordinationService;
/** . */
- private InstanceContainer instanceContainer;
+ private transient InstanceContainer instanceContainer;
/** . */
- private LayoutService layoutService;
+ private transient LayoutService layoutService;
/** . */
- private ThemeService themeService;
+ private transient ThemeService themeService;
/** . */
- private DomainConfigurator domainConfigurator;
+ private transient DomainConfigurator domainConfigurator;
/** . */
- private RoleModule roleModule;
+ private transient RoleModule roleModule;
/** Listener registry to bind even listener to PortalNodes. */
- private PortalEventListenerRegistry listenerRegistry;
+ private transient PortalEventListenerRegistry listenerRegistry;
// Navigational state
@@ -733,8 +733,9 @@
getDomainConfigurator().setSecurityBindings(page.getId().toString(PortalObjectPath.CANONICAL_FORMAT),
constraints);
}
- public class PortalObjectAuthorizationBean extends AuthorizationBean
+ public class PortalObjectAuthorizationBean extends AuthorizationBean implements
Serializable
{
+ private static final long serialVersionUID = 7281763204029034269L;
public DomainConfigurator getDomainConfigurator()
{