Hi Andreas,
On Thu, Jun 3, 2010 at 23:59, Andreas Jonsson <aj(a)member.fsf.org> wrote:
Hi,
I have almost finished writing a new right service implementation and
have some questions about nested spaces.
This sounds really good. Is it going to be a change compare to the past?
What will be the proposed compatibility mode ?
Are you removing the current behavior that deny rights to other user/group
when an allowance has been found locally for a given user/group ? Is there
some improvement to allow additional rights ?
I am using the EntityReference classes for representing the document
hierarchy, with the addition for using the main wiki as the parent of a
virtual wiki.
+1
XWikiRightServiceImpl is using the parent field in the space's
preferences to form a space hierarchy. The EntityReference classes
support a list of spaces, but this does not seem to be implemented
yet.
Can a right service implementation assume that the
nested space
hierarchy was resolved externally and was inserted into the
DocumentReference as a list of spaces?
Will the list of spaces in an EntityReference correspond to following
parent fields in the space preferences or does a right service
implementation need to resolve these parent fields for backwards
compliancy?
The hierarchy of space has never been documented and is disabled by default.
IMO providing the old behaviour is useless, but could be nice to have since
it should be easy to do and the xwiki.cfg parameter is already available to
trigger it or not (default is disabled already). Assuming the reference will
contains the whole hierarchy is correct (if compliance mode is disabled),
the implementation of the space hierarchy will have to ensure that document
with different space hierarchy are different documents anyway.
Denis
Best Regards,
Andreas Jonsson
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Denis Gervalle
SOFTEC sa - CEO
eGuilde sarl - CTO