Repositories Global only or contextual?
Caleb Cushing <[email protected]>
| Newsgroups | gmane.comp.programming.domain-driven-design |
|---|---|
| Message-ID | <CAAHKNRE28MOw37HVFa-CrMOebVh3EGKTLDLFegyX-5DvFxT0sw@mail.gmail.com> |
So say I'm implementing a repository for a Todo app. We'll call it Tasks,
class Tasks implements Set { ... }
assume that for this a repository is just the set interface, and tasks
are just strings
for (Task t : Tasks) {
System.out.println( t );
}
should this code iterate all of the tasks in the system? or
should/could it simply iterate the tasks of the currently
authenticated user?
If it's all tasks how should one go about getting to just the users tasks?
--
Caleb Cushing
http://xenoterracide.com
Calendar:
https://www.google.com/calendar/embed?src=xenoterracide%40gmail.com&ctz=America/Chicago
------------------------------------
Yahoo Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/domaindrivendesign/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/domaindrivendesign/join
(Yahoo! ID required)
<*> To change settings via email:
[email protected]
[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo Groups is subject to:
http://info.yahoo.com/legal/us/yahoo/utos/terms/