Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 47292 invoked by uid 500); 12 Nov 2002 11:51:44 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 47250 invoked from network); 12 Nov 2002 11:51:41 -0000 X-Originating-IP: [64.95.31.195] From: "Richard Reyes" To: "cocoon-users" Subject: RE: Cocoon Portal - User Roles Date: Tue, 12 Nov 2002 19:52:51 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_001C_01C28A85.153FEE70" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: X-OriginalArrivalTime: 12 Nov 2002 11:51:41.0835 (UTC) FILETIME=[DDCAADB0:01C28A41] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------=_NextPart_000_001C_01C28A85.153FEE70 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Matthew / Guys, Just want to confirm some things.... Since the the "new role" function in the portal sample is mapped to = uri, it is using this = sitemap snippet right? and the documentations says that=20 The new-role resource creates a new role in the system. It gets the = parameters "type" with the value "role" and "role" with the new = rolename. =20 Where is the "type" and "role" parameter? and why does it have to serialized in an xml type in the end? Also, for the sunrise-newrole resource, the only thing this pipeline = does is save a new role in the xml file ( sunrise-roles.xml )? whose = responsible for displaying the next page after saving the new role? And since this sitemap snippet is called inside a map:pipeline internal = only clause I think it is being called by the portal generator or = action.=20 If in case I'd used custom actions over this pipeline, How would I know = the parameters that=20 have been passed and are being expected by the caller of this pipeline? Thanks a lot Richard ----- Original Message -----=20 From: Richard Reyes=20 To: cocoon-users=20 Cc: Alex=20 Sent: Tuesday, November 12, 2002 7:18 PM Subject: Re: Cocoon Portal - User Roles Hi Matthew, Thanks for the reminder! = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D 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 } = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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/ = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 -----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... ------=_NextPart_000_001C_01C28A85.153FEE70 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 
 
Hi Matthew / Guys,
 
Just want to confirm some = things....
 
Since the the "new role" function in = the portal=20 sample is mapped to <new-role=20 uri=3D"cocoon:raw:/sunrise-newrole"/> uri, it is=20 using this sitemap snippet right?
 
        <map:match=20 pattern=3D"sunrise*">
       &nb= sp;   =20 <map:generate=20 src=3D"resources/sunrise{1}.xml"/>
     &n= bsp;     =20 <map:transform=20 type=3D"session"/>
        =    =20 <map:transform=20 type=3D"cinclude"/>
        = ;   =20 <map:transform=20 type=3D"write-source"/>
       &= nbsp;   =20 <map:transform=20 src=3D"styles/portal.xsl"/>
      &nb= sp;    =20 <map:serialize = type=3D"xml"/>
       =20 </map:match>
and the=20 documentations says that 
 
The=20 new-role resource creates a new role in the system. It gets the=20 parameters "type" with the value "role" and "role" with the new=20 rolename.  
 
Where is the "type" and "role"=20 parameter?
and why does it have to serialized in = an xml type=20 in the end?
 
Also, for the sunrise-newrole = resource, the=20 only thing this pipeline does is save a new role in the xml file=20 ( sunrise-roles.xml )? whose responsible for displaying the next = page after=20 saving the new role?
 
And since this sitemap snippet is = called inside a=20 map:pipeline internal only clause I think it is being called by the = portal=20 generator or action.
 
If in case I'd used custom actions over = this=20 pipeline, How would I know the = parameters that=20
have been passed and are being expected = by the=20 caller of this pipeline?
 
Thanks a lot
Richard
----- Original Message -----
From:=20 Richard Reyes
Cc: Alex
Sent: Tuesday, November 12, = 2002 7:18=20 PM
Subject: Re: Cocoon Portal - = User=20 Roles

Hi=20 Matthew,
 
Thanks for the = reminder!
 
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D
Hi,
 
each = function of=20 the portal is mapped to a pipeline. So in order to change the storage = - all=20 you have to do is to modify the pipeline to use say the SQLGenerator=20 etc.
 
Read = the=20 documentation. http://xml.apache.org/cocoon/developing/webapps/authentic= ation.html
 
It = explains this=20 in detail (see under User Administration). Then look at the pipelines = that are=20 currently used to get a feel for how it works at the=20 moment.
 
Matthew
 
--
Open Source = Group      =20 Cocoon { Consulting, Training, Projects=20 = }
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Matthew=20 Langham, S&N AG, Klingenderstrasse 5, D-33100=20 Paderborn
Tel:+49-5251-1581-30  mlangham@s-und-n.de - http://www.s-und-n.de
----------------------------= -------------------------------------
Cocoon=20 book:
  http://www.amazon.com/exec/obidos/ASIN/0735712352/needaca= ke-20
Weblog:
 =20 http://radio.weblogs.com/0103021/
=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D
 =20
-----Original Message-----
From: Richard Reyes=20 [mailto:seyer_drahcir@hotmail.com]
Sent: Tuesday, November = 12,=20 2002 10:06 AM
To: = cocoon-users@xml.apache.org
Subject:=20 Re: Cocoon Portal - User Roles

Hi again guys,
 
I have checked the source codes of = the portal=20 sample...
 
I found out that if I am to add new = user or to=20 add new roles, both task
will end up submitting forms with = different=20 parameters to this resource
 
/cocoon/myportal/sunspotdemo-sunriseconf
 
which inturn would exactly = match this=20 sitemap snippet in the process...
 
------=_NextPart_000_001C_01C28A85.153FEE70--