[Yanel-dev] [PROPOSAL] extend rc-map to allow
additional matcher-types
Josias Thöny
josias.thoeny at wyona.com
Thu Apr 10 09:05:13 CEST 2008
simon litwan wrote:
> hi all
>
> i would like to extend the rc-map to allow matching for
> requestparameters and more.
>
> first i would like propose a modified structure of the rc-map xml.
>
> <?xml version="1.0"?>
> <yanel:rc-map xmlns:yanel="http://www.wyona.org/yanel/rti/1.0">
>
> <yanel:rc-map-config>
> <yanel:rc-map-matcher-config type="requestparameter"
> class="org.wyona.yanel.core.rc.matchers.RequestParameterMatcher"/>
> </yanel:rc-map-config>
>
> <yanel:matchers>
> <yanel:matcher type="requestparameter"
> pattern="yanel.resource.usecase.search" rcpath="/search.yanel-rc"/>
> <yanel:matcher pattern="/**.html" rcpath="/html.yanel-rc"/>
> </yanel:matchers>
>
> </yanel:rc-map>
>
> please comment on this.
I think it would be nice to have this functionality.
Although it seems we are re-implementing cocoon ;)
I'm not quite sure what it means about access control.
Say users A and B have read access to foo.html and now I would like to
allow user A to access foo.html?usecase=search (which will be mapped to
search.html) but user B should be blocked.
Does that mean that A has read access to search.html and B does not?
Or should there be a usecase policy for foo.html, like <usecase
id="search"> ?
Another thing one has to be aware of is that inside of search.html the
path of the resource does not correspond to the browser URL. One has to
take care of this when creating links. Basically it's the same as with
xincluded resources.
josias
>
> maybe the best would be to add a wikipage about this proposal where i
> could add more information.
>
> simon
>
>
> _______________________________________________
> Yanel-development mailing list
> Yanel-development at wyona.com
> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development
--
Josias Thöny
Wyona - Open Source Content Management
http://www.wyona.com
More information about the Yanel-development
mailing list