Package eu.lsem.bakalarka.model

Examples of eu.lsem.bakalarka.model.MinimalThesis


                        if (!currentDir.exists() || !currentDir.canRead() || !currentDir.isDirectory())
                            continue;

                        String[] logins = currentDir.list(DirectoryFileFilter.DIRECTORY);
                        for (String login : logins) {
                            MinimalThesis t = new MinimalThesis();
                            t.setFieldOfStudy(fieldOfStudy);
                            t.setThesisCategory(thesisCategory);
                            t.setFormOfStudy(formOfStudy);
                            t.setLogin(login);
                            t.setYear(year);
                            t.setUploadingUserUsername(((UserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal()).getUsername());
                            try {
                                thesesDao.insertThesis(t);
                                thesesDao.updateThesisHasData(t.getId(), true);
                                b.append("P�idal jsem pr�ci ").append(t.getRelativeThesisPath()).append(".\n");
                            } catch (DataIntegrityViolationException e) { //pr�ce u� v db je
                            }
                        }
                    }
                }
View Full Code Here

TOP

Related Classes of eu.lsem.bakalarka.model.MinimalThesis

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.