franta-hg@28: package cz.frantovo.nekurak.ejb; franta-hg@28: franta-hg@170: import cz.frantovo.nekurak.dto.Kategorie; franta-hg@130: import cz.frantovo.nekurak.dto.Komentar; franta-hg@171: import cz.frantovo.nekurak.dto.Kurackost; franta-hg@28: import cz.frantovo.nekurak.dto.Podnik; franta-hg@107: import cz.frantovo.nekurak.dto.VysledekHlasovani; franta-hg@132: import cz.frantovo.nekurak.vyjimky.KomentarovaVyjimka; franta-hg@197: import cz.frantovo.nekurak.vyjimky.WikiSyntaxVyjimka; 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@145: public Collection getPodniky(); franta-hg@40: franta-hg@170: public Collection getPodniky(Kategorie kategorie); franta-hg@170: franta-hg@171: public Collection getPodniky(Kurackost kurackost); franta-hg@171: franta-hg@145: public void zalozPodnik(Podnik p); franta-hg@40: franta-hg@145: public void upravPodnik(Podnik p); franta-hg@67: franta-hg@145: public Podnik getPodnik(int id); franta-hg@100: franta-hg@176: /** franta-hg@176: * Dopočítá souřadnice podle adresy podniku. franta-hg@176: * @return počet podniků u nichž jsme našli souřadnice franta-hg@176: */ franta-hg@145: public int dopocitejSouradnice(); franta-hg@107: franta-hg@145: /** franta-hg@145: * Zaznamená hlas uživatele franta-hg@145: * @param podnik ID podniku franta-hg@145: * @param hlas true = kuřácký | false = nekuřácký franta-hg@145: * @param ipAdresa IP adresa uživatele, který hlasuje franta-hg@145: */ franta-hg@145: public void hlasuj(int podnik, boolean hlas, String ipAdresa); franta-hg@107: franta-hg@145: /** franta-hg@145: * @return agregované výsledky hlasování pro daný podnik franta-hg@145: */ franta-hg@164: public VysledekHlasovani getVysledekHlasovani(Podnik podnik); franta-hg@130: franta-hg@145: /** franta-hg@145: * @param k komentář, který se má přidat k podniku franta-hg@145: * @param uloz true = vloží komentář | false = pouze zkontroluje (naformátuje obsah komentáře) franta-hg@145: */ franta-hg@197: public Komentar komentuj(Komentar k, boolean uloz) throws KomentarovaVyjimka, WikiSyntaxVyjimka; franta-hg@28: }