On Jul 12, 2011, at 5:56 PM, Christophe Laprun wrote:
On Jul 12, 2011, at 3:50 PM, Matt Wringe wrote:
> So looking into the REST part of the api, I have a few questions here
> with the design of the API:
>
> 1) Does the API assume that only a superuser is ever going to use it, or
> does it assume that other logged in (or unauthenticated) users will be
> using it as well?
> Ie I want to create a navigation/menu portlet. If I retrieve the nodes,
> will I get only the nodes I have permission to view, or do I have to
> retrieve them all and manually filter out the ones I don't have
> permission to access?
> It makes more sense for the rest service to only return elements the
> user has permission to access, but we can filter that on the rest side
> if needed.
The current API takes the point of view that whoever is calling into it has
administrative rights.
> 2) Are we still going to be using java resources for internalization?
fact 1 : resource bundle is useful for i18nizing applications and stuff related to
deployment life cycle (like a portlet that contain property bundle in a war file)
fact 2 : until now we provide only one label for navigation (and other stuff too like page
title) and perform a #{} resolution
consequence of 1+2 : it is not possible to add i18nized navigations at runtime without
modifying a bundle (i.e ask a sysadmin to modify the server)
now there are two modes for i18nizing a navigation:
1/ simple mode (which is what was used until now)
2/ extended mode that uses data inline of the navigation XML and can be fully i18nized at
runtime
so both mode should be available from the API on the long term.
I have no idea on this… :/
Cordialement / Best,
Chris
==
Principal Software Engineer / JBoss Enterprise Middleware Red Hat, Inc.
Follow GateIn:
http://blog.gatein.org /
http://twitter.com/gatein
Follow me:
http://metacosm.info/metacosm /
http://twitter.com/metacosm
_______________________________________________
gatein-dev mailing list
gatein-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/gatein-dev