Thanks everyone for your time and effort of answering my question. Sorry for confusing everyone here with my browser/bookmark analogy . :)
I'm actually building a CMS for multiple users, and I'm trying to model the navigation part of each CMS. This navigation part is like, a site Menu. The Menu has a collection of Links. Each user has a different Site (the obj that represents the CMS site). So to mirror back to my previous analogy. Browser => Site, each user has a unique instance of this. BookmarkManager => Menu, stateful, has add/sort/reorder/delete methods on a collection of Link Bookmark => Link (name, url) After thinking about the problem a little more... This is what I came up with. Please give me some feedback. - I remove the relationship between Site and Menu in the OO level. Site no longer has a reference to Menu, so Site doesn't have to have those one-liner delegated methods of Menu (e.g. add/sort/reorder/ delete). - I added a MenuService that returns a stateful Menu object by SiteId, since Site & Menu is a one-to-one relationship. - The View layer (.cfm) calls MenuService to get a Menu to works on managing Links. Once done, it'll call MenuService.saveMenu(menu). What do you think? Thanks all, Henry Ho --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CFCDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cfcdev?hl=en -~----------~----~----~----~------~----~------~--~---
