You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by Norman Schöneich <sc...@ecooperate.de> on 2002/01/07 17:11:55 UTC

Simple Question ? Hope ! Entry Point for Page

Hello,

which source code files are affected, if i call
jetspeed with an url that contains the /page/<pagename> or /user/<user> or
/role/<role> etc.

Is there an entry point for parsing these parameters ?

How is the workflow through src / vm files constructed, if a jetspeed url
like this is invoked.

I use current release 1.3a2.

thanks in advance !




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


AW: Simple Question ? Hope ! Entry Point for Page

Posted by Norman Schöneich <sc...@ecooperate.de>.
Thanks !

-----Ursprüngliche Nachricht-----
Von: David Sean Taylor [mailto:david@bluesunrise.com]
Gesendet: Montag, 7. Januar 2002 22:21
An: Jetspeed Developers List
Betreff: Re: Simple Question ? Hope ! Entry Point for Page


----- Original Message -----
From: "Norman Schöneich" <sc...@ecooperate.de>
To: "Jetspeed Developers List" <je...@jakarta.apache.org>
Sent: Monday, January 07, 2002 10:16 AM
Subject: AW: Simple Question ? Hope ! Entry Point for Page


> Yes, ok, but
> who calls this method [getProfile(rundata)] and when ?
>


You can call getProfile anywhere in your code. There are other entry points,
such as query( QueryLocator ), which returns a collection of profiles
matching your locator specification.

Jetspeed calls getProfile(rundata) from the JetspeedSessionValidator, which
is called by Turbine in the doGet() of the main Turbine servlet, see
http://jakarta.apache.org/turbine/turbine-2/fsd.html





--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Simple Question ? Hope ! Entry Point for Page

Posted by David Sean Taylor <da...@bluesunrise.com>.
----- Original Message -----
From: "Norman Schöneich" <sc...@ecooperate.de>
To: "Jetspeed Developers List" <je...@jakarta.apache.org>
Sent: Monday, January 07, 2002 10:16 AM
Subject: AW: Simple Question ? Hope ! Entry Point for Page


> Yes, ok, but
> who calls this method [getProfile(rundata)] and when ?
>


You can call getProfile anywhere in your code. There are other entry points,
such as query( QueryLocator ), which returns a collection of profiles
matching your locator specification.

Jetspeed calls getProfile(rundata) from the JetspeedSessionValidator, which
is called by Turbine in the doGet() of the main Turbine servlet, see
http://jakarta.apache.org/turbine/turbine-2/fsd.html





--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


AW: Simple Question ? Hope ! Entry Point for Page

Posted by Norman Schöneich <sc...@ecooperate.de>.
Yes, ok, but
who calls this method [getProfile(rundata)] and when ?

-----Ursprüngliche Nachricht-----
Von: David Sean Taylor [mailto:david@bluesunrise.com]
Gesendet: Montag, 7. Januar 2002 18:50
An: Jetspeed Developers List
Betreff: Re: Simple Question ? Hope ! Entry Point for Page


Sounds like you are following it correctly.

> getProfile(RunData rundata, CapabilityMap cm) method.
>
> But who calls this method and when ?

getProfile(rundata) calls getProfile(rundata, cm):

    public Profile getProfile(RunData rundata)
        throws ProfileException
    {
        CapabilityMap cm = null;

        if (rundata instanceof JetspeedRunData)
        {
            cm = ((JetspeedRunData)rundata).getCapability();
        }
        else
        {
            cm = CapabilityMapFactory.getCapabilityMap( rundata );
        }

        return getProfile(rundata, cm);
    }

----- Original Message -----
From: "Norman Schöneich" <sc...@ecooperate.de>
To: "Jetspeed Developers List" <je...@jakarta.apache.org>
Sent: Monday, January 07, 2002 9:14 AM
Subject: AW: Simple Question ? Hope ! Entry Point for Page


> Ok,
> i see that the JetspeedProfilerService parse the parameters in the
> getProfile(RunData rundata, CapabilityMap cm) method.
>
> But who calls this method and when ?
>
> I thought, that the entry point is layout/default.vm, then the Screen,
> normally Home.vm is called.
> But in Home.vm getPane("default") is called, so
JetspeedTool.getPane(String
> name) is called with the default param,
> inside there PortalToolkit.getSet(doc.getPortlets()).getContent(rundata)
is
> called -> the page is rendered,
>
> or not ?
>
> Normally i just call rundata.getProfile() to get the current profile, but
> who and where this profile is set (i found it only
> in JetspeedTool and JetspeedSessionValidator.
>
> -----Ursprüngliche Nachricht-----
> Von: David Sean Taylor [mailto:david@bluesunrise.com]
> Gesendet: Montag, 7. Januar 2002 17:31
> An: Jetspeed Developers List
> Betreff: Re: Simple Question ? Hope ! Entry Point for Page
>
>
> The profiler service does this parsing.
> The service is set in the JRP:
>
>
services.Profiler.classname=org.apache.jetspeed.services.profiler.JetspeedPr
> ofilerService
>
> It then passes the parameters in a ProfileLocator to the
PsmlManagerService
> to retrieve the PSML file from either the file system or a database:
>
>
services.PsmlManager.classname=org.apache.jetspeed.services.psmlmanager.Cast
> orPsmlManagerService
> -or-
>
#services.PsmlManager.classname=org.apache.jetspeed.services.psmlmanager.db.
> DatabasePsmlManagerService
>
> ----- Original Message -----
> From: "Norman Schöneich" <sc...@ecooperate.de>
> To: "Jetspeed Developers List" <je...@jakarta.apache.org>
> Sent: Monday, January 07, 2002 8:11 AM
> Subject: Simple Question ? Hope ! Entry Point for Page
>
>
> > Hello,
> >
> > which source code files are affected, if i call
> > jetspeed with an url that contains the /page/<pagename> or /user/<user>
or
> > /role/<role> etc.
> >
> > Is there an entry point for parsing these parameters ?
> >
> > How is the workflow through src / vm files constructed, if a jetspeed
url
> > like this is invoked.
> >
> > I use current release 1.3a2.
> >
> > thanks in advance !
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> >
> >
>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>



--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Simple Question ? Hope ! Entry Point for Page

Posted by David Sean Taylor <da...@bluesunrise.com>.
Sounds like you are following it correctly.

> getProfile(RunData rundata, CapabilityMap cm) method.
>
> But who calls this method and when ?

getProfile(rundata) calls getProfile(rundata, cm):

    public Profile getProfile(RunData rundata)
        throws ProfileException
    {
        CapabilityMap cm = null;

        if (rundata instanceof JetspeedRunData)
        {
            cm = ((JetspeedRunData)rundata).getCapability();
        }
        else
        {
            cm = CapabilityMapFactory.getCapabilityMap( rundata );
        }

        return getProfile(rundata, cm);
    }

----- Original Message -----
From: "Norman Schöneich" <sc...@ecooperate.de>
To: "Jetspeed Developers List" <je...@jakarta.apache.org>
Sent: Monday, January 07, 2002 9:14 AM
Subject: AW: Simple Question ? Hope ! Entry Point for Page


> Ok,
> i see that the JetspeedProfilerService parse the parameters in the
> getProfile(RunData rundata, CapabilityMap cm) method.
>
> But who calls this method and when ?
>
> I thought, that the entry point is layout/default.vm, then the Screen,
> normally Home.vm is called.
> But in Home.vm getPane("default") is called, so
JetspeedTool.getPane(String
> name) is called with the default param,
> inside there PortalToolkit.getSet(doc.getPortlets()).getContent(rundata)
is
> called -> the page is rendered,
>
> or not ?
>
> Normally i just call rundata.getProfile() to get the current profile, but
> who and where this profile is set (i found it only
> in JetspeedTool and JetspeedSessionValidator.
>
> -----Ursprüngliche Nachricht-----
> Von: David Sean Taylor [mailto:david@bluesunrise.com]
> Gesendet: Montag, 7. Januar 2002 17:31
> An: Jetspeed Developers List
> Betreff: Re: Simple Question ? Hope ! Entry Point for Page
>
>
> The profiler service does this parsing.
> The service is set in the JRP:
>
>
services.Profiler.classname=org.apache.jetspeed.services.profiler.JetspeedPr
> ofilerService
>
> It then passes the parameters in a ProfileLocator to the
PsmlManagerService
> to retrieve the PSML file from either the file system or a database:
>
>
services.PsmlManager.classname=org.apache.jetspeed.services.psmlmanager.Cast
> orPsmlManagerService
> -or-
>
#services.PsmlManager.classname=org.apache.jetspeed.services.psmlmanager.db.
> DatabasePsmlManagerService
>
> ----- Original Message -----
> From: "Norman Schöneich" <sc...@ecooperate.de>
> To: "Jetspeed Developers List" <je...@jakarta.apache.org>
> Sent: Monday, January 07, 2002 8:11 AM
> Subject: Simple Question ? Hope ! Entry Point for Page
>
>
> > Hello,
> >
> > which source code files are affected, if i call
> > jetspeed with an url that contains the /page/<pagename> or /user/<user>
or
> > /role/<role> etc.
> >
> > Is there an entry point for parsing these parameters ?
> >
> > How is the workflow through src / vm files constructed, if a jetspeed
url
> > like this is invoked.
> >
> > I use current release 1.3a2.
> >
> > thanks in advance !
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> >
> >
>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


AW: Simple Question ? Hope ! Entry Point for Page

Posted by Norman Schöneich <sc...@ecooperate.de>.
Ok,
i see that the JetspeedProfilerService parse the parameters in the
getProfile(RunData rundata, CapabilityMap cm) method.

But who calls this method and when ?

I thought, that the entry point is layout/default.vm, then the Screen,
normally Home.vm is called.
But in Home.vm getPane("default") is called, so JetspeedTool.getPane(String
name) is called with the default param,
inside there PortalToolkit.getSet(doc.getPortlets()).getContent(rundata) is
called -> the page is rendered,

or not ?

Normally i just call rundata.getProfile() to get the current profile, but
who and where this profile is set (i found it only
in JetspeedTool and JetspeedSessionValidator.

-----Ursprüngliche Nachricht-----
Von: David Sean Taylor [mailto:david@bluesunrise.com]
Gesendet: Montag, 7. Januar 2002 17:31
An: Jetspeed Developers List
Betreff: Re: Simple Question ? Hope ! Entry Point for Page


The profiler service does this parsing.
The service is set in the JRP:

services.Profiler.classname=org.apache.jetspeed.services.profiler.JetspeedPr
ofilerService

It then passes the parameters in a ProfileLocator to the PsmlManagerService
to retrieve the PSML file from either the file system or a database:

services.PsmlManager.classname=org.apache.jetspeed.services.psmlmanager.Cast
orPsmlManagerService
-or-
#services.PsmlManager.classname=org.apache.jetspeed.services.psmlmanager.db.
DatabasePsmlManagerService

----- Original Message -----
From: "Norman Schöneich" <sc...@ecooperate.de>
To: "Jetspeed Developers List" <je...@jakarta.apache.org>
Sent: Monday, January 07, 2002 8:11 AM
Subject: Simple Question ? Hope ! Entry Point for Page


> Hello,
>
> which source code files are affected, if i call
> jetspeed with an url that contains the /page/<pagename> or /user/<user> or
> /role/<role> etc.
>
> Is there an entry point for parsing these parameters ?
>
> How is the workflow through src / vm files constructed, if a jetspeed url
> like this is invoked.
>
> I use current release 1.3a2.
>
> thanks in advance !
>
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>



--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Simple Question ? Hope ! Entry Point for Page

Posted by David Sean Taylor <da...@bluesunrise.com>.
The profiler service does this parsing.
The service is set in the JRP:

services.Profiler.classname=org.apache.jetspeed.services.profiler.JetspeedPr
ofilerService

It then passes the parameters in a ProfileLocator to the PsmlManagerService
to retrieve the PSML file from either the file system or a database:

services.PsmlManager.classname=org.apache.jetspeed.services.psmlmanager.Cast
orPsmlManagerService
-or-
#services.PsmlManager.classname=org.apache.jetspeed.services.psmlmanager.db.
DatabasePsmlManagerService

----- Original Message -----
From: "Norman Schöneich" <sc...@ecooperate.de>
To: "Jetspeed Developers List" <je...@jakarta.apache.org>
Sent: Monday, January 07, 2002 8:11 AM
Subject: Simple Question ? Hope ! Entry Point for Page


> Hello,
>
> which source code files are affected, if i call
> jetspeed with an url that contains the /page/<pagename> or /user/<user> or
> /role/<role> etc.
>
> Is there an entry point for parsing these parameters ?
>
> How is the workflow through src / vm files constructed, if a jetspeed url
> like this is invoked.
>
> I use current release 1.3a2.
>
> thanks in advance !
>
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>