3 Jul 22:45
Design help
From: dee3lmo <dee3lmo <at> yahoo.co.uk>
Subject: Design help
Newsgroups: gmane.comp.programming.domain-driven-design
Date: 2009-07-03 20:50:05 GMT
Subject: Design help
Newsgroups: gmane.comp.programming.domain-driven-design
Date: 2009-07-03 20:50:05 GMT
Hi group, I need some help how to model the following problem: The application I want to model is a web application. The application provides news items on an URL. A business rule is that the user can only get a news item once. The first time the user requests the URL the news item is returned. However, every next time the news item will not returned. A marker is put in the cookie object if a news item has returned so the next time the news item is not returned. The basic objects are easy to find, but the most difficult for me is where to put the Request, Response and Cookie objects. Are these domain objects and must they include in the domain? If placed in the domain the application is restricted to web clients as Request, Response and Cookie are pure web concepts. If Request, Reponse and Cookie objects are part of the domain you cannot make the application accessible for other types of clients (maybe standalone clients). Could anyone please help me with this issue? Kind regards, dee. ------------------------------------
RSS Feed