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.
 
 
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  [EMAIL PROTECTED] - 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:[EMAIL PROTECTED]]
Sent: Tuesday, November 12, 2002 10:06 AM
To: [EMAIL PROTECTED]
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 -----
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

Reply via email to