java/nekurak.net-lib/src/cz/frantovo/nekurak/ejb/PodnikRemote.java
author František Kučera <franta-hg@frantovo.cz>
Sat Jan 15 01:12:36 2011 +0100 (2011-01-15)
changeset 171 e619057bad66
parent 170 56deca862adc
child 176 2472d9e9c0aa
permissions -rw-r--r--
Filtrování podniků podle kuřáckosti.
franta-hg@28
     1
package cz.frantovo.nekurak.ejb;
franta-hg@28
     2
franta-hg@170
     3
import cz.frantovo.nekurak.dto.Kategorie;
franta-hg@130
     4
import cz.frantovo.nekurak.dto.Komentar;
franta-hg@171
     5
import cz.frantovo.nekurak.dto.Kurackost;
franta-hg@28
     6
import cz.frantovo.nekurak.dto.Podnik;
franta-hg@107
     7
import cz.frantovo.nekurak.dto.VysledekHlasovani;
franta-hg@132
     8
import cz.frantovo.nekurak.vyjimky.KomentarovaVyjimka;
franta-hg@132
     9
import cz.frantovo.nekurak.vyjimky.TexyVyjimka;
franta-hg@28
    10
import java.util.Collection;
franta-hg@28
    11
import javax.ejb.Remote;
franta-hg@28
    12
franta-hg@28
    13
/**
franta-hg@28
    14
 *
franta-hg@28
    15
 * @author fiki
franta-hg@28
    16
 */
franta-hg@28
    17
@Remote
franta-hg@39
    18
public interface PodnikRemote {
franta-hg@28
    19
franta-hg@145
    20
	public Collection<Podnik> getPodniky();
franta-hg@40
    21
franta-hg@170
    22
	public Collection<Podnik> getPodniky(Kategorie kategorie);
franta-hg@170
    23
franta-hg@171
    24
	public Collection<Podnik> getPodniky(Kurackost kurackost);
franta-hg@171
    25
franta-hg@145
    26
	public void zalozPodnik(Podnik p);
franta-hg@40
    27
franta-hg@145
    28
	public void upravPodnik(Podnik p);
franta-hg@67
    29
franta-hg@145
    30
	public Podnik getPodnik(int id);
franta-hg@100
    31
franta-hg@145
    32
	public int dopocitejSouradnice();
franta-hg@107
    33
franta-hg@145
    34
	/**
franta-hg@145
    35
	 * Zaznamená hlas uživatele
franta-hg@145
    36
	 * @param podnik ID podniku
franta-hg@145
    37
	 * @param hlas true = kuřácký | false = nekuřácký
franta-hg@145
    38
	 * @param ipAdresa IP adresa uživatele, který hlasuje
franta-hg@145
    39
	 */
franta-hg@145
    40
	public void hlasuj(int podnik, boolean hlas, String ipAdresa);
franta-hg@107
    41
franta-hg@145
    42
	/**
franta-hg@145
    43
	 * @return agregované výsledky hlasování pro daný podnik
franta-hg@145
    44
	 */
franta-hg@164
    45
	public VysledekHlasovani getVysledekHlasovani(Podnik podnik);
franta-hg@130
    46
franta-hg@145
    47
	/**
franta-hg@145
    48
	 * @param k komentář, který se má přidat k podniku
franta-hg@145
    49
	 * @param uloz true = vloží komentář | false = pouze zkontroluje (naformátuje obsah komentáře)
franta-hg@145
    50
	 */
franta-hg@145
    51
	public Komentar komentuj(Komentar k, boolean uloz) throws KomentarovaVyjimka, TexyVyjimka;
franta-hg@28
    52
}