Yes, we discussed this last week, and I let it slip.

> I want to load the psml file of a specific user. How ?

You can currently do that with the Profiler.query( locator ) method:

// set the user

locator.setUser( user );
locator.setMediaType( "html" );
...
Iterator it = Profiler.query( locator );

So if you make the locator parameters specific enough, it will only find one
profile.

Anyway, you can go ahead and use the getProfile method, I just modified the
JetspeedProfilerService to:

    public Profile getProfile(RunData data, ProfileLocator locator)
        throws ProfileException
    {
        PSMLDocument doc =  fallback( locator, data );
        BaseProfile profile = new BaseProfile(locator);
        profile.setDocument(doc);
        return profile;
    }

Thanks for pointing that out (again) :)

David

> -----Original Message-----
> From: Norman Schoneich [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 10, 2001 1:45 AM
> To: Jetspeed Developers List
> Subject: Profiler / Locator Question !
>
>
> I want to load the psml file of a specific user. How ?
>
> My first approach was to use the following function in Profiler /
> JetspeedProfilerService,
> but this function returns null !!!
>
> I created a ProfileLocator and there I set the mimetype and the user.
>
>
> /**
>  *  get the Profile object using a profile locator
>  *
>  * @param rundata The rundata object for the current request.
>  * @param locator The locator containing criteria describing
> the profile.
>  * @return a new Profile object
>  */
>
>  public Profile getProfile(RunData data, ProfileLocator locator)
>         throws ProfileException
>     {
>         PSMLDocument doc =  fallback( locator, data );
>         return null;
>     }
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>




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

Reply via email to