On Mar 22, 2009, at 4:48 PM, Sergiu Dumitriu wrote: > Asiri Rathnayake wrote: >> Hi Devs, >> >> I'm in need of a method to set the parent document of a given >> document. So >> until the we remodel the model classes (when? xwiki 2.0 release?), >> I propose >> to add the following method: >> >> void setParent(String parentDoc); > > +1 > > I'm wondering if a String is the best choice. Could we pass in another > DocumentModelBridge instance?
I don't think you should pass a full object to add a parent. A name is better. DocumentName would be best IMO. Thanks -Vincent > > >> Now the next question is where to add this method? >> DocumentAccessBridge or >> DocumentModelBridge? >> >> To me it seems to fit DocumentModelBridge. > > DocumentModelBridge > _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

