franta-hg@28: package cz.frantovo.nekurak.ejb; franta-hg@28: franta-hg@28: import cz.frantovo.nekurak.dto.Podnik; franta-hg@107: import cz.frantovo.nekurak.dto.VysledekHlasovani; franta-hg@28: import java.util.Collection; franta-hg@28: import javax.ejb.Remote; franta-hg@28: franta-hg@28: /** franta-hg@28: * franta-hg@28: * @author fiki franta-hg@28: */ franta-hg@28: @Remote franta-hg@39: public interface PodnikRemote { franta-hg@28: franta-hg@28: public Collection getPodniky(); franta-hg@40: franta-hg@50: public void zalozPodnik(Podnik p); franta-hg@40: franta-hg@50: public void upravPodnik(Podnik p); franta-hg@67: franta-hg@100: public Podnik getPodnik(int id); franta-hg@100: franta-hg@100: public int dopocitejSouradnice(); franta-hg@107: franta-hg@107: /** franta-hg@107: * Zaznamená hlas uživatele franta-hg@107: * @param podnik ID podniku franta-hg@107: * @param hlas true = kuřácký | false = nekuřácký franta-hg@107: * @param ipAdresa IP adresa uživatele, který hlasuje franta-hg@107: */ franta-hg@107: public void hlasuj(int podnik, boolean hlas, String ipAdresa); franta-hg@107: franta-hg@107: /** franta-hg@107: * @param podnik ID podniku franta-hg@107: * @return agregované výsledky hlasování pro daný podnik franta-hg@107: */ franta-hg@107: public VysledekHlasovani getVysledekHlasovani(int podnik); franta-hg@28: }