diff -r 000000000000 -r 9b2a597cc862 java/nekurak.net-web/src/java/cz/frantovo/nekurak/web/Atom.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/nekurak.net-web/src/java/cz/frantovo/nekurak/web/Atom.java Thu Mar 04 10:20:28 2010 +0100 @@ -0,0 +1,29 @@ +package cz.frantovo.nekurak.web; + +import cz.frantovo.nekurak.dto.Podnik; +import java.util.Collection; +import java.util.Date; + +/** + * + * @author fiki + */ +public class Atom { + + private HledacSluzby hledac = new HledacSluzby(); + private Collection podniky; + + public Collection getPodniky() { + if (podniky == null) { + podniky = hledac.getPodnikEJB().getPodniky(); + } + return podniky; + } + + public Date getDatumAktualizace() { + for (Podnik p : getPodniky()) { + return p.getDatum(); + } + return new Date(); + } +}