You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Richard Reyes <se...@hotmail.com> on 2002/11/12 07:18:51 UTC
Cocoon Portal - User Roles
Hi Guys,
I am trying to use the C2 portal application and would like to transfer
the storage of the roles from xml files to a mysql database.
Can someone teach me how to do this?
I cannot find anything on the sitemap file that transforms or uses the sunrise roles.xml
btw,
im using
tomcat 4.1
sdk 1.3
c2.1 dev
thanks
RE: Cocoon Portal - User Roles
Posted by Matthew Langham <ml...@s-und-n.de>.
Hi,
each function of the portal is mapped to a pipeline. So in order to change
the storage - all you have to do is to modify the pipeline to use say the
SQLGenerator etc.
Read the documentation.
http://xml.apache.org/cocoon/developing/webapps/authentication.html
It explains this in detail (see under User Administration). Then look at the
pipelines that are currently used to get a feel for how it works at the
moment.
Matthew
--
Open Source Group Cocoon { Consulting, Training, Projects }
=================================================================
Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-30 mlangham@s-und-n.de - http://www.s-und-n.de
-----------------------------------------------------------------
Cocoon book:
http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20
Weblog:
http://radio.weblogs.com/0103021/
=================================================================
-----Original Message-----
From: Richard Reyes [mailto:seyer_drahcir@hotmail.com]
Sent: Tuesday, November 12, 2002 10:06 AM
To: cocoon-users@xml.apache.org
Subject: Re: Cocoon Portal - User Roles
Hi again guys,
I have checked the source codes of the portal sample...
I found out that if I am to add new user or to add new roles, both task
will end up submitting forms with different parameters to this resource
/cocoon/myportal/sunspotdemo-sunriseconf
which inturn would exactly match this sitemap snippet in the process...
<map:match pattern="sunspotdemo-sunriseconf">
<!-- This pipeline can only be accessed if the current
user is
allowed to configure the 'administration'
coplet -->
<map:act type="portal-auth">
<map:parameter name="coplet" value="administration"/>
</map:act>
<map:generate type="auth-conf"/>
<map:transform src="styles/sunriseconfHTML.xsl"/>
<map:transform type="encodeURL"/>
<map:serialize />
Am I correct?
Now I have checked the source codes for the "portal-auth" action and the
"auth-conf" genarator, and I dont think they're very easy to modify.
I hope I do not have to create our own portal genarators to use a
database as a storage for user and roles.
any ideas?
thanks
----- Original Message -----
From: Richard Reyes
To: cocoon-users
Sent: Tuesday, November 12, 2002 2:18 PM
Subject: Cocoon Portal - User Roles
Hi Guys,
I am trying to use the C2 portal application and would like to transfer
the storage of the roles from xml files to a mysql database.
Can someone teach me how to do this?
I cannot find anything on the sitemap file that transforms or uses the
sunrise roles.xml
btw,
im using
tomcat 4.1
sdk 1.3
c2.1 dev
thanks
Re: Cocoon Portal - User Roles
Posted by Richard Reyes <se...@hotmail.com>.
Hi again guys,
I have checked the source codes of the portal sample...
I found out that if I am to add new user or to add new roles, both task
will end up submitting forms with different parameters to this resource
/cocoon/myportal/sunspotdemo-sunriseconf
which inturn would exactly match this sitemap snippet in the process...
<map:match pattern="sunspotdemo-sunriseconf">
<!-- This pipeline can only be accessed if the current user is
allowed to configure the 'administration' coplet -->
<map:act type="portal-auth">
<map:parameter name="coplet" value="administration"/>
</map:act>
<map:generate type="auth-conf"/>
<map:transform src="styles/sunriseconfHTML.xsl"/>
<map:transform type="encodeURL"/>
<map:serialize />
Am I correct?
Now I have checked the source codes for the "portal-auth" action and the "auth-conf" genarator, and I dont think they're very easy to modify.
I hope I do not have to create our own portal genarators to use a database as a storage for user and roles.
any ideas?
thanks
----- Original Message -----
From: Richard Reyes
To: cocoon-users
Sent: Tuesday, November 12, 2002 2:18 PM
Subject: Cocoon Portal - User Roles
Hi Guys,
I am trying to use the C2 portal application and would like to transfer
the storage of the roles from xml files to a mysql database.
Can someone teach me how to do this?
I cannot find anything on the sitemap file that transforms or uses the sunrise roles.xml
btw,
im using
tomcat 4.1
sdk 1.3
c2.1 dev
thanks
Re: Cocoon Portal - User Roles
Posted by Richard Reyes <se...@hotmail.com>.
thanks for the input.
----- Original Message -----
From: "Wouter Scheele" <wo...@audiotex.nl>
To: <co...@xml.apache.org>
Sent: Tuesday, November 12, 2002 4:49 PM
Subject: Re: Cocoon Portal - User Roles
> ey,
>
> i am not totally aware of the ideas behind the authentication-fw but i
think
> you could use xsp/esql to generate an xml file from your database
conforming
> to the authentication-fw specs.
>
> HTH,
> wouter
>
> > Hi Guys,
> > I am trying to use the C2 portal application and would like to transfer
> > the storage of the roles from xml files to a mysql database.
> > Can someone teach me how to do this?
> >
> > I cannot find anything on the sitemap file that transforms or uses the
sunrise roles.xml
> >
> > btw,
> >
> > im using
> > tomcat 4.1
> > sdk 1.3
> > c2.1 dev
> >
> > thanks
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Cocoon Portal - User Roles
Posted by Wouter Scheele <wo...@audiotex.nl>.
ey,
i am not totally aware of the ideas behind the authentication-fw but i think
you could use xsp/esql to generate an xml file from your database conforming
to the authentication-fw specs.
HTH,
wouter
> Hi Guys,
> I am trying to use the C2 portal application and would like to transfer
> the storage of the roles from xml files to a mysql database.
> Can someone teach me how to do this?
>
> I cannot find anything on the sitemap file that transforms or uses the sunrise roles.xml
>
> btw,
>
> im using
> tomcat 4.1
> sdk 1.3
> c2.1 dev
>
> thanks
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>