Re: [xwiki-devs] [Proposal][Model] ResourceName refactoring

2009-12-17 Thread Thomas Mortagne
On Thu, Dec 17, 2009 at 13:57, Vincent Massol vinc...@massol.net wrote: On Dec 16, 2009, at 9:40 AM, Thomas Mortagne wrote: On Tue, Dec 15, 2009 at 18:39, Thomas Mortagne thomas.morta...@xwiki.com wrote: On Tue, Dec 15, 2009 at 15:40, Vincent Massol vinc...@massol.net wrote: Hi, I'd like

Re: [xwiki-devs] [Proposal][Model] ResourceName refactoring

2009-12-16 Thread Thomas Mortagne
On Tue, Dec 15, 2009 at 18:39, Thomas Mortagne thomas.morta...@xwiki.com wrote: On Tue, Dec 15, 2009 at 15:40, Vincent Massol vinc...@massol.net wrote: Hi, I'd like to propose a refactoring for org.xwiki.model.DocumentName/ AttachmentName. There are currently 2 problems with the current

Re: [xwiki-devs] [Proposal][Model] ResourceName refactoring

2009-12-15 Thread Thomas Mortagne
On Tue, Dec 15, 2009 at 15:40, Vincent Massol vinc...@massol.net wrote: Hi, I'd like to propose a refactoring for org.xwiki.model.DocumentName/ AttachmentName. There are currently 2 problems with the current implementation: - DocumentName doesn't support nested spaces (we need that for the

Re: [xwiki-devs] [Proposal][Model] ResourceName refactoring

2009-12-15 Thread Thomas Mortagne
On Tue, Dec 15, 2009 at 19:02, Vincent Massol vinc...@massol.net wrote: On Dec 15, 2009, at 6:39 PM, Thomas Mortagne wrote: On Tue, Dec 15, 2009 at 15:40, Vincent Massol vinc...@massol.net wrote: Hi, I'd like to propose a refactoring for org.xwiki.model.DocumentName/ AttachmentName.

Re: [xwiki-devs] [Proposal][Model] ResourceName refactoring

2009-12-15 Thread Thomas Mortagne
On Tue, Dec 15, 2009 at 20:39, Thomas Mortagne thomas.morta...@xwiki.com wrote: On Tue, Dec 15, 2009 at 19:02, Vincent Massol vinc...@massol.net wrote: On Dec 15, 2009, at 6:39 PM, Thomas Mortagne wrote: On Tue, Dec 15, 2009 at 15:40, Vincent Massol vinc...@massol.net wrote: Hi, I'd like

Re: [xwiki-devs] [Proposal][Model] ResourceName refactoring

2009-12-15 Thread Thomas Mortagne
On Tue, Dec 15, 2009 at 20:39, Thomas Mortagne thomas.morta...@xwiki.com wrote: On Tue, Dec 15, 2009 at 19:02, Vincent Massol vinc...@massol.net wrote: On Dec 15, 2009, at 6:39 PM, Thomas Mortagne wrote: On Tue, Dec 15, 2009 at 15:40, Vincent Massol vinc...@massol.net wrote: Hi, I'd like

Re: [xwiki-devs] [Proposal][Model] ResourceName refactoring

2009-12-15 Thread Caleb James DeLisle
Should there be a ResourceType.OBJECT? If I were to redesign the core, I would make objects able to have child objects. That way Document, Attachment, Space and even Wiki could extend Object. It might be a lofty ideal but I think we ought to make our APIs so they would be compatible if we were to

Re: [xwiki-devs] [Proposal][Model] ResourceName refactoring

2009-12-15 Thread Vincent Massol
Hi Caleb, On Dec 16, 2009, at 1:46 AM, Caleb James DeLisle wrote: Should there be a ResourceType.OBJECT? Yes definitely. I haven't put everything in this proposal. But yes the idea is to have OBJECT and PROPERTY too and possibly others too. What's important to me in the proposal at this