package org.gridlab.gridsphere.portlet.impl;

import org.gridlab.gridsphere.portlet.PortletRole;

/*
 * @author <a href="mailto:novotny@aei.mpg.de">Jason Novotny</a>
 * @version $Id$
 * The <code>PortletRoleInfo</code> saves the role associated to a concrete portlet.
 */

public class SportletRoleInfo {

    private String portletRole = "";
    private String portletClass = "";
    private String oid = null;

    public String getOid() {
        return oid;
    }

    public void setOid(String oid) {
        this.oid = oid;
    }

    public PortletRole getPortletRole() {
        return PortletRole.toPortletRole(portletRole);
    }

    public void setPortletRole(PortletRole portletRole) {
        this.portletRole = portletRole.toString();
    }

    public String getRole() {
        return portletRole;
    }

    public void setRole(String role) {
        portletRole = role;
    }

    /**
     * Returns the concrete PortletId.
     *
     * @return concrete PortletId
     */
    public String getPortletClass() {
        return portletClass;
    }

    /**
     * Sets the concrete PortletClass.
     *
     * @param portletClass id od the portletclass
     */
    public void setPortletClass(String portletClass) {
        this.portletClass = portletClass;
    }

}

@@ -91,16 +91,46 @@
 tRole;%0A%0A
+import java.io.Serializable;%0A%0A
 /*%0A * @a
@@ -326,18 +326,118 @@
 oleInfo 
-%7B%0A
+implements Serializable %7B%0A%0A    private static final long serialVersionUID = 2887296080186064446L;%0A    
 %0A    pri

make SportletRoleInfo implement Serializable if it is stored in session and Tomcat serailizes sessions by default