public static YhteystietoElementtiDTO getNimike(YhteystietojenTyyppiDTO model) { List<YhteystietoElementtiDTO> elementit = getElementtienLisatietokenttas(model.getAllLisatietokenttas(), YhteystietoElementtiTyyppi.NIMIKE); if (elementit.size() > 0) { return elementit.get(0); } else { return null; } }
public static YhteystietoElementtiDTO getNimiTieto(YhteystietojenTyyppiDTO model) { List<YhteystietoElementtiDTO> elementit = getElementtienLisatietokenttas(model.getAllLisatietokenttas(), YhteystietoElementtiTyyppi.NIMI); if (elementit.size() > 0) { return elementit.get(0); } else { return null; } }
public static List<YhteystietoElementtiDTO> getPuhelinnumeros(YhteystietojenTyyppiDTO model) { return getElementtienLisatietokenttas(model.getAllLisatietokenttas(), YhteystietoElementtiTyyppi.PUHELIN, YhteystietoElementtiTyyppi.FAKSI); }
public static List<YhteystietoElementtiDTO> getLisatietokenttas(YhteystietojenTyyppiDTO model) { return getElementtienLisatietokenttas(model.getAllLisatietokenttas(), YhteystietoElementtiTyyppi.OSOITE, YhteystietoElementtiTyyppi.OSOITE_ULKOMAA); }
public static List<YhteystietoElementtiDTO> getSahkoinenYhteystietos(YhteystietojenTyyppiDTO model) { return getElementtienLisatietokenttas(model.getAllLisatietokenttas(), YhteystietoElementtiTyyppi.WWW, YhteystietoElementtiTyyppi.EMAIL); }
private void createYtt(String nimi, YhteystietoElementtiDTO extraField, List<OrganisaatioTyyppi> orgTyyppis) { YhteystietojenTyyppiDTO group1 = new YhteystietojenTyyppiDTO(); //group1.setNimiFi(nimi);//"Etsivä nuorisotyö"); group1.getAllLisatietokenttas().add(extraField);//newExtraField(System.currentTimeMillis() + "" + Math.random(), false, "Lankanumero", YhteystietoElementtiTyyppi.PUHELIN)); group1.getSovellettavatOrganisaatios().addAll(orgTyyppis); group1.setOid(createOid()); yttRepo.add(group1); }