java/nekurak.net-web/src/java/cz/frantovo/nekurak/web/Atom.java
author František Kučera <franta-hg@frantovo.cz>
Thu Mar 04 10:20:28 2010 +0100 (2010-03-04)
changeset 49 9b2a597cc862
child 145 0efefbf5f8b6
permissions -rw-r--r--
Atom syndikace, slovenština, ověřování uživatelů proti DB.
     1 package cz.frantovo.nekurak.web;
     2 
     3 import cz.frantovo.nekurak.dto.Podnik;
     4 import java.util.Collection;
     5 import java.util.Date;
     6 
     7 /**
     8  *
     9  * @author fiki
    10  */
    11 public class Atom {
    12 
    13     private HledacSluzby hledac = new HledacSluzby();
    14     private Collection<Podnik> podniky;
    15 
    16     public Collection<Podnik> getPodniky() {
    17 	if (podniky == null) {
    18 	    podniky = hledac.getPodnikEJB().getPodniky();
    19 	}
    20 	return podniky;
    21     }
    22 
    23     public Date getDatumAktualizace() {
    24 	for (Podnik p : getPodniky()) {
    25 	    return p.getDatum();
    26 	}
    27 	return new Date();
    28     }
    29 }