As far as I can tell the Portlet API does not allow me to set
preferences for a guest user when I'm logged in as an administrator.
This is really what I'm trying to achieve. 

Our use case: We have portlets that should be configured by an admin
person (edit mode sets preferences) but the preferences should be set
for the guest user so that any person visiting the portal experiences
the portlet instance as configured. Guest users will not be allowed to
makes changes themselves. Each instance of a portlet will be configured
differently.

Code for DCLAssetDecriptor:
<code>
DCLAssetDescriptor.java
 *
 * Created on February 22, 2007, 2:44 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package com.fmr.ficl.ats.portlet.command;

import java.io.Serializable;

/**
 *
 *  
 */
public class DCLAssetDescriptor implements Serializable {
    public static final long serialVersionUID = 1234567890l;
    private String context;
    private String subContext;
    private Boolean global;
    
    /** Creates a new instance of DCLAssetDescriptor */
    public DCLAssetDescriptor() {
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public String getSubContext() {
        return subContext;
    }

    public void setSubContext(String subContext) {
        this.subContext = subContext;
    }

    public Boolean getGlobal() {
        return global;
    }

    public void setGlobal(Boolean global) {
        this.global = global;
    }
    
}
</code>

Thanks, Joris.


-----Original Message-----
From: David Sean Taylor [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 03, 2007 10:32 AM
To: Jetspeed Users List
Subject: Re: PreferencesProvider question


On Mar 30, 2007, at 8:21 AM, Melchior, Joris wrote:

> It seems that the attachment gets stripped somewhere on the way so  
> here
> it goes again ...
>

In working my way through the code, its not clear to me why you need  
the PreferencesProvider component
Could you explain the use case for why you cannot use the Portlet API  
directly?
Is there something you need to do where the Portlet API  
(PortletPreferences) falls short?

I am also having trouble getting this to compile since I don't have  
DCLAssetDescriptor here





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to