You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Stefano Bianchi <st...@softeco.it> on 2004/03/15 12:10:22 UTC

How to obtain USER ID

I need to univocally identify users when storing data through a webapp
hosted in a IframePortlet.
I thought there were jsp tags or even method to extract ID for user, but I
did not find them in Turbine User.class.
Any suggestion?
Thank you
Stefano


Ing. Stefano Bianchi
Softeco Sismat S.p.A.
Via De Marini, 1 - WTC Tower
16149 Genoa (ITALY)
e-mail: stefano.bianchi@softeco.it
tel: +39 010 60.26.368
fax: +39 010 60.26.350



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: How to obtain USER ID

Posted by Stefano Bianchi <st...@softeco.it>.
That's good!

I had to use JetspeedRunData instead of RunData simply!
Thank you very much
Stefano

----- Original Message ----- 
From: "Robin Antony" <ro...@newgsystem.com>
To: "Jetspeed Users List" <je...@jakarta.apache.org>
Sent: Tuesday, March 16, 2004 5:35 AM
Subject: Re: How to obtain USER ID


> Sorry, didn't read your question carefully. Why don't you try using
> ((JetspeedRunData) data).getUserId() by using the data object.
>
> ----- Original Message ----- 
> From: "Stefano Bianchi" <st...@softeco.it>
> To: "Jetspeed Users List" <je...@jakarta.apache.org>
> Sent: Monday, March 15, 2004 4:23 AM
> Subject: Re: How to obtain USER ID
>
>
> > Dear Robin,
> > you are right, but these are username and password, not the user id
> (numeric
> > or alphanumeric) used in Turbine tables.
> > Or this means no duplicated usernames are allowed, and usernames can be
> used
> > as primary keys instead of ids?
> >
> > Bye
> > Stefano
> >
> > ----- Original Message ----- 
> > From: "Robin Antony" <ro...@newgsystem.com>
> > To: "Jetspeed Users List" <je...@jakarta.apache.org>
> > Sent: Tuesday, March 16, 2004 4:43 AM
> > Subject: Re: How to obtain USER ID
> >
> >
> > > Hi,
> > > you can get the userid and password from the rundata object
> > > String uid    = (String) rundata.getUser().getUserName();
> > > String passwd = (String) rundata.getUser().getPassword();
> > > Hope this helps :)
> > > Regards,
> > > Robin Antony
> > > OpenSI.Net
> > > robin.antony@opensi.net
> > >
> > > ----- Original Message ----- 
> > > From: "Stefano Bianchi" <st...@softeco.it>
> > > To: "Jetspeed Users List" <je...@jakarta.apache.org>
> > > Sent: Monday, March 15, 2004 3:10 AM
> > > Subject: How to obtain USER ID
> > >
> > >
> > > >
> > > > I need to univocally identify users when storing data through a
webapp
> > > > hosted in a IframePortlet.
> > > > I thought there were jsp tags or even method to extract ID for user,
> but
> > I
> > > > did not find them in Turbine User.class.
> > > > Any suggestion?
> > > > Thank you
> > > > Stefano
> > > >
> > > >
> > > > Ing. Stefano Bianchi
> > > > Softeco Sismat S.p.A.
> > > > Via De Marini, 1 - WTC Tower
> > > > 16149 Genoa (ITALY)
> > > > e-mail: stefano.bianchi@softeco.it
> > > > tel: +39 010 60.26.368
> > > > fax: +39 010 60.26.350
> > > >
> > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail:
jetspeed-user-help@jakarta.apache.org
> > > >
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> > >
> > >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: How to obtain USER ID

Posted by Robin Antony <ro...@newgsystem.com>.
Sorry, didn't read your question carefully. Why don't you try using
((JetspeedRunData) data).getUserId() by using the data object.

----- Original Message ----- 
From: "Stefano Bianchi" <st...@softeco.it>
To: "Jetspeed Users List" <je...@jakarta.apache.org>
Sent: Monday, March 15, 2004 4:23 AM
Subject: Re: How to obtain USER ID


> Dear Robin,
> you are right, but these are username and password, not the user id
(numeric
> or alphanumeric) used in Turbine tables.
> Or this means no duplicated usernames are allowed, and usernames can be
used
> as primary keys instead of ids?
>
> Bye
> Stefano
>
> ----- Original Message ----- 
> From: "Robin Antony" <ro...@newgsystem.com>
> To: "Jetspeed Users List" <je...@jakarta.apache.org>
> Sent: Tuesday, March 16, 2004 4:43 AM
> Subject: Re: How to obtain USER ID
>
>
> > Hi,
> > you can get the userid and password from the rundata object
> > String uid    = (String) rundata.getUser().getUserName();
> > String passwd = (String) rundata.getUser().getPassword();
> > Hope this helps :)
> > Regards,
> > Robin Antony
> > OpenSI.Net
> > robin.antony@opensi.net
> >
> > ----- Original Message ----- 
> > From: "Stefano Bianchi" <st...@softeco.it>
> > To: "Jetspeed Users List" <je...@jakarta.apache.org>
> > Sent: Monday, March 15, 2004 3:10 AM
> > Subject: How to obtain USER ID
> >
> >
> > >
> > > I need to univocally identify users when storing data through a webapp
> > > hosted in a IframePortlet.
> > > I thought there were jsp tags or even method to extract ID for user,
but
> I
> > > did not find them in Turbine User.class.
> > > Any suggestion?
> > > Thank you
> > > Stefano
> > >
> > >
> > > Ing. Stefano Bianchi
> > > Softeco Sismat S.p.A.
> > > Via De Marini, 1 - WTC Tower
> > > 16149 Genoa (ITALY)
> > > e-mail: stefano.bianchi@softeco.it
> > > tel: +39 010 60.26.368
> > > fax: +39 010 60.26.350
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: How to obtain USER ID

Posted by Stefano Bianchi <st...@softeco.it>.
Dear Robin,
you are right, but these are username and password, not the user id (numeric
or alphanumeric) used in Turbine tables.
Or this means no duplicated usernames are allowed, and usernames can be used
as primary keys instead of ids?

Bye
Stefano

----- Original Message ----- 
From: "Robin Antony" <ro...@newgsystem.com>
To: "Jetspeed Users List" <je...@jakarta.apache.org>
Sent: Tuesday, March 16, 2004 4:43 AM
Subject: Re: How to obtain USER ID


> Hi,
> you can get the userid and password from the rundata object
> String uid    = (String) rundata.getUser().getUserName();
> String passwd = (String) rundata.getUser().getPassword();
> Hope this helps :)
> Regards,
> Robin Antony
> OpenSI.Net
> robin.antony@opensi.net
>
> ----- Original Message ----- 
> From: "Stefano Bianchi" <st...@softeco.it>
> To: "Jetspeed Users List" <je...@jakarta.apache.org>
> Sent: Monday, March 15, 2004 3:10 AM
> Subject: How to obtain USER ID
>
>
> >
> > I need to univocally identify users when storing data through a webapp
> > hosted in a IframePortlet.
> > I thought there were jsp tags or even method to extract ID for user, but
I
> > did not find them in Turbine User.class.
> > Any suggestion?
> > Thank you
> > Stefano
> >
> >
> > Ing. Stefano Bianchi
> > Softeco Sismat S.p.A.
> > Via De Marini, 1 - WTC Tower
> > 16149 Genoa (ITALY)
> > e-mail: stefano.bianchi@softeco.it
> > tel: +39 010 60.26.368
> > fax: +39 010 60.26.350
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: How to obtain USER ID

Posted by Robin Antony <ro...@newgsystem.com>.
Hi,
you can get the userid and password from the rundata object
String uid    = (String) rundata.getUser().getUserName();
String passwd = (String) rundata.getUser().getPassword();
Hope this helps :)
Regards,
Robin Antony
OpenSI.Net
robin.antony@opensi.net

----- Original Message ----- 
From: "Stefano Bianchi" <st...@softeco.it>
To: "Jetspeed Users List" <je...@jakarta.apache.org>
Sent: Monday, March 15, 2004 3:10 AM
Subject: How to obtain USER ID


>
> I need to univocally identify users when storing data through a webapp
> hosted in a IframePortlet.
> I thought there were jsp tags or even method to extract ID for user, but I
> did not find them in Turbine User.class.
> Any suggestion?
> Thank you
> Stefano
>
>
> Ing. Stefano Bianchi
> Softeco Sismat S.p.A.
> Via De Marini, 1 - WTC Tower
> 16149 Genoa (ITALY)
> e-mail: stefano.bianchi@softeco.it
> tel: +39 010 60.26.368
> fax: +39 010 60.26.350
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: Browsing static pages within a portlet

Posted by Glen Carl <gl...@buonvia.com>.
I will try get a patch to the community.
Glen

David Sean Taylor wrote:

> 
> On Wednesday, March 17, 2004, at 01:35  PM, Glen Carl wrote:
> 
>> Consider implementing the NekoHTML technology for portlets that do 
>> rewriting.
>> http://www.apache.org/~andyc/neko/doc/html/
>>
>> We recently discovered Neko, and implemented it for rewriting. It 
>> eliminated many of the rewriting problems we were having.
>>
> Do you have a patch for the Jetspeed Rewriter framework to implement a 
> NekoHTML plugin?
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: Browsing static pages within a portlet

Posted by David Sean Taylor <da...@bluesunrise.com>.
On Wednesday, March 17, 2004, at 01:35  PM, Glen Carl wrote:

> Consider implementing the NekoHTML technology for portlets that do 
> rewriting.
> http://www.apache.org/~andyc/neko/doc/html/
>
> We recently discovered Neko, and implemented it for rewriting. It 
> eliminated many of the rewriting problems we were having.
>
Do you have a patch for the Jetspeed Rewriter framework to implement a 
NekoHTML plugin?


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: Browsing static pages within a portlet

Posted by Glen Carl <gl...@buonvia.com>.
Consider implementing the NekoHTML technology for portlets that do 
rewriting.
http://www.apache.org/~andyc/neko/doc/html/

We recently discovered Neko, and implemented it for rewriting. It 
eliminated many of the rewriting problems we were having.

Glen

Daniel Farinha wrote:

> Robin,
> 
> WebSurfPortlet is very much what I was looking for. Thanks!
> 
> I got it working, and works fine for surfing normal websites, but I could
> not get it to read pages from the local file system (i.e. read content from
> /mypages/page.html rather than http://myserver/mypages/page.html )
> 
> Nevertheless, the WebSurfPortlet source gave me the hints I needed to write
> my own FileSurfPortlet (adapted from the FileServerPortlet). My portlet
> needs a good code review, but as soon as its neater, and provided someone
> wants it, I will either post it here or on bugzilla.
> 
> Regards
> 
> Daniel Farinha
> 
> -----Original Message-----
> From: Robin Antony [mailto:robin.antony@newgsystem.com] 
> Sent: 16 March 2004 04:11
> To: Jetspeed Users List
> Subject: Re: Browsing static pages within a portlet
> 
> Hi,
> Maybe you should consider using a WebSurfPortlet. It is an extension of the
> already existing WebPagePortlet. You can refer to this link for more details
> and decide if it suits your needs.
> http://grids.ucs.indiana.edu/users/balsoy/jetspeed/websurfportlet.html
> Regards,
> Robin Antony
> OpenSI.Net
> robin.antony@opensi.net
> 
> ----- Original Message -----
> From: "Daniel Farinha" <da...@ktorn.com>
> To: "'Jetspeed Users List'" <je...@jakarta.apache.org>
> Sent: Monday, March 15, 2004 3:46 AM
> Subject: Browsing static pages within a portlet
> 
> 
> 
>>I need to browse a number of local static pages within a single portlet.
>>Unfortunately I can't use IFRAME or any other fancy HTML tags.
>>
>>I'm considering extending FileServerPortlet, so that any pages that it
>>servers will have the HTML parsed, and normal <a href> links will be
>>re-written to a format that the portlet can catch (say using something
> 
> like
> 
>>JSLINK) to then open the respective static page.
>>
>>Is this a feasible solution, or are there better alternatives?
>>
>>Regards
>>
>>Daniel Farinha
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>>
>>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


RE: Browsing static pages within a portlet

Posted by Daniel Farinha <da...@ktorn.com>.
Robin,

WebSurfPortlet is very much what I was looking for. Thanks!

I got it working, and works fine for surfing normal websites, but I could
not get it to read pages from the local file system (i.e. read content from
/mypages/page.html rather than http://myserver/mypages/page.html )

Nevertheless, the WebSurfPortlet source gave me the hints I needed to write
my own FileSurfPortlet (adapted from the FileServerPortlet). My portlet
needs a good code review, but as soon as its neater, and provided someone
wants it, I will either post it here or on bugzilla.

Regards

Daniel Farinha

-----Original Message-----
From: Robin Antony [mailto:robin.antony@newgsystem.com] 
Sent: 16 March 2004 04:11
To: Jetspeed Users List
Subject: Re: Browsing static pages within a portlet

Hi,
Maybe you should consider using a WebSurfPortlet. It is an extension of the
already existing WebPagePortlet. You can refer to this link for more details
and decide if it suits your needs.
http://grids.ucs.indiana.edu/users/balsoy/jetspeed/websurfportlet.html
Regards,
Robin Antony
OpenSI.Net
robin.antony@opensi.net

----- Original Message -----
From: "Daniel Farinha" <da...@ktorn.com>
To: "'Jetspeed Users List'" <je...@jakarta.apache.org>
Sent: Monday, March 15, 2004 3:46 AM
Subject: Browsing static pages within a portlet


> I need to browse a number of local static pages within a single portlet.
> Unfortunately I can't use IFRAME or any other fancy HTML tags.
>
> I'm considering extending FileServerPortlet, so that any pages that it
> servers will have the HTML parsed, and normal <a href> links will be
> re-written to a format that the portlet can catch (say using something
like
> JSLINK) to then open the respective static page.
>
> Is this a feasible solution, or are there better alternatives?
>
> Regards
>
> Daniel Farinha
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: Browsing static pages within a portlet

Posted by Robin Antony <ro...@newgsystem.com>.
Hi,
Maybe you should consider using a WebSurfPortlet. It is an extension of the
already existing WebPagePortlet. You can refer to this link for more details
and decide if it suits your needs.
http://grids.ucs.indiana.edu/users/balsoy/jetspeed/websurfportlet.html
Regards,
Robin Antony
OpenSI.Net
robin.antony@opensi.net

----- Original Message ----- 
From: "Daniel Farinha" <da...@ktorn.com>
To: "'Jetspeed Users List'" <je...@jakarta.apache.org>
Sent: Monday, March 15, 2004 3:46 AM
Subject: Browsing static pages within a portlet


> I need to browse a number of local static pages within a single portlet.
> Unfortunately I can't use IFRAME or any other fancy HTML tags.
>
> I'm considering extending FileServerPortlet, so that any pages that it
> servers will have the HTML parsed, and normal <a href> links will be
> re-written to a format that the portlet can catch (say using something
like
> JSLINK) to then open the respective static page.
>
> Is this a feasible solution, or are there better alternatives?
>
> Regards
>
> Daniel Farinha
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Browsing static pages within a portlet

Posted by Daniel Farinha <da...@ktorn.com>.
I need to browse a number of local static pages within a single portlet.
Unfortunately I can't use IFRAME or any other fancy HTML tags.

I'm considering extending FileServerPortlet, so that any pages that it
servers will have the HTML parsed, and normal <a href> links will be
re-written to a format that the portlet can catch (say using something like
JSLINK) to then open the respective static page.

Is this a feasible solution, or are there better alternatives?

Regards

Daniel Farinha


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org