java/nekurak.net-web/src/java/cz/frantovo/nekurak/web/PridatPodnik.java
author František Kučera <franta-hg@frantovo.cz>
Thu Feb 25 08:26:46 2010 +0100 (2010-02-25)
changeset 40 67d332d48562
child 145 0efefbf5f8b6
permissions -rw-r--r--
Zakládání podniků + HTTP autentizace.
     1 package cz.frantovo.nekurak.web;
     2 
     3 import cz.frantovo.nekurak.dto.Podnik;
     4 
     5 public class PridatPodnik {
     6 
     7     private HledacSluzby hledac = new HledacSluzby();
     8 
     9     private Podnik podnik = new Podnik();
    10 
    11     public Podnik getPodnik() {
    12 	return podnik;
    13     }
    14 
    15     public void setPodnik(Podnik podnik) {
    16 	this.podnik = podnik;
    17     }
    18 
    19     public boolean getPridano() {
    20 	hledac.getPodnikEJB().zalozPodnik(podnik);
    21 	return true;
    22     }
    23 }