summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--Dozentenmodul/.classpath2
-rw-r--r--Dozentenmodul/.settings/org.eclipse.core.resources.prefs2
-rw-r--r--Dozentenmodul/bin/GUI/BillOfRights_GUI$1.classbin680 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/BillOfRights_GUI$2.classbin1794 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/BillOfRights_GUI$3.classbin929 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/BillOfRights_GUI.classbin10791 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$1.classbin716 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$2.classbin793 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$3.classbin833 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$4.classbin1368 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EditImageAllgemein_GUI.classbin8976 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$1.classbin716 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$2.classbin793 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$3.classbin1623 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$4.classbin1611 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EditImageTechnisch_GUI.classbin8389 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$1.classbin734 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$2.classbin811 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$3.classbin1125 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$4.classbin1586 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI.classbin7645 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$1.classbin734 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$2.classbin811 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$3.classbin1639 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$4.classbin1619 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI.classbin8391 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$1.classbin782 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$2.classbin859 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$3.classbin1382 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$4.classbin1775 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI.classbin7114 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$1.classbin782 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$2.classbin859 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$3.classbin2000 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$4.classbin1960 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI.classbin8100 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/ExtendedSearch_GUI.classbin6375 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/FTPDownloader_GUI$1.classbin1266 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/FTPDownloader_GUI$2.classbin1211 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/FTPDownloader_GUI$3.classbin778 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/FTPDownloader_GUI$4.classbin1292 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/FTPDownloader_GUI.classbin9135 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/FTPUploader_GUI$1.classbin738 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/FTPUploader_GUI$2.classbin1193 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/FTPUploader_GUI$3.classbin1312 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/FTPUploader_GUI$4.classbin735 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/FTPUploader_GUI$5.classbin1449 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/FTPUploader_GUI.classbin10530 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/LinkImage_GUI$1.classbin662 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/LinkImage_GUI$2.classbin1453 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/LinkImage_GUI$3.classbin730 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/LinkImage_GUI$4.classbin1478 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/LinkImage_GUI$5.classbin739 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/LinkImage_GUI$6.classbin781 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/LinkImage_GUI$7.classbin2402 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/LinkImage_GUI.classbin11187 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/Login_GUI$1.classbin1082 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/Login_GUI$2.classbin635 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/Login_GUI$3.classbin2392 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/Login_GUI.classbin3731 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/MainMenue_GUI$1.classbin662 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/MainMenue_GUI$2.classbin729 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/MainMenue_GUI$3.classbin740 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/MainMenue_GUI$4.classbin1644 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/MainMenue_GUI.classbin8058 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/SearchImage_GUI$1.classbin674 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/SearchMethod_GUI$1.classbin680 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/SearchMethod_GUI$2.classbin757 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/SearchMethod_GUI$3.classbin797 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/SearchMethod_GUI$4.classbin965 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/VmWareLink_GUI$1.classbin665 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/VmWareLink_GUI$2.classbin1126 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/VmWareLink_GUI$3.classbin1767 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/Image_zu_Veranstaltung_HDD.pngbin0 -> 34300 bytes
-rw-r--r--Dozentenmodul/bin/Models/Image.classbin1587 -> 1979 bytes
-rw-r--r--Dozentenmodul/bin/Models/Lecture.classbin1644 -> 2226 bytes
-rw-r--r--Dozentenmodul/bin/Models/person.classbin1882 -> 2127 bytes
-rw-r--r--Dozentenmodul/bin/Models/vm.classbin2060 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/auth/Authentification.classbin283 -> 449 bytes
-rw-r--r--Dozentenmodul/bin/ftp/DownloadTask.classbin3839 -> 3851 bytes
-rw-r--r--Dozentenmodul/bin/ftp/FTPUtility.classbin5153 -> 5211 bytes
-rw-r--r--Dozentenmodul/bin/ftp/UploadTask.classbin3378 -> 3378 bytes
-rw-r--r--Dozentenmodul/bin/gui/BillOfRights_GUI$1.classbin680 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/BillOfRights_GUI$3.classbin929 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/DeleteImage_GUI$1.classbin674 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/DeleteImage_GUI$3.classbin742 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/DeleteImage_GUI$5.classbin751 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/DeleteImage_GUI$7.classbin831 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/DeleteImage_GUI$8.classbin809 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/EditImageAllgemein_GUI$1.classbin716 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/EditImageAllgemein_GUI$2.classbin793 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/EditImageAllgemein_GUI$3.classbin833 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/EditImageAllgemein_GUI$4.classbin1368 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/EditImageAllgemein_GUI.classbin8976 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/EditImageTechnisch_GUI$1.classbin716 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/EditImageTechnisch_GUI$2.classbin793 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/EditImageTechnisch_GUI$3.classbin1623 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/EditImageTechnisch_GUI$4.classbin1611 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$1.classbin734 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$2.classbin811 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$3.classbin1125 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$4.classbin1586 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI.classbin7645 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI$1.classbin734 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI$2.classbin811 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI$3.classbin1639 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI$4.classbin1619 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI.classbin8391 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$1.classbin782 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$2.classbin859 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$3.classbin1382 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$4.classbin1775 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI.classbin7114 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$1.classbin782 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$2.classbin859 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$3.classbin2000 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$4.classbin1960 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI.classbin8100 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/ExtendedSearch_GUI$1.classbin692 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/ExtendedSearch_GUI$2.classbin833 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/ExtendedSearch_GUI$3.classbin813 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/FTPDownloader_GUI$1.classbin1266 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/FTPDownloader_GUI$2.classbin1211 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/FTPDownloader_GUI$3.classbin778 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/FTPDownloader_GUI$4.classbin1292 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/FTPDownloader_GUI.classbin9135 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/FTPEditUploader_GUI$1.classbin758 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/FTPEditUploader_GUI$2.classbin1217 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/FTPEditUploader_GUI$3.classbin1336 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/FTPEditUploader_GUI$4.classbin763 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/FTPEditUploader_GUI$6.classbin1599 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/FTPEditUploader_GUI.classbin10311 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/FTPUploader_GUI$1.classbin738 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/FTPUploader_GUI$2.classbin1193 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/FTPUploader_GUI$3.classbin1312 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/FTPUploader_GUI$4.classbin735 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/FTPUploader_GUI$5.classbin1449 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/FTPUploader_GUI$6.classbin1574 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/FTPUploader_GUI.classbin10530 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/LinkImage_GUI$1.classbin662 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/LinkImage_GUI$2.classbin1453 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/LinkImage_GUI$3.classbin730 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/LinkImage_GUI$4.classbin1478 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/LinkImage_GUI$5.classbin739 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/LinkImage_GUI$6.classbin781 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/LinkImage_GUI$7.classbin2402 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/LinkImage_GUI.classbin11187 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/Login_GUI$1.classbin1082 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/Login_GUI$2.classbin635 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/Login_GUI$3.classbin2392 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/Login_GUI.classbin3731 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/MainMenue_GUI$1.classbin662 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/MainMenue_GUI$2.classbin729 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/MainMenue_GUI$3.classbin740 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/MainMenue_GUI$4.classbin1644 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/MainMenue_GUI.classbin8058 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchEditImage_GUI$1.classbin698 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchEditImage_GUI$3.classbin766 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchEditImage_GUI$4.classbin1252 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchEditImage_GUI$5.classbin775 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchEditImage_GUI$6.classbin1340 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchEditImage_GUI$7.classbin855 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchEditImage_GUI$8.classbin817 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchEditImage_GUI$9.classbin1496 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchEditImage_GUI.classbin11684 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchImage_GUI$1.classbin674 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchImage_GUI$3.classbin742 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchImage_GUI$4.classbin1228 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchImage_GUI$5.classbin751 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchImage_GUI$6.classbin1316 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchImage_GUI$7.classbin831 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchImage_GUI$8.classbin793 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchImage_GUI$9.classbin809 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchImage_GUI.classbin11628 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchMethod_GUI$1.classbin680 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchMethod_GUI$2.classbin757 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchMethod_GUI$3.classbin797 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchMethod_GUI$4.classbin965 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchMethod_GUI.classbin6910 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/VmWareLink_GUI$1.classbin665 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/VmWareLink_GUI$2.classbin1126 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/VmWareLink_GUI$4.classbin785 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/VmWareLink_GUI.classbin5269 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/CreateImageAllgemein_GUI$1.classbin0 -> 1008 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/CreateImageAllgemein_GUI$2.classbin0 -> 847 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/CreateImageAllgemein_GUI$3.classbin0 -> 1166 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/CreateImageAllgemein_GUI$4.classbin0 -> 1656 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/CreateImageAllgemein_GUI.classbin0 -> 7800 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/CreateImageTechnisch_GUI$1.classbin0 -> 758 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/CreateImageTechnisch_GUI$2.classbin0 -> 847 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/CreateImageTechnisch_GUI$3.classbin0 -> 1673 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/CreateImageTechnisch_GUI$4.classbin0 -> 1667 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/CreateImageTechnisch_GUI.classbin0 -> 8788 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/DeleteImage_GUI$1.classbin0 -> 704 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/DeleteImage_GUI$2.class (renamed from Dozentenmodul/bin/gui/DeleteImage_GUI$2.class)bin1221 -> 1257 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/DeleteImage_GUI$3.classbin0 -> 806 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/DeleteImage_GUI$4.class (renamed from Dozentenmodul/bin/gui/DeleteImage_GUI$4.class)bin1228 -> 1258 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/DeleteImage_GUI$5.classbin0 -> 793 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/DeleteImage_GUI$6.class (renamed from Dozentenmodul/bin/gui/DeleteImage_GUI$6.class)bin1316 -> 1346 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/DeleteImage_GUI$7.classbin0 -> 832 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/DeleteImage_GUI$8.classbin0 -> 851 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/DeleteImage_GUI.class (renamed from Dozentenmodul/bin/gui/DeleteImage_GUI.class)bin11325 -> 11397 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/EditImageAllgemein_GUI$1.classbin0 -> 867 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/EditImageAllgemein_GUI$2.classbin0 -> 956 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/EditImageAllgemein_GUI$3.classbin0 -> 1008 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/EditImageAllgemein_GUI$4.classbin0 -> 1616 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/EditImageAllgemein_GUI.classbin0 -> 9112 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/EditImageTechnisch_GUI$1.classbin0 -> 746 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/EditImageTechnisch_GUI$2.classbin0 -> 835 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/EditImageTechnisch_GUI$3.classbin0 -> 1691 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/EditImageTechnisch_GUI$4.classbin0 -> 1685 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/EditImageTechnisch_GUI.class (renamed from Dozentenmodul/bin/gui/EditImageTechnisch_GUI.class)bin8389 -> 8511 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$1.classbin0 -> 792 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$2.classbin0 -> 1313 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$3.classbin0 -> 1446 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$4.classbin0 -> 1198 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$5.classbin0 -> 813 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$6.classbin0 -> 1707 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$7.classbin0 -> 1652 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$8.classbin0 -> 1014 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI.classbin0 -> 12312 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/FTPDownloader_GUI$1.classbin0 -> 1414 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/FTPDownloader_GUI$2.classbin0 -> 1303 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/FTPDownloader_GUI$3.classbin0 -> 1167 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/FTPDownloader_GUI$4.classbin0 -> 785 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/FTPDownloader_GUI$5.classbin0 -> 1557 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/FTPDownloader_GUI$6.classbin0 -> 972 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/FTPDownloader_GUI.classbin0 -> 9974 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/FTPEditUploader_GUI$1.classbin0 -> 782 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/FTPEditUploader_GUI$2.classbin0 -> 1301 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/FTPEditUploader_GUI$3.classbin0 -> 1434 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/FTPEditUploader_GUI$4.classbin0 -> 1186 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/FTPEditUploader_GUI$5.classbin0 -> 799 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/FTPEditUploader_GUI$6.class (renamed from Dozentenmodul/bin/gui/FTPEditUploader_GUI$5.class)bin1473 -> 1503 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/FTPEditUploader_GUI.classbin0 -> 11868 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/SearchEditImage_GUI$1.classbin0 -> 1094 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/SearchEditImage_GUI$2.class (renamed from Dozentenmodul/bin/gui/SearchEditImage_GUI$2.class)bin1249 -> 1301 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/SearchEditImage_GUI$3.classbin0 -> 951 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/SearchEditImage_GUI$4.classbin0 -> 1298 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/SearchEditImage_GUI$5.classbin0 -> 938 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/SearchEditImage_GUI$6.classbin0 -> 1771 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/SearchEditImage_GUI$7.classbin0 -> 1941 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/SearchEditImage_GUI$8.classbin0 -> 980 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/SearchEditImage_GUI$9.classbin0 -> 2177 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/SearchEditImage_GUI.classbin0 -> 11743 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/SearchImage_GUI$1.classbin0 -> 704 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/SearchImage_GUI$2.class (renamed from Dozentenmodul/bin/gui/SearchImage_GUI$2.class)bin1221 -> 1273 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/SearchImage_GUI$3.classbin0 -> 806 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/SearchImage_GUI$4.classbin0 -> 1274 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/SearchImage_GUI$5.classbin0 -> 793 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/SearchImage_GUI$6.classbin0 -> 1354 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/SearchImage_GUI$7.classbin0 -> 832 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/SearchImage_GUI$8.classbin0 -> 835 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/SearchImage_GUI$9.classbin0 -> 972 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/SearchImage_GUI.class (renamed from Dozentenmodul/bin/GUI/SearchImage_GUI.class)bin11628 -> 11812 bytes
-rw-r--r--Dozentenmodul/bin/gui/intro/BillOfRights_GUI$1.classbin0 -> 710 bytes
-rw-r--r--Dozentenmodul/bin/gui/intro/BillOfRights_GUI$2.class (renamed from Dozentenmodul/bin/gui/BillOfRights_GUI$2.class)bin1794 -> 1836 bytes
-rw-r--r--Dozentenmodul/bin/gui/intro/BillOfRights_GUI$3.classbin0 -> 959 bytes
-rw-r--r--Dozentenmodul/bin/gui/intro/BillOfRights_GUI.class (renamed from Dozentenmodul/bin/gui/BillOfRights_GUI.class)bin10791 -> 10827 bytes
-rw-r--r--Dozentenmodul/bin/gui/intro/Login_GUI$1.classbin0 -> 1106 bytes
-rw-r--r--Dozentenmodul/bin/gui/intro/Login_GUI$2.classbin0 -> 665 bytes
-rw-r--r--Dozentenmodul/bin/gui/intro/Login_GUI$3.classbin0 -> 677 bytes
-rw-r--r--Dozentenmodul/bin/gui/intro/Login_GUI$4.classbin0 -> 677 bytes
-rw-r--r--Dozentenmodul/bin/gui/intro/Login_GUI$5.classbin0 -> 674 bytes
-rw-r--r--Dozentenmodul/bin/gui/intro/Login_GUI.classbin0 -> 8052 bytes
-rw-r--r--Dozentenmodul/bin/gui/intro/MainMenue_GUI$1.classbin0 -> 692 bytes
-rw-r--r--Dozentenmodul/bin/gui/intro/MainMenue_GUI$10.classbin0 -> 1928 bytes
-rw-r--r--Dozentenmodul/bin/gui/intro/MainMenue_GUI$2.classbin0 -> 1088 bytes
-rw-r--r--Dozentenmodul/bin/gui/intro/MainMenue_GUI$3.classbin0 -> 1006 bytes
-rw-r--r--Dozentenmodul/bin/gui/intro/MainMenue_GUI$4.classbin0 -> 977 bytes
-rw-r--r--Dozentenmodul/bin/gui/intro/MainMenue_GUI$5.classbin0 -> 1068 bytes
-rw-r--r--Dozentenmodul/bin/gui/intro/MainMenue_GUI$6.classbin0 -> 1083 bytes
-rw-r--r--Dozentenmodul/bin/gui/intro/MainMenue_GUI$7.classbin0 -> 974 bytes
-rw-r--r--Dozentenmodul/bin/gui/intro/MainMenue_GUI$8.classbin0 -> 821 bytes
-rw-r--r--Dozentenmodul/bin/gui/intro/MainMenue_GUI$9.classbin0 -> 1096 bytes
-rw-r--r--Dozentenmodul/bin/gui/intro/MainMenue_GUI.classbin0 -> 10295 bytes
-rw-r--r--Dozentenmodul/bin/gui/intro/VmWareLink_GUI$1.classbin0 -> 695 bytes
-rw-r--r--Dozentenmodul/bin/gui/intro/VmWareLink_GUI$2.classbin0 -> 1156 bytes
-rw-r--r--Dozentenmodul/bin/gui/intro/VmWareLink_GUI$3.class (renamed from Dozentenmodul/bin/gui/VmWareLink_GUI$3.class)bin1767 -> 1797 bytes
-rw-r--r--Dozentenmodul/bin/gui/intro/VmWareLink_GUI$4.classbin0 -> 827 bytes
-rw-r--r--Dozentenmodul/bin/gui/intro/VmWareLink_GUI.class (renamed from Dozentenmodul/bin/GUI/VmWareLink_GUI.class)bin5269 -> 5311 bytes
-rw-r--r--Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI$1.classbin0 -> 1034 bytes
-rw-r--r--Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI$2.classbin0 -> 869 bytes
-rw-r--r--Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI$3.classbin0 -> 926 bytes
-rw-r--r--Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI$4.classbin0 -> 923 bytes
-rw-r--r--Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI$5.classbin0 -> 1922 bytes
-rw-r--r--Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI$6.classbin0 -> 3105 bytes
-rw-r--r--Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI.classbin0 -> 10794 bytes
-rw-r--r--Dozentenmodul/bin/gui/lecture/EditLectureAllgemein_GUI$1.classbin0 -> 768 bytes
-rw-r--r--Dozentenmodul/bin/gui/lecture/EditLectureAllgemein_GUI$2.classbin0 -> 857 bytes
-rw-r--r--Dozentenmodul/bin/gui/lecture/EditLectureAllgemein_GUI$3.classbin0 -> 1892 bytes
-rw-r--r--Dozentenmodul/bin/gui/lecture/EditLectureAllgemein_GUI$4.classbin0 -> 1951 bytes
-rw-r--r--Dozentenmodul/bin/gui/lecture/EditLectureAllgemein_GUI.classbin0 -> 9977 bytes
-rw-r--r--Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI$1.classbin0 -> 786 bytes
-rw-r--r--Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI$2.classbin0 -> 937 bytes
-rw-r--r--Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI$3.classbin0 -> 931 bytes
-rw-r--r--Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI.class (renamed from Dozentenmodul/bin/gui/ExtendedSearch_GUI.class)bin6375 -> 6486 bytes
-rw-r--r--Dozentenmodul/bin/gui/lecture/SearchMethodLecture_GUI$1.classbin0 -> 762 bytes
-rw-r--r--Dozentenmodul/bin/gui/lecture/SearchMethodLecture_GUI$2.classbin0 -> 851 bytes
-rw-r--r--Dozentenmodul/bin/gui/lecture/SearchMethodLecture_GUI$3.classbin0 -> 891 bytes
-rw-r--r--Dozentenmodul/bin/gui/lecture/SearchMethodLecture_GUI$4.classbin0 -> 1059 bytes
-rw-r--r--Dozentenmodul/bin/gui/lecture/SearchMethodLecture_GUI.class (renamed from Dozentenmodul/bin/GUI/SearchMethod_GUI.class)bin6910 -> 7022 bytes
-rw-r--r--Dozentenmodul/bin/models/Image.classbin1587 -> 1979 bytes
-rw-r--r--Dozentenmodul/bin/models/Lecture.classbin1644 -> 2226 bytes
-rw-r--r--Dozentenmodul/bin/models/SessionData.classbin0 -> 1041 bytes
-rw-r--r--Dozentenmodul/bin/models/person.classbin1882 -> 2127 bytes
-rw-r--r--Dozentenmodul/bin/models/vm.classbin2060 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/org.eclipse.core.resources.prefs2
-rw-r--r--Dozentenmodul/bin/thrift/AuthenticationError.classbin0 -> 1583 bytes
-rw-r--r--Dozentenmodul/bin/thrift/AuthenticationException$AuthenticationExceptionStandardScheme.classbin0 -> 2988 bytes
-rw-r--r--Dozentenmodul/bin/thrift/AuthenticationException$AuthenticationExceptionStandardSchemeFactory.classbin0 -> 1157 bytes
-rw-r--r--Dozentenmodul/bin/thrift/AuthenticationException$AuthenticationExceptionTupleScheme.classbin0 -> 2442 bytes
-rw-r--r--Dozentenmodul/bin/thrift/AuthenticationException$AuthenticationExceptionTupleSchemeFactory.classbin0 -> 1133 bytes
-rw-r--r--Dozentenmodul/bin/thrift/AuthenticationException$_Fields.classbin0 -> 3046 bytes
-rw-r--r--Dozentenmodul/bin/thrift/AuthenticationException.classbin0 -> 11125 bytes
-rw-r--r--Dozentenmodul/bin/thrift/AuthorizationError.classbin0 -> 1494 bytes
-rw-r--r--Dozentenmodul/bin/thrift/AuthorizationException$AuthorizationExceptionStandardScheme.classbin0 -> 2973 bytes
-rw-r--r--Dozentenmodul/bin/thrift/AuthorizationException$AuthorizationExceptionStandardSchemeFactory.classbin0 -> 1141 bytes
-rw-r--r--Dozentenmodul/bin/thrift/AuthorizationException$AuthorizationExceptionTupleScheme.classbin0 -> 2427 bytes
-rw-r--r--Dozentenmodul/bin/thrift/AuthorizationException$AuthorizationExceptionTupleSchemeFactory.classbin0 -> 1117 bytes
-rw-r--r--Dozentenmodul/bin/thrift/AuthorizationException$_Fields.classbin0 -> 3036 bytes
-rw-r--r--Dozentenmodul/bin/thrift/AuthorizationException.classbin0 -> 11081 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$AsyncClient$Factory.classbin0 -> 1477 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$AsyncClient$authenticate_call.classbin0 -> 3336 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$AsyncClient$getUserFromToken_call.classbin0 -> 3257 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$AsyncClient$ping_call.classbin0 -> 2925 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$AsyncClient.classbin0 -> 3081 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$AsyncIface.classbin0 -> 538 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$authenticate$1.classbin0 -> 3150 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$authenticate.classbin0 -> 3247 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$getUserFromToken$1.classbin0 -> 3170 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$getUserFromToken.classbin0 -> 3241 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$ping$1.classbin0 -> 2953 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$ping.classbin0 -> 3032 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor.classbin0 -> 2446 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$Client$Factory.classbin0 -> 1451 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$Client.classbin0 -> 3970 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$Iface.classbin0 -> 502 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$Processor$authenticate.classbin0 -> 2329 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$Processor$getUserFromToken.classbin0 -> 2337 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$Processor$ping.classbin0 -> 1919 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$Processor.classbin0 -> 2324 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$authenticate_args$_Fields.classbin0 -> 3142 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$authenticate_args$authenticate_argsStandardScheme.classbin0 -> 2850 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$authenticate_args$authenticate_argsStandardSchemeFactory.classbin0 -> 1191 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$authenticate_args$authenticate_argsTupleScheme.classbin0 -> 2314 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$authenticate_args$authenticate_argsTupleSchemeFactory.classbin0 -> 1167 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$authenticate_args.classbin0 -> 10868 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$authenticate_result$_Fields.classbin0 -> 3158 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$authenticate_result$authenticate_resultStandardScheme.classbin0 -> 2987 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$authenticate_result$authenticate_resultStandardSchemeFactory.classbin0 -> 1223 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$authenticate_result$authenticate_resultTupleScheme.classbin0 -> 2449 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$authenticate_result$authenticate_resultTupleSchemeFactory.classbin0 -> 1199 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$authenticate_result.classbin0 -> 11542 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args$_Fields.classbin0 -> 3091 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args$getUserFromToken_argsStandardScheme.classbin0 -> 2711 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args$getUserFromToken_argsStandardSchemeFactory.classbin0 -> 1255 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args$getUserFromToken_argsTupleScheme.classbin0 -> 2196 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args$getUserFromToken_argsTupleSchemeFactory.classbin0 -> 1231 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args.classbin0 -> 9748 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result$_Fields.classbin0 -> 3198 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result$getUserFromToken_resultStandardScheme.classbin0 -> 3025 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result$getUserFromToken_resultStandardSchemeFactory.classbin0 -> 1287 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result$getUserFromToken_resultTupleScheme.classbin0 -> 2487 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result$getUserFromToken_resultTupleSchemeFactory.classbin0 -> 1263 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result.classbin0 -> 11659 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$ping_args$_Fields.class (renamed from Dozentenmodulserver/bin/server/Server$getImages_args$_Fields.class)bin2858 -> 2863 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$ping_args$ping_argsStandardScheme.classbin0 -> 2150 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$ping_args$ping_argsStandardSchemeFactory.classbin0 -> 1063 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$ping_args$ping_argsTupleScheme.classbin0 -> 1460 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$ping_args$ping_argsTupleSchemeFactory.classbin0 -> 1039 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$ping_args.class (renamed from Dozentenmodulserver/bin/server/Server$getImages_args.class)bin7364 -> 7314 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$ping_result$_Fields.class (renamed from Dozentenmodulserver/bin/server/Server$getImages_result$_Fields.class)bin2990 -> 2995 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$ping_result$ping_resultStandardScheme.classbin0 -> 2557 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$ping_result$ping_resultStandardSchemeFactory.classbin0 -> 1095 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$ping_result$ping_resultTupleScheme.classbin0 -> 2014 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$ping_result$ping_resultTupleSchemeFactory.classbin0 -> 1071 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer$ping_result.classbin0 -> 9526 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ImageServer.classbin0 -> 1037 bytes
-rw-r--r--Dozentenmodul/bin/thrift/InvalidTokenException$InvalidTokenExceptionStandardScheme.classbin0 -> 2164 bytes
-rw-r--r--Dozentenmodul/bin/thrift/InvalidTokenException$InvalidTokenExceptionStandardSchemeFactory.classbin0 -> 1125 bytes
-rw-r--r--Dozentenmodul/bin/thrift/InvalidTokenException$InvalidTokenExceptionTupleScheme.classbin0 -> 1474 bytes
-rw-r--r--Dozentenmodul/bin/thrift/InvalidTokenException$InvalidTokenExceptionTupleSchemeFactory.classbin0 -> 1101 bytes
-rw-r--r--Dozentenmodul/bin/thrift/InvalidTokenException$_Fields.classbin0 -> 2829 bytes
-rw-r--r--Dozentenmodul/bin/thrift/InvalidTokenException.classbin0 -> 7448 bytes
-rw-r--r--Dozentenmodul/bin/thrift/MasterThriftConnection.classbin0 -> 1576 bytes
-rw-r--r--Dozentenmodul/bin/thrift/SessionData$SessionDataStandardScheme.classbin0 -> 2843 bytes
-rw-r--r--Dozentenmodul/bin/thrift/SessionData$SessionDataStandardSchemeFactory.classbin0 -> 965 bytes
-rw-r--r--Dozentenmodul/bin/thrift/SessionData$SessionDataTupleScheme.classbin0 -> 2290 bytes
-rw-r--r--Dozentenmodul/bin/thrift/SessionData$SessionDataTupleSchemeFactory.classbin0 -> 941 bytes
-rw-r--r--Dozentenmodul/bin/thrift/SessionData$_Fields.classbin0 -> 3030 bytes
-rw-r--r--Dozentenmodul/bin/thrift/SessionData.classbin0 -> 11687 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ThriftConnection.classbin1528 -> 1590 bytes
-rw-r--r--Dozentenmodul/bin/thrift/UserInfo$UserInfoStandardScheme.classbin0 -> 2967 bytes
-rw-r--r--Dozentenmodul/bin/thrift/UserInfo$UserInfoStandardSchemeFactory.classbin0 -> 917 bytes
-rw-r--r--Dozentenmodul/bin/thrift/UserInfo$UserInfoTupleScheme.classbin0 -> 2378 bytes
-rw-r--r--Dozentenmodul/bin/thrift/UserInfo$UserInfoTupleSchemeFactory.classbin0 -> 893 bytes
-rw-r--r--Dozentenmodul/bin/thrift/UserInfo$_Fields.classbin0 -> 3064 bytes
-rw-r--r--Dozentenmodul/bin/thrift/UserInfo.classbin0 -> 12630 bytes
-rw-r--r--Dozentenmodul/bin/thrift/communicate.thrift0
-rw-r--r--Dozentenmodul/img/Image_zu_Veranstaltung_HDD.pngbin0 -> 34300 bytes
-rw-r--r--Dozentenmodul/lib/slf4j-simple-1.7.6.jarbin0 -> 10684 bytes
-rw-r--r--Dozentenmodul/src/GUI/EingabeImageAllgemein_GUI.java295
-rw-r--r--Dozentenmodul/src/GUI/EingabeImageTechnisch_GUI.java346
-rw-r--r--Dozentenmodul/src/GUI/EingabeVeranstatlungTechnisch_GUI.java328
-rw-r--r--Dozentenmodul/src/GUI/FTPDownloader_GUI.java348
-rw-r--r--Dozentenmodul/src/GUI/FTPUploader_GUI.java418
-rw-r--r--Dozentenmodul/src/GUI/Login_GUI.java203
-rw-r--r--Dozentenmodul/src/GUI/MainMenue_GUI.java338
-rw-r--r--Dozentenmodul/src/GUI/SearchImage_GUI.java9
-rw-r--r--Dozentenmodul/src/Models/Image.java15
-rw-r--r--Dozentenmodul/src/Models/Lecture.java28
-rw-r--r--Dozentenmodul/src/Models/person.java15
-rw-r--r--Dozentenmodul/src/Models/vm.java69
-rw-r--r--Dozentenmodul/src/auth/Authentification.java7
-rw-r--r--Dozentenmodul/src/ftp/DownloadTask.java2
-rw-r--r--Dozentenmodul/src/ftp/FTPUtility.java10
-rw-r--r--Dozentenmodul/src/ftp/UploadTask.java3
-rw-r--r--Dozentenmodul/src/gui/BillOfRights_GUI.java192
-rw-r--r--Dozentenmodul/src/gui/EditImageAllgemein_GUI.java325
-rw-r--r--Dozentenmodul/src/gui/EditImageTechnisch_GUI.java364
-rw-r--r--Dozentenmodul/src/gui/EingabeVeranstaltungAllgemein_GUI.java289
-rw-r--r--Dozentenmodul/src/gui/EingabeVeranstatlungTechnisch_GUI.java328
-rw-r--r--Dozentenmodul/src/gui/ExtendedSearch_GUI.java233
-rw-r--r--Dozentenmodul/src/gui/FTPDownloader_GUI.java348
-rw-r--r--Dozentenmodul/src/gui/FTPEditUploader_GUI.java420
-rw-r--r--Dozentenmodul/src/gui/FTPUploader_GUI.java418
-rw-r--r--Dozentenmodul/src/gui/Login_GUI.java203
-rw-r--r--Dozentenmodul/src/gui/MainMenue_GUI.java338
-rw-r--r--Dozentenmodul/src/gui/SearchImage_GUI.java9
-rw-r--r--Dozentenmodul/src/gui/SearchMethod_GUI.java243
-rw-r--r--Dozentenmodul/src/gui/VmWareLink_GUI.java215
-rw-r--r--Dozentenmodul/src/gui/image/CreateImageAllgemein_GUI.java (renamed from Dozentenmodul/src/gui/EingabeImageAllgemein_GUI.java)51
-rw-r--r--Dozentenmodul/src/gui/image/CreateImageTechnisch_GUI.java (renamed from Dozentenmodul/src/gui/EingabeImageTechnisch_GUI.java)212
-rw-r--r--Dozentenmodul/src/gui/image/DeleteImage_GUI.java (renamed from Dozentenmodul/src/gui/DeleteImage_GUI.java)9
-rw-r--r--Dozentenmodul/src/gui/image/EditImageAllgemein_GUI.java (renamed from Dozentenmodul/src/GUI/EditImageAllgemein_GUI.java)101
-rw-r--r--Dozentenmodul/src/gui/image/EditImageTechnisch_GUI.java (renamed from Dozentenmodul/src/GUI/EditImageTechnisch_GUI.java)215
-rw-r--r--Dozentenmodul/src/gui/image/FTPCreateUploader_GUI.java493
-rw-r--r--Dozentenmodul/src/gui/image/FTPDownloader_GUI.java400
-rw-r--r--Dozentenmodul/src/gui/image/FTPEditUploader_GUI.java475
-rw-r--r--Dozentenmodul/src/gui/image/SearchEditImage_GUI.java520
-rw-r--r--Dozentenmodul/src/gui/image/SearchImage_GUI.java (renamed from Dozentenmodul/src/gui/SearchEditImage_GUI.java)309
-rw-r--r--Dozentenmodul/src/gui/intro/BillOfRights_GUI.java (renamed from Dozentenmodul/src/GUI/BillOfRights_GUI.java)3
-rw-r--r--Dozentenmodul/src/gui/intro/Login_GUI.java261
-rw-r--r--Dozentenmodul/src/gui/intro/MainMenue_GUI.java405
-rw-r--r--Dozentenmodul/src/gui/intro/VmWareLink_GUI.java (renamed from Dozentenmodul/src/GUI/VmWareLink_GUI.java)3
-rw-r--r--Dozentenmodul/src/gui/lecture/CreateLectureAllgemein_GUI.java507
-rw-r--r--Dozentenmodul/src/gui/lecture/CreateLectureLink_GUI.java (renamed from Dozentenmodul/src/gui/LinkImage_GUI.java)357
-rw-r--r--Dozentenmodul/src/gui/lecture/EditLectureAllgemein_GUI.java (renamed from Dozentenmodul/src/GUI/EingabeVeranstaltungAllgemein_GUI.java)199
-rw-r--r--Dozentenmodul/src/gui/lecture/EditLectureLink_GUI.java (renamed from Dozentenmodul/src/GUI/LinkImage_GUI.java)333
-rw-r--r--Dozentenmodul/src/gui/lecture/EditLectureSearch_GUI.java529
-rw-r--r--Dozentenmodul/src/gui/lecture/ExtendedSearchForImages_GUI.java (renamed from Dozentenmodul/src/GUI/ExtendedSearch_GUI.java)16
-rw-r--r--Dozentenmodul/src/gui/lecture/SearchMethodLecture_GUI.java (renamed from Dozentenmodul/src/GUI/SearchMethod_GUI.java)13
-rw-r--r--Dozentenmodul/src/models/Image.java15
-rw-r--r--Dozentenmodul/src/models/Lecture.java28
-rw-r--r--Dozentenmodul/src/models/SessionData.java28
-rw-r--r--Dozentenmodul/src/models/person.java15
-rw-r--r--Dozentenmodul/src/models/vm.java69
-rw-r--r--Dozentenmodul/src/thrift/AuthenticationError.java51
-rw-r--r--Dozentenmodul/src/thrift/AuthenticationException.java504
-rw-r--r--Dozentenmodul/src/thrift/AuthorizationError.java48
-rw-r--r--Dozentenmodul/src/thrift/AuthorizationException.java504
-rw-r--r--Dozentenmodul/src/thrift/ImageServer.java2871
-rw-r--r--Dozentenmodul/src/thrift/InvalidTokenException.java280
-rw-r--r--Dozentenmodul/src/thrift/MasterThriftConnection.java38
-rw-r--r--Dozentenmodul/src/thrift/SessionData.java588
-rw-r--r--Dozentenmodul/src/thrift/ThriftConnection.java6
-rw-r--r--Dozentenmodul/src/thrift/UserInfo.java688
-rw-r--r--Dozentenmodul/src/thrift/communicate.thrift0
-rw-r--r--Dozentenmodulserver/bin/server/BinaryListener.classbin2110 -> 2456 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Image$ImageStandardScheme.classbin3331 -> 3676 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Image$ImageStandardSchemeFactory.classbin869 -> 869 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Image$ImageTupleScheme.classbin2712 -> 3009 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Image$ImageTupleSchemeFactory.classbin845 -> 845 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Image$_Fields.classbin3248 -> 3410 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Image.classbin15192 -> 17587 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Lecture$LectureStandardScheme.classbin0 -> 3856 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Lecture$LectureStandardSchemeFactory.classbin0 -> 901 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Lecture$LectureTupleScheme.classbin0 -> 3153 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Lecture$LectureTupleSchemeFactory.classbin0 -> 877 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Lecture$_Fields.classbin0 -> 3487 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Lecture.classbin0 -> 18746 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncClient$DeleteFtpUser_call.classbin3131 -> 3131 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncClient$Factory.classbin1442 -> 1442 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncClient$getAllOS_call.classbin2993 -> 2993 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncClient$getFtpUser_call.classbin2945 -> 2945 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncClient$getImageData_call.classbin3224 -> 3332 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncClient$getImageList_call.classbin3021 -> 3021 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncClient$getLectureData_call.classbin0 -> 3246 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncClient$getLectureList_call.class (renamed from Dozentenmodulserver/bin/server/Server$AsyncClient$getImages_call.class)bin3001 -> 3039 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncClient$getPathOfImage_call.classbin3157 -> 3267 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncClient$getPersonData_call.classbin3333 -> 3333 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncClient$startFileCopy_call.classbin3131 -> 3131 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncClient$updateImageData_call.classbin3669 -> 3863 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncClient$writeLecturedata_call.classbin4410 -> 4410 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncClient$writeVLdata_call.classbin4135 -> 4241 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncClient.classbin7667 -> 9469 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncIface.classbin1366 -> 1802 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$DeleteFtpUser$1.classbin2969 -> 2969 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$DeleteFtpUser.classbin3107 -> 3107 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$getAllOS$1.classbin2997 -> 2997 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$getAllOS.classbin3062 -> 3062 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$getFtpUser$1.classbin2851 -> 2851 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$getFtpUser.classbin2996 -> 2996 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImageData$1.classbin3081 -> 3081 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImageData.classbin3247 -> 3292 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImageList$1.classbin3021 -> 3021 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImageList.classbin3098 -> 3098 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImages$1.classbin3006 -> 0 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImages.classbin3075 -> 0 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$getLectureData$1.classbin0 -> 3099 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$getLectureData.classbin0 -> 3275 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$getLectureList$1.classbin0 -> 3045 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$getLectureList.classbin0 -> 3132 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$getPathOfImage$1.classbin2907 -> 2907 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$getPathOfImage.classbin3128 -> 3174 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$getPersonData$1.classbin3090 -> 3090 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$getPersonData.classbin3301 -> 3301 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$startFileCopy$1.classbin2984 -> 2984 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$startFileCopy.classbin3119 -> 3119 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$updateImageData$1.classbin3002 -> 3002 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$updateImageData.classbin3288 -> 3367 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$writeLecturedata$1.classbin3011 -> 3011 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$writeLecturedata.classbin3648 -> 3648 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$writeVLdata$1.classbin2966 -> 2966 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$writeVLdata.classbin3446 -> 3490 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor.classbin3270 -> 3490 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$Client$Factory.classbin1411 -> 1411 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$Client.classbin13500 -> 16916 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args$DeleteFtpUser_argsStandardScheme.classbin2628 -> 2628 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args$DeleteFtpUser_argsStandardSchemeFactory.classbin1162 -> 1162 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args$DeleteFtpUser_argsTupleScheme.classbin2112 -> 2112 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args$DeleteFtpUser_argsTupleSchemeFactory.classbin1138 -> 1138 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args$_Fields.classbin3004 -> 3004 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args.classbin9460 -> 9460 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result$DeleteFtpUser_resultStandardScheme.classbin2632 -> 2632 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result$DeleteFtpUser_resultStandardSchemeFactory.classbin1194 -> 1194 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result$DeleteFtpUser_resultTupleScheme.classbin2088 -> 2088 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result$DeleteFtpUser_resultTupleSchemeFactory.classbin1170 -> 1170 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result$_Fields.classbin3030 -> 3030 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result.classbin9823 -> 9823 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$Iface.classbin1536 -> 1992 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$Processor$DeleteFtpUser.classbin2029 -> 2029 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$Processor$getAllOS.classbin1875 -> 1875 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$Processor$getFtpUser.classbin1901 -> 1901 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$Processor$getImageData.classbin2002 -> 2047 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$Processor$getImageList.classbin1939 -> 1939 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$Processor$getImages.classbin1891 -> 0 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$Processor$getLectureData.classbin0 -> 2036 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$Processor$getLectureList.classbin0 -> 1971 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$Processor$getPathOfImage.classbin2014 -> 2060 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$Processor$getPersonData.classbin2059 -> 2059 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$Processor$startFileCopy.classbin2029 -> 2029 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$Processor$updateImageData.classbin2200 -> 2279 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$Processor$writeLecturedata.classbin2563 -> 2563 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$Processor$writeVLdata.classbin2346 -> 2390 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$Processor.classbin3103 -> 3313 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getAllOS_args$_Fields.classbin2848 -> 2848 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getAllOS_args$getAllOS_argsStandardScheme.classbin2153 -> 2153 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getAllOS_args$getAllOS_argsStandardSchemeFactory.classbin1082 -> 1082 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getAllOS_args$getAllOS_argsTupleScheme.classbin1463 -> 1463 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getAllOS_args$getAllOS_argsTupleSchemeFactory.classbin1058 -> 1058 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getAllOS_args.classbin7328 -> 7328 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getAllOS_result$_Fields.classbin2980 -> 2980 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getAllOS_result$getAllOS_resultStandardScheme.classbin3464 -> 3464 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getAllOS_result$getAllOS_resultStandardSchemeFactory.classbin1114 -> 1114 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getAllOS_result$getAllOS_resultTupleScheme.classbin2849 -> 2849 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getAllOS_result$getAllOS_resultTupleSchemeFactory.classbin1090 -> 1090 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getAllOS_result.classbin10548 -> 10548 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getFtpUser_args$_Fields.classbin2868 -> 2868 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getFtpUser_args$getFtpUser_argsStandardScheme.classbin2177 -> 2177 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getFtpUser_args$getFtpUser_argsStandardSchemeFactory.classbin1114 -> 1114 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getFtpUser_args$getFtpUser_argsTupleScheme.classbin1487 -> 1487 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getFtpUser_args$getFtpUser_argsTupleSchemeFactory.classbin1090 -> 1090 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getFtpUser_args.classbin7400 -> 7400 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getFtpUser_result$_Fields.classbin3000 -> 3000 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getFtpUser_result$getFtpUser_resultStandardScheme.classbin2624 -> 2624 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getFtpUser_result$getFtpUser_resultStandardSchemeFactory.classbin1146 -> 1146 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getFtpUser_result$getFtpUser_resultTupleScheme.classbin2111 -> 2111 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getFtpUser_result$getFtpUser_resultTupleSchemeFactory.classbin1122 -> 1122 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getFtpUser_result.classbin9665 -> 9665 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageData_args$_Fields.classbin3004 -> 3094 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageData_args$getImageData_argsStandardScheme.classbin2626 -> 2811 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageData_args$getImageData_argsStandardSchemeFactory.classbin1146 -> 1146 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageData_args$getImageData_argsTupleScheme.classbin2115 -> 2278 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageData_args$getImageData_argsTupleSchemeFactory.classbin1122 -> 1122 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageData_args.classbin9478 -> 10767 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageData_result$_Fields.classbin3020 -> 3020 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageData_result$getImageData_resultStandardScheme.classbin3869 -> 3869 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageData_result$getImageData_resultStandardSchemeFactory.classbin1178 -> 1178 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageData_result$getImageData_resultTupleScheme.classbin3261 -> 3261 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageData_result$getImageData_resultTupleSchemeFactory.classbin1154 -> 1154 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageData_result.classbin10534 -> 10534 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageList_args$_Fields.classbin2888 -> 2888 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageList_args$getImageList_argsStandardScheme.classbin2201 -> 2201 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageList_args$getImageList_argsStandardSchemeFactory.classbin1146 -> 1146 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageList_args$getImageList_argsTupleScheme.classbin1511 -> 1511 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageList_args$getImageList_argsTupleSchemeFactory.classbin1122 -> 1122 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageList_args.classbin7472 -> 7472 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageList_result$_Fields.classbin3020 -> 3020 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageList_result$getImageList_resultStandardScheme.classbin3490 -> 3488 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageList_result$getImageList_resultStandardSchemeFactory.classbin1178 -> 1178 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageList_result$getImageList_resultTupleScheme.classbin2877 -> 2873 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageList_result$getImageList_resultTupleSchemeFactory.classbin1154 -> 1154 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageList_result.classbin10892 -> 10892 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImages_args$getImages_argsStandardScheme.classbin2165 -> 0 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImages_args$getImages_argsStandardSchemeFactory.classbin1098 -> 0 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImages_args$getImages_argsTupleScheme.classbin1475 -> 0 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImages_args$getImages_argsTupleSchemeFactory.classbin1074 -> 0 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImages_result$getImages_resultStandardScheme.classbin3472 -> 0 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImages_result$getImages_resultStandardSchemeFactory.classbin1130 -> 0 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImages_result$getImages_resultTupleScheme.classbin2857 -> 0 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImages_result$getImages_resultTupleSchemeFactory.classbin1106 -> 0 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImages_result.classbin10586 -> 0 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getLectureData_args$_Fields.classbin0 -> 3028 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getLectureData_args$getLectureData_argsStandardScheme.classbin0 -> 2654 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getLectureData_args$getLectureData_argsStandardSchemeFactory.classbin0 -> 1178 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getLectureData_args$getLectureData_argsTupleScheme.classbin0 -> 2145 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getLectureData_args$getLectureData_argsTupleSchemeFactory.classbin0 -> 1154 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getLectureData_args.classbin0 -> 9574 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getLectureData_result$_Fields.classbin0 -> 3040 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getLectureData_result$getLectureData_resultStandardScheme.classbin0 -> 3893 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getLectureData_result$getLectureData_resultStandardSchemeFactory.classbin0 -> 1210 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getLectureData_result$getLectureData_resultTupleScheme.classbin0 -> 3285 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getLectureData_result$getLectureData_resultTupleSchemeFactory.classbin0 -> 1186 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getLectureData_result.classbin0 -> 10610 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getLectureList_args$_Fields.classbin0 -> 2908 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getLectureList_args$getLectureList_argsStandardScheme.classbin0 -> 2225 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getLectureList_args$getLectureList_argsStandardSchemeFactory.classbin0 -> 1178 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getLectureList_args$getLectureList_argsTupleScheme.classbin0 -> 1535 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getLectureList_args$getLectureList_argsTupleSchemeFactory.classbin0 -> 1154 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getLectureList_args.classbin0 -> 7544 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getLectureList_result$_Fields.classbin0 -> 3040 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getLectureList_result$getLectureList_resultStandardScheme.classbin0 -> 3518 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getLectureList_result$getLectureList_resultStandardSchemeFactory.classbin0 -> 1210 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getLectureList_result$getLectureList_resultTupleScheme.classbin0 -> 2905 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getLectureList_result$getLectureList_resultTupleSchemeFactory.classbin0 -> 1186 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getLectureList_result.classbin0 -> 10984 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPathOfImage_args$_Fields.classbin3007 -> 3106 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPathOfImage_args$getPathOfImage_argsStandardScheme.classbin2640 -> 2827 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPathOfImage_args$getPathOfImage_argsStandardSchemeFactory.classbin1178 -> 1178 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPathOfImage_args$getPathOfImage_argsTupleScheme.classbin2124 -> 2290 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPathOfImage_args$getPathOfImage_argsTupleSchemeFactory.classbin1154 -> 1154 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPathOfImage_args.classbin9481 -> 10797 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPathOfImage_result$_Fields.classbin3040 -> 3040 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPathOfImage_result$getPathOfImage_resultStandardScheme.classbin2670 -> 2670 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPathOfImage_result$getPathOfImage_resultStandardSchemeFactory.classbin1210 -> 1210 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPathOfImage_result$getPathOfImage_resultTupleScheme.classbin2157 -> 2157 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPathOfImage_result$getPathOfImage_resultTupleSchemeFactory.classbin1186 -> 1186 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPathOfImage_result.classbin9604 -> 9604 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPersonData_args$_Fields.classbin3096 -> 3096 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPersonData_args$getPersonData_argsStandardScheme.classbin2815 -> 2815 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPersonData_args$getPersonData_argsStandardSchemeFactory.classbin1162 -> 1162 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPersonData_args$getPersonData_argsTupleScheme.classbin2278 -> 2278 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPersonData_args$getPersonData_argsTupleSchemeFactory.classbin1138 -> 1138 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPersonData_args.classbin10760 -> 10760 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPersonData_result$_Fields.classbin3030 -> 3030 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPersonData_result$getPersonData_resultStandardScheme.classbin3881 -> 3881 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPersonData_result$getPersonData_resultStandardSchemeFactory.classbin1194 -> 1194 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPersonData_result$getPersonData_resultTupleScheme.classbin3273 -> 3273 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPersonData_result$getPersonData_resultTupleSchemeFactory.classbin1170 -> 1170 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPersonData_result.classbin10572 -> 10572 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$startFileCopy_args$_Fields.classbin3004 -> 3004 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$startFileCopy_args$startFileCopy_argsStandardScheme.classbin2628 -> 2628 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$startFileCopy_args$startFileCopy_argsStandardSchemeFactory.classbin1162 -> 1162 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$startFileCopy_args$startFileCopy_argsTupleScheme.classbin2112 -> 2112 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$startFileCopy_args$startFileCopy_argsTupleSchemeFactory.classbin1138 -> 1138 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$startFileCopy_args.classbin9460 -> 9460 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$startFileCopy_result$_Fields.classbin3030 -> 3030 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$startFileCopy_result$startFileCopy_resultStandardScheme.classbin2620 -> 2620 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$startFileCopy_result$startFileCopy_resultStandardSchemeFactory.classbin1194 -> 1194 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$startFileCopy_result$startFileCopy_resultTupleScheme.classbin2077 -> 2077 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$startFileCopy_result$startFileCopy_resultTupleSchemeFactory.classbin1170 -> 1170 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$startFileCopy_result.classbin9724 -> 9724 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$updateImageData_args$_Fields.classbin3425 -> 3587 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$updateImageData_args$updateImageData_argsStandardScheme.classbin3599 -> 3944 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$updateImageData_args$updateImageData_argsStandardSchemeFactory.classbin1194 -> 1194 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$updateImageData_args$updateImageData_argsTupleScheme.classbin2992 -> 3289 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$updateImageData_args$updateImageData_argsTupleSchemeFactory.classbin1170 -> 1170 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$updateImageData_args.classbin16073 -> 18468 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$updateImageData_result$_Fields.classbin3050 -> 3050 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$updateImageData_result$updateImageData_resultStandardScheme.classbin2644 -> 2644 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$updateImageData_result$updateImageData_resultStandardSchemeFactory.classbin1226 -> 1226 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$updateImageData_result$updateImageData_resultTupleScheme.classbin2101 -> 2101 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$updateImageData_result$updateImageData_resultTupleSchemeFactory.classbin1202 -> 1202 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$updateImageData_result.classbin9798 -> 9798 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeLecturedata_args$_Fields.classbin4053 -> 4053 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeLecturedata_args$writeLecturedata_argsStandardScheme.classbin4862 -> 4862 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeLecturedata_args$writeLecturedata_argsStandardSchemeFactory.classbin1210 -> 1210 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeLecturedata_args$writeLecturedata_argsTupleScheme.classbin4056 -> 4056 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeLecturedata_args$writeLecturedata_argsTupleSchemeFactory.classbin1186 -> 1186 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeLecturedata_args.classbin24604 -> 24604 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeLecturedata_result$_Fields.classbin3060 -> 3060 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeLecturedata_result$writeLecturedata_resultStandardScheme.classbin2656 -> 2656 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeLecturedata_result$writeLecturedata_resultStandardSchemeFactory.classbin1242 -> 1242 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeLecturedata_result$writeLecturedata_resultTupleScheme.classbin2113 -> 2113 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeLecturedata_result$writeLecturedata_resultTupleSchemeFactory.classbin1218 -> 1218 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeLecturedata_result.classbin9835 -> 9835 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeVLdata_args$_Fields.classbin3821 -> 3914 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeVLdata_args$writeVLdata_argsStandardScheme.classbin4451 -> 4637 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeVLdata_args$writeVLdata_argsStandardSchemeFactory.classbin1130 -> 1130 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeVLdata_args$writeVLdata_argsTupleScheme.classbin3724 -> 3886 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeVLdata_args$writeVLdata_argsTupleSchemeFactory.classbin1106 -> 1106 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeVLdata_args.classbin22061 -> 23310 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeVLdata_result$_Fields.classbin3010 -> 3010 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeVLdata_result$writeVLdata_resultStandardScheme.classbin2596 -> 2596 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeVLdata_result$writeVLdata_resultStandardSchemeFactory.classbin1162 -> 1162 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeVLdata_result$writeVLdata_resultTupleScheme.classbin2053 -> 2053 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeVLdata_result$writeVLdata_resultTupleSchemeFactory.classbin1138 -> 1138 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeVLdata_result.classbin9650 -> 9650 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server.classbin2192 -> 2508 bytes
-rw-r--r--Dozentenmodulserver/bin/server/ServerHandler.classbin8701 -> 11415 bytes
-rw-r--r--Dozentenmodulserver/bin/server/User$UserStandardScheme.classbin2737 -> 2737 bytes
-rw-r--r--Dozentenmodulserver/bin/server/User$UserStandardSchemeFactory.classbin853 -> 853 bytes
-rw-r--r--Dozentenmodulserver/bin/server/User$UserTupleScheme.classbin2173 -> 2173 bytes
-rw-r--r--Dozentenmodulserver/bin/server/User$UserTupleSchemeFactory.classbin829 -> 829 bytes
-rw-r--r--Dozentenmodulserver/bin/server/User$_Fields.classbin2938 -> 2938 bytes
-rw-r--r--Dozentenmodulserver/bin/server/User.classbin11240 -> 11240 bytes
-rw-r--r--Dozentenmodulserver/bin/server/startServer.classbin1609 -> 1891 bytes
-rw-r--r--Dozentenmodulserver/bin/sql/SQL.classbin11621 -> 14580 bytes
-rw-r--r--Dozentenmodulserver/bin/util/XMLCreator.classbin0 -> 7428 bytes
-rw-r--r--Dozentenmodulserver/src/server/BinaryListener.java7
-rw-r--r--Dozentenmodulserver/src/server/Image.java275
-rw-r--r--Dozentenmodulserver/src/server/Lecture.java1188
-rw-r--r--Dozentenmodulserver/src/server/Server.java5608
-rw-r--r--Dozentenmodulserver/src/server/ServerHandler.java119
-rw-r--r--Dozentenmodulserver/src/server/User.java1
-rw-r--r--Dozentenmodulserver/src/server/startServer.java5
-rw-r--r--Dozentenmodulserver/src/sql/SQL.java483
-rw-r--r--Dozentenmodulserver/src/util/XMLCreator.java221
-rw-r--r--Dozentenmodulserver/thrift/server.thrift27
732 files changed, 17168 insertions, 8276 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000..6b468b62
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+*.class
diff --git a/Dozentenmodul/.classpath b/Dozentenmodul/.classpath
index 459c978e..1e2dfca0 100644
--- a/Dozentenmodul/.classpath
+++ b/Dozentenmodul/.classpath
@@ -17,5 +17,7 @@
<classpathentry combineaccessrules="false" kind="src" path="/bwLehrpoolSuite_Server"/>
<classpathentry kind="lib" path="lib/ini4j-0.5.2-SNAPSHOT.jar"/>
<classpathentry kind="lib" path="lib/libthrift-0.9.1.jar"/>
+ <classpathentry kind="lib" path="/bwLehrpoolSuite_Server/lib/slf4j-api-1.7.5.jar"/>
+ <classpathentry kind="lib" path="lib/slf4j-simple-1.7.6.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
diff --git a/Dozentenmodul/.settings/org.eclipse.core.resources.prefs b/Dozentenmodul/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 00000000..61583c81
--- /dev/null
+++ b/Dozentenmodul/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+encoding//src/gui/lecture/EditLectureAllgemein_GUI.java=UTF-8
diff --git a/Dozentenmodul/bin/GUI/BillOfRights_GUI$1.class b/Dozentenmodul/bin/GUI/BillOfRights_GUI$1.class
deleted file mode 100644
index 5574d48e..00000000
--- a/Dozentenmodul/bin/GUI/BillOfRights_GUI$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/BillOfRights_GUI$2.class b/Dozentenmodul/bin/GUI/BillOfRights_GUI$2.class
deleted file mode 100644
index 49256cbe..00000000
--- a/Dozentenmodul/bin/GUI/BillOfRights_GUI$2.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/BillOfRights_GUI$3.class b/Dozentenmodul/bin/GUI/BillOfRights_GUI$3.class
deleted file mode 100644
index a2ae1bca..00000000
--- a/Dozentenmodul/bin/GUI/BillOfRights_GUI$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/BillOfRights_GUI.class b/Dozentenmodul/bin/GUI/BillOfRights_GUI.class
deleted file mode 100644
index 097d3995..00000000
--- a/Dozentenmodul/bin/GUI/BillOfRights_GUI.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$1.class b/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$1.class
deleted file mode 100644
index 8aac918a..00000000
--- a/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$2.class b/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$2.class
deleted file mode 100644
index fe3aa20e..00000000
--- a/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$2.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$3.class b/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$3.class
deleted file mode 100644
index 04b61bfc..00000000
--- a/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$4.class b/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$4.class
deleted file mode 100644
index 79d48c01..00000000
--- a/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$4.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI.class b/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI.class
deleted file mode 100644
index b848f2b1..00000000
--- a/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$1.class b/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$1.class
deleted file mode 100644
index b17e4eea..00000000
--- a/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$2.class b/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$2.class
deleted file mode 100644
index ce51d208..00000000
--- a/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$2.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$3.class b/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$3.class
deleted file mode 100644
index 4439a63d..00000000
--- a/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$4.class b/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$4.class
deleted file mode 100644
index ed1c7c14..00000000
--- a/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$4.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI.class b/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI.class
deleted file mode 100644
index 9d2ce374..00000000
--- a/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$1.class b/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$1.class
deleted file mode 100644
index 929a1184..00000000
--- a/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$2.class b/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$2.class
deleted file mode 100644
index b87e4c2a..00000000
--- a/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$2.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$3.class b/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$3.class
deleted file mode 100644
index 210e494d..00000000
--- a/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$4.class b/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$4.class
deleted file mode 100644
index 69b2a2a7..00000000
--- a/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$4.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI.class b/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI.class
deleted file mode 100644
index 3aa6d518..00000000
--- a/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$1.class b/Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$1.class
deleted file mode 100644
index b7b5fc47..00000000
--- a/Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$2.class b/Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$2.class
deleted file mode 100644
index b237ee04..00000000
--- a/Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$2.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$3.class b/Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$3.class
deleted file mode 100644
index 2f3bc164..00000000
--- a/Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$4.class b/Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$4.class
deleted file mode 100644
index 7237fa6b..00000000
--- a/Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$4.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI.class b/Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI.class
deleted file mode 100644
index baa9e9f0..00000000
--- a/Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$1.class b/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$1.class
deleted file mode 100644
index 4947b5ae..00000000
--- a/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$2.class b/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$2.class
deleted file mode 100644
index 170bc6c8..00000000
--- a/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$2.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$3.class b/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$3.class
deleted file mode 100644
index 66cf8978..00000000
--- a/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$4.class b/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$4.class
deleted file mode 100644
index 168722c4..00000000
--- a/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$4.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI.class b/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI.class
deleted file mode 100644
index cd15c612..00000000
--- a/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$1.class b/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$1.class
deleted file mode 100644
index cb2858d5..00000000
--- a/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$2.class b/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$2.class
deleted file mode 100644
index 672e37c7..00000000
--- a/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$2.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$3.class b/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$3.class
deleted file mode 100644
index 297810f5..00000000
--- a/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$4.class b/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$4.class
deleted file mode 100644
index 17769c26..00000000
--- a/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$4.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI.class b/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI.class
deleted file mode 100644
index ddb5df01..00000000
--- a/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/ExtendedSearch_GUI.class b/Dozentenmodul/bin/GUI/ExtendedSearch_GUI.class
deleted file mode 100644
index 5c5857a5..00000000
--- a/Dozentenmodul/bin/GUI/ExtendedSearch_GUI.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/FTPDownloader_GUI$1.class b/Dozentenmodul/bin/GUI/FTPDownloader_GUI$1.class
deleted file mode 100644
index 244b88e2..00000000
--- a/Dozentenmodul/bin/GUI/FTPDownloader_GUI$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/FTPDownloader_GUI$2.class b/Dozentenmodul/bin/GUI/FTPDownloader_GUI$2.class
deleted file mode 100644
index 42a0f970..00000000
--- a/Dozentenmodul/bin/GUI/FTPDownloader_GUI$2.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/FTPDownloader_GUI$3.class b/Dozentenmodul/bin/GUI/FTPDownloader_GUI$3.class
deleted file mode 100644
index 26910efa..00000000
--- a/Dozentenmodul/bin/GUI/FTPDownloader_GUI$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/FTPDownloader_GUI$4.class b/Dozentenmodul/bin/GUI/FTPDownloader_GUI$4.class
deleted file mode 100644
index 235576d0..00000000
--- a/Dozentenmodul/bin/GUI/FTPDownloader_GUI$4.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/FTPDownloader_GUI.class b/Dozentenmodul/bin/GUI/FTPDownloader_GUI.class
deleted file mode 100644
index 9dd8d00c..00000000
--- a/Dozentenmodul/bin/GUI/FTPDownloader_GUI.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/FTPUploader_GUI$1.class b/Dozentenmodul/bin/GUI/FTPUploader_GUI$1.class
deleted file mode 100644
index 3a3714a5..00000000
--- a/Dozentenmodul/bin/GUI/FTPUploader_GUI$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/FTPUploader_GUI$2.class b/Dozentenmodul/bin/GUI/FTPUploader_GUI$2.class
deleted file mode 100644
index 905d3fde..00000000
--- a/Dozentenmodul/bin/GUI/FTPUploader_GUI$2.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/FTPUploader_GUI$3.class b/Dozentenmodul/bin/GUI/FTPUploader_GUI$3.class
deleted file mode 100644
index 4b544121..00000000
--- a/Dozentenmodul/bin/GUI/FTPUploader_GUI$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/FTPUploader_GUI$4.class b/Dozentenmodul/bin/GUI/FTPUploader_GUI$4.class
deleted file mode 100644
index c4594204..00000000
--- a/Dozentenmodul/bin/GUI/FTPUploader_GUI$4.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/FTPUploader_GUI$5.class b/Dozentenmodul/bin/GUI/FTPUploader_GUI$5.class
deleted file mode 100644
index 556db5fc..00000000
--- a/Dozentenmodul/bin/GUI/FTPUploader_GUI$5.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/FTPUploader_GUI.class b/Dozentenmodul/bin/GUI/FTPUploader_GUI.class
deleted file mode 100644
index 64da3d54..00000000
--- a/Dozentenmodul/bin/GUI/FTPUploader_GUI.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/LinkImage_GUI$1.class b/Dozentenmodul/bin/GUI/LinkImage_GUI$1.class
deleted file mode 100644
index a0a9eb95..00000000
--- a/Dozentenmodul/bin/GUI/LinkImage_GUI$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/LinkImage_GUI$2.class b/Dozentenmodul/bin/GUI/LinkImage_GUI$2.class
deleted file mode 100644
index 59117e1c..00000000
--- a/Dozentenmodul/bin/GUI/LinkImage_GUI$2.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/LinkImage_GUI$3.class b/Dozentenmodul/bin/GUI/LinkImage_GUI$3.class
deleted file mode 100644
index c6115895..00000000
--- a/Dozentenmodul/bin/GUI/LinkImage_GUI$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/LinkImage_GUI$4.class b/Dozentenmodul/bin/GUI/LinkImage_GUI$4.class
deleted file mode 100644
index 1c0ad2e0..00000000
--- a/Dozentenmodul/bin/GUI/LinkImage_GUI$4.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/LinkImage_GUI$5.class b/Dozentenmodul/bin/GUI/LinkImage_GUI$5.class
deleted file mode 100644
index a666be6d..00000000
--- a/Dozentenmodul/bin/GUI/LinkImage_GUI$5.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/LinkImage_GUI$6.class b/Dozentenmodul/bin/GUI/LinkImage_GUI$6.class
deleted file mode 100644
index 0b50d8a6..00000000
--- a/Dozentenmodul/bin/GUI/LinkImage_GUI$6.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/LinkImage_GUI$7.class b/Dozentenmodul/bin/GUI/LinkImage_GUI$7.class
deleted file mode 100644
index 1275514d..00000000
--- a/Dozentenmodul/bin/GUI/LinkImage_GUI$7.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/LinkImage_GUI.class b/Dozentenmodul/bin/GUI/LinkImage_GUI.class
deleted file mode 100644
index fdbfbc72..00000000
--- a/Dozentenmodul/bin/GUI/LinkImage_GUI.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/Login_GUI$1.class b/Dozentenmodul/bin/GUI/Login_GUI$1.class
deleted file mode 100644
index 3ba048a4..00000000
--- a/Dozentenmodul/bin/GUI/Login_GUI$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/Login_GUI$2.class b/Dozentenmodul/bin/GUI/Login_GUI$2.class
deleted file mode 100644
index 4c73519c..00000000
--- a/Dozentenmodul/bin/GUI/Login_GUI$2.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/Login_GUI$3.class b/Dozentenmodul/bin/GUI/Login_GUI$3.class
deleted file mode 100644
index 9d555d1d..00000000
--- a/Dozentenmodul/bin/GUI/Login_GUI$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/Login_GUI.class b/Dozentenmodul/bin/GUI/Login_GUI.class
deleted file mode 100644
index 621e1e3f..00000000
--- a/Dozentenmodul/bin/GUI/Login_GUI.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/MainMenue_GUI$1.class b/Dozentenmodul/bin/GUI/MainMenue_GUI$1.class
deleted file mode 100644
index 5cc49090..00000000
--- a/Dozentenmodul/bin/GUI/MainMenue_GUI$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/MainMenue_GUI$2.class b/Dozentenmodul/bin/GUI/MainMenue_GUI$2.class
deleted file mode 100644
index 9bb444b5..00000000
--- a/Dozentenmodul/bin/GUI/MainMenue_GUI$2.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/MainMenue_GUI$3.class b/Dozentenmodul/bin/GUI/MainMenue_GUI$3.class
deleted file mode 100644
index e2caddfd..00000000
--- a/Dozentenmodul/bin/GUI/MainMenue_GUI$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/MainMenue_GUI$4.class b/Dozentenmodul/bin/GUI/MainMenue_GUI$4.class
deleted file mode 100644
index 59a0ff9e..00000000
--- a/Dozentenmodul/bin/GUI/MainMenue_GUI$4.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/MainMenue_GUI.class b/Dozentenmodul/bin/GUI/MainMenue_GUI.class
deleted file mode 100644
index c52b2e1a..00000000
--- a/Dozentenmodul/bin/GUI/MainMenue_GUI.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/SearchImage_GUI$1.class b/Dozentenmodul/bin/GUI/SearchImage_GUI$1.class
deleted file mode 100644
index be572a32..00000000
--- a/Dozentenmodul/bin/GUI/SearchImage_GUI$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/SearchMethod_GUI$1.class b/Dozentenmodul/bin/GUI/SearchMethod_GUI$1.class
deleted file mode 100644
index b2222872..00000000
--- a/Dozentenmodul/bin/GUI/SearchMethod_GUI$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/SearchMethod_GUI$2.class b/Dozentenmodul/bin/GUI/SearchMethod_GUI$2.class
deleted file mode 100644
index 296d7ebc..00000000
--- a/Dozentenmodul/bin/GUI/SearchMethod_GUI$2.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/SearchMethod_GUI$3.class b/Dozentenmodul/bin/GUI/SearchMethod_GUI$3.class
deleted file mode 100644
index 4b572444..00000000
--- a/Dozentenmodul/bin/GUI/SearchMethod_GUI$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/SearchMethod_GUI$4.class b/Dozentenmodul/bin/GUI/SearchMethod_GUI$4.class
deleted file mode 100644
index 64fdeb32..00000000
--- a/Dozentenmodul/bin/GUI/SearchMethod_GUI$4.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/VmWareLink_GUI$1.class b/Dozentenmodul/bin/GUI/VmWareLink_GUI$1.class
deleted file mode 100644
index 65a75adf..00000000
--- a/Dozentenmodul/bin/GUI/VmWareLink_GUI$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/VmWareLink_GUI$2.class b/Dozentenmodul/bin/GUI/VmWareLink_GUI$2.class
deleted file mode 100644
index 1c73d190..00000000
--- a/Dozentenmodul/bin/GUI/VmWareLink_GUI$2.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/VmWareLink_GUI$3.class b/Dozentenmodul/bin/GUI/VmWareLink_GUI$3.class
deleted file mode 100644
index ba568bd7..00000000
--- a/Dozentenmodul/bin/GUI/VmWareLink_GUI$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/Image_zu_Veranstaltung_HDD.png b/Dozentenmodul/bin/Image_zu_Veranstaltung_HDD.png
new file mode 100644
index 00000000..39b3bac6
--- /dev/null
+++ b/Dozentenmodul/bin/Image_zu_Veranstaltung_HDD.png
Binary files differ
diff --git a/Dozentenmodul/bin/Models/Image.class b/Dozentenmodul/bin/Models/Image.class
index fcd1a276..4c70ef81 100644
--- a/Dozentenmodul/bin/Models/Image.class
+++ b/Dozentenmodul/bin/Models/Image.class
Binary files differ
diff --git a/Dozentenmodul/bin/Models/Lecture.class b/Dozentenmodul/bin/Models/Lecture.class
index 6626b998..a0cb753d 100644
--- a/Dozentenmodul/bin/Models/Lecture.class
+++ b/Dozentenmodul/bin/Models/Lecture.class
Binary files differ
diff --git a/Dozentenmodul/bin/Models/person.class b/Dozentenmodul/bin/Models/person.class
index 8c7815e5..32519c65 100644
--- a/Dozentenmodul/bin/Models/person.class
+++ b/Dozentenmodul/bin/Models/person.class
Binary files differ
diff --git a/Dozentenmodul/bin/Models/vm.class b/Dozentenmodul/bin/Models/vm.class
deleted file mode 100644
index 58709544..00000000
--- a/Dozentenmodul/bin/Models/vm.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/auth/Authentification.class b/Dozentenmodul/bin/auth/Authentification.class
index e7a2611d..0d9b3144 100644
--- a/Dozentenmodul/bin/auth/Authentification.class
+++ b/Dozentenmodul/bin/auth/Authentification.class
Binary files differ
diff --git a/Dozentenmodul/bin/ftp/DownloadTask.class b/Dozentenmodul/bin/ftp/DownloadTask.class
index 1b153fb7..447a8eb4 100644
--- a/Dozentenmodul/bin/ftp/DownloadTask.class
+++ b/Dozentenmodul/bin/ftp/DownloadTask.class
Binary files differ
diff --git a/Dozentenmodul/bin/ftp/FTPUtility.class b/Dozentenmodul/bin/ftp/FTPUtility.class
index f563788c..e0536990 100644
--- a/Dozentenmodul/bin/ftp/FTPUtility.class
+++ b/Dozentenmodul/bin/ftp/FTPUtility.class
Binary files differ
diff --git a/Dozentenmodul/bin/ftp/UploadTask.class b/Dozentenmodul/bin/ftp/UploadTask.class
index 12ba0962..32bd6720 100644
--- a/Dozentenmodul/bin/ftp/UploadTask.class
+++ b/Dozentenmodul/bin/ftp/UploadTask.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/BillOfRights_GUI$1.class b/Dozentenmodul/bin/gui/BillOfRights_GUI$1.class
deleted file mode 100644
index 5574d48e..00000000
--- a/Dozentenmodul/bin/gui/BillOfRights_GUI$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/BillOfRights_GUI$3.class b/Dozentenmodul/bin/gui/BillOfRights_GUI$3.class
deleted file mode 100644
index a2ae1bca..00000000
--- a/Dozentenmodul/bin/gui/BillOfRights_GUI$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/DeleteImage_GUI$1.class b/Dozentenmodul/bin/gui/DeleteImage_GUI$1.class
deleted file mode 100644
index 6139b7dc..00000000
--- a/Dozentenmodul/bin/gui/DeleteImage_GUI$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/DeleteImage_GUI$3.class b/Dozentenmodul/bin/gui/DeleteImage_GUI$3.class
deleted file mode 100644
index 1ab047a4..00000000
--- a/Dozentenmodul/bin/gui/DeleteImage_GUI$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/DeleteImage_GUI$5.class b/Dozentenmodul/bin/gui/DeleteImage_GUI$5.class
deleted file mode 100644
index 0e845cc7..00000000
--- a/Dozentenmodul/bin/gui/DeleteImage_GUI$5.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/DeleteImage_GUI$7.class b/Dozentenmodul/bin/gui/DeleteImage_GUI$7.class
deleted file mode 100644
index a943d210..00000000
--- a/Dozentenmodul/bin/gui/DeleteImage_GUI$7.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/DeleteImage_GUI$8.class b/Dozentenmodul/bin/gui/DeleteImage_GUI$8.class
deleted file mode 100644
index a1eb0a54..00000000
--- a/Dozentenmodul/bin/gui/DeleteImage_GUI$8.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$1.class b/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$1.class
deleted file mode 100644
index 8aac918a..00000000
--- a/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$2.class b/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$2.class
deleted file mode 100644
index fe3aa20e..00000000
--- a/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$2.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$3.class b/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$3.class
deleted file mode 100644
index 04b61bfc..00000000
--- a/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$4.class b/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$4.class
deleted file mode 100644
index 79d48c01..00000000
--- a/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$4.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EditImageAllgemein_GUI.class b/Dozentenmodul/bin/gui/EditImageAllgemein_GUI.class
deleted file mode 100644
index b848f2b1..00000000
--- a/Dozentenmodul/bin/gui/EditImageAllgemein_GUI.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$1.class b/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$1.class
deleted file mode 100644
index b17e4eea..00000000
--- a/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$2.class b/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$2.class
deleted file mode 100644
index ce51d208..00000000
--- a/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$2.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$3.class b/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$3.class
deleted file mode 100644
index 4439a63d..00000000
--- a/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$4.class b/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$4.class
deleted file mode 100644
index ed1c7c14..00000000
--- a/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$4.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$1.class b/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$1.class
deleted file mode 100644
index 929a1184..00000000
--- a/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$2.class b/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$2.class
deleted file mode 100644
index b87e4c2a..00000000
--- a/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$2.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$3.class b/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$3.class
deleted file mode 100644
index 210e494d..00000000
--- a/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$4.class b/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$4.class
deleted file mode 100644
index 69b2a2a7..00000000
--- a/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$4.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI.class b/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI.class
deleted file mode 100644
index 3aa6d518..00000000
--- a/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI$1.class b/Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI$1.class
deleted file mode 100644
index b7b5fc47..00000000
--- a/Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI$2.class b/Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI$2.class
deleted file mode 100644
index b237ee04..00000000
--- a/Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI$2.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI$3.class b/Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI$3.class
deleted file mode 100644
index 2f3bc164..00000000
--- a/Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI$4.class b/Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI$4.class
deleted file mode 100644
index 7237fa6b..00000000
--- a/Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI$4.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI.class b/Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI.class
deleted file mode 100644
index baa9e9f0..00000000
--- a/Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$1.class b/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$1.class
deleted file mode 100644
index 4947b5ae..00000000
--- a/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$2.class b/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$2.class
deleted file mode 100644
index 170bc6c8..00000000
--- a/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$2.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$3.class b/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$3.class
deleted file mode 100644
index 66cf8978..00000000
--- a/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$4.class b/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$4.class
deleted file mode 100644
index 168722c4..00000000
--- a/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$4.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI.class b/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI.class
deleted file mode 100644
index cd15c612..00000000
--- a/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$1.class b/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$1.class
deleted file mode 100644
index cb2858d5..00000000
--- a/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$2.class b/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$2.class
deleted file mode 100644
index 672e37c7..00000000
--- a/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$2.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$3.class b/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$3.class
deleted file mode 100644
index 297810f5..00000000
--- a/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$4.class b/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$4.class
deleted file mode 100644
index 17769c26..00000000
--- a/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$4.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI.class b/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI.class
deleted file mode 100644
index ddb5df01..00000000
--- a/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/ExtendedSearch_GUI$1.class b/Dozentenmodul/bin/gui/ExtendedSearch_GUI$1.class
deleted file mode 100644
index 14bb24a5..00000000
--- a/Dozentenmodul/bin/gui/ExtendedSearch_GUI$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/ExtendedSearch_GUI$2.class b/Dozentenmodul/bin/gui/ExtendedSearch_GUI$2.class
deleted file mode 100644
index dd35be9f..00000000
--- a/Dozentenmodul/bin/gui/ExtendedSearch_GUI$2.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/ExtendedSearch_GUI$3.class b/Dozentenmodul/bin/gui/ExtendedSearch_GUI$3.class
deleted file mode 100644
index 465fc151..00000000
--- a/Dozentenmodul/bin/gui/ExtendedSearch_GUI$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/FTPDownloader_GUI$1.class b/Dozentenmodul/bin/gui/FTPDownloader_GUI$1.class
deleted file mode 100644
index 244b88e2..00000000
--- a/Dozentenmodul/bin/gui/FTPDownloader_GUI$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/FTPDownloader_GUI$2.class b/Dozentenmodul/bin/gui/FTPDownloader_GUI$2.class
deleted file mode 100644
index 42a0f970..00000000
--- a/Dozentenmodul/bin/gui/FTPDownloader_GUI$2.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/FTPDownloader_GUI$3.class b/Dozentenmodul/bin/gui/FTPDownloader_GUI$3.class
deleted file mode 100644
index 26910efa..00000000
--- a/Dozentenmodul/bin/gui/FTPDownloader_GUI$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/FTPDownloader_GUI$4.class b/Dozentenmodul/bin/gui/FTPDownloader_GUI$4.class
deleted file mode 100644
index 235576d0..00000000
--- a/Dozentenmodul/bin/gui/FTPDownloader_GUI$4.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/FTPDownloader_GUI.class b/Dozentenmodul/bin/gui/FTPDownloader_GUI.class
deleted file mode 100644
index 9dd8d00c..00000000
--- a/Dozentenmodul/bin/gui/FTPDownloader_GUI.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/FTPEditUploader_GUI$1.class b/Dozentenmodul/bin/gui/FTPEditUploader_GUI$1.class
deleted file mode 100644
index 4312cd42..00000000
--- a/Dozentenmodul/bin/gui/FTPEditUploader_GUI$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/FTPEditUploader_GUI$2.class b/Dozentenmodul/bin/gui/FTPEditUploader_GUI$2.class
deleted file mode 100644
index 6834e2ba..00000000
--- a/Dozentenmodul/bin/gui/FTPEditUploader_GUI$2.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/FTPEditUploader_GUI$3.class b/Dozentenmodul/bin/gui/FTPEditUploader_GUI$3.class
deleted file mode 100644
index 1614a880..00000000
--- a/Dozentenmodul/bin/gui/FTPEditUploader_GUI$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/FTPEditUploader_GUI$4.class b/Dozentenmodul/bin/gui/FTPEditUploader_GUI$4.class
deleted file mode 100644
index dbece136..00000000
--- a/Dozentenmodul/bin/gui/FTPEditUploader_GUI$4.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/FTPEditUploader_GUI$6.class b/Dozentenmodul/bin/gui/FTPEditUploader_GUI$6.class
deleted file mode 100644
index 875eb9e8..00000000
--- a/Dozentenmodul/bin/gui/FTPEditUploader_GUI$6.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/FTPEditUploader_GUI.class b/Dozentenmodul/bin/gui/FTPEditUploader_GUI.class
deleted file mode 100644
index ffe9b318..00000000
--- a/Dozentenmodul/bin/gui/FTPEditUploader_GUI.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/FTPUploader_GUI$1.class b/Dozentenmodul/bin/gui/FTPUploader_GUI$1.class
deleted file mode 100644
index 3a3714a5..00000000
--- a/Dozentenmodul/bin/gui/FTPUploader_GUI$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/FTPUploader_GUI$2.class b/Dozentenmodul/bin/gui/FTPUploader_GUI$2.class
deleted file mode 100644
index 905d3fde..00000000
--- a/Dozentenmodul/bin/gui/FTPUploader_GUI$2.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/FTPUploader_GUI$3.class b/Dozentenmodul/bin/gui/FTPUploader_GUI$3.class
deleted file mode 100644
index 4b544121..00000000
--- a/Dozentenmodul/bin/gui/FTPUploader_GUI$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/FTPUploader_GUI$4.class b/Dozentenmodul/bin/gui/FTPUploader_GUI$4.class
deleted file mode 100644
index c4594204..00000000
--- a/Dozentenmodul/bin/gui/FTPUploader_GUI$4.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/FTPUploader_GUI$5.class b/Dozentenmodul/bin/gui/FTPUploader_GUI$5.class
deleted file mode 100644
index 556db5fc..00000000
--- a/Dozentenmodul/bin/gui/FTPUploader_GUI$5.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/FTPUploader_GUI$6.class b/Dozentenmodul/bin/gui/FTPUploader_GUI$6.class
deleted file mode 100644
index d6b733e8..00000000
--- a/Dozentenmodul/bin/gui/FTPUploader_GUI$6.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/FTPUploader_GUI.class b/Dozentenmodul/bin/gui/FTPUploader_GUI.class
deleted file mode 100644
index 64da3d54..00000000
--- a/Dozentenmodul/bin/gui/FTPUploader_GUI.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/LinkImage_GUI$1.class b/Dozentenmodul/bin/gui/LinkImage_GUI$1.class
deleted file mode 100644
index a0a9eb95..00000000
--- a/Dozentenmodul/bin/gui/LinkImage_GUI$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/LinkImage_GUI$2.class b/Dozentenmodul/bin/gui/LinkImage_GUI$2.class
deleted file mode 100644
index 59117e1c..00000000
--- a/Dozentenmodul/bin/gui/LinkImage_GUI$2.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/LinkImage_GUI$3.class b/Dozentenmodul/bin/gui/LinkImage_GUI$3.class
deleted file mode 100644
index c6115895..00000000
--- a/Dozentenmodul/bin/gui/LinkImage_GUI$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/LinkImage_GUI$4.class b/Dozentenmodul/bin/gui/LinkImage_GUI$4.class
deleted file mode 100644
index 1c0ad2e0..00000000
--- a/Dozentenmodul/bin/gui/LinkImage_GUI$4.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/LinkImage_GUI$5.class b/Dozentenmodul/bin/gui/LinkImage_GUI$5.class
deleted file mode 100644
index a666be6d..00000000
--- a/Dozentenmodul/bin/gui/LinkImage_GUI$5.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/LinkImage_GUI$6.class b/Dozentenmodul/bin/gui/LinkImage_GUI$6.class
deleted file mode 100644
index 0b50d8a6..00000000
--- a/Dozentenmodul/bin/gui/LinkImage_GUI$6.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/LinkImage_GUI$7.class b/Dozentenmodul/bin/gui/LinkImage_GUI$7.class
deleted file mode 100644
index 1275514d..00000000
--- a/Dozentenmodul/bin/gui/LinkImage_GUI$7.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/LinkImage_GUI.class b/Dozentenmodul/bin/gui/LinkImage_GUI.class
deleted file mode 100644
index fdbfbc72..00000000
--- a/Dozentenmodul/bin/gui/LinkImage_GUI.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/Login_GUI$1.class b/Dozentenmodul/bin/gui/Login_GUI$1.class
deleted file mode 100644
index 3ba048a4..00000000
--- a/Dozentenmodul/bin/gui/Login_GUI$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/Login_GUI$2.class b/Dozentenmodul/bin/gui/Login_GUI$2.class
deleted file mode 100644
index 4c73519c..00000000
--- a/Dozentenmodul/bin/gui/Login_GUI$2.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/Login_GUI$3.class b/Dozentenmodul/bin/gui/Login_GUI$3.class
deleted file mode 100644
index 9d555d1d..00000000
--- a/Dozentenmodul/bin/gui/Login_GUI$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/Login_GUI.class b/Dozentenmodul/bin/gui/Login_GUI.class
deleted file mode 100644
index 621e1e3f..00000000
--- a/Dozentenmodul/bin/gui/Login_GUI.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/MainMenue_GUI$1.class b/Dozentenmodul/bin/gui/MainMenue_GUI$1.class
deleted file mode 100644
index 5cc49090..00000000
--- a/Dozentenmodul/bin/gui/MainMenue_GUI$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/MainMenue_GUI$2.class b/Dozentenmodul/bin/gui/MainMenue_GUI$2.class
deleted file mode 100644
index 9bb444b5..00000000
--- a/Dozentenmodul/bin/gui/MainMenue_GUI$2.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/MainMenue_GUI$3.class b/Dozentenmodul/bin/gui/MainMenue_GUI$3.class
deleted file mode 100644
index e2caddfd..00000000
--- a/Dozentenmodul/bin/gui/MainMenue_GUI$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/MainMenue_GUI$4.class b/Dozentenmodul/bin/gui/MainMenue_GUI$4.class
deleted file mode 100644
index 59a0ff9e..00000000
--- a/Dozentenmodul/bin/gui/MainMenue_GUI$4.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/MainMenue_GUI.class b/Dozentenmodul/bin/gui/MainMenue_GUI.class
deleted file mode 100644
index c52b2e1a..00000000
--- a/Dozentenmodul/bin/gui/MainMenue_GUI.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchEditImage_GUI$1.class b/Dozentenmodul/bin/gui/SearchEditImage_GUI$1.class
deleted file mode 100644
index fd15e92d..00000000
--- a/Dozentenmodul/bin/gui/SearchEditImage_GUI$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchEditImage_GUI$3.class b/Dozentenmodul/bin/gui/SearchEditImage_GUI$3.class
deleted file mode 100644
index 497574cd..00000000
--- a/Dozentenmodul/bin/gui/SearchEditImage_GUI$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchEditImage_GUI$4.class b/Dozentenmodul/bin/gui/SearchEditImage_GUI$4.class
deleted file mode 100644
index 440eeb02..00000000
--- a/Dozentenmodul/bin/gui/SearchEditImage_GUI$4.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchEditImage_GUI$5.class b/Dozentenmodul/bin/gui/SearchEditImage_GUI$5.class
deleted file mode 100644
index 1d88aaf2..00000000
--- a/Dozentenmodul/bin/gui/SearchEditImage_GUI$5.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchEditImage_GUI$6.class b/Dozentenmodul/bin/gui/SearchEditImage_GUI$6.class
deleted file mode 100644
index ae739673..00000000
--- a/Dozentenmodul/bin/gui/SearchEditImage_GUI$6.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchEditImage_GUI$7.class b/Dozentenmodul/bin/gui/SearchEditImage_GUI$7.class
deleted file mode 100644
index 030ef361..00000000
--- a/Dozentenmodul/bin/gui/SearchEditImage_GUI$7.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchEditImage_GUI$8.class b/Dozentenmodul/bin/gui/SearchEditImage_GUI$8.class
deleted file mode 100644
index 9c94ae89..00000000
--- a/Dozentenmodul/bin/gui/SearchEditImage_GUI$8.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchEditImage_GUI$9.class b/Dozentenmodul/bin/gui/SearchEditImage_GUI$9.class
deleted file mode 100644
index eaa57353..00000000
--- a/Dozentenmodul/bin/gui/SearchEditImage_GUI$9.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchEditImage_GUI.class b/Dozentenmodul/bin/gui/SearchEditImage_GUI.class
deleted file mode 100644
index 616e48d6..00000000
--- a/Dozentenmodul/bin/gui/SearchEditImage_GUI.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchImage_GUI$1.class b/Dozentenmodul/bin/gui/SearchImage_GUI$1.class
deleted file mode 100644
index be572a32..00000000
--- a/Dozentenmodul/bin/gui/SearchImage_GUI$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchImage_GUI$3.class b/Dozentenmodul/bin/gui/SearchImage_GUI$3.class
deleted file mode 100644
index 721116df..00000000
--- a/Dozentenmodul/bin/gui/SearchImage_GUI$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchImage_GUI$4.class b/Dozentenmodul/bin/gui/SearchImage_GUI$4.class
deleted file mode 100644
index 33a3f111..00000000
--- a/Dozentenmodul/bin/gui/SearchImage_GUI$4.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchImage_GUI$5.class b/Dozentenmodul/bin/gui/SearchImage_GUI$5.class
deleted file mode 100644
index 6673eef5..00000000
--- a/Dozentenmodul/bin/gui/SearchImage_GUI$5.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchImage_GUI$6.class b/Dozentenmodul/bin/gui/SearchImage_GUI$6.class
deleted file mode 100644
index 1863e40f..00000000
--- a/Dozentenmodul/bin/gui/SearchImage_GUI$6.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchImage_GUI$7.class b/Dozentenmodul/bin/gui/SearchImage_GUI$7.class
deleted file mode 100644
index ef51173a..00000000
--- a/Dozentenmodul/bin/gui/SearchImage_GUI$7.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchImage_GUI$8.class b/Dozentenmodul/bin/gui/SearchImage_GUI$8.class
deleted file mode 100644
index 5e5bfeb5..00000000
--- a/Dozentenmodul/bin/gui/SearchImage_GUI$8.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchImage_GUI$9.class b/Dozentenmodul/bin/gui/SearchImage_GUI$9.class
deleted file mode 100644
index e231bdf7..00000000
--- a/Dozentenmodul/bin/gui/SearchImage_GUI$9.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchImage_GUI.class b/Dozentenmodul/bin/gui/SearchImage_GUI.class
deleted file mode 100644
index c676d0a8..00000000
--- a/Dozentenmodul/bin/gui/SearchImage_GUI.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchMethod_GUI$1.class b/Dozentenmodul/bin/gui/SearchMethod_GUI$1.class
deleted file mode 100644
index b2222872..00000000
--- a/Dozentenmodul/bin/gui/SearchMethod_GUI$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchMethod_GUI$2.class b/Dozentenmodul/bin/gui/SearchMethod_GUI$2.class
deleted file mode 100644
index 296d7ebc..00000000
--- a/Dozentenmodul/bin/gui/SearchMethod_GUI$2.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchMethod_GUI$3.class b/Dozentenmodul/bin/gui/SearchMethod_GUI$3.class
deleted file mode 100644
index 4b572444..00000000
--- a/Dozentenmodul/bin/gui/SearchMethod_GUI$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchMethod_GUI$4.class b/Dozentenmodul/bin/gui/SearchMethod_GUI$4.class
deleted file mode 100644
index 64fdeb32..00000000
--- a/Dozentenmodul/bin/gui/SearchMethod_GUI$4.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchMethod_GUI.class b/Dozentenmodul/bin/gui/SearchMethod_GUI.class
deleted file mode 100644
index d4f71a85..00000000
--- a/Dozentenmodul/bin/gui/SearchMethod_GUI.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/VmWareLink_GUI$1.class b/Dozentenmodul/bin/gui/VmWareLink_GUI$1.class
deleted file mode 100644
index 65a75adf..00000000
--- a/Dozentenmodul/bin/gui/VmWareLink_GUI$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/VmWareLink_GUI$2.class b/Dozentenmodul/bin/gui/VmWareLink_GUI$2.class
deleted file mode 100644
index 1c73d190..00000000
--- a/Dozentenmodul/bin/gui/VmWareLink_GUI$2.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/VmWareLink_GUI$4.class b/Dozentenmodul/bin/gui/VmWareLink_GUI$4.class
deleted file mode 100644
index b30fc786..00000000
--- a/Dozentenmodul/bin/gui/VmWareLink_GUI$4.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/VmWareLink_GUI.class b/Dozentenmodul/bin/gui/VmWareLink_GUI.class
deleted file mode 100644
index 4431fe00..00000000
--- a/Dozentenmodul/bin/gui/VmWareLink_GUI.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/CreateImageAllgemein_GUI$1.class b/Dozentenmodul/bin/gui/image/CreateImageAllgemein_GUI$1.class
new file mode 100644
index 00000000..d5e68cc7
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/CreateImageAllgemein_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/CreateImageAllgemein_GUI$2.class b/Dozentenmodul/bin/gui/image/CreateImageAllgemein_GUI$2.class
new file mode 100644
index 00000000..be29eec5
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/CreateImageAllgemein_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/CreateImageAllgemein_GUI$3.class b/Dozentenmodul/bin/gui/image/CreateImageAllgemein_GUI$3.class
new file mode 100644
index 00000000..07b78998
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/CreateImageAllgemein_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/CreateImageAllgemein_GUI$4.class b/Dozentenmodul/bin/gui/image/CreateImageAllgemein_GUI$4.class
new file mode 100644
index 00000000..b001474a
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/CreateImageAllgemein_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/CreateImageAllgemein_GUI.class b/Dozentenmodul/bin/gui/image/CreateImageAllgemein_GUI.class
new file mode 100644
index 00000000..c14c26e5
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/CreateImageAllgemein_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/CreateImageTechnisch_GUI$1.class b/Dozentenmodul/bin/gui/image/CreateImageTechnisch_GUI$1.class
new file mode 100644
index 00000000..04edeee9
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/CreateImageTechnisch_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/CreateImageTechnisch_GUI$2.class b/Dozentenmodul/bin/gui/image/CreateImageTechnisch_GUI$2.class
new file mode 100644
index 00000000..a88a21f5
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/CreateImageTechnisch_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/CreateImageTechnisch_GUI$3.class b/Dozentenmodul/bin/gui/image/CreateImageTechnisch_GUI$3.class
new file mode 100644
index 00000000..1ac1680a
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/CreateImageTechnisch_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/CreateImageTechnisch_GUI$4.class b/Dozentenmodul/bin/gui/image/CreateImageTechnisch_GUI$4.class
new file mode 100644
index 00000000..ac331f22
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/CreateImageTechnisch_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/CreateImageTechnisch_GUI.class b/Dozentenmodul/bin/gui/image/CreateImageTechnisch_GUI.class
new file mode 100644
index 00000000..2e49913b
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/CreateImageTechnisch_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/DeleteImage_GUI$1.class b/Dozentenmodul/bin/gui/image/DeleteImage_GUI$1.class
new file mode 100644
index 00000000..679fea24
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/DeleteImage_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/DeleteImage_GUI$2.class b/Dozentenmodul/bin/gui/image/DeleteImage_GUI$2.class
index 214998fb..2d8d670d 100644
--- a/Dozentenmodul/bin/gui/DeleteImage_GUI$2.class
+++ b/Dozentenmodul/bin/gui/image/DeleteImage_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/DeleteImage_GUI$3.class b/Dozentenmodul/bin/gui/image/DeleteImage_GUI$3.class
new file mode 100644
index 00000000..a9efff64
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/DeleteImage_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/DeleteImage_GUI$4.class b/Dozentenmodul/bin/gui/image/DeleteImage_GUI$4.class
index 9382863b..c3c7d0d4 100644
--- a/Dozentenmodul/bin/gui/DeleteImage_GUI$4.class
+++ b/Dozentenmodul/bin/gui/image/DeleteImage_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/DeleteImage_GUI$5.class b/Dozentenmodul/bin/gui/image/DeleteImage_GUI$5.class
new file mode 100644
index 00000000..d46ad562
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/DeleteImage_GUI$5.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/DeleteImage_GUI$6.class b/Dozentenmodul/bin/gui/image/DeleteImage_GUI$6.class
index 63b957b6..f2192686 100644
--- a/Dozentenmodul/bin/gui/DeleteImage_GUI$6.class
+++ b/Dozentenmodul/bin/gui/image/DeleteImage_GUI$6.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/DeleteImage_GUI$7.class b/Dozentenmodul/bin/gui/image/DeleteImage_GUI$7.class
new file mode 100644
index 00000000..10b584a7
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/DeleteImage_GUI$7.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/DeleteImage_GUI$8.class b/Dozentenmodul/bin/gui/image/DeleteImage_GUI$8.class
new file mode 100644
index 00000000..cb8ea27e
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/DeleteImage_GUI$8.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/DeleteImage_GUI.class b/Dozentenmodul/bin/gui/image/DeleteImage_GUI.class
index ad9c8803..4549e05a 100644
--- a/Dozentenmodul/bin/gui/DeleteImage_GUI.class
+++ b/Dozentenmodul/bin/gui/image/DeleteImage_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/EditImageAllgemein_GUI$1.class b/Dozentenmodul/bin/gui/image/EditImageAllgemein_GUI$1.class
new file mode 100644
index 00000000..7692bcfb
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/EditImageAllgemein_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/EditImageAllgemein_GUI$2.class b/Dozentenmodul/bin/gui/image/EditImageAllgemein_GUI$2.class
new file mode 100644
index 00000000..d11a8449
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/EditImageAllgemein_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/EditImageAllgemein_GUI$3.class b/Dozentenmodul/bin/gui/image/EditImageAllgemein_GUI$3.class
new file mode 100644
index 00000000..e28ed09a
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/EditImageAllgemein_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/EditImageAllgemein_GUI$4.class b/Dozentenmodul/bin/gui/image/EditImageAllgemein_GUI$4.class
new file mode 100644
index 00000000..64a79922
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/EditImageAllgemein_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/EditImageAllgemein_GUI.class b/Dozentenmodul/bin/gui/image/EditImageAllgemein_GUI.class
new file mode 100644
index 00000000..c0b072cf
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/EditImageAllgemein_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/EditImageTechnisch_GUI$1.class b/Dozentenmodul/bin/gui/image/EditImageTechnisch_GUI$1.class
new file mode 100644
index 00000000..216e48c4
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/EditImageTechnisch_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/EditImageTechnisch_GUI$2.class b/Dozentenmodul/bin/gui/image/EditImageTechnisch_GUI$2.class
new file mode 100644
index 00000000..d22c246d
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/EditImageTechnisch_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/EditImageTechnisch_GUI$3.class b/Dozentenmodul/bin/gui/image/EditImageTechnisch_GUI$3.class
new file mode 100644
index 00000000..4edb101c
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/EditImageTechnisch_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/EditImageTechnisch_GUI$4.class b/Dozentenmodul/bin/gui/image/EditImageTechnisch_GUI$4.class
new file mode 100644
index 00000000..b31208f2
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/EditImageTechnisch_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EditImageTechnisch_GUI.class b/Dozentenmodul/bin/gui/image/EditImageTechnisch_GUI.class
index 9d2ce374..edcd12d8 100644
--- a/Dozentenmodul/bin/gui/EditImageTechnisch_GUI.class
+++ b/Dozentenmodul/bin/gui/image/EditImageTechnisch_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$1.class b/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$1.class
new file mode 100644
index 00000000..3eded544
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$2.class b/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$2.class
new file mode 100644
index 00000000..aac75f6d
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$3.class b/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$3.class
new file mode 100644
index 00000000..4adde720
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$4.class b/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$4.class
new file mode 100644
index 00000000..03aeea73
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$5.class b/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$5.class
new file mode 100644
index 00000000..7ffa5033
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$5.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$6.class b/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$6.class
new file mode 100644
index 00000000..720ce3cd
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$6.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$7.class b/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$7.class
new file mode 100644
index 00000000..496f2158
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$7.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$8.class b/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$8.class
new file mode 100644
index 00000000..29269bbd
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$8.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI.class b/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI.class
new file mode 100644
index 00000000..785ecb6b
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/FTPDownloader_GUI$1.class b/Dozentenmodul/bin/gui/image/FTPDownloader_GUI$1.class
new file mode 100644
index 00000000..3be2f5f1
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/FTPDownloader_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/FTPDownloader_GUI$2.class b/Dozentenmodul/bin/gui/image/FTPDownloader_GUI$2.class
new file mode 100644
index 00000000..217b987a
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/FTPDownloader_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/FTPDownloader_GUI$3.class b/Dozentenmodul/bin/gui/image/FTPDownloader_GUI$3.class
new file mode 100644
index 00000000..0b7106e2
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/FTPDownloader_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/FTPDownloader_GUI$4.class b/Dozentenmodul/bin/gui/image/FTPDownloader_GUI$4.class
new file mode 100644
index 00000000..9b5b4107
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/FTPDownloader_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/FTPDownloader_GUI$5.class b/Dozentenmodul/bin/gui/image/FTPDownloader_GUI$5.class
new file mode 100644
index 00000000..847b6416
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/FTPDownloader_GUI$5.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/FTPDownloader_GUI$6.class b/Dozentenmodul/bin/gui/image/FTPDownloader_GUI$6.class
new file mode 100644
index 00000000..cb5888ae
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/FTPDownloader_GUI$6.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/FTPDownloader_GUI.class b/Dozentenmodul/bin/gui/image/FTPDownloader_GUI.class
new file mode 100644
index 00000000..dca740f2
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/FTPDownloader_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/FTPEditUploader_GUI$1.class b/Dozentenmodul/bin/gui/image/FTPEditUploader_GUI$1.class
new file mode 100644
index 00000000..a25d7157
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/FTPEditUploader_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/FTPEditUploader_GUI$2.class b/Dozentenmodul/bin/gui/image/FTPEditUploader_GUI$2.class
new file mode 100644
index 00000000..55d72ee9
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/FTPEditUploader_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/FTPEditUploader_GUI$3.class b/Dozentenmodul/bin/gui/image/FTPEditUploader_GUI$3.class
new file mode 100644
index 00000000..23f71ee1
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/FTPEditUploader_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/FTPEditUploader_GUI$4.class b/Dozentenmodul/bin/gui/image/FTPEditUploader_GUI$4.class
new file mode 100644
index 00000000..dfb69143
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/FTPEditUploader_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/FTPEditUploader_GUI$5.class b/Dozentenmodul/bin/gui/image/FTPEditUploader_GUI$5.class
new file mode 100644
index 00000000..87c0067c
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/FTPEditUploader_GUI$5.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/FTPEditUploader_GUI$5.class b/Dozentenmodul/bin/gui/image/FTPEditUploader_GUI$6.class
index 4beacc01..8d99419a 100644
--- a/Dozentenmodul/bin/gui/FTPEditUploader_GUI$5.class
+++ b/Dozentenmodul/bin/gui/image/FTPEditUploader_GUI$6.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/FTPEditUploader_GUI.class b/Dozentenmodul/bin/gui/image/FTPEditUploader_GUI.class
new file mode 100644
index 00000000..d3571c94
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/FTPEditUploader_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/SearchEditImage_GUI$1.class b/Dozentenmodul/bin/gui/image/SearchEditImage_GUI$1.class
new file mode 100644
index 00000000..9e30be11
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/SearchEditImage_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchEditImage_GUI$2.class b/Dozentenmodul/bin/gui/image/SearchEditImage_GUI$2.class
index 88ddae37..ff02ba32 100644
--- a/Dozentenmodul/bin/gui/SearchEditImage_GUI$2.class
+++ b/Dozentenmodul/bin/gui/image/SearchEditImage_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/SearchEditImage_GUI$3.class b/Dozentenmodul/bin/gui/image/SearchEditImage_GUI$3.class
new file mode 100644
index 00000000..5b3e93a0
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/SearchEditImage_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/SearchEditImage_GUI$4.class b/Dozentenmodul/bin/gui/image/SearchEditImage_GUI$4.class
new file mode 100644
index 00000000..e0ebd234
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/SearchEditImage_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/SearchEditImage_GUI$5.class b/Dozentenmodul/bin/gui/image/SearchEditImage_GUI$5.class
new file mode 100644
index 00000000..f0cfc5da
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/SearchEditImage_GUI$5.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/SearchEditImage_GUI$6.class b/Dozentenmodul/bin/gui/image/SearchEditImage_GUI$6.class
new file mode 100644
index 00000000..b6600cc8
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/SearchEditImage_GUI$6.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/SearchEditImage_GUI$7.class b/Dozentenmodul/bin/gui/image/SearchEditImage_GUI$7.class
new file mode 100644
index 00000000..772ed400
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/SearchEditImage_GUI$7.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/SearchEditImage_GUI$8.class b/Dozentenmodul/bin/gui/image/SearchEditImage_GUI$8.class
new file mode 100644
index 00000000..ffde361f
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/SearchEditImage_GUI$8.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/SearchEditImage_GUI$9.class b/Dozentenmodul/bin/gui/image/SearchEditImage_GUI$9.class
new file mode 100644
index 00000000..e2b34c9a
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/SearchEditImage_GUI$9.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/SearchEditImage_GUI.class b/Dozentenmodul/bin/gui/image/SearchEditImage_GUI.class
new file mode 100644
index 00000000..264f9d4a
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/SearchEditImage_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/SearchImage_GUI$1.class b/Dozentenmodul/bin/gui/image/SearchImage_GUI$1.class
new file mode 100644
index 00000000..8dbd7362
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/SearchImage_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchImage_GUI$2.class b/Dozentenmodul/bin/gui/image/SearchImage_GUI$2.class
index 3a6ee9ab..7c32f943 100644
--- a/Dozentenmodul/bin/gui/SearchImage_GUI$2.class
+++ b/Dozentenmodul/bin/gui/image/SearchImage_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/SearchImage_GUI$3.class b/Dozentenmodul/bin/gui/image/SearchImage_GUI$3.class
new file mode 100644
index 00000000..5b8f3f8b
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/SearchImage_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/SearchImage_GUI$4.class b/Dozentenmodul/bin/gui/image/SearchImage_GUI$4.class
new file mode 100644
index 00000000..f842a022
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/SearchImage_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/SearchImage_GUI$5.class b/Dozentenmodul/bin/gui/image/SearchImage_GUI$5.class
new file mode 100644
index 00000000..2452046f
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/SearchImage_GUI$5.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/SearchImage_GUI$6.class b/Dozentenmodul/bin/gui/image/SearchImage_GUI$6.class
new file mode 100644
index 00000000..eff43b91
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/SearchImage_GUI$6.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/SearchImage_GUI$7.class b/Dozentenmodul/bin/gui/image/SearchImage_GUI$7.class
new file mode 100644
index 00000000..8b9f3286
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/SearchImage_GUI$7.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/SearchImage_GUI$8.class b/Dozentenmodul/bin/gui/image/SearchImage_GUI$8.class
new file mode 100644
index 00000000..a5ff7a18
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/SearchImage_GUI$8.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/SearchImage_GUI$9.class b/Dozentenmodul/bin/gui/image/SearchImage_GUI$9.class
new file mode 100644
index 00000000..e5ad916e
--- /dev/null
+++ b/Dozentenmodul/bin/gui/image/SearchImage_GUI$9.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/SearchImage_GUI.class b/Dozentenmodul/bin/gui/image/SearchImage_GUI.class
index c676d0a8..fdefc8b5 100644
--- a/Dozentenmodul/bin/GUI/SearchImage_GUI.class
+++ b/Dozentenmodul/bin/gui/image/SearchImage_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/intro/BillOfRights_GUI$1.class b/Dozentenmodul/bin/gui/intro/BillOfRights_GUI$1.class
new file mode 100644
index 00000000..6a2f53f1
--- /dev/null
+++ b/Dozentenmodul/bin/gui/intro/BillOfRights_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/BillOfRights_GUI$2.class b/Dozentenmodul/bin/gui/intro/BillOfRights_GUI$2.class
index 49256cbe..16bbf49f 100644
--- a/Dozentenmodul/bin/gui/BillOfRights_GUI$2.class
+++ b/Dozentenmodul/bin/gui/intro/BillOfRights_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/intro/BillOfRights_GUI$3.class b/Dozentenmodul/bin/gui/intro/BillOfRights_GUI$3.class
new file mode 100644
index 00000000..a3ae5059
--- /dev/null
+++ b/Dozentenmodul/bin/gui/intro/BillOfRights_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/BillOfRights_GUI.class b/Dozentenmodul/bin/gui/intro/BillOfRights_GUI.class
index 097d3995..9d951522 100644
--- a/Dozentenmodul/bin/gui/BillOfRights_GUI.class
+++ b/Dozentenmodul/bin/gui/intro/BillOfRights_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/intro/Login_GUI$1.class b/Dozentenmodul/bin/gui/intro/Login_GUI$1.class
new file mode 100644
index 00000000..a064efc0
--- /dev/null
+++ b/Dozentenmodul/bin/gui/intro/Login_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/intro/Login_GUI$2.class b/Dozentenmodul/bin/gui/intro/Login_GUI$2.class
new file mode 100644
index 00000000..9c179a21
--- /dev/null
+++ b/Dozentenmodul/bin/gui/intro/Login_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/intro/Login_GUI$3.class b/Dozentenmodul/bin/gui/intro/Login_GUI$3.class
new file mode 100644
index 00000000..33e222c7
--- /dev/null
+++ b/Dozentenmodul/bin/gui/intro/Login_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/intro/Login_GUI$4.class b/Dozentenmodul/bin/gui/intro/Login_GUI$4.class
new file mode 100644
index 00000000..0fa234c1
--- /dev/null
+++ b/Dozentenmodul/bin/gui/intro/Login_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/intro/Login_GUI$5.class b/Dozentenmodul/bin/gui/intro/Login_GUI$5.class
new file mode 100644
index 00000000..c09574b4
--- /dev/null
+++ b/Dozentenmodul/bin/gui/intro/Login_GUI$5.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/intro/Login_GUI.class b/Dozentenmodul/bin/gui/intro/Login_GUI.class
new file mode 100644
index 00000000..7f627245
--- /dev/null
+++ b/Dozentenmodul/bin/gui/intro/Login_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$1.class b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$1.class
new file mode 100644
index 00000000..59f25618
--- /dev/null
+++ b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$10.class b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$10.class
new file mode 100644
index 00000000..76da6ffd
--- /dev/null
+++ b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$10.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$2.class b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$2.class
new file mode 100644
index 00000000..d88ea420
--- /dev/null
+++ b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$3.class b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$3.class
new file mode 100644
index 00000000..bb811f7a
--- /dev/null
+++ b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$4.class b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$4.class
new file mode 100644
index 00000000..1cf17778
--- /dev/null
+++ b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$5.class b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$5.class
new file mode 100644
index 00000000..f33e263d
--- /dev/null
+++ b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$5.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$6.class b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$6.class
new file mode 100644
index 00000000..715c30d8
--- /dev/null
+++ b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$6.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$7.class b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$7.class
new file mode 100644
index 00000000..10cac7e7
--- /dev/null
+++ b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$7.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$8.class b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$8.class
new file mode 100644
index 00000000..a42c1174
--- /dev/null
+++ b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$8.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$9.class b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$9.class
new file mode 100644
index 00000000..293c16b6
--- /dev/null
+++ b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$9.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/intro/MainMenue_GUI.class b/Dozentenmodul/bin/gui/intro/MainMenue_GUI.class
new file mode 100644
index 00000000..242c673a
--- /dev/null
+++ b/Dozentenmodul/bin/gui/intro/MainMenue_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/intro/VmWareLink_GUI$1.class b/Dozentenmodul/bin/gui/intro/VmWareLink_GUI$1.class
new file mode 100644
index 00000000..60fcb543
--- /dev/null
+++ b/Dozentenmodul/bin/gui/intro/VmWareLink_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/intro/VmWareLink_GUI$2.class b/Dozentenmodul/bin/gui/intro/VmWareLink_GUI$2.class
new file mode 100644
index 00000000..a61250c1
--- /dev/null
+++ b/Dozentenmodul/bin/gui/intro/VmWareLink_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/VmWareLink_GUI$3.class b/Dozentenmodul/bin/gui/intro/VmWareLink_GUI$3.class
index ba568bd7..bfa90045 100644
--- a/Dozentenmodul/bin/gui/VmWareLink_GUI$3.class
+++ b/Dozentenmodul/bin/gui/intro/VmWareLink_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/intro/VmWareLink_GUI$4.class b/Dozentenmodul/bin/gui/intro/VmWareLink_GUI$4.class
new file mode 100644
index 00000000..056f8f8d
--- /dev/null
+++ b/Dozentenmodul/bin/gui/intro/VmWareLink_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/VmWareLink_GUI.class b/Dozentenmodul/bin/gui/intro/VmWareLink_GUI.class
index 4431fe00..e74b203f 100644
--- a/Dozentenmodul/bin/GUI/VmWareLink_GUI.class
+++ b/Dozentenmodul/bin/gui/intro/VmWareLink_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI$1.class b/Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI$1.class
new file mode 100644
index 00000000..9b994ec4
--- /dev/null
+++ b/Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI$2.class b/Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI$2.class
new file mode 100644
index 00000000..6862545b
--- /dev/null
+++ b/Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI$3.class b/Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI$3.class
new file mode 100644
index 00000000..d71d71d5
--- /dev/null
+++ b/Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI$4.class b/Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI$4.class
new file mode 100644
index 00000000..9fe72770
--- /dev/null
+++ b/Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI$5.class b/Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI$5.class
new file mode 100644
index 00000000..09017e11
--- /dev/null
+++ b/Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI$5.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI$6.class b/Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI$6.class
new file mode 100644
index 00000000..adcc7fd5
--- /dev/null
+++ b/Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI$6.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI.class b/Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI.class
new file mode 100644
index 00000000..031b69b7
--- /dev/null
+++ b/Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/lecture/EditLectureAllgemein_GUI$1.class b/Dozentenmodul/bin/gui/lecture/EditLectureAllgemein_GUI$1.class
new file mode 100644
index 00000000..dd70f264
--- /dev/null
+++ b/Dozentenmodul/bin/gui/lecture/EditLectureAllgemein_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/lecture/EditLectureAllgemein_GUI$2.class b/Dozentenmodul/bin/gui/lecture/EditLectureAllgemein_GUI$2.class
new file mode 100644
index 00000000..22209c73
--- /dev/null
+++ b/Dozentenmodul/bin/gui/lecture/EditLectureAllgemein_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/lecture/EditLectureAllgemein_GUI$3.class b/Dozentenmodul/bin/gui/lecture/EditLectureAllgemein_GUI$3.class
new file mode 100644
index 00000000..808b6d99
--- /dev/null
+++ b/Dozentenmodul/bin/gui/lecture/EditLectureAllgemein_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/lecture/EditLectureAllgemein_GUI$4.class b/Dozentenmodul/bin/gui/lecture/EditLectureAllgemein_GUI$4.class
new file mode 100644
index 00000000..c412ac7b
--- /dev/null
+++ b/Dozentenmodul/bin/gui/lecture/EditLectureAllgemein_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/lecture/EditLectureAllgemein_GUI.class b/Dozentenmodul/bin/gui/lecture/EditLectureAllgemein_GUI.class
new file mode 100644
index 00000000..83d7cf3e
--- /dev/null
+++ b/Dozentenmodul/bin/gui/lecture/EditLectureAllgemein_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI$1.class b/Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI$1.class
new file mode 100644
index 00000000..8ae5f63c
--- /dev/null
+++ b/Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI$2.class b/Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI$2.class
new file mode 100644
index 00000000..79f4356c
--- /dev/null
+++ b/Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI$3.class b/Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI$3.class
new file mode 100644
index 00000000..b6c8be8f
--- /dev/null
+++ b/Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/ExtendedSearch_GUI.class b/Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI.class
index 5c5857a5..665f51d1 100644
--- a/Dozentenmodul/bin/gui/ExtendedSearch_GUI.class
+++ b/Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/lecture/SearchMethodLecture_GUI$1.class b/Dozentenmodul/bin/gui/lecture/SearchMethodLecture_GUI$1.class
new file mode 100644
index 00000000..b8590387
--- /dev/null
+++ b/Dozentenmodul/bin/gui/lecture/SearchMethodLecture_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/lecture/SearchMethodLecture_GUI$2.class b/Dozentenmodul/bin/gui/lecture/SearchMethodLecture_GUI$2.class
new file mode 100644
index 00000000..975fb7c1
--- /dev/null
+++ b/Dozentenmodul/bin/gui/lecture/SearchMethodLecture_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/lecture/SearchMethodLecture_GUI$3.class b/Dozentenmodul/bin/gui/lecture/SearchMethodLecture_GUI$3.class
new file mode 100644
index 00000000..9d4fc780
--- /dev/null
+++ b/Dozentenmodul/bin/gui/lecture/SearchMethodLecture_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/lecture/SearchMethodLecture_GUI$4.class b/Dozentenmodul/bin/gui/lecture/SearchMethodLecture_GUI$4.class
new file mode 100644
index 00000000..46f15114
--- /dev/null
+++ b/Dozentenmodul/bin/gui/lecture/SearchMethodLecture_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/SearchMethod_GUI.class b/Dozentenmodul/bin/gui/lecture/SearchMethodLecture_GUI.class
index d4f71a85..92a6a519 100644
--- a/Dozentenmodul/bin/GUI/SearchMethod_GUI.class
+++ b/Dozentenmodul/bin/gui/lecture/SearchMethodLecture_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/models/Image.class b/Dozentenmodul/bin/models/Image.class
index fcd1a276..4c70ef81 100644
--- a/Dozentenmodul/bin/models/Image.class
+++ b/Dozentenmodul/bin/models/Image.class
Binary files differ
diff --git a/Dozentenmodul/bin/models/Lecture.class b/Dozentenmodul/bin/models/Lecture.class
index 6626b998..a0cb753d 100644
--- a/Dozentenmodul/bin/models/Lecture.class
+++ b/Dozentenmodul/bin/models/Lecture.class
Binary files differ
diff --git a/Dozentenmodul/bin/models/SessionData.class b/Dozentenmodul/bin/models/SessionData.class
new file mode 100644
index 00000000..f0ff4996
--- /dev/null
+++ b/Dozentenmodul/bin/models/SessionData.class
Binary files differ
diff --git a/Dozentenmodul/bin/models/person.class b/Dozentenmodul/bin/models/person.class
index 8c7815e5..32519c65 100644
--- a/Dozentenmodul/bin/models/person.class
+++ b/Dozentenmodul/bin/models/person.class
Binary files differ
diff --git a/Dozentenmodul/bin/models/vm.class b/Dozentenmodul/bin/models/vm.class
deleted file mode 100644
index 58709544..00000000
--- a/Dozentenmodul/bin/models/vm.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/org.eclipse.core.resources.prefs b/Dozentenmodul/bin/org.eclipse.core.resources.prefs
new file mode 100644
index 00000000..61583c81
--- /dev/null
+++ b/Dozentenmodul/bin/org.eclipse.core.resources.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+encoding//src/gui/lecture/EditLectureAllgemein_GUI.java=UTF-8
diff --git a/Dozentenmodul/bin/thrift/AuthenticationError.class b/Dozentenmodul/bin/thrift/AuthenticationError.class
new file mode 100644
index 00000000..8f12237d
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/AuthenticationError.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/AuthenticationException$AuthenticationExceptionStandardScheme.class b/Dozentenmodul/bin/thrift/AuthenticationException$AuthenticationExceptionStandardScheme.class
new file mode 100644
index 00000000..6108caf6
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/AuthenticationException$AuthenticationExceptionStandardScheme.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/AuthenticationException$AuthenticationExceptionStandardSchemeFactory.class b/Dozentenmodul/bin/thrift/AuthenticationException$AuthenticationExceptionStandardSchemeFactory.class
new file mode 100644
index 00000000..ed3b0b62
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/AuthenticationException$AuthenticationExceptionStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/AuthenticationException$AuthenticationExceptionTupleScheme.class b/Dozentenmodul/bin/thrift/AuthenticationException$AuthenticationExceptionTupleScheme.class
new file mode 100644
index 00000000..2ae1e4f8
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/AuthenticationException$AuthenticationExceptionTupleScheme.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/AuthenticationException$AuthenticationExceptionTupleSchemeFactory.class b/Dozentenmodul/bin/thrift/AuthenticationException$AuthenticationExceptionTupleSchemeFactory.class
new file mode 100644
index 00000000..662f2f37
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/AuthenticationException$AuthenticationExceptionTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/AuthenticationException$_Fields.class b/Dozentenmodul/bin/thrift/AuthenticationException$_Fields.class
new file mode 100644
index 00000000..21b0acfc
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/AuthenticationException$_Fields.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/AuthenticationException.class b/Dozentenmodul/bin/thrift/AuthenticationException.class
new file mode 100644
index 00000000..de2ec118
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/AuthenticationException.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/AuthorizationError.class b/Dozentenmodul/bin/thrift/AuthorizationError.class
new file mode 100644
index 00000000..b05d13c5
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/AuthorizationError.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/AuthorizationException$AuthorizationExceptionStandardScheme.class b/Dozentenmodul/bin/thrift/AuthorizationException$AuthorizationExceptionStandardScheme.class
new file mode 100644
index 00000000..978243e1
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/AuthorizationException$AuthorizationExceptionStandardScheme.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/AuthorizationException$AuthorizationExceptionStandardSchemeFactory.class b/Dozentenmodul/bin/thrift/AuthorizationException$AuthorizationExceptionStandardSchemeFactory.class
new file mode 100644
index 00000000..9186486d
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/AuthorizationException$AuthorizationExceptionStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/AuthorizationException$AuthorizationExceptionTupleScheme.class b/Dozentenmodul/bin/thrift/AuthorizationException$AuthorizationExceptionTupleScheme.class
new file mode 100644
index 00000000..7b0fcbe6
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/AuthorizationException$AuthorizationExceptionTupleScheme.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/AuthorizationException$AuthorizationExceptionTupleSchemeFactory.class b/Dozentenmodul/bin/thrift/AuthorizationException$AuthorizationExceptionTupleSchemeFactory.class
new file mode 100644
index 00000000..40ca68dc
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/AuthorizationException$AuthorizationExceptionTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/AuthorizationException$_Fields.class b/Dozentenmodul/bin/thrift/AuthorizationException$_Fields.class
new file mode 100644
index 00000000..ff62ea72
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/AuthorizationException$_Fields.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/AuthorizationException.class b/Dozentenmodul/bin/thrift/AuthorizationException.class
new file mode 100644
index 00000000..9ec46927
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/AuthorizationException.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$AsyncClient$Factory.class b/Dozentenmodul/bin/thrift/ImageServer$AsyncClient$Factory.class
new file mode 100644
index 00000000..c7f71131
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$AsyncClient$Factory.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$AsyncClient$authenticate_call.class b/Dozentenmodul/bin/thrift/ImageServer$AsyncClient$authenticate_call.class
new file mode 100644
index 00000000..fb117af1
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$AsyncClient$authenticate_call.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$AsyncClient$getUserFromToken_call.class b/Dozentenmodul/bin/thrift/ImageServer$AsyncClient$getUserFromToken_call.class
new file mode 100644
index 00000000..43a434ad
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$AsyncClient$getUserFromToken_call.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$AsyncClient$ping_call.class b/Dozentenmodul/bin/thrift/ImageServer$AsyncClient$ping_call.class
new file mode 100644
index 00000000..6ebc2ea3
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$AsyncClient$ping_call.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$AsyncClient.class b/Dozentenmodul/bin/thrift/ImageServer$AsyncClient.class
new file mode 100644
index 00000000..1d34c1e2
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$AsyncClient.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$AsyncIface.class b/Dozentenmodul/bin/thrift/ImageServer$AsyncIface.class
new file mode 100644
index 00000000..e28e8f90
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$AsyncIface.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$authenticate$1.class b/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$authenticate$1.class
new file mode 100644
index 00000000..3dadf0b7
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$authenticate$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$authenticate.class b/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$authenticate.class
new file mode 100644
index 00000000..a02237d2
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$authenticate.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$getUserFromToken$1.class b/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$getUserFromToken$1.class
new file mode 100644
index 00000000..8bd8bacf
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$getUserFromToken$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$getUserFromToken.class b/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$getUserFromToken.class
new file mode 100644
index 00000000..2b4fe03d
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$getUserFromToken.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$ping$1.class b/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$ping$1.class
new file mode 100644
index 00000000..9dc81f2a
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$ping$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$ping.class b/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$ping.class
new file mode 100644
index 00000000..4b4e0afe
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$ping.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor.class b/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor.class
new file mode 100644
index 00000000..9bd05794
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$Client$Factory.class b/Dozentenmodul/bin/thrift/ImageServer$Client$Factory.class
new file mode 100644
index 00000000..215621f5
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$Client$Factory.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$Client.class b/Dozentenmodul/bin/thrift/ImageServer$Client.class
new file mode 100644
index 00000000..d8ecb8b8
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$Client.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$Iface.class b/Dozentenmodul/bin/thrift/ImageServer$Iface.class
new file mode 100644
index 00000000..18aec242
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$Iface.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$Processor$authenticate.class b/Dozentenmodul/bin/thrift/ImageServer$Processor$authenticate.class
new file mode 100644
index 00000000..1a1f939e
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$Processor$authenticate.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$Processor$getUserFromToken.class b/Dozentenmodul/bin/thrift/ImageServer$Processor$getUserFromToken.class
new file mode 100644
index 00000000..eba9943e
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$Processor$getUserFromToken.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$Processor$ping.class b/Dozentenmodul/bin/thrift/ImageServer$Processor$ping.class
new file mode 100644
index 00000000..a3dd6c8f
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$Processor$ping.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$Processor.class b/Dozentenmodul/bin/thrift/ImageServer$Processor.class
new file mode 100644
index 00000000..26f96272
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$Processor.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$authenticate_args$_Fields.class b/Dozentenmodul/bin/thrift/ImageServer$authenticate_args$_Fields.class
new file mode 100644
index 00000000..a8cd4f66
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$authenticate_args$_Fields.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$authenticate_args$authenticate_argsStandardScheme.class b/Dozentenmodul/bin/thrift/ImageServer$authenticate_args$authenticate_argsStandardScheme.class
new file mode 100644
index 00000000..29e03256
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$authenticate_args$authenticate_argsStandardScheme.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$authenticate_args$authenticate_argsStandardSchemeFactory.class b/Dozentenmodul/bin/thrift/ImageServer$authenticate_args$authenticate_argsStandardSchemeFactory.class
new file mode 100644
index 00000000..d20ee8b2
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$authenticate_args$authenticate_argsStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$authenticate_args$authenticate_argsTupleScheme.class b/Dozentenmodul/bin/thrift/ImageServer$authenticate_args$authenticate_argsTupleScheme.class
new file mode 100644
index 00000000..58d1374e
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$authenticate_args$authenticate_argsTupleScheme.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$authenticate_args$authenticate_argsTupleSchemeFactory.class b/Dozentenmodul/bin/thrift/ImageServer$authenticate_args$authenticate_argsTupleSchemeFactory.class
new file mode 100644
index 00000000..4429e284
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$authenticate_args$authenticate_argsTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$authenticate_args.class b/Dozentenmodul/bin/thrift/ImageServer$authenticate_args.class
new file mode 100644
index 00000000..a92fb3e9
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$authenticate_args.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$authenticate_result$_Fields.class b/Dozentenmodul/bin/thrift/ImageServer$authenticate_result$_Fields.class
new file mode 100644
index 00000000..9fcb0a6e
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$authenticate_result$_Fields.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$authenticate_result$authenticate_resultStandardScheme.class b/Dozentenmodul/bin/thrift/ImageServer$authenticate_result$authenticate_resultStandardScheme.class
new file mode 100644
index 00000000..b1243414
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$authenticate_result$authenticate_resultStandardScheme.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$authenticate_result$authenticate_resultStandardSchemeFactory.class b/Dozentenmodul/bin/thrift/ImageServer$authenticate_result$authenticate_resultStandardSchemeFactory.class
new file mode 100644
index 00000000..1c507ea2
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$authenticate_result$authenticate_resultStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$authenticate_result$authenticate_resultTupleScheme.class b/Dozentenmodul/bin/thrift/ImageServer$authenticate_result$authenticate_resultTupleScheme.class
new file mode 100644
index 00000000..4a3edda6
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$authenticate_result$authenticate_resultTupleScheme.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$authenticate_result$authenticate_resultTupleSchemeFactory.class b/Dozentenmodul/bin/thrift/ImageServer$authenticate_result$authenticate_resultTupleSchemeFactory.class
new file mode 100644
index 00000000..c82d6354
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$authenticate_result$authenticate_resultTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$authenticate_result.class b/Dozentenmodul/bin/thrift/ImageServer$authenticate_result.class
new file mode 100644
index 00000000..db12a9f8
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$authenticate_result.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args$_Fields.class b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args$_Fields.class
new file mode 100644
index 00000000..ad982267
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args$_Fields.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args$getUserFromToken_argsStandardScheme.class b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args$getUserFromToken_argsStandardScheme.class
new file mode 100644
index 00000000..9b24fe8f
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args$getUserFromToken_argsStandardScheme.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args$getUserFromToken_argsStandardSchemeFactory.class b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args$getUserFromToken_argsStandardSchemeFactory.class
new file mode 100644
index 00000000..8bac7772
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args$getUserFromToken_argsStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args$getUserFromToken_argsTupleScheme.class b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args$getUserFromToken_argsTupleScheme.class
new file mode 100644
index 00000000..94eb7a5d
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args$getUserFromToken_argsTupleScheme.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args$getUserFromToken_argsTupleSchemeFactory.class b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args$getUserFromToken_argsTupleSchemeFactory.class
new file mode 100644
index 00000000..13e77c2b
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args$getUserFromToken_argsTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args.class b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args.class
new file mode 100644
index 00000000..90aa2fa1
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result$_Fields.class b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result$_Fields.class
new file mode 100644
index 00000000..f306cf9d
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result$_Fields.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result$getUserFromToken_resultStandardScheme.class b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result$getUserFromToken_resultStandardScheme.class
new file mode 100644
index 00000000..8ce44766
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result$getUserFromToken_resultStandardScheme.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result$getUserFromToken_resultStandardSchemeFactory.class b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result$getUserFromToken_resultStandardSchemeFactory.class
new file mode 100644
index 00000000..9cb117e7
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result$getUserFromToken_resultStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result$getUserFromToken_resultTupleScheme.class b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result$getUserFromToken_resultTupleScheme.class
new file mode 100644
index 00000000..e9186710
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result$getUserFromToken_resultTupleScheme.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result$getUserFromToken_resultTupleSchemeFactory.class b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result$getUserFromToken_resultTupleSchemeFactory.class
new file mode 100644
index 00000000..1ba83391
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result$getUserFromToken_resultTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result.class b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result.class
new file mode 100644
index 00000000..bc1a176b
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImages_args$_Fields.class b/Dozentenmodul/bin/thrift/ImageServer$ping_args$_Fields.class
index 6258e64a..af0bbe88 100644
--- a/Dozentenmodulserver/bin/server/Server$getImages_args$_Fields.class
+++ b/Dozentenmodul/bin/thrift/ImageServer$ping_args$_Fields.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$ping_args$ping_argsStandardScheme.class b/Dozentenmodul/bin/thrift/ImageServer$ping_args$ping_argsStandardScheme.class
new file mode 100644
index 00000000..2c2f59cf
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$ping_args$ping_argsStandardScheme.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$ping_args$ping_argsStandardSchemeFactory.class b/Dozentenmodul/bin/thrift/ImageServer$ping_args$ping_argsStandardSchemeFactory.class
new file mode 100644
index 00000000..6fc626ef
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$ping_args$ping_argsStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$ping_args$ping_argsTupleScheme.class b/Dozentenmodul/bin/thrift/ImageServer$ping_args$ping_argsTupleScheme.class
new file mode 100644
index 00000000..822afb2c
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$ping_args$ping_argsTupleScheme.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$ping_args$ping_argsTupleSchemeFactory.class b/Dozentenmodul/bin/thrift/ImageServer$ping_args$ping_argsTupleSchemeFactory.class
new file mode 100644
index 00000000..7b2dc61c
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$ping_args$ping_argsTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImages_args.class b/Dozentenmodul/bin/thrift/ImageServer$ping_args.class
index c68ca8ca..72a484fb 100644
--- a/Dozentenmodulserver/bin/server/Server$getImages_args.class
+++ b/Dozentenmodul/bin/thrift/ImageServer$ping_args.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImages_result$_Fields.class b/Dozentenmodul/bin/thrift/ImageServer$ping_result$_Fields.class
index 01bfd4f4..6af85a25 100644
--- a/Dozentenmodulserver/bin/server/Server$getImages_result$_Fields.class
+++ b/Dozentenmodul/bin/thrift/ImageServer$ping_result$_Fields.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$ping_result$ping_resultStandardScheme.class b/Dozentenmodul/bin/thrift/ImageServer$ping_result$ping_resultStandardScheme.class
new file mode 100644
index 00000000..311b5c76
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$ping_result$ping_resultStandardScheme.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$ping_result$ping_resultStandardSchemeFactory.class b/Dozentenmodul/bin/thrift/ImageServer$ping_result$ping_resultStandardSchemeFactory.class
new file mode 100644
index 00000000..77ed53ce
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$ping_result$ping_resultStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$ping_result$ping_resultTupleScheme.class b/Dozentenmodul/bin/thrift/ImageServer$ping_result$ping_resultTupleScheme.class
new file mode 100644
index 00000000..eb11e143
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$ping_result$ping_resultTupleScheme.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$ping_result$ping_resultTupleSchemeFactory.class b/Dozentenmodul/bin/thrift/ImageServer$ping_result$ping_resultTupleSchemeFactory.class
new file mode 100644
index 00000000..95803bc3
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$ping_result$ping_resultTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer$ping_result.class b/Dozentenmodul/bin/thrift/ImageServer$ping_result.class
new file mode 100644
index 00000000..eb20bac5
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer$ping_result.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ImageServer.class b/Dozentenmodul/bin/thrift/ImageServer.class
new file mode 100644
index 00000000..414f9a34
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ImageServer.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/InvalidTokenException$InvalidTokenExceptionStandardScheme.class b/Dozentenmodul/bin/thrift/InvalidTokenException$InvalidTokenExceptionStandardScheme.class
new file mode 100644
index 00000000..8336b756
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/InvalidTokenException$InvalidTokenExceptionStandardScheme.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/InvalidTokenException$InvalidTokenExceptionStandardSchemeFactory.class b/Dozentenmodul/bin/thrift/InvalidTokenException$InvalidTokenExceptionStandardSchemeFactory.class
new file mode 100644
index 00000000..603e663a
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/InvalidTokenException$InvalidTokenExceptionStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/InvalidTokenException$InvalidTokenExceptionTupleScheme.class b/Dozentenmodul/bin/thrift/InvalidTokenException$InvalidTokenExceptionTupleScheme.class
new file mode 100644
index 00000000..cbce816c
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/InvalidTokenException$InvalidTokenExceptionTupleScheme.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/InvalidTokenException$InvalidTokenExceptionTupleSchemeFactory.class b/Dozentenmodul/bin/thrift/InvalidTokenException$InvalidTokenExceptionTupleSchemeFactory.class
new file mode 100644
index 00000000..0286db6c
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/InvalidTokenException$InvalidTokenExceptionTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/InvalidTokenException$_Fields.class b/Dozentenmodul/bin/thrift/InvalidTokenException$_Fields.class
new file mode 100644
index 00000000..a93a93a8
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/InvalidTokenException$_Fields.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/InvalidTokenException.class b/Dozentenmodul/bin/thrift/InvalidTokenException.class
new file mode 100644
index 00000000..317b760c
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/InvalidTokenException.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/MasterThriftConnection.class b/Dozentenmodul/bin/thrift/MasterThriftConnection.class
new file mode 100644
index 00000000..dd76a766
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/MasterThriftConnection.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/SessionData$SessionDataStandardScheme.class b/Dozentenmodul/bin/thrift/SessionData$SessionDataStandardScheme.class
new file mode 100644
index 00000000..9b8c9ed9
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/SessionData$SessionDataStandardScheme.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/SessionData$SessionDataStandardSchemeFactory.class b/Dozentenmodul/bin/thrift/SessionData$SessionDataStandardSchemeFactory.class
new file mode 100644
index 00000000..132cbe65
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/SessionData$SessionDataStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/SessionData$SessionDataTupleScheme.class b/Dozentenmodul/bin/thrift/SessionData$SessionDataTupleScheme.class
new file mode 100644
index 00000000..eaa4e9a6
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/SessionData$SessionDataTupleScheme.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/SessionData$SessionDataTupleSchemeFactory.class b/Dozentenmodul/bin/thrift/SessionData$SessionDataTupleSchemeFactory.class
new file mode 100644
index 00000000..0abd2b91
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/SessionData$SessionDataTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/SessionData$_Fields.class b/Dozentenmodul/bin/thrift/SessionData$_Fields.class
new file mode 100644
index 00000000..8a9df0f6
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/SessionData$_Fields.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/SessionData.class b/Dozentenmodul/bin/thrift/SessionData.class
new file mode 100644
index 00000000..f084b247
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/SessionData.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ThriftConnection.class b/Dozentenmodul/bin/thrift/ThriftConnection.class
index 25f7f5fe..f378593f 100644
--- a/Dozentenmodul/bin/thrift/ThriftConnection.class
+++ b/Dozentenmodul/bin/thrift/ThriftConnection.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/UserInfo$UserInfoStandardScheme.class b/Dozentenmodul/bin/thrift/UserInfo$UserInfoStandardScheme.class
new file mode 100644
index 00000000..c4a055f7
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/UserInfo$UserInfoStandardScheme.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/UserInfo$UserInfoStandardSchemeFactory.class b/Dozentenmodul/bin/thrift/UserInfo$UserInfoStandardSchemeFactory.class
new file mode 100644
index 00000000..ff60ded1
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/UserInfo$UserInfoStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/UserInfo$UserInfoTupleScheme.class b/Dozentenmodul/bin/thrift/UserInfo$UserInfoTupleScheme.class
new file mode 100644
index 00000000..1d717010
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/UserInfo$UserInfoTupleScheme.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/UserInfo$UserInfoTupleSchemeFactory.class b/Dozentenmodul/bin/thrift/UserInfo$UserInfoTupleSchemeFactory.class
new file mode 100644
index 00000000..adf2a51e
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/UserInfo$UserInfoTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/UserInfo$_Fields.class b/Dozentenmodul/bin/thrift/UserInfo$_Fields.class
new file mode 100644
index 00000000..3bff9fe0
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/UserInfo$_Fields.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/UserInfo.class b/Dozentenmodul/bin/thrift/UserInfo.class
new file mode 100644
index 00000000..ed7e6f12
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/UserInfo.class
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/communicate.thrift b/Dozentenmodul/bin/thrift/communicate.thrift
deleted file mode 100644
index e69de29b..00000000
--- a/Dozentenmodul/bin/thrift/communicate.thrift
+++ /dev/null
diff --git a/Dozentenmodul/img/Image_zu_Veranstaltung_HDD.png b/Dozentenmodul/img/Image_zu_Veranstaltung_HDD.png
new file mode 100644
index 00000000..39b3bac6
--- /dev/null
+++ b/Dozentenmodul/img/Image_zu_Veranstaltung_HDD.png
Binary files differ
diff --git a/Dozentenmodul/lib/slf4j-simple-1.7.6.jar b/Dozentenmodul/lib/slf4j-simple-1.7.6.jar
new file mode 100644
index 00000000..42d03b98
--- /dev/null
+++ b/Dozentenmodul/lib/slf4j-simple-1.7.6.jar
Binary files differ
diff --git a/Dozentenmodul/src/GUI/EingabeImageAllgemein_GUI.java b/Dozentenmodul/src/GUI/EingabeImageAllgemein_GUI.java
deleted file mode 100644
index 12678e0e..00000000
--- a/Dozentenmodul/src/GUI/EingabeImageAllgemein_GUI.java
+++ /dev/null
@@ -1,295 +0,0 @@
-package gui;
-
-
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Toolkit;
-import javax.swing.JFrame;
-import javax.swing.JButton;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.UIManager;
-import javax.swing.UnsupportedLookAndFeelException;
-import javax.swing.border.EmptyBorder;
-import java.awt.Color;
-import javax.swing.JLabel;
-import java.awt.Font;
-import javax.swing.JTextPane;
-import java.awt.SystemColor;
-import javax.swing.JTextField;
-import java.awt.event.ActionListener;
-import java.awt.event.ActionEvent;
-import javax.swing.JSeparator;
-import javax.swing.JMenuBar;
-import javax.swing.JMenu;
-import javax.swing.JMenuItem;
-
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
-import javax.swing.border.TitledBorder;
-import javax.swing.JTextArea;
-
-import models.Image;
-import models.person;
-
-import java.awt.event.MouseAdapter;
-import java.awt.event.MouseEvent;
-
-@SuppressWarnings("serial")
-public class EingabeImageAllgemein_GUI extends JFrame {
-
- private final JPanel contentPanel = new JPanel();
- String[] result;
- private JTextField Vorname;
- private JTextField Nachname;
- private JTextField Hochschule;
- private JTextField EMail;
- private JTextField imagename;
-
- /**
- * Create the dialog.
- */
- public EingabeImageAllgemein_GUI() {
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(WindowEvent arg0) {
- //Beendet das Fenster auf X
- System.exit(0);
- }
- });
- //Verhindert das Vergrößern des Fensters
- setResizable(false);
-
- try {
- //setzt das Look & Feel
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
- } catch (ClassNotFoundException | InstantiationException
- | IllegalAccessException | UnsupportedLookAndFeelException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- //Setzt den Titel
- setTitle("bwLehrpool Suite *Prototyp*");
- //Zentriert das Fenster
- Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
- int top=(screenSize.height - 722) / 2;
- int left=(screenSize.width - 603) / 2;
- setBounds(left, top, 603, 722);
-
- getContentPane().setLayout(null);
- {
- JPanel panel = new JPanel();
- panel.setBackground(SystemColor.menu);
- panel.setBounds(10, 11, 577, 57);
- getContentPane().add(panel);
- panel.setLayout(null);
- {
- JLabel lblNewLabel = new JLabel("Eingabe Ihrer Daten");
- lblNewLabel.setBounds(10, 11, 509, 22);
- panel.add(lblNewLabel);
- lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 18));
- }
-
- JTextPane txtpnBitteWhlenSie = new JTextPane();
- txtpnBitteWhlenSie.setEditable(false);
- txtpnBitteWhlenSie.setBackground(SystemColor.menu);
- txtpnBitteWhlenSie.setText("Geben Sie hier bitte einen sprechenden Imagename sowie Ihre Kontaktdaten an");
- txtpnBitteWhlenSie.setBounds(10, 36, 509, 32);
- panel.add(txtpnBitteWhlenSie);
- }
- contentPanel.setBounds(10, 85, 577, 493);
- contentPanel.setBackground(SystemColor.menu);
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- getContentPane().add(contentPanel);
- contentPanel.setLayout(null);
-
- JPanel panel_1 = new JPanel();
- panel_1.setBackground(SystemColor.menu);
- panel_1.setBorder(new TitledBorder(null, "Informationen zum Besitzer", TitledBorder.LEADING, TitledBorder.TOP, null, null));
- panel_1.setBounds(10, 66, 557, 369);
- contentPanel.add(panel_1);
- panel_1.setLayout(null);
-
- JLabel label = new JLabel("Vorname: *");
- label.setBackground(SystemColor.menu);
- label.setBounds(10, 245, 125, 20);
- panel_1.add(label);
-
- Vorname = new JTextField();
- Vorname.setEnabled(false);
- Vorname.setEditable(false);
- Vorname.setBackground(Color.WHITE);
- Vorname.setText(person.verantowrtlicher.getVorname());
- Vorname.setColumns(10);
- Vorname.setBounds(145, 245, 350, 20);
- panel_1.add(Vorname);
-
- JLabel label_7 = new JLabel("Nachname: *");
- label_7.setBackground(SystemColor.menu);
- label_7.setBounds(10, 276, 125, 20);
- panel_1.add(label_7);
-
- Nachname = new JTextField();
- Nachname.setEnabled(false);
- Nachname.setEditable(false);
- Nachname.setBackground(Color.WHITE);
- Nachname.setText(person.verantowrtlicher.getName());
- Nachname.setColumns(10);
- Nachname.setBounds(145, 276, 350, 20);
- panel_1.add(Nachname);
-
- JLabel label_8 = new JLabel("Hochschule: *");
- label_8.setBackground(SystemColor.menu);
- label_8.setBounds(10, 307, 125, 20);
- panel_1.add(label_8);
-
- Hochschule = new JTextField();
- Hochschule.setEnabled(false);
- Hochschule.setEditable(false);
- Hochschule.setBackground(Color.WHITE);
- Hochschule.setText(person.verantowrtlicher.getHochschule());
- Hochschule.setColumns(10);
- Hochschule.setBounds(145, 307, 350, 20);
- panel_1.add(Hochschule);
-
- JLabel label_9 = new JLabel("E-Mail: *");
- label_9.setBackground(SystemColor.menu);
- label_9.setBounds(10, 338, 125, 20);
- panel_1.add(label_9);
-
- EMail = new JTextField();
- EMail.setEnabled(false);
- EMail.setEditable(false);
- EMail.setBackground(Color.WHITE);
- EMail.setText(person.verantowrtlicher.getEMail());
- EMail.setColumns(10);
- EMail.setBounds(145, 338, 350, 20);
- panel_1.add(EMail);
-
- JLabel lblImagename = new JLabel("Imagename: *");
- lblImagename.setBackground(SystemColor.menu);
- lblImagename.setBounds(10, 31, 125, 20);
- panel_1.add(lblImagename);
-
- imagename = new JTextField();
- imagename.setBackground(Color.WHITE);
- imagename.setText((String) null);
- imagename.setColumns(10);
- imagename.setBounds(145, 31, 350, 20);
- panel_1.add(imagename);
-
- JTextArea txtrGebenSieBitte = new JTextArea();
- txtrGebenSieBitte.setBackground(SystemColor.menu);
- txtrGebenSieBitte.setLineWrap(true);
- txtrGebenSieBitte.setFont(new Font("Tahoma", Font.PLAIN, 12));
- txtrGebenSieBitte.setText("Geben Sie bitte einen sprechenden Namen f\u00FCr das Image an.\r\nDieser soll jedoch recht allgemein gehalten werden.\r\nBeispiel: \"Programmieren\", nicht \"Programmieren 1\"");
- txtrGebenSieBitte.setBounds(145, 62, 350, 110);
- panel_1.add(txtrGebenSieBitte);
-
- JPanel panel = new JPanel();
- panel.setBounds(10, 402, 577, 33);
- contentPanel.add(panel);
- panel.setLayout(null);
- panel.setBorder(new EmptyBorder(5, 5, 5, 5));
- panel.setBackground(SystemColor.menu);
-
- JLabel lblPflichtfelder = new JLabel("* Pflichtfelder");
- lblPflichtfelder.setBounds(10, 442, 136, 14);
- contentPanel.add(lblPflichtfelder);
-
- JLabel lblHauptmen = new JLabel("Hauptmen\u00FC");
- lblHauptmen.addMouseListener(new MouseAdapter() {
- @Override
- public void mouseClicked(MouseEvent arg0) {
- //Öffnet das Hauptmenü
- EingabeImageAllgemein_GUI.this.setVisible(false);
- MainMenue_GUI main=new MainMenue_GUI();
- main.setVisible(true);
- }
- });
- lblHauptmen.setForeground(Color.BLUE);
- lblHauptmen.setBounds(10, 11, 61, 14);
- contentPanel.add(lblHauptmen);
-
- JLabel label_1 = new JLabel(">");
- label_1.setBounds(69, 11, 13, 14);
- contentPanel.add(label_1);
-
- JLabel lblVlimage = new JLabel("VL-Image");
- lblVlimage.setForeground(Color.BLUE);
- lblVlimage.setBounds(81, 11, 45, 14);
- contentPanel.add(lblVlimage);
-
- JLabel label_2 = new JLabel(">");
- label_2.setBounds(133, 11, 13, 14);
- contentPanel.add(label_2);
-
- JLabel lblNewLabel_1 = new JLabel("Neu");
- lblNewLabel_1.setBounds(146, 11, 46, 14);
- contentPanel.add(lblNewLabel_1);
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setBounds(0, 640, 597, 33);
- buttonPane.setBackground(SystemColor.menu);
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- getContentPane().add(buttonPane);
- {
- JButton okButton = new JButton("Zur\u00FCck");
- okButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- Image.image.setImagename(imagename.getText());
- MainMenue_GUI sr=new MainMenue_GUI();
- sr.setVisible(true);
- dispose();
- }
- });
- okButton.setActionCommand("OK");
- buttonPane.add(okButton);
- getRootPane().setDefaultButton(okButton);
- }
- {
- JButton cancelButton = new JButton("Weiter");
- cancelButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- //Prüft die Eingabe
- if(Vorname.getText().isEmpty()==false && Nachname.getText().isEmpty()==false && Hochschule.getText().isEmpty()==false&&EMail.getText().isEmpty()==false)
- {
- //Schreibt die Daten in das Model
- Image.image.setImagename(imagename.getText());
- EingabeImageTechnisch_GUI ea=new EingabeImageTechnisch_GUI();
- ea.setVisible(true);
- dispose();
- }
- else{
- JOptionPane.showMessageDialog(null, "Bitte geben Sie alle notwendigen Daten an!",
- "Error", JOptionPane.ERROR_MESSAGE);
- }
- }
- });
- cancelButton.setActionCommand("Cancel");
- buttonPane.add(cancelButton);
- }
- }
-
- JSeparator separator = new JSeparator();
- separator.setBounds(0, 78, 597, 2);
- getContentPane().add(separator);
-
- JSeparator separator_1 = new JSeparator();
- separator_1.setBounds(0, 627, 597, 2);
- getContentPane().add(separator_1);
-
- JMenuBar menuBar = new JMenuBar();
- setJMenuBar(menuBar);
-
- JMenu mnNewMenu_1 = new JMenu("Hilfe");
- menuBar.add(mnNewMenu_1);
-
- JMenuItem mntmFaq = new JMenuItem("FAQ");
- mnNewMenu_1.add(mntmFaq);
-
- JMenuItem mntmOtrs = new JMenuItem("OTRS");
- mnNewMenu_1.add(mntmOtrs);
-
- }
-}
diff --git a/Dozentenmodul/src/GUI/EingabeImageTechnisch_GUI.java b/Dozentenmodul/src/GUI/EingabeImageTechnisch_GUI.java
deleted file mode 100644
index daf46d99..00000000
--- a/Dozentenmodul/src/GUI/EingabeImageTechnisch_GUI.java
+++ /dev/null
@@ -1,346 +0,0 @@
-package gui;
-
-
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Toolkit;
-import javax.swing.JFrame;
-import javax.swing.JButton;
-import javax.swing.JDialog;
-import javax.swing.JPanel;
-import javax.swing.UIManager;
-import javax.swing.UnsupportedLookAndFeelException;
-import javax.swing.border.EmptyBorder;
-import java.awt.Color;
-import javax.swing.JLabel;
-import java.awt.Font;
-import javax.swing.JTextPane;
-import java.awt.SystemColor;
-import java.awt.event.ActionListener;
-import java.awt.event.ActionEvent;
-import javax.swing.JSeparator;
-import javax.swing.JMenuBar;
-import javax.swing.JMenu;
-import javax.swing.JMenuItem;
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
-import javax.swing.border.TitledBorder;
-import javax.swing.JTextArea;
-import java.awt.event.MouseAdapter;
-import java.awt.event.MouseEvent;
-import javax.swing.JRadioButton;
-import javax.swing.ButtonGroup;
-import javax.swing.JSpinner;
-import javax.swing.SpinnerNumberModel;
-
-import models.Image;
-
-@SuppressWarnings("serial")
-public class EingabeImageTechnisch_GUI extends JFrame {
-
- private final JPanel contentPanel = new JPanel();
- String[] result;
- JSpinner spinnerCPU;
- JSpinner spinnerRam;
- JRadioButton rdbtnlicenseJa;
- JRadioButton rdbtnlicenseNein;
- JRadioButton rdbtnInternetJa;
- JRadioButton rdbtnInternetNein;
- private final ButtonGroup buttonGrouplicense = new ButtonGroup();
- private final ButtonGroup buttonGroupInternet = new ButtonGroup();
- /**
- * Launch the application.
- */
- public static void main(String[] args) {
- try {
- EingabeImageTechnisch_GUI dialog = new EingabeImageTechnisch_GUI();
- dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
- dialog.setVisible(true);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- /**
- * Create the dialog.
- */
- public EingabeImageTechnisch_GUI() {
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(WindowEvent arg0) {
- System.exit(0);
- }
- });
- setResizable(false);
-
- try {
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
- } catch (ClassNotFoundException | InstantiationException
- | IllegalAccessException | UnsupportedLookAndFeelException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- setTitle("bwLehrpool Suite *Prototyp*");
- Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
- int top=(screenSize.height - 722) / 2;
- int left=(screenSize.width - 603) / 2;
- setBounds(left, top, 603, 722);
- //setBounds(100, 100, 603, 722);
- getContentPane().setLayout(null);
- {
- JPanel panel = new JPanel();
- panel.setBackground(SystemColor.menu);
- panel.setBounds(10, 11, 577, 57);
- getContentPane().add(panel);
- panel.setLayout(null);
- {
- JLabel lblNewLabel = new JLabel("Eingabe Ihrer Daten");
- lblNewLabel.setBounds(10, 11, 509, 22);
- panel.add(lblNewLabel);
- lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 18));
- }
-
- JTextPane txtpnBitteWhlenSie = new JTextPane();
- txtpnBitteWhlenSie.setEditable(false);
- txtpnBitteWhlenSie.setBackground(SystemColor.menu);
- txtpnBitteWhlenSie.setText("Geben Sie hier bitte einen sprechenden Imagename sowie Ihre Kontaktdaten an");
- txtpnBitteWhlenSie.setBounds(10, 36, 509, 32);
- panel.add(txtpnBitteWhlenSie);
- }
- contentPanel.setBounds(10, 85, 577, 493);
- contentPanel.setBackground(SystemColor.menu);
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- getContentPane().add(contentPanel);
- contentPanel.setLayout(null);
-
- JPanel panel_1 = new JPanel();
- panel_1.setBackground(SystemColor.menu);
- panel_1.setBorder(new TitledBorder(null, "Informationen zum Image", TitledBorder.LEADING, TitledBorder.TOP, null, null));
- panel_1.setBounds(10, 66, 557, 95);
- contentPanel.add(panel_1);
- panel_1.setLayout(null);
-
- JLabel lblNewLabel_2 = new JLabel("Image enth\u00E4lt lizenzpflichtige Software:");
- lblNewLabel_2.setBounds(10, 30, 250, 20);
- panel_1.add(lblNewLabel_2);
-
- rdbtnlicenseJa = new JRadioButton("Ja");
- rdbtnlicenseJa.setSelected(true);
- buttonGrouplicense.add(rdbtnlicenseJa);
- rdbtnlicenseJa.setBounds(266, 29, 109, 23);
- panel_1.add(rdbtnlicenseJa);
-
- rdbtnlicenseNein = new JRadioButton("Nein");
- buttonGrouplicense.add(rdbtnlicenseNein);
- rdbtnlicenseNein.setBounds(377, 29, 109, 23);
- panel_1.add(rdbtnlicenseNein);
-
- JLabel lblInternetIstInnerhalb = new JLabel("Internet ist innerhalb des Image gesperrt:");
- lblInternetIstInnerhalb.setBounds(10, 58, 250, 20);
- panel_1.add(lblInternetIstInnerhalb);
-
- rdbtnInternetJa = new JRadioButton("Ja");
- buttonGroupInternet.add(rdbtnInternetJa);
- rdbtnInternetJa.setBounds(266, 57, 109, 23);
- panel_1.add(rdbtnInternetJa);
-
- rdbtnInternetNein = new JRadioButton("Nein");
- rdbtnInternetNein.setSelected(true);
- buttonGroupInternet.add(rdbtnInternetNein);
- rdbtnInternetNein.setBounds(377, 57, 109, 23);
- panel_1.add(rdbtnInternetNein);
-
- JLabel lblHauptmen = new JLabel("Hauptmen\u00FC");
- lblHauptmen.addMouseListener(new MouseAdapter() {
- @Override
- public void mouseClicked(MouseEvent arg0) {
-
- EingabeImageTechnisch_GUI.this.setVisible(false);
- MainMenue_GUI main=new MainMenue_GUI();
- main.setVisible(true);
- }
- });
- lblHauptmen.setForeground(Color.BLUE);
- lblHauptmen.setBounds(10, 11, 61, 14);
- contentPanel.add(lblHauptmen);
-
- JLabel label_1 = new JLabel(">");
- label_1.setBounds(69, 11, 13, 14);
- contentPanel.add(label_1);
-
- JLabel lblVlimage = new JLabel("VL-Image");
- lblVlimage.setForeground(Color.BLUE);
- lblVlimage.setBounds(81, 11, 45, 14);
- contentPanel.add(lblVlimage);
-
- JLabel label_2 = new JLabel(">");
- label_2.setBounds(133, 11, 13, 14);
- contentPanel.add(label_2);
-
- JLabel lblNewLabel_1 = new JLabel("Neu");
- lblNewLabel_1.setBounds(146, 11, 46, 14);
- contentPanel.add(lblNewLabel_1);
-
- JPanel panel_2 = new JPanel();
- panel_2.setLayout(null);
- panel_2.setBorder(new TitledBorder(null, "Empfehlung bezüglich Ressourcen", TitledBorder.LEADING, TitledBorder.TOP, null, null));
- panel_2.setBackground(SystemColor.menu);
- panel_2.setBounds(10, 172, 557, 338);
- contentPanel.add(panel_2);
-
- JTextArea txtrHinweisSolltenSie = new JTextArea();
- txtrHinweisSolltenSie.setBackground(SystemColor.menu);
- txtrHinweisSolltenSie.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtrHinweisSolltenSie.setText("Hinweis: Sollten Sie keine Software einsetzen, die viele Ressourcen ben\u00F6tigt,\r\nk\u00F6nnen Sie sich an den Beispielwerten orientieren.");
- txtrHinweisSolltenSie.setBounds(10, 25, 537, 55);
- panel_2.add(txtrHinweisSolltenSie);
-
- JLabel lblNewLabel_3 = new JLabel("Wie viel Arbeitsspeicher empfehlen Sie f\u00FCr das Image:");
- lblNewLabel_3.setBounds(10, 91, 280, 20);
- panel_2.add(lblNewLabel_3);
-
- JLabel lblMindestens = new JLabel("mindestens");
- lblMindestens.setBounds(315, 91, 60, 20);
- panel_2.add(lblMindestens);
-
- spinnerRam = new JSpinner();
- spinnerRam.setModel(new SpinnerNumberModel(1, 1, 8, 1));
- spinnerRam.setBounds(385, 88, 29, 20);
- panel_2.add(spinnerRam);
-
- JLabel lblGbyte = new JLabel("GByte");
- lblGbyte.setBounds(424, 91, 46, 20);
- panel_2.add(lblGbyte);
-
- JTextArea txtrBeispielWindows = new JTextArea();
- txtrBeispielWindows.setText("Beispiel:\r\nWindows 7 32/64 Bit: 2 GByte\r\nLinux/Unix 32/64 Bit: 1 GByte");
- txtrBeispielWindows.setFont(new Font("Tahoma", Font.PLAIN, 11));
- txtrBeispielWindows.setBackground(SystemColor.menu);
- txtrBeispielWindows.setBounds(10, 122, 280, 55);
- panel_2.add(txtrBeispielWindows);
-
- JTextArea txtrBeispielWindows_1 = new JTextArea();
- txtrBeispielWindows_1.setText("Beispiel:\r\nWindows 7 32/64 Bit: 1 Kern\r\nLinux/Unix 32/64 Bit: 1 Kern");
- txtrBeispielWindows_1.setFont(new Font("Tahoma", Font.PLAIN, 11));
- txtrBeispielWindows_1.setBackground(SystemColor.menu);
- txtrBeispielWindows_1.setBounds(10, 222, 280, 55);
- panel_2.add(txtrBeispielWindows_1);
-
- JLabel lblWieVieleCpus = new JLabel("Wie viele CPUs empfehlen Sie f\u00FCr das Image:");
- lblWieVieleCpus.setBounds(10, 191, 280, 20);
- panel_2.add(lblWieVieleCpus);
-
- JLabel label_3 = new JLabel("mindestens");
- label_3.setBounds(315, 191, 60, 20);
- panel_2.add(label_3);
-
- spinnerCPU = new JSpinner();
- spinnerCPU.setModel(new SpinnerNumberModel(1, 1, 4, 1));
- spinnerCPU.setBounds(385, 188, 29, 20);
- panel_2.add(spinnerCPU);
-
- JLabel lblKerne = new JLabel("Kerne");
- lblKerne.setBounds(424, 191, 46, 20);
- panel_2.add(lblKerne);
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setBounds(0, 640, 597, 33);
- buttonPane.setBackground(SystemColor.menu);
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- getContentPane().add(buttonPane);
- {
- JButton okButton = new JButton("Zur\u00FCck");
- okButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
-
- if(rdbtnInternetJa.isSelected()==true)
- {
- Image.image.setInternet(true);
- }
- else
- {
- Image.image.setInternet(false);
- }
-
- if(rdbtnlicenseJa.isSelected()==true)
- {
- Image.image.setLicensed(true);
- }
- else
- {
- Image.image.setLicensed(false);
- }
- Image.image.setCpu(Integer.valueOf(spinnerCPU.getValue().toString()).intValue());
- Image.image.setRam(Integer.valueOf(spinnerRam.getValue().toString()).intValue());
-
- EingabeImageAllgemein_GUI sr=new EingabeImageAllgemein_GUI();
- sr.setVisible(true);
- dispose();
- }
- });
- okButton.setActionCommand("OK");
- buttonPane.add(okButton);
- getRootPane().setDefaultButton(okButton);
- }
- {
- JButton cancelButton = new JButton("Weiter");
- cancelButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- if(rdbtnInternetJa.isSelected()==true)
- {
- Image.image.setInternet(true);
- }
- else
- {
- Image.image.setInternet(false);
- }
-
- if(rdbtnlicenseJa.isSelected()==true)
- {
- Image.image.setLicensed(true);
- }
- else
- {
- Image.image.setLicensed(false);
- }
- Image.image.setCpu(Integer.valueOf(spinnerCPU.getValue().toString()).intValue());
- Image.image.setRam(Integer.valueOf(spinnerRam.getValue().toString()).intValue());
- FTPUploader_GUI ea=new FTPUploader_GUI();
- ea.setVisible(true);
- dispose();
-
- }
- });
- cancelButton.setActionCommand("Cancel");
- buttonPane.add(cancelButton);
- }
- }
-
- JSeparator separator = new JSeparator();
- separator.setBounds(0, 78, 597, 2);
- getContentPane().add(separator);
-
- JSeparator separator_1 = new JSeparator();
- separator_1.setBounds(0, 627, 597, 2);
- getContentPane().add(separator_1);
-
- JMenuBar menuBar = new JMenuBar();
- setJMenuBar(menuBar);
-
- JMenu mnNewMenu = new JMenu("Suchen");
- menuBar.add(mnNewMenu);
-
- JMenuItem mntmVlSuche = new JMenuItem("VL Suche");
- mnNewMenu.add(mntmVlSuche);
-
- JMenu mnNewMenu_1 = new JMenu("Hilfe");
- menuBar.add(mnNewMenu_1);
-
- JMenuItem mntmFaq = new JMenuItem("FAQ");
- mnNewMenu_1.add(mntmFaq);
-
- JMenuItem mntmOtrs = new JMenuItem("OTRS");
- mnNewMenu_1.add(mntmOtrs);
-
- }
-}
diff --git a/Dozentenmodul/src/GUI/EingabeVeranstatlungTechnisch_GUI.java b/Dozentenmodul/src/GUI/EingabeVeranstatlungTechnisch_GUI.java
deleted file mode 100644
index 6f645ac5..00000000
--- a/Dozentenmodul/src/GUI/EingabeVeranstatlungTechnisch_GUI.java
+++ /dev/null
@@ -1,328 +0,0 @@
-package gui;
-
-
-import java.awt.Color;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.ScrollPane;
-import java.awt.SystemColor;
-import java.awt.Toolkit;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.MouseAdapter;
-import java.awt.event.MouseEvent;
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
-
-import javax.swing.ButtonGroup;
-import javax.swing.JButton;
-import javax.swing.JDialog;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JMenu;
-import javax.swing.JMenuBar;
-import javax.swing.JMenuItem;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JSeparator;
-import javax.swing.JTextArea;
-import javax.swing.JTextField;
-import javax.swing.JTextPane;
-import javax.swing.UIManager;
-import javax.swing.UnsupportedLookAndFeelException;
-import javax.swing.border.EmptyBorder;
-
-import models.Image;
-import models.Lecture;
-
-
-import com.toedter.calendar.JDateChooser;
-
-@SuppressWarnings("serial")
-public class EingabeVeranstatlungTechnisch_GUI extends JFrame {
-
- private final JPanel contentPanel = new JPanel();
- String[] result;
- private JTextField textFieldLaborname;
- JRadioButton rdbtnJa;
- JDateChooser dateChooserend;
- JDateChooser dateChooserstart;
- JTextArea textAreashort;
- JTextArea textArealong;
- private final ButtonGroup buttonGroup = new ButtonGroup();
- /**
- * Launch the application.
- */
- public static void main(String[] args) {
- try {
- EingabeVeranstatlungTechnisch_GUI dialog = new EingabeVeranstatlungTechnisch_GUI();
- dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
- dialog.setVisible(true);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- /**
- * Create the dialog.
- */
- public EingabeVeranstatlungTechnisch_GUI() {
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(WindowEvent arg0) {
- System.exit(0);
- }
- });
- setResizable(false);
-
- try {
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
- } catch (ClassNotFoundException | InstantiationException
- | IllegalAccessException | UnsupportedLookAndFeelException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- setTitle("bwLehrpool Suite *Prototyp*");
- Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
- int top=(screenSize.height - 722) / 2;
- int left=(screenSize.width - 603) / 2;
- setBounds(left, top, 603, 722);
- //setBounds(100, 100, 603, 722);
- getContentPane().setLayout(null);
- {
- JPanel panel = new JPanel();
- panel.setBackground(SystemColor.menu);
- panel.setBounds(10, 11, 577, 57);
- getContentPane().add(panel);
- panel.setLayout(null);
- {
- JLabel lblNewLabel = new JLabel("Dateneingabe f\u00FCr Veranstaltung");
- lblNewLabel.setBounds(10, 11, 509, 22);
- panel.add(lblNewLabel);
- lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 18));
- }
-
- JTextPane txtpnBitteWhlenSie = new JTextPane();
- txtpnBitteWhlenSie.setEditable(false);
- txtpnBitteWhlenSie.setBackground(SystemColor.menu);
- txtpnBitteWhlenSie.setText("Geben Sie hier bitte einen sprechenden Imagename sowie Ihre Kontaktdaten an");
- txtpnBitteWhlenSie.setBounds(10, 36, 509, 32);
- panel.add(txtpnBitteWhlenSie);
- }
- contentPanel.setBounds(10, 85, 577, 531);
- contentPanel.setBackground(SystemColor.menu);
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- getContentPane().add(contentPanel);
- contentPanel.setLayout(null);
-
- JLabel lblHauptmen = new JLabel("Hauptmen\u00FC");
- lblHauptmen.addMouseListener(new MouseAdapter() {
- @Override
- public void mouseClicked(MouseEvent arg0) {
-
- EingabeVeranstatlungTechnisch_GUI.this.setVisible(false);
- MainMenue_GUI main=new MainMenue_GUI();
- main.setVisible(true);
- }
- });
- lblHauptmen.setForeground(Color.BLUE);
- lblHauptmen.setBounds(10, 11, 61, 14);
- contentPanel.add(lblHauptmen);
-
- JLabel label_1 = new JLabel(">");
- label_1.setBounds(69, 11, 13, 14);
- contentPanel.add(label_1);
-
- JLabel lblVlimage = new JLabel("Veranstaltung ");
- lblVlimage.setForeground(Color.BLUE);
- lblVlimage.setBounds(81, 11, 74, 14);
- contentPanel.add(lblVlimage);
-
- JLabel label_2 = new JLabel(">");
- label_2.setBounds(152, 11, 13, 14);
- contentPanel.add(label_2);
-
- JLabel lblNewLabel_1 = new JLabel("Neu");
- lblNewLabel_1.setBounds(165, 11, 46, 14);
- contentPanel.add(lblNewLabel_1);
-
- JLabel lblLabornameanzeigename = new JLabel("Laborname (Anzeigename): *");
- lblLabornameanzeigename.setBounds(10, 57, 250, 14);
- contentPanel.add(lblLabornameanzeigename);
-
- textFieldLaborname = new JTextField();
- textFieldLaborname.setBounds(270, 54, 307, 20);
- contentPanel.add(textFieldLaborname);
- textFieldLaborname.setColumns(10);
-
- JLabel lblKurzbeschreibung = new JLabel("Kurzbeschreibung: *");
- lblKurzbeschreibung.setBounds(10, 175, 250, 14);
- contentPanel.add(lblKurzbeschreibung);
-
- ScrollPane scrollPane = new ScrollPane();
- scrollPane.setBounds(270, 175, 307, 137);
- contentPanel.add(scrollPane);
-
- textAreashort = new JTextArea();
- textAreashort.setLineWrap(true);
- scrollPane.add(textAreashort);
- textAreashort.setBounds(0, 0, 4, 22);
-
- ScrollPane scrollPane_1 = new ScrollPane();
- scrollPane_1.setBounds(270, 315, 307, 137);
- contentPanel.add(scrollPane_1);
-
- textArealong = new JTextArea();
- textArealong.setLineWrap(true);
- textArealong.setBounds(0, 0, 4, 22);
- scrollPane_1.add(textArealong);
-
- JLabel label = new JLabel("Kurzbeschreibung: *");
- label.setBounds(0, 318, 250, 14);
- contentPanel.add(label);
-
- JLabel lblGltigkeitsdatum = new JLabel("G\u00FCltigkeitsdatum: *");
- lblGltigkeitsdatum.setBounds(0, 464, 250, 14);
- contentPanel.add(lblGltigkeitsdatum);
-
- JLabel lblVon = new JLabel("von:");
- lblVon.setBounds(270, 461, 30, 20);
- contentPanel.add(lblVon);
-
- dateChooserstart = new JDateChooser();
- dateChooserstart.setDateFormatString("yyyy-MM-dd hh:mm:ss");
- dateChooserstart.setBounds(332, 458, 101, 20);
- contentPanel.add(dateChooserstart);
-
- JLabel lblBis = new JLabel("bis");
- lblBis.setBounds(443, 461, 24, 20);
- contentPanel.add(lblBis);
-
- dateChooserend = new JDateChooser();
- dateChooserend.setDateFormatString("dd.MM.yyyy hh:mm:ss");
- dateChooserend.setBounds(477, 459, 100, 20);
- contentPanel.add(dateChooserend);
-
- JLabel lblAktiv = new JLabel("Aktiv:");
- lblAktiv.setBounds(0, 492, 250, 14);
- contentPanel.add(lblAktiv);
-
- JLabel lblimVmchooserSichtbar = new JLabel("(Im VMChooser sichtbar)");
- lblimVmchooserSichtbar.setBounds(0, 517, 250, 14);
- contentPanel.add(lblimVmchooserSichtbar);
-
- rdbtnJa = new JRadioButton("Ja");
- rdbtnJa.setSelected(true);
- buttonGroup.add(rdbtnJa);
- rdbtnJa.setBounds(270, 488, 109, 23);
- contentPanel.add(rdbtnJa);
-
- JRadioButton rdbtnNein = new JRadioButton("Nein");
- buttonGroup.add(rdbtnNein);
- rdbtnNein.setBounds(381, 488, 109, 23);
- contentPanel.add(rdbtnNein);
-
- JTextArea txtrGebenSieBitte = new JTextArea();
- txtrGebenSieBitte.setWrapStyleWord(true);
- txtrGebenSieBitte.setText("Geben Sie bitte einen sprechenden Namen f\u00FCr das Image an. Dieser soll jedoch recht allgemein gehalten werden.\r\nBeispiel: \"Programmieren\", nicht \"Programmieren 1\"");
- txtrGebenSieBitte.setLineWrap(true);
- txtrGebenSieBitte.setFont(new Font("Tahoma", Font.PLAIN, 12));
- txtrGebenSieBitte.setBackground(SystemColor.menu);
- txtrGebenSieBitte.setBounds(10, 82, 567, 59);
- contentPanel.add(txtrGebenSieBitte);
- //contentPanel.add(textArea);
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setBounds(0, 640, 597, 33);
- buttonPane.setBackground(SystemColor.menu);
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- getContentPane().add(buttonPane);
- {
- JButton okButton = new JButton("Zur\u00FCck");
- okButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
-
- if(rdbtnJa.isSelected()==true)
- {
- Lecture.lecture.setActive(true);
- }
- else
- {
- Lecture.lecture.setActive(false);
- }
-
- Lecture.lecture.setName(textFieldLaborname.getText());
- Lecture.lecture.setDesc(textArealong.getText());
- Lecture.lecture.setEnddate(dateChooserend.getDate());
- Lecture.lecture.setShortDesc(textAreashort.getText());
- Lecture.lecture.setStartdate(dateChooserstart.getDate());
- Image.image.setImagename(textFieldLaborname.getText());
-
- EingabeVeranstaltungAllgemein_GUI sr=new EingabeVeranstaltungAllgemein_GUI();
- sr.setVisible(true);
- dispose();
- }
- });
- okButton.setActionCommand("OK");
- buttonPane.add(okButton);
- getRootPane().setDefaultButton(okButton);
- }
- {
- JButton cancelButton = new JButton("Weiter");
- cancelButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- if(rdbtnJa.isSelected()==true)
- {
- Lecture.lecture.setActive(true);
- }
- else
- {
- Lecture.lecture.setActive(false);
- }
-
- Lecture.lecture.setName(textFieldLaborname.getText());
- Lecture.lecture.setDesc(textArealong.getText());
- Lecture.lecture.setEnddate(dateChooserend.getDate());
- Lecture.lecture.setShortDesc(textAreashort.getText());
- Lecture.lecture.setStartdate(dateChooserstart.getDate());
- Image.image.setImagename(textFieldLaborname.getText());
- LinkImage_GUI ea=new LinkImage_GUI();
- ea.setVisible(true);
- dispose();
-
- }
- });
- cancelButton.setActionCommand("Cancel");
- buttonPane.add(cancelButton);
- }
- }
-
- JSeparator separator = new JSeparator();
- separator.setBounds(0, 78, 597, 2);
- getContentPane().add(separator);
-
- JSeparator separator_1 = new JSeparator();
- separator_1.setBounds(0, 627, 597, 2);
- getContentPane().add(separator_1);
-
- JMenuBar menuBar = new JMenuBar();
- setJMenuBar(menuBar);
-
- JMenu mnNewMenu = new JMenu("Suchen");
- menuBar.add(mnNewMenu);
-
- JMenuItem mntmVlSuche = new JMenuItem("VL Suche");
- mnNewMenu.add(mntmVlSuche);
-
- JMenu mnNewMenu_1 = new JMenu("Hilfe");
- menuBar.add(mnNewMenu_1);
-
- JMenuItem mntmFaq = new JMenuItem("FAQ");
- mnNewMenu_1.add(mntmFaq);
-
- JMenuItem mntmOtrs = new JMenuItem("OTRS");
- mnNewMenu_1.add(mntmOtrs);
-
- }
-}
diff --git a/Dozentenmodul/src/GUI/FTPDownloader_GUI.java b/Dozentenmodul/src/GUI/FTPDownloader_GUI.java
deleted file mode 100644
index 702b7f67..00000000
--- a/Dozentenmodul/src/GUI/FTPDownloader_GUI.java
+++ /dev/null
@@ -1,348 +0,0 @@
-package gui;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Toolkit;
-import java.io.File;
-
-import javax.swing.JButton;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JPanel;
-import javax.swing.JProgressBar;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.UnsupportedLookAndFeelException;
-import javax.swing.border.EmptyBorder;
-
-import ftp.DownloadTask;
-
-import java.awt.event.ActionListener;
-import java.awt.event.ActionEvent;
-import java.beans.PropertyChangeEvent;
-import java.beans.PropertyChangeListener;
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
-import java.awt.SystemColor;
-import java.awt.Font;
-import javax.swing.JTextPane;
-import javax.swing.JSeparator;
-
-import org.apache.thrift.TException;
-
-import server.Server.Client;
-import server.User;
-import thrift.ThriftConnection;
-
-@SuppressWarnings("serial")
-public class FTPDownloader_GUI extends JFrame implements PropertyChangeListener {
-
- @SuppressWarnings("unused")
- private JPanel contentPane;
- private final JPanel contentPanel = new JPanel();
- JLabel lblNewLabel;
- JLabel downspeed;
- User user;
- JProgressBar progressBar;
- String host="141.79.1+ü28.121";
- int port=21;
- String username="openslx";
- String password="openslx-ng";
- String downloadPath="";
- String filename="";
- static String arg="";
- DownloadTask task;
- JLabel bytesreadlbl;
- JLabel lblNewLabel_3;
- JLabel labelVerbleibend;
- long filesize;
- double speed;
- long bytesread;
- JLabel labelZeit;
- boolean taskrun=false;
- ThriftConnection thrift=new ThriftConnection();
- Client client=thrift.getThriftConnection();
- /**
- * Launch the application.
- */
- /*public static void main(String[] args) {
- EventQueue.invokeLater(new Runnable() {
- public void run() {
- try {
- FTPDownloader frame = new FTPDownloader();
- frame.setVisible(true);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- });
- }*/
-
- /**
- * Create the frame.
- */
- public FTPDownloader_GUI(String name) {
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(WindowEvent e) {
- if(taskrun==true)
- {
- try {
- client.DeleteFtpUser(user.userName);
- } catch (TException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- }
- task.cancel(true);
- }
- dispose();
- }
- });
- setResizable(false);
- //setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
-
- filename=name;
-
- try {
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
- } catch (ClassNotFoundException | InstantiationException
- | IllegalAccessException | UnsupportedLookAndFeelException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
- //filename=name;
- setBackground(Color.WHITE);
- setTitle("Dozentenmodul *Prototyp*");
- Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
- int top=(screenSize.height - 722) / 2;
- int left=(screenSize.width - 603) / 2;
- setBounds(left, top, 603, 722);
- getContentPane().setLayout(new BorderLayout());
- contentPanel.setBackground(SystemColor.menu);
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- getContentPane().add(contentPanel, BorderLayout.CENTER);
- contentPanel.setLayout(null);
- {
- JButton btnSpeicherortAuswhlen = new JButton("Speicherort ausw\u00E4hlen");
- btnSpeicherortAuswhlen.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- JFileChooser fc=new JFileChooser();
- fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
-
- fc.showOpenDialog(getParent());
- File dir=fc.getSelectedFile();
- lblNewLabel.setText(dir.getAbsolutePath());
- }
- });
-
- btnSpeicherortAuswhlen.setBounds(10, 124, 141, 23);
- btnSpeicherortAuswhlen.setVerticalAlignment(SwingConstants.TOP);
- btnSpeicherortAuswhlen.setHorizontalAlignment(SwingConstants.LEFT);
- contentPanel.add(btnSpeicherortAuswhlen);
- }
-
- lblNewLabel = new JLabel("C:\\");
- lblNewLabel.setBounds(169, 124, 255, 23);
- contentPanel.add(lblNewLabel);
-
- JButton btnDownloadStarten = new JButton("Download starten");
- btnDownloadStarten.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- buttonDownloadActionPerformed(arg0);
- }
- });
-
- btnDownloadStarten.setBounds(10, 294, 141, 23);
- contentPanel.add(btnDownloadStarten);
-
- progressBar = new JProgressBar(0,100);
- progressBar.setStringPainted(true);
-
-
- progressBar.setBounds(10, 158, 577, 30);
- contentPanel.add(progressBar);
-
- JLabel lblDownloadgeschwindigkeit = new JLabel("Downloadgeschwindigkeit:");
- lblDownloadgeschwindigkeit.setBounds(10, 194, 141, 14);
- contentPanel.add(lblDownloadgeschwindigkeit);
-
- downspeed = new JLabel("0");
- downspeed.setBounds(261, 194, 95, 14);
- contentPanel.add(downspeed);
-
- JLabel lblNewLabel_1 = new JLabel("Fertig:");
- lblNewLabel_1.setBounds(10, 244, 46, 14);
- contentPanel.add(lblNewLabel_1);
-
- bytesreadlbl = new JLabel("");
- bytesreadlbl.setBounds(66, 244, 108, 14);
- contentPanel.add(bytesreadlbl);
-
- JLabel lblNewLabel_2 = new JLabel("von:");
- lblNewLabel_2.setBounds(179, 244, 46, 14);
- contentPanel.add(lblNewLabel_2);
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setBounds(235, 244, 108, 14);
- contentPanel.add(lblNewLabel_3);
-
- JLabel lblMbVerbleibend = new JLabel("Verbleibend:");
- lblMbVerbleibend.setBounds(10, 269, 71, 14);
- contentPanel.add(lblMbVerbleibend);
-
- labelVerbleibend = new JLabel("");
- labelVerbleibend.setBounds(91, 269, 108, 14);
- contentPanel.add(labelVerbleibend);
-
- JLabel lblGeschtzteVerbleibendeZeit = new JLabel("Gesch\u00E4tzte Verbleibende Zeit:");
- lblGeschtzteVerbleibendeZeit.setBounds(10, 219, 150, 14);
- contentPanel.add(lblGeschtzteVerbleibendeZeit);
-
- labelZeit = new JLabel("");
- labelZeit.setBounds(261, 219, 117, 14);
- contentPanel.add(labelZeit);
-
- JPanel panel = new JPanel();
- panel.setLayout(null);
- panel.setBackground(SystemColor.menu);
- panel.setBounds(10, 11, 577, 57);
- contentPanel.add(panel);
-
- JLabel label = new JLabel("Eingabe Ihrer Daten");
- label.setFont(new Font("Tahoma", Font.BOLD, 18));
- label.setBounds(10, 11, 509, 22);
- panel.add(label);
-
- JTextPane textPane = new JTextPane();
- textPane.setText("Geben Sie hier bitte einen sprechenden Imagename sowie Ihre Kontaktdaten an");
- textPane.setEditable(false);
- textPane.setBackground(SystemColor.menu);
- textPane.setBounds(10, 36, 509, 32);
- panel.add(textPane);
-
- JSeparator separator = new JSeparator();
- separator.setBounds(0, 79, 597, 2);
- contentPanel.add(separator);
-
- JLabel label_1 = new JLabel("Hauptmen\u00FC");
- label_1.setForeground(Color.BLUE);
- label_1.setBounds(20, 88, 61, 20);
- contentPanel.add(label_1);
-
- JLabel label_2 = new JLabel(">");
- label_2.setBounds(80, 91, 14, 14);
- contentPanel.add(label_2);
-
- JLabel label_3 = new JLabel("VL-Image");
- label_3.setForeground(Color.BLUE);
- label_3.setBounds(91, 88, 46, 20);
- contentPanel.add(label_3);
-
- JLabel label_4 = new JLabel(">");
- label_4.setBounds(139, 91, 14, 14);
- contentPanel.add(label_4);
-
- JLabel label_5 = new JLabel("Neu/Bearbeiten");
- label_5.setBounds(149, 91, 108, 14);
- contentPanel.add(label_5);
-
- JSeparator separator_1 = new JSeparator();
- separator_1.setBounds(-10, 648, 597, 2);
- contentPanel.add(separator_1);
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setBackground(UIManager.getColor("Button.background"));
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- getContentPane().add(buttonPane, BorderLayout.SOUTH);
- {
- JButton cancelButton = new JButton("Weiter");
- cancelButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- if(taskrun==true)
- {
- task.cancel(true);
- try {
- client.DeleteFtpUser(user.userName);
- } catch (TException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- }
- }
- dispose();
- }
- });
-
- JButton btnZurck = new JButton("Zur\u00FCck");
- btnZurck.setActionCommand("Cancel");
- buttonPane.add(btnZurck);
- cancelButton.setActionCommand("Cancel");
- buttonPane.add(cancelButton);
- }
- }
- setVisible(true);
-
- }
-
- private void buttonDownloadActionPerformed(ActionEvent event) {
-
- progressBar.setValue(0);
-
- try {
- user=client.getFtpUser();
- //downloadPath=client.getPathOfImage(filename);
- } catch (TException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
- task = new DownloadTask(host, port, user.userName, user.password,user.path+filename+".vmdk", lblNewLabel.getText(), this);
- task.addPropertyChangeListener(this);
- task.execute();
- taskrun=true;
-
- }
-
- public void propertyChange(PropertyChangeEvent arg0) {
-
-
- if ("progress" == arg0.getPropertyName()) {
- int progress = (Integer) arg0.getNewValue();
- progressBar.setValue(progress);
- }
- if("speed"==arg0.getPropertyName()){
- speed=(double)arg0.getNewValue();
- //if(speed<=1){
-
- downspeed.setText(String.valueOf(speed).substring(0,String.valueOf(speed).lastIndexOf(".")+3)+" MB/s");
-
- // }else
- //{
- //double MBSpeed=speed/1024;
- //downspeed.setText(String.valueOf((MBSpeed)).substring(0, String.valueOf(MBSpeed).indexOf(".")));
- //}
-
- }
- if("bytesread"==arg0.getPropertyName())
- {
- bytesread=(long)arg0.getNewValue();
- bytesreadlbl.setText((bytesread/1024/1024)+" MB");
- labelVerbleibend.setText(((filesize/1024/1024)-(bytesread/1024/1024))+" MB");
-
-
- labelZeit.setText(String.valueOf(((((filesize/1024/1024)-(bytesread/1024/1024))/speed)/60)+1).substring(0,String.valueOf((((filesize/1024/1024)-(bytesread/1024/1024))/speed)/60).lastIndexOf("."))+ " Minuten");
-
-
- }
- if("filesize"==arg0.getPropertyName())
- {
- filesize=(long)arg0.getNewValue();
- lblNewLabel_3.setText((filesize/1024/1024)+" MB");
-
- }
-
- }
-} \ No newline at end of file
diff --git a/Dozentenmodul/src/GUI/FTPUploader_GUI.java b/Dozentenmodul/src/GUI/FTPUploader_GUI.java
deleted file mode 100644
index 078f8075..00000000
--- a/Dozentenmodul/src/GUI/FTPUploader_GUI.java
+++ /dev/null
@@ -1,418 +0,0 @@
-package gui;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Dimension;
-import java.awt.EventQueue;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.Toolkit;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
-import java.beans.PropertyChangeEvent;
-import java.beans.PropertyChangeListener;
-import java.io.File;
-
-import javax.swing.JButton;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JMenu;
-import javax.swing.JMenuBar;
-import javax.swing.JPanel;
-import javax.swing.JProgressBar;
-import javax.swing.JSeparator;
-import javax.swing.JTextPane;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.UnsupportedLookAndFeelException;
-import javax.swing.border.EmptyBorder;
-
-import models.Image;
-import models.person;
-
-import org.apache.thrift.TException;
-
-import server.Server.Client;
-import thrift.ThriftConnection;
-import ftp.UploadTask;
-
-
-@SuppressWarnings("serial")
-public class FTPUploader_GUI extends JFrame implements PropertyChangeListener {
-
- @SuppressWarnings("unused")
- private JPanel contentPane;
- private final JPanel contentPanel = new JPanel();
- JLabel lblNewLabel;
- JProgressBar progressBar;
- String host="141.79.128.121";
- int port=21;
- server.User user;
- String filename="";
- File uploadFile;
- static String arg="";
- UploadTask task;
- JLabel UpSpeed;
- JLabel labelfertig;
- JLabel labelfilesize;
- JLabel labelZeit;
- JLabel labelverbleibend;
- long filesize;
- double speed;
- long bytesread;
- boolean taskrun=false;
- ThriftConnection thrift=new ThriftConnection();
- Client client=thrift.getThriftConnection();
- /**
- * Launch the application.
- */
- public static void main(String[] args) {
- EventQueue.invokeLater(new Runnable() {
- public void run() {
- try {
- FTPUploader_GUI frame = new FTPUploader_GUI();
- frame.setVisible(true);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- });
- }
-
- /**
- * Create the frame.
- */
- public FTPUploader_GUI() {
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(WindowEvent arg0) {
- if(taskrun==true)
- {
- try {
-
- client.DeleteFtpUser(user.userName);
- } catch (TException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- }
- task.cancel(true);
- }
- }
- });
- setResizable(false);
- //setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
-
-
-
- try {
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
- } catch (ClassNotFoundException | InstantiationException
- | IllegalAccessException | UnsupportedLookAndFeelException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
- //filename=name;
- setBackground(Color.WHITE);
- setTitle("Dozentenmodul *Prototyp*");
- Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
- int top=(screenSize.height - 722) / 2;
- int left=(screenSize.width - 603) / 2;
- setBounds(left, top, 603, 722);
- //setBounds(100, 100, 603, 250);
- getContentPane().setLayout(new BorderLayout());
- contentPanel.setBackground(SystemColor.menu);
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- getContentPane().add(contentPanel, BorderLayout.CENTER);
- contentPanel.setLayout(null);
- {
- JButton btnSpeicherortAuswhlen = new JButton("VMDK ausw\u00E4hlen");
- btnSpeicherortAuswhlen.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- JFileChooser fc=new JFileChooser();
- fc.setFileSelectionMode(JFileChooser.FILES_ONLY);
-
- fc.showOpenDialog(getParent());
- File dir=fc.getSelectedFile();
- uploadFile=dir;
- filename=uploadFile.getName();
- lblNewLabel.setText(dir.getAbsolutePath());
- }
- });
-
- btnSpeicherortAuswhlen.setBounds(10, 124, 141, 23);
- btnSpeicherortAuswhlen.setVerticalAlignment(SwingConstants.TOP);
- btnSpeicherortAuswhlen.setHorizontalAlignment(SwingConstants.LEFT);
- contentPanel.add(btnSpeicherortAuswhlen);
- }
-
- lblNewLabel = new JLabel("");
- lblNewLabel.setBounds(184, 124, 255, 23);
- contentPanel.add(lblNewLabel);
-
- JButton btnDownloadStarten = new JButton("Upload starten");
- btnDownloadStarten.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- buttonUploadActionPerformed(arg0);
-
- }
- });
-
- btnDownloadStarten.setBounds(10, 330, 141, 23);
- contentPanel.add(btnDownloadStarten);
-
- progressBar = new JProgressBar(0,100);
- progressBar.setStringPainted(true);
-
-
- progressBar.setBounds(10, 158, 577, 30);
- contentPanel.add(progressBar);
-
- JLabel label = new JLabel("Downloadgeschwindigkeit:");
- label.setBounds(10, 199, 141, 14);
- contentPanel.add(label);
-
- JLabel label_1 = new JLabel("Fertig:");
- label_1.setBounds(10, 249, 46, 14);
- contentPanel.add(label_1);
-
- labelfertig = new JLabel("0");
- labelfertig.setBounds(66, 249, 108, 14);
- contentPanel.add(labelfertig);
-
- UpSpeed = new JLabel("0");
- UpSpeed.setBounds(329, 199, 95, 14);
- contentPanel.add(UpSpeed);
-
- JLabel label_4 = new JLabel("von:");
- label_4.setBounds(184, 249, 46, 14);
- contentPanel.add(label_4);
-
- labelfilesize = new JLabel("0");
- labelfilesize.setBounds(240, 249, 108, 14);
- contentPanel.add(labelfilesize);
-
- JLabel label_6 = new JLabel("Verbleibend:");
- label_6.setBounds(10, 274, 71, 14);
- contentPanel.add(label_6);
-
- JLabel label_7 = new JLabel("Gesch\u00E4tzte Verbleibende Zeit:");
- label_7.setBounds(10, 224, 150, 14);
- contentPanel.add(label_7);
-
- labelZeit = new JLabel("0");
- labelZeit.setBounds(329, 224, 117, 14);
- contentPanel.add(labelZeit);
-
- labelverbleibend = new JLabel("0");
- labelverbleibend.setBounds(91, 274, 108, 14);
- contentPanel.add(labelverbleibend);
-
- JPanel panel = new JPanel();
- panel.setLayout(null);
- panel.setBackground(SystemColor.menu);
- panel.setBounds(10, 11, 577, 57);
- contentPanel.add(panel);
-
- JLabel label_2 = new JLabel("Eingabe Ihrer Daten");
- label_2.setFont(new Font("Tahoma", Font.BOLD, 18));
- label_2.setBounds(10, 11, 509, 22);
- panel.add(label_2);
-
- JTextPane textPane = new JTextPane();
- textPane.setText("Geben Sie hier bitte einen sprechenden Imagename sowie Ihre Kontaktdaten an");
- textPane.setEditable(false);
- textPane.setBackground(SystemColor.menu);
- textPane.setBounds(10, 36, 509, 32);
- panel.add(textPane);
-
- JSeparator separator = new JSeparator();
- separator.setBounds(0, 79, 597, 2);
- contentPanel.add(separator);
-
- JLabel lblNewLabel_1 = new JLabel("Hauptmen\u00FC");
- lblNewLabel_1.setForeground(Color.BLUE);
- lblNewLabel_1.setBounds(20, 88, 61, 20);
- contentPanel.add(lblNewLabel_1);
-
- JLabel label_3 = new JLabel(">");
- label_3.setBounds(80, 91, 14, 14);
- contentPanel.add(label_3);
-
- JLabel lblVlimage = new JLabel("VL-Image");
- lblVlimage.setForeground(Color.BLUE);
- lblVlimage.setBounds(91, 88, 46, 20);
- contentPanel.add(lblVlimage);
-
- JLabel label_5 = new JLabel(">");
- label_5.setBounds(139, 91, 14, 14);
- contentPanel.add(label_5);
-
- JLabel lblNeubearbeiten = new JLabel("Neu/Bearbeiten");
- lblNeubearbeiten.setBounds(149, 91, 108, 14);
- contentPanel.add(lblNeubearbeiten);
-
- JSeparator separator_1 = new JSeparator();
- separator_1.setBounds(0, 627, 597, 2);
- contentPanel.add(separator_1);
-
- JButton btnCopyFileTo = new JButton("Copy File to Prod");
- btnCopyFileTo.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- try {
- client.startFileCopy(user.path+"/"+uploadFile.getName());
- } catch (TException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- }
- }
- });
- btnCopyFileTo.setBounds(10, 375, 264, 23);
- contentPanel.add(btnCopyFileTo);
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setBackground(UIManager.getColor("Button.background"));
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- getContentPane().add(buttonPane, BorderLayout.SOUTH);
- {
- JButton ButtonReady = new JButton("Abschlie\u00DFen");
- ButtonReady.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- writeData();
- dispose();
- MainMenue_GUI m=new MainMenue_GUI();
- m.setVisible(true);
- if(taskrun==true)
- {
- try {
- client.DeleteFtpUser(user.userName);
- thrift.closeThriftConnection();
- } catch (TException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- }
- task.cancel(true);
- }
-
- }
- });
-
- JButton buttonCancel = new JButton("Schlie\u00DFen");
- buttonCancel.setActionCommand("Cancel");
- buttonPane.add(buttonCancel);
- ButtonReady.setActionCommand("Cancel");
- buttonPane.add(ButtonReady);
- }
- }
-
- JMenuBar menuBar = new JMenuBar();
- setJMenuBar(menuBar);
-
- JMenu mnHillfe = new JMenu("Hillfe");
- menuBar.add(mnHillfe);
- setVisible(true);
-
- }
-
- private void buttonUploadActionPerformed(ActionEvent event) {
- // File (or directory) with old name
- // File file = new File(lblNewLabel.getText());
-
- // File (or directory) with new name
- //System.out.println(file.getAbsolutePath().substring(0,file.getAbsolutePath().lastIndexOf("\\"))+"\\"+vm.vl.getLaborname()+".vmdk");
- //File file2 = new File(file.getAbsoluteFile()+"\\"+vm.vl.getLaborname()+".vmdk");
-
-
- // Rename file (or directory)
- //boolean success = file.renameTo(file2);
- //if (!success) {
- // File was not successfully renamed
- //System.out.println("Not OK");
- //}
- //else
- //{
- //System.out.println("OK");
- //}
- progressBar.setValue(0);
-
- try {
- user=client.getFtpUser();
- System.out.println("name"+user.userName);
- System.out.println("path"+user.path);
- System.out.println("pass"+user.password);
- } catch (TException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
- task=new UploadTask(host,port,user.userName,user.password,user.path, uploadFile);
-
- task.addPropertyChangeListener(this);
- task.execute();
- taskrun=true;
-
- //createXML();
- //TransferToSatellit();
-
-
- }
-
- public void propertyChange(PropertyChangeEvent arg0) {
- if ("progress" == arg0.getPropertyName()) {
- int progress = (Integer) arg0.getNewValue();
- progressBar.setValue(progress);
- }
- if("speed"==arg0.getPropertyName()){
- speed=(double)arg0.getNewValue();
- //if(speed<=1){
-
- UpSpeed.setText(String.valueOf(speed).substring(0,String.valueOf(speed).lastIndexOf(".")+3)+" MB/s");
-
- // }else
- //{
- //double MBSpeed=speed/1024;
- //downspeed.setText(String.valueOf((MBSpeed)).substring(0, String.valueOf(MBSpeed).indexOf(".")));
- //}
-
- }
- if("bytesread"==arg0.getPropertyName())
- {
- bytesread=(long)arg0.getNewValue();
- labelfertig.setText((bytesread/1024/1024)+" MB");
- labelverbleibend.setText(((filesize/1024/1024)-(bytesread/1024/1024))+" MB");
-
-
- labelZeit.setText(String.valueOf(((((filesize/1024/1024)-(bytesread/1024/1024))/speed)/60)+1).substring(0,String.valueOf((((filesize/1024/1024)-(bytesread/1024/1024))/speed)/60).lastIndexOf("."))+ " Minuten");
-
-
- }
- if("filesize"==arg0.getPropertyName())
- {
- filesize=(long)arg0.getNewValue();
- labelfilesize.setText((filesize/1024/1024)+" MB");
-
- }
-
- }
-
- public boolean writeData(){
-
- try {
-
-
-
- client.writeVLdata(Image.image.getImagename(), person.verantowrtlicher.getVorname(), person.verantowrtlicher.getName(), person.verantowrtlicher.getHochschule(), person.verantowrtlicher.getEMail(), person.verantowrtlicher.getTel(), person.verantowrtlicher.getFakultät(), Image.image.isLicensed(), Image.image.isInternet(), Image.image.getRam(), Image.image.getCpu());
- } catch (TException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- return false;
- }
- return true;
-
-
- }
-} \ No newline at end of file
diff --git a/Dozentenmodul/src/GUI/Login_GUI.java b/Dozentenmodul/src/GUI/Login_GUI.java
deleted file mode 100644
index cc558261..00000000
--- a/Dozentenmodul/src/GUI/Login_GUI.java
+++ /dev/null
@@ -1,203 +0,0 @@
-package gui;
-
-
-import java.awt.Dimension;
-import java.awt.EventQueue;
-import java.awt.Image;
-import java.awt.SystemColor;
-import java.awt.Toolkit;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
-import java.io.File;
-import java.io.IOException;
-
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JPasswordField;
-import javax.swing.JTextField;
-import javax.swing.UIManager;
-import javax.swing.UnsupportedLookAndFeelException;
-import javax.swing.border.EmptyBorder;
-
-import models.person;
-
-import org.ini4j.Wini;
-
-import config.config_file;
-
-
-@SuppressWarnings("serial")
-public class Login_GUI extends JFrame {
-
- private JPanel contentPane;
- private JTextField username;
- private JPasswordField pass;
-
- /**
- * Launch the application.
- */
- public static void main(String[] args) {
- EventQueue.invokeLater(new Runnable() {
- public void run() {
- try {
- //Prüfe und Erzeuge gegebenfalls Config
- config_file cf=new config_file();
- boolean conf=cf.createConfig();
- if(conf==true)
- {
- //Aufruf und Anzeige des Login Fensters
- Login_GUI frame = new Login_GUI();
- frame.setVisible(true);
- }
- else
- {
- JOptionPane.showMessageDialog(null,
- "Fehler beim erzeugen der Konfigurationsfile", "Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- });
- }
-
- /**
- * Create the frame.
- */
- public Login_GUI() {
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(WindowEvent e) {
- System.exit(0);
- }
- });
-
- //Fenster darf nicht vergrößert werden
- setResizable(false);
- try {
- //Setzt das Look and Feel auf System
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
- } catch (ClassNotFoundException | InstantiationException
- | IllegalAccessException | UnsupportedLookAndFeelException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- //Titel des Fensters setzen
- setTitle("Dozentenmodul *Prototyp*");
- //Aktion die beim Schließen durchgeführt werden soll
- setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- //Größe des Fensters definieren
- Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
- int top=(screenSize.height - 400) / 2;
- int left=(screenSize.width - 603) / 2;
- setBounds(left, top, 603, 400);
- //Erzeugen eines Panels
- contentPane = new JPanel();
- //Hintergrund Farbe des Panels setzen
- contentPane.setBackground(SystemColor.menu);
- //Rahmen des Fensters setzen
- contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
- setContentPane(contentPane);
- //Layout setzen
- contentPane.setLayout(null);
- //Label für das Logo erzeugen
- JLabel imgLabel = new JLabel();
- //Größe und Position des Logos festelegen
- imgLabel.setBounds(150, 11, 350, 142);
- //Pfadangabe des Logos
-
- ImageIcon icon = new ImageIcon(getClass().getResource("/Logo_bwLehrpool.png"),"Logo");
- //Skalierung des Logos
- Image scaled=icon.getImage().getScaledInstance(270, 64, 0);
- imgLabel.setIcon(new ImageIcon(scaled));
- //Hinzufügen des Logos in das Fenster
- contentPane.add(imgLabel);
-
- //Erzeugen und Hinzufügen des Labels
- JLabel LabelUser = new JLabel("bwIDM-Benutzername:");
- LabelUser.setBounds(150, 164, 134, 20);
- contentPane.add(LabelUser);
-
- //Erzeugen und Hinzufügen des Textfeldes
- username = new JTextField();
- username.setBounds(343, 164, 125, 20);
- contentPane.add(username);
- username.setColumns(10);
-
- //Erzeugen und Hinzufügen des Labels
- JLabel LabelPass = new JLabel("bwIDM-Passwort:");
- LabelPass.setBounds(150, 195, 134, 20);
- contentPane.add(LabelPass);
-
- //Erzeugen, Hinzufügen und definierung der Aktion des Buttons
- JButton BtnLogin = new JButton("Login");
- BtnLogin.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- //Aufruf der Ldap Klasse, welche die Ldap überprüfung vornimmt
- //Ldap check=new Ldap();
- boolean login=true;
- //boolean login=check.LdapAuth(username.getText(), new String(pass.getPassword()));
- if(login==true)
- {
-
- try {
- Wini ini=new Wini(new File("C:\\Users\\"+System.getProperty("user.name")+"\\AppData\\Roaming\\bwLehrpoolSuite\\config.ini"));
- //Prüfe ob Bills Of Rights schon akzeptiert wurden, wenn nicht zeige diese an
- if(ini.get("main", "BillOfRights",boolean.class)==false){
- //Erstellen einer Instanz der Aktionsauswahl
- BillOfRights_GUI re=new BillOfRights_GUI();
- re.setVisible(true);
- //Schließen des Fensters nach erfolgreichen Login
- setVisible(false);
- }
- else
- {
- //Prüfe ob die Links zu vmware angezeigt werden sollen
- if(ini.get("main", "vmware",boolean.class)==false){
- VmWareLink_GUI vm=new VmWareLink_GUI();
- vm.setVisible(true);
- setVisible(false);
- }
- else
- {
- person.verantowrtlicher.setName("Spitzer");
- person.verantowrtlicher.setVorname("Tobias");
- person.verantowrtlicher.setEMail("tspitzer@hs-offenburg.de");
- person.verantowrtlicher.setHochschule("HS Offenburg");
- //Öffne das Hauprmenü
- MainMenue_GUI main=new MainMenue_GUI();
- main.setVisible(true);
- setVisible(false);
- }
- }
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
- }
- else
- {
- JOptionPane.showMessageDialog(null,
- "Login denied!", "Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- }
- });
- BtnLogin.setBounds(343, 244, 125, 23);
- contentPane.add(BtnLogin);
-
- //Erzeugen und Hinzufügen des Passwortfeldes
- pass = new JPasswordField();
- pass.setBounds(343, 195, 125, 20);
- contentPane.add(pass);
- }
-}
diff --git a/Dozentenmodul/src/GUI/MainMenue_GUI.java b/Dozentenmodul/src/GUI/MainMenue_GUI.java
deleted file mode 100644
index 17b94397..00000000
--- a/Dozentenmodul/src/GUI/MainMenue_GUI.java
+++ /dev/null
@@ -1,338 +0,0 @@
-package gui;
-
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Toolkit;
-import javax.swing.JFrame;
-import javax.swing.JButton;
-import javax.swing.JDialog;
-import javax.swing.JPanel;
-import javax.swing.UIManager;
-import javax.swing.UnsupportedLookAndFeelException;
-import javax.swing.border.EmptyBorder;
-import java.awt.Color;
-import javax.swing.JLabel;
-import java.awt.Font;
-import javax.swing.JTextPane;
-import java.awt.SystemColor;
-import java.awt.event.ActionListener;
-import java.awt.event.ActionEvent;
-import javax.swing.JSeparator;
-import javax.swing.JRadioButton;
-import javax.swing.SwingConstants;
-import javax.swing.ButtonGroup;
-import javax.swing.JMenuBar;
-import javax.swing.JMenu;
-import javax.swing.JMenuItem;
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
-import javax.swing.border.TitledBorder;
-import java.awt.event.MouseAdapter;
-import java.awt.event.MouseEvent;
-import java.awt.ScrollPane;
-import javax.swing.JTextArea;
-
-@SuppressWarnings("serial")
-public class MainMenue_GUI extends JFrame {
-
- private final JPanel contentPanel = new JPanel();
- String[] result;
- JRadioButton rdbtnImageNew;
- JRadioButton rdbtnImageEdit;
- JRadioButton rdbtnImageSearchDownload;
- JRadioButton rdbtnVeranstaltungNew;
- JRadioButton rdbtnImageDelete;
- private final ButtonGroup buttonGroup = new ButtonGroup();
- /**
- * Launch the application.
- */
- public static void main(String[] args) {
- try {
- MainMenue_GUI dialog = new MainMenue_GUI();
- dialog.setDefaultCloseOperation(JDialog.HIDE_ON_CLOSE);
- dialog.setVisible(true);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- /**
- * Create the dialog.
- */
- public MainMenue_GUI() {
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(WindowEvent arg0) {
- System.exit(0);
- }
- });
- try {
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
- } catch (ClassNotFoundException | InstantiationException
- | IllegalAccessException | UnsupportedLookAndFeelException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- setTitle("bwLehrpool Suite *Prototyp*");
- Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
- int top=(screenSize.height - 722) / 2;
- int left=(screenSize.width - 603) / 2;
- setBounds(left, top, 603, 722);
- //setBounds(100, 100, 545, 366);
- getContentPane().setLayout(null);
- {
- JPanel panel = new JPanel();
- panel.setBackground(SystemColor.menu);
- panel.setBounds(10, 11, 567, 69);
- getContentPane().add(panel);
- panel.setLayout(null);
- {
- JLabel lblNewLabel = new JLabel("Hauptmen\u00FC");
- lblNewLabel.setBounds(10, 11, 509, 22);
- panel.add(lblNewLabel);
- lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 18));
- }
-
- JTextPane txtpnBitteWhlenSie = new JTextPane();
- txtpnBitteWhlenSie.setEditable(false);
- txtpnBitteWhlenSie.setBackground(SystemColor.menu);
- txtpnBitteWhlenSie.setText("Bitte w\u00E4hlen Sie ihre gew\u00FCnschte Aktion");
- txtpnBitteWhlenSie.setBounds(10, 36, 509, 22);
- panel.add(txtpnBitteWhlenSie);
- }
- contentPanel.setBounds(10, 104, 567, 502);
- contentPanel.setBackground(SystemColor.menu);
-
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- getContentPane().add(contentPanel);
- contentPanel.setLayout(null);
-
- JPanel panelImage = new JPanel();
- panelImage.setBackground(SystemColor.menu);
- panelImage.setBorder(new TitledBorder(null, "VL-Image", TitledBorder.LEADING, TitledBorder.TOP, null, null));
- panelImage.setBounds(10, 86, 270, 200);
- contentPanel.add(panelImage);
- panelImage.setLayout(null);
-
- rdbtnImageNew = new JRadioButton("Neu");
- rdbtnImageNew.setToolTipText("Hier k\u00F6nnen Sie eine standard Laborvorlage downloaden");
- rdbtnImageNew.setBounds(6, 22, 159, 23);
- panelImage.add(rdbtnImageNew);
- rdbtnImageNew.setSelected(true);
- buttonGroup.add(rdbtnImageNew);
- rdbtnImageNew.setBackground(SystemColor.menu);
-
-
-
- rdbtnImageEdit = new JRadioButton("Bearbeiten");
- rdbtnImageEdit.setToolTipText("Hier k\u00F6nnen Sie ein bestehendes Labor zum ver\u00E4ndern downloaden");
- rdbtnImageEdit.setBounds(6, 48, 185, 23);
- panelImage.add(rdbtnImageEdit);
- buttonGroup.add(rdbtnImageEdit);
- rdbtnImageEdit.setHorizontalAlignment(SwingConstants.LEFT);
- rdbtnImageEdit.setBackground(SystemColor.menu);
-
- rdbtnImageDelete = new JRadioButton("L\u00F6schen");
- rdbtnImageDelete.setEnabled(false);
- buttonGroup.add(rdbtnImageDelete);
- rdbtnImageDelete.setToolTipText("Hier k\u00F6nnen Sie ein bestehendes Labor zum ver\u00E4ndern downloaden");
- rdbtnImageDelete.setHorizontalAlignment(SwingConstants.LEFT);
- rdbtnImageDelete.setBackground(SystemColor.menu);
- rdbtnImageDelete.setBounds(6, 74, 185, 23);
- panelImage.add(rdbtnImageDelete);
-
- rdbtnImageSearchDownload = new JRadioButton("Suche und Download");
- rdbtnImageSearchDownload.setEnabled(false);
- buttonGroup.add(rdbtnImageSearchDownload);
- rdbtnImageSearchDownload.setToolTipText("Hier k\u00F6nnen Sie ein bestehendes Labor zum ver\u00E4ndern downloaden");
- rdbtnImageSearchDownload.setHorizontalAlignment(SwingConstants.LEFT);
- rdbtnImageSearchDownload.setBackground(SystemColor.menu);
- rdbtnImageSearchDownload.setBounds(6, 100, 185, 23);
- panelImage.add(rdbtnImageSearchDownload);
-
- JPanel panelDesc = new JPanel();
- panelDesc.setLayout(null);
- panelDesc.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), "Erklärung", TitledBorder.LEADING, TitledBorder.TOP, null, null));
- panelDesc.setBackground(SystemColor.menu);
- panelDesc.setBounds(290, 86, 270, 200);
- contentPanel.add(panelDesc);
-
- ScrollPane scrollPaneDesc = new ScrollPane();
- scrollPaneDesc.setBounds(5, 15, 260, 180);
- JTextArea txtDesc=new JTextArea();
- txtDesc.setBackground(SystemColor.menu);
- txtDesc.setWrapStyleWord(true);
- txtDesc.setLineWrap(true);
- scrollPaneDesc.add(txtDesc);
- //Pro AUswahl
- txtDesc.setText("Hier steht irgendwann die Beschreibung der einzelnen Punkte\r\n");
- panelDesc.add(scrollPaneDesc);
-
- JPanel panelVeranstaltung = new JPanel();
- panelVeranstaltung.setLayout(null);
- panelVeranstaltung.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), "Veranstaltung (VMChooser)", TitledBorder.LEADING, TitledBorder.TOP, null, null));
- panelVeranstaltung.setBackground(SystemColor.menu);
- panelVeranstaltung.setBounds(10, 297, 270, 200);
- contentPanel.add(panelVeranstaltung);
-
- rdbtnVeranstaltungNew = new JRadioButton("Neu");
- buttonGroup.add(rdbtnVeranstaltungNew);
- rdbtnVeranstaltungNew.setToolTipText("Hier k\u00F6nnen Sie Ihre Labordaten eingeben");
- rdbtnVeranstaltungNew.setBounds(6, 24, 185, 23);
- panelVeranstaltung.add(rdbtnVeranstaltungNew);
- rdbtnVeranstaltungNew.setBackground(SystemColor.menu);
-
- JRadioButton rdbtnVeranstaltungEdit = new JRadioButton("Bearbeiten");
- rdbtnVeranstaltungEdit.setEnabled(false);
- rdbtnVeranstaltungEdit.setToolTipText("Hier k\u00F6nnen Sie einen Link auf ein bestehendes Labor erzeugen");
- rdbtnVeranstaltungEdit.setBounds(6, 50, 230, 23);
- panelVeranstaltung.add(rdbtnVeranstaltungEdit);
- buttonGroup.add(rdbtnVeranstaltungEdit);
- rdbtnVeranstaltungEdit.setBackground(SystemColor.menu);
-
- JRadioButton rdbtnVeranstaltungDelete = new JRadioButton("L\u00F6schen");
- rdbtnVeranstaltungDelete.setEnabled(false);
- rdbtnVeranstaltungDelete.setToolTipText("Hier k\u00F6nnen Sie ein Labor l\u00F6schen");
- rdbtnVeranstaltungDelete.setBounds(6, 76, 175, 23);
- panelVeranstaltung.add(rdbtnVeranstaltungDelete);
- buttonGroup.add(rdbtnVeranstaltungDelete);
- rdbtnVeranstaltungDelete.setBackground(SystemColor.menu);
-
- JRadioButton rdbtnVeranstaltungSearch = new JRadioButton("Suche");
- rdbtnVeranstaltungSearch.setEnabled(false);
- buttonGroup.add(rdbtnVeranstaltungSearch);
- rdbtnVeranstaltungSearch.setToolTipText("Hier k\u00F6nnen Sie ein Labor l\u00F6schen");
- rdbtnVeranstaltungSearch.setBackground(SystemColor.menu);
- rdbtnVeranstaltungSearch.setBounds(6, 102, 175, 23);
- panelVeranstaltung.add(rdbtnVeranstaltungSearch);
-
- JLabel lblCrumbStart = new JLabel("Startseite");
- lblCrumbStart.addMouseListener(new MouseAdapter() {
- @Override
- public void mouseClicked(MouseEvent arg0) {
- Login_GUI lw=new Login_GUI();
- lw.setVisible(true);
- MainMenue_GUI.this.setVisible(false);
- }
- });
- lblCrumbStart.setForeground(Color.BLUE);
- lblCrumbStart.setBounds(10, 0, 52, 14);
- contentPanel.add(lblCrumbStart);
-
- JLabel label = new JLabel(">");
- label.setBounds(60, 0, 13, 14);
- contentPanel.add(label);
-
- JLabel lblRechtshinweis = new JLabel("Rechtshinweis");
- lblRechtshinweis.addMouseListener(new MouseAdapter() {
- @Override
- public void mouseClicked(MouseEvent e) {
- BillOfRights_GUI rb=new BillOfRights_GUI();
- rb.setVisible(true);
- MainMenue_GUI.this.setVisible(false);
- }
- });
- lblRechtshinweis.setForeground(Color.BLUE);
- lblRechtshinweis.setBounds(72, 0, 68, 14);
- contentPanel.add(lblRechtshinweis);
-
- JLabel label_1 = new JLabel(">");
- label_1.setBounds(142, 0, 13, 14);
- contentPanel.add(label_1);
-
- JLabel lblNewLabel_1 = new JLabel("Hauptmen\u00FC");
- lblNewLabel_1.setBounds(150, 0, 74, 14);
- contentPanel.add(lblNewLabel_1);
-
- JLabel lblNewLabel_2 = new JLabel("*Platzhalter Bild*");
- lblNewLabel_2.setBounds(10, 25, 557, 59);
- contentPanel.add(lblNewLabel_2);
-
- JPanel panelNews = new JPanel();
- panelNews.setLayout(null);
- panelNews.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), "News", TitledBorder.LEADING, TitledBorder.TOP, null, null));
- panelNews.setBackground(SystemColor.menu);
- panelNews.setBounds(290, 297, 270, 200);
- contentPanel.add(panelNews);
-
- ScrollPane scrollPaneNews = new ScrollPane();
- scrollPaneNews.setBounds(5, 15, 260, 180);
- JTextArea txtNews=new JTextArea();
- txtNews.setBackground(SystemColor.menu);
- txtNews.setWrapStyleWord(true);
- txtNews.setLineWrap(true);
- txtNews.setText("Hier werden mal die Neuigkeiten stehen");
- scrollPaneNews.add(txtNews);
- panelNews.add(scrollPaneNews);
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setBounds(0, 630, 587, 33);
- buttonPane.setBackground(SystemColor.menu);
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- getContentPane().add(buttonPane);
- {
- JButton cancelButton = new JButton("Weiter");
- cancelButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
-
- if(rdbtnImageNew.isSelected()==true)
- {
- EingabeImageAllgemein_GUI sr=new EingabeImageAllgemein_GUI();
- sr.setVisible(true);
- dispose();
- } else if(rdbtnImageEdit.isSelected()==true)
- {
-
- SearchEditImage_GUI si=new SearchEditImage_GUI();
- si.setVisible(true);
- dispose();
- }else if(rdbtnImageSearchDownload.isSelected()==true)
- {
- SearchMethod_GUI sm=new SearchMethod_GUI();
- sm.setVisible(true);
- dispose();
- }else if(rdbtnImageDelete.isSelected()==true)
- {
- DeleteImage_GUI di=new DeleteImage_GUI();
- di.setVisible(true);
- dispose();
- }
- else if(rdbtnVeranstaltungNew.isSelected()==true)
- {
- EingabeVeranstaltungAllgemein_GUI av=new EingabeVeranstaltungAllgemein_GUI();
- av.setVisible(true);
- dispose();
- }
- }
- });
- cancelButton.setActionCommand("Cancel");
- buttonPane.add(cancelButton);
- }
- }
- {
- JSeparator separator = new JSeparator();
- separator.setBounds(0, 617, 587, 2);
- getContentPane().add(separator);
- }
- {
- JSeparator separator = new JSeparator();
- separator.setBounds(0, 91, 587, 2);
- getContentPane().add(separator);
- }
-
- JMenuBar menuBar = new JMenuBar();
- setJMenuBar(menuBar);
-
- JMenu mnNewMenu_1 = new JMenu("Hilfe");
- menuBar.add(mnNewMenu_1);
-
- JMenuItem mntmFaq = new JMenuItem("FAQ");
- mnNewMenu_1.add(mntmFaq);
-
- JMenuItem mntmOtrs = new JMenuItem("OTRS");
- mnNewMenu_1.add(mntmOtrs);
-
-
-
- }
-}
diff --git a/Dozentenmodul/src/GUI/SearchImage_GUI.java b/Dozentenmodul/src/GUI/SearchImage_GUI.java
index 4225a295..83e6bc07 100644
--- a/Dozentenmodul/src/GUI/SearchImage_GUI.java
+++ b/Dozentenmodul/src/GUI/SearchImage_GUI.java
@@ -1,6 +1,11 @@
package gui;
+import gui.image.EditImageAllgemein_GUI;
+import gui.image.FTPDownloader_GUI;
+import gui.intro.MainMenue_GUI;
+import gui.lecture.ExtendedSearchForImages_GUI;
+
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
@@ -188,7 +193,7 @@ public class SearchImage_GUI extends JFrame {
@Override
public void mouseClicked(MouseEvent arg0) {
//Öffnet das Fenster Extended GUI
- ExtendedSearch_GUI es=new ExtendedSearch_GUI();
+ ExtendedSearchForImages_GUI es=new ExtendedSearchForImages_GUI();
es.setVisible(true);
}
});
@@ -354,7 +359,7 @@ public class SearchImage_GUI extends JFrame {
btnDownload.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
//Öffnet den Downloader
- FTPDownloader_GUI down=new FTPDownloader_GUI("Test");
+ FTPDownloader_GUI down=new FTPDownloader_GUI();
down.setVisible(true);
SearchImage_GUI.this.setVisible(false);
}
diff --git a/Dozentenmodul/src/Models/Image.java b/Dozentenmodul/src/Models/Image.java
index 2a8c4fcd..cdc8264c 100644
--- a/Dozentenmodul/src/Models/Image.java
+++ b/Dozentenmodul/src/Models/Image.java
@@ -1,6 +1,9 @@
package models;
public class Image {
+ private String ImageId;
+ private String version;
+
private String imagename;
private String newName;
private boolean licensed;
@@ -46,4 +49,16 @@ public class Image {
public void setNewName(String newName) {
this.newName = newName;
}
+ public String getImageId() {
+ return ImageId;
+ }
+ public void setImageId(String imageId) {
+ ImageId = imageId;
+ }
+ public String getVersion() {
+ return version;
+ }
+ public void setVersion(String version) {
+ this.version = version;
+ }
}
diff --git a/Dozentenmodul/src/Models/Lecture.java b/Dozentenmodul/src/Models/Lecture.java
index 383bded9..6b7e6fa1 100644
--- a/Dozentenmodul/src/Models/Lecture.java
+++ b/Dozentenmodul/src/Models/Lecture.java
@@ -6,14 +6,42 @@ public class Lecture {
private String name;
+ private String newName;
private String shortDesc;
private String desc;
private Date startdate;
private Date enddate;
private boolean active;
+ private String id;
+ private String linkedImagename;
+
public static Lecture lecture =new Lecture();
+
+
+ public String getNewName() {
+ return newName;
+ }
+ public void setNewName(String newName) {
+ this.newName = newName;
+ }
+
+ public String getLinkedImagename() {
+ return linkedImagename;
+ }
+
+ public void setLinkedImagename(String linkedImagename) {
+ this.linkedImagename = linkedImagename;
+ }
+
+ public String getid() {
+ return id;
+ }
+
+ public void setid(String id) {
+ this.id = id;
+ }
public String getName() {
return name;
}
diff --git a/Dozentenmodul/src/Models/person.java b/Dozentenmodul/src/Models/person.java
index f4dd5c22..435f3c1d 100644
--- a/Dozentenmodul/src/Models/person.java
+++ b/Dozentenmodul/src/Models/person.java
@@ -3,6 +3,9 @@ package models;
public class person{
+
+ private String username;
+
private String Name;
private String Vorname;
private String Hochschule;
@@ -12,9 +15,21 @@ public class person{
private boolean ischecked;
+
public static person verantowrtlicher=new person();
public static person ersteller=new person();
+
+ public static person verantwortlicher=new person();
+
+
+ public String getUsername() {
+ return username;
+ }
+ public void setUsername(String username) {
+ this.username = username;
+ }
+
public String getName() {
return Name;
}
diff --git a/Dozentenmodul/src/Models/vm.java b/Dozentenmodul/src/Models/vm.java
deleted file mode 100644
index 34f9ffaa..00000000
--- a/Dozentenmodul/src/Models/vm.java
+++ /dev/null
@@ -1,69 +0,0 @@
-package models;
-
-import java.awt.List;
-import java.util.Date;
-
-
-public class vm {
-
- private String Laborname;
- private String shortDesc;
- private String longDesc;
- private String comment;
- private String OS;
- private Date begin;
- private Date end;
- private List software;
-
- public static vm vl=new vm();
- public String getLaborname() {
- return Laborname;
- }
- public void setLaborname(String laborname) {
- Laborname = laborname;
- }
- public String getShortDesc() {
- return shortDesc;
- }
- public void setShortDesc(String shortDesc) {
- this.shortDesc = shortDesc;
- }
- public String getLongDesc() {
- return longDesc;
- }
- public void setLongDesc(String longDesc) {
- this.longDesc = longDesc;
- }
- public String getComment() {
- return comment;
- }
- public void setComment(String comment) {
- this.comment = comment;
- }
- public String getOS() {
- return OS;
- }
- public void setOS(String oS) {
- OS = oS;
- }
- public Date getBegin() {
- return begin;
- }
- public void setBegin(Date begin) {
- this.begin = begin;
- }
- public Date getEnd() {
- return end;
- }
- public void setEnd(Date end) {
- this.end = end;
- }
- public List getSoftware() {
- return software;
- }
- public void setSoftware(List software) {
- this.software = software;
- }
-
-
-}
diff --git a/Dozentenmodul/src/auth/Authentification.java b/Dozentenmodul/src/auth/Authentification.java
index cf1a4b04..41f69502 100644
--- a/Dozentenmodul/src/auth/Authentification.java
+++ b/Dozentenmodul/src/auth/Authentification.java
@@ -1,5 +1,12 @@
package auth;
+import thrift.UserInfo;
+
public class Authentification {
+ public boolean auth(String username, String pass)
+ {
+ return false;
+
+ }
}
diff --git a/Dozentenmodul/src/ftp/DownloadTask.java b/Dozentenmodul/src/ftp/DownloadTask.java
index 8a643325..83ad2c15 100644
--- a/Dozentenmodul/src/ftp/DownloadTask.java
+++ b/Dozentenmodul/src/ftp/DownloadTask.java
@@ -1,6 +1,6 @@
package ftp;
-import gui.FTPDownloader_GUI;
+import gui.image.FTPDownloader_GUI;
import java.io.File;
import java.io.FileOutputStream;
diff --git a/Dozentenmodul/src/ftp/FTPUtility.java b/Dozentenmodul/src/ftp/FTPUtility.java
index c62ba07d..7824440a 100644
--- a/Dozentenmodul/src/ftp/FTPUtility.java
+++ b/Dozentenmodul/src/ftp/FTPUtility.java
@@ -6,6 +6,9 @@ import java.io.InputStream;
import java.io.OutputStream;
import java.net.SocketException;
import java.security.NoSuchAlgorithmException;
+
+import models.Image;
+
import org.apache.commons.net.ftp.FTP;
import org.apache.commons.net.ftp.FTPFile;
import org.apache.commons.net.ftp.FTPReply;
@@ -138,9 +141,10 @@ public class FTPUtility {
if (!success) {
throw new FTPException("Could not set binary file type.");
}
-
- outputStream = ftpClient.storeFileStream(uploadFile.getName());
- // ftpClient.rename(uploadFile.getName(), vm.vl.getLaborname());
+
+ outputStream = ftpClient.storeFileStream(Image.image.getNewName());
+
+ //ftpClient.rename(uploadFile.getName(), );
} catch (IOException ex) {
throw new FTPException("Error uploading file: " + ex.getMessage());
}
diff --git a/Dozentenmodul/src/ftp/UploadTask.java b/Dozentenmodul/src/ftp/UploadTask.java
index e5d8a817..67706169 100644
--- a/Dozentenmodul/src/ftp/UploadTask.java
+++ b/Dozentenmodul/src/ftp/UploadTask.java
@@ -19,7 +19,7 @@ public class UploadTask extends SwingWorker<Void, Void> {
private int port;
private String username;
private String password;
-
+
private String destDir;
private File uploadFile;
@@ -31,6 +31,7 @@ public class UploadTask extends SwingWorker<Void, Void> {
this.password = password;
this.destDir = destDir;
this.uploadFile = uploadFile;
+
}
/**
diff --git a/Dozentenmodul/src/gui/BillOfRights_GUI.java b/Dozentenmodul/src/gui/BillOfRights_GUI.java
deleted file mode 100644
index a18ce291..00000000
--- a/Dozentenmodul/src/gui/BillOfRights_GUI.java
+++ /dev/null
@@ -1,192 +0,0 @@
-package gui;
-
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.Toolkit;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
-import java.io.File;
-import java.io.IOException;
-
-import javax.swing.JButton;
-import javax.swing.JCheckBox;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JMenu;
-import javax.swing.JMenuBar;
-import javax.swing.JMenuItem;
-import javax.swing.JPanel;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.UnsupportedLookAndFeelException;
-import javax.swing.border.EmptyBorder;
-import javax.swing.event.ChangeEvent;
-import javax.swing.event.ChangeListener;
-
-import org.ini4j.InvalidFileFormatException;
-import org.ini4j.Wini;
-
-
-
-@SuppressWarnings("serial")
-public class BillOfRights_GUI extends JFrame {
-
- private final JPanel contentPanel = new JPanel();
- String[] result;
- JButton fwdButton;
- JCheckBox chckbxAkzeptieren;
-
- /**
- * Create the dialog.
- */
- public BillOfRights_GUI() {
- setResizable(false);
-
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(WindowEvent arg0) {
- //Beendet das Programm beim Klick auf das X
- System.exit(0);
- }
- });
- try {
- //Setzt das Look & Feel auf das System
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
- } catch (ClassNotFoundException | InstantiationException
- | IllegalAccessException | UnsupportedLookAndFeelException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- //Setzt den Fenstertitel
- setTitle("bwLehrpool Suite *Prototyp*");
-
- //Zentiert das Fenster in der Bildschirmmitte
- Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
- int top=(screenSize.height - 722) / 2;
- int left=(screenSize.width - 603) / 2;
- setBounds(left, top, 603, 722);
-
- getContentPane().setLayout(null);
- {
- JPanel panel = new JPanel();
- panel.setBackground(SystemColor.menu);
- panel.setBounds(10, 11, 567, 60);
- getContentPane().add(panel);
- panel.setLayout(null);
- {
- JLabel lblNewLabel = new JLabel("Hinweis");
- lblNewLabel.setBounds(10, 11, 509, 22);
- panel.add(lblNewLabel);
- lblNewLabel.setFont(new Font("Tahoma", Font.PLAIN, 18));
- }
-
- JTextPane txtpnBitteWhlenSie = new JTextPane();
- txtpnBitteWhlenSie.setEditable(false);
- txtpnBitteWhlenSie.setBackground(SystemColor.menu);
- txtpnBitteWhlenSie.setText("Bitte lesen und best\u00E4tigen Sie folgende rechtliche Hinweise");
- txtpnBitteWhlenSie.setBounds(10, 36, 509, 22);
- panel.add(txtpnBitteWhlenSie);
- }
- contentPanel.setBounds(10, 95, 567, 485);
- contentPanel.setBackground(SystemColor.menu);
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- getContentPane().add(contentPanel);
- contentPanel.setLayout(null);
-
- JTextArea txtrLoremIpsumDolor = new JTextArea();
- txtrLoremIpsumDolor.setWrapStyleWord(true);
- txtrLoremIpsumDolor.setLineWrap(true);
- txtrLoremIpsumDolor.setEditable(false);
- JScrollPane scr=new JScrollPane(txtrLoremIpsumDolor);
- scr.setBounds(0, 0, 567, 477);
- txtrLoremIpsumDolor.setBounds(0, 0, 567, 477);
- txtrLoremIpsumDolor.setText("Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. \r\n\r\nDuis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. \r\n\r\nUt wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. \r\n\r\nNam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. \r\n\r\nDuis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis. \r\n\r\nAt vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, At accusam aliquyam diam diam dolore dolores duo eirmod eos erat, et nonumy sed tempor et et invidunt justo labore Stet clita ea et gubergren, kasd magna no rebum. sanctus sea sed takimata ut vero voluptua. est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat. \r\n\r\nConsetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus. \r\n\r\nLorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. \r\n\r\nDuis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. \r\n\r\nUt wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. \r\n\r\nNam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo");
-
- contentPanel.add(scr);
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setBounds(0, 630, 587, 33);
- buttonPane.setBackground(SystemColor.menu);
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- getContentPane().add(buttonPane);
- {
- fwdButton = new JButton("Weiter");
- fwdButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- try {
- Wini ini=new Wini(new File("C:\\Users\\"+System.getProperty("user.name")+"\\AppData\\Roaming\\bwLehrpoolSuite\\config.ini"));
- ini.put("main", "BillOfRights",true);
- ini.store();
- } catch (InvalidFileFormatException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- } catch (IOException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- }
- VmWareLink_GUI ac=new VmWareLink_GUI();
- ac.setVisible(true);
- dispose();
- }
- });
- fwdButton.setEnabled(false);
-
- buttonPane.add(fwdButton);
- }
- }
- {
- JSeparator separator = new JSeparator();
- separator.setBounds(0, 617, 587, 2);
- getContentPane().add(separator);
- }
- {
- JSeparator separator = new JSeparator();
- separator.setBounds(0, 82, 587, 2);
- getContentPane().add(separator);
- }
-
- chckbxAkzeptieren = new JCheckBox("Ja, ich akzeptiere die Vereinbarung. Benachrichtigung nicht mehr anzeigen.");
- chckbxAkzeptieren.addChangeListener(new ChangeListener() {
- public void stateChanged(ChangeEvent arg0) {
- //Beim Akzeptieren der Bestätigung wird der Weiter-Button verfügbar gemacht
- if(chckbxAkzeptieren.isSelected()==true)
- {
-
- fwdButton.setEnabled(true);
-
- }
- else
- {
-
- }
- }
- });
- chckbxAkzeptieren.setBackground(SystemColor.menu);
- chckbxAkzeptieren.setBounds(10, 587, 567, 23);
- getContentPane().add(chckbxAkzeptieren);
-
- JMenuBar menuBar = new JMenuBar();
- setJMenuBar(menuBar);
-
- JMenu mnNewMenu_1 = new JMenu("Hilfe");
- mnNewMenu_1.setHorizontalAlignment(SwingConstants.CENTER);
- menuBar.add(mnNewMenu_1);
-
- JMenuItem mntmFaq = new JMenuItem("FAQ");
- mnNewMenu_1.add(mntmFaq);
-
- JMenuItem mntmOtrs = new JMenuItem("OTRS");
- mnNewMenu_1.add(mntmOtrs);
-
-
-
- }
-}
diff --git a/Dozentenmodul/src/gui/EditImageAllgemein_GUI.java b/Dozentenmodul/src/gui/EditImageAllgemein_GUI.java
deleted file mode 100644
index 58cab4ec..00000000
--- a/Dozentenmodul/src/gui/EditImageAllgemein_GUI.java
+++ /dev/null
@@ -1,325 +0,0 @@
-package gui;
-
-import java.awt.Color;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.Toolkit;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.MouseAdapter;
-import java.awt.event.MouseEvent;
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
-import java.util.Map;
-
-import javax.swing.JButton;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JMenu;
-import javax.swing.JMenuBar;
-import javax.swing.JMenuItem;
-import javax.swing.JPanel;
-import javax.swing.JSeparator;
-import javax.swing.JTextArea;
-import javax.swing.JTextField;
-import javax.swing.JTextPane;
-import javax.swing.UIManager;
-import javax.swing.UnsupportedLookAndFeelException;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.TitledBorder;
-
-import org.apache.thrift.TException;
-
-import models.Image;
-import models.person;
-import server.Server.Client;
-import thrift.ThriftConnection;
-
-@SuppressWarnings("serial")
-public class EditImageAllgemein_GUI extends JFrame {
-
- private final JPanel contentPanel = new JPanel();
- String[] result;
- private JTextField Vorname;
- private JTextField Nachname;
- private JTextField Hochschule;
- private JTextField EMail;
- private JTextField imagename;
- ThriftConnection con=new ThriftConnection();
- Client client=con.getThriftConnection();
-
- /**
- * Create the dialog.
- */
- public EditImageAllgemein_GUI() {
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(WindowEvent arg0) {
- //Beendet die Anwendung bei einem Klick auf das X
- System.exit(0);
- }
- });
- //Verhindert das vergrößern des Fensters
- setResizable(false);
-
- try {
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
- } catch (ClassNotFoundException | InstantiationException
- | IllegalAccessException | UnsupportedLookAndFeelException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- //Setzt den Fenstertitel
- setTitle("bwLehrpool Suite *Prototyp*");
-
- //Zentriert das Fenster in der Bildmitte
- Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
- int top=(screenSize.height - 722) / 2;
- int left=(screenSize.width - 603) / 2;
- setBounds(left, top, 603, 722);
- initData();
- getContentPane().setLayout(null);
- {
- JPanel panel = new JPanel();
- panel.setBackground(SystemColor.menu);
- panel.setBounds(10, 11, 577, 57);
- getContentPane().add(panel);
- panel.setLayout(null);
- {
- JLabel lblNewLabel = new JLabel("Bearbeiten Ihrer Daten");
- lblNewLabel.setBounds(10, 11, 509, 22);
- panel.add(lblNewLabel);
- lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 18));
- }
-
- JTextPane txtpnBitteWhlenSie = new JTextPane();
- txtpnBitteWhlenSie.setEditable(false);
- txtpnBitteWhlenSie.setBackground(SystemColor.menu);
- txtpnBitteWhlenSie.setText("Geben Sie hier bitte einen sprechenden Imagename sowie Ihre Kontaktdaten an");
- txtpnBitteWhlenSie.setBounds(10, 36, 509, 32);
- panel.add(txtpnBitteWhlenSie);
- }
- contentPanel.setBounds(10, 85, 577, 493);
- contentPanel.setBackground(SystemColor.menu);
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- getContentPane().add(contentPanel);
- contentPanel.setLayout(null);
-
- JPanel panel_1 = new JPanel();
- panel_1.setBackground(SystemColor.menu);
- panel_1.setBorder(new TitledBorder(null, "Informationen zum Besitzer", TitledBorder.LEADING, TitledBorder.TOP, null, null));
- panel_1.setBounds(10, 66, 557, 369);
- contentPanel.add(panel_1);
- panel_1.setLayout(null);
-
- JLabel label = new JLabel("Vorname: *");
- label.setBackground(SystemColor.menu);
- label.setBounds(10, 245, 125, 20);
- panel_1.add(label);
-
- Vorname = new JTextField();
- Vorname.setEditable(false);
- Vorname.setEnabled(false);
- Vorname.setBackground(Color.WHITE);
- Vorname.setText(person.verantowrtlicher.getVorname());
- Vorname.setColumns(10);
- Vorname.setBounds(145, 245, 350, 20);
- panel_1.add(Vorname);
-
- JLabel label_7 = new JLabel("Nachname: *");
- label_7.setBackground(SystemColor.menu);
- label_7.setBounds(10, 276, 125, 20);
- panel_1.add(label_7);
-
- Nachname = new JTextField();
- Nachname.setEnabled(false);
- Nachname.setEditable(false);
- Nachname.setBackground(Color.WHITE);
- Nachname.setText(person.verantowrtlicher.getName());
- Nachname.setColumns(10);
- Nachname.setBounds(145, 276, 350, 20);
- panel_1.add(Nachname);
-
- JLabel label_8 = new JLabel("Hochschule: *");
- label_8.setBackground(SystemColor.menu);
- label_8.setBounds(10, 307, 125, 20);
- panel_1.add(label_8);
-
- Hochschule = new JTextField();
- Hochschule.setEnabled(false);
- Hochschule.setEditable(false);
- Hochschule.setBackground(Color.WHITE);
- Hochschule.setText(person.verantowrtlicher.getHochschule());
- Hochschule.setColumns(10);
- Hochschule.setBounds(145, 307, 350, 20);
- panel_1.add(Hochschule);
-
- JLabel label_9 = new JLabel("E-Mail: *");
- label_9.setBackground(SystemColor.menu);
- label_9.setBounds(10, 338, 125, 20);
- panel_1.add(label_9);
-
- EMail = new JTextField();
- EMail.setEnabled(false);
- EMail.setEditable(false);
- EMail.setBackground(Color.WHITE);
- EMail.setText(person.verantowrtlicher.getEMail());
- EMail.setColumns(10);
- EMail.setBounds(145, 338, 350, 20);
- panel_1.add(EMail);
-
- JLabel lblImagename = new JLabel("Imagename: *");
- lblImagename.setBackground(SystemColor.menu);
- lblImagename.setBounds(10, 31, 125, 20);
- panel_1.add(lblImagename);
-
- imagename = new JTextField();
- imagename.setBackground(Color.WHITE);
- imagename.setText(Image.image.getImagename());
- imagename.setColumns(10);
- imagename.setBounds(145, 31, 350, 20);
- panel_1.add(imagename);
-
- JTextArea txtrGebenSieBitte = new JTextArea();
- txtrGebenSieBitte.setBackground(SystemColor.menu);
- txtrGebenSieBitte.setLineWrap(true);
- txtrGebenSieBitte.setFont(new Font("Tahoma", Font.PLAIN, 12));
- txtrGebenSieBitte.setText("Geben Sie bitte einen sprechenden Namen f\u00FCr das Image an.\r\nDieser soll jedoch recht allgemein gehalten werden.\r\nBeispiel: \"Programmieren\", nicht \"Programmieren 1\"");
- txtrGebenSieBitte.setBounds(145, 62, 350, 110);
- panel_1.add(txtrGebenSieBitte);
-
- JPanel panel = new JPanel();
- panel.setBounds(10, 402, 577, 33);
- contentPanel.add(panel);
- panel.setLayout(null);
- panel.setBorder(new EmptyBorder(5, 5, 5, 5));
- panel.setBackground(SystemColor.menu);
-
- JLabel lblPflichtfelder = new JLabel("* Pflichtfelder");
- lblPflichtfelder.setBounds(10, 442, 136, 14);
- contentPanel.add(lblPflichtfelder);
-
- JLabel lblHauptmen = new JLabel("Hauptmen\u00FC");
- lblHauptmen.addMouseListener(new MouseAdapter() {
- @Override
- public void mouseClicked(MouseEvent arg0) {
- //Durch den Klick auf Button Hauptmenpü wird dieses Fenster unsichtbar und das Hauptmenü sichtbar
- EditImageAllgemein_GUI.this.setVisible(false);
- MainMenue_GUI main=new MainMenue_GUI();
- main.setVisible(true);
- }
- });
- lblHauptmen.setForeground(Color.BLUE);
- lblHauptmen.setBounds(10, 11, 61, 14);
- contentPanel.add(lblHauptmen);
-
- JLabel label_1 = new JLabel(">");
- label_1.setBounds(69, 11, 13, 14);
- contentPanel.add(label_1);
-
- JLabel lblVlimage = new JLabel("VL-Image");
- lblVlimage.setForeground(Color.BLUE);
- lblVlimage.setBounds(81, 11, 45, 14);
- contentPanel.add(lblVlimage);
-
- JLabel label_2 = new JLabel(">");
- label_2.setBounds(133, 11, 13, 14);
- contentPanel.add(label_2);
-
- JLabel lblNewLabel_1 = new JLabel("Bearbeiten");
- lblNewLabel_1.setBounds(146, 11, 71, 14);
- contentPanel.add(lblNewLabel_1);
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setBounds(0, 640, 597, 33);
- buttonPane.setBackground(SystemColor.menu);
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- getContentPane().add(buttonPane);
- {
- JButton okButton = new JButton("Zur\u00FCck");
- okButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
-
- //Setzen der Eingabe im Model, dadurch bleiben die Daten bei einem erneuten Aufruf verfügbar
- //Image.image.setImagename(imagename.getText());
-
- MainMenue_GUI sr=new MainMenue_GUI();
- sr.setVisible(true);
- dispose();
- }
- });
- okButton.setActionCommand("OK");
- buttonPane.add(okButton);
- getRootPane().setDefaultButton(okButton);
- }
- {
- JButton cancelButton = new JButton("Weiter");
- cancelButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- //Prüfung ob alle notwendigen Felder ausgefüllt sind
- //Setzen der Eingabe im Model, dadurch bleiben die Daten bei einem erneuten Aufruf verfügbar
- System.out.println(imagename.getText());
- Image.image.setNewName(imagename.getText());
- con.closeThriftConnection();
- EditImageTechnisch_GUI ea=new EditImageTechnisch_GUI();
- ea.setVisible(true);
- dispose();
-
- }
- });
- cancelButton.setActionCommand("Cancel");
- buttonPane.add(cancelButton);
- }
- }
-
- JSeparator separator = new JSeparator();
- separator.setBounds(0, 78, 597, 2);
- getContentPane().add(separator);
-
- JSeparator separator_1 = new JSeparator();
- separator_1.setBounds(0, 627, 597, 2);
- getContentPane().add(separator_1);
-
- JMenuBar menuBar = new JMenuBar();
- setJMenuBar(menuBar);
-
- JMenu mnNewMenu_1 = new JMenu("Hilfe");
- menuBar.add(mnNewMenu_1);
-
- JMenuItem mntmFaq = new JMenuItem("FAQ");
- mnNewMenu_1.add(mntmFaq);
-
- JMenuItem mntmOtrs = new JMenuItem("OTRS");
- mnNewMenu_1.add(mntmOtrs);
-
- }
-
- public void initData(){
- try {
- System.out.println("initdata1:"+Image.image.getImagename());
- Map<String,String> map=client.getImageData(Image.image.getImagename());
- if(map.get("internet").equals("0")){
- Image.image.setInternet(false);
- }
- else
- {
- Image.image.setInternet(true);
- }
- if(map.get("license").equals("0")){
- Image.image.setLicensed(false);
- }
- else{
- Image.image.setLicensed(true);
- }
- Image.image.setRam(Integer.parseInt(map.get("ram")));
- Image.image.setCpu(Integer.parseInt(map.get("cpu")));
- } catch (TException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
-
-
-}
diff --git a/Dozentenmodul/src/gui/EditImageTechnisch_GUI.java b/Dozentenmodul/src/gui/EditImageTechnisch_GUI.java
deleted file mode 100644
index d8ab833f..00000000
--- a/Dozentenmodul/src/gui/EditImageTechnisch_GUI.java
+++ /dev/null
@@ -1,364 +0,0 @@
-package gui;
-
-
-import java.awt.Color;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.Toolkit;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.MouseAdapter;
-import java.awt.event.MouseEvent;
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
-import java.util.HashMap;
-import java.util.Map;
-
-import javax.swing.ButtonGroup;
-import javax.swing.JButton;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JMenu;
-import javax.swing.JMenuBar;
-import javax.swing.JMenuItem;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JSeparator;
-import javax.swing.JSpinner;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.SpinnerNumberModel;
-import javax.swing.UIManager;
-import javax.swing.UnsupportedLookAndFeelException;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.TitledBorder;
-
-import org.apache.thrift.TException;
-
-import server.Server.Client;
-import thrift.ThriftConnection;
-
-import models.Image;
-
-@SuppressWarnings("serial")
-public class EditImageTechnisch_GUI extends JFrame {
-
- private final JPanel contentPanel = new JPanel();
- String[] result;
- JSpinner spinnerCPU;
- JSpinner spinnerRam;
- JRadioButton rdbtnlicenseJa;
- JRadioButton rdbtnlicenseNein;
- JRadioButton rdbtnInternetJa;
- JRadioButton rdbtnInternetNein;
- private final ButtonGroup buttonGrouplicense = new ButtonGroup();
- private final ButtonGroup buttonGroupInternet = new ButtonGroup();
-
-
- /**
- * Create the dialog.
- */
- public EditImageTechnisch_GUI() {
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(WindowEvent arg0) {
- //Beendet die Anwendung bei Klick auf das X
- System.exit(0);
- }
-
- });
- //Verhindert das Vergrößern des Fensters
- setResizable(false);
-
- try {
- //setzt das Look & Feel
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
- } catch (ClassNotFoundException | InstantiationException
- | IllegalAccessException | UnsupportedLookAndFeelException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- //Setzt den Titel des Fensters
- setTitle("bwLehrpool Suite *Prototyp*");
- //Zentriert das Fenster
- Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
- int top=(screenSize.height - 722) / 2;
- int left=(screenSize.width - 603) / 2;
- setBounds(left, top, 603, 722);
-
-
- getContentPane().setLayout(null);
- {
- JPanel panel = new JPanel();
- panel.setBackground(SystemColor.menu);
- panel.setBounds(10, 11, 577, 57);
- getContentPane().add(panel);
- panel.setLayout(null);
- {
- JLabel lblNewLabel = new JLabel("Eingabe Ihrer Daten");
- lblNewLabel.setBounds(10, 11, 509, 22);
- panel.add(lblNewLabel);
- lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 18));
- }
-
- JTextPane txtpnBitteWhlenSie = new JTextPane();
- txtpnBitteWhlenSie.setEditable(false);
- txtpnBitteWhlenSie.setBackground(SystemColor.menu);
- txtpnBitteWhlenSie.setText("Geben Sie hier bitte einen sprechenden Imagename sowie Ihre Kontaktdaten an");
- txtpnBitteWhlenSie.setBounds(10, 36, 509, 32);
- panel.add(txtpnBitteWhlenSie);
- }
- contentPanel.setBounds(10, 85, 577, 493);
- contentPanel.setBackground(SystemColor.menu);
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- getContentPane().add(contentPanel);
- contentPanel.setLayout(null);
-
- JPanel panel_1 = new JPanel();
- panel_1.setBackground(SystemColor.menu);
- panel_1.setBorder(new TitledBorder(null, "Informationen zum Image", TitledBorder.LEADING, TitledBorder.TOP, null, null));
- panel_1.setBounds(10, 66, 557, 95);
- contentPanel.add(panel_1);
- panel_1.setLayout(null);
-
- JLabel lblNewLabel_2 = new JLabel("Image enth\u00E4lt lizenzpflichtige Software:");
- lblNewLabel_2.setBounds(10, 30, 250, 20);
- panel_1.add(lblNewLabel_2);
-
- rdbtnlicenseJa = new JRadioButton("Ja");
- buttonGrouplicense.add(rdbtnlicenseJa);
- rdbtnlicenseJa.setBounds(266, 29, 109, 23);
- panel_1.add(rdbtnlicenseJa);
-
- rdbtnlicenseNein = new JRadioButton("Nein");
- buttonGrouplicense.add(rdbtnlicenseNein);
- rdbtnlicenseNein.setBounds(377, 29, 109, 23);
- panel_1.add(rdbtnlicenseNein);
- if(Image.image.isLicensed()==true){
- rdbtnlicenseJa.setSelected(true);
- }
- else
- {
- rdbtnlicenseNein.setSelected(true);
- }
-
-
-
- JLabel lblInternetIstInnerhalb = new JLabel("Internet ist innerhalb des Image gesperrt:");
- lblInternetIstInnerhalb.setBounds(10, 58, 250, 20);
- panel_1.add(lblInternetIstInnerhalb);
-
- rdbtnInternetJa = new JRadioButton("Ja");
- buttonGroupInternet.add(rdbtnInternetJa);
- rdbtnInternetJa.setBounds(266, 57, 109, 23);
- panel_1.add(rdbtnInternetJa);
-
- rdbtnInternetNein = new JRadioButton("Nein");
- rdbtnInternetNein.setSelected(true);
- buttonGroupInternet.add(rdbtnInternetNein);
- rdbtnInternetNein.setBounds(377, 57, 109, 23);
- panel_1.add(rdbtnInternetNein);
- if(Image.image.isInternet()==true){
- rdbtnInternetJa.setSelected(true);
- }
- else
- {
- rdbtnInternetNein.setSelected(true);
- }
- JLabel lblHauptmen = new JLabel("Hauptmen\u00FC");
- lblHauptmen.addMouseListener(new MouseAdapter() {
- @Override
- public void mouseClicked(MouseEvent arg0) {
- //Macht dieses Fenster unsichtbar und das vorhergehende Fenster sichtbar
- EditImageTechnisch_GUI.this.setVisible(false);
- MainMenue_GUI main=new MainMenue_GUI();
- main.setVisible(true);
- }
- });
- lblHauptmen.setForeground(Color.BLUE);
- lblHauptmen.setBounds(10, 11, 61, 14);
- contentPanel.add(lblHauptmen);
-
- JLabel label_1 = new JLabel(">");
- label_1.setBounds(69, 11, 13, 14);
- contentPanel.add(label_1);
-
- JLabel lblVlimage = new JLabel("VL-Image");
- lblVlimage.setForeground(Color.BLUE);
- lblVlimage.setBounds(81, 11, 45, 14);
- contentPanel.add(lblVlimage);
-
- JLabel label_2 = new JLabel(">");
- label_2.setBounds(133, 11, 13, 14);
- contentPanel.add(label_2);
-
- JLabel lblNewLabel_1 = new JLabel("Neu");
- lblNewLabel_1.setBounds(146, 11, 46, 14);
- contentPanel.add(lblNewLabel_1);
-
- JPanel panel_2 = new JPanel();
- panel_2.setLayout(null);
- panel_2.setBorder(new TitledBorder(null, "Empfehlung bezüglich Ressourcen", TitledBorder.LEADING, TitledBorder.TOP, null, null));
- panel_2.setBackground(SystemColor.menu);
- panel_2.setBounds(10, 172, 557, 338);
- contentPanel.add(panel_2);
-
- JTextArea txtrHinweisSolltenSie = new JTextArea();
- txtrHinweisSolltenSie.setBackground(SystemColor.menu);
- txtrHinweisSolltenSie.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtrHinweisSolltenSie.setText("Hinweis: Sollten Sie keine Software einsetzen, die viele Ressourcen ben\u00F6tigt,\r\nk\u00F6nnen Sie sich an den Beispielwerten orientieren.");
- txtrHinweisSolltenSie.setBounds(10, 25, 537, 55);
- panel_2.add(txtrHinweisSolltenSie);
-
- JLabel lblNewLabel_3 = new JLabel("Wie viel Arbeitsspeicher empfehlen Sie f\u00FCr das Image:");
- lblNewLabel_3.setBounds(10, 91, 280, 20);
- panel_2.add(lblNewLabel_3);
-
- JLabel lblMindestens = new JLabel("mindestens");
- lblMindestens.setBounds(315, 91, 60, 20);
- panel_2.add(lblMindestens);
-
- spinnerRam = new JSpinner();
- spinnerRam.setModel(new SpinnerNumberModel(1, 1, 8, 1));
- spinnerRam.setBounds(385, 88, 29, 20);
- spinnerRam.setValue(Image.image.getRam());
- panel_2.add(spinnerRam);
-
- JLabel lblGbyte = new JLabel("GByte");
- lblGbyte.setBounds(424, 91, 46, 20);
- panel_2.add(lblGbyte);
-
- JTextArea txtrBeispielWindows = new JTextArea();
- txtrBeispielWindows.setText("Beispiel:\r\nWindows 7 32/64 Bit: 2 GByte\r\nLinux/Unix 32/64 Bit: 1 GByte");
- txtrBeispielWindows.setFont(new Font("Tahoma", Font.PLAIN, 11));
- txtrBeispielWindows.setBackground(SystemColor.menu);
- txtrBeispielWindows.setBounds(10, 122, 280, 55);
- panel_2.add(txtrBeispielWindows);
-
- JTextArea txtrBeispielWindows_1 = new JTextArea();
- txtrBeispielWindows_1.setText("Beispiel:\r\nWindows 7 32/64 Bit: 1 Kern\r\nLinux/Unix 32/64 Bit: 1 Kern");
- txtrBeispielWindows_1.setFont(new Font("Tahoma", Font.PLAIN, 11));
- txtrBeispielWindows_1.setBackground(SystemColor.menu);
- txtrBeispielWindows_1.setBounds(10, 222, 280, 55);
- panel_2.add(txtrBeispielWindows_1);
-
- JLabel lblWieVieleCpus = new JLabel("Wie viele CPUs empfehlen Sie f\u00FCr das Image:");
- lblWieVieleCpus.setBounds(10, 191, 280, 20);
- panel_2.add(lblWieVieleCpus);
-
- JLabel label_3 = new JLabel("mindestens");
- label_3.setBounds(315, 191, 60, 20);
- panel_2.add(label_3);
-
- spinnerCPU = new JSpinner();
- spinnerCPU.setModel(new SpinnerNumberModel(1, 1, 4, 1));
- spinnerCPU.setBounds(385, 188, 29, 20);
- spinnerCPU.setValue(Image.image.getCpu());
- panel_2.add(spinnerCPU);
-
- JLabel lblKerne = new JLabel("Kerne");
- lblKerne.setBounds(424, 191, 46, 20);
- panel_2.add(lblKerne);
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setBounds(0, 640, 597, 33);
- buttonPane.setBackground(SystemColor.menu);
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- getContentPane().add(buttonPane);
- {
- JButton okButton = new JButton("Zur\u00FCck");
- okButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- //Setzt die Imagewerte in das Model
- Image.image.setCpu(Integer.valueOf(spinnerCPU.getValue().toString()).intValue());
- Image.image.setRam(Integer.valueOf(spinnerRam.getValue().toString()).intValue());
- if(rdbtnInternetJa.isSelected()==true)
- {
- Image.image.setInternet(true);
- }
- else
- {
- Image.image.setInternet(false);
- }
-
- if(rdbtnlicenseJa.isSelected()==true)
- {
- Image.image.setLicensed(true);
- }
- else
- {
- Image.image.setLicensed(false);
- }
- //Öffnet das vorherige Fenster
- EingabeImageAllgemein_GUI sr=new EingabeImageAllgemein_GUI();
- sr.setVisible(true);
- dispose();
- }
- });
- okButton.setActionCommand("OK");
- buttonPane.add(okButton);
- getRootPane().setDefaultButton(okButton);
- }
- {
- JButton cancelButton = new JButton("Weiter");
- cancelButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- Image.image.setCpu(Integer.valueOf(spinnerCPU.getValue().toString()).intValue());
- Image.image.setRam(Integer.valueOf(spinnerRam.getValue().toString()).intValue());
- if(rdbtnInternetJa.isSelected()==true)
- {
- Image.image.setInternet(true);
- }
- else
- {
- Image.image.setInternet(false);
- }
-
- if(rdbtnlicenseJa.isSelected()==true)
- {
- Image.image.setLicensed(true);
- }
- else
- {
- Image.image.setLicensed(false);
- }
- //Öffnet das nächste Fenster
- FTPEditUploader_GUI ea=new FTPEditUploader_GUI();
- ea.setVisible(true);
- dispose();
-
- }
- });
- cancelButton.setActionCommand("Cancel");
- buttonPane.add(cancelButton);
- }
- }
-
- JSeparator separator = new JSeparator();
- separator.setBounds(0, 78, 597, 2);
- getContentPane().add(separator);
-
- JSeparator separator_1 = new JSeparator();
- separator_1.setBounds(0, 627, 597, 2);
- getContentPane().add(separator_1);
-
- JMenuBar menuBar = new JMenuBar();
- setJMenuBar(menuBar);
-
- JMenu mnNewMenu_1 = new JMenu("Hilfe");
- menuBar.add(mnNewMenu_1);
-
- JMenuItem mntmFaq = new JMenuItem("FAQ");
- mnNewMenu_1.add(mntmFaq);
-
- JMenuItem mntmOtrs = new JMenuItem("OTRS");
- mnNewMenu_1.add(mntmOtrs);
-
- }
-
-
-
- }
-
diff --git a/Dozentenmodul/src/gui/EingabeVeranstaltungAllgemein_GUI.java b/Dozentenmodul/src/gui/EingabeVeranstaltungAllgemein_GUI.java
deleted file mode 100644
index 86052152..00000000
--- a/Dozentenmodul/src/gui/EingabeVeranstaltungAllgemein_GUI.java
+++ /dev/null
@@ -1,289 +0,0 @@
-package gui;
-
-
-import java.awt.Color;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.Toolkit;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.MouseAdapter;
-import java.awt.event.MouseEvent;
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
-
-import javax.swing.JButton;
-import javax.swing.JDialog;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JMenu;
-import javax.swing.JMenuBar;
-import javax.swing.JMenuItem;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JSeparator;
-import javax.swing.JTextField;
-import javax.swing.JTextPane;
-import javax.swing.UIManager;
-import javax.swing.UnsupportedLookAndFeelException;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.TitledBorder;
-
-import models.person;
-
-
-@SuppressWarnings("serial")
-public class EingabeVeranstaltungAllgemein_GUI extends JFrame {
-
- private final JPanel contentPanel = new JPanel();
- String[] result;
- private JTextField Vorname;
- private JTextField Nachname;
- private JTextField Hochschule;
- private JTextField EMail;
- /**
- * Launch the application.
- */
- public static void main(String[] args) {
- try {
- EingabeVeranstaltungAllgemein_GUI dialog = new EingabeVeranstaltungAllgemein_GUI();
- dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
- dialog.setVisible(true);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- /**
- * Create the dialog.
- */
- public EingabeVeranstaltungAllgemein_GUI() {
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(WindowEvent arg0) {
- System.exit(0);
- }
- });
- setResizable(false);
-
- try {
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
- } catch (ClassNotFoundException | InstantiationException
- | IllegalAccessException | UnsupportedLookAndFeelException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- setTitle("bwLehrpool Suite *Prototyp*");
- Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
- int top=(screenSize.height - 722) / 2;
- int left=(screenSize.width - 603) / 2;
- setBounds(left, top, 603, 722);
- //setBounds(100, 100, 603, 722);
- getContentPane().setLayout(null);
- {
- JPanel panel = new JPanel();
- panel.setBackground(SystemColor.menu);
- panel.setBounds(10, 11, 577, 57);
- getContentPane().add(panel);
- panel.setLayout(null);
- {
- JLabel lblNewLabel = new JLabel("Eingabe Ihrer Daten");
- lblNewLabel.setBounds(10, 11, 509, 22);
- panel.add(lblNewLabel);
- lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 18));
- }
-
- JTextPane txtpnBitteWhlenSie = new JTextPane();
- txtpnBitteWhlenSie.setEditable(false);
- txtpnBitteWhlenSie.setBackground(SystemColor.menu);
- txtpnBitteWhlenSie.setText("Geben Sie hier bitte einen sprechenden Imagename sowie Ihre Kontaktdaten an");
- txtpnBitteWhlenSie.setBounds(10, 36, 509, 32);
- panel.add(txtpnBitteWhlenSie);
- }
- contentPanel.setBounds(10, 85, 577, 493);
- contentPanel.setBackground(SystemColor.menu);
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- getContentPane().add(contentPanel);
- contentPanel.setLayout(null);
-
- JPanel panel_1 = new JPanel();
- panel_1.setBackground(SystemColor.menu);
- panel_1.setBorder(new TitledBorder(null, "Informationen zum Besitzer", TitledBorder.LEADING, TitledBorder.TOP, null, null));
- panel_1.setBounds(10, 66, 557, 369);
- contentPanel.add(panel_1);
- panel_1.setLayout(null);
-
- JLabel label = new JLabel("Vorname: *");
- label.setBackground(SystemColor.menu);
- label.setBounds(10, 33, 125, 20);
- panel_1.add(label);
-
- Vorname = new JTextField();
- Vorname.setBackground(Color.WHITE);
- Vorname.setText((String) null);
- Vorname.setColumns(10);
- Vorname.setBounds(145, 33, 350, 20);
- panel_1.add(Vorname);
-
- JLabel label_7 = new JLabel("Nachname: *");
- label_7.setBackground(SystemColor.menu);
- label_7.setBounds(10, 64, 125, 20);
- panel_1.add(label_7);
-
- Nachname = new JTextField();
- Nachname.setBackground(Color.WHITE);
- Nachname.setText((String) null);
- Nachname.setColumns(10);
- Nachname.setBounds(145, 64, 350, 20);
- panel_1.add(Nachname);
-
- JLabel label_8 = new JLabel("Hochschule: *");
- label_8.setBackground(SystemColor.menu);
- label_8.setBounds(10, 95, 125, 20);
- panel_1.add(label_8);
-
- Hochschule = new JTextField();
- Hochschule.setBackground(Color.WHITE);
- Hochschule.setText((String) null);
- Hochschule.setColumns(10);
- Hochschule.setBounds(145, 95, 350, 20);
- panel_1.add(Hochschule);
-
- JLabel label_9 = new JLabel("E-Mail: *");
- label_9.setBackground(SystemColor.menu);
- label_9.setBounds(10, 126, 125, 20);
- panel_1.add(label_9);
-
- EMail = new JTextField();
- EMail.setBackground(Color.WHITE);
- EMail.setText((String) null);
- EMail.setColumns(10);
- EMail.setBounds(145, 126, 350, 20);
- panel_1.add(EMail);
-
- JPanel panel = new JPanel();
- panel.setBounds(10, 402, 577, 33);
- contentPanel.add(panel);
- panel.setLayout(null);
- panel.setBorder(new EmptyBorder(5, 5, 5, 5));
- panel.setBackground(SystemColor.menu);
-
- JLabel lblPflichtfelder = new JLabel("* Pflichtfelder");
- lblPflichtfelder.setBounds(10, 442, 136, 14);
- contentPanel.add(lblPflichtfelder);
-
- JLabel lblHauptmen = new JLabel("Hauptmen\u00FC");
- lblHauptmen.addMouseListener(new MouseAdapter() {
- @Override
- public void mouseClicked(MouseEvent arg0) {
-
- EingabeVeranstaltungAllgemein_GUI.this.setVisible(false);
- MainMenue_GUI main=new MainMenue_GUI();
- main.setVisible(true);
- }
- });
- lblHauptmen.setForeground(Color.BLUE);
- lblHauptmen.setBounds(10, 11, 61, 14);
- contentPanel.add(lblHauptmen);
-
- JLabel label_1 = new JLabel(">");
- label_1.setBounds(69, 11, 13, 14);
- contentPanel.add(label_1);
-
- JLabel lblVlimage = new JLabel("VL-Image");
- lblVlimage.setForeground(Color.BLUE);
- lblVlimage.setBounds(81, 11, 45, 14);
- contentPanel.add(lblVlimage);
-
- JLabel label_2 = new JLabel(">");
- label_2.setBounds(133, 11, 13, 14);
- contentPanel.add(label_2);
-
- JLabel lblNewLabel_1 = new JLabel("Neu");
- lblNewLabel_1.setBounds(146, 11, 46, 14);
- contentPanel.add(lblNewLabel_1);
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setBounds(0, 640, 597, 33);
- buttonPane.setBackground(SystemColor.menu);
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- getContentPane().add(buttonPane);
- {
- JButton okButton = new JButton("Zur\u00FCck");
- okButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- person.verantowrtlicher.setVorname(Vorname.getText());
- person.verantowrtlicher.setName(Nachname.getText());
- person.verantowrtlicher.setEMail(EMail.getText());
-
- person.verantowrtlicher.setHochschule(Hochschule.getText());
-
-
-
- MainMenue_GUI sr=new MainMenue_GUI();
- sr.setVisible(true);
- dispose();
- }
- });
- okButton.setActionCommand("OK");
- buttonPane.add(okButton);
- getRootPane().setDefaultButton(okButton);
- }
- {
- JButton cancelButton = new JButton("Weiter");
- cancelButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- if(Vorname.getText().isEmpty()==false && Nachname.getText().isEmpty()==false && Hochschule.getText().isEmpty()==false&&EMail.getText().isEmpty()==false)
- {
- person.verantowrtlicher.setVorname(Vorname.getText());
- person.verantowrtlicher.setName(Nachname.getText());
- person.verantowrtlicher.setEMail(EMail.getText());
-
- person.verantowrtlicher.setHochschule(Hochschule.getText());
-
-
- EingabeVeranstatlungTechnisch_GUI ea=new EingabeVeranstatlungTechnisch_GUI();
- ea.setVisible(true);
- dispose();
- }
- else{
- JOptionPane.showMessageDialog(null, "Bitte geben Sie alle notwendigen Daten an!",
- "Error", JOptionPane.ERROR_MESSAGE);
- }
- }
- });
- cancelButton.setActionCommand("Cancel");
- buttonPane.add(cancelButton);
- }
- }
-
- JSeparator separator = new JSeparator();
- separator.setBounds(0, 78, 597, 2);
- getContentPane().add(separator);
-
- JSeparator separator_1 = new JSeparator();
- separator_1.setBounds(0, 627, 597, 2);
- getContentPane().add(separator_1);
-
- JMenuBar menuBar = new JMenuBar();
- setJMenuBar(menuBar);
-
- JMenu mnNewMenu = new JMenu("Suchen");
- menuBar.add(mnNewMenu);
-
- JMenuItem mntmVlSuche = new JMenuItem("VL Suche");
- mnNewMenu.add(mntmVlSuche);
-
- JMenu mnNewMenu_1 = new JMenu("Hilfe");
- menuBar.add(mnNewMenu_1);
-
- JMenuItem mntmFaq = new JMenuItem("FAQ");
- mnNewMenu_1.add(mntmFaq);
-
- JMenuItem mntmOtrs = new JMenuItem("OTRS");
- mnNewMenu_1.add(mntmOtrs);
-
- }
-}
diff --git a/Dozentenmodul/src/gui/EingabeVeranstatlungTechnisch_GUI.java b/Dozentenmodul/src/gui/EingabeVeranstatlungTechnisch_GUI.java
deleted file mode 100644
index 6f645ac5..00000000
--- a/Dozentenmodul/src/gui/EingabeVeranstatlungTechnisch_GUI.java
+++ /dev/null
@@ -1,328 +0,0 @@
-package gui;
-
-
-import java.awt.Color;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.ScrollPane;
-import java.awt.SystemColor;
-import java.awt.Toolkit;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.MouseAdapter;
-import java.awt.event.MouseEvent;
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
-
-import javax.swing.ButtonGroup;
-import javax.swing.JButton;
-import javax.swing.JDialog;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JMenu;
-import javax.swing.JMenuBar;
-import javax.swing.JMenuItem;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JSeparator;
-import javax.swing.JTextArea;
-import javax.swing.JTextField;
-import javax.swing.JTextPane;
-import javax.swing.UIManager;
-import javax.swing.UnsupportedLookAndFeelException;
-import javax.swing.border.EmptyBorder;
-
-import models.Image;
-import models.Lecture;
-
-
-import com.toedter.calendar.JDateChooser;
-
-@SuppressWarnings("serial")
-public class EingabeVeranstatlungTechnisch_GUI extends JFrame {
-
- private final JPanel contentPanel = new JPanel();
- String[] result;
- private JTextField textFieldLaborname;
- JRadioButton rdbtnJa;
- JDateChooser dateChooserend;
- JDateChooser dateChooserstart;
- JTextArea textAreashort;
- JTextArea textArealong;
- private final ButtonGroup buttonGroup = new ButtonGroup();
- /**
- * Launch the application.
- */
- public static void main(String[] args) {
- try {
- EingabeVeranstatlungTechnisch_GUI dialog = new EingabeVeranstatlungTechnisch_GUI();
- dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
- dialog.setVisible(true);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- /**
- * Create the dialog.
- */
- public EingabeVeranstatlungTechnisch_GUI() {
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(WindowEvent arg0) {
- System.exit(0);
- }
- });
- setResizable(false);
-
- try {
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
- } catch (ClassNotFoundException | InstantiationException
- | IllegalAccessException | UnsupportedLookAndFeelException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- setTitle("bwLehrpool Suite *Prototyp*");
- Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
- int top=(screenSize.height - 722) / 2;
- int left=(screenSize.width - 603) / 2;
- setBounds(left, top, 603, 722);
- //setBounds(100, 100, 603, 722);
- getContentPane().setLayout(null);
- {
- JPanel panel = new JPanel();
- panel.setBackground(SystemColor.menu);
- panel.setBounds(10, 11, 577, 57);
- getContentPane().add(panel);
- panel.setLayout(null);
- {
- JLabel lblNewLabel = new JLabel("Dateneingabe f\u00FCr Veranstaltung");
- lblNewLabel.setBounds(10, 11, 509, 22);
- panel.add(lblNewLabel);
- lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 18));
- }
-
- JTextPane txtpnBitteWhlenSie = new JTextPane();
- txtpnBitteWhlenSie.setEditable(false);
- txtpnBitteWhlenSie.setBackground(SystemColor.menu);
- txtpnBitteWhlenSie.setText("Geben Sie hier bitte einen sprechenden Imagename sowie Ihre Kontaktdaten an");
- txtpnBitteWhlenSie.setBounds(10, 36, 509, 32);
- panel.add(txtpnBitteWhlenSie);
- }
- contentPanel.setBounds(10, 85, 577, 531);
- contentPanel.setBackground(SystemColor.menu);
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- getContentPane().add(contentPanel);
- contentPanel.setLayout(null);
-
- JLabel lblHauptmen = new JLabel("Hauptmen\u00FC");
- lblHauptmen.addMouseListener(new MouseAdapter() {
- @Override
- public void mouseClicked(MouseEvent arg0) {
-
- EingabeVeranstatlungTechnisch_GUI.this.setVisible(false);
- MainMenue_GUI main=new MainMenue_GUI();
- main.setVisible(true);
- }
- });
- lblHauptmen.setForeground(Color.BLUE);
- lblHauptmen.setBounds(10, 11, 61, 14);
- contentPanel.add(lblHauptmen);
-
- JLabel label_1 = new JLabel(">");
- label_1.setBounds(69, 11, 13, 14);
- contentPanel.add(label_1);
-
- JLabel lblVlimage = new JLabel("Veranstaltung ");
- lblVlimage.setForeground(Color.BLUE);
- lblVlimage.setBounds(81, 11, 74, 14);
- contentPanel.add(lblVlimage);
-
- JLabel label_2 = new JLabel(">");
- label_2.setBounds(152, 11, 13, 14);
- contentPanel.add(label_2);
-
- JLabel lblNewLabel_1 = new JLabel("Neu");
- lblNewLabel_1.setBounds(165, 11, 46, 14);
- contentPanel.add(lblNewLabel_1);
-
- JLabel lblLabornameanzeigename = new JLabel("Laborname (Anzeigename): *");
- lblLabornameanzeigename.setBounds(10, 57, 250, 14);
- contentPanel.add(lblLabornameanzeigename);
-
- textFieldLaborname = new JTextField();
- textFieldLaborname.setBounds(270, 54, 307, 20);
- contentPanel.add(textFieldLaborname);
- textFieldLaborname.setColumns(10);
-
- JLabel lblKurzbeschreibung = new JLabel("Kurzbeschreibung: *");
- lblKurzbeschreibung.setBounds(10, 175, 250, 14);
- contentPanel.add(lblKurzbeschreibung);
-
- ScrollPane scrollPane = new ScrollPane();
- scrollPane.setBounds(270, 175, 307, 137);
- contentPanel.add(scrollPane);
-
- textAreashort = new JTextArea();
- textAreashort.setLineWrap(true);
- scrollPane.add(textAreashort);
- textAreashort.setBounds(0, 0, 4, 22);
-
- ScrollPane scrollPane_1 = new ScrollPane();
- scrollPane_1.setBounds(270, 315, 307, 137);
- contentPanel.add(scrollPane_1);
-
- textArealong = new JTextArea();
- textArealong.setLineWrap(true);
- textArealong.setBounds(0, 0, 4, 22);
- scrollPane_1.add(textArealong);
-
- JLabel label = new JLabel("Kurzbeschreibung: *");
- label.setBounds(0, 318, 250, 14);
- contentPanel.add(label);
-
- JLabel lblGltigkeitsdatum = new JLabel("G\u00FCltigkeitsdatum: *");
- lblGltigkeitsdatum.setBounds(0, 464, 250, 14);
- contentPanel.add(lblGltigkeitsdatum);
-
- JLabel lblVon = new JLabel("von:");
- lblVon.setBounds(270, 461, 30, 20);
- contentPanel.add(lblVon);
-
- dateChooserstart = new JDateChooser();
- dateChooserstart.setDateFormatString("yyyy-MM-dd hh:mm:ss");
- dateChooserstart.setBounds(332, 458, 101, 20);
- contentPanel.add(dateChooserstart);
-
- JLabel lblBis = new JLabel("bis");
- lblBis.setBounds(443, 461, 24, 20);
- contentPanel.add(lblBis);
-
- dateChooserend = new JDateChooser();
- dateChooserend.setDateFormatString("dd.MM.yyyy hh:mm:ss");
- dateChooserend.setBounds(477, 459, 100, 20);
- contentPanel.add(dateChooserend);
-
- JLabel lblAktiv = new JLabel("Aktiv:");
- lblAktiv.setBounds(0, 492, 250, 14);
- contentPanel.add(lblAktiv);
-
- JLabel lblimVmchooserSichtbar = new JLabel("(Im VMChooser sichtbar)");
- lblimVmchooserSichtbar.setBounds(0, 517, 250, 14);
- contentPanel.add(lblimVmchooserSichtbar);
-
- rdbtnJa = new JRadioButton("Ja");
- rdbtnJa.setSelected(true);
- buttonGroup.add(rdbtnJa);
- rdbtnJa.setBounds(270, 488, 109, 23);
- contentPanel.add(rdbtnJa);
-
- JRadioButton rdbtnNein = new JRadioButton("Nein");
- buttonGroup.add(rdbtnNein);
- rdbtnNein.setBounds(381, 488, 109, 23);
- contentPanel.add(rdbtnNein);
-
- JTextArea txtrGebenSieBitte = new JTextArea();
- txtrGebenSieBitte.setWrapStyleWord(true);
- txtrGebenSieBitte.setText("Geben Sie bitte einen sprechenden Namen f\u00FCr das Image an. Dieser soll jedoch recht allgemein gehalten werden.\r\nBeispiel: \"Programmieren\", nicht \"Programmieren 1\"");
- txtrGebenSieBitte.setLineWrap(true);
- txtrGebenSieBitte.setFont(new Font("Tahoma", Font.PLAIN, 12));
- txtrGebenSieBitte.setBackground(SystemColor.menu);
- txtrGebenSieBitte.setBounds(10, 82, 567, 59);
- contentPanel.add(txtrGebenSieBitte);
- //contentPanel.add(textArea);
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setBounds(0, 640, 597, 33);
- buttonPane.setBackground(SystemColor.menu);
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- getContentPane().add(buttonPane);
- {
- JButton okButton = new JButton("Zur\u00FCck");
- okButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
-
- if(rdbtnJa.isSelected()==true)
- {
- Lecture.lecture.setActive(true);
- }
- else
- {
- Lecture.lecture.setActive(false);
- }
-
- Lecture.lecture.setName(textFieldLaborname.getText());
- Lecture.lecture.setDesc(textArealong.getText());
- Lecture.lecture.setEnddate(dateChooserend.getDate());
- Lecture.lecture.setShortDesc(textAreashort.getText());
- Lecture.lecture.setStartdate(dateChooserstart.getDate());
- Image.image.setImagename(textFieldLaborname.getText());
-
- EingabeVeranstaltungAllgemein_GUI sr=new EingabeVeranstaltungAllgemein_GUI();
- sr.setVisible(true);
- dispose();
- }
- });
- okButton.setActionCommand("OK");
- buttonPane.add(okButton);
- getRootPane().setDefaultButton(okButton);
- }
- {
- JButton cancelButton = new JButton("Weiter");
- cancelButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- if(rdbtnJa.isSelected()==true)
- {
- Lecture.lecture.setActive(true);
- }
- else
- {
- Lecture.lecture.setActive(false);
- }
-
- Lecture.lecture.setName(textFieldLaborname.getText());
- Lecture.lecture.setDesc(textArealong.getText());
- Lecture.lecture.setEnddate(dateChooserend.getDate());
- Lecture.lecture.setShortDesc(textAreashort.getText());
- Lecture.lecture.setStartdate(dateChooserstart.getDate());
- Image.image.setImagename(textFieldLaborname.getText());
- LinkImage_GUI ea=new LinkImage_GUI();
- ea.setVisible(true);
- dispose();
-
- }
- });
- cancelButton.setActionCommand("Cancel");
- buttonPane.add(cancelButton);
- }
- }
-
- JSeparator separator = new JSeparator();
- separator.setBounds(0, 78, 597, 2);
- getContentPane().add(separator);
-
- JSeparator separator_1 = new JSeparator();
- separator_1.setBounds(0, 627, 597, 2);
- getContentPane().add(separator_1);
-
- JMenuBar menuBar = new JMenuBar();
- setJMenuBar(menuBar);
-
- JMenu mnNewMenu = new JMenu("Suchen");
- menuBar.add(mnNewMenu);
-
- JMenuItem mntmVlSuche = new JMenuItem("VL Suche");
- mnNewMenu.add(mntmVlSuche);
-
- JMenu mnNewMenu_1 = new JMenu("Hilfe");
- menuBar.add(mnNewMenu_1);
-
- JMenuItem mntmFaq = new JMenuItem("FAQ");
- mnNewMenu_1.add(mntmFaq);
-
- JMenuItem mntmOtrs = new JMenuItem("OTRS");
- mnNewMenu_1.add(mntmOtrs);
-
- }
-}
diff --git a/Dozentenmodul/src/gui/ExtendedSearch_GUI.java b/Dozentenmodul/src/gui/ExtendedSearch_GUI.java
deleted file mode 100644
index ab9693a7..00000000
--- a/Dozentenmodul/src/gui/ExtendedSearch_GUI.java
+++ /dev/null
@@ -1,233 +0,0 @@
-package gui;
-
-
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.Toolkit;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
-
-import javax.swing.JButton;
-import javax.swing.JCheckBox;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JMenu;
-import javax.swing.JMenuBar;
-import javax.swing.JMenuItem;
-import javax.swing.JPanel;
-import javax.swing.JSeparator;
-import javax.swing.JTextField;
-import javax.swing.JTextPane;
-import javax.swing.UIManager;
-import javax.swing.UnsupportedLookAndFeelException;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.TitledBorder;
-
-@SuppressWarnings("serial")
-public class ExtendedSearch_GUI extends JFrame {
-
- private final JPanel contentPanel = new JPanel();
- String[] result;
- private JTextField textField;
- private JTextField textField_1;
- /**
- * Launch the application.
- */
- public static void main(String[] args) {
- try {
- ExtendedSearch_GUI dialog = new ExtendedSearch_GUI();
- dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
- dialog.setVisible(true);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- /**
- * Create the dialog.
- */
- public ExtendedSearch_GUI() {
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(WindowEvent arg0) {
- System.exit(0);
- }
- });
- setResizable(false);
-
- try {
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
- } catch (ClassNotFoundException | InstantiationException
- | IllegalAccessException | UnsupportedLookAndFeelException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- setTitle("bwLehrpool Suite *Prototyp*");
- Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
- int top=(screenSize.height - 722) / 2;
- int left=(screenSize.width -603) / 2;
- setBounds(left, top, 603, 722);
-
- getContentPane().setLayout(null);
- {
- JPanel panel = new JPanel();
- panel.setBackground(SystemColor.menu);
- panel.setBounds(10, 11, 577, 57);
- getContentPane().add(panel);
- panel.setLayout(null);
- {
- JLabel lblNewLabel = new JLabel("Weitere Suchoptionen");
- lblNewLabel.setBounds(10, 11, 509, 22);
- panel.add(lblNewLabel);
- lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 18));
- }
-
- JTextPane txtpnBitteWhlenSie = new JTextPane();
- txtpnBitteWhlenSie.setEditable(false);
- txtpnBitteWhlenSie.setBackground(SystemColor.menu);
- txtpnBitteWhlenSie.setText("beschreibung");
- txtpnBitteWhlenSie.setBounds(10, 36, 509, 32);
- panel.add(txtpnBitteWhlenSie);
- }
- contentPanel.setBounds(10, 85, 577, 493);
- contentPanel.setBackground(SystemColor.menu);
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- getContentPane().add(contentPanel);
- contentPanel.setLayout(null);
-
- JPanel panel_1 = new JPanel();
- panel_1.setBackground(SystemColor.menu);
- panel_1.setBorder(new TitledBorder(null, "Image-Typ", TitledBorder.LEADING, TitledBorder.TOP, null, null));
- panel_1.setBounds(10, 11, 557, 95);
- contentPanel.add(panel_1);
- panel_1.setLayout(null);
-
- JLabel lblNewLabel_2 = new JLabel("Image-Typ");
- lblNewLabel_2.setBounds(10, 39, 176, 20);
- panel_1.add(lblNewLabel_2);
-
- JCheckBox chckbxBestehendesImage = new JCheckBox("Bestehendes Image");
- chckbxBestehendesImage.setSelected(true);
- chckbxBestehendesImage.setBounds(192, 38, 138, 23);
- panel_1.add(chckbxBestehendesImage);
-
- JCheckBox chckbxRohling = new JCheckBox("Rohling");
- chckbxRohling.setSelected(true);
- chckbxRohling.setBounds(332, 38, 97, 23);
- panel_1.add(chckbxRohling);
-
- JPanel panel = new JPanel();
- panel.setLayout(null);
- panel.setBorder(new TitledBorder(null, "Image-Inhalt", TitledBorder.LEADING, TitledBorder.TOP, null, null));
- panel.setBackground(SystemColor.menu);
- panel.setBounds(10, 117, 557, 95);
- contentPanel.add(panel);
-
- JLabel lblEnthalteneSoftware = new JLabel("Enthaltene Software");
- lblEnthalteneSoftware.setBounds(10, 39, 176, 20);
- panel.add(lblEnthalteneSoftware);
-
- textField = new JTextField();
- textField.setBounds(196, 39, 351, 20);
- panel.add(textField);
- textField.setColumns(10);
-
- JLabel lblNewLabel_1 = new JLabel("Bitte mit ; getrennt angeben");
- lblNewLabel_1.setBounds(196, 70, 351, 14);
- panel.add(lblNewLabel_1);
-
- JPanel panel_2 = new JPanel();
- panel_2.setLayout(null);
- panel_2.setBorder(new TitledBorder(null, "Informationen zum Ersteller", TitledBorder.LEADING, TitledBorder.TOP, null, null));
- panel_2.setBackground(SystemColor.menu);
- panel_2.setBounds(10, 223, 557, 123);
- contentPanel.add(panel_2);
-
- JLabel lblNachnameDesErstellers = new JLabel("Nachname des Erstellers");
- lblNachnameDesErstellers.setBounds(10, 39, 176, 20);
- panel_2.add(lblNachnameDesErstellers);
-
- textField_1 = new JTextField();
- textField_1.setColumns(10);
- textField_1.setBounds(196, 39, 351, 20);
- panel_2.add(textField_1);
-
- JLabel lblHochschuleuniversitt = new JLabel("Hochschule/Universit\u00E4t");
- lblHochschuleuniversitt.setBounds(10, 70, 176, 20);
- panel_2.add(lblHochschuleuniversitt);
-
- JComboBox<String> comboBox = new JComboBox<String>();
- comboBox.setBounds(196, 70, 351, 20);
- panel_2.add(comboBox);
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setBounds(0, 640, 597, 33);
- buttonPane.setBackground(SystemColor.menu);
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- getContentPane().add(buttonPane);
- {
- JButton okButton = new JButton("Zur\u00FCck");
- okButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
-
-
- EingabeImageAllgemein_GUI sr=new EingabeImageAllgemein_GUI();
- sr.setVisible(true);
- dispose();
- }
- });
- okButton.setActionCommand("OK");
- buttonPane.add(okButton);
- getRootPane().setDefaultButton(okButton);
- }
- {
- JButton cancelButton = new JButton("\u00DCbernehmen");
- cancelButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
-
-
- FTPUploader_GUI ea=new FTPUploader_GUI();
- ea.setVisible(true);
- dispose();
-
- }
- });
- cancelButton.setActionCommand("Cancel");
- buttonPane.add(cancelButton);
- }
- }
-
- JSeparator separator = new JSeparator();
- separator.setBounds(0, 78, 597, 2);
- getContentPane().add(separator);
-
- JSeparator separator_1 = new JSeparator();
- separator_1.setBounds(0, 627, 597, 2);
- getContentPane().add(separator_1);
-
- JMenuBar menuBar = new JMenuBar();
- setJMenuBar(menuBar);
-
- JMenu mnNewMenu = new JMenu("Suchen");
- menuBar.add(mnNewMenu);
-
- JMenuItem mntmVlSuche = new JMenuItem("VL Suche");
- mnNewMenu.add(mntmVlSuche);
-
- JMenu mnNewMenu_1 = new JMenu("Hilfe");
- menuBar.add(mnNewMenu_1);
-
- JMenuItem mntmFaq = new JMenuItem("FAQ");
- mnNewMenu_1.add(mntmFaq);
-
- JMenuItem mntmOtrs = new JMenuItem("OTRS");
- mnNewMenu_1.add(mntmOtrs);
-
- }
-}
diff --git a/Dozentenmodul/src/gui/FTPDownloader_GUI.java b/Dozentenmodul/src/gui/FTPDownloader_GUI.java
deleted file mode 100644
index 702b7f67..00000000
--- a/Dozentenmodul/src/gui/FTPDownloader_GUI.java
+++ /dev/null
@@ -1,348 +0,0 @@
-package gui;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Toolkit;
-import java.io.File;
-
-import javax.swing.JButton;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JPanel;
-import javax.swing.JProgressBar;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.UnsupportedLookAndFeelException;
-import javax.swing.border.EmptyBorder;
-
-import ftp.DownloadTask;
-
-import java.awt.event.ActionListener;
-import java.awt.event.ActionEvent;
-import java.beans.PropertyChangeEvent;
-import java.beans.PropertyChangeListener;
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
-import java.awt.SystemColor;
-import java.awt.Font;
-import javax.swing.JTextPane;
-import javax.swing.JSeparator;
-
-import org.apache.thrift.TException;
-
-import server.Server.Client;
-import server.User;
-import thrift.ThriftConnection;
-
-@SuppressWarnings("serial")
-public class FTPDownloader_GUI extends JFrame implements PropertyChangeListener {
-
- @SuppressWarnings("unused")
- private JPanel contentPane;
- private final JPanel contentPanel = new JPanel();
- JLabel lblNewLabel;
- JLabel downspeed;
- User user;
- JProgressBar progressBar;
- String host="141.79.1+ü28.121";
- int port=21;
- String username="openslx";
- String password="openslx-ng";
- String downloadPath="";
- String filename="";
- static String arg="";
- DownloadTask task;
- JLabel bytesreadlbl;
- JLabel lblNewLabel_3;
- JLabel labelVerbleibend;
- long filesize;
- double speed;
- long bytesread;
- JLabel labelZeit;
- boolean taskrun=false;
- ThriftConnection thrift=new ThriftConnection();
- Client client=thrift.getThriftConnection();
- /**
- * Launch the application.
- */
- /*public static void main(String[] args) {
- EventQueue.invokeLater(new Runnable() {
- public void run() {
- try {
- FTPDownloader frame = new FTPDownloader();
- frame.setVisible(true);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- });
- }*/
-
- /**
- * Create the frame.
- */
- public FTPDownloader_GUI(String name) {
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(WindowEvent e) {
- if(taskrun==true)
- {
- try {
- client.DeleteFtpUser(user.userName);
- } catch (TException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- }
- task.cancel(true);
- }
- dispose();
- }
- });
- setResizable(false);
- //setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
-
- filename=name;
-
- try {
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
- } catch (ClassNotFoundException | InstantiationException
- | IllegalAccessException | UnsupportedLookAndFeelException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
- //filename=name;
- setBackground(Color.WHITE);
- setTitle("Dozentenmodul *Prototyp*");
- Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
- int top=(screenSize.height - 722) / 2;
- int left=(screenSize.width - 603) / 2;
- setBounds(left, top, 603, 722);
- getContentPane().setLayout(new BorderLayout());
- contentPanel.setBackground(SystemColor.menu);
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- getContentPane().add(contentPanel, BorderLayout.CENTER);
- contentPanel.setLayout(null);
- {
- JButton btnSpeicherortAuswhlen = new JButton("Speicherort ausw\u00E4hlen");
- btnSpeicherortAuswhlen.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- JFileChooser fc=new JFileChooser();
- fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
-
- fc.showOpenDialog(getParent());
- File dir=fc.getSelectedFile();
- lblNewLabel.setText(dir.getAbsolutePath());
- }
- });
-
- btnSpeicherortAuswhlen.setBounds(10, 124, 141, 23);
- btnSpeicherortAuswhlen.setVerticalAlignment(SwingConstants.TOP);
- btnSpeicherortAuswhlen.setHorizontalAlignment(SwingConstants.LEFT);
- contentPanel.add(btnSpeicherortAuswhlen);
- }
-
- lblNewLabel = new JLabel("C:\\");
- lblNewLabel.setBounds(169, 124, 255, 23);
- contentPanel.add(lblNewLabel);
-
- JButton btnDownloadStarten = new JButton("Download starten");
- btnDownloadStarten.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- buttonDownloadActionPerformed(arg0);
- }
- });
-
- btnDownloadStarten.setBounds(10, 294, 141, 23);
- contentPanel.add(btnDownloadStarten);
-
- progressBar = new JProgressBar(0,100);
- progressBar.setStringPainted(true);
-
-
- progressBar.setBounds(10, 158, 577, 30);
- contentPanel.add(progressBar);
-
- JLabel lblDownloadgeschwindigkeit = new JLabel("Downloadgeschwindigkeit:");
- lblDownloadgeschwindigkeit.setBounds(10, 194, 141, 14);
- contentPanel.add(lblDownloadgeschwindigkeit);
-
- downspeed = new JLabel("0");
- downspeed.setBounds(261, 194, 95, 14);
- contentPanel.add(downspeed);
-
- JLabel lblNewLabel_1 = new JLabel("Fertig:");
- lblNewLabel_1.setBounds(10, 244, 46, 14);
- contentPanel.add(lblNewLabel_1);
-
- bytesreadlbl = new JLabel("");
- bytesreadlbl.setBounds(66, 244, 108, 14);
- contentPanel.add(bytesreadlbl);
-
- JLabel lblNewLabel_2 = new JLabel("von:");
- lblNewLabel_2.setBounds(179, 244, 46, 14);
- contentPanel.add(lblNewLabel_2);
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setBounds(235, 244, 108, 14);
- contentPanel.add(lblNewLabel_3);
-
- JLabel lblMbVerbleibend = new JLabel("Verbleibend:");
- lblMbVerbleibend.setBounds(10, 269, 71, 14);
- contentPanel.add(lblMbVerbleibend);
-
- labelVerbleibend = new JLabel("");
- labelVerbleibend.setBounds(91, 269, 108, 14);
- contentPanel.add(labelVerbleibend);
-
- JLabel lblGeschtzteVerbleibendeZeit = new JLabel("Gesch\u00E4tzte Verbleibende Zeit:");
- lblGeschtzteVerbleibendeZeit.setBounds(10, 219, 150, 14);
- contentPanel.add(lblGeschtzteVerbleibendeZeit);
-
- labelZeit = new JLabel("");
- labelZeit.setBounds(261, 219, 117, 14);
- contentPanel.add(labelZeit);
-
- JPanel panel = new JPanel();
- panel.setLayout(null);
- panel.setBackground(SystemColor.menu);
- panel.setBounds(10, 11, 577, 57);
- contentPanel.add(panel);
-
- JLabel label = new JLabel("Eingabe Ihrer Daten");
- label.setFont(new Font("Tahoma", Font.BOLD, 18));
- label.setBounds(10, 11, 509, 22);
- panel.add(label);
-
- JTextPane textPane = new JTextPane();
- textPane.setText("Geben Sie hier bitte einen sprechenden Imagename sowie Ihre Kontaktdaten an");
- textPane.setEditable(false);
- textPane.setBackground(SystemColor.menu);
- textPane.setBounds(10, 36, 509, 32);
- panel.add(textPane);
-
- JSeparator separator = new JSeparator();
- separator.setBounds(0, 79, 597, 2);
- contentPanel.add(separator);
-
- JLabel label_1 = new JLabel("Hauptmen\u00FC");
- label_1.setForeground(Color.BLUE);
- label_1.setBounds(20, 88, 61, 20);
- contentPanel.add(label_1);
-
- JLabel label_2 = new JLabel(">");
- label_2.setBounds(80, 91, 14, 14);
- contentPanel.add(label_2);
-
- JLabel label_3 = new JLabel("VL-Image");
- label_3.setForeground(Color.BLUE);
- label_3.setBounds(91, 88, 46, 20);
- contentPanel.add(label_3);
-
- JLabel label_4 = new JLabel(">");
- label_4.setBounds(139, 91, 14, 14);
- contentPanel.add(label_4);
-
- JLabel label_5 = new JLabel("Neu/Bearbeiten");
- label_5.setBounds(149, 91, 108, 14);
- contentPanel.add(label_5);
-
- JSeparator separator_1 = new JSeparator();
- separator_1.setBounds(-10, 648, 597, 2);
- contentPanel.add(separator_1);
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setBackground(UIManager.getColor("Button.background"));
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- getContentPane().add(buttonPane, BorderLayout.SOUTH);
- {
- JButton cancelButton = new JButton("Weiter");
- cancelButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- if(taskrun==true)
- {
- task.cancel(true);
- try {
- client.DeleteFtpUser(user.userName);
- } catch (TException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- }
- }
- dispose();
- }
- });
-
- JButton btnZurck = new JButton("Zur\u00FCck");
- btnZurck.setActionCommand("Cancel");
- buttonPane.add(btnZurck);
- cancelButton.setActionCommand("Cancel");
- buttonPane.add(cancelButton);
- }
- }
- setVisible(true);
-
- }
-
- private void buttonDownloadActionPerformed(ActionEvent event) {
-
- progressBar.setValue(0);
-
- try {
- user=client.getFtpUser();
- //downloadPath=client.getPathOfImage(filename);
- } catch (TException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
- task = new DownloadTask(host, port, user.userName, user.password,user.path+filename+".vmdk", lblNewLabel.getText(), this);
- task.addPropertyChangeListener(this);
- task.execute();
- taskrun=true;
-
- }
-
- public void propertyChange(PropertyChangeEvent arg0) {
-
-
- if ("progress" == arg0.getPropertyName()) {
- int progress = (Integer) arg0.getNewValue();
- progressBar.setValue(progress);
- }
- if("speed"==arg0.getPropertyName()){
- speed=(double)arg0.getNewValue();
- //if(speed<=1){
-
- downspeed.setText(String.valueOf(speed).substring(0,String.valueOf(speed).lastIndexOf(".")+3)+" MB/s");
-
- // }else
- //{
- //double MBSpeed=speed/1024;
- //downspeed.setText(String.valueOf((MBSpeed)).substring(0, String.valueOf(MBSpeed).indexOf(".")));
- //}
-
- }
- if("bytesread"==arg0.getPropertyName())
- {
- bytesread=(long)arg0.getNewValue();
- bytesreadlbl.setText((bytesread/1024/1024)+" MB");
- labelVerbleibend.setText(((filesize/1024/1024)-(bytesread/1024/1024))+" MB");
-
-
- labelZeit.setText(String.valueOf(((((filesize/1024/1024)-(bytesread/1024/1024))/speed)/60)+1).substring(0,String.valueOf((((filesize/1024/1024)-(bytesread/1024/1024))/speed)/60).lastIndexOf("."))+ " Minuten");
-
-
- }
- if("filesize"==arg0.getPropertyName())
- {
- filesize=(long)arg0.getNewValue();
- lblNewLabel_3.setText((filesize/1024/1024)+" MB");
-
- }
-
- }
-} \ No newline at end of file
diff --git a/Dozentenmodul/src/gui/FTPEditUploader_GUI.java b/Dozentenmodul/src/gui/FTPEditUploader_GUI.java
deleted file mode 100644
index 0adf2739..00000000
--- a/Dozentenmodul/src/gui/FTPEditUploader_GUI.java
+++ /dev/null
@@ -1,420 +0,0 @@
-package gui;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Dimension;
-import java.awt.EventQueue;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.Toolkit;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
-import java.beans.PropertyChangeEvent;
-import java.beans.PropertyChangeListener;
-import java.io.File;
-
-import javax.swing.JButton;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JMenu;
-import javax.swing.JMenuBar;
-import javax.swing.JPanel;
-import javax.swing.JProgressBar;
-import javax.swing.JSeparator;
-import javax.swing.JTextPane;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.UnsupportedLookAndFeelException;
-import javax.swing.border.EmptyBorder;
-
-import models.Image;
-import models.person;
-
-import org.apache.thrift.TException;
-
-import server.Server.Client;
-import thrift.ThriftConnection;
-import ftp.UploadTask;
-
-
-@SuppressWarnings("serial")
-public class FTPEditUploader_GUI extends JFrame implements PropertyChangeListener {
-
- @SuppressWarnings("unused")
- private JPanel contentPane;
- private final JPanel contentPanel = new JPanel();
- JLabel lblNewLabel;
- JProgressBar progressBar;
- String host="141.79.128.121";
- int port=21;
- server.User user;
- String filename="";
- File uploadFile;
- static String arg="";
- UploadTask task;
- JLabel UpSpeed;
- JLabel labelfertig;
- JLabel labelfilesize;
- JLabel labelZeit;
- JLabel labelverbleibend;
- long filesize;
- double speed;
- long bytesread;
- boolean taskrun=false;
- ThriftConnection thrift=new ThriftConnection();
- Client client=thrift.getThriftConnection();
- /**
- * Launch the application.
- */
- public static void main(String[] args) {
- EventQueue.invokeLater(new Runnable() {
- public void run() {
- try {
- FTPEditUploader_GUI frame = new FTPEditUploader_GUI();
- frame.setVisible(true);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- });
- }
-
- /**
- * Create the frame.
- */
- public FTPEditUploader_GUI() {
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(WindowEvent arg0) {
- if(taskrun==true)
- {
- try {
-
- client.DeleteFtpUser(user.userName);
- } catch (TException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- }
- task.cancel(true);
- }
- }
- });
- setResizable(false);
- //setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
-
-
-
- try {
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
- } catch (ClassNotFoundException | InstantiationException
- | IllegalAccessException | UnsupportedLookAndFeelException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
- //filename=name;
- setBackground(Color.WHITE);
- setTitle("Dozentenmodul *Prototyp*");
- Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
- int top=(screenSize.height - 722) / 2;
- int left=(screenSize.width - 603) / 2;
- setBounds(left, top, 603, 722);
- //setBounds(100, 100, 603, 250);
- getContentPane().setLayout(new BorderLayout());
- contentPanel.setBackground(SystemColor.menu);
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- getContentPane().add(contentPanel, BorderLayout.CENTER);
- contentPanel.setLayout(null);
- {
- JButton btnSpeicherortAuswhlen = new JButton("VMDK ausw\u00E4hlen");
- btnSpeicherortAuswhlen.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- JFileChooser fc=new JFileChooser();
- fc.setFileSelectionMode(JFileChooser.FILES_ONLY);
-
- fc.showOpenDialog(getParent());
- File dir=fc.getSelectedFile();
- uploadFile=dir;
- filename=uploadFile.getName();
- lblNewLabel.setText(dir.getAbsolutePath());
- }
- });
-
- btnSpeicherortAuswhlen.setBounds(10, 124, 141, 23);
- btnSpeicherortAuswhlen.setVerticalAlignment(SwingConstants.TOP);
- btnSpeicherortAuswhlen.setHorizontalAlignment(SwingConstants.LEFT);
- contentPanel.add(btnSpeicherortAuswhlen);
- }
-
- lblNewLabel = new JLabel("");
- lblNewLabel.setBounds(184, 124, 255, 23);
- contentPanel.add(lblNewLabel);
-
- JButton btnDownloadStarten = new JButton("Upload starten");
- btnDownloadStarten.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- buttonUploadActionPerformed(arg0);
-
- }
- });
-
- btnDownloadStarten.setBounds(10, 330, 141, 23);
- contentPanel.add(btnDownloadStarten);
-
- progressBar = new JProgressBar(0,100);
- progressBar.setStringPainted(true);
-
-
- progressBar.setBounds(10, 158, 577, 30);
- contentPanel.add(progressBar);
-
- JLabel label = new JLabel("Downloadgeschwindigkeit:");
- label.setBounds(10, 199, 141, 14);
- contentPanel.add(label);
-
- JLabel label_1 = new JLabel("Fertig:");
- label_1.setBounds(10, 249, 46, 14);
- contentPanel.add(label_1);
-
- labelfertig = new JLabel("0");
- labelfertig.setBounds(66, 249, 108, 14);
- contentPanel.add(labelfertig);
-
- UpSpeed = new JLabel("0");
- UpSpeed.setBounds(329, 199, 95, 14);
- contentPanel.add(UpSpeed);
-
- JLabel label_4 = new JLabel("von:");
- label_4.setBounds(184, 249, 46, 14);
- contentPanel.add(label_4);
-
- labelfilesize = new JLabel("0");
- labelfilesize.setBounds(240, 249, 108, 14);
- contentPanel.add(labelfilesize);
-
- JLabel label_6 = new JLabel("Verbleibend:");
- label_6.setBounds(10, 274, 71, 14);
- contentPanel.add(label_6);
-
- JLabel label_7 = new JLabel("Gesch\u00E4tzte Verbleibende Zeit:");
- label_7.setBounds(10, 224, 150, 14);
- contentPanel.add(label_7);
-
- labelZeit = new JLabel("0");
- labelZeit.setBounds(329, 224, 117, 14);
- contentPanel.add(labelZeit);
-
- labelverbleibend = new JLabel("0");
- labelverbleibend.setBounds(91, 274, 108, 14);
- contentPanel.add(labelverbleibend);
-
- JPanel panel = new JPanel();
- panel.setLayout(null);
- panel.setBackground(SystemColor.menu);
- panel.setBounds(10, 11, 577, 57);
- contentPanel.add(panel);
-
- JLabel label_2 = new JLabel("Eingabe Ihrer Daten");
- label_2.setFont(new Font("Tahoma", Font.BOLD, 18));
- label_2.setBounds(10, 11, 509, 22);
- panel.add(label_2);
-
- JTextPane textPane = new JTextPane();
- textPane.setText("Geben Sie hier bitte einen sprechenden Imagename sowie Ihre Kontaktdaten an");
- textPane.setEditable(false);
- textPane.setBackground(SystemColor.menu);
- textPane.setBounds(10, 36, 509, 32);
- panel.add(textPane);
-
- JSeparator separator = new JSeparator();
- separator.setBounds(0, 79, 597, 2);
- contentPanel.add(separator);
-
- JLabel lblNewLabel_1 = new JLabel("Hauptmen\u00FC");
- lblNewLabel_1.setForeground(Color.BLUE);
- lblNewLabel_1.setBounds(20, 88, 61, 20);
- contentPanel.add(lblNewLabel_1);
-
- JLabel label_3 = new JLabel(">");
- label_3.setBounds(80, 91, 14, 14);
- contentPanel.add(label_3);
-
- JLabel lblVlimage = new JLabel("VL-Image");
- lblVlimage.setForeground(Color.BLUE);
- lblVlimage.setBounds(91, 88, 46, 20);
- contentPanel.add(lblVlimage);
-
- JLabel label_5 = new JLabel(">");
- label_5.setBounds(139, 91, 14, 14);
- contentPanel.add(label_5);
-
- JLabel lblNeubearbeiten = new JLabel("Neu/Bearbeiten");
- lblNeubearbeiten.setBounds(149, 91, 108, 14);
- contentPanel.add(lblNeubearbeiten);
-
- JSeparator separator_1 = new JSeparator();
- separator_1.setBounds(0, 627, 597, 2);
- contentPanel.add(separator_1);
-
- JButton btnCopyFileTo = new JButton("Copy File to Prod");
- btnCopyFileTo.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- try {
- client.startFileCopy(user.path+"/"+uploadFile.getName());
- } catch (TException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- }
- }
- });
- btnCopyFileTo.setBounds(10, 375, 264, 23);
- contentPanel.add(btnCopyFileTo);
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setBackground(UIManager.getColor("Button.background"));
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- getContentPane().add(buttonPane, BorderLayout.SOUTH);
- {
- JButton ButtonReady = new JButton("Abschlie\u00DFen");
- ButtonReady.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
-
- updateData();
- dispose();
- MainMenue_GUI m=new MainMenue_GUI();
- m.setVisible(true);
-
- if(taskrun==true)
- {
- try {
- client.DeleteFtpUser(user.userName);
-
- } catch (TException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- }
- task.cancel(true);
- }
- thrift.closeThriftConnection();
- }
- });
-
- JButton buttonCancel = new JButton("Schlie\u00DFen");
- buttonCancel.setActionCommand("Cancel");
- buttonPane.add(buttonCancel);
- ButtonReady.setActionCommand("Cancel");
- buttonPane.add(ButtonReady);
- }
- }
-
- JMenuBar menuBar = new JMenuBar();
- setJMenuBar(menuBar);
-
- JMenu mnHillfe = new JMenu("Hillfe");
- menuBar.add(mnHillfe);
- setVisible(true);
-
- }
-
- private void buttonUploadActionPerformed(ActionEvent event) {
- // File (or directory) with old name
- // File file = new File(lblNewLabel.getText());
-
- // File (or directory) with new name
- //System.out.println(file.getAbsolutePath().substring(0,file.getAbsolutePath().lastIndexOf("\\"))+"\\"+vm.vl.getLaborname()+".vmdk");
- //File file2 = new File(file.getAbsoluteFile()+"\\"+vm.vl.getLaborname()+".vmdk");
-
-
- // Rename file (or directory)
- //boolean success = file.renameTo(file2);
- //if (!success) {
- // File was not successfully renamed
- //System.out.println("Not OK");
- //}
- //else
- //{
- //System.out.println("OK");
- //}
- progressBar.setValue(0);
-
- try {
- user=client.getFtpUser();
- System.out.println("name"+user.userName);
- System.out.println("path"+user.path);
- System.out.println("pass"+user.password);
- } catch (TException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
- task=new UploadTask(host,port,user.userName,user.password,user.path, uploadFile);
-
- task.addPropertyChangeListener(this);
- task.execute();
- taskrun=true;
-
- //createXML();
- //TransferToSatellit();
-
-
- }
-
- public void propertyChange(PropertyChangeEvent arg0) {
- if ("progress" == arg0.getPropertyName()) {
- int progress = (Integer) arg0.getNewValue();
- progressBar.setValue(progress);
- }
- if("speed"==arg0.getPropertyName()){
- speed=(double)arg0.getNewValue();
- //if(speed<=1){
-
- UpSpeed.setText(String.valueOf(speed).substring(0,String.valueOf(speed).lastIndexOf(".")+3)+" MB/s");
-
- // }else
- //{
- //double MBSpeed=speed/1024;
- //downspeed.setText(String.valueOf((MBSpeed)).substring(0, String.valueOf(MBSpeed).indexOf(".")));
- //}
-
- }
- if("bytesread"==arg0.getPropertyName())
- {
- bytesread=(long)arg0.getNewValue();
- labelfertig.setText((bytesread/1024/1024)+" MB");
- labelverbleibend.setText(((filesize/1024/1024)-(bytesread/1024/1024))+" MB");
-
-
- labelZeit.setText(String.valueOf(((((filesize/1024/1024)-(bytesread/1024/1024))/speed)/60)+1).substring(0,String.valueOf((((filesize/1024/1024)-(bytesread/1024/1024))/speed)/60).lastIndexOf("."))+ " Minuten");
-
-
- }
- if("filesize"==arg0.getPropertyName())
- {
- filesize=(long)arg0.getNewValue();
- labelfilesize.setText((filesize/1024/1024)+" MB");
-
- }
-
- }
-
- public boolean updateData(){
-
- try {
-
-
- System.out.println("Start Update");
- client.updateImageData(Image.image.getImagename(),Image.image.getNewName(), Image.image.isLicensed(), Image.image.isInternet(), Image.image.getRam(), Image.image.getCpu());
- } catch (TException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- return false;
- }
- return true;
-
-
- }
-} \ No newline at end of file
diff --git a/Dozentenmodul/src/gui/FTPUploader_GUI.java b/Dozentenmodul/src/gui/FTPUploader_GUI.java
deleted file mode 100644
index 0bf92b82..00000000
--- a/Dozentenmodul/src/gui/FTPUploader_GUI.java
+++ /dev/null
@@ -1,418 +0,0 @@
-package gui;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Dimension;
-import java.awt.EventQueue;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.Toolkit;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
-import java.beans.PropertyChangeEvent;
-import java.beans.PropertyChangeListener;
-import java.io.File;
-
-import javax.swing.JButton;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JMenu;
-import javax.swing.JMenuBar;
-import javax.swing.JPanel;
-import javax.swing.JProgressBar;
-import javax.swing.JSeparator;
-import javax.swing.JTextPane;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.UnsupportedLookAndFeelException;
-import javax.swing.border.EmptyBorder;
-
-import models.Image;
-import models.person;
-
-import org.apache.thrift.TException;
-
-import server.Server.Client;
-import thrift.ThriftConnection;
-import ftp.UploadTask;
-
-
-@SuppressWarnings("serial")
-public class FTPUploader_GUI extends JFrame implements PropertyChangeListener {
-
- @SuppressWarnings("unused")
- private JPanel contentPane;
- private final JPanel contentPanel = new JPanel();
- JLabel lblNewLabel;
- JProgressBar progressBar;
- String host="141.79.128.121";
- int port=21;
- server.User user;
- String filename="";
- File uploadFile;
- static String arg="";
- UploadTask task;
- JLabel UpSpeed;
- JLabel labelfertig;
- JLabel labelfilesize;
- JLabel labelZeit;
- JLabel labelverbleibend;
- long filesize;
- double speed;
- long bytesread;
- boolean taskrun=false;
- ThriftConnection thrift=new ThriftConnection();
- Client client=thrift.getThriftConnection();
- /**
- * Launch the application.
- */
- public static void main(String[] args) {
- EventQueue.invokeLater(new Runnable() {
- public void run() {
- try {
- FTPUploader_GUI frame = new FTPUploader_GUI();
- frame.setVisible(true);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- });
- }
-
- /**
- * Create the frame.
- */
- public FTPUploader_GUI() {
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(WindowEvent arg0) {
- if(taskrun==true)
- {
- try {
-
- client.DeleteFtpUser(user.userName);
- } catch (TException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- }
- task.cancel(true);
- }
- }
- });
- setResizable(false);
- //setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
-
-
-
- try {
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
- } catch (ClassNotFoundException | InstantiationException
- | IllegalAccessException | UnsupportedLookAndFeelException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
- //filename=name;
- setBackground(Color.WHITE);
- setTitle("Dozentenmodul *Prototyp*");
- Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
- int top=(screenSize.height - 722) / 2;
- int left=(screenSize.width - 603) / 2;
- setBounds(left, top, 603, 722);
- //setBounds(100, 100, 603, 250);
- getContentPane().setLayout(new BorderLayout());
- contentPanel.setBackground(SystemColor.menu);
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- getContentPane().add(contentPanel, BorderLayout.CENTER);
- contentPanel.setLayout(null);
- {
- JButton btnSpeicherortAuswhlen = new JButton("VMDK ausw\u00E4hlen");
- btnSpeicherortAuswhlen.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- JFileChooser fc=new JFileChooser();
- fc.setFileSelectionMode(JFileChooser.FILES_ONLY);
-
- fc.showOpenDialog(getParent());
- File dir=fc.getSelectedFile();
- uploadFile=dir;
- filename=uploadFile.getName();
- lblNewLabel.setText(dir.getAbsolutePath());
- }
- });
-
- btnSpeicherortAuswhlen.setBounds(10, 124, 141, 23);
- btnSpeicherortAuswhlen.setVerticalAlignment(SwingConstants.TOP);
- btnSpeicherortAuswhlen.setHorizontalAlignment(SwingConstants.LEFT);
- contentPanel.add(btnSpeicherortAuswhlen);
- }
-
- lblNewLabel = new JLabel("");
- lblNewLabel.setBounds(184, 124, 255, 23);
- contentPanel.add(lblNewLabel);
-
- JButton btnDownloadStarten = new JButton("Upload starten");
- btnDownloadStarten.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- buttonUploadActionPerformed(arg0);
-
- }
- });
-
- btnDownloadStarten.setBounds(10, 330, 141, 23);
- contentPanel.add(btnDownloadStarten);
-
- progressBar = new JProgressBar(0,100);
- progressBar.setStringPainted(true);
-
-
- progressBar.setBounds(10, 158, 577, 30);
- contentPanel.add(progressBar);
-
- JLabel label = new JLabel("Downloadgeschwindigkeit:");
- label.setBounds(10, 199, 141, 14);
- contentPanel.add(label);
-
- JLabel label_1 = new JLabel("Fertig:");
- label_1.setBounds(10, 249, 46, 14);
- contentPanel.add(label_1);
-
- labelfertig = new JLabel("0");
- labelfertig.setBounds(66, 249, 108, 14);
- contentPanel.add(labelfertig);
-
- UpSpeed = new JLabel("0");
- UpSpeed.setBounds(329, 199, 95, 14);
- contentPanel.add(UpSpeed);
-
- JLabel label_4 = new JLabel("von:");
- label_4.setBounds(184, 249, 46, 14);
- contentPanel.add(label_4);
-
- labelfilesize = new JLabel("0");
- labelfilesize.setBounds(240, 249, 108, 14);
- contentPanel.add(labelfilesize);
-
- JLabel label_6 = new JLabel("Verbleibend:");
- label_6.setBounds(10, 274, 71, 14);
- contentPanel.add(label_6);
-
- JLabel label_7 = new JLabel("Gesch\u00E4tzte Verbleibende Zeit:");
- label_7.setBounds(10, 224, 150, 14);
- contentPanel.add(label_7);
-
- labelZeit = new JLabel("0");
- labelZeit.setBounds(329, 224, 117, 14);
- contentPanel.add(labelZeit);
-
- labelverbleibend = new JLabel("0");
- labelverbleibend.setBounds(91, 274, 108, 14);
- contentPanel.add(labelverbleibend);
-
- JPanel panel = new JPanel();
- panel.setLayout(null);
- panel.setBackground(SystemColor.menu);
- panel.setBounds(10, 11, 577, 57);
- contentPanel.add(panel);
-
- JLabel label_2 = new JLabel("Eingabe Ihrer Daten");
- label_2.setFont(new Font("Tahoma", Font.BOLD, 18));
- label_2.setBounds(10, 11, 509, 22);
- panel.add(label_2);
-
- JTextPane textPane = new JTextPane();
- textPane.setText("Geben Sie hier bitte einen sprechenden Imagename sowie Ihre Kontaktdaten an");
- textPane.setEditable(false);
- textPane.setBackground(SystemColor.menu);
- textPane.setBounds(10, 36, 509, 32);
- panel.add(textPane);
-
- JSeparator separator = new JSeparator();
- separator.setBounds(0, 79, 597, 2);
- contentPanel.add(separator);
-
- JLabel lblNewLabel_1 = new JLabel("Hauptmen\u00FC");
- lblNewLabel_1.setForeground(Color.BLUE);
- lblNewLabel_1.setBounds(20, 88, 61, 20);
- contentPanel.add(lblNewLabel_1);
-
- JLabel label_3 = new JLabel(">");
- label_3.setBounds(80, 91, 14, 14);
- contentPanel.add(label_3);
-
- JLabel lblVlimage = new JLabel("VL-Image");
- lblVlimage.setForeground(Color.BLUE);
- lblVlimage.setBounds(91, 88, 46, 20);
- contentPanel.add(lblVlimage);
-
- JLabel label_5 = new JLabel(">");
- label_5.setBounds(139, 91, 14, 14);
- contentPanel.add(label_5);
-
- JLabel lblNeubearbeiten = new JLabel("Neu/Bearbeiten");
- lblNeubearbeiten.setBounds(149, 91, 108, 14);
- contentPanel.add(lblNeubearbeiten);
-
- JSeparator separator_1 = new JSeparator();
- separator_1.setBounds(0, 627, 597, 2);
- contentPanel.add(separator_1);
-
- JButton btnCopyFileTo = new JButton("Copy File to Prod");
- btnCopyFileTo.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- try {
- client.startFileCopy(user.path+"/"+uploadFile.getName());
- } catch (TException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- }
- }
- });
- btnCopyFileTo.setBounds(10, 375, 264, 23);
- contentPanel.add(btnCopyFileTo);
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setBackground(UIManager.getColor("Button.background"));
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- getContentPane().add(buttonPane, BorderLayout.SOUTH);
- {
- JButton ButtonReady = new JButton("Abschlie\u00DFen");
- ButtonReady.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- writeData();
- dispose();
- MainMenue_GUI m=new MainMenue_GUI();
- m.setVisible(true);
- if(taskrun==true)
- {
- try {
- client.DeleteFtpUser(user.userName);
- thrift.closeThriftConnection();
- } catch (TException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- }
- task.cancel(true);
- }
-
- }
- });
-
- JButton buttonCancel = new JButton("Schlie\u00DFen");
- buttonCancel.setActionCommand("Cancel");
- buttonPane.add(buttonCancel);
- ButtonReady.setActionCommand("Cancel");
- buttonPane.add(ButtonReady);
- }
- }
-
- JMenuBar menuBar = new JMenuBar();
- setJMenuBar(menuBar);
-
- JMenu mnHillfe = new JMenu("Hillfe");
- menuBar.add(mnHillfe);
- setVisible(true);
-
- }
-
- private void buttonUploadActionPerformed(ActionEvent event) {
- // File (or directory) with old name
- // File file = new File(lblNewLabel.getText());
-
- // File (or directory) with new name
- //System.out.println(file.getAbsolutePath().substring(0,file.getAbsolutePath().lastIndexOf("\\"))+"\\"+vm.vl.getLaborname()+".vmdk");
- //File file2 = new File(file.getAbsoluteFile()+"\\"+vm.vl.getLaborname()+".vmdk");
-
-
- // Rename file (or directory)
- //boolean success = file.renameTo(file2);
- //if (!success) {
- // File was not successfully renamed
- //System.out.println("Not OK");
- //}
- //else
- //{
- //System.out.println("OK");
- //}
- progressBar.setValue(0);
-
- try {
- user=client.getFtpUser();
- System.out.println("name"+user.userName);
- System.out.println("path"+user.path);
- System.out.println("pass"+user.password);
- } catch (TException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
- task=new UploadTask(host,port,user.userName,user.password,user.path, uploadFile);
-
- task.addPropertyChangeListener(this);
- task.execute();
- taskrun=true;
-
- //createXML();
- //TransferToSatellit();
-
-
- }
-
- public void propertyChange(PropertyChangeEvent arg0) {
- if ("progress" == arg0.getPropertyName()) {
- int progress = (Integer) arg0.getNewValue();
- progressBar.setValue(progress);
- }
- if("speed"==arg0.getPropertyName()){
- speed=(double)arg0.getNewValue();
- //if(speed<=1){
-
- UpSpeed.setText(String.valueOf(speed).substring(0,String.valueOf(speed).lastIndexOf(".")+3)+" MB/s");
-
- // }else
- //{
- //double MBSpeed=speed/1024;
- //downspeed.setText(String.valueOf((MBSpeed)).substring(0, String.valueOf(MBSpeed).indexOf(".")));
- //}
-
- }
- if("bytesread"==arg0.getPropertyName())
- {
- bytesread=(long)arg0.getNewValue();
- labelfertig.setText((bytesread/1024/1024)+" MB");
- labelverbleibend.setText(((filesize/1024/1024)-(bytesread/1024/1024))+" MB");
-
-
- labelZeit.setText(String.valueOf(((((filesize/1024/1024)-(bytesread/1024/1024))/speed)/60)+1).substring(0,String.valueOf((((filesize/1024/1024)-(bytesread/1024/1024))/speed)/60).lastIndexOf("."))+ " Minuten");
-
-
- }
- if("filesize"==arg0.getPropertyName())
- {
- filesize=(long)arg0.getNewValue();
- labelfilesize.setText((filesize/1024/1024)+" MB");
-
- }
-
- }
-
- public boolean writeData(){
-
- try {
-
-
-
- client.writeVLdata(Image.image.getImagename(), person.verantowrtlicher.getVorname(), person.verantowrtlicher.getName(), person.verantowrtlicher.getHochschule(), person.verantowrtlicher.getEMail(), person.verantowrtlicher.getTel(), person.verantowrtlicher.getFakultät(), Image.image.isLicensed(), Image.image.isInternet(), Image.image.getRam(), Image.image.getCpu());
- } catch (TException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- return false;
- }
- return true;
-
-
- }
-} \ No newline at end of file
diff --git a/Dozentenmodul/src/gui/Login_GUI.java b/Dozentenmodul/src/gui/Login_GUI.java
deleted file mode 100644
index cc558261..00000000
--- a/Dozentenmodul/src/gui/Login_GUI.java
+++ /dev/null
@@ -1,203 +0,0 @@
-package gui;
-
-
-import java.awt.Dimension;
-import java.awt.EventQueue;
-import java.awt.Image;
-import java.awt.SystemColor;
-import java.awt.Toolkit;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
-import java.io.File;
-import java.io.IOException;
-
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JPasswordField;
-import javax.swing.JTextField;
-import javax.swing.UIManager;
-import javax.swing.UnsupportedLookAndFeelException;
-import javax.swing.border.EmptyBorder;
-
-import models.person;
-
-import org.ini4j.Wini;
-
-import config.config_file;
-
-
-@SuppressWarnings("serial")
-public class Login_GUI extends JFrame {
-
- private JPanel contentPane;
- private JTextField username;
- private JPasswordField pass;
-
- /**
- * Launch the application.
- */
- public static void main(String[] args) {
- EventQueue.invokeLater(new Runnable() {
- public void run() {
- try {
- //Prüfe und Erzeuge gegebenfalls Config
- config_file cf=new config_file();
- boolean conf=cf.createConfig();
- if(conf==true)
- {
- //Aufruf und Anzeige des Login Fensters
- Login_GUI frame = new Login_GUI();
- frame.setVisible(true);
- }
- else
- {
- JOptionPane.showMessageDialog(null,
- "Fehler beim erzeugen der Konfigurationsfile", "Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- });
- }
-
- /**
- * Create the frame.
- */
- public Login_GUI() {
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(WindowEvent e) {
- System.exit(0);
- }
- });
-
- //Fenster darf nicht vergrößert werden
- setResizable(false);
- try {
- //Setzt das Look and Feel auf System
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
- } catch (ClassNotFoundException | InstantiationException
- | IllegalAccessException | UnsupportedLookAndFeelException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- //Titel des Fensters setzen
- setTitle("Dozentenmodul *Prototyp*");
- //Aktion die beim Schließen durchgeführt werden soll
- setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- //Größe des Fensters definieren
- Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
- int top=(screenSize.height - 400) / 2;
- int left=(screenSize.width - 603) / 2;
- setBounds(left, top, 603, 400);
- //Erzeugen eines Panels
- contentPane = new JPanel();
- //Hintergrund Farbe des Panels setzen
- contentPane.setBackground(SystemColor.menu);
- //Rahmen des Fensters setzen
- contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
- setContentPane(contentPane);
- //Layout setzen
- contentPane.setLayout(null);
- //Label für das Logo erzeugen
- JLabel imgLabel = new JLabel();
- //Größe und Position des Logos festelegen
- imgLabel.setBounds(150, 11, 350, 142);
- //Pfadangabe des Logos
-
- ImageIcon icon = new ImageIcon(getClass().getResource("/Logo_bwLehrpool.png"),"Logo");
- //Skalierung des Logos
- Image scaled=icon.getImage().getScaledInstance(270, 64, 0);
- imgLabel.setIcon(new ImageIcon(scaled));
- //Hinzufügen des Logos in das Fenster
- contentPane.add(imgLabel);
-
- //Erzeugen und Hinzufügen des Labels
- JLabel LabelUser = new JLabel("bwIDM-Benutzername:");
- LabelUser.setBounds(150, 164, 134, 20);
- contentPane.add(LabelUser);
-
- //Erzeugen und Hinzufügen des Textfeldes
- username = new JTextField();
- username.setBounds(343, 164, 125, 20);
- contentPane.add(username);
- username.setColumns(10);
-
- //Erzeugen und Hinzufügen des Labels
- JLabel LabelPass = new JLabel("bwIDM-Passwort:");
- LabelPass.setBounds(150, 195, 134, 20);
- contentPane.add(LabelPass);
-
- //Erzeugen, Hinzufügen und definierung der Aktion des Buttons
- JButton BtnLogin = new JButton("Login");
- BtnLogin.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- //Aufruf der Ldap Klasse, welche die Ldap überprüfung vornimmt
- //Ldap check=new Ldap();
- boolean login=true;
- //boolean login=check.LdapAuth(username.getText(), new String(pass.getPassword()));
- if(login==true)
- {
-
- try {
- Wini ini=new Wini(new File("C:\\Users\\"+System.getProperty("user.name")+"\\AppData\\Roaming\\bwLehrpoolSuite\\config.ini"));
- //Prüfe ob Bills Of Rights schon akzeptiert wurden, wenn nicht zeige diese an
- if(ini.get("main", "BillOfRights",boolean.class)==false){
- //Erstellen einer Instanz der Aktionsauswahl
- BillOfRights_GUI re=new BillOfRights_GUI();
- re.setVisible(true);
- //Schließen des Fensters nach erfolgreichen Login
- setVisible(false);
- }
- else
- {
- //Prüfe ob die Links zu vmware angezeigt werden sollen
- if(ini.get("main", "vmware",boolean.class)==false){
- VmWareLink_GUI vm=new VmWareLink_GUI();
- vm.setVisible(true);
- setVisible(false);
- }
- else
- {
- person.verantowrtlicher.setName("Spitzer");
- person.verantowrtlicher.setVorname("Tobias");
- person.verantowrtlicher.setEMail("tspitzer@hs-offenburg.de");
- person.verantowrtlicher.setHochschule("HS Offenburg");
- //Öffne das Hauprmenü
- MainMenue_GUI main=new MainMenue_GUI();
- main.setVisible(true);
- setVisible(false);
- }
- }
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
- }
- else
- {
- JOptionPane.showMessageDialog(null,
- "Login denied!", "Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- }
- });
- BtnLogin.setBounds(343, 244, 125, 23);
- contentPane.add(BtnLogin);
-
- //Erzeugen und Hinzufügen des Passwortfeldes
- pass = new JPasswordField();
- pass.setBounds(343, 195, 125, 20);
- contentPane.add(pass);
- }
-}
diff --git a/Dozentenmodul/src/gui/MainMenue_GUI.java b/Dozentenmodul/src/gui/MainMenue_GUI.java
deleted file mode 100644
index b879ccf1..00000000
--- a/Dozentenmodul/src/gui/MainMenue_GUI.java
+++ /dev/null
@@ -1,338 +0,0 @@
-package gui;
-
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Toolkit;
-import javax.swing.JFrame;
-import javax.swing.JButton;
-import javax.swing.JDialog;
-import javax.swing.JPanel;
-import javax.swing.UIManager;
-import javax.swing.UnsupportedLookAndFeelException;
-import javax.swing.border.EmptyBorder;
-import java.awt.Color;
-import javax.swing.JLabel;
-import java.awt.Font;
-import javax.swing.JTextPane;
-import java.awt.SystemColor;
-import java.awt.event.ActionListener;
-import java.awt.event.ActionEvent;
-import javax.swing.JSeparator;
-import javax.swing.JRadioButton;
-import javax.swing.SwingConstants;
-import javax.swing.ButtonGroup;
-import javax.swing.JMenuBar;
-import javax.swing.JMenu;
-import javax.swing.JMenuItem;
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
-import javax.swing.border.TitledBorder;
-import java.awt.event.MouseAdapter;
-import java.awt.event.MouseEvent;
-import java.awt.ScrollPane;
-import javax.swing.JTextArea;
-
-@SuppressWarnings("serial")
-public class MainMenue_GUI extends JFrame {
-
- private final JPanel contentPanel = new JPanel();
- String[] result;
- JRadioButton rdbtnImageNew;
- JRadioButton rdbtnImageEdit;
- JRadioButton rdbtnImageSearchDownload;
- JRadioButton rdbtnVeranstaltungNew;
- JRadioButton rdbtnImageDelete;
- private final ButtonGroup buttonGroup = new ButtonGroup();
- /**
- * Launch the application.
- */
- public static void main(String[] args) {
- try {
- MainMenue_GUI dialog = new MainMenue_GUI();
- dialog.setDefaultCloseOperation(JDialog.HIDE_ON_CLOSE);
- dialog.setVisible(true);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- /**
- * Create the dialog.
- */
- public MainMenue_GUI() {
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(WindowEvent arg0) {
- System.exit(0);
- }
- });
- try {
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
- } catch (ClassNotFoundException | InstantiationException
- | IllegalAccessException | UnsupportedLookAndFeelException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- setTitle("bwLehrpool Suite *Prototyp*");
- Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
- int top=(screenSize.height - 722) / 2;
- int left=(screenSize.width - 603) / 2;
- setBounds(left, top, 603, 722);
- //setBounds(100, 100, 545, 366);
- getContentPane().setLayout(null);
- {
- JPanel panel = new JPanel();
- panel.setBackground(SystemColor.menu);
- panel.setBounds(10, 11, 567, 69);
- getContentPane().add(panel);
- panel.setLayout(null);
- {
- JLabel lblNewLabel = new JLabel("Hauptmen\u00FC");
- lblNewLabel.setBounds(10, 11, 509, 22);
- panel.add(lblNewLabel);
- lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 18));
- }
-
- JTextPane txtpnBitteWhlenSie = new JTextPane();
- txtpnBitteWhlenSie.setEditable(false);
- txtpnBitteWhlenSie.setBackground(SystemColor.menu);
- txtpnBitteWhlenSie.setText("Bitte w\u00E4hlen Sie ihre gew\u00FCnschte Aktion");
- txtpnBitteWhlenSie.setBounds(10, 36, 509, 22);
- panel.add(txtpnBitteWhlenSie);
- }
- contentPanel.setBounds(10, 104, 567, 502);
- contentPanel.setBackground(SystemColor.menu);
-
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- getContentPane().add(contentPanel);
- contentPanel.setLayout(null);
-
- JPanel panelImage = new JPanel();
- panelImage.setBackground(SystemColor.menu);
- panelImage.setBorder(new TitledBorder(null, "VL-Image", TitledBorder.LEADING, TitledBorder.TOP, null, null));
- panelImage.setBounds(10, 86, 270, 200);
- contentPanel.add(panelImage);
- panelImage.setLayout(null);
-
- rdbtnImageNew = new JRadioButton("Neu");
- rdbtnImageNew.setToolTipText("Hier k\u00F6nnen Sie eine standard Laborvorlage downloaden");
- rdbtnImageNew.setBounds(6, 22, 159, 23);
- panelImage.add(rdbtnImageNew);
- rdbtnImageNew.setSelected(true);
- buttonGroup.add(rdbtnImageNew);
- rdbtnImageNew.setBackground(SystemColor.menu);
-
-
-
- rdbtnImageEdit = new JRadioButton("Bearbeiten");
- rdbtnImageEdit.setToolTipText("Hier k\u00F6nnen Sie ein bestehendes Labor zum ver\u00E4ndern downloaden");
- rdbtnImageEdit.setBounds(6, 48, 185, 23);
- panelImage.add(rdbtnImageEdit);
- buttonGroup.add(rdbtnImageEdit);
- rdbtnImageEdit.setHorizontalAlignment(SwingConstants.LEFT);
- rdbtnImageEdit.setBackground(SystemColor.menu);
-
- rdbtnImageDelete = new JRadioButton("L\u00F6schen");
- rdbtnImageDelete.setEnabled(false);
- buttonGroup.add(rdbtnImageDelete);
- rdbtnImageDelete.setToolTipText("Hier k\u00F6nnen Sie ein bestehendes Labor zum ver\u00E4ndern downloaden");
- rdbtnImageDelete.setHorizontalAlignment(SwingConstants.LEFT);
- rdbtnImageDelete.setBackground(SystemColor.menu);
- rdbtnImageDelete.setBounds(6, 74, 185, 23);
- panelImage.add(rdbtnImageDelete);
-
- rdbtnImageSearchDownload = new JRadioButton("Suche und Download");
- rdbtnImageSearchDownload.setEnabled(false);
- buttonGroup.add(rdbtnImageSearchDownload);
- rdbtnImageSearchDownload.setToolTipText("Hier k\u00F6nnen Sie ein bestehendes Labor zum ver\u00E4ndern downloaden");
- rdbtnImageSearchDownload.setHorizontalAlignment(SwingConstants.LEFT);
- rdbtnImageSearchDownload.setBackground(SystemColor.menu);
- rdbtnImageSearchDownload.setBounds(6, 100, 185, 23);
- panelImage.add(rdbtnImageSearchDownload);
-
- JPanel panelDesc = new JPanel();
- panelDesc.setLayout(null);
- panelDesc.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), "Erklärung", TitledBorder.LEADING, TitledBorder.TOP, null, null));
- panelDesc.setBackground(SystemColor.menu);
- panelDesc.setBounds(290, 86, 270, 200);
- contentPanel.add(panelDesc);
-
- ScrollPane scrollPaneDesc = new ScrollPane();
- scrollPaneDesc.setBounds(5, 15, 260, 180);
- JTextArea txtDesc=new JTextArea();
- txtDesc.setBackground(SystemColor.menu);
- txtDesc.setWrapStyleWord(true);
- txtDesc.setLineWrap(true);
- scrollPaneDesc.add(txtDesc);
- //Pro AUswahl
- txtDesc.setText("Hier steht irgendwann die Beschreibung der einzelnen Punkte\r\n");
- panelDesc.add(scrollPaneDesc);
-
- JPanel panelVeranstaltung = new JPanel();
- panelVeranstaltung.setLayout(null);
- panelVeranstaltung.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), "Veranstaltung (VMChooser)", TitledBorder.LEADING, TitledBorder.TOP, null, null));
- panelVeranstaltung.setBackground(SystemColor.menu);
- panelVeranstaltung.setBounds(10, 297, 270, 200);
- contentPanel.add(panelVeranstaltung);
-
- rdbtnVeranstaltungNew = new JRadioButton("Neu");
- buttonGroup.add(rdbtnVeranstaltungNew);
- rdbtnVeranstaltungNew.setToolTipText("Hier k\u00F6nnen Sie Ihre Labordaten eingeben");
- rdbtnVeranstaltungNew.setBounds(6, 24, 185, 23);
- panelVeranstaltung.add(rdbtnVeranstaltungNew);
- rdbtnVeranstaltungNew.setBackground(SystemColor.menu);
-
- JRadioButton rdbtnVeranstaltungEdit = new JRadioButton("Bearbeiten");
- rdbtnVeranstaltungEdit.setEnabled(false);
- rdbtnVeranstaltungEdit.setToolTipText("Hier k\u00F6nnen Sie einen Link auf ein bestehendes Labor erzeugen");
- rdbtnVeranstaltungEdit.setBounds(6, 50, 230, 23);
- panelVeranstaltung.add(rdbtnVeranstaltungEdit);
- buttonGroup.add(rdbtnVeranstaltungEdit);
- rdbtnVeranstaltungEdit.setBackground(SystemColor.menu);
-
- JRadioButton rdbtnVeranstaltungDelete = new JRadioButton("L\u00F6schen");
- rdbtnVeranstaltungDelete.setEnabled(false);
- rdbtnVeranstaltungDelete.setToolTipText("Hier k\u00F6nnen Sie ein Labor l\u00F6schen");
- rdbtnVeranstaltungDelete.setBounds(6, 76, 175, 23);
- panelVeranstaltung.add(rdbtnVeranstaltungDelete);
- buttonGroup.add(rdbtnVeranstaltungDelete);
- rdbtnVeranstaltungDelete.setBackground(SystemColor.menu);
-
- JRadioButton rdbtnVeranstaltungSearch = new JRadioButton("Suche");
- rdbtnVeranstaltungSearch.setEnabled(false);
- buttonGroup.add(rdbtnVeranstaltungSearch);
- rdbtnVeranstaltungSearch.setToolTipText("Hier k\u00F6nnen Sie ein Labor l\u00F6schen");
- rdbtnVeranstaltungSearch.setBackground(SystemColor.menu);
- rdbtnVeranstaltungSearch.setBounds(6, 102, 175, 23);
- panelVeranstaltung.add(rdbtnVeranstaltungSearch);
-
- JLabel lblCrumbStart = new JLabel("Startseite");
- lblCrumbStart.addMouseListener(new MouseAdapter() {
- @Override
- public void mouseClicked(MouseEvent arg0) {
- Login_GUI lw=new Login_GUI();
- lw.setVisible(true);
- MainMenue_GUI.this.setVisible(false);
- }
- });
- lblCrumbStart.setForeground(Color.BLUE);
- lblCrumbStart.setBounds(10, 0, 52, 14);
- contentPanel.add(lblCrumbStart);
-
- JLabel label = new JLabel(">");
- label.setBounds(60, 0, 13, 14);
- contentPanel.add(label);
-
- JLabel lblRechtshinweis = new JLabel("Rechtshinweis");
- lblRechtshinweis.addMouseListener(new MouseAdapter() {
- @Override
- public void mouseClicked(MouseEvent e) {
- BillOfRights_GUI rb=new BillOfRights_GUI();
- rb.setVisible(true);
- MainMenue_GUI.this.setVisible(false);
- }
- });
- lblRechtshinweis.setForeground(Color.BLUE);
- lblRechtshinweis.setBounds(72, 0, 68, 14);
- contentPanel.add(lblRechtshinweis);
-
- JLabel label_1 = new JLabel(">");
- label_1.setBounds(142, 0, 13, 14);
- contentPanel.add(label_1);
-
- JLabel lblNewLabel_1 = new JLabel("Hauptmen\u00FC");
- lblNewLabel_1.setBounds(150, 0, 74, 14);
- contentPanel.add(lblNewLabel_1);
-
- JLabel lblNewLabel_2 = new JLabel("*Platzhalter Bild*");
- lblNewLabel_2.setBounds(10, 25, 557, 59);
- contentPanel.add(lblNewLabel_2);
-
- JPanel panelNews = new JPanel();
- panelNews.setLayout(null);
- panelNews.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), "News", TitledBorder.LEADING, TitledBorder.TOP, null, null));
- panelNews.setBackground(SystemColor.menu);
- panelNews.setBounds(290, 297, 270, 200);
- contentPanel.add(panelNews);
-
- ScrollPane scrollPaneNews = new ScrollPane();
- scrollPaneNews.setBounds(5, 15, 260, 180);
- JTextArea txtNews=new JTextArea();
- txtNews.setBackground(SystemColor.menu);
- txtNews.setWrapStyleWord(true);
- txtNews.setLineWrap(true);
- txtNews.setText("Hier werden mal die Neuigkeiten stehen");
- scrollPaneNews.add(txtNews);
- panelNews.add(scrollPaneNews);
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setBounds(0, 630, 587, 33);
- buttonPane.setBackground(SystemColor.menu);
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- getContentPane().add(buttonPane);
- {
- JButton cancelButton = new JButton("Weiter");
- cancelButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
-
- if(rdbtnImageNew.isSelected()==true)
- {
- EingabeImageAllgemein_GUI sr=new EingabeImageAllgemein_GUI();
- sr.setVisible(true);
- dispose();
- } else if(rdbtnImageEdit.isSelected()==true)
- {
-
- SearchEditImage_GUI si=new SearchEditImage_GUI();
- si.setVisible(true);
- dispose();
- }else if(rdbtnImageSearchDownload.isSelected()==true)
- {
- SearchMethod_GUI sm=new SearchMethod_GUI();
- sm.setVisible(true);
- dispose();
- }else if(rdbtnImageDelete.isSelected()==true)
- {
- DeleteImage_GUI di=new DeleteImage_GUI();
- di.setVisible(true);
- dispose();
- }
- else if(rdbtnVeranstaltungNew.isSelected()==true)
- {
- EingabeVeranstaltungAllgemein_GUI av=new EingabeVeranstaltungAllgemein_GUI();
- av.setVisible(true);
- dispose();
- }
- }
- });
- cancelButton.setActionCommand("Cancel");
- buttonPane.add(cancelButton);
- }
- }
- {
- JSeparator separator = new JSeparator();
- separator.setBounds(0, 617, 587, 2);
- getContentPane().add(separator);
- }
- {
- JSeparator separator = new JSeparator();
- separator.setBounds(0, 91, 587, 2);
- getContentPane().add(separator);
- }
-
- JMenuBar menuBar = new JMenuBar();
- setJMenuBar(menuBar);
-
- JMenu mnNewMenu_1 = new JMenu("Hilfe");
- menuBar.add(mnNewMenu_1);
-
- JMenuItem mntmFaq = new JMenuItem("FAQ");
- mnNewMenu_1.add(mntmFaq);
-
- JMenuItem mntmOtrs = new JMenuItem("OTRS");
- mnNewMenu_1.add(mntmOtrs);
-
-
-
- }
-}
diff --git a/Dozentenmodul/src/gui/SearchImage_GUI.java b/Dozentenmodul/src/gui/SearchImage_GUI.java
index 4225a295..83e6bc07 100644
--- a/Dozentenmodul/src/gui/SearchImage_GUI.java
+++ b/Dozentenmodul/src/gui/SearchImage_GUI.java
@@ -1,6 +1,11 @@
package gui;
+import gui.image.EditImageAllgemein_GUI;
+import gui.image.FTPDownloader_GUI;
+import gui.intro.MainMenue_GUI;
+import gui.lecture.ExtendedSearchForImages_GUI;
+
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
@@ -188,7 +193,7 @@ public class SearchImage_GUI extends JFrame {
@Override
public void mouseClicked(MouseEvent arg0) {
//Öffnet das Fenster Extended GUI
- ExtendedSearch_GUI es=new ExtendedSearch_GUI();
+ ExtendedSearchForImages_GUI es=new ExtendedSearchForImages_GUI();
es.setVisible(true);
}
});
@@ -354,7 +359,7 @@ public class SearchImage_GUI extends JFrame {
btnDownload.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
//Öffnet den Downloader
- FTPDownloader_GUI down=new FTPDownloader_GUI("Test");
+ FTPDownloader_GUI down=new FTPDownloader_GUI();
down.setVisible(true);
SearchImage_GUI.this.setVisible(false);
}
diff --git a/Dozentenmodul/src/gui/SearchMethod_GUI.java b/Dozentenmodul/src/gui/SearchMethod_GUI.java
deleted file mode 100644
index 24a12959..00000000
--- a/Dozentenmodul/src/gui/SearchMethod_GUI.java
+++ /dev/null
@@ -1,243 +0,0 @@
-package gui;
-
-
-import java.awt.Color;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.Toolkit;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.MouseAdapter;
-import java.awt.event.MouseEvent;
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
-
-import javax.swing.ButtonGroup;
-import javax.swing.JButton;
-import javax.swing.JDialog;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JMenu;
-import javax.swing.JMenuBar;
-import javax.swing.JMenuItem;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JSeparator;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.UIManager;
-import javax.swing.UnsupportedLookAndFeelException;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.TitledBorder;
-
-@SuppressWarnings("serial")
-public class SearchMethod_GUI extends JFrame {
-
- private final JPanel contentPanel = new JPanel();
- String[] result;
- JRadioButton rdbtnNachEinemVlimage;
- JRadioButton rdbtnNachEinerVeranstaltung;
- private final ButtonGroup buttonGroup = new ButtonGroup();
- /**
- * Launch the application.
- */
- public static void main(String[] args) {
- try {
- SearchMethod_GUI dialog = new SearchMethod_GUI();
- dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
- dialog.setVisible(true);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- /**
- * Create the dialog.
- */
- public SearchMethod_GUI() {
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(WindowEvent arg0) {
- System.exit(0);
- }
- });
- setResizable(false);
-
- try {
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
- } catch (ClassNotFoundException | InstantiationException
- | IllegalAccessException | UnsupportedLookAndFeelException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- setTitle("bwLehrpool Suite *Prototyp*");
- Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
- int top=(screenSize.height - 603) / 2;
- int left=(screenSize.width - 722) / 2;
- setBounds(left, top, 603, 722);
- //setBounds(100, 100, 603, 722);
- getContentPane().setLayout(null);
- {
- JPanel panel = new JPanel();
- panel.setBackground(SystemColor.menu);
- panel.setBounds(10, 11, 577, 57);
- getContentPane().add(panel);
- panel.setLayout(null);
- {
- JLabel lblNewLabel = new JLabel("Eingabe Ihrer Daten");
- lblNewLabel.setBounds(10, 11, 509, 22);
- panel.add(lblNewLabel);
- lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 18));
- }
-
- JTextPane txtpnBitteWhlenSie = new JTextPane();
- txtpnBitteWhlenSie.setEditable(false);
- txtpnBitteWhlenSie.setBackground(SystemColor.menu);
- txtpnBitteWhlenSie.setText("Geben Sie hier bitte einen sprechenden Imagename sowie Ihre Kontaktdaten an");
- txtpnBitteWhlenSie.setBounds(10, 36, 509, 32);
- panel.add(txtpnBitteWhlenSie);
- }
- contentPanel.setBounds(10, 85, 577, 493);
- contentPanel.setBackground(SystemColor.menu);
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- getContentPane().add(contentPanel);
- contentPanel.setLayout(null);
-
- JPanel panel_1 = new JPanel();
- panel_1.setBackground(SystemColor.menu);
- panel_1.setBorder(new TitledBorder(null, "Wählen Sie bitte die Suchmethode Ihrer Suche", TitledBorder.LEADING, TitledBorder.TOP, null, null));
- panel_1.setBounds(10, 36, 557, 369);
- contentPanel.add(panel_1);
- panel_1.setLayout(null);
-
- rdbtnNachEinemVlimage = new JRadioButton("Nach einem VL-Image oder Vorlagen suchen");
- buttonGroup.add(rdbtnNachEinemVlimage);
- rdbtnNachEinemVlimage.setBounds(6, 38, 545, 23);
- panel_1.add(rdbtnNachEinemVlimage);
-
- JTextArea txtrHierKlickenWenn = new JTextArea();
- txtrHierKlickenWenn.setBackground(SystemColor.menu);
- txtrHierKlickenWenn.setLineWrap(true);
- txtrHierKlickenWenn.setFont(new Font("Tahoma", Font.PLAIN, 11));
- txtrHierKlickenWenn.setText("Hier klicken, wenn Sie nach einem konkreten Image suchen, von dem Sie exakte Daten kennen. Hierzu geh\u00F6ren z.B. das Betriebssystem oder die installierte Software.\r\nEs werden zudem alle Vorlagen aufgelistet.");
- txtrHierKlickenWenn.setBounds(25, 68, 518, 80);
- panel_1.add(txtrHierKlickenWenn);
-
- JTextArea txtrHierKlickenWenn_1 = new JTextArea();
- txtrHierKlickenWenn_1.setText("Hier klicken, wenn Sie nur wissen f\u00FCr welche Veranstaltung das gesuchte Image verwendet wird. Hierzu geh\u00F6ren z.B. der Name des Dozenten oder der Name der Veranstaltung.");
- txtrHierKlickenWenn_1.setLineWrap(true);
- txtrHierKlickenWenn_1.setFont(new Font("Tahoma", Font.PLAIN, 11));
- txtrHierKlickenWenn_1.setBackground(SystemColor.menu);
- txtrHierKlickenWenn_1.setBounds(25, 210, 518, 80);
- panel_1.add(txtrHierKlickenWenn_1);
-
- rdbtnNachEinerVeranstaltung = new JRadioButton("Nach einer Veranstaltung suchen");
- buttonGroup.add(rdbtnNachEinerVeranstaltung);
- rdbtnNachEinerVeranstaltung.setBounds(6, 180, 545, 23);
- panel_1.add(rdbtnNachEinerVeranstaltung);
-
- JPanel panel = new JPanel();
- panel.setBounds(10, 402, 577, 33);
- contentPanel.add(panel);
- panel.setLayout(null);
- panel.setBorder(new EmptyBorder(5, 5, 5, 5));
- panel.setBackground(SystemColor.menu);
-
- JLabel lblHauptmen = new JLabel("Hauptmen\u00FC");
- lblHauptmen.addMouseListener(new MouseAdapter() {
- @Override
- public void mouseClicked(MouseEvent arg0) {
-
- SearchMethod_GUI.this.setVisible(false);
- MainMenue_GUI main=new MainMenue_GUI();
- main.setVisible(true);
- }
- });
- lblHauptmen.setForeground(Color.BLUE);
- lblHauptmen.setBounds(10, 11, 61, 14);
- contentPanel.add(lblHauptmen);
-
- JLabel label_1 = new JLabel(">");
- label_1.setBounds(69, 11, 13, 14);
- contentPanel.add(label_1);
-
- JLabel lblVlimage = new JLabel("VL-Image");
- lblVlimage.setForeground(Color.BLUE);
- lblVlimage.setBounds(81, 11, 45, 14);
- contentPanel.add(lblVlimage);
-
- JLabel label_2 = new JLabel(">");
- label_2.setBounds(133, 11, 13, 14);
- contentPanel.add(label_2);
-
- JLabel lblNewLabel_1 = new JLabel("Suchmethode");
- lblNewLabel_1.setBounds(146, 11, 82, 14);
- contentPanel.add(lblNewLabel_1);
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setBounds(0, 640, 597, 33);
- buttonPane.setBackground(SystemColor.menu);
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- getContentPane().add(buttonPane);
- {
- JButton okButton = new JButton("Zur\u00FCck");
- okButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- MainMenue_GUI sr=new MainMenue_GUI();
- sr.setVisible(true);
- dispose();
- }
- });
- okButton.setActionCommand("OK");
- buttonPane.add(okButton);
- getRootPane().setDefaultButton(okButton);
- }
- {
- JButton cancelButton = new JButton("Weiter");
- cancelButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
-
- if(rdbtnNachEinemVlimage.isSelected()==true)
- {
- SearchImage_GUI ea=new SearchImage_GUI();
- ea.setVisible(true);
- dispose();
- }
- }
-
- });
- cancelButton.setActionCommand("Cancel");
- buttonPane.add(cancelButton);
- }
- }
-
- JSeparator separator = new JSeparator();
- separator.setBounds(0, 78, 597, 2);
- getContentPane().add(separator);
-
- JSeparator separator_1 = new JSeparator();
- separator_1.setBounds(0, 627, 597, 2);
- getContentPane().add(separator_1);
-
- JMenuBar menuBar = new JMenuBar();
- setJMenuBar(menuBar);
-
- JMenu mnNewMenu = new JMenu("Suchen");
- menuBar.add(mnNewMenu);
-
- JMenuItem mntmVlSuche = new JMenuItem("VL Suche");
- mnNewMenu.add(mntmVlSuche);
-
- JMenu mnNewMenu_1 = new JMenu("Hilfe");
- menuBar.add(mnNewMenu_1);
-
- JMenuItem mntmFaq = new JMenuItem("FAQ");
- mnNewMenu_1.add(mntmFaq);
-
- JMenuItem mntmOtrs = new JMenuItem("OTRS");
- mnNewMenu_1.add(mntmOtrs);
-
- }
-}
diff --git a/Dozentenmodul/src/gui/VmWareLink_GUI.java b/Dozentenmodul/src/gui/VmWareLink_GUI.java
deleted file mode 100644
index 43df06a6..00000000
--- a/Dozentenmodul/src/gui/VmWareLink_GUI.java
+++ /dev/null
@@ -1,215 +0,0 @@
-package gui;
-
-import java.awt.Desktop;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Toolkit;
-import javax.swing.JFrame;
-import javax.swing.JButton;
-import javax.swing.JDialog;
-import javax.swing.JPanel;
-import javax.swing.UIManager;
-import javax.swing.UnsupportedLookAndFeelException;
-import javax.swing.border.EmptyBorder;
-import javax.swing.JLabel;
-import java.awt.Font;
-import javax.swing.JTextPane;
-import java.awt.SystemColor;
-import java.awt.event.ActionListener;
-import java.awt.event.ActionEvent;
-import javax.swing.JSeparator;
-import javax.swing.JMenuBar;
-import javax.swing.JMenu;
-import javax.swing.JMenuItem;
-import java.awt.event.MouseAdapter;
-import java.awt.event.MouseEvent;
-import java.io.File;
-import java.io.IOException;
-import java.net.URI;
-import java.net.URISyntaxException;
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
-import javax.swing.JCheckBox;
-import javax.swing.event.ChangeListener;
-import javax.swing.event.ChangeEvent;
-
-import org.ini4j.InvalidFileFormatException;
-import org.ini4j.Wini;
-
-
-@SuppressWarnings("serial")
-public class VmWareLink_GUI extends JFrame {
-
- private final JPanel contentPanel = new JPanel();
- String[] result;
- JCheckBox chckbxNewCheckBox;
- /**
- * Launch the application.
- */
- public static void main(String[] args) {
- try {
- VmWareLink_GUI dialog = new VmWareLink_GUI();
- dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
- dialog.setVisible(true);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- /**
- * Create the dialog.
- */
- public VmWareLink_GUI() {
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(WindowEvent e) {
- System.exit(0);
- }
- });
- try {
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
- } catch (ClassNotFoundException | InstantiationException
- | IllegalAccessException | UnsupportedLookAndFeelException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- setTitle("Dozentenmodul *Prototyp*");
- Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
- int top=(screenSize.height - 722) / 2;
- int left=(screenSize.width - 603) / 2;
- setBounds(left, top, 603, 722);
- //setBounds(100, 100, 603, 722);
- getContentPane().setLayout(null);
- {
- JPanel panel = new JPanel();
- panel.setBounds(0, 0, 577, 80);
- getContentPane().add(panel);
- panel.setLayout(null);
- {
- JLabel lblNewLabel = new JLabel("Hinweis VMWare Player");
- lblNewLabel.setBounds(10, 11, 509, 22);
- panel.add(lblNewLabel);
- lblNewLabel.setFont(new Font("Tahoma", Font.PLAIN, 18));
- }
-
- JTextPane txtpnBitteWhlenSie = new JTextPane();
- txtpnBitteWhlenSie.setEditable(false);
- txtpnBitteWhlenSie.setBackground(SystemColor.menu);
- txtpnBitteWhlenSie.setBounds(10, 36, 509, 42);
- panel.add(txtpnBitteWhlenSie);
- }
- contentPanel.setBounds(10, 104, 567, 502);
- contentPanel.setBackground(SystemColor.menu);
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- getContentPane().add(contentPanel);
- contentPanel.setLayout(null);
-
- JTextPane txtpnUmIhreVmdk = new JTextPane();
- txtpnUmIhreVmdk.setBackground(SystemColor.menu);
- txtpnUmIhreVmdk.setEditable(false);
- txtpnUmIhreVmdk.setText("F\u00FCr die Arbeit mit der bwLehrpool Suite wird zwingend ein VMWare Player ben\u00F6tigt. Diesen k\u00F6nnen Sie sich unter folgendem Link kostenfrei downloaden.");
- txtpnUmIhreVmdk.setBounds(10, 16, 499, 66);
- contentPanel.add(txtpnUmIhreVmdk);
-
- JLabel lblNewLabel_1 = new JLabel("<html><b>Windows: </b></html>");
- lblNewLabel_1.addMouseListener(new MouseAdapter() {
- @Override
- public void mouseReleased(MouseEvent arg0) {
- URI url;
- try {
- url = new URI("https://my.vmware.com/web/vmware/free#desktop_end_user_computing/vmware_player/6_0");
- Desktop.getDesktop().browse(url);
- } catch (URISyntaxException | IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
- }
- });
-
- lblNewLabel_1.setBounds(10, 93, 499, 14);
- contentPanel.add(lblNewLabel_1);
-
- chckbxNewCheckBox = new JCheckBox("Diese Benachrichtigung nicht mehr anzeigen.");
- chckbxNewCheckBox.addChangeListener(new ChangeListener() {
- public void stateChanged(ChangeEvent arg0) {
- if(chckbxNewCheckBox.isSelected()==true)
- {
- try {
- Wini ini=new Wini(new File("C:\\Users\\"+System.getProperty("user.name")+"\\AppData\\Roaming\\bwLehrpoolSuite\\config.ini"));
- ini.put("main", "vmware",true);
- ini.store();
- } catch (InvalidFileFormatException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- } catch (IOException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- }
- }
- }
- });
- chckbxNewCheckBox.setBounds(6, 472, 555, 23);
- contentPanel.add(chckbxNewCheckBox);
-
- JLabel lbllinuxvmwarePlayer = new JLabel("<html><b>Linux: </b></html>");
- lbllinuxvmwarePlayer.setBounds(10, 178, 499, 14);
- contentPanel.add(lbllinuxvmwarePlayer);
-
- JLabel lblvmwarePlayerDownload = new JLabel("<html><a href=\"https:////my.vmware.com//web//vmware//free#desktop_end_user_computing//vmware_player//6_0\" >vmWare Player Download</a></html>");
- lblvmwarePlayerDownload.setBounds(10, 118, 499, 14);
- contentPanel.add(lblvmwarePlayerDownload);
-
- JLabel lblvmwarePlayerDownload_1 = new JLabel("<html><a href=\"https:////my.vmware.com//web//vmware//free#desktop_end_user_computing//vmware_player//6_0\" >vmWare Player Download</a></html>");
- lblvmwarePlayerDownload_1.setBounds(10, 203, 499, 14);
- contentPanel.add(lblvmwarePlayerDownload_1);
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setBounds(0, 630, 587, 33);
- buttonPane.setBackground(SystemColor.menu);
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- getContentPane().add(buttonPane);
- {
- JButton cancelButton = new JButton("Weiter");
- cancelButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- MainMenue_GUI ea=new MainMenue_GUI();
- ea.setVisible(true);
- dispose();
- }
- });
- cancelButton.setActionCommand("Cancel");
- buttonPane.add(cancelButton);
- }
- }
- {
- JSeparator separator = new JSeparator();
- separator.setBounds(0, 617, 587, 2);
- getContentPane().add(separator);
- }
- {
- JSeparator separator = new JSeparator();
- separator.setBounds(0, 91, 587, 2);
- getContentPane().add(separator);
- }
- {
- JMenuBar menuBar = new JMenuBar();
- setJMenuBar(menuBar);
- {
- JMenu mnHilfe = new JMenu("Hilfe");
- menuBar.add(mnHilfe);
- {
- JMenuItem mntmFaq = new JMenuItem("FAQ");
- mnHilfe.add(mntmFaq);
- }
- {
- JMenuItem mntmHilfe = new JMenuItem("Hilfe");
- mnHilfe.add(mntmHilfe);
- }
- }
- }
-
-
-
- }
-}
diff --git a/Dozentenmodul/src/gui/EingabeImageAllgemein_GUI.java b/Dozentenmodul/src/gui/image/CreateImageAllgemein_GUI.java
index 12678e0e..bf1d0230 100644
--- a/Dozentenmodul/src/gui/EingabeImageAllgemein_GUI.java
+++ b/Dozentenmodul/src/gui/image/CreateImageAllgemein_GUI.java
@@ -1,6 +1,8 @@
-package gui;
+package gui.image;
+import gui.intro.MainMenue_GUI;
+
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Toolkit;
@@ -36,7 +38,7 @@ import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
@SuppressWarnings("serial")
-public class EingabeImageAllgemein_GUI extends JFrame {
+public class CreateImageAllgemein_GUI extends JFrame {
private final JPanel contentPanel = new JPanel();
String[] result;
@@ -49,13 +51,17 @@ public class EingabeImageAllgemein_GUI extends JFrame {
/**
* Create the dialog.
*/
- public EingabeImageAllgemein_GUI() {
+ public CreateImageAllgemein_GUI() {
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(WindowEvent arg0) {
//Beendet das Fenster auf X
System.exit(0);
}
+ @Override
+ public void windowOpened(WindowEvent arg0) {
+ imagename.requestFocusInWindow();
+ }
});
//Verhindert das Vergrößern des Fensters
setResizable(false);
@@ -119,7 +125,7 @@ public class EingabeImageAllgemein_GUI extends JFrame {
Vorname.setEnabled(false);
Vorname.setEditable(false);
Vorname.setBackground(Color.WHITE);
- Vorname.setText(person.verantowrtlicher.getVorname());
+ Vorname.setText(person.verantwortlicher.getVorname());
Vorname.setColumns(10);
Vorname.setBounds(145, 245, 350, 20);
panel_1.add(Vorname);
@@ -133,7 +139,7 @@ public class EingabeImageAllgemein_GUI extends JFrame {
Nachname.setEnabled(false);
Nachname.setEditable(false);
Nachname.setBackground(Color.WHITE);
- Nachname.setText(person.verantowrtlicher.getName());
+ Nachname.setText(person.verantwortlicher.getName());
Nachname.setColumns(10);
Nachname.setBounds(145, 276, 350, 20);
panel_1.add(Nachname);
@@ -147,7 +153,7 @@ public class EingabeImageAllgemein_GUI extends JFrame {
Hochschule.setEnabled(false);
Hochschule.setEditable(false);
Hochschule.setBackground(Color.WHITE);
- Hochschule.setText(person.verantowrtlicher.getHochschule());
+ Hochschule.setText(person.verantwortlicher.getHochschule());
Hochschule.setColumns(10);
Hochschule.setBounds(145, 307, 350, 20);
panel_1.add(Hochschule);
@@ -161,7 +167,7 @@ public class EingabeImageAllgemein_GUI extends JFrame {
EMail.setEnabled(false);
EMail.setEditable(false);
EMail.setBackground(Color.WHITE);
- EMail.setText(person.verantowrtlicher.getEMail());
+ EMail.setText(person.verantwortlicher.getEMail());
EMail.setColumns(10);
EMail.setBounds(145, 338, 350, 20);
panel_1.add(EMail);
@@ -171,14 +177,17 @@ public class EingabeImageAllgemein_GUI extends JFrame {
lblImagename.setBounds(10, 31, 125, 20);
panel_1.add(lblImagename);
+
imagename = new JTextField();
imagename.setBackground(Color.WHITE);
imagename.setText((String) null);
imagename.setColumns(10);
imagename.setBounds(145, 31, 350, 20);
+ imagename.setText(Image.image.getImagename()); //null am Anfang, aber speichert die Eingabe, wenn man zurück kommt zur Seite
panel_1.add(imagename);
JTextArea txtrGebenSieBitte = new JTextArea();
+ txtrGebenSieBitte.setEditable(false);
txtrGebenSieBitte.setBackground(SystemColor.menu);
txtrGebenSieBitte.setLineWrap(true);
txtrGebenSieBitte.setFont(new Font("Tahoma", Font.PLAIN, 12));
@@ -202,7 +211,7 @@ public class EingabeImageAllgemein_GUI extends JFrame {
@Override
public void mouseClicked(MouseEvent arg0) {
//Öffnet das Hauptmenü
- EingabeImageAllgemein_GUI.this.setVisible(false);
+ CreateImageAllgemein_GUI.this.setVisible(false);
MainMenue_GUI main=new MainMenue_GUI();
main.setVisible(true);
}
@@ -234,8 +243,8 @@ public class EingabeImageAllgemein_GUI extends JFrame {
buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
getContentPane().add(buttonPane);
{
- JButton okButton = new JButton("Zur\u00FCck");
- okButton.addActionListener(new ActionListener() {
+ JButton backButton = new JButton("Zur\u00FCck");
+ backButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Image.image.setImagename(imagename.getText());
MainMenue_GUI sr=new MainMenue_GUI();
@@ -243,31 +252,31 @@ public class EingabeImageAllgemein_GUI extends JFrame {
dispose();
}
});
- okButton.setActionCommand("OK");
- buttonPane.add(okButton);
- getRootPane().setDefaultButton(okButton);
+ backButton.setActionCommand("Cancel");
+ buttonPane.add(backButton);
}
{
- JButton cancelButton = new JButton("Weiter");
- cancelButton.addActionListener(new ActionListener() {
+ JButton continueButton = new JButton("Weiter");
+ continueButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
//Prüft die Eingabe
- if(Vorname.getText().isEmpty()==false && Nachname.getText().isEmpty()==false && Hochschule.getText().isEmpty()==false&&EMail.getText().isEmpty()==false)
+ if(imagename.getText().isEmpty()==false && Vorname.getText().isEmpty()==false && Nachname.getText().isEmpty()==false && Hochschule.getText().isEmpty()==false&&EMail.getText().isEmpty()==false)
{
//Schreibt die Daten in das Model
Image.image.setImagename(imagename.getText());
- EingabeImageTechnisch_GUI ea=new EingabeImageTechnisch_GUI();
+ CreateImageTechnisch_GUI ea=new CreateImageTechnisch_GUI();
ea.setVisible(true);
dispose();
}
else{
JOptionPane.showMessageDialog(null, "Bitte geben Sie alle notwendigen Daten an!",
- "Error", JOptionPane.ERROR_MESSAGE);
+ "Daten unvollständig", JOptionPane.INFORMATION_MESSAGE);
}
}
});
- cancelButton.setActionCommand("Cancel");
- buttonPane.add(cancelButton);
+ continueButton.setActionCommand("OK");
+ buttonPane.add(continueButton);
+ getRootPane().setDefaultButton(continueButton);
}
}
@@ -291,5 +300,5 @@ public class EingabeImageAllgemein_GUI extends JFrame {
JMenuItem mntmOtrs = new JMenuItem("OTRS");
mnNewMenu_1.add(mntmOtrs);
- }
+ }//end main
}
diff --git a/Dozentenmodul/src/gui/EingabeImageTechnisch_GUI.java b/Dozentenmodul/src/gui/image/CreateImageTechnisch_GUI.java
index 62cfd19a..e9d2d91a 100644
--- a/Dozentenmodul/src/gui/EingabeImageTechnisch_GUI.java
+++ b/Dozentenmodul/src/gui/image/CreateImageTechnisch_GUI.java
@@ -1,6 +1,8 @@
-package gui;
+package gui.image;
+import gui.intro.MainMenue_GUI;
+
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Toolkit;
@@ -36,7 +38,7 @@ import javax.swing.SpinnerNumberModel;
import models.Image;
@SuppressWarnings("serial")
-public class EingabeImageTechnisch_GUI extends JFrame {
+public class CreateImageTechnisch_GUI extends JFrame {
private final JPanel contentPanel = new JPanel();
String[] result;
@@ -53,7 +55,7 @@ public class EingabeImageTechnisch_GUI extends JFrame {
*/
public static void main(String[] args) {
try {
- EingabeImageTechnisch_GUI dialog = new EingabeImageTechnisch_GUI();
+ CreateImageTechnisch_GUI dialog = new CreateImageTechnisch_GUI();
dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
dialog.setVisible(true);
} catch (Exception e) {
@@ -64,7 +66,7 @@ public class EingabeImageTechnisch_GUI extends JFrame {
/**
* Create the dialog.
*/
- public EingabeImageTechnisch_GUI() {
+ public CreateImageTechnisch_GUI() {
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(WindowEvent arg0) {
@@ -116,102 +118,71 @@ public class EingabeImageTechnisch_GUI extends JFrame {
JPanel panel_1 = new JPanel();
panel_1.setBackground(SystemColor.menu);
panel_1.setBorder(new TitledBorder(null, "Informationen zum Image", TitledBorder.LEADING, TitledBorder.TOP, null, null));
- panel_1.setBounds(10, 66, 557, 95);
+ panel_1.setBounds(10, 66, 557, 124);
contentPanel.add(panel_1);
panel_1.setLayout(null);
- JLabel lblNewLabel_2 = new JLabel("Image enth\u00E4lt lizenzpflichtige Software:");
- lblNewLabel_2.setBounds(10, 30, 250, 20);
- panel_1.add(lblNewLabel_2);
-
- rdbtnlicenseJa = new JRadioButton("Ja");
- rdbtnlicenseJa.setSelected(true);
- buttonGrouplicense.add(rdbtnlicenseJa);
- rdbtnlicenseJa.setBounds(266, 29, 109, 23);
- panel_1.add(rdbtnlicenseJa);
-
rdbtnlicenseNein = new JRadioButton("Nein");
buttonGrouplicense.add(rdbtnlicenseNein);
- rdbtnlicenseNein.setBounds(377, 29, 109, 23);
+ rdbtnlicenseNein.setBounds(377, 29, 46, 23);
panel_1.add(rdbtnlicenseNein);
- JLabel lblInternetIstInnerhalb = new JLabel("Internet ist innerhalb des Image gesperrt:");
+ rdbtnInternetNein = new JRadioButton("Nein");
+ rdbtnInternetNein.setSelected(true);
+ buttonGroupInternet.add(rdbtnInternetNein);
+ rdbtnInternetNein.setBounds(377, 57, 46, 23);
+ panel_1.add(rdbtnInternetNein);
+
+ JLabel lblInternetIstInnerhalb = new JLabel("Internet ist f\u00FCr dieses Image gesperrt:");
lblInternetIstInnerhalb.setBounds(10, 58, 250, 20);
panel_1.add(lblInternetIstInnerhalb);
+ JButton btnInternetSettings = new JButton("Einstellungen...");
+ btnInternetSettings.setEnabled(false);
+ btnInternetSettings.setBounds(439, 57, 108, 23);
+ panel_1.add(btnInternetSettings);
+
rdbtnInternetJa = new JRadioButton("Ja");
+
buttonGroupInternet.add(rdbtnInternetJa);
- rdbtnInternetJa.setBounds(266, 57, 109, 23);
+ rdbtnInternetJa.setBounds(266, 57, 41, 23);
panel_1.add(rdbtnInternetJa);
- rdbtnInternetNein = new JRadioButton("Nein");
- rdbtnInternetNein.setSelected(true);
- buttonGroupInternet.add(rdbtnInternetNein);
- rdbtnInternetNein.setBounds(377, 57, 109, 23);
- panel_1.add(rdbtnInternetNein);
-
- JLabel lblHauptmen = new JLabel("Hauptmen\u00FC");
- lblHauptmen.addMouseListener(new MouseAdapter() {
- @Override
- public void mouseClicked(MouseEvent arg0) {
-
- EingabeImageTechnisch_GUI.this.setVisible(false);
- MainMenue_GUI main=new MainMenue_GUI();
- main.setVisible(true);
- }
- });
- lblHauptmen.setForeground(Color.BLUE);
- lblHauptmen.setBounds(10, 11, 61, 14);
- contentPanel.add(lblHauptmen);
-
- JLabel label_1 = new JLabel(">");
- label_1.setBounds(69, 11, 13, 14);
- contentPanel.add(label_1);
+ rdbtnlicenseJa = new JRadioButton("Ja");
+ rdbtnlicenseJa.setSelected(true);
+ buttonGrouplicense.add(rdbtnlicenseJa);
+ rdbtnlicenseJa.setBounds(266, 29, 41, 23);
+ panel_1.add(rdbtnlicenseJa);
- JLabel lblVlimage = new JLabel("VL-Image");
- lblVlimage.setForeground(Color.BLUE);
- lblVlimage.setBounds(81, 11, 45, 14);
- contentPanel.add(lblVlimage);
+ JLabel lblNewLabel_2 = new JLabel("Image enth\u00E4lt lizenzpflichtige Software:");
+ lblNewLabel_2.setBounds(10, 30, 250, 20);
+ panel_1.add(lblNewLabel_2);
- JLabel label_2 = new JLabel(">");
- label_2.setBounds(133, 11, 13, 14);
- contentPanel.add(label_2);
+ JLabel lblLizenzserverEintragen = new JLabel("Lizenzserver eintragen:");
+ lblLizenzserverEintragen.setBounds(10, 85, 250, 20);
+ panel_1.add(lblLizenzserverEintragen);
- JLabel lblNewLabel_1 = new JLabel("Neu");
- lblNewLabel_1.setBounds(146, 11, 46, 14);
- contentPanel.add(lblNewLabel_1);
+ JButton btnLicenseServer = new JButton("Server-Adresse...");
+ btnLicenseServer.setEnabled(false);
+ btnLicenseServer.setBounds(266, 84, 157, 23);
+ panel_1.add(btnLicenseServer);
JPanel panel_2 = new JPanel();
panel_2.setLayout(null);
panel_2.setBorder(new TitledBorder(null, "Empfehlung bezüglich Ressourcen", TitledBorder.LEADING, TitledBorder.TOP, null, null));
panel_2.setBackground(SystemColor.menu);
- panel_2.setBounds(10, 172, 557, 338);
+ panel_2.setBounds(11, 196, 557, 338);
contentPanel.add(panel_2);
- JTextArea txtrHinweisSolltenSie = new JTextArea();
- txtrHinweisSolltenSie.setBackground(SystemColor.menu);
- txtrHinweisSolltenSie.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtrHinweisSolltenSie.setText("Hinweis: Sollten Sie keine Software einsetzen, die viele Ressourcen ben\u00F6tigt,\r\nk\u00F6nnen Sie sich an den Beispielwerten orientieren.");
- txtrHinweisSolltenSie.setBounds(10, 25, 537, 55);
- panel_2.add(txtrHinweisSolltenSie);
-
- JLabel lblNewLabel_3 = new JLabel("Wie viel Arbeitsspeicher empfehlen Sie f\u00FCr das Image:");
- lblNewLabel_3.setBounds(10, 91, 280, 20);
- panel_2.add(lblNewLabel_3);
-
- JLabel lblMindestens = new JLabel("mindestens");
- lblMindestens.setBounds(315, 91, 60, 20);
- panel_2.add(lblMindestens);
-
- spinnerRam = new JSpinner();
- spinnerRam.setModel(new SpinnerNumberModel(1, 1, 8, 1));
- spinnerRam.setBounds(385, 88, 29, 20);
- panel_2.add(spinnerRam);
-
JLabel lblGbyte = new JLabel("GByte");
lblGbyte.setBounds(424, 91, 46, 20);
panel_2.add(lblGbyte);
+ spinnerCPU = new JSpinner();
+ spinnerCPU.setModel(new SpinnerNumberModel(1, 1, 4, 1));
+ spinnerCPU.setBounds(385, 188, 29, 20);
+ panel_2.add(spinnerCPU);
+
JTextArea txtrBeispielWindows = new JTextArea();
txtrBeispielWindows.setText("Beispiel:\r\nWindows 7 32/64 Bit: 2 GByte\r\nLinux/Unix 32/64 Bit: 1 GByte");
txtrBeispielWindows.setFont(new Font("Tahoma", Font.PLAIN, 11));
@@ -219,29 +190,77 @@ public class EingabeImageTechnisch_GUI extends JFrame {
txtrBeispielWindows.setBounds(10, 122, 280, 55);
panel_2.add(txtrBeispielWindows);
- JTextArea txtrBeispielWindows_1 = new JTextArea();
- txtrBeispielWindows_1.setText("Beispiel:\r\nWindows 7 32/64 Bit: 1 Kern\r\nLinux/Unix 32/64 Bit: 1 Kern");
- txtrBeispielWindows_1.setFont(new Font("Tahoma", Font.PLAIN, 11));
- txtrBeispielWindows_1.setBackground(SystemColor.menu);
- txtrBeispielWindows_1.setBounds(10, 222, 280, 55);
- panel_2.add(txtrBeispielWindows_1);
+
+
+ JLabel lblKerne = new JLabel("Kerne");
+ lblKerne.setBounds(424, 191, 46, 20);
+ panel_2.add(lblKerne);
JLabel lblWieVieleCpus = new JLabel("Wie viele CPUs empfehlen Sie f\u00FCr das Image:");
lblWieVieleCpus.setBounds(10, 191, 280, 20);
panel_2.add(lblWieVieleCpus);
+ spinnerRam = new JSpinner();
+ spinnerRam.setModel(new SpinnerNumberModel(1, 1, 8, 1));
+ spinnerRam.setBounds(385, 88, 29, 20);
+ panel_2.add(spinnerRam);
+
JLabel label_3 = new JLabel("mindestens");
label_3.setBounds(315, 191, 60, 20);
panel_2.add(label_3);
- spinnerCPU = new JSpinner();
- spinnerCPU.setModel(new SpinnerNumberModel(1, 1, 4, 1));
- spinnerCPU.setBounds(385, 188, 29, 20);
- panel_2.add(spinnerCPU);
+ JLabel lblMindestens = new JLabel("mindestens");
+ lblMindestens.setBounds(315, 91, 60, 20);
+ panel_2.add(lblMindestens);
- JLabel lblKerne = new JLabel("Kerne");
- lblKerne.setBounds(424, 191, 46, 20);
- panel_2.add(lblKerne);
+ JTextArea txtrBeispielWindows_1 = new JTextArea();
+ txtrBeispielWindows_1.setText("Beispiel:\r\nWindows 7 32/64 Bit: 1 Kern\r\nLinux/Unix 32/64 Bit: 1 Kern");
+ txtrBeispielWindows_1.setFont(new Font("Tahoma", Font.PLAIN, 11));
+ txtrBeispielWindows_1.setBackground(SystemColor.menu);
+ txtrBeispielWindows_1.setBounds(10, 222, 280, 55);
+ panel_2.add(txtrBeispielWindows_1);
+
+ JLabel lblNewLabel_3 = new JLabel("Wie viel Arbeitsspeicher empfehlen Sie f\u00FCr das Image:");
+ lblNewLabel_3.setBounds(10, 91, 280, 20);
+ panel_2.add(lblNewLabel_3);
+
+ JTextArea txtrHinweisSolltenSie = new JTextArea();
+ txtrHinweisSolltenSie.setBackground(SystemColor.menu);
+ txtrHinweisSolltenSie.setFont(new Font("Tahoma", Font.PLAIN, 13));
+ txtrHinweisSolltenSie.setText("Hinweis: Sollten Sie keine Software einsetzen, die viele Ressourcen ben\u00F6tigt,\r\nk\u00F6nnen Sie sich an den Beispielwerten orientieren.");
+ txtrHinweisSolltenSie.setBounds(10, 25, 537, 55);
+ panel_2.add(txtrHinweisSolltenSie);
+
+ JLabel lblHauptmen = new JLabel("Hauptmen\u00FC");
+ lblHauptmen.addMouseListener(new MouseAdapter() {
+ @Override
+ public void mouseClicked(MouseEvent arg0) {
+
+ CreateImageTechnisch_GUI.this.setVisible(false);
+ MainMenue_GUI main=new MainMenue_GUI();
+ main.setVisible(true);
+ }
+ });
+ lblHauptmen.setForeground(Color.BLUE);
+ lblHauptmen.setBounds(10, 11, 61, 14);
+ contentPanel.add(lblHauptmen);
+
+ JLabel label_1 = new JLabel(">");
+ label_1.setBounds(69, 11, 13, 14);
+ contentPanel.add(label_1);
+
+ JLabel lblVlimage = new JLabel("VL-Image");
+ lblVlimage.setForeground(Color.BLUE);
+ lblVlimage.setBounds(81, 11, 45, 14);
+ contentPanel.add(lblVlimage);
+
+ JLabel label_2 = new JLabel(">");
+ label_2.setBounds(133, 11, 13, 14);
+ contentPanel.add(label_2);
+
+ JLabel lblNewLabel_1 = new JLabel("Neu");
+ lblNewLabel_1.setBounds(146, 11, 46, 14);
+ contentPanel.add(lblNewLabel_1);
{
JPanel buttonPane = new JPanel();
buttonPane.setBounds(0, 640, 597, 33);
@@ -249,8 +268,8 @@ public class EingabeImageTechnisch_GUI extends JFrame {
buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
getContentPane().add(buttonPane);
{
- JButton okButton = new JButton("Zur\u00FCck");
- okButton.addActionListener(new ActionListener() {
+ JButton cancelButton = new JButton("Zur\u00FCck");
+ cancelButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if(rdbtnInternetJa.isSelected()==true)
@@ -273,18 +292,18 @@ public class EingabeImageTechnisch_GUI extends JFrame {
Image.image.setCpu(Integer.valueOf(spinnerCPU.getValue().toString()).intValue());
Image.image.setRam(Integer.valueOf(spinnerRam.getValue().toString()).intValue());
- EingabeImageAllgemein_GUI sr=new EingabeImageAllgemein_GUI();
+ CreateImageAllgemein_GUI sr=new CreateImageAllgemein_GUI();
sr.setVisible(true);
dispose();
}
});
- okButton.setActionCommand("OK");
- buttonPane.add(okButton);
- getRootPane().setDefaultButton(okButton);
+ cancelButton.setActionCommand("OK");
+ buttonPane.add(cancelButton);
+ //getRootPane().setDefaultButton(cancelButton);
}
{
- JButton cancelButton = new JButton("Weiter");
- cancelButton.addActionListener(new ActionListener() {
+ JButton continueButton = new JButton("Weiter");
+ continueButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if(rdbtnInternetJa.isSelected()==true)
{
@@ -305,14 +324,15 @@ public class EingabeImageTechnisch_GUI extends JFrame {
}
Image.image.setCpu(Integer.valueOf(spinnerCPU.getValue().toString()).intValue());
Image.image.setRam(Integer.valueOf(spinnerRam.getValue().toString()).intValue());
- FTPUploader_GUI ea=new FTPUploader_GUI();
+ FTPCreateUploader_GUI ea=new FTPCreateUploader_GUI();
ea.setVisible(true);
dispose();
}
});
- cancelButton.setActionCommand("Cancel");
- buttonPane.add(cancelButton);
+ continueButton.setActionCommand("Cancel");
+ buttonPane.add(continueButton);
+ getRootPane().setDefaultButton(continueButton);
}
}
diff --git a/Dozentenmodul/src/gui/DeleteImage_GUI.java b/Dozentenmodul/src/gui/image/DeleteImage_GUI.java
index de6d4123..d19e5c9f 100644
--- a/Dozentenmodul/src/gui/DeleteImage_GUI.java
+++ b/Dozentenmodul/src/gui/image/DeleteImage_GUI.java
@@ -1,6 +1,9 @@
-package gui;
+package gui.image;
+import gui.intro.MainMenue_GUI;
+import gui.lecture.ExtendedSearchForImages_GUI;
+
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
@@ -188,7 +191,7 @@ public class DeleteImage_GUI extends JFrame {
@Override
public void mouseClicked(MouseEvent arg0) {
//Öffnet das Fenster Extended GUI
- ExtendedSearch_GUI es=new ExtendedSearch_GUI();
+ ExtendedSearchForImages_GUI es=new ExtendedSearchForImages_GUI();
es.setVisible(true);
}
});
@@ -354,7 +357,7 @@ public class DeleteImage_GUI extends JFrame {
btnDelete.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
//Öffnet den Downloader
- FTPDownloader_GUI down=new FTPDownloader_GUI("Test");
+ FTPDownloader_GUI down=new FTPDownloader_GUI();
down.setVisible(true);
DeleteImage_GUI.this.setVisible(false);
}
diff --git a/Dozentenmodul/src/GUI/EditImageAllgemein_GUI.java b/Dozentenmodul/src/gui/image/EditImageAllgemein_GUI.java
index 58cab4ec..b80e4953 100644
--- a/Dozentenmodul/src/GUI/EditImageAllgemein_GUI.java
+++ b/Dozentenmodul/src/gui/image/EditImageAllgemein_GUI.java
@@ -1,4 +1,6 @@
-package gui;
+package gui.image;
+
+import gui.intro.MainMenue_GUI;
import java.awt.Color;
import java.awt.Dimension;
@@ -13,13 +15,13 @@ import java.awt.event.MouseEvent;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.util.Map;
-
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
+import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JSeparator;
import javax.swing.JTextArea;
@@ -29,9 +31,7 @@ import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.border.EmptyBorder;
import javax.swing.border.TitledBorder;
-
import org.apache.thrift.TException;
-
import models.Image;
import models.person;
import server.Server.Client;
@@ -49,6 +49,12 @@ public class EditImageAllgemein_GUI extends JFrame {
private JTextField imagename;
ThriftConnection con=new ThriftConnection();
Client client=con.getThriftConnection();
+ private JPanel panel_2;
+ private JLabel lblNewLabel;
+ private JTextPane txtpnBitteWhlenSie;
+ private JPanel buttonPane;
+ private JButton backButton;
+ private JButton okButton;
/**
* Create the dialog.
@@ -58,6 +64,7 @@ public class EditImageAllgemein_GUI extends JFrame {
@Override
public void windowClosing(WindowEvent arg0) {
//Beendet die Anwendung bei einem Klick auf das X
+ con.closeThriftConnection();
System.exit(0);
}
});
@@ -82,24 +89,24 @@ public class EditImageAllgemein_GUI extends JFrame {
initData();
getContentPane().setLayout(null);
{
- JPanel panel = new JPanel();
- panel.setBackground(SystemColor.menu);
- panel.setBounds(10, 11, 577, 57);
- getContentPane().add(panel);
- panel.setLayout(null);
+ panel_2 = new JPanel();
+ panel_2.setBackground(SystemColor.menu);
+ panel_2.setBounds(10, 11, 577, 57);
+ getContentPane().add(panel_2);
+ panel_2.setLayout(null);
{
- JLabel lblNewLabel = new JLabel("Bearbeiten Ihrer Daten");
+ lblNewLabel = new JLabel("Bearbeiten Ihrer Daten");
lblNewLabel.setBounds(10, 11, 509, 22);
- panel.add(lblNewLabel);
+ panel_2.add(lblNewLabel);
lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 18));
}
- JTextPane txtpnBitteWhlenSie = new JTextPane();
+ txtpnBitteWhlenSie = new JTextPane();
txtpnBitteWhlenSie.setEditable(false);
txtpnBitteWhlenSie.setBackground(SystemColor.menu);
txtpnBitteWhlenSie.setText("Geben Sie hier bitte einen sprechenden Imagename sowie Ihre Kontaktdaten an");
txtpnBitteWhlenSie.setBounds(10, 36, 509, 32);
- panel.add(txtpnBitteWhlenSie);
+ panel_2.add(txtpnBitteWhlenSie);
}
contentPanel.setBounds(10, 85, 577, 493);
contentPanel.setBackground(SystemColor.menu);
@@ -123,7 +130,7 @@ public class EditImageAllgemein_GUI extends JFrame {
Vorname.setEditable(false);
Vorname.setEnabled(false);
Vorname.setBackground(Color.WHITE);
- Vorname.setText(person.verantowrtlicher.getVorname());
+ Vorname.setText(person.verantwortlicher.getVorname());
Vorname.setColumns(10);
Vorname.setBounds(145, 245, 350, 20);
panel_1.add(Vorname);
@@ -137,7 +144,7 @@ public class EditImageAllgemein_GUI extends JFrame {
Nachname.setEnabled(false);
Nachname.setEditable(false);
Nachname.setBackground(Color.WHITE);
- Nachname.setText(person.verantowrtlicher.getName());
+ Nachname.setText(person.verantwortlicher.getName());
Nachname.setColumns(10);
Nachname.setBounds(145, 276, 350, 20);
panel_1.add(Nachname);
@@ -151,7 +158,7 @@ public class EditImageAllgemein_GUI extends JFrame {
Hochschule.setEnabled(false);
Hochschule.setEditable(false);
Hochschule.setBackground(Color.WHITE);
- Hochschule.setText(person.verantowrtlicher.getHochschule());
+ Hochschule.setText(person.verantwortlicher.getHochschule());
Hochschule.setColumns(10);
Hochschule.setBounds(145, 307, 350, 20);
panel_1.add(Hochschule);
@@ -165,7 +172,7 @@ public class EditImageAllgemein_GUI extends JFrame {
EMail.setEnabled(false);
EMail.setEditable(false);
EMail.setBackground(Color.WHITE);
- EMail.setText(person.verantowrtlicher.getEMail());
+ EMail.setText(person.verantwortlicher.getEMail());
EMail.setColumns(10);
EMail.setBounds(145, 338, 350, 20);
panel_1.add(EMail);
@@ -176,6 +183,7 @@ public class EditImageAllgemein_GUI extends JFrame {
panel_1.add(lblImagename);
imagename = new JTextField();
+ imagename.setToolTipText("Bitte geben Sie hier den Namen des Image ein, z.B. \"Programmieren\".");
imagename.setBackground(Color.WHITE);
imagename.setText(Image.image.getImagename());
imagename.setColumns(10);
@@ -206,6 +214,7 @@ public class EditImageAllgemein_GUI extends JFrame {
@Override
public void mouseClicked(MouseEvent arg0) {
//Durch den Klick auf Button Hauptmenpü wird dieses Fenster unsichtbar und das Hauptmenü sichtbar
+ con.closeThriftConnection();
EditImageAllgemein_GUI.this.setVisible(false);
MainMenue_GUI main=new MainMenue_GUI();
main.setVisible(true);
@@ -232,45 +241,51 @@ public class EditImageAllgemein_GUI extends JFrame {
lblNewLabel_1.setBounds(146, 11, 71, 14);
contentPanel.add(lblNewLabel_1);
{
- JPanel buttonPane = new JPanel();
+ buttonPane = new JPanel();
buttonPane.setBounds(0, 640, 597, 33);
buttonPane.setBackground(SystemColor.menu);
buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
getContentPane().add(buttonPane);
{
- JButton okButton = new JButton("Zur\u00FCck");
- okButton.addActionListener(new ActionListener() {
+ backButton = new JButton("Zur\u00FCck");
+ backButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
//Setzen der Eingabe im Model, dadurch bleiben die Daten bei einem erneuten Aufruf verfügbar
//Image.image.setImagename(imagename.getText());
-
- MainMenue_GUI sr=new MainMenue_GUI();
- sr.setVisible(true);
+ con.closeThriftConnection();
+ SearchEditImage_GUI se=new SearchEditImage_GUI();
+ se.setVisible(true);
dispose();
}
});
- okButton.setActionCommand("OK");
- buttonPane.add(okButton);
- getRootPane().setDefaultButton(okButton);
+ backButton.setActionCommand("CANCEL");
+ buttonPane.add(backButton);
+
}
{
- JButton cancelButton = new JButton("Weiter");
- cancelButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- //Prüfung ob alle notwendigen Felder ausgefüllt sind
- //Setzen der Eingabe im Model, dadurch bleiben die Daten bei einem erneuten Aufruf verfügbar
- System.out.println(imagename.getText());
- Image.image.setNewName(imagename.getText());
- con.closeThriftConnection();
- EditImageTechnisch_GUI ea=new EditImageTechnisch_GUI();
- ea.setVisible(true);
- dispose();
-
+ okButton = new JButton("Weiter");
+ okButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent arg0) {
+ //check is textfield has content
+ if(imagename.getText().length() <= 0){
+ JOptionPane.showMessageDialog(null,
+ "Bitte geben Sie einen Labornamen ein.",
+ "Daten nicht vollständig",
+ JOptionPane.INFORMATION_MESSAGE);
+ } else {
+ Image.image.setNewName(imagename.getText());
+ con.closeThriftConnection();
+ EditImageTechnisch_GUI ea=new EditImageTechnisch_GUI();
+ ea.setVisible(true);
+ dispose();
+ }//end else
}
});
- cancelButton.setActionCommand("Cancel");
- buttonPane.add(cancelButton);
+
+ okButton.setActionCommand("OK");
+ buttonPane.add(okButton);
+ getRootPane().setDefaultButton(okButton);
}
}
@@ -293,13 +308,14 @@ public class EditImageAllgemein_GUI extends JFrame {
JMenuItem mntmOtrs = new JMenuItem("OTRS");
mnNewMenu_1.add(mntmOtrs);
+ //setFocusTraversalPolicy(new FocusTraversalOnArray(new Component[]{getContentPane(), panel_2, lblNewLabel, txtpnBitteWhlenSie, contentPanel, panel_1, label, Vorname, label_7, Nachname, label_8, Hochschule, label_9, EMail, lblImagename, imagename, txtrGebenSieBitte, panel, lblPflichtfelder, lblHauptmen, label_1, lblVlimage, label_2, lblNewLabel_1, buttonPane, backButton, okButton, separator, separator_1, menuBar, mnNewMenu_1, mntmFaq, mntmOtrs}));
}
public void initData(){
try {
- System.out.println("initdata1:"+Image.image.getImagename());
- Map<String,String> map=client.getImageData(Image.image.getImagename());
+
+ Map<String,String> map=client.getImageData(Image.image.getImageId(),Image.image.getVersion());
if(map.get("internet").equals("0")){
Image.image.setInternet(false);
}
@@ -313,6 +329,7 @@ public class EditImageAllgemein_GUI extends JFrame {
else{
Image.image.setLicensed(true);
}
+ Image.image.setImagename(map.get("name"));
Image.image.setRam(Integer.parseInt(map.get("ram")));
Image.image.setCpu(Integer.parseInt(map.get("cpu")));
} catch (TException e) {
diff --git a/Dozentenmodul/src/GUI/EditImageTechnisch_GUI.java b/Dozentenmodul/src/gui/image/EditImageTechnisch_GUI.java
index d8ab833f..7d9de383 100644
--- a/Dozentenmodul/src/GUI/EditImageTechnisch_GUI.java
+++ b/Dozentenmodul/src/gui/image/EditImageTechnisch_GUI.java
@@ -1,5 +1,6 @@
-package gui;
+package gui.image;
+import gui.intro.MainMenue_GUI;
import java.awt.Color;
import java.awt.Dimension;
@@ -13,9 +14,6 @@ import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
-import java.util.HashMap;
-import java.util.Map;
-
import javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JFrame;
@@ -34,12 +32,6 @@ import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.border.EmptyBorder;
import javax.swing.border.TitledBorder;
-
-import org.apache.thrift.TException;
-
-import server.Server.Client;
-import thrift.ThriftConnection;
-
import models.Image;
@SuppressWarnings("serial")
@@ -56,7 +48,6 @@ public class EditImageTechnisch_GUI extends JFrame {
private final ButtonGroup buttonGrouplicense = new ButtonGroup();
private final ButtonGroup buttonGroupInternet = new ButtonGroup();
-
/**
* Create the dialog.
*/
@@ -64,31 +55,31 @@ public class EditImageTechnisch_GUI extends JFrame {
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(WindowEvent arg0) {
- //Beendet die Anwendung bei Klick auf das X
+ // Beendet die Anwendung bei Klick auf das X
+
System.exit(0);
}
-
+
});
- //Verhindert das Vergrößern des Fensters
+ // Verhindert das Vergrößern des Fensters
setResizable(false);
-
+
try {
- //setzt das Look & Feel
+ // setzt das Look & Feel
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (ClassNotFoundException | InstantiationException
| IllegalAccessException | UnsupportedLookAndFeelException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
- //Setzt den Titel des Fensters
+ // Setzt den Titel des Fensters
setTitle("bwLehrpool Suite *Prototyp*");
- //Zentriert das Fenster
+ // Zentriert das Fenster
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
- int top=(screenSize.height - 722) / 2;
- int left=(screenSize.width - 603) / 2;
+ int top = (screenSize.height - 722) / 2;
+ int left = (screenSize.width - 603) / 2;
setBounds(left, top, 603, 722);
-
-
+
getContentPane().setLayout(null);
{
JPanel panel = new JPanel();
@@ -102,11 +93,12 @@ public class EditImageTechnisch_GUI extends JFrame {
panel.add(lblNewLabel);
lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 18));
}
-
+
JTextPane txtpnBitteWhlenSie = new JTextPane();
txtpnBitteWhlenSie.setEditable(false);
txtpnBitteWhlenSie.setBackground(SystemColor.menu);
- txtpnBitteWhlenSie.setText("Geben Sie hier bitte einen sprechenden Imagename sowie Ihre Kontaktdaten an");
+ txtpnBitteWhlenSie
+ .setText("Geben Sie hier bitte einen sprechenden Imagename sowie Ihre Kontaktdaten an");
txtpnBitteWhlenSie.setBounds(10, 36, 509, 32);
panel.add(txtpnBitteWhlenSie);
}
@@ -118,148 +110,154 @@ public class EditImageTechnisch_GUI extends JFrame {
JPanel panel_1 = new JPanel();
panel_1.setBackground(SystemColor.menu);
- panel_1.setBorder(new TitledBorder(null, "Informationen zum Image", TitledBorder.LEADING, TitledBorder.TOP, null, null));
+ panel_1.setBorder(new TitledBorder(null, "Informationen zum Image",
+ TitledBorder.LEADING, TitledBorder.TOP, null, null));
panel_1.setBounds(10, 66, 557, 95);
contentPanel.add(panel_1);
panel_1.setLayout(null);
-
- JLabel lblNewLabel_2 = new JLabel("Image enth\u00E4lt lizenzpflichtige Software:");
+
+ JLabel lblNewLabel_2 = new JLabel(
+ "Image enth\u00E4lt lizenzpflichtige Software:");
lblNewLabel_2.setBounds(10, 30, 250, 20);
panel_1.add(lblNewLabel_2);
-
+
rdbtnlicenseJa = new JRadioButton("Ja");
+ rdbtnlicenseJa.setSelected(true);
buttonGrouplicense.add(rdbtnlicenseJa);
rdbtnlicenseJa.setBounds(266, 29, 109, 23);
panel_1.add(rdbtnlicenseJa);
-
+
rdbtnlicenseNein = new JRadioButton("Nein");
buttonGrouplicense.add(rdbtnlicenseNein);
rdbtnlicenseNein.setBounds(377, 29, 109, 23);
panel_1.add(rdbtnlicenseNein);
- if(Image.image.isLicensed()==true){
+ if (Image.image.isLicensed() == true) {
rdbtnlicenseJa.setSelected(true);
- }
- else
- {
+ } else {
rdbtnlicenseNein.setSelected(true);
}
-
-
- JLabel lblInternetIstInnerhalb = new JLabel("Internet ist innerhalb des Image gesperrt:");
+ JLabel lblInternetIstInnerhalb = new JLabel(
+ "Internet ist innerhalb des Image gesperrt:");
lblInternetIstInnerhalb.setBounds(10, 58, 250, 20);
panel_1.add(lblInternetIstInnerhalb);
-
+
rdbtnInternetJa = new JRadioButton("Ja");
buttonGroupInternet.add(rdbtnInternetJa);
rdbtnInternetJa.setBounds(266, 57, 109, 23);
panel_1.add(rdbtnInternetJa);
-
+
rdbtnInternetNein = new JRadioButton("Nein");
rdbtnInternetNein.setSelected(true);
buttonGroupInternet.add(rdbtnInternetNein);
rdbtnInternetNein.setBounds(377, 57, 109, 23);
panel_1.add(rdbtnInternetNein);
- if(Image.image.isInternet()==true){
+ if (Image.image.isInternet() == true) {
rdbtnInternetJa.setSelected(true);
- }
- else
- {
+ } else {
rdbtnInternetNein.setSelected(true);
}
JLabel lblHauptmen = new JLabel("Hauptmen\u00FC");
lblHauptmen.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent arg0) {
- //Macht dieses Fenster unsichtbar und das vorhergehende Fenster sichtbar
+ // Macht dieses Fenster unsichtbar und das vorhergehende Fenster
+ // sichtbar
EditImageTechnisch_GUI.this.setVisible(false);
- MainMenue_GUI main=new MainMenue_GUI();
+ MainMenue_GUI main = new MainMenue_GUI();
main.setVisible(true);
}
});
lblHauptmen.setForeground(Color.BLUE);
lblHauptmen.setBounds(10, 11, 61, 14);
contentPanel.add(lblHauptmen);
-
+
JLabel label_1 = new JLabel(">");
label_1.setBounds(69, 11, 13, 14);
contentPanel.add(label_1);
-
+
JLabel lblVlimage = new JLabel("VL-Image");
lblVlimage.setForeground(Color.BLUE);
lblVlimage.setBounds(81, 11, 45, 14);
contentPanel.add(lblVlimage);
-
+
JLabel label_2 = new JLabel(">");
label_2.setBounds(133, 11, 13, 14);
contentPanel.add(label_2);
-
+
JLabel lblNewLabel_1 = new JLabel("Neu");
lblNewLabel_1.setBounds(146, 11, 46, 14);
contentPanel.add(lblNewLabel_1);
-
+
JPanel panel_2 = new JPanel();
panel_2.setLayout(null);
- panel_2.setBorder(new TitledBorder(null, "Empfehlung bezüglich Ressourcen", TitledBorder.LEADING, TitledBorder.TOP, null, null));
+ panel_2.setBorder(new TitledBorder(null,
+ "Empfehlung bezüglich Ressourcen", TitledBorder.LEADING,
+ TitledBorder.TOP, null, null));
panel_2.setBackground(SystemColor.menu);
panel_2.setBounds(10, 172, 557, 338);
contentPanel.add(panel_2);
-
+
JTextArea txtrHinweisSolltenSie = new JTextArea();
txtrHinweisSolltenSie.setBackground(SystemColor.menu);
txtrHinweisSolltenSie.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtrHinweisSolltenSie.setText("Hinweis: Sollten Sie keine Software einsetzen, die viele Ressourcen ben\u00F6tigt,\r\nk\u00F6nnen Sie sich an den Beispielwerten orientieren.");
+ txtrHinweisSolltenSie
+ .setText("Hinweis: Sollten Sie keine Software einsetzen, die viele Ressourcen ben\u00F6tigt,\r\nk\u00F6nnen Sie sich an den Beispielwerten orientieren.");
txtrHinweisSolltenSie.setBounds(10, 25, 537, 55);
panel_2.add(txtrHinweisSolltenSie);
-
- JLabel lblNewLabel_3 = new JLabel("Wie viel Arbeitsspeicher empfehlen Sie f\u00FCr das Image:");
+
+ JLabel lblNewLabel_3 = new JLabel(
+ "Wie viel Arbeitsspeicher empfehlen Sie f\u00FCr das Image:");
lblNewLabel_3.setBounds(10, 91, 280, 20);
panel_2.add(lblNewLabel_3);
-
+
JLabel lblMindestens = new JLabel("mindestens");
lblMindestens.setBounds(315, 91, 60, 20);
panel_2.add(lblMindestens);
-
+
spinnerRam = new JSpinner();
spinnerRam.setModel(new SpinnerNumberModel(1, 1, 8, 1));
spinnerRam.setBounds(385, 88, 29, 20);
spinnerRam.setValue(Image.image.getRam());
panel_2.add(spinnerRam);
-
+
JLabel lblGbyte = new JLabel("GByte");
lblGbyte.setBounds(424, 91, 46, 20);
panel_2.add(lblGbyte);
-
+
JTextArea txtrBeispielWindows = new JTextArea();
- txtrBeispielWindows.setText("Beispiel:\r\nWindows 7 32/64 Bit: 2 GByte\r\nLinux/Unix 32/64 Bit: 1 GByte");
+ txtrBeispielWindows
+ .setText("Beispiel:\r\nWindows 7 32/64 Bit: 2 GByte\r\nLinux/Unix 32/64 Bit: 1 GByte");
txtrBeispielWindows.setFont(new Font("Tahoma", Font.PLAIN, 11));
txtrBeispielWindows.setBackground(SystemColor.menu);
- txtrBeispielWindows.setBounds(10, 122, 280, 55);
+ txtrBeispielWindows.setBounds(20, 111, 280, 55);
panel_2.add(txtrBeispielWindows);
-
+
JTextArea txtrBeispielWindows_1 = new JTextArea();
- txtrBeispielWindows_1.setText("Beispiel:\r\nWindows 7 32/64 Bit: 1 Kern\r\nLinux/Unix 32/64 Bit: 1 Kern");
+ txtrBeispielWindows_1
+ .setText("Beispiel:\r\nWindows 7 32/64 Bit: 1 Kern\r\nLinux/Unix 32/64 Bit: 1 Kern");
txtrBeispielWindows_1.setFont(new Font("Tahoma", Font.PLAIN, 11));
txtrBeispielWindows_1.setBackground(SystemColor.menu);
- txtrBeispielWindows_1.setBounds(10, 222, 280, 55);
+ txtrBeispielWindows_1.setBounds(20, 226, 280, 55);
panel_2.add(txtrBeispielWindows_1);
-
- JLabel lblWieVieleCpus = new JLabel("Wie viele CPUs empfehlen Sie f\u00FCr das Image:");
- lblWieVieleCpus.setBounds(10, 191, 280, 20);
+
+ JLabel lblWieVieleCpus = new JLabel(
+ "Wie viele CPUs empfehlen Sie f\u00FCr das Image:");
+ lblWieVieleCpus.setBounds(10, 201, 280, 20);
panel_2.add(lblWieVieleCpus);
-
+
JLabel label_3 = new JLabel("mindestens");
- label_3.setBounds(315, 191, 60, 20);
+ label_3.setBounds(315, 201, 60, 20);
panel_2.add(label_3);
-
+
spinnerCPU = new JSpinner();
spinnerCPU.setModel(new SpinnerNumberModel(1, 1, 4, 1));
- spinnerCPU.setBounds(385, 188, 29, 20);
+ spinnerCPU.setBounds(385, 198, 29, 20);
spinnerCPU.setValue(Image.image.getCpu());
panel_2.add(spinnerCPU);
-
+
JLabel lblKerne = new JLabel("Kerne");
- lblKerne.setBounds(424, 191, 46, 20);
+ lblKerne.setBounds(424, 201, 46, 20);
panel_2.add(lblKerne);
{
JPanel buttonPane = new JPanel();
@@ -271,29 +269,25 @@ public class EditImageTechnisch_GUI extends JFrame {
JButton okButton = new JButton("Zur\u00FCck");
okButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
- //Setzt die Imagewerte in das Model
- Image.image.setCpu(Integer.valueOf(spinnerCPU.getValue().toString()).intValue());
- Image.image.setRam(Integer.valueOf(spinnerRam.getValue().toString()).intValue());
- if(rdbtnInternetJa.isSelected()==true)
- {
+ // Setzt die Imagewerte in das Model
+ Image.image.setCpu(Integer.valueOf(
+ spinnerCPU.getValue().toString()).intValue());
+ Image.image.setRam(Integer.valueOf(
+ spinnerRam.getValue().toString()).intValue());
+ if (rdbtnInternetJa.isSelected() == true) {
Image.image.setInternet(true);
- }
- else
- {
+ } else {
Image.image.setInternet(false);
}
-
- if(rdbtnlicenseJa.isSelected()==true)
- {
+
+ if (rdbtnlicenseJa.isSelected() == true) {
Image.image.setLicensed(true);
- }
- else
- {
+ } else {
Image.image.setLicensed(false);
}
- //Öffnet das vorherige Fenster
- EingabeImageAllgemein_GUI sr=new EingabeImageAllgemein_GUI();
- sr.setVisible(true);
+ // Öffnet das vorherige Fenster
+ EditImageAllgemein_GUI ei = new EditImageAllgemein_GUI();
+ ei.setVisible(true);
dispose();
}
});
@@ -305,60 +299,53 @@ public class EditImageTechnisch_GUI extends JFrame {
JButton cancelButton = new JButton("Weiter");
cancelButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
- Image.image.setCpu(Integer.valueOf(spinnerCPU.getValue().toString()).intValue());
- Image.image.setRam(Integer.valueOf(spinnerRam.getValue().toString()).intValue());
- if(rdbtnInternetJa.isSelected()==true)
- {
+ Image.image.setCpu(Integer.valueOf(
+ spinnerCPU.getValue().toString()).intValue());
+ Image.image.setRam(Integer.valueOf(
+ spinnerRam.getValue().toString()).intValue());
+ if (rdbtnInternetJa.isSelected() == true) {
Image.image.setInternet(true);
- }
- else
- {
+ } else {
Image.image.setInternet(false);
}
-
- if(rdbtnlicenseJa.isSelected()==true)
- {
+
+ if (rdbtnlicenseJa.isSelected() == true) {
Image.image.setLicensed(true);
- }
- else
- {
+ } else {
Image.image.setLicensed(false);
}
- //Öffnet das nächste Fenster
- FTPEditUploader_GUI ea=new FTPEditUploader_GUI();
+ // Öffnet das nächste Fenster
+ FTPEditUploader_GUI ea = new FTPEditUploader_GUI();
ea.setVisible(true);
dispose();
-
+
}
});
cancelButton.setActionCommand("Cancel");
buttonPane.add(cancelButton);
}
}
-
+
JSeparator separator = new JSeparator();
separator.setBounds(0, 78, 597, 2);
getContentPane().add(separator);
-
+
JSeparator separator_1 = new JSeparator();
separator_1.setBounds(0, 627, 597, 2);
getContentPane().add(separator_1);
-
+
JMenuBar menuBar = new JMenuBar();
setJMenuBar(menuBar);
JMenu mnNewMenu_1 = new JMenu("Hilfe");
menuBar.add(mnNewMenu_1);
-
+
JMenuItem mntmFaq = new JMenuItem("FAQ");
mnNewMenu_1.add(mntmFaq);
-
+
JMenuItem mntmOtrs = new JMenuItem("OTRS");
mnNewMenu_1.add(mntmOtrs);
-
- }
-
-
}
+}
diff --git a/Dozentenmodul/src/gui/image/FTPCreateUploader_GUI.java b/Dozentenmodul/src/gui/image/FTPCreateUploader_GUI.java
new file mode 100644
index 00000000..1bf8cc3a
--- /dev/null
+++ b/Dozentenmodul/src/gui/image/FTPCreateUploader_GUI.java
@@ -0,0 +1,493 @@
+package gui.image;
+
+import java.awt.BorderLayout;
+import java.awt.Color;
+import java.awt.Dimension;
+import java.awt.EventQueue;
+import java.awt.FlowLayout;
+import java.awt.Font;
+import java.awt.SystemColor;
+import java.awt.Toolkit;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.awt.event.WindowAdapter;
+import java.awt.event.WindowEvent;
+import java.beans.PropertyChangeEvent;
+import java.beans.PropertyChangeListener;
+import java.io.File;
+import java.text.DateFormat;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+import javax.swing.JButton;
+import javax.swing.JFileChooser;
+import javax.swing.JFrame;
+import javax.swing.JLabel;
+import javax.swing.JMenu;
+import javax.swing.JMenuBar;
+import javax.swing.JPanel;
+import javax.swing.JProgressBar;
+import javax.swing.JSeparator;
+import javax.swing.JTextPane;
+import javax.swing.SwingConstants;
+import javax.swing.UIManager;
+import javax.swing.UnsupportedLookAndFeelException;
+import javax.swing.border.EmptyBorder;
+import models.Image;
+import models.person;
+import org.apache.thrift.TException;
+import server.Server.Client;
+import thrift.ThriftConnection;
+//import util.XMLCreator;
+import ftp.UploadTask;
+import gui.intro.MainMenue_GUI;
+
+@SuppressWarnings("serial")
+public class FTPCreateUploader_GUI extends JFrame implements
+ PropertyChangeListener {
+
+ @SuppressWarnings("unused")
+ private JPanel contentPane;
+ private final JPanel contentPanel = new JPanel();
+ JLabel lblPath;
+ JProgressBar progressBar;
+ //String host = "141.79.128.121";
+ String host = "141.79.128.102";
+ int port = 21;
+ server.User user;
+ String filename = "";
+ File uploadFile;
+ static String arg = "";
+ UploadTask task;
+ JLabel UpSpeed;
+ JLabel labelfertig;
+ JLabel labelfilesize;
+ JLabel labelZeit;
+ JLabel labelverbleibend;
+ long filesize;
+ double speed;
+ long bytesread;
+ boolean taskrun = false;
+ ThriftConnection thrift = new ThriftConnection();
+ Client client = thrift.getThriftConnection();
+ JButton finishButton = new JButton("Fertigstellen");
+ JButton btnUploadStarten = new JButton("Upload auf Server starten");
+ JButton btnZurck = new JButton("Zur\u00FCck");
+ int progress = 0; // progress of upload
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ EventQueue.invokeLater(new Runnable() {
+ public void run() {
+ try {
+ FTPCreateUploader_GUI frame = new FTPCreateUploader_GUI();
+ frame.setVisible(true);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ });
+ }
+
+ /**
+ * Create the frame.
+ */
+ public FTPCreateUploader_GUI() {
+ addWindowListener(new WindowAdapter() {
+ @Override
+ public void windowClosing(WindowEvent arg0) {
+ if (taskrun == true) {
+ try {
+ client.DeleteFtpUser(user.userName);
+ } catch (TException e1) {
+ // TODO Auto-generated catch block
+ e1.printStackTrace();
+ }
+ task.cancel(true);
+ }
+ System.exit(0);
+ }// end window closing
+ });
+ setResizable(false);
+
+ try {
+ UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
+ } catch (ClassNotFoundException | InstantiationException
+ | IllegalAccessException | UnsupportedLookAndFeelException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+
+ // filename=name;
+ setBackground(Color.WHITE);
+ setTitle("Dozentenmodul *Prototyp*");
+ Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
+ int top = (screenSize.height - 722) / 2;
+ int left = (screenSize.width - 603) / 2;
+ setBounds(left, top, 603, 722);
+ // setBounds(100, 100, 603, 250);
+ getContentPane().setLayout(new BorderLayout());
+ contentPanel.setBackground(SystemColor.menu);
+ contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
+ getContentPane().add(contentPanel, BorderLayout.CENTER);
+ contentPanel.setLayout(null);
+ {
+ JButton btnSpeicherortAuswhlen = new JButton("Image ausw\u00E4hlen");
+ btnSpeicherortAuswhlen.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent arg0) {
+ JFileChooser fc = new JFileChooser();
+ fc.setFileSelectionMode(JFileChooser.FILES_ONLY);
+
+ fc.showOpenDialog(getParent());
+ File file = fc.getSelectedFile();
+ // check if a file is selected and exists
+ if (file != null) {
+ // file selected
+ uploadFile = file;
+ filename = uploadFile.getName();
+ lblPath.setText(file.getAbsolutePath());
+ } else {
+ // no file selected
+ lblPath.setText("");
+ }// end if
+ }
+ });
+
+ btnSpeicherortAuswhlen.setBounds(102, 124, 173, 23);
+ btnSpeicherortAuswhlen.setVerticalAlignment(SwingConstants.TOP);
+ contentPanel.add(btnSpeicherortAuswhlen);
+ }
+
+ lblPath = new JLabel("");
+ lblPath.addPropertyChangeListener(new PropertyChangeListener() {
+ public void propertyChange(PropertyChangeEvent arg0) {
+ if (lblPath.getText().isEmpty()) {
+ // wenn leer, dann upload button nicht freigeben
+ btnUploadStarten.setEnabled(false);
+ btnUploadStarten.setText("Bitte warten");
+ } else {
+ // wenn leer, dann upload button nicht freigeben
+ btnUploadStarten.setEnabled(true);
+ btnUploadStarten.setText("Upload auf Server starten");
+ }
+ }
+ });
+ lblPath.setHorizontalAlignment(SwingConstants.LEFT);
+ lblPath.setBounds(102, 158, 485, 23);
+ contentPanel.add(lblPath);
+
+ btnUploadStarten.setEnabled(false);
+ btnUploadStarten.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent arg0) {
+ buttonUploadActionPerformed(arg0);
+
+ }
+ });
+
+ btnUploadStarten.setBounds(102, 200, 173, 23);
+ contentPanel.add(btnUploadStarten);
+
+ progressBar = new JProgressBar(0, 100);
+ progressBar.setStringPainted(true);
+
+ progressBar.setBounds(102, 234, 485, 30);
+ contentPanel.add(progressBar);
+
+ JLabel lblUploadgeschwindigkeit = new JLabel("Uploadgeschwindigkeit:");
+ lblUploadgeschwindigkeit.setBounds(102, 275, 141, 14);
+ contentPanel.add(lblUploadgeschwindigkeit);
+
+ JLabel label_1 = new JLabel("Fertig:");
+ label_1.setBounds(102, 325, 46, 14);
+ contentPanel.add(label_1);
+
+ labelfertig = new JLabel("0");
+ labelfertig.setHorizontalAlignment(SwingConstants.LEFT);
+ labelfertig.setBounds(183, 325, 108, 14);
+ contentPanel.add(labelfertig);
+
+ UpSpeed = new JLabel("0");
+ UpSpeed.setHorizontalAlignment(SwingConstants.LEFT);
+ UpSpeed.setBounds(374, 275, 117, 14);
+ contentPanel.add(UpSpeed);
+
+ JLabel label_4 = new JLabel("von:");
+ label_4.setBounds(318, 325, 46, 14);
+ contentPanel.add(label_4);
+
+ labelfilesize = new JLabel("0");
+ labelfilesize.setHorizontalAlignment(SwingConstants.LEFT);
+ labelfilesize.setBounds(374, 325, 117, 14);
+ contentPanel.add(labelfilesize);
+
+ JLabel label_6 = new JLabel("Verbleibend:");
+ label_6.setBounds(102, 350, 71, 14);
+ contentPanel.add(label_6);
+
+ JLabel label_7 = new JLabel("Gesch\u00E4tzte Verbleibende Zeit:");
+ label_7.setBounds(102, 300, 150, 14);
+ contentPanel.add(label_7);
+
+ labelZeit = new JLabel("0");
+ labelZeit.setHorizontalAlignment(SwingConstants.LEFT);
+ labelZeit.setBounds(374, 300, 117, 14);
+ contentPanel.add(labelZeit);
+
+ labelverbleibend = new JLabel("0");
+ labelverbleibend.setHorizontalAlignment(SwingConstants.LEFT);
+ labelverbleibend.setBounds(183, 350, 108, 14);
+ contentPanel.add(labelverbleibend);
+
+ JPanel panel = new JPanel();
+ panel.setLayout(null);
+ panel.setBackground(SystemColor.menu);
+ panel.setBounds(10, 11, 577, 57);
+ contentPanel.add(panel);
+
+ JLabel lblUploadIhresImage = new JLabel("Upload Ihres Image");
+ lblUploadIhresImage.setFont(new Font("Tahoma", Font.BOLD, 18));
+ lblUploadIhresImage.setBounds(10, 11, 509, 22);
+ panel.add(lblUploadIhresImage);
+
+ JTextPane txtpnFhreSieBitte = new JTextPane();
+ txtpnFhreSieBitte
+ .setText("F\u00FChre Sie bitte die folgenden 3 Schritte aus um Ihr Image auf unseren Server zu laden.");
+ txtpnFhreSieBitte.setEditable(false);
+ txtpnFhreSieBitte.setBackground(SystemColor.menu);
+ txtpnFhreSieBitte.setBounds(10, 36, 509, 32);
+ panel.add(txtpnFhreSieBitte);
+
+ JSeparator separator = new JSeparator();
+ separator.setBounds(0, 79, 597, 2);
+ contentPanel.add(separator);
+
+ JLabel lblNewLabel_1 = new JLabel("Hauptmen\u00FC");
+ lblNewLabel_1.setForeground(Color.BLUE);
+ lblNewLabel_1.setBounds(20, 88, 61, 20);
+ contentPanel.add(lblNewLabel_1);
+
+ JLabel label_3 = new JLabel(">");
+ label_3.setBounds(80, 91, 14, 14);
+ contentPanel.add(label_3);
+
+ JLabel lblVlimage = new JLabel("VL-Image");
+ lblVlimage.setForeground(Color.BLUE);
+ lblVlimage.setBounds(91, 88, 46, 20);
+ contentPanel.add(lblVlimage);
+
+ JLabel label_5 = new JLabel(">");
+ label_5.setBounds(139, 91, 14, 14);
+ contentPanel.add(label_5);
+
+ JLabel lblNeubearbeiten = new JLabel("Neu");
+ lblNeubearbeiten.setBounds(149, 91, 108, 14);
+ contentPanel.add(lblNeubearbeiten);
+
+ JSeparator separator_1 = new JSeparator();
+ separator_1.setBounds(0, 627, 597, 2);
+ contentPanel.add(separator_1);
+
+ JButton btnCopyFileTo = new JButton("Copy File to Prod");
+ btnCopyFileTo.setEnabled(false);
+ btnCopyFileTo.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ try {
+ System.out.println("Copying file to " + user.path + "/"
+ + uploadFile.getName());
+ client.startFileCopy(user.path + "/" + uploadFile.getName());
+ } catch (TException e1) {
+ // TODO Auto-generated catch block
+ e1.printStackTrace();
+ }
+ }
+ });
+ btnCopyFileTo.setBounds(102, 375, 173, 23);
+ contentPanel.add(btnCopyFileTo);
+
+ JLabel lblSchritt_1 = new JLabel("Schritt 1:");
+ lblSchritt_1.setBounds(24, 128, 57, 14);
+ contentPanel.add(lblSchritt_1);
+
+ JLabel lblSchritt_2 = new JLabel("Schritt 2:");
+ lblSchritt_2.setBounds(24, 204, 57, 14);
+ contentPanel.add(lblSchritt_2);
+
+ JLabel lblSchritt_3 = new JLabel("Schritt 3:");
+ lblSchritt_3.setBounds(20, 423, 57, 14);
+ contentPanel.add(lblSchritt_3);
+
+ JLabel lblKlickenSieAuf = new JLabel(
+ "Klicken Sie auf \"Fertigstellen\".");
+ lblKlickenSieAuf.setBounds(98, 423, 241, 14);
+ contentPanel.add(lblKlickenSieAuf);
+ {
+ JPanel buttonPane = new JPanel();
+ buttonPane.setBackground(UIManager.getColor("Button.background"));
+ buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
+ getContentPane().add(buttonPane, BorderLayout.SOUTH);
+ {
+ finishButton.setEnabled(false);
+ finishButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ writeData();
+ dispose();
+ MainMenue_GUI m = new MainMenue_GUI();
+ m.setVisible(true);
+ if (taskrun == true) {
+ try {
+ client.DeleteFtpUser(user.userName);
+ thrift.closeThriftConnection();
+ } catch (TException e1) {
+ // TODO Auto-generated catch block
+ e1.printStackTrace();
+ }
+ task.cancel(true);
+ }
+
+ }
+ });
+
+ btnZurck.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ dispose();
+ thrift.closeThriftConnection();
+ CreateImageTechnisch_GUI m = new CreateImageTechnisch_GUI();
+ m.setVisible(true);
+ }
+ });
+ btnZurck.setActionCommand("Cancel");
+ buttonPane.add(btnZurck);
+ finishButton.setActionCommand("Cancel");
+ buttonPane.add(finishButton);
+ }
+ }
+
+ JMenuBar menuBar = new JMenuBar();
+ setJMenuBar(menuBar);
+
+ JMenu mnHillfe = new JMenu("Hillfe");
+ menuBar.add(mnHillfe);
+ setVisible(true);
+
+ }
+
+ private void buttonUploadActionPerformed(ActionEvent event) {
+
+ progressBar.setValue(0);
+ btnUploadStarten.setEnabled(false); // verhindert einen weiteren klick
+ btnUploadStarten.setText("Bitte warten");
+
+ try {
+ user = client.getFtpUser();
+ System.out.println("FTP name" + user.userName);
+ System.out.println("FTP path" + user.path);
+ System.out.println("FTP pass" + user.password);
+ } catch (TException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ DateFormat formatter = new SimpleDateFormat("yyyMMddhhmmss");
+
+ System.out.println(formatter.format(new Date()) + "_"
+ + person.verantwortlicher.getHochschule() + "_"
+ + person.verantwortlicher.getUsername() + "_"
+ + Image.image.getImagename() + ".vmdk");
+ Image.image.setNewName(formatter.format(new Date()) + "_"
+ + person.verantwortlicher.getHochschule() + "_"
+ + person.verantwortlicher.getUsername() + "_"
+ + Image.image.getImagename() + ".vmdk");
+ task = new UploadTask(host, port, user.userName, user.password,
+ user.path, uploadFile);
+
+ task.addPropertyChangeListener(this);
+ task.execute();
+ taskrun = true;
+
+ }
+
+ public void propertyChange(PropertyChangeEvent arg0) {
+ progress = 0;
+ if ("progress" == arg0.getPropertyName()) {
+ progress = (Integer) arg0.getNewValue();
+ progressBar.setValue(progress);
+
+ // Button zum Fertigstellen freischalten, wenn 100% erreicht sind
+ if (progress == 0 || progress == 100) {
+ // not uploading currently
+ btnZurck.setEnabled(true);
+ } else {
+ // currently uploading, don't let user interact
+ btnZurck.setEnabled(false);
+ }
+
+ // Fertigstellen erlauben wenn upload abgeschlossen
+ if (progress == 100) {
+ finishButton.setEnabled(true);
+ } else {
+ finishButton.setEnabled(false);
+ }
+
+ }
+
+
+
+ if ("speed" == arg0.getPropertyName()) {
+ speed = (double) arg0.getNewValue();
+ // if(speed<=1){
+
+ UpSpeed.setText(String.valueOf(speed).substring(0,
+ String.valueOf(speed).lastIndexOf(".") + 3)
+ + " MB/s");
+
+ }
+ if ("bytesread" == arg0.getPropertyName()) {
+ bytesread = (long) arg0.getNewValue();
+ labelfertig.setText((bytesread / 1024 / 1024) + " MB");
+ labelverbleibend
+ .setText(((filesize / 1024 / 1024) - (bytesread / 1024 / 1024))
+ + " MB");
+
+ labelZeit
+ .setText(String
+ .valueOf(
+ ((((filesize / 1024 / 1024) - (bytesread / 1024 / 1024)) / speed) / 60) + 1)
+ .substring(
+ 0,
+ String.valueOf(
+ (((filesize / 1024 / 1024) - (bytesread / 1024 / 1024)) / speed) / 60)
+ .lastIndexOf("."))
+ + " Minuten");
+
+ }
+ if ("filesize" == arg0.getPropertyName()) {
+ filesize = (long) arg0.getNewValue();
+ labelfilesize.setText((filesize / 1024 / 1024) + " MB");
+
+ }
+
+ }
+
+ public boolean writeData() {
+
+ try {
+
+ client.writeVLdata(Image.image.getImagename(),
+ person.verantwortlicher.getVorname(),
+ person.verantwortlicher.getName(),
+ person.verantwortlicher.getHochschule(),
+ person.verantwortlicher.getEMail(),
+ person.verantwortlicher.getTel(),
+ person.verantwortlicher.getFakultät(),
+ Image.image.isLicensed(), Image.image.isInternet(),
+ Image.image.getRam(), Image.image.getCpu(),
+ "/srv/openslx/nfs/temp/" + Image.image.getNewName());
+ } catch (TException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ return false;
+ }
+ return true;
+
+ }
+} \ No newline at end of file
diff --git a/Dozentenmodul/src/gui/image/FTPDownloader_GUI.java b/Dozentenmodul/src/gui/image/FTPDownloader_GUI.java
new file mode 100644
index 00000000..d0f789f4
--- /dev/null
+++ b/Dozentenmodul/src/gui/image/FTPDownloader_GUI.java
@@ -0,0 +1,400 @@
+package gui.image;
+
+import java.awt.BorderLayout;
+import java.awt.Color;
+import java.awt.Dimension;
+import java.awt.FlowLayout;
+import java.awt.Toolkit;
+import java.io.File;
+import javax.swing.JButton;
+import javax.swing.JFileChooser;
+import javax.swing.JFrame;
+import javax.swing.JLabel;
+import javax.swing.JPanel;
+import javax.swing.JProgressBar;
+import javax.swing.SwingConstants;
+import javax.swing.UIManager;
+import javax.swing.UnsupportedLookAndFeelException;
+import javax.swing.border.EmptyBorder;
+import ftp.DownloadTask;
+import gui.intro.MainMenue_GUI;
+
+import java.awt.event.ActionListener;
+import java.awt.event.ActionEvent;
+import java.beans.PropertyChangeEvent;
+import java.beans.PropertyChangeListener;
+import java.awt.event.WindowAdapter;
+import java.awt.event.WindowEvent;
+import java.awt.SystemColor;
+import java.awt.Font;
+import javax.swing.JTextPane;
+import javax.swing.JSeparator;
+import models.Image;
+import org.apache.thrift.TException;
+import server.Server.Client;
+import server.User;
+import thrift.ThriftConnection;
+
+@SuppressWarnings("serial")
+public class FTPDownloader_GUI extends JFrame implements PropertyChangeListener {
+
+ @SuppressWarnings("unused")
+ private JPanel contentPane;
+ private final JPanel contentPanel = new JPanel();
+ JLabel lblPath;
+ JLabel downspeed;
+ User user;
+ JProgressBar progressBar;
+ //String host = "141.79.128.121";
+ String host = "141.79.128.102";
+ int port = 21;
+ String downloadFile = "";
+ static String arg = "";
+ DownloadTask task;
+ JLabel lblBytesread;
+ JLabel lblNewLabel_3;
+ JLabel labelVerbleibend;
+ long filesize;
+ double speed;
+ int progress = 0; // progress of download
+ long bytesread;
+ JLabel labelZeit;
+ boolean taskrun = false;
+ ThriftConnection thrift = new ThriftConnection();
+ Client client = thrift.getThriftConnection();
+ JButton btnZurck = new JButton("Zur\u00FCck");
+ JButton btnDownloadStarten = new JButton("Download starten");
+ JButton btnMainMenu = new JButton("Hauptmen\u00FC");
+
+
+ /**
+ * Create the frame.
+ */
+ public FTPDownloader_GUI() {
+ addWindowListener(new WindowAdapter() {
+ @Override
+ public void windowClosing(WindowEvent e) {
+ if (taskrun == true) {
+ try {
+ client.DeleteFtpUser(user.userName);
+ thrift.closeThriftConnection();
+ } catch (TException e1) {
+ // TODO Auto-generated catch block
+ e1.printStackTrace();
+ }
+ task.cancel(true);
+ }
+ //dispose();
+ System.exit(0);
+ }//end window closing
+ });
+ setResizable(false);
+ // setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
+
+ try {
+ UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
+ } catch (ClassNotFoundException | InstantiationException
+ | IllegalAccessException | UnsupportedLookAndFeelException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+
+ setBackground(Color.WHITE);
+ setTitle("Dozentenmodul *Prototyp*");
+ Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
+ int top = (screenSize.height - 722) / 2;
+ int left = (screenSize.width - 603) / 2;
+ setBounds(left, top, 603, 722);
+ getContentPane().setLayout(new BorderLayout());
+ contentPanel.setBackground(SystemColor.menu);
+ contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
+ getContentPane().add(contentPanel, BorderLayout.CENTER);
+ contentPanel.setLayout(null);
+ {
+ JButton btnSpeicherortAuswhlen = new JButton(
+ "Speicherort ausw\u00E4hlen");
+ btnSpeicherortAuswhlen.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent arg0) {
+ JFileChooser fc = new JFileChooser();
+ fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
+
+ fc.showOpenDialog(getParent());
+ File dir = fc.getSelectedFile();
+ // check if directory is selected
+ if (dir != null) {
+ // is selected
+ lblPath.setText(dir.getAbsolutePath());
+ } else {
+ // no directory selected
+ lblPath.setText("");
+ }// end if
+ }
+ });
+
+ btnSpeicherortAuswhlen.setBounds(102, 124, 173, 23);
+ btnSpeicherortAuswhlen.setVerticalAlignment(SwingConstants.TOP);
+ contentPanel.add(btnSpeicherortAuswhlen);
+ }
+
+ lblPath = new JLabel("");
+ lblPath.addPropertyChangeListener(new PropertyChangeListener() {
+ public void propertyChange(PropertyChangeEvent arg0) {
+ if (lblPath.getText().isEmpty()) {
+ // wenn leer, dann upload button nicht freigeben
+ btnDownloadStarten.setEnabled(false);
+ btnDownloadStarten.setText("Bitte warten");
+ } else {
+ // wenn leer, dann upload button nicht freigeben
+ btnDownloadStarten.setEnabled(true);
+ btnDownloadStarten.setText("Download starten");
+ }
+ }
+ });
+ lblPath.setBounds(102, 158, 485, 23);
+ contentPanel.add(lblPath);
+
+ btnDownloadStarten.setEnabled(false);
+ btnDownloadStarten.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent arg0) {
+ buttonDownloadActionPerformed(arg0);
+ }
+ });
+
+ btnDownloadStarten.setBounds(102, 200, 173, 23);
+ contentPanel.add(btnDownloadStarten);
+
+ progressBar = new JProgressBar(0, 100);
+ progressBar.setStringPainted(true);
+
+ progressBar.setBounds(102, 234, 485, 30);
+ contentPanel.add(progressBar);
+
+ JLabel lblDownloadgeschwindigkeit = new JLabel(
+ "Downloadgeschwindigkeit:");
+ lblDownloadgeschwindigkeit.setBounds(102, 275, 141, 14);
+ contentPanel.add(lblDownloadgeschwindigkeit);
+
+ downspeed = new JLabel("0");
+ downspeed.setBounds(374, 275, 117, 14);
+ contentPanel.add(downspeed);
+
+ JLabel lblFertig = new JLabel("Fertig:");
+ lblFertig.setBounds(102, 325, 46, 14);
+ contentPanel.add(lblFertig);
+
+ lblBytesread = new JLabel("0");
+ lblBytesread.setBounds(183, 325, 108, 14);
+ contentPanel.add(lblBytesread);
+
+ JLabel lblVon = new JLabel("von:");
+ lblVon.setBounds(318, 325, 46, 14);
+ contentPanel.add(lblVon);
+
+ lblNewLabel_3 = new JLabel("0");
+ lblNewLabel_3.setBounds(374, 325, 117, 14);
+ contentPanel.add(lblNewLabel_3);
+
+ JLabel lblMbVerbleibend = new JLabel("Verbleibend:");
+ lblMbVerbleibend.setBounds(102, 350, 71, 14);
+ contentPanel.add(lblMbVerbleibend);
+
+ labelVerbleibend = new JLabel("0");
+ labelVerbleibend.setBounds(183, 350, 108, 14);
+ contentPanel.add(labelVerbleibend);
+
+ JLabel lblGeschtzteVerbleibendeZeit = new JLabel(
+ "Gesch\u00E4tzte Verbleibende Zeit:");
+ lblGeschtzteVerbleibendeZeit.setBounds(102, 300, 150, 14);
+ contentPanel.add(lblGeschtzteVerbleibendeZeit);
+
+ labelZeit = new JLabel("0");
+ labelZeit.setBounds(374, 300, 117, 14);
+ contentPanel.add(labelZeit);
+
+ JPanel panel = new JPanel();
+ panel.setLayout(null);
+ panel.setBackground(SystemColor.menu);
+ panel.setBounds(10, 11, 577, 57);
+ contentPanel.add(panel);
+
+ JLabel label = new JLabel("Eingabe Ihrer Daten");
+ label.setFont(new Font("Tahoma", Font.BOLD, 18));
+ label.setBounds(10, 11, 509, 22);
+ panel.add(label);
+
+ JTextPane textPane = new JTextPane();
+ textPane.setText("Geben Sie hier bitte einen sprechenden Imagename sowie Ihre Kontaktdaten an");
+ textPane.setEditable(false);
+ textPane.setBackground(SystemColor.menu);
+ textPane.setBounds(10, 36, 509, 32);
+ panel.add(textPane);
+
+ JSeparator separator = new JSeparator();
+ separator.setBounds(0, 79, 597, 2);
+ contentPanel.add(separator);
+
+ JLabel label_1 = new JLabel("Hauptmen\u00FC");
+ label_1.setForeground(Color.BLUE);
+ label_1.setBounds(20, 88, 61, 20);
+ contentPanel.add(label_1);
+
+ JLabel label_2 = new JLabel(">");
+ label_2.setBounds(80, 91, 14, 14);
+ contentPanel.add(label_2);
+
+ JLabel label_3 = new JLabel("VL-Image");
+ label_3.setForeground(Color.BLUE);
+ label_3.setBounds(91, 88, 46, 20);
+ contentPanel.add(label_3);
+
+ JLabel label_4 = new JLabel(">");
+ label_4.setBounds(139, 91, 14, 14);
+ contentPanel.add(label_4);
+
+ JLabel label_5 = new JLabel("Neu/Bearbeiten");
+ label_5.setBounds(149, 91, 108, 14);
+ contentPanel.add(label_5);
+
+ JSeparator separator_1 = new JSeparator();
+ separator_1.setBounds(-10, 648, 597, 2);
+ contentPanel.add(separator_1);
+
+ JLabel lblSchritt = new JLabel("Schritt 1:");
+ lblSchritt.setBounds(24, 128, 57, 14);
+ contentPanel.add(lblSchritt);
+
+ JLabel lblSchritt_1 = new JLabel("Schritt 2:");
+ lblSchritt_1.setBounds(24, 204, 57, 14);
+ contentPanel.add(lblSchritt_1);
+
+ JLabel lblSchritt_3 = new JLabel("Schritt 3:");
+ lblSchritt_3.setBounds(20, 423, 57, 14);
+ contentPanel.add(lblSchritt_3);
+
+ JLabel lblKlickenSieAuf = new JLabel(
+ "Klicken Sie auf \"Fertigstellen\".");
+ lblKlickenSieAuf.setBounds(98, 423, 241, 14);
+ contentPanel.add(lblKlickenSieAuf);
+ {
+ JPanel buttonPane = new JPanel();
+ buttonPane.setBackground(UIManager.getColor("Button.background"));
+ buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
+ getContentPane().add(buttonPane, BorderLayout.SOUTH);
+ {
+ btnZurck.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ if (taskrun == true) {
+ task.cancel(true);
+ try {
+ client.DeleteFtpUser(user.userName);
+ } catch (TException e1) {
+ // TODO Auto-generated catch block
+ e1.printStackTrace();
+ }
+ }
+ thrift.closeThriftConnection();
+ SearchEditImage_GUI se = new SearchEditImage_GUI();
+ se.setVisible(true);
+ dispose();
+ }
+ });
+ btnZurck.setActionCommand("Cancel");
+ buttonPane.add(btnZurck);
+ }
+
+
+ btnMainMenu.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent arg0) {
+ thrift.closeThriftConnection();
+ MainMenue_GUI mm = new MainMenue_GUI();
+ mm.setVisible(true);
+ dispose();
+ }
+ });
+ btnMainMenu.setActionCommand("Cancel");
+ buttonPane.add(btnMainMenu);
+ }
+ setVisible(true);
+
+ }
+
+ private void buttonDownloadActionPerformed(ActionEvent event) {
+
+ progressBar.setValue(0);
+ btnDownloadStarten.setEnabled(false); // verhindert schnellen zweiten
+ // Klick
+ btnDownloadStarten.setText("Bitte warten");
+ try {
+ user = client.getFtpUser();
+
+ downloadFile = client.getPathOfImage(Image.image.getImageId(),
+ Image.image.getVersion());
+
+ } catch (TException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+
+ task = new DownloadTask(host, port, user.userName, user.password,
+ downloadFile, lblPath.getText(), this);
+ task.addPropertyChangeListener(this);
+ task.execute();
+ taskrun = true;
+
+ }
+
+ public void propertyChange(PropertyChangeEvent arg0) {
+
+ progress = 0;
+ if ("progress" == arg0.getPropertyName()) {
+ progress = (Integer) arg0.getNewValue();
+ progressBar.setValue(progress);
+
+ // Button zum Fertigstellen freischalten, wenn 100% erreicht sind
+ if (progress == 0 || progress == 100) {
+ // not uploading currently
+ btnZurck.setEnabled(true);
+ btnMainMenu.setEnabled(true);
+ } else {
+ // currently uploading, don't let user interact
+ btnZurck.setEnabled(false);
+ btnMainMenu.setEnabled(false);
+ }
+ }
+
+ if ("speed" == arg0.getPropertyName()) {
+ speed = (double) arg0.getNewValue();
+ // if(speed<=1){
+
+ downspeed.setText(String.valueOf(speed).substring(0,
+ String.valueOf(speed).lastIndexOf(".") + 3)
+ + " MB/s");
+
+ }
+ if ("bytesread" == arg0.getPropertyName()) {
+ bytesread = (long) arg0.getNewValue();
+ lblBytesread.setText((bytesread / 1024 / 1024) + " MB");
+ labelVerbleibend
+ .setText(((filesize / 1024 / 1024) - (bytesread / 1024 / 1024))
+ + " MB");
+
+ labelZeit
+ .setText(String
+ .valueOf(
+ ((((filesize / 1024 / 1024) - (bytesread / 1024 / 1024)) / speed) / 60) + 1)
+ .substring(
+ 0,
+ String.valueOf(
+ (((filesize / 1024 / 1024) - (bytesread / 1024 / 1024)) / speed) / 60)
+ .lastIndexOf("."))
+ + " Minuten");
+
+ }
+ if ("filesize" == arg0.getPropertyName()) {
+ filesize = (long) arg0.getNewValue();
+ lblNewLabel_3.setText((filesize / 1024 / 1024) + " MB");
+
+ }
+
+ }
+} \ No newline at end of file
diff --git a/Dozentenmodul/src/gui/image/FTPEditUploader_GUI.java b/Dozentenmodul/src/gui/image/FTPEditUploader_GUI.java
new file mode 100644
index 00000000..b184c96c
--- /dev/null
+++ b/Dozentenmodul/src/gui/image/FTPEditUploader_GUI.java
@@ -0,0 +1,475 @@
+package gui.image;
+
+import java.awt.BorderLayout;
+import java.awt.Color;
+import java.awt.Dimension;
+import java.awt.EventQueue;
+import java.awt.FlowLayout;
+import java.awt.Font;
+import java.awt.SystemColor;
+import java.awt.Toolkit;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.awt.event.WindowAdapter;
+import java.awt.event.WindowEvent;
+import java.beans.PropertyChangeEvent;
+import java.beans.PropertyChangeListener;
+import java.io.File;
+import java.text.DateFormat;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+import javax.swing.JButton;
+import javax.swing.JFileChooser;
+import javax.swing.JFrame;
+import javax.swing.JLabel;
+import javax.swing.JMenu;
+import javax.swing.JMenuBar;
+import javax.swing.JPanel;
+import javax.swing.JProgressBar;
+import javax.swing.JSeparator;
+import javax.swing.JTextPane;
+import javax.swing.SwingConstants;
+import javax.swing.UIManager;
+import javax.swing.UnsupportedLookAndFeelException;
+import javax.swing.border.EmptyBorder;
+import models.Image;
+import models.person;
+import org.apache.thrift.TException;
+import server.Server.Client;
+import thrift.ThriftConnection;
+import ftp.UploadTask;
+import gui.intro.MainMenue_GUI;
+
+@SuppressWarnings("serial")
+public class FTPEditUploader_GUI extends JFrame implements
+ PropertyChangeListener {
+
+ @SuppressWarnings("unused")
+ private JPanel contentPane;
+ private final JPanel contentPanel = new JPanel();
+ JLabel lblPath;
+ JProgressBar progressBar;
+ //String host = "141.79.128.121";
+ String host = "141.79.128.102";
+ int port = 21;
+ server.User user;
+ String filename = "";
+ File uploadFile;
+ static String arg = "";
+ UploadTask task;
+ JLabel UpSpeed;
+ JLabel labelfertig;
+ JLabel labelfilesize;
+ JLabel labelZeit;
+ JLabel labelverbleibend;
+ long filesize;
+ double speed;
+ long bytesread;
+ boolean taskrun = false;
+ int progress = 0;
+ ThriftConnection thrift = new ThriftConnection();
+ Client client = thrift.getThriftConnection();
+ JButton btnUploadStarten = new JButton("Upload auf Server starten");
+ JButton btnSpeicherortAuswhlen = new JButton("Image ausw\u00E4hlen");
+ JButton btnCopyFileTo = new JButton("Copy File to Prod");
+ JButton finishButton = new JButton("Fertigstellen");
+ JButton btnZurck = new JButton("Zur\u00FCck");
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ EventQueue.invokeLater(new Runnable() {
+ public void run() {
+ try {
+ FTPEditUploader_GUI frame = new FTPEditUploader_GUI();
+ frame.setVisible(true);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ });
+ }
+
+ /**
+ * Create the frame.
+ */
+ public FTPEditUploader_GUI() {
+ addWindowListener(new WindowAdapter() {
+ @Override
+ public void windowClosing(WindowEvent arg0) {
+ if (taskrun == true) {
+ try {
+
+ client.DeleteFtpUser(user.userName);
+ } catch (TException e1) {
+ // TODO Auto-generated catch block
+ e1.printStackTrace();
+ }
+ task.cancel(true);
+ }
+ System.exit(0);
+ }// end window closing
+ });
+ setResizable(false);
+ // setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
+
+ try {
+ UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
+ } catch (ClassNotFoundException | InstantiationException
+ | IllegalAccessException | UnsupportedLookAndFeelException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+
+ // filename=name;
+ setBackground(Color.WHITE);
+ setTitle("Dozentenmodul *Prototyp*");
+ Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
+ int top = (screenSize.height - 722) / 2;
+ int left = (screenSize.width - 603) / 2;
+ setBounds(left, top, 603, 722);
+ // setBounds(100, 100, 603, 250);
+ getContentPane().setLayout(new BorderLayout());
+ contentPanel.setBackground(SystemColor.menu);
+ contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
+ getContentPane().add(contentPanel, BorderLayout.CENTER);
+ contentPanel.setLayout(null);
+ {
+
+ btnSpeicherortAuswhlen.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent arg0) {
+ JFileChooser fc = new JFileChooser();
+ fc.setFileSelectionMode(JFileChooser.FILES_ONLY);
+
+ fc.showOpenDialog(getParent());
+ File file = fc.getSelectedFile();
+ // check if a file is selected and exists
+ if (file != null) {
+ // file exists
+ uploadFile = file;
+ filename = uploadFile.getName();
+ lblPath.setText(file.getAbsolutePath());
+ } else {
+ // no file selected
+ lblPath.setText("");
+ }// end if
+ }
+ });
+
+ btnSpeicherortAuswhlen.setBounds(102, 124, 173, 23);
+ btnSpeicherortAuswhlen.setVerticalAlignment(SwingConstants.TOP);
+ contentPanel.add(btnSpeicherortAuswhlen);
+ }
+
+ lblPath = new JLabel("");
+ lblPath.addPropertyChangeListener(new PropertyChangeListener() {
+ public void propertyChange(PropertyChangeEvent arg0) {
+ if (lblPath.getText().isEmpty()) {
+ // wenn leer, dann upload button nicht freigeben
+ btnUploadStarten.setEnabled(false);
+ btnUploadStarten.setText("Bitte warten");
+ } else {
+ // wenn leer, dann upload button nicht freigeben
+ btnUploadStarten.setEnabled(true);
+ btnUploadStarten.setText("Upload auf Server starten");
+ }
+ }
+ });
+ lblPath.setBounds(102, 158, 485, 23);
+ contentPanel.add(lblPath);
+
+ btnUploadStarten.setEnabled(false);
+ btnUploadStarten.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent arg0) {
+ buttonUploadActionPerformed(arg0);
+
+ }
+ });
+
+ btnUploadStarten.setBounds(102, 200, 173, 23);
+ contentPanel.add(btnUploadStarten);
+
+ progressBar = new JProgressBar(0, 100);
+ progressBar.setStringPainted(true);
+
+ progressBar.setBounds(102, 234, 485, 30);
+ contentPanel.add(progressBar);
+
+ JLabel lblUploadgeschwindigkeit = new JLabel("Uploadgeschwindigkeit:");
+ lblUploadgeschwindigkeit.setBounds(102, 275, 141, 14);
+ contentPanel.add(lblUploadgeschwindigkeit);
+
+ JLabel label_1 = new JLabel("Fertig:");
+ label_1.setBounds(102, 325, 46, 14);
+ contentPanel.add(label_1);
+
+ labelfertig = new JLabel("0");
+ labelfertig.setBounds(183, 325, 108, 14);
+ contentPanel.add(labelfertig);
+
+ UpSpeed = new JLabel("0");
+ UpSpeed.setBounds(374, 275, 117, 14);
+ contentPanel.add(UpSpeed);
+
+ JLabel label_4 = new JLabel("von:");
+ label_4.setBounds(318, 325, 46, 14);
+ contentPanel.add(label_4);
+
+ labelfilesize = new JLabel("0");
+ labelfilesize.setBounds(374, 325, 117, 14);
+ contentPanel.add(labelfilesize);
+
+ JLabel label_6 = new JLabel("Verbleibend:");
+ label_6.setBounds(102, 350, 71, 14);
+ contentPanel.add(label_6);
+
+ JLabel label_7 = new JLabel("Gesch\u00E4tzte Verbleibende Zeit:");
+ label_7.setBounds(102, 300, 150, 14);
+ contentPanel.add(label_7);
+
+ labelZeit = new JLabel("0");
+ labelZeit.setBounds(374, 300, 117, 14);
+ contentPanel.add(labelZeit);
+
+ labelverbleibend = new JLabel("0");
+ labelverbleibend.setBounds(183, 350, 108, 14);
+ contentPanel.add(labelverbleibend);
+
+ JPanel panel = new JPanel();
+ panel.setLayout(null);
+ panel.setBackground(SystemColor.menu);
+ panel.setBounds(10, 11, 577, 57);
+ contentPanel.add(panel);
+
+ JLabel lblUploadIhresImage = new JLabel("Upload Ihres Image");
+ lblUploadIhresImage.setFont(new Font("Tahoma", Font.BOLD, 18));
+ lblUploadIhresImage.setBounds(10, 11, 509, 22);
+ panel.add(lblUploadIhresImage);
+
+ JTextPane txtpnFhreSieBitte = new JTextPane();
+ txtpnFhreSieBitte
+ .setText("F\u00FChre Sie bitte die folgenden 3 Schritte aus um Ihr Image auf unseren Server zu laden.");
+ txtpnFhreSieBitte.setEditable(false);
+ txtpnFhreSieBitte.setBackground(SystemColor.menu);
+ txtpnFhreSieBitte.setBounds(10, 36, 509, 32);
+ panel.add(txtpnFhreSieBitte);
+
+ JSeparator separator = new JSeparator();
+ separator.setBounds(0, 79, 597, 2);
+ contentPanel.add(separator);
+
+ JLabel lblNewLabel_1 = new JLabel("Hauptmen\u00FC");
+ lblNewLabel_1.setForeground(Color.BLUE);
+ lblNewLabel_1.setBounds(20, 88, 61, 20);
+ contentPanel.add(lblNewLabel_1);
+
+ JLabel label_3 = new JLabel(">");
+ label_3.setBounds(80, 91, 14, 14);
+ contentPanel.add(label_3);
+
+ JLabel lblVlimage = new JLabel("VL-Image");
+ lblVlimage.setForeground(Color.BLUE);
+ lblVlimage.setBounds(91, 88, 46, 20);
+ contentPanel.add(lblVlimage);
+
+ JLabel label_5 = new JLabel(">");
+ label_5.setBounds(139, 91, 14, 14);
+ contentPanel.add(label_5);
+
+ JLabel lblNeubearbeiten = new JLabel("Bearbeiten");
+ lblNeubearbeiten.setBounds(149, 91, 108, 14);
+ contentPanel.add(lblNeubearbeiten);
+
+ JSeparator separator_1 = new JSeparator();
+ separator_1.setBounds(0, 627, 597, 2);
+ contentPanel.add(separator_1);
+
+ btnCopyFileTo.setEnabled(false);
+ btnCopyFileTo.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ try {
+ client.startFileCopy(user.path + "/" + uploadFile.getName());
+ } catch (TException e1) {
+ // TODO Auto-generated catch block
+ e1.printStackTrace();
+ }
+ }
+ });
+ btnCopyFileTo.setBounds(102, 375, 173, 23);
+ contentPanel.add(btnCopyFileTo);
+
+ JLabel lblSchritt_1 = new JLabel("Schritt 1:");
+ lblSchritt_1.setBounds(24, 128, 57, 14);
+ contentPanel.add(lblSchritt_1);
+
+ JLabel lblSchritt_2 = new JLabel("Schritt 2:");
+ lblSchritt_2.setBounds(24, 204, 57, 14);
+ contentPanel.add(lblSchritt_2);
+
+ JLabel label = new JLabel("Schritt 3:");
+ label.setBounds(20, 423, 57, 14);
+ contentPanel.add(label);
+
+ JLabel label_2 = new JLabel("Klicken Sie auf \"Fertigstellen\".");
+ label_2.setBounds(98, 423, 241, 14);
+ contentPanel.add(label_2);
+ {
+ JPanel buttonPane = new JPanel();
+ buttonPane.setBackground(UIManager.getColor("Button.background"));
+ buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
+ getContentPane().add(buttonPane, BorderLayout.SOUTH);
+ {
+
+ finishButton.setEnabled(false);
+ finishButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+
+ updateData();
+ dispose();
+ MainMenue_GUI m = new MainMenue_GUI();
+ m.setVisible(true);
+
+ if (taskrun == true) {
+ try {
+ client.DeleteFtpUser(user.userName);
+
+ } catch (TException e1) {
+ // TODO Auto-generated catch block
+ e1.printStackTrace();
+ }
+ task.cancel(true);
+ }
+ thrift.closeThriftConnection();
+ }
+ });
+ btnZurck.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent arg0) {
+ dispose();
+ EditImageTechnisch_GUI ei = new EditImageTechnisch_GUI();
+ ei.setVisible(true);
+ }
+ });
+
+ btnZurck.setActionCommand("Cancel");
+ buttonPane.add(btnZurck);
+ finishButton.setActionCommand("Cancel");
+ buttonPane.add(finishButton);
+ }
+ }
+
+ JMenuBar menuBar = new JMenuBar();
+ setJMenuBar(menuBar);
+
+ JMenu mnHillfe = new JMenu("Hillfe");
+ menuBar.add(mnHillfe);
+ setVisible(true);
+
+ }
+
+ private void buttonUploadActionPerformed(ActionEvent event) {
+
+ progressBar.setValue(0);
+ btnUploadStarten.setEnabled(false); // verhindert einen weiteren klick
+ btnUploadStarten.setText("Bitte warten");
+
+ try {
+ user = client.getFtpUser();
+ System.out.println("FTP name" + user.userName);
+ System.out.println("FTP path" + user.path);
+ System.out.println("FTP pass" + user.password);
+ } catch (TException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ DateFormat formatter = new SimpleDateFormat("yyyMMddhhmmss");
+ Image.image.setNewName(formatter.format(new Date()) + "_"
+ + person.verantwortlicher.getHochschule() + "_"
+ + person.verantwortlicher.getUsername() + "_"
+ + Image.image.getImagename() + ".vmdk");
+ task = new UploadTask(host, port, user.userName, user.password,
+ user.path, uploadFile);
+
+ task.addPropertyChangeListener(this);
+ task.execute();
+ taskrun = true;
+
+ }
+
+ public void propertyChange(PropertyChangeEvent arg0) {
+ if ("progress" == arg0.getPropertyName()) {
+ progress = (Integer) arg0.getNewValue();
+ progressBar.setValue(progress);
+
+ // Button zum Fertigstellen freischalten, wenn 100% erreicht sind
+ if (progress == 0 || progress == 100) {
+ // not uploading currently
+ btnZurck.setEnabled(true);
+ } else {
+ // currently uploading, don't let user interact
+ btnZurck.setEnabled(false);
+ }
+
+ // Fertigstellen erlauben wenn upload abgeschlossen
+ if (progress == 100) {
+ finishButton.setEnabled(true);
+ } else {
+ finishButton.setEnabled(false);
+ }
+ }
+
+
+
+ if ("speed" == arg0.getPropertyName()) {
+ speed = (double) arg0.getNewValue();
+ // if(speed<=1){
+
+ UpSpeed.setText(String.valueOf(speed).substring(0,
+ String.valueOf(speed).lastIndexOf(".") + 3)
+ + " MB/s");
+
+ }
+ if ("bytesread" == arg0.getPropertyName()) {
+ bytesread = (long) arg0.getNewValue();
+ labelfertig.setText((bytesread / 1024 / 1024) + " MB");
+ labelverbleibend
+ .setText(((filesize / 1024 / 1024) - (bytesread / 1024 / 1024))
+ + " MB");
+
+ labelZeit
+ .setText(String
+ .valueOf(
+ ((((filesize / 1024 / 1024) - (bytesread / 1024 / 1024)) / speed) / 60) + 1)
+ .substring(
+ 0,
+ String.valueOf(
+ (((filesize / 1024 / 1024) - (bytesread / 1024 / 1024)) / speed) / 60)
+ .lastIndexOf("."))
+ + " Minuten");
+
+ }
+ if ("filesize" == arg0.getPropertyName()) {
+ filesize = (long) arg0.getNewValue();
+ labelfilesize.setText((filesize / 1024 / 1024) + " MB");
+
+ }
+
+ }
+
+ public boolean updateData() {
+
+ try {
+ client.updateImageData(Image.image.getImagename(),
+ Image.image.getNewName(), Image.image.isLicensed(),
+ Image.image.isInternet(), Image.image.getRam(),
+ Image.image.getCpu(), Image.image.getImageId(),
+ Image.image.getVersion());
+ } catch (TException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ return false;
+ }
+ return true;
+
+ }
+} \ No newline at end of file
diff --git a/Dozentenmodul/src/gui/image/SearchEditImage_GUI.java b/Dozentenmodul/src/gui/image/SearchEditImage_GUI.java
new file mode 100644
index 00000000..e6bb055e
--- /dev/null
+++ b/Dozentenmodul/src/gui/image/SearchEditImage_GUI.java
@@ -0,0 +1,520 @@
+package gui.image;
+
+import gui.intro.MainMenue_GUI;
+import gui.lecture.ExtendedSearchForImages_GUI;
+
+import java.awt.Color;
+import java.awt.Dimension;
+import java.awt.FlowLayout;
+import java.awt.Font;
+import java.awt.SystemColor;
+import java.awt.Toolkit;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.awt.event.KeyAdapter;
+import java.awt.event.KeyEvent;
+import java.awt.event.MouseAdapter;
+import java.awt.event.MouseEvent;
+import java.awt.event.WindowAdapter;
+import java.awt.event.WindowEvent;
+import java.util.Iterator;
+import java.util.List;
+import javax.swing.JButton;
+import javax.swing.JComboBox;
+import javax.swing.JFrame;
+import javax.swing.JLabel;
+import javax.swing.JMenu;
+import javax.swing.JMenuBar;
+import javax.swing.JMenuItem;
+import javax.swing.JOptionPane;
+import javax.swing.JPanel;
+import javax.swing.JRadioButton;
+import javax.swing.JScrollPane;
+import javax.swing.JSeparator;
+import javax.swing.JTabbedPane;
+import javax.swing.JTable;
+import javax.swing.JTextField;
+import javax.swing.JTextPane;
+import javax.swing.RowFilter;
+import javax.swing.UIManager;
+import javax.swing.UnsupportedLookAndFeelException;
+import javax.swing.border.EmptyBorder;
+import javax.swing.border.TitledBorder;
+import javax.swing.event.ChangeEvent;
+import javax.swing.event.ChangeListener;
+import javax.swing.table.DefaultTableModel;
+import javax.swing.table.TableModel;
+import javax.swing.table.TableRowSorter;
+import models.Image;
+import models.person;
+//import models.person;
+
+import org.apache.thrift.TException;
+
+import server.Server.Client;
+import thrift.ThriftConnection;
+
+@SuppressWarnings("serial")
+public class SearchEditImage_GUI extends JFrame {
+
+ private final JPanel contentPanel = new JPanel();
+ String[] result;
+ JRadioButton rdbtnInternetJa;
+ JRadioButton rdbtnInternetNein;
+ JComboBox<String> comboBox;
+ JTable tableAllImages;
+ JTable tablemyImages;
+ private JTextField textFieldName;
+ JTabbedPane tabbedPane;
+ String[] titles = { "Image-Name", "Lizenzpflichtig", "OS", "Veranstaltung",
+ "Verantwortlicher", "Letztes Update", "Schlagwort", "ID", "Version" };
+ ThriftConnection con = new ThriftConnection();
+ Client client = con.getThriftConnection();
+ final DefaultTableModel modelAll = new DefaultTableModel(titles, 0);
+ final DefaultTableModel modelMyImages = new DefaultTableModel(titles, 0);
+ final TableRowSorter<TableModel> rowSorterAll = new TableRowSorter<TableModel>(
+ modelAll);
+ final TableRowSorter<TableModel> rowSorterMyImages = new TableRowSorter<TableModel>(
+ modelMyImages);
+
+ /**
+ * Launch the application.
+ *
+ * public static void main(String[] args) { try { SearchEditImage_GUI dialog
+ * = new SearchEditImage_GUI();
+ * dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
+ * dialog.setVisible(true); } catch (Exception e) { e.printStackTrace(); } }
+ */
+
+ /**
+ * Create the dialog.
+ */
+ public SearchEditImage_GUI() {
+ addWindowListener(new WindowAdapter() {
+ @Override
+ public void windowClosing(WindowEvent arg0) {
+ // Beendet die Anwendung nach klick auf X
+ con.closeThriftConnection();
+ System.exit(0);
+ }
+
+ @Override
+ public void windowOpened(WindowEvent arg0) {
+ textFieldName.requestFocusInWindow();
+ }
+ });
+ // Verhindert das Vergrößern Des Fensters
+ setResizable(false);
+
+ try {
+ // Setzt das Look & Feel auf System
+ UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
+ } catch (ClassNotFoundException | InstantiationException
+ | IllegalAccessException | UnsupportedLookAndFeelException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ // Setzt den Fenstertitel
+ setTitle("bwLehrpool Suite *Prototyp*");
+ // Zentriert das Fenster in die Bildmitte
+ Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
+ int top = (screenSize.height - 722) / 2;
+ int left = (screenSize.width - 603) / 2;
+ setBounds(left, top, 603, 722);
+
+ final DefaultTableModel model = new DefaultTableModel(titles, 0);
+
+ getContentPane().setLayout(null);
+ {
+ JPanel panel = new JPanel();
+ panel.setBackground(SystemColor.menu);
+ panel.setBounds(10, 11, 577, 57);
+ getContentPane().add(panel);
+ panel.setLayout(null);
+ {
+ JLabel lblNewLabel = new JLabel("Suche nach VL-Image");
+ lblNewLabel.setBounds(10, 11, 509, 22);
+ panel.add(lblNewLabel);
+ lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 18));
+ }
+
+ JTextPane txtpnBitteWhlenSie = new JTextPane();
+ txtpnBitteWhlenSie.setEditable(false);
+ txtpnBitteWhlenSie.setBackground(SystemColor.menu);
+ txtpnBitteWhlenSie
+ .setText("Hier k\u00F6nnen Sie nach Ihrem gew\u00FCnschten VL-Image suchen und dieses f\u00FCr weitere Schritte ausw\u00E4hlen");
+ txtpnBitteWhlenSie.setBounds(10, 36, 509, 32);
+ panel.add(txtpnBitteWhlenSie);
+ }
+ contentPanel.setBounds(10, 85, 577, 531);
+ contentPanel.setBackground(SystemColor.menu);
+ contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
+ getContentPane().add(contentPanel);
+ contentPanel.setLayout(null);
+
+ JPanel panel_1 = new JPanel();
+ panel_1.setBackground(SystemColor.menu);
+ panel_1.setBorder(new TitledBorder(null, "Filterfunktionen",
+ TitledBorder.LEADING, TitledBorder.TOP, null, null));
+ panel_1.setBounds(10, 49, 557, 131);
+ contentPanel.add(panel_1);
+ panel_1.setLayout(null);
+
+ JLabel lblNewLabel_2 = new JLabel("Anzeigename:");
+ lblNewLabel_2.setBounds(10, 30, 250, 20);
+ panel_1.add(lblNewLabel_2);
+
+ JLabel lblInternetIstInnerhalb = new JLabel("Betriebssystem:");
+ lblInternetIstInnerhalb.setBounds(10, 58, 250, 20);
+ panel_1.add(lblInternetIstInnerhalb);
+
+ textFieldName = new JTextField();
+ // Key Listener der Tastatureingabe registriert
+ textFieldName.addKeyListener(new KeyAdapter() {
+ @Override
+ public void keyReleased(KeyEvent e) {
+ // Textfield eingabe auslesen
+ String stext = textFieldName.getText();
+
+ // Wenn Textfield nicht leer
+ if (stext != "") {
+ // Filtere nach der Eingabe
+ rowSorterAll.setRowFilter(RowFilter.regexFilter(
+ textFieldName.getText(), 0));
+ rowSorterMyImages.setRowFilter(RowFilter.regexFilter(
+ textFieldName.getText(), 0));
+
+ }
+ }
+ });
+
+ textFieldName.setBounds(270, 30, 250, 20);
+ panel_1.add(textFieldName);
+ textFieldName.setColumns(10);
+
+ JLabel lblErweiterteSuche = new JLabel(
+ "<html><u>Erweiterte Suche</u></html>");
+ lblErweiterteSuche.addMouseListener(new MouseAdapter() {
+ @Override
+ public void mouseClicked(MouseEvent arg0) {
+ // Öffnet das Fenster Extended GUI
+ con.closeThriftConnection();
+ ExtendedSearchForImages_GUI es = new ExtendedSearchForImages_GUI();
+ es.setVisible(true);
+ }
+ });
+ lblErweiterteSuche.setForeground(Color.BLUE);
+
+ lblErweiterteSuche.setBounds(431, 106, 89, 14);
+ panel_1.add(lblErweiterteSuche);
+
+ comboBox = new JComboBox<String>();
+ try {
+ // Holt sich eine Liste aller verfügbaren Betriebssysteme vom Server
+ List<String> list = client.getAllOS();
+ // Leeres Item hinzufügen
+ comboBox.addItem("");
+ for (int i = 0; i < list.size(); i++) {
+ // Hinzufügen der verfügbaren Betriebssysteme
+ comboBox.addItem(list.get(i));
+ }
+ } catch (TException e2) {
+ // TODO Auto-generated catch block
+ e2.printStackTrace();
+ }
+ // Registriert Auswahländerungen der Box
+ comboBox.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent arg0) {
+ // Prüft das die Auswahl nicht leer ist
+ if (comboBox.getSelectedItem().toString() != "") {
+ // Filtert nach dem ausgewählten Betriebssystem
+ rowSorterAll.setRowFilter(RowFilter.regexFilter(comboBox
+ .getSelectedItem().toString(), 2));
+ rowSorterMyImages.setRowFilter(RowFilter.regexFilter(
+ comboBox.getSelectedItem().toString(), 2));
+ }
+ }
+
+ });
+ comboBox.setBounds(270, 58, 250, 20);
+ panel_1.add(comboBox);
+
+ JLabel lblHauptmen = new JLabel("Hauptmen\u00FC");
+ lblHauptmen.addMouseListener(new MouseAdapter() {
+ @Override
+ public void mouseClicked(MouseEvent arg0) {
+ // Öffnet das Hauütmenü
+ con.closeThriftConnection();
+ SearchEditImage_GUI.this.setVisible(false);
+ MainMenue_GUI main = new MainMenue_GUI();
+ main.setVisible(true);
+ }
+ });
+ lblHauptmen.setForeground(Color.BLUE);
+ lblHauptmen.setBounds(10, 11, 61, 14);
+ contentPanel.add(lblHauptmen);
+
+ JLabel label_1 = new JLabel(">");
+ label_1.setBounds(69, 11, 13, 14);
+ contentPanel.add(label_1);
+
+ JLabel lblVlimage = new JLabel("VL-Image");
+ lblVlimage.setForeground(Color.BLUE);
+ lblVlimage.setBounds(81, 11, 45, 14);
+ contentPanel.add(lblVlimage);
+
+ JLabel label_2 = new JLabel(">");
+ label_2.setBounds(133, 11, 13, 14);
+ contentPanel.add(label_2);
+
+ JLabel lblNewLabel_1 = new JLabel("Imageauswahl");
+ lblNewLabel_1.setBounds(146, 11, 85, 14);
+ contentPanel.add(lblNewLabel_1);
+
+ tabbedPane = new JTabbedPane(JTabbedPane.TOP);
+ tabbedPane.addChangeListener(new ChangeListener() {
+ public void stateChanged(ChangeEvent arg0) {
+ System.out.println(tabbedPane.getSelectedIndex());
+ if (tabbedPane.getSelectedIndex() == 0) {
+
+ String username = person.verantwortlicher.getName() + " "
+ + person.verantwortlicher.getVorname();
+ // String username="Spitzer Tobias";
+ rowSorterMyImages.setRowFilter(RowFilter.regexFilter(
+ username, 4));
+ } else if (tabbedPane.getSelectedIndex() == 1) {
+
+ }
+
+ }
+ });
+
+ tabbedPane.setBounds(10, 197, 557, 300);
+ contentPanel.add(tabbedPane);
+ initTableModel(modelMyImages);
+
+ JScrollPane scrollPaneAllImages = new JScrollPane();
+ tableAllImages = new JTable();
+ tableAllImages.setModel(modelAll);
+ tableAllImages.getColumnModel().getColumn(1).sizeWidthToFit();
+ tableAllImages.getColumnModel().getColumn(2).sizeWidthToFit();
+ tableAllImages.getColumnModel().getColumn(3).sizeWidthToFit();
+ tableAllImages.getColumnModel().getColumn(4).sizeWidthToFit();
+ tableAllImages.getColumnModel().getColumn(5).sizeWidthToFit();
+ initTableModel(modelAll);
+
+ JScrollPane scrollPaneMyImage = new JScrollPane();
+ tablemyImages = new JTable();
+ tablemyImages.setModel(modelMyImages);
+ tablemyImages.getColumnModel().getColumn(1).sizeWidthToFit();
+ tablemyImages.getColumnModel().getColumn(2).sizeWidthToFit();
+ tablemyImages.getColumnModel().getColumn(3).sizeWidthToFit();
+ tablemyImages.getColumnModel().getColumn(4).sizeWidthToFit();
+ tablemyImages.getColumnModel().getColumn(5).sizeWidthToFit();
+ tablemyImages.setRowSorter(rowSorterMyImages);
+
+ scrollPaneMyImage.setViewportView(tablemyImages);
+ tabbedPane.addTab("Meine Images", null, scrollPaneMyImage, null);
+ tableAllImages.setRowSorter(rowSorterAll);
+
+ scrollPaneAllImages.setViewportView(tableAllImages);
+ tabbedPane.addTab("Alle", null, scrollPaneAllImages, null);
+
+ JScrollPane scrollPaneCoopImages = new JScrollPane();
+ JTable tableCoopImages = new JTable();
+ tableCoopImages.setModel(model);
+ tableCoopImages.getColumnModel().getColumn(1).sizeWidthToFit();
+ tableCoopImages.getColumnModel().getColumn(2).sizeWidthToFit();
+ tableCoopImages.getColumnModel().getColumn(3).sizeWidthToFit();
+ tableCoopImages.getColumnModel().getColumn(4).sizeWidthToFit();
+ tableCoopImages.getColumnModel().getColumn(5).sizeWidthToFit();
+
+ scrollPaneCoopImages.setViewportView(tableCoopImages);
+ tabbedPane.addTab("Kooperative Images", null, scrollPaneCoopImages,
+ null);
+ tabbedPane.setEnabledAt(2, false);
+
+ JScrollPane scrollPanePublicImages = new JScrollPane();
+ JTable tablePublicImages = new JTable();
+ tablePublicImages.setModel(model);
+ tablePublicImages.getColumnModel().getColumn(1).sizeWidthToFit();
+ tablePublicImages.getColumnModel().getColumn(2).sizeWidthToFit();
+ tablePublicImages.getColumnModel().getColumn(3).sizeWidthToFit();
+ tablePublicImages.getColumnModel().getColumn(4).sizeWidthToFit();
+ tablePublicImages.getColumnModel().getColumn(5).sizeWidthToFit();
+
+ scrollPanePublicImages.setViewportView(tablePublicImages);
+ tabbedPane.addTab("\u00D6ffentliche Images", null,
+ scrollPanePublicImages, null);
+ tabbedPane.setEnabledAt(3, false);
+
+ JScrollPane scrollPanePublicVorlagen = new JScrollPane();
+ JTable tablePublicVorlagen = new JTable();
+ tablePublicVorlagen.setModel(model);
+ tablePublicVorlagen.getColumnModel().getColumn(1).sizeWidthToFit();
+ tablePublicVorlagen.getColumnModel().getColumn(2).sizeWidthToFit();
+ tablePublicVorlagen.getColumnModel().getColumn(3).sizeWidthToFit();
+ tablePublicVorlagen.getColumnModel().getColumn(4).sizeWidthToFit();
+ tablePublicVorlagen.getColumnModel().getColumn(5).sizeWidthToFit();
+
+ scrollPanePublicVorlagen.setViewportView(tablePublicVorlagen);
+ tabbedPane.addTab("\u00D6ffentliche Vorlagen", null,
+ scrollPanePublicVorlagen, null);
+ tabbedPane.setEnabledAt(4, false);
+
+ JButton btnDownload = new JButton("Download");
+ btnDownload.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent arg0) {
+ // Öffnet den Downloader
+
+ if (tablemyImages.getSelectedRow() != -1) {
+ String imageid = modelMyImages.getValueAt(
+ tablemyImages.convertRowIndexToModel(tablemyImages
+ .getSelectedRow()), 7).toString();
+
+ Image.image.setImageId(imageid);
+ String imageversion = modelMyImages.getValueAt(
+ tablemyImages.convertRowIndexToModel(tablemyImages
+ .getSelectedRow()), 8).toString();
+
+ Image.image.setVersion(imageversion);
+ SearchEditImage_GUI.this.setVisible(false);
+ FTPDownloader_GUI down = new FTPDownloader_GUI();
+ down.setVisible(true);
+ con.closeThriftConnection();
+
+ } else {
+ JOptionPane.showMessageDialog(null,
+ "Bitte wählen Sie ein Image für den Download aus",
+ "Message", JOptionPane.INFORMATION_MESSAGE);
+ }
+ }
+ });
+ btnDownload.setBounds(449, 508, 118, 23);
+ contentPanel.add(btnDownload);
+ {
+ JPanel buttonPane = new JPanel();
+ buttonPane.setBounds(0, 640, 597, 33);
+ buttonPane.setBackground(SystemColor.menu);
+ buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
+ getContentPane().add(buttonPane);
+ {
+ JButton okButton = new JButton("Zur\u00FCck");
+ okButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ // Öffnet das Hauptmenü
+ con.closeThriftConnection();
+ MainMenue_GUI main = new MainMenue_GUI();
+ main.setVisible(true);
+ dispose();
+ }
+ });
+ okButton.setActionCommand("OK");
+ buttonPane.add(okButton);
+ getRootPane().setDefaultButton(okButton);
+ }
+ {
+ JButton cancelButton = new JButton("Weiter");
+ cancelButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ con.closeThriftConnection();
+
+ // check if user is in correct tab
+ if (tabbedPane.getSelectedIndex() == 0) {
+ //check if a row is selected
+ if (tablemyImages.getSelectedRow() != -1) {
+ String imageid = modelMyImages
+ .getValueAt(
+ tablemyImages
+ .convertRowIndexToModel(tablemyImages
+ .getSelectedRow()),
+ 7).toString();
+
+ Image.image.setImageId(imageid);
+ String imageversion = modelMyImages
+ .getValueAt(
+ tablemyImages
+ .convertRowIndexToModel(tablemyImages
+ .getSelectedRow()),
+ 8).toString();
+
+ Image.image.setVersion(imageversion);
+ con.closeThriftConnection();
+ EditImageAllgemein_GUI ea = new EditImageAllgemein_GUI();
+ ea.setVisible(true);
+ dispose();
+ } else {
+ JOptionPane.showMessageDialog(null,
+ "Bitte wählen Sie ein Image aus.",
+ "Image Auswahl", JOptionPane.INFORMATION_MESSAGE);
+ }// end check if row is selected
+ } else {
+ JOptionPane.showMessageDialog(null,
+ "Bitte wählen Sie ein eigenes Image aus.",
+ "Image Auswahl", JOptionPane.INFORMATION_MESSAGE);
+ }//end check if correct tab is selected
+ }
+ });
+ cancelButton.setActionCommand("Cancel");
+ buttonPane.add(cancelButton);
+ }
+ }
+
+ JSeparator separator = new JSeparator();
+ separator.setBounds(0, 78, 597, 2);
+ getContentPane().add(separator);
+
+ JSeparator separator_1 = new JSeparator();
+ separator_1.setBounds(0, 627, 597, 2);
+ getContentPane().add(separator_1);
+
+ JMenuBar menuBar = new JMenuBar();
+ setJMenuBar(menuBar);
+
+ JMenu mnNewMenu_1 = new JMenu("Hilfe");
+ menuBar.add(mnNewMenu_1);
+
+ JMenuItem mntmFaq = new JMenuItem("FAQ");
+ mnNewMenu_1.add(mntmFaq);
+
+ JMenuItem mntmOtrs = new JMenuItem("OTRS");
+ mnNewMenu_1.add(mntmOtrs);
+
+ }
+
+ // Initiale Beffülung eines Table models
+ public DefaultTableModel initTableModel(DefaultTableModel model) {
+ List<server.Image> images;
+ try {
+ // Hole eine Liste der Images
+ images = client.getImageList();
+
+ Iterator<server.Image> i = images.iterator();
+
+ int x = 0;
+
+ while (i.hasNext()) {
+ // erzeuge Objekte für die Tabelle
+ Object[] obj = { images.get(x).getImageName(),
+ images.get(x).getLicenseRestriction(),
+ images.get(x).getOsName(),
+ images.get(x).getLectureName(),
+ images.get(x).getUserData(),
+ images.get(x).getUpdateTime(), "", images.get(x).id,
+ images.get(x).getVersion() };
+ // Füge diese Objekte der Tabelle hinzu
+ model.addRow(obj);
+ x++;
+ i.next();
+
+ }
+
+ return model;
+ } catch (TException e1) {
+ // TODO Auto-generated catch block
+ e1.printStackTrace();
+ }
+ return model;
+ }
+
+}
diff --git a/Dozentenmodul/src/gui/SearchEditImage_GUI.java b/Dozentenmodul/src/gui/image/SearchImage_GUI.java
index 840f283c..493230d3 100644
--- a/Dozentenmodul/src/gui/SearchEditImage_GUI.java
+++ b/Dozentenmodul/src/gui/image/SearchImage_GUI.java
@@ -1,6 +1,7 @@
-package gui;
-
+package gui.image;
+import gui.intro.MainMenue_GUI;
+import gui.lecture.ExtendedSearchForImages_GUI;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
@@ -17,8 +18,6 @@ import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.util.Iterator;
import java.util.List;
-import java.util.Map;
-
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JDialog;
@@ -46,16 +45,13 @@ import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;
import javax.swing.table.TableRowSorter;
-import models.Image;
-import models.person;
-
import org.apache.thrift.TException;
import server.Server.Client;
import thrift.ThriftConnection;
@SuppressWarnings("serial")
-public class SearchEditImage_GUI extends JFrame {
+public class SearchImage_GUI extends JFrame {
private final JPanel contentPanel = new JPanel();
String[] result;
@@ -66,20 +62,23 @@ public class SearchEditImage_GUI extends JFrame {
JTable tablemyImages;
private JTextField textFieldName;
JTabbedPane tabbedPane;
- String[] titles= {"Image-Name", "Lizenzpflichtig", "OS", "Veranstaltung", "Verantwortlicher", "Letztes Update", "Schlagwort"};
- ThriftConnection con=new ThriftConnection();
- Client client=con.getThriftConnection();
- final DefaultTableModel modelAll = new DefaultTableModel( titles, 0 );
- final DefaultTableModel modelMyImages = new DefaultTableModel( titles, 0 );
- final TableRowSorter<TableModel> rowSorterAll = new TableRowSorter<TableModel>( modelAll );
- final TableRowSorter<TableModel> rowSorterMyImages = new TableRowSorter<TableModel>( modelMyImages );
-
+ String[] titles = { "Image-Name", "Lizenzpflichtig", "OS", "Veranstaltung",
+ "Verantwortlicher", "Letztes Update", "Schlagwort" };
+ ThriftConnection con = new ThriftConnection();
+ Client client = con.getThriftConnection();
+ final DefaultTableModel modelAll = new DefaultTableModel(titles, 0);
+ final DefaultTableModel modelMyImages = new DefaultTableModel(titles, 0);
+ final TableRowSorter<TableModel> rowSorterAll = new TableRowSorter<TableModel>(
+ modelAll);
+ final TableRowSorter<TableModel> rowSorterMyImages = new TableRowSorter<TableModel>(
+ modelMyImages);
+
/**
* Launch the application.
*/
public static void main(String[] args) {
try {
- SearchEditImage_GUI dialog = new SearchEditImage_GUI();
+ SearchImage_GUI dialog = new SearchImage_GUI();
dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
dialog.setVisible(true);
} catch (Exception e) {
@@ -90,38 +89,35 @@ public class SearchEditImage_GUI extends JFrame {
/**
* Create the dialog.
*/
- public SearchEditImage_GUI() {
+ public SearchImage_GUI() {
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(WindowEvent arg0) {
- //Beendet die Anwendung nach klick auf X
+ // Beendet die Anwendung nach klick auf X
System.exit(0);
}
});
- //Verhindert das Vergrößern Des Fensters
+ // Verhindert das Vergrößern Des Fensters
setResizable(false);
-
+
try {
- //Setzt das Look & Feel auf System
+ // Setzt das Look & Feel auf System
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (ClassNotFoundException | InstantiationException
| IllegalAccessException | UnsupportedLookAndFeelException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
- //Setzt den Fenstertitel
+ // Setzt den Fenstertitel
setTitle("bwLehrpool Suite *Prototyp*");
- //Zentriert das Fenster in die Bildmitte
+ // Zentriert das Fenster in die Bildmitte
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
- int top=(screenSize.height - 722) / 2;
- int left=(screenSize.width - 603) / 2;
+ int top = (screenSize.height - 722) / 2;
+ int left = (screenSize.width - 603) / 2;
setBounds(left, top, 603, 722);
-
-
- final DefaultTableModel model = new DefaultTableModel( titles, 0 );
-
-
+ final DefaultTableModel model = new DefaultTableModel(titles, 0);
+
getContentPane().setLayout(null);
{
JPanel panel = new JPanel();
@@ -135,11 +131,12 @@ public class SearchEditImage_GUI extends JFrame {
panel.add(lblNewLabel);
lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 18));
}
-
+
JTextPane txtpnBitteWhlenSie = new JTextPane();
txtpnBitteWhlenSie.setEditable(false);
txtpnBitteWhlenSie.setBackground(SystemColor.menu);
- txtpnBitteWhlenSie.setText("Hier k\u00F6nnen Sie nach Ihrem gew\u00FCnschten VL-Image suchen und dieses f\u00FCr weitere Schritte ausw\u00E4hlen");
+ txtpnBitteWhlenSie
+ .setText("Hier k\u00F6nnen Sie nach Ihrem gew\u00FCnschten VL-Image suchen und dieses f\u00FCr weitere Schritte ausw\u00E4hlen");
txtpnBitteWhlenSie.setBounds(10, 36, 509, 32);
panel.add(txtpnBitteWhlenSie);
}
@@ -148,145 +145,145 @@ public class SearchEditImage_GUI extends JFrame {
contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
getContentPane().add(contentPanel);
contentPanel.setLayout(null);
-
+
JPanel panel_1 = new JPanel();
panel_1.setBackground(SystemColor.menu);
- panel_1.setBorder(new TitledBorder(null, "Filterfunktionen", TitledBorder.LEADING, TitledBorder.TOP, null, null));
+ panel_1.setBorder(new TitledBorder(null, "Filterfunktionen",
+ TitledBorder.LEADING, TitledBorder.TOP, null, null));
panel_1.setBounds(10, 49, 557, 131);
contentPanel.add(panel_1);
panel_1.setLayout(null);
-
+
JLabel lblNewLabel_2 = new JLabel("Anzeigename:");
lblNewLabel_2.setBounds(10, 30, 250, 20);
panel_1.add(lblNewLabel_2);
-
+
JLabel lblInternetIstInnerhalb = new JLabel("Betriebssystem:");
lblInternetIstInnerhalb.setBounds(10, 58, 250, 20);
panel_1.add(lblInternetIstInnerhalb);
-
+
textFieldName = new JTextField();
- //Key Listener der Tastatureingabe registriert
+ // Key Listener der Tastatureingabe registriert
textFieldName.addKeyListener(new KeyAdapter() {
@Override
public void keyReleased(KeyEvent e) {
- //Textfield eingabe auslesen
- String stext=textFieldName.getText();
-
- //Wenn Textfield nicht leer
- if(stext!="")
- {
- //Filtere nach der Eingabe
- rowSorterAll.setRowFilter(RowFilter.regexFilter(textFieldName.getText(), 0));
- rowSorterMyImages.setRowFilter(RowFilter.regexFilter(textFieldName.getText(), 0));
-
- }
- }});
+ // Textfield eingabe auslesen
+ String stext = textFieldName.getText();
+ // Wenn Textfield nicht leer
+ if (stext != "") {
+ // Filtere nach der Eingabe
+ rowSorterAll.setRowFilter(RowFilter.regexFilter(
+ textFieldName.getText(), 0));
+ rowSorterMyImages.setRowFilter(RowFilter.regexFilter(
+ textFieldName.getText(), 0));
+
+ }
+ }
+ });
textFieldName.setBounds(270, 30, 250, 20);
panel_1.add(textFieldName);
textFieldName.setColumns(10);
-
- JLabel lblErweiterteSuche = new JLabel("<html><u>Erweiterte Suche</u></html>");
+
+ JLabel lblErweiterteSuche = new JLabel(
+ "<html><u>Erweiterte Suche</u></html>");
lblErweiterteSuche.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent arg0) {
- //Öffnet das Fenster Extended GUI
- ExtendedSearch_GUI es=new ExtendedSearch_GUI();
+ // Öffnet das Fenster Extended GUI
+ ExtendedSearchForImages_GUI es = new ExtendedSearchForImages_GUI();
es.setVisible(true);
}
});
lblErweiterteSuche.setForeground(Color.BLUE);
-
+
lblErweiterteSuche.setBounds(431, 106, 89, 14);
panel_1.add(lblErweiterteSuche);
-
+
comboBox = new JComboBox<String>();
try {
- //Holt sich eine Liste aller verfügbaren Betriebssysteme vom Server
- List<String> list=client.getAllOS();
- //Leeres Item hinzufügen
+ // Holt sich eine Liste aller verfügbaren Betriebssysteme vom Server
+ List<String> list = client.getAllOS();
+ // Leeres Item hinzufügen
comboBox.addItem("");
- for(int i=0;i<list.size();i++)
- {
- //Hinzufügen der verfügbaren Betriebssysteme
+ for (int i = 0; i < list.size(); i++) {
+ // Hinzufügen der verfügbaren Betriebssysteme
comboBox.addItem(list.get(i));
}
} catch (TException e2) {
// TODO Auto-generated catch block
e2.printStackTrace();
}
- //Registriert Auswahländerungen der Box
+ // Registriert Auswahländerungen der Box
comboBox.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
- //Prüft das die Auswahl nicht leer ist
- if(comboBox.getSelectedItem().toString()!="")
- {
- //Filtert nach dem ausgewählten Betriebssystem
- rowSorterAll.setRowFilter(RowFilter.regexFilter(comboBox.getSelectedItem().toString(), 2));
- rowSorterMyImages.setRowFilter(RowFilter.regexFilter(comboBox.getSelectedItem().toString(), 2));
- }
+ // Prüft das die Auswahl nicht leer ist
+ if (comboBox.getSelectedItem().toString() != "") {
+ // Filtert nach dem ausgewählten Betriebssystem
+ rowSorterAll.setRowFilter(RowFilter.regexFilter(comboBox
+ .getSelectedItem().toString(), 2));
+ rowSorterMyImages.setRowFilter(RowFilter.regexFilter(
+ comboBox.getSelectedItem().toString(), 2));
+ }
}
-
+
});
comboBox.setBounds(270, 58, 250, 20);
panel_1.add(comboBox);
-
+
JLabel lblHauptmen = new JLabel("Hauptmen\u00FC");
lblHauptmen.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent arg0) {
- //Öffnet das Hauütmenü
- SearchEditImage_GUI.this.setVisible(false);
- MainMenue_GUI main=new MainMenue_GUI();
+ // Öffnet das Hauütmenü
+ SearchImage_GUI.this.setVisible(false);
+ MainMenue_GUI main = new MainMenue_GUI();
main.setVisible(true);
}
});
lblHauptmen.setForeground(Color.BLUE);
lblHauptmen.setBounds(10, 11, 61, 14);
contentPanel.add(lblHauptmen);
-
+
JLabel label_1 = new JLabel(">");
label_1.setBounds(69, 11, 13, 14);
contentPanel.add(label_1);
-
+
JLabel lblVlimage = new JLabel("VL-Image");
lblVlimage.setForeground(Color.BLUE);
lblVlimage.setBounds(81, 11, 45, 14);
contentPanel.add(lblVlimage);
-
+
JLabel label_2 = new JLabel(">");
label_2.setBounds(133, 11, 13, 14);
contentPanel.add(label_2);
-
+
JLabel lblNewLabel_1 = new JLabel("Imageauswahl");
lblNewLabel_1.setBounds(146, 11, 85, 14);
contentPanel.add(lblNewLabel_1);
-
+
tabbedPane = new JTabbedPane(JTabbedPane.TOP);
tabbedPane.addChangeListener(new ChangeListener() {
public void stateChanged(ChangeEvent arg0) {
System.out.println(tabbedPane.getSelectedIndex());
- if(tabbedPane.getSelectedIndex()==0){
-
-
-
- }
- else if(tabbedPane.getSelectedIndex()==1){
- String username="Spitzer Tobias";
- rowSorterMyImages.setRowFilter(RowFilter.regexFilter(username, 4));
-
- //rowSorterMyImages.toggleSortOrder(0);
+ if (tabbedPane.getSelectedIndex() == 0) {
+
+ } else if (tabbedPane.getSelectedIndex() == 1) {
+ String username = "Spitzer Tobias";
+ rowSorterMyImages.setRowFilter(RowFilter.regexFilter(
+ username, 4));
+ // rowSorterMyImages.toggleSortOrder(0);
}
-
+
}
});
tabbedPane.setBounds(10, 197, 557, 300);
contentPanel.add(tabbedPane);
-
+
JScrollPane scrollPaneMyImage = new JScrollPane();
- tablemyImages=new JTable();
+ tablemyImages = new JTable();
tablemyImages.setModel(modelMyImages);
tablemyImages.getColumnModel().getColumn(1).sizeWidthToFit();
tablemyImages.getColumnModel().getColumn(2).sizeWidthToFit();
@@ -295,9 +292,9 @@ public class SearchEditImage_GUI extends JFrame {
tablemyImages.getColumnModel().getColumn(5).sizeWidthToFit();
initTableModel(modelMyImages);
tablemyImages.setRowSorter(rowSorterMyImages);
-
+
JScrollPane scrollPaneAllImages = new JScrollPane();
- tableAllImages=new JTable();
+ tableAllImages = new JTable();
tableAllImages.setModel(modelAll);
tableAllImages.getColumnModel().getColumn(1).sizeWidthToFit();
tableAllImages.getColumnModel().getColumn(2).sizeWidthToFit();
@@ -306,15 +303,15 @@ public class SearchEditImage_GUI extends JFrame {
tableAllImages.getColumnModel().getColumn(5).sizeWidthToFit();
initTableModel(modelAll);
tableAllImages.setRowSorter(rowSorterAll);
-
- scrollPaneAllImages.setViewportView(tableAllImages);
- tabbedPane.addTab("Alle", null, scrollPaneAllImages, null);
+
+ scrollPaneAllImages.setViewportView(tableAllImages);
+ tabbedPane.addTab("Alle", null, scrollPaneAllImages, null);
scrollPaneMyImage.setViewportView(tablemyImages);
tabbedPane.addTab("Meine Images", null, scrollPaneMyImage, null);
-
+
JScrollPane scrollPaneCoopImages = new JScrollPane();
- JTable tableCoopImages=new JTable();
+ JTable tableCoopImages = new JTable();
tableCoopImages.setModel(model);
tableCoopImages.getColumnModel().getColumn(1).sizeWidthToFit();
tableCoopImages.getColumnModel().getColumn(2).sizeWidthToFit();
@@ -323,11 +320,12 @@ public class SearchEditImage_GUI extends JFrame {
tableCoopImages.getColumnModel().getColumn(5).sizeWidthToFit();
scrollPaneCoopImages.setViewportView(tableCoopImages);
- tabbedPane.addTab("Kooperative Images", null, scrollPaneCoopImages, null);
+ tabbedPane.addTab("Kooperative Images", null, scrollPaneCoopImages,
+ null);
tabbedPane.setEnabledAt(2, false);
-
+
JScrollPane scrollPanePublicImages = new JScrollPane();
- JTable tablePublicImages=new JTable();
+ JTable tablePublicImages = new JTable();
tablePublicImages.setModel(model);
tablePublicImages.getColumnModel().getColumn(1).sizeWidthToFit();
tablePublicImages.getColumnModel().getColumn(2).sizeWidthToFit();
@@ -336,11 +334,12 @@ public class SearchEditImage_GUI extends JFrame {
tablePublicImages.getColumnModel().getColumn(5).sizeWidthToFit();
scrollPanePublicImages.setViewportView(tablePublicImages);
- tabbedPane.addTab("\u00D6ffentliche Images", null, scrollPanePublicImages, null);
+ tabbedPane.addTab("\u00D6ffentliche Images", null,
+ scrollPanePublicImages, null);
tabbedPane.setEnabledAt(3, false);
-
+
JScrollPane scrollPanePublicVorlagen = new JScrollPane();
- JTable tablePublicVorlagen=new JTable();
+ JTable tablePublicVorlagen = new JTable();
tablePublicVorlagen.setModel(model);
tablePublicVorlagen.getColumnModel().getColumn(1).sizeWidthToFit();
tablePublicVorlagen.getColumnModel().getColumn(2).sizeWidthToFit();
@@ -349,19 +348,17 @@ public class SearchEditImage_GUI extends JFrame {
tablePublicVorlagen.getColumnModel().getColumn(5).sizeWidthToFit();
scrollPanePublicVorlagen.setViewportView(tablePublicVorlagen);
- tabbedPane.addTab("\u00D6ffentliche Vorlagen", null, scrollPanePublicVorlagen, null);
+ tabbedPane.addTab("\u00D6ffentliche Vorlagen", null,
+ scrollPanePublicVorlagen, null);
tabbedPane.setEnabledAt(4, false);
-
-
-
JButton btnDownload = new JButton("Download");
btnDownload.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
- //Öffnet den Downloader
- FTPDownloader_GUI down=new FTPDownloader_GUI("Test");
+ // Öffnet den Downloader
+ FTPDownloader_GUI down = new FTPDownloader_GUI();
down.setVisible(true);
- SearchEditImage_GUI.this.setVisible(false);
+ SearchImage_GUI.this.setVisible(false);
}
});
btnDownload.setBounds(449, 508, 118, 23);
@@ -373,80 +370,84 @@ public class SearchEditImage_GUI extends JFrame {
buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
getContentPane().add(buttonPane);
{
- JButton okButton = new JButton("Zur\u00FCck");
- okButton.addActionListener(new ActionListener() {
+ JButton cancelButton = new JButton("Zur\u00FCck");
+ cancelButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
- //Öffnet das Hauptmenü
-
- MainMenue_GUI main=new MainMenue_GUI();
+ // Öffnet das Hauptmenü
+ MainMenue_GUI main = new MainMenue_GUI();
main.setVisible(true);
dispose();
}
});
- okButton.setActionCommand("OK");
- buttonPane.add(okButton);
- getRootPane().setDefaultButton(okButton);
+ cancelButton.setActionCommand("OK");
+ buttonPane.add(cancelButton);
+ getRootPane().setDefaultButton(cancelButton);
}
{
- JButton cancelButton = new JButton("Weiter");
- cancelButton.addActionListener(new ActionListener() {
+ JButton continueButton = new JButton("Weiter");
+ continueButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
+
con.closeThriftConnection();
- String imagename=modelMyImages.getValueAt(tablemyImages.convertRowIndexToModel(tablemyImages.getSelectedRow()), 0).toString();
- Image.image.setImagename(imagename);
- EditImageAllgemein_GUI ea=new EditImageAllgemein_GUI();
+ EditImageAllgemein_GUI ea = new EditImageAllgemein_GUI();
ea.setVisible(true);
- dispose();
+ dispose();
+
}
});
- cancelButton.setActionCommand("Cancel");
- buttonPane.add(cancelButton);
+ continueButton.setActionCommand("Cancel");
+ buttonPane.add(continueButton);
}
}
-
+
JSeparator separator = new JSeparator();
separator.setBounds(0, 78, 597, 2);
getContentPane().add(separator);
-
+
JSeparator separator_1 = new JSeparator();
separator_1.setBounds(0, 627, 597, 2);
getContentPane().add(separator_1);
-
+
JMenuBar menuBar = new JMenuBar();
setJMenuBar(menuBar);
-
+
JMenu mnNewMenu_1 = new JMenu("Hilfe");
menuBar.add(mnNewMenu_1);
-
+
JMenuItem mntmFaq = new JMenuItem("FAQ");
mnNewMenu_1.add(mntmFaq);
-
+
JMenuItem mntmOtrs = new JMenuItem("OTRS");
mnNewMenu_1.add(mntmOtrs);
-
+
}
- //Initiale Beffülung eines Table models
- public DefaultTableModel initTableModel(DefaultTableModel model){
+
+ // Initiale Beffülung eines Table models
+ public DefaultTableModel initTableModel(DefaultTableModel model) {
List<server.Image> images;
try {
- //Hole eine Liste der Images
+ // Hole eine Liste der Images
+
images = client.getImageList();
-
- Iterator<server.Image> i=images.iterator();
-
- int x=0;
-
- while(i.hasNext())
- {
- //erzeuge Objekte für die Tabelle
- Object [] obj={images.get(x).getImageName(),images.get(x).getLicenseRestriction(),images.get(x).getOsName(),images.get(x).getLectureName(),images.get(x).getUserData(),images.get(x).getUpdateTime()};
- //Füge diese Objekte der Tabelle hinzu
+ Iterator<server.Image> i = images.iterator();
+
+ int x = 0;
+
+ while (i.hasNext()) {
+ // erzeuge Objekte für die Tabelle
+ Object[] obj = { images.get(x).getImageName(),
+ images.get(x).getLicenseRestriction(),
+ images.get(x).getOsName(),
+ images.get(x).getLectureName(),
+ images.get(x).getUserData(),
+ images.get(x).getUpdateTime() };
+ // Füge diese Objekte der Tabelle hinzu
model.addRow(obj);
x++;
i.next();
-
+
}
-
+
return model;
} catch (TException e1) {
// TODO Auto-generated catch block
@@ -454,7 +455,5 @@ public class SearchEditImage_GUI extends JFrame {
}
return model;
}
-
- }
-
+}
diff --git a/Dozentenmodul/src/GUI/BillOfRights_GUI.java b/Dozentenmodul/src/gui/intro/BillOfRights_GUI.java
index a18ce291..e4f37871 100644
--- a/Dozentenmodul/src/GUI/BillOfRights_GUI.java
+++ b/Dozentenmodul/src/gui/intro/BillOfRights_GUI.java
@@ -1,4 +1,5 @@
-package gui;
+package gui.intro;
+
import java.awt.Dimension;
import java.awt.FlowLayout;
diff --git a/Dozentenmodul/src/gui/intro/Login_GUI.java b/Dozentenmodul/src/gui/intro/Login_GUI.java
new file mode 100644
index 00000000..e2db747e
--- /dev/null
+++ b/Dozentenmodul/src/gui/intro/Login_GUI.java
@@ -0,0 +1,261 @@
+package gui.intro;
+
+
+import java.awt.Dimension;
+import java.awt.EventQueue;
+import java.awt.Image;
+import java.awt.SystemColor;
+import java.awt.Toolkit;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.awt.event.WindowAdapter;
+import java.awt.event.WindowEvent;
+import java.io.File;
+import java.io.IOException;
+import java.nio.channels.SeekableByteChannel;
+
+import javax.swing.ImageIcon;
+import javax.swing.JButton;
+import javax.swing.JFrame;
+import javax.swing.JLabel;
+import javax.swing.JOptionPane;
+import javax.swing.JPanel;
+import javax.swing.JPasswordField;
+import javax.swing.JTextField;
+import javax.swing.UIManager;
+import javax.swing.UnsupportedLookAndFeelException;
+import javax.swing.border.EmptyBorder;
+
+import models.SessionData;
+import models.person;
+import org.apache.thrift.TException;
+import org.ini4j.Wini;
+import thrift.MasterThriftConnection;
+import thrift.ImageServer.Client;
+import thrift.UserInfo;
+
+import config.config_file;
+
+@SuppressWarnings("serial")
+public class Login_GUI extends JFrame {
+
+ private JPanel contentPane;
+ private JTextField username;
+ private JPasswordField pass;
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ EventQueue.invokeLater(new Runnable() {
+ public void run() {
+ try {
+ // Prüfe und Erzeuge gegebenfalls Config
+ config_file cf = new config_file();
+ boolean conf = cf.createConfig();
+ if (conf == true) {
+ // Aufruf und Anzeige des Login Fensters
+ Login_GUI frame = new Login_GUI();
+ frame.setVisible(true);
+ } else {
+ JOptionPane.showMessageDialog(null,
+ "Fehler beim erzeugen der Konfigurationsfile",
+ "Message", JOptionPane.ERROR_MESSAGE);
+ }
+
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ });
+ }
+
+ /**
+ * Create the frame.
+ */
+ public Login_GUI() {
+ addWindowListener(new WindowAdapter() {
+ @Override
+ public void windowClosing(WindowEvent e) {
+ System.exit(0);
+ }
+ });
+
+ // Fenster darf nicht vergrößert werden
+ setResizable(false);
+ try {
+ // Setzt das Look and Feel auf System
+ UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
+ } catch (ClassNotFoundException | InstantiationException
+ | IllegalAccessException | UnsupportedLookAndFeelException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ // Titel des Fensters setzen
+ setTitle("Dozentenmodul *Prototyp*");
+ // Aktion die beim Schließen durchgeführt werden soll
+ setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ // Größe des Fensters definieren
+ Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
+ int top = (screenSize.height - 400) / 2;
+ int left = (screenSize.width - 603) / 2;
+ setBounds(left, top, 603, 400);
+ // Erzeugen eines Panels
+ contentPane = new JPanel();
+ // Hintergrund Farbe des Panels setzen
+ contentPane.setBackground(SystemColor.menu);
+ // Rahmen des Fensters setzen
+ contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
+ setContentPane(contentPane);
+ // Layout setzen
+ contentPane.setLayout(null);
+ // Label für das Logo erzeugen
+ JLabel imgLabel = new JLabel();
+ // Größe und Position des Logos festelegen
+ imgLabel.setBounds(150, 11, 350, 142);
+ // Pfadangabe des Logos
+
+ ImageIcon icon = new ImageIcon(getClass().getResource(
+ "/Logo_bwLehrpool.png"), "Logo");
+ // Skalierung des Logos
+ Image scaled = icon.getImage().getScaledInstance(270, 64, 0);
+ imgLabel.setIcon(new ImageIcon(scaled));
+ // Hinzufügen des Logos in das Fenster
+ contentPane.add(imgLabel);
+
+ // Erzeugen und Hinzufügen des Labels
+ JLabel LabelUser = new JLabel("bwIDM-Benutzername:");
+ LabelUser.setBounds(111, 164, 134, 20);
+ contentPane.add(LabelUser);
+
+ // Erzeugen und Hinzufügen des Textfeldes
+ username = new JTextField();
+ username.setToolTipText("Bitte geben Sie Ihren bwIDM-Benutzernamen ein.");
+ username.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent arg0) {
+ performLogin();
+ }
+ });
+ username.setBounds(304, 164, 196, 20);
+ contentPane.add(username);
+ username.setColumns(10);
+
+ // Erzeugen und Hinzufügen des Labels
+ JLabel LabelPass = new JLabel("bwIDM-Passwort:");
+ LabelPass.setBounds(111, 195, 134, 20);
+ contentPane.add(LabelPass);
+
+ // Erzeugen, Hinzufügen und definierung der Aktion des Buttons
+ JButton BtnLogin = new JButton("Login");
+ BtnLogin.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent arg0) {
+ performLogin();
+ }// end actionPerformed
+ });
+
+ BtnLogin.setBounds(304, 244, 196, 23);
+ contentPane.add(BtnLogin);
+
+ // Erzeugen und Hinzufügen des Passwortfeldes
+ pass = new JPasswordField();
+ pass.setToolTipText("Bitte geben Sie Ihr bwIDM-Passwort ein.");
+ pass.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ performLogin();
+ }
+ });
+ pass.setBounds(304, 195, 196, 20);
+ contentPane.add(pass);
+ }// end LoginGUI()
+
+ //Versuche den Benutzer einzuloggen
+ public void performLogin() {
+ // Aufruf der Ldap Klasse, welche die Ldap überprüfung vornimmt
+ // Ldap check=new Ldap();
+ boolean login = true;
+ // boolean login=check.LdapAuth(username.getText(), new
+ // String(pass.getPassword()));
+ MasterThriftConnection thrift = new MasterThriftConnection();
+ Client client = thrift.getMasterThriftConnection();
+ String token = null;
+ final thrift.SessionData result;
+ try {
+ String passText = new String(pass.getPassword());
+ System.out.println("Benutzer:" +username.getText() + "\nPasswort" + passText);
+ result = client.authenticate(username.getText(), passText);
+ SessionData.session.setAuthToken(result.authToken);
+ SessionData.session.setSessionID(result.sessionId);
+ SessionData.session.setServerAdress(result.serverAddress);
+ System.out.println("Server Adresse: "+result.serverAddress);
+
+ } catch (thrift.AuthenticationException e) {
+ System.out.println("Authentifizierung fehlgeschlagen: " + e.message);
+ JOptionPane.showMessageDialog(null,
+ "Benutzeranmeldung fehlgeschlagen: Bitte Benutzername und Passwort überprüfen.",
+ "Anmeldung fehlgeschlagen",
+ JOptionPane.ERROR_MESSAGE);
+
+ return;
+ } catch (TException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ return;
+ }
+ System.out
+ .println("Konnte mich beim MasterServer authentifizieren. Meine Session-ID ist "
+ + result.sessionId
+ + ", mein Token für den Satelliten "
+ + result.authToken);
+ token = result.authToken;
+ if (login == true) {
+
+ try {
+ Wini ini = new Wini(new File("C:\\Users\\"
+ + System.getProperty("user.name")
+ + "\\AppData\\Roaming\\bwLehrpoolSuite\\config.ini"));
+ // Prüfe ob Bills Of Rights schon akzeptiert wurden, wenn nicht
+ // zeige diese an
+ if (ini.get("main", "BillOfRights", boolean.class) == false) {
+ // Erstellen einer Instanz der Aktionsauswahl
+ BillOfRights_GUI re = new BillOfRights_GUI();
+ re.setVisible(true);
+ // Schließen des Fensters nach erfolgreichen Login
+ setVisible(false);
+ } else {
+ // Prüfe ob die Links zu vmware angezeigt werden sollen
+ if (ini.get("main", "vmware", boolean.class) == false) {
+ VmWareLink_GUI vm = new VmWareLink_GUI();
+ vm.setVisible(true);
+ setVisible(false);
+ } else {
+ UserInfo user = client.getUserFromToken(token);
+
+ String hochschule = user.eMail.substring(user.eMail
+ .indexOf("@") + 1, user.eMail.indexOf(".",
+ user.eMail.indexOf("@")));
+ // System.out.println("hochschule="+hochschule);
+
+ person.verantwortlicher.setUsername(username.getText());
+ person.verantwortlicher.setName(user.lastName);
+ person.verantwortlicher.setVorname(user.firstName);
+ person.verantwortlicher.setEMail(user.eMail);
+ person.verantwortlicher.setHochschule(hochschule);
+
+ // Öffne das Hauprmenü
+ MainMenue_GUI main = new MainMenue_GUI();
+ main.setVisible(true);
+ setVisible(false);
+ }
+ }
+ } catch (IOException | TException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+
+ } else {
+ JOptionPane.showMessageDialog(null, "Login denied!", "Message",
+ JOptionPane.INFORMATION_MESSAGE);
+ }
+ }// end performLogin
+
+}// end class
diff --git a/Dozentenmodul/src/gui/intro/MainMenue_GUI.java b/Dozentenmodul/src/gui/intro/MainMenue_GUI.java
new file mode 100644
index 00000000..9965002c
--- /dev/null
+++ b/Dozentenmodul/src/gui/intro/MainMenue_GUI.java
@@ -0,0 +1,405 @@
+package gui.intro;
+
+import gui.image.*;
+import gui.lecture.*;
+import java.awt.Dimension;
+import java.awt.FlowLayout;
+import java.awt.Toolkit;
+import javax.swing.JFrame;
+import javax.swing.JButton;
+import javax.swing.JDialog;
+import javax.swing.JPanel;
+import javax.swing.UIManager;
+import javax.swing.UnsupportedLookAndFeelException;
+import javax.swing.border.EmptyBorder;
+import javax.swing.JLabel;
+import java.awt.Font;
+import javax.swing.JTextPane;
+import java.awt.SystemColor;
+import java.awt.event.ActionListener;
+import java.awt.event.ActionEvent;
+import javax.swing.JSeparator;
+import javax.swing.JRadioButton;
+import javax.swing.SwingConstants;
+import javax.swing.ButtonGroup;
+import javax.swing.JMenuBar;
+import javax.swing.JMenu;
+import javax.swing.JMenuItem;
+import javax.swing.ToolTipManager;
+import java.awt.event.WindowAdapter;
+import java.awt.event.WindowEvent;
+import javax.swing.border.TitledBorder;
+import java.awt.ScrollPane;
+import javax.swing.JTextArea;
+import javax.swing.ImageIcon;
+
+@SuppressWarnings("serial")
+public class MainMenue_GUI extends JFrame {
+
+ private final JPanel contentPanel = new JPanel();
+ String[] result;
+ String descNewImage, descEditImage, descDeleteImage, descSearchImage,
+ descNewLecture, descEditLecture, descDeleteLecture,
+ descSearchLecture = "";
+ JRadioButton rdbtnImageNew;
+ JRadioButton rdbtnImageEdit;
+ JRadioButton rdbtnImageSearchDownload;
+ JRadioButton rdbtnVeranstaltungNew;
+ JRadioButton rdbtnImageDelete;
+ JRadioButton rdbtnVeranstaltungEdit;
+ private final ButtonGroup buttonGroup = new ButtonGroup();
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ try {
+ MainMenue_GUI dialog = new MainMenue_GUI();
+ dialog.setDefaultCloseOperation(JDialog.HIDE_ON_CLOSE);
+ dialog.setVisible(true);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }// end main
+
+ /**
+ * Create the dialog.
+ */
+ public MainMenue_GUI() {
+ addWindowListener(new WindowAdapter() {
+ @Override
+ public void windowClosing(WindowEvent arg0) {
+ System.exit(0);
+ }
+ });
+ try {
+ UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
+ } catch (ClassNotFoundException | InstantiationException
+ | IllegalAccessException | UnsupportedLookAndFeelException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ setTitle("bwLehrpool Suite *Prototyp*");
+ Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
+ int top = (screenSize.height - 722) / 2;
+ int left = (screenSize.width - 603) / 2;
+ setBounds(left, top, 603, 722);
+ // setBounds(100, 100, 545, 366);
+ getContentPane().setLayout(null);
+ {
+ JPanel panel = new JPanel();
+ panel.setBackground(SystemColor.menu);
+ panel.setBounds(10, 11, 567, 69);
+ getContentPane().add(panel);
+ panel.setLayout(null);
+ {
+ JLabel lblNewLabel = new JLabel("Hauptmen\u00FC");
+ lblNewLabel.setBounds(10, 11, 509, 22);
+ panel.add(lblNewLabel);
+ lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 18));
+ }
+
+ JTextPane txtpnBitteWhlenSie = new JTextPane();
+ txtpnBitteWhlenSie.setEditable(false);
+ txtpnBitteWhlenSie.setBackground(SystemColor.menu);
+ txtpnBitteWhlenSie
+ .setText("Bitte w\u00E4hlen Sie ihre gew\u00FCnschte Aktion.");
+ txtpnBitteWhlenSie.setBounds(10, 36, 509, 22);
+ panel.add(txtpnBitteWhlenSie);
+ }
+ contentPanel.setBounds(10, 104, 567, 502);
+ contentPanel.setBackground(SystemColor.menu);
+
+ contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
+ getContentPane().add(contentPanel);
+ contentPanel.setLayout(null);
+
+ JPanel panelImage = new JPanel();
+ panelImage.setBackground(SystemColor.menu);
+ panelImage.setBorder(new TitledBorder(null, "VL-Image",
+ TitledBorder.LEADING, TitledBorder.TOP, null, null));
+ panelImage.setBounds(10, 146, 270, 170);
+ contentPanel.add(panelImage);
+ panelImage.setLayout(null);
+
+ rdbtnImageNew = new JRadioButton("Neu");
+ rdbtnImageNew
+ .setToolTipText("Hier k\u00F6nnen Sie eine standard Laborvorlage downloaden");
+ rdbtnImageNew.setBounds(6, 22, 159, 23);
+ panelImage.add(rdbtnImageNew);
+ rdbtnImageNew.setSelected(true);
+ buttonGroup.add(rdbtnImageNew);
+ rdbtnImageNew.setBackground(SystemColor.menu);
+
+ rdbtnImageEdit = new JRadioButton("Bearbeiten");
+ rdbtnImageEdit
+ .setToolTipText("Hier k\u00F6nnen Sie ein bestehendes Labor zum ver\u00E4ndern downloaden");
+ rdbtnImageEdit.setBounds(6, 48, 185, 23);
+ panelImage.add(rdbtnImageEdit);
+ buttonGroup.add(rdbtnImageEdit);
+ rdbtnImageEdit.setHorizontalAlignment(SwingConstants.LEFT);
+ rdbtnImageEdit.setBackground(SystemColor.menu);
+
+ rdbtnImageDelete = new JRadioButton("L\u00F6schen");
+ rdbtnImageDelete.setEnabled(false);
+ buttonGroup.add(rdbtnImageDelete);
+ rdbtnImageDelete
+ .setToolTipText("Hier k\u00F6nnen Sie ein bestehendes Labor zum ver\u00E4ndern downloaden");
+ rdbtnImageDelete.setHorizontalAlignment(SwingConstants.LEFT);
+ rdbtnImageDelete.setBackground(SystemColor.menu);
+ rdbtnImageDelete.setBounds(6, 74, 185, 23);
+ panelImage.add(rdbtnImageDelete);
+
+ rdbtnImageSearchDownload = new JRadioButton("Suche und Download");
+ rdbtnImageSearchDownload.setEnabled(false);
+ buttonGroup.add(rdbtnImageSearchDownload);
+ rdbtnImageSearchDownload
+ .setToolTipText("Hier k\u00F6nnen Sie ein bestehendes Labor zum ver\u00E4ndern downloaden");
+ rdbtnImageSearchDownload.setHorizontalAlignment(SwingConstants.LEFT);
+ rdbtnImageSearchDownload.setBackground(SystemColor.menu);
+ rdbtnImageSearchDownload.setBounds(6, 100, 185, 23);
+ panelImage.add(rdbtnImageSearchDownload);
+
+ JPanel panelDesc = new JPanel();
+ panelDesc.setLayout(null);
+ panelDesc.setBorder(new TitledBorder(UIManager
+ .getBorder("TitledBorder.border"), "Erklärung",
+ TitledBorder.LEADING, TitledBorder.TOP, null, null));
+ panelDesc.setBackground(SystemColor.menu);
+ panelDesc.setBounds(290, 146, 270, 170);
+ contentPanel.add(panelDesc);
+
+ ScrollPane scrollPaneDesc = new ScrollPane();
+ scrollPaneDesc.setBounds(10, 15, 250, 145);
+ final JTextArea txtDesc = new JTextArea();
+ txtDesc.setLineWrap(true);
+ txtDesc.setWrapStyleWord(true);
+ txtDesc.setFont(new Font("Tahoma", Font.PLAIN, 11));
+ txtDesc.setBackground(SystemColor.menu);
+ scrollPaneDesc.add(txtDesc);
+ // Pro AUswahl
+ txtDesc.setText("Legen Sie ein neues Image an und laden Sie anschließend die passende .vmdk-Datei hoch. Ein Image (wenn auch von einem anderen Dozenten) ist die Voraussetzung für eine Veranstaltung.");
+ panelDesc.add(scrollPaneDesc);
+
+ JPanel panelVeranstaltung = new JPanel();
+ panelVeranstaltung.setLayout(null);
+ panelVeranstaltung.setBorder(new TitledBorder(UIManager
+ .getBorder("TitledBorder.border"), "Veranstaltung (VMChooser)",
+ TitledBorder.LEADING, TitledBorder.TOP, null, null));
+ panelVeranstaltung.setBackground(SystemColor.menu);
+ panelVeranstaltung.setBounds(10, 327, 270, 170);
+ contentPanel.add(panelVeranstaltung);
+
+ rdbtnVeranstaltungNew = new JRadioButton("Neu");
+ buttonGroup.add(rdbtnVeranstaltungNew);
+ rdbtnVeranstaltungNew
+ .setToolTipText("Hier k\u00F6nnen Sie Ihre Labordaten eingeben");
+ rdbtnVeranstaltungNew.setBounds(6, 24, 185, 23);
+ panelVeranstaltung.add(rdbtnVeranstaltungNew);
+ rdbtnVeranstaltungNew.setBackground(SystemColor.menu);
+
+ rdbtnVeranstaltungEdit = new JRadioButton("Bearbeiten");
+ rdbtnVeranstaltungEdit
+ .setToolTipText("Hier k\u00F6nnen Sie einen Link auf ein bestehendes Labor erzeugen");
+ rdbtnVeranstaltungEdit.setBounds(6, 50, 230, 23);
+ panelVeranstaltung.add(rdbtnVeranstaltungEdit);
+ buttonGroup.add(rdbtnVeranstaltungEdit);
+ rdbtnVeranstaltungEdit.setBackground(SystemColor.menu);
+
+ JRadioButton rdbtnVeranstaltungDelete = new JRadioButton("L\u00F6schen");
+ rdbtnVeranstaltungDelete.setEnabled(false);
+ rdbtnVeranstaltungDelete
+ .setToolTipText("Hier k\u00F6nnen Sie ein Labor l\u00F6schen");
+ rdbtnVeranstaltungDelete.setBounds(6, 76, 175, 23);
+ panelVeranstaltung.add(rdbtnVeranstaltungDelete);
+ buttonGroup.add(rdbtnVeranstaltungDelete);
+ rdbtnVeranstaltungDelete.setBackground(SystemColor.menu);
+
+ JRadioButton rdbtnVeranstaltungSearch = new JRadioButton("Suche");
+ rdbtnVeranstaltungSearch.setEnabled(false);
+ buttonGroup.add(rdbtnVeranstaltungSearch);
+ rdbtnVeranstaltungSearch
+ .setToolTipText("Hier k\u00F6nnen Sie ein Labor l\u00F6schen");
+ rdbtnVeranstaltungSearch.setBackground(SystemColor.menu);
+ rdbtnVeranstaltungSearch.setBounds(6, 102, 175, 23);
+ panelVeranstaltung.add(rdbtnVeranstaltungSearch);
+
+ JPanel panelNews = new JPanel();
+ panelNews.setLayout(null);
+ panelNews.setBorder(new TitledBorder(UIManager
+ .getBorder("TitledBorder.border"), "News",
+ TitledBorder.LEADING, TitledBorder.TOP, null, null));
+ panelNews.setBackground(SystemColor.menu);
+ panelNews.setBounds(290, 327, 270, 170);
+ contentPanel.add(panelNews);
+
+ ScrollPane scrollPaneNews = new ScrollPane();
+ // scrollPaneDesc.setBounds(10, 15, 250, 145);
+ scrollPaneNews.setBounds(10, 15, 250, 145);
+ JTextArea txtNews = new JTextArea();
+ txtNews.setFont(new Font("Tahoma", Font.PLAIN, 11));
+ txtNews.setBackground(SystemColor.menu);
+ txtNews.setWrapStyleWord(true);
+ txtNews.setLineWrap(true);
+ txtNews.setText("Hier werden mal die Neuigkeiten stehen. Diese kommen direkt vom Satelliten, sind als HS-spezifisch :)");
+ scrollPaneNews.add(txtNews);
+ panelNews.add(scrollPaneNews);
+
+ /*
+ * Funktion Texte für das Klicken der RadioButtons
+ */
+ rdbtnImageNew.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent arg0) {
+ descNewImage = "Legen Sie ein neues Image an und laden Sie anschließend die passende .vmdk-Datei hoch. Ein Image (wenn auch von einem anderen Dozenten) ist die Voraussetzung für eine Veranstaltung.";
+ txtDesc.setText(descNewImage);
+ }
+ });
+ rdbtnImageEdit.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ descEditImage = "Bearbeiten Sie die hinterlegten Informationen zu einem Image oder laden Sie eine neue .vmdk-Datei hoch.";
+ txtDesc.setText(descEditImage);
+ }
+ });
+ rdbtnImageDelete.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ descDeleteImage = "Suchen Sie alte und nicht mehr benötigte Images und löschen Sie diese.";
+ txtDesc.setText(descDeleteImage);
+ }
+ });
+ rdbtnImageSearchDownload.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ descSearchImage = "Suchen Sie nach bestimmten Images oder verschaffen Sie sich einen Überblick über alle verfügbaren Images. Sie können gewünschte Images umgehend herunterladen.";
+ txtDesc.setText(descSearchImage);
+ }
+ });
+ rdbtnVeranstaltungNew.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ descNewLecture = "Legen Sie eine neue Veranstaltung an und verknüpfen Sie diese mit einem bereits vorhandenem Image. Ihre neue Veranstaltung kann auch auf dem Image eines anderen Dozenten beruhen.";
+ txtDesc.setText(descNewLecture);
+ }
+ });
+ rdbtnVeranstaltungEdit.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ descEditLecture = "Bearbeiten Sie die hinterlegten Informationen zu einer Veranstaltung.";
+ txtDesc.setText(descEditLecture);
+ }
+ });
+ rdbtnVeranstaltungDelete.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ descDeleteLecture = "Suchen und löschen Sie eine Veranstaltung. Das hiermit verbundene Image bleibt erhalten.";
+ }
+ });
+ rdbtnVeranstaltungSearch.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ descSearchLecture = "Suchen Sie nach bestimmten Veranstaltungen oder verschaffen Sie sich einen Überblick über alle verfügbaren Veranstaltungen. Eventuell gibt es bereits etwas passendes für Ihre Vorlesung.";
+ txtDesc.setText(descSearchLecture);
+ }
+ });
+ /*
+ * Ende der Radiobuttons
+ */
+
+ JLabel lblGrafik = new JLabel("");
+ // ToolTipp für Grafik
+ lblGrafik
+ .setToolTipText("<html>"
+ + "Ein virtuelles Labor besteht immer aus den beiden Komponenten <br>"
+ + "Image und Veranstaltung. Ein Image ist dabei die Grundlage f\u00FCr <br>"
+ + "mehrere Veranstaltungen. Somit kann eine neue Veranstaltung <br>"
+ + "erstellt werden, ohne ein neues Image hochladen zu m\u00FCssen. <br> <br> <br>"
+ + "<b>Image:</b> Das Image enth\u00E4lt die ben\u00F6tigte Software, die im <br>"
+ + "virtuellen Labor ben\u00F6tigt wird. Es wird von genau einem Dozenten <br>"
+ + "angelegt und besitzt einen allgemeinen Namen, z.B. \"Programmieren\". <br>"
+ + "Bei einem Image handelt es sich um eine Datei vom Typ VMDK. <br> <br> <br>"
+ + "<b>Veranstaltung:</b> Es k\u00F6nnen nun, basierend auf einem Image,<br>"
+ + " beliebig viele Veranstaltungen von unterschiedlichen Dozenten erstellt <br>"
+ + "werden. Diese k\u00F6nnten z.B. konkret \"Web-Entwicklung\" oder \"K\u00FCnstliche <br>"
+ + "Intelligenz\" lauten und referenzieren dabei auf das allgemeine Image <br>"
+ + "\"Programmieren\".</html>");
+ lblGrafik.setIcon(new ImageIcon(MainMenue_GUI.class
+ .getResource("/Image_zu_Veranstaltung_HDD.png")));
+ // ToolTipp lange anzeigen - 60sec
+ ToolTipManager.sharedInstance().setDismissDelay(60000);
+ ToolTipManager.sharedInstance().registerComponent(lblGrafik);
+ lblGrafik.setBounds(82, 3, 391, 110);
+ contentPanel.add(lblGrafik);
+
+ JTextPane txtpnUmDetaillierteInformationen = new JTextPane();
+ txtpnUmDetaillierteInformationen
+ .setText("Um detaillierte Informationen zu erhalten, fahren Sie bitte mit der Maus \u00FCber die Grafik.");
+ txtpnUmDetaillierteInformationen.setEditable(false);
+ txtpnUmDetaillierteInformationen.setBackground(SystemColor.menu);
+ txtpnUmDetaillierteInformationen.setBounds(10, 113, 509, 22);
+ contentPanel.add(txtpnUmDetaillierteInformationen);
+ {
+ JPanel buttonPane = new JPanel();
+ buttonPane.setBounds(0, 630, 587, 33);
+ buttonPane.setBackground(SystemColor.menu);
+ buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
+ getContentPane().add(buttonPane);
+ {
+ JButton continueButton = new JButton("Weiter");
+
+ continueButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+
+ if (rdbtnImageNew.isSelected() == true) {
+ CreateImageAllgemein_GUI sr = new CreateImageAllgemein_GUI();
+ sr.setVisible(true);
+ dispose();
+ } else if (rdbtnImageEdit.isSelected() == true) {
+
+ SearchEditImage_GUI si = new SearchEditImage_GUI();
+ si.setVisible(true);
+ dispose();
+ } else if (rdbtnImageSearchDownload.isSelected() == true) {
+ SearchMethodLecture_GUI sm = new SearchMethodLecture_GUI();
+ sm.setVisible(true);
+ dispose();
+ } else if (rdbtnImageDelete.isSelected() == true) {
+ DeleteImage_GUI di = new DeleteImage_GUI();
+ di.setVisible(true);
+ dispose();
+ } else if (rdbtnVeranstaltungNew.isSelected() == true) {
+ CreateLectureAllgemein_GUI av = new CreateLectureAllgemein_GUI();
+ av.setVisible(true);
+ dispose();
+ } else if (rdbtnVeranstaltungEdit.isSelected() == true) {
+ //SearchEditLecture_GUI sl = new SearchEditLecture_GUI();
+ EditLectureSearch_GUI el = new EditLectureSearch_GUI();
+ el.setVisible(true);
+ dispose();
+ }
+ }
+ });
+ continueButton.setActionCommand("OK");
+ buttonPane.add(continueButton);
+ getRootPane().setDefaultButton(continueButton);
+ }
+ }
+ {
+ JSeparator separator = new JSeparator();
+ separator.setBounds(0, 617, 587, 2);
+ getContentPane().add(separator);
+ }
+ {
+ JSeparator separator = new JSeparator();
+ separator.setBounds(0, 91, 587, 2);
+ getContentPane().add(separator);
+ }
+
+ JMenuBar menuBar = new JMenuBar();
+ setJMenuBar(menuBar);
+
+ JMenu mnNewMenu_1 = new JMenu("Hilfe");
+ menuBar.add(mnNewMenu_1);
+
+ JMenuItem mntmFaq = new JMenuItem("FAQ");
+ mnNewMenu_1.add(mntmFaq);
+
+ JMenuItem mntmOtrs = new JMenuItem("OTRS");
+ mnNewMenu_1.add(mntmOtrs);
+
+ }// end main
+
+}// end class
diff --git a/Dozentenmodul/src/GUI/VmWareLink_GUI.java b/Dozentenmodul/src/gui/intro/VmWareLink_GUI.java
index 43df06a6..2f578e8b 100644
--- a/Dozentenmodul/src/GUI/VmWareLink_GUI.java
+++ b/Dozentenmodul/src/gui/intro/VmWareLink_GUI.java
@@ -1,4 +1,5 @@
-package gui;
+package gui.intro;
+
import java.awt.Desktop;
import java.awt.Dimension;
diff --git a/Dozentenmodul/src/gui/lecture/CreateLectureAllgemein_GUI.java b/Dozentenmodul/src/gui/lecture/CreateLectureAllgemein_GUI.java
new file mode 100644
index 00000000..026cb7c5
--- /dev/null
+++ b/Dozentenmodul/src/gui/lecture/CreateLectureAllgemein_GUI.java
@@ -0,0 +1,507 @@
+package gui.lecture;
+
+import gui.intro.MainMenue_GUI;
+
+import java.awt.Color;
+import java.awt.Dimension;
+import java.awt.FlowLayout;
+import java.awt.Font;
+import java.awt.SystemColor;
+import java.awt.Toolkit;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.awt.event.MouseAdapter;
+import java.awt.event.MouseEvent;
+import java.awt.event.WindowAdapter;
+import java.awt.event.WindowEvent;
+import javax.swing.JButton;
+import javax.swing.JDialog;
+import javax.swing.JFrame;
+import javax.swing.JLabel;
+import javax.swing.JMenu;
+import javax.swing.JMenuBar;
+import javax.swing.JMenuItem;
+import javax.swing.JOptionPane;
+import javax.swing.JPanel;
+import javax.swing.JSeparator;
+import javax.swing.JTextField;
+import javax.swing.JTextPane;
+import javax.swing.UIManager;
+import javax.swing.UnsupportedLookAndFeelException;
+import javax.swing.border.EmptyBorder;
+import javax.swing.border.TitledBorder;
+import models.Image;
+import models.Lecture;
+import models.person;
+import javax.swing.JTextArea;
+import java.awt.ScrollPane;
+import java.util.Calendar;
+import java.util.Date;
+
+import com.toedter.calendar.JDateChooser;
+import javax.swing.JRadioButton;
+
+@SuppressWarnings("serial")
+public class CreateLectureAllgemein_GUI extends JFrame {
+
+ private final JPanel contentPanel = new JPanel();
+ String[] result;
+ private JTextField Vorname;
+ private JTextField Nachname;
+ private JTextField Hochschule;
+ private JTextField EMail;
+ private JTextField txtFldVeranstaltungsname;
+ JTextArea description;
+ JRadioButton radioButtonyes;
+ JRadioButton radioButtonno;
+ JDateChooser dateChooserend;
+ JDateChooser dateChooserstart;
+ Date startDate = new Date();
+ Date endDate;
+ int maxLifeTime = 180; // Anzahl Tage, die eine Veranstaltung in der Zukunft
+ // aktiv sein darf
+ boolean isDateOrderCorrect, isDateMaxLifeTimeCorrect,
+ isAllInformationReady = false;
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ try {
+ CreateLectureAllgemein_GUI dialog = new CreateLectureAllgemein_GUI();
+ dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
+ dialog.setVisible(true);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * Create the dialog.
+ */
+ public CreateLectureAllgemein_GUI() {
+ addWindowListener(new WindowAdapter() {
+ @Override
+ public void windowClosing(WindowEvent arg0) {
+ System.exit(0);
+ }
+
+ @Override
+ public void windowOpened(WindowEvent arg0) {
+ txtFldVeranstaltungsname.requestFocusInWindow();
+ }
+ });
+ setResizable(false);
+
+ try {
+ UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
+ } catch (ClassNotFoundException | InstantiationException
+ | IllegalAccessException | UnsupportedLookAndFeelException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ setTitle("bwLehrpool Suite *Prototyp*");
+ Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
+ int top = (screenSize.height - 722) / 2;
+ int left = (screenSize.width - 603) / 2;
+ setBounds(left, top, 603, 722);
+ // setBounds(100, 100, 603, 722);
+ getContentPane().setLayout(null);
+ {
+ JPanel panel = new JPanel();
+ panel.setBackground(SystemColor.menu);
+ panel.setBounds(10, 11, 577, 57);
+ getContentPane().add(panel);
+ panel.setLayout(null);
+ {
+ JLabel lblNewLabel = new JLabel("Eingabe Ihrer Daten");
+ lblNewLabel.setBounds(10, 11, 509, 22);
+ panel.add(lblNewLabel);
+ lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 18));
+ }
+
+ JTextPane txtpnBitteWhlenSie = new JTextPane();
+ txtpnBitteWhlenSie.setEditable(false);
+ txtpnBitteWhlenSie.setBackground(SystemColor.menu);
+ txtpnBitteWhlenSie
+ .setText("Geben Sie hier bitte einen sprechenden Imagename sowie Ihre Kontaktdaten an");
+ txtpnBitteWhlenSie.setBounds(10, 36, 509, 21);
+ panel.add(txtpnBitteWhlenSie);
+ }
+ contentPanel.setBounds(10, 85, 577, 493);
+ contentPanel.setBackground(SystemColor.menu);
+ contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
+ getContentPane().add(contentPanel);
+ contentPanel.setLayout(null);
+
+ JPanel panel_1 = new JPanel();
+ panel_1.setBackground(SystemColor.menu);
+ panel_1.setBorder(new TitledBorder(null, "Informationen zum Besitzer",
+ TitledBorder.LEADING, TitledBorder.TOP, null, null));
+ panel_1.setBounds(10, 331, 557, 162);
+ contentPanel.add(panel_1);
+ panel_1.setLayout(null);
+
+ JLabel label = new JLabel("Vorname: *");
+ label.setBackground(SystemColor.menu);
+ label.setBounds(10, 33, 125, 20);
+ panel_1.add(label);
+
+ Vorname = new JTextField();
+ Vorname.setEditable(false);
+ Vorname.setEnabled(false);
+ Vorname.setText(person.verantwortlicher.getVorname());
+ Vorname.setBackground(Color.WHITE);
+ Vorname.setColumns(10);
+ Vorname.setBounds(145, 33, 350, 20);
+ panel_1.add(Vorname);
+
+ JLabel label_7 = new JLabel("Nachname: *");
+ label_7.setBackground(SystemColor.menu);
+ label_7.setBounds(10, 64, 125, 20);
+ panel_1.add(label_7);
+
+ Nachname = new JTextField();
+ Nachname.setEnabled(false);
+ Nachname.setEditable(false);
+ Nachname.setText(person.verantwortlicher.getName());
+ Nachname.setBackground(Color.WHITE);
+ Nachname.setColumns(10);
+ Nachname.setBounds(145, 64, 350, 20);
+ panel_1.add(Nachname);
+
+ JLabel label_8 = new JLabel("Hochschule: *");
+ label_8.setBackground(SystemColor.menu);
+ label_8.setBounds(10, 95, 125, 20);
+ panel_1.add(label_8);
+
+ Hochschule = new JTextField();
+ Hochschule.setEnabled(false);
+ Hochschule.setEditable(false);
+ Hochschule.setText(person.verantwortlicher.getHochschule());
+ Hochschule.setBackground(Color.WHITE);
+ Hochschule.setColumns(10);
+ Hochschule.setBounds(145, 95, 350, 20);
+ panel_1.add(Hochschule);
+
+ JLabel label_9 = new JLabel("E-Mail: *");
+ label_9.setBackground(SystemColor.menu);
+ label_9.setBounds(10, 126, 125, 20);
+ panel_1.add(label_9);
+
+ EMail = new JTextField();
+ EMail.setEnabled(false);
+ EMail.setEditable(false);
+ EMail.setText(person.verantwortlicher.getEMail());
+ EMail.setBackground(Color.WHITE);
+ EMail.setColumns(10);
+ EMail.setBounds(145, 126, 350, 20);
+ panel_1.add(EMail);
+
+ JPanel panel = new JPanel();
+ panel.setBounds(10, 402, 577, 33);
+ contentPanel.add(panel);
+ panel.setLayout(null);
+ panel.setBorder(new EmptyBorder(5, 5, 5, 5));
+ panel.setBackground(SystemColor.menu);
+
+ JLabel lblHauptmen = new JLabel("Hauptmen\u00FC");
+ lblHauptmen.addMouseListener(new MouseAdapter() {
+ @Override
+ public void mouseClicked(MouseEvent arg0) {
+
+ CreateLectureAllgemein_GUI.this.setVisible(false);
+ MainMenue_GUI main = new MainMenue_GUI();
+ main.setVisible(true);
+ }
+ });
+ lblHauptmen.setForeground(Color.BLUE);
+ lblHauptmen.setBounds(10, 11, 61, 14);
+ contentPanel.add(lblHauptmen);
+
+ JLabel label_1 = new JLabel(">");
+ label_1.setBounds(69, 11, 13, 14);
+ contentPanel.add(label_1);
+
+ JLabel lblVlimage = new JLabel("VL-Image");
+ lblVlimage.setForeground(Color.BLUE);
+ lblVlimage.setBounds(81, 11, 45, 14);
+ contentPanel.add(lblVlimage);
+
+ JLabel label_2 = new JLabel(">");
+ label_2.setBounds(133, 11, 13, 14);
+ contentPanel.add(label_2);
+
+ JLabel lblNewLabel_1 = new JLabel("Neu");
+ lblNewLabel_1.setBounds(146, 11, 46, 14);
+ contentPanel.add(lblNewLabel_1);
+
+ JPanel panel_2 = new JPanel();
+ panel_2.setLayout(null);
+ panel_2.setBorder(new TitledBorder(null, "Veranstaltungsdaten",
+ TitledBorder.LEADING, TitledBorder.TOP, null, null));
+ panel_2.setBackground(SystemColor.menu);
+ panel_2.setBounds(10, 36, 557, 284);
+ contentPanel.add(panel_2);
+
+ JLabel label_3 = new JLabel("Laborname (Anzeigename): *");
+ label_3.setBounds(10, 25, 180, 14);
+ panel_2.add(label_3);
+
+ txtFldVeranstaltungsname = new JTextField();
+ txtFldVeranstaltungsname.setColumns(10);
+ txtFldVeranstaltungsname.setBounds(200, 22, 347, 20);
+ txtFldVeranstaltungsname.setText(Lecture.lecture.getName());
+ panel_2.add(txtFldVeranstaltungsname);
+
+ JTextArea textArea = new JTextArea();
+ textArea.setEditable(false);
+ textArea.setWrapStyleWord(true);
+ textArea.setText("Geben Sie bitte einen sprechenden Namen f\u00FCr das Image an. Dieser soll jedoch recht allgemein gehalten werden.\r\nBeispiel: \"Programmieren\", nicht \"Programmieren 1\"");
+ textArea.setLineWrap(true);
+ textArea.setFont(new Font("Tahoma", Font.PLAIN, 12));
+ textArea.setBackground(SystemColor.menu);
+ textArea.setBounds(10, 49, 537, 49);
+ panel_2.add(textArea);
+
+ JLabel lblDesc = new JLabel("Beschreibung: *");
+ lblDesc.setBounds(10, 111, 180, 14);
+ panel_2.add(lblDesc);
+
+ ScrollPane scrollPane = new ScrollPane();
+ scrollPane.setBounds(200, 104, 347, 78);
+ panel_2.add(scrollPane);
+ description = new JTextArea();
+ description.setFont(new Font("Tahoma", Font.PLAIN, 11));
+ description.setLineWrap(true);
+ description.setText(Lecture.lecture.getDesc());
+ scrollPane.add(description);
+ description.setBounds(0, 0, 4, 22);
+ scrollPane.add(description);
+
+ dateChooserend = new JDateChooser();
+ endDate = addDays(new Date(), maxLifeTime); // Datum darf weiter als 6
+ // Monate in der Zukunft
+ // liegen
+ dateChooserend.setDate(endDate);
+ if (Lecture.lecture.getEnddate() == null) {
+ // is not defined yet
+ dateChooserend.setDate(endDate);
+ } else {
+ // already defined from last visit on this page
+ dateChooserend.setDate(Lecture.lecture.getEnddate());
+ }
+ dateChooserend.setDateFormatString("yyyy-MM-dd hh:mm:ss");
+ dateChooserend.setBounds(404, 188, 143, 20);
+ panel_2.add(dateChooserend);
+
+ JLabel lblBis = new JLabel("bis:");
+ lblBis.setBounds(378, 188, 21, 20);
+ panel_2.add(lblBis);
+
+ dateChooserstart = new JDateChooser();
+ if (Lecture.lecture.getStartdate() == null) {
+ // is not defined yet
+ dateChooserstart.setDate(startDate);
+ } else {
+ // already defined from last visit on this page
+ dateChooserstart.setDate(Lecture.lecture.getStartdate());
+ }
+ dateChooserstart.setDateFormatString("yyyy-MM-dd hh:mm:ss");
+ dateChooserstart.setBounds(226, 188, 143, 20);
+ panel_2.add(dateChooserstart);
+
+ JLabel label_6 = new JLabel("von:");
+ label_6.setBounds(200, 188, 30, 20);
+ panel_2.add(label_6);
+
+ JLabel label_10 = new JLabel("G\u00FCltigkeitsdatum: *");
+ label_10.setBounds(10, 194, 127, 14);
+ panel_2.add(label_10);
+
+ JLabel label_11 = new JLabel("Aktiv:");
+ label_11.setBounds(10, 229, 127, 14);
+ panel_2.add(label_11);
+
+ radioButtonyes = new JRadioButton("Ja");
+ radioButtonyes.setSelected(true);
+ radioButtonyes.setBounds(200, 225, 73, 23);
+ panel_2.add(radioButtonyes);
+
+ radioButtonno = new JRadioButton("Nein");
+ radioButtonyes.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent arg0) {
+ radioButtonyes.setSelected(true);
+ radioButtonno.setSelected(false);
+ }
+ });
+ radioButtonno.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ radioButtonno.setSelected(true);
+ radioButtonyes.setSelected(false);
+ }
+ });
+ radioButtonno.setBounds(296, 225, 73, 23);
+ panel_2.add(radioButtonno);
+
+ JLabel lblimVmchooserSichtbar = new JLabel("(im VMChooser sichtbar)");
+ lblimVmchooserSichtbar.setBounds(10, 245, 127, 14);
+ panel_2.add(lblimVmchooserSichtbar);
+
+ JLabel lblmaxMonate = new JLabel("(max. 6 Monate)");
+ lblmaxMonate.setBounds(10, 208, 127, 14);
+ panel_2.add(lblmaxMonate);
+ {
+ JPanel buttonPane = new JPanel();
+ buttonPane.setBounds(0, 640, 597, 33);
+ buttonPane.setBackground(SystemColor.menu);
+ buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
+ getContentPane().add(buttonPane);
+ {
+ JButton backButton = new JButton("Zur\u00FCck");
+ backButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ if (radioButtonyes.isSelected() == true) {
+ Lecture.lecture.setActive(true);
+ } else {
+ Lecture.lecture.setActive(false);
+ }
+
+ Lecture.lecture.setName(txtFldVeranstaltungsname
+ .getText());
+ Lecture.lecture.setDesc(description.getText());
+ Lecture.lecture.setEnddate(dateChooserend.getDate());
+ Lecture.lecture.setStartdate(dateChooserstart.getDate());
+ Image.image.setImagename(txtFldVeranstaltungsname
+ .getText());
+
+ MainMenue_GUI sr = new MainMenue_GUI();
+ sr.setVisible(true);
+ dispose();
+ }
+ });
+ backButton.setActionCommand("Cancel");
+ buttonPane.add(backButton);
+ getRootPane().setDefaultButton(backButton);
+ }
+ {
+ JButton continueButton = new JButton("Weiter");
+ continueButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ // liegt das End-Datum vor dem Start-Datum?
+ if (dateChooserend.getDate().before(
+ dateChooserstart.getDate())) {
+ // datum ist falsch rum
+ isDateOrderCorrect = false;
+ JOptionPane
+ .showMessageDialog(
+ null,
+ "Das End-Datum liegt vor dem Start-Datum. Bitte ändern.",
+ "Datum fehlerhaft",
+ JOptionPane.INFORMATION_MESSAGE);
+ } else {
+ // bereit
+ isDateOrderCorrect = true;
+ }
+ // liegt das eingegebene Datum nach dem erlaubten
+ // End-Datum?
+ if (dateChooserend.getDate().after(endDate)) {
+ // Datum zu weit weg
+ isDateMaxLifeTimeCorrect = false;
+ JOptionPane.showMessageDialog(null,
+ "Das End-Datum liegt zu weit in der Zukunft. Erlaubt ist maximal:\n"
+ + endDate, "Datum fehlerhaft",
+ JOptionPane.INFORMATION_MESSAGE);
+ dateChooserend.setDate(endDate); //setze Datum auf maximum
+ } else {
+ // bereit
+ isDateMaxLifeTimeCorrect = true;
+ }
+ // Prüfen ob alles eingegeben wurde
+ if (txtFldVeranstaltungsname.getText().isEmpty() == true
+ || description.getText().isEmpty() == true) {
+ // mind 1 Textfeld ist leer
+ isAllInformationReady = false;
+ JOptionPane
+ .showMessageDialog(
+ null,
+ "Bitte geben Sie einen Veranstaltungsnamen und eine Beschreibung ein.",
+ "Datum fehlerhaft",
+ JOptionPane.INFORMATION_MESSAGE);
+ } else {
+ // Textfelder bereit
+ isAllInformationReady = true;
+ }
+
+ // welcher Radiobutton ist geklickt?
+ if (radioButtonyes.isSelected() == true) {
+ Lecture.lecture.setActive(true);
+ } else {
+ Lecture.lecture.setActive(false);
+ }
+ // Prüfe ob alle Eingaben korrekt sind, dann mache
+ // weiter
+ if (isAllInformationReady == true
+ && isDateMaxLifeTimeCorrect == true
+ && isDateOrderCorrect == true) {
+ // everything is ok, proceed
+ Lecture.lecture.setName(txtFldVeranstaltungsname
+ .getText());
+ Lecture.lecture.setDesc(description.getText());
+ Lecture.lecture.setEnddate(dateChooserend.getDate());
+ Lecture.lecture.setStartdate(dateChooserstart
+ .getDate());
+ Image.image.setImagename(txtFldVeranstaltungsname
+ .getText());
+
+ CreateLectureLink_GUI ev = new CreateLectureLink_GUI();
+ ev.setVisible(true);
+ dispose();
+ }
+
+ }
+ });
+ continueButton.setActionCommand("OK");
+ buttonPane.add(continueButton);
+ }
+ }
+
+ JSeparator separator = new JSeparator();
+ separator.setBounds(0, 78, 597, 2);
+ getContentPane().add(separator);
+
+ JSeparator separator_1 = new JSeparator();
+ separator_1.setBounds(0, 627, 597, 2);
+ getContentPane().add(separator_1);
+
+ JLabel lblPflichtfelder = new JLabel("* Pflichtfelder");
+ lblPflichtfelder.setBounds(32, 602, 136, 14);
+ getContentPane().add(lblPflichtfelder);
+
+ JMenuBar menuBar = new JMenuBar();
+ setJMenuBar(menuBar);
+
+ JMenu mnNewMenu = new JMenu("Suchen");
+ menuBar.add(mnNewMenu);
+
+ JMenuItem mntmVlSuche = new JMenuItem("VL Suche");
+ mnNewMenu.add(mntmVlSuche);
+
+ JMenu mnNewMenu_1 = new JMenu("Hilfe");
+ menuBar.add(mnNewMenu_1);
+
+ JMenuItem mntmFaq = new JMenuItem("FAQ");
+ mnNewMenu_1.add(mntmFaq);
+
+ JMenuItem mntmOtrs = new JMenuItem("OTRS");
+ mnNewMenu_1.add(mntmOtrs);
+
+ }
+
+ public Date addDays(Date date, int days) {
+ Calendar cal = Calendar.getInstance();
+ cal.setTime(date);
+ cal.add(Calendar.DATE, days); // minus number would decrement the days
+ return cal.getTime();
+ }
+}
diff --git a/Dozentenmodul/src/gui/LinkImage_GUI.java b/Dozentenmodul/src/gui/lecture/CreateLectureLink_GUI.java
index 38b3d5e3..2243fd43 100644
--- a/Dozentenmodul/src/gui/LinkImage_GUI.java
+++ b/Dozentenmodul/src/gui/lecture/CreateLectureLink_GUI.java
@@ -1,5 +1,6 @@
-package gui;
+package gui.lecture;
+import gui.intro.MainMenue_GUI;
import java.awt.Color;
import java.awt.Dimension;
@@ -20,7 +21,6 @@ import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
-
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JDialog;
@@ -29,6 +29,7 @@ import javax.swing.JLabel;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
+import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
@@ -42,36 +43,37 @@ import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.border.EmptyBorder;
import javax.swing.border.TitledBorder;
import javax.swing.table.DefaultTableModel;
-
import models.Lecture;
import models.person;
-
import org.apache.thrift.TException;
-
import server.Server.Client;
import thrift.ThriftConnection;
@SuppressWarnings("serial")
-public class LinkImage_GUI extends JFrame {
+public class CreateLectureLink_GUI extends JFrame {
private final JPanel contentPanel = new JPanel();
String[] result;
JRadioButton rdbtnInternetJa;
JRadioButton rdbtnInternetNein;
JComboBox<String> comboBox;
- JTable tableAllImages;
+ JTable tableAllImages = new JTable();
+ JTable tablemyImages = new JTable();
+ JTable tableCoopImages = new JTable();
+ JTable tablePublicImages = new JTable();
+ JTable tablePublicVorlagen = new JTable();
private JTextField textFieldName;
- String[] titles= {"Image-Name", "Lizenzpflichtig", "OS", "Veranstaltung", "Verantwortlicher", "Letztes Update", "Schlagwort"};
- ThriftConnection thrift=new ThriftConnection();
- Client client=thrift.getThriftConnection();
+ String[] titles = { "Image-Name", "Lizenzpflichtig", "OS", "Veranstaltung",
+ "Verantwortlicher", "Letztes Update", "Schlagwort" };
+ ThriftConnection con = new ThriftConnection();
+ Client client = con.getThriftConnection();
-
/**
* Launch the application.
*/
public static void main(String[] args) {
try {
- LinkImage_GUI dialog = new LinkImage_GUI();
+ CreateLectureLink_GUI dialog = new CreateLectureLink_GUI();
dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
dialog.setVisible(true);
} catch (Exception e) {
@@ -82,15 +84,20 @@ public class LinkImage_GUI extends JFrame {
/**
* Create the dialog.
*/
- public LinkImage_GUI() {
+ public CreateLectureLink_GUI() {
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(WindowEvent arg0) {
System.exit(0);
}
+
+ @Override
+ public void windowOpened(WindowEvent arg0) {
+ textFieldName.requestFocusInWindow();
+ }
});
setResizable(false);
-
+
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (ClassNotFoundException | InstantiationException
@@ -100,15 +107,13 @@ public class LinkImage_GUI extends JFrame {
}
setTitle("bwLehrpool Suite *Prototyp*");
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
- int top=(screenSize.height - 603) / 2;
- int left=(screenSize.width - 722) / 2;
+ int top = (screenSize.height - 603) / 2;
+ int left = (screenSize.width - 722) / 2;
setBounds(left, top, 603, 722);
-
- final DefaultTableModel modelAll = new DefaultTableModel( titles, 0 );
- final DefaultTableModel model = new DefaultTableModel( titles, 0 );
-
-
+ final DefaultTableModel modelAll = new DefaultTableModel(titles, 0);
+ final DefaultTableModel model = new DefaultTableModel(titles, 0);
+
getContentPane().setLayout(null);
{
JPanel panel = new JPanel();
@@ -117,16 +122,17 @@ public class LinkImage_GUI extends JFrame {
getContentPane().add(panel);
panel.setLayout(null);
{
- JLabel lblNewLabel = new JLabel("Suche nach VL-Image");
+ JLabel lblNewLabel = new JLabel("Image zur Verlinkung ausw\u00E4hlen");
lblNewLabel.setBounds(10, 11, 509, 22);
panel.add(lblNewLabel);
lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 18));
}
-
+
JTextPane txtpnBitteWhlenSie = new JTextPane();
txtpnBitteWhlenSie.setEditable(false);
txtpnBitteWhlenSie.setBackground(SystemColor.menu);
- txtpnBitteWhlenSie.setText("Hier k\u00F6nnen Sie nach Ihrem gew\u00FCnschten VL-Image suchen und dieses f\u00FCr weitere Schritte ausw\u00E4hlen");
+ txtpnBitteWhlenSie
+ .setText("W\u00E4hlen Sie bitte ein Image aus, auf dem Ihre Versanstaltung basiert.");
txtpnBitteWhlenSie.setBounds(10, 36, 509, 32);
panel.add(txtpnBitteWhlenSie);
}
@@ -135,72 +141,70 @@ public class LinkImage_GUI extends JFrame {
contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
getContentPane().add(contentPanel);
contentPanel.setLayout(null);
-
+
JPanel panel_1 = new JPanel();
panel_1.setBackground(SystemColor.menu);
- panel_1.setBorder(new TitledBorder(null, "Filterfunktionen", TitledBorder.LEADING, TitledBorder.TOP, null, null));
+ panel_1.setBorder(new TitledBorder(null, "Filterfunktionen",
+ TitledBorder.LEADING, TitledBorder.TOP, null, null));
panel_1.setBounds(10, 49, 557, 131);
contentPanel.add(panel_1);
panel_1.setLayout(null);
-
+
JLabel lblNewLabel_2 = new JLabel("Anzeigename:");
lblNewLabel_2.setBounds(10, 30, 250, 20);
panel_1.add(lblNewLabel_2);
-
+
JLabel lblInternetIstInnerhalb = new JLabel("Betriebssystem:");
lblInternetIstInnerhalb.setBounds(10, 58, 250, 20);
panel_1.add(lblInternetIstInnerhalb);
-
+
textFieldName = new JTextField();
textFieldName.addKeyListener(new KeyAdapter() {
@Override
public void keyReleased(KeyEvent e) {
- String stext=textFieldName.getText();
+ String stext = textFieldName.getText();
modelAll.setRowCount(0);
initTableModel(modelAll);
-
- if(stext!="")
- for(int i=0;i<modelAll.getRowCount();i++){
-
- if(modelAll.getValueAt(i, 0).toString().startsWith(stext)){
-
- }
- else
- {
- modelAll.removeRow(i);
+
+ if (stext != "")
+ for (int i = 0; i < modelAll.getRowCount(); i++) {
+
+ if (modelAll.getValueAt(i, 0).toString()
+ .startsWith(stext)) {
+
+ } else {
+ modelAll.removeRow(i);
+ }
}
- }
-
-
+
}
-
-
+
});
textFieldName.setBounds(270, 30, 250, 20);
panel_1.add(textFieldName);
textFieldName.setColumns(10);
-
- JLabel lblErweiterteSuche = new JLabel("<html><u>Erweiterte Suche</u></html>");
+
+ JLabel lblErweiterteSuche = new JLabel(
+ "<html><u>Erweiterte Suche</u></html>");
lblErweiterteSuche.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent arg0) {
- ExtendedSearch_GUI es=new ExtendedSearch_GUI();
+ ExtendedSearchForImages_GUI es = new ExtendedSearchForImages_GUI();
es.setVisible(true);
}
});
lblErweiterteSuche.setForeground(Color.BLUE);
-
+
lblErweiterteSuche.setBounds(431, 106, 89, 14);
panel_1.add(lblErweiterteSuche);
-
+
comboBox = new JComboBox<String>();
try {
- List<String> list=client.getAllOS();
+ List<String> list = client.getAllOS();
comboBox.addItem("");
- for(int i=0;i<list.size();i++)
- {
- comboBox.addItem(list.get(i));
+ for (int i = 0; i < list.size(); i++) {
+ comboBox.addItem(list.get(i));
}
} catch (TException e2) {
// TODO Auto-generated catch block
@@ -210,91 +214,85 @@ public class LinkImage_GUI extends JFrame {
public void actionPerformed(ActionEvent arg0) {
modelAll.setRowCount(0);
initTableModel(modelAll);
- String selItem=comboBox.getSelectedItem().toString();
- if(selItem!="")
- {
- for(int i=0;i<modelAll.getRowCount();i++){
-
- if(modelAll.getValueAt(i, 2).equals(selItem)){
-
- }
- else
- {
- modelAll.removeRow(i);
+ String selItem = comboBox.getSelectedItem().toString();
+ if (selItem != "") {
+ for (int i = 0; i < modelAll.getRowCount(); i++) {
+
+ if (modelAll.getValueAt(i, 2).equals(selItem)) {
+
+ } else {
+ modelAll.removeRow(i);
+ }
}
+
}
-
-
- }
}
});
comboBox.setBounds(270, 58, 250, 20);
panel_1.add(comboBox);
-
+
JLabel lblHauptmen = new JLabel("Hauptmen\u00FC");
lblHauptmen.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent arg0) {
-
- LinkImage_GUI.this.setVisible(false);
- MainMenue_GUI main=new MainMenue_GUI();
+
+ CreateLectureLink_GUI.this.setVisible(false);
+ MainMenue_GUI main = new MainMenue_GUI();
main.setVisible(true);
}
});
lblHauptmen.setForeground(Color.BLUE);
lblHauptmen.setBounds(10, 11, 61, 14);
contentPanel.add(lblHauptmen);
-
+
JLabel label_1 = new JLabel(">");
label_1.setBounds(69, 11, 13, 14);
contentPanel.add(label_1);
-
- JLabel lblVlimage = new JLabel("VL-Image");
+
+ JLabel lblVlimage = new JLabel("Veranstaltung");
lblVlimage.setForeground(Color.BLUE);
- lblVlimage.setBounds(81, 11, 45, 14);
+ lblVlimage.setBounds(81, 11, 76, 14);
contentPanel.add(lblVlimage);
-
+
JLabel label_2 = new JLabel(">");
- label_2.setBounds(133, 11, 13, 14);
+ label_2.setBounds(151, 11, 13, 14);
contentPanel.add(label_2);
-
+
JLabel lblNewLabel_1 = new JLabel("Imageauswahl");
- lblNewLabel_1.setBounds(146, 11, 85, 14);
+ lblNewLabel_1.setBounds(164, 11, 85, 14);
contentPanel.add(lblNewLabel_1);
-
+
JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
tabbedPane.setBounds(10, 197, 557, 300);
contentPanel.add(tabbedPane);
-
+
JScrollPane scrollPaneMyImage = new JScrollPane();
- JTable tablemyImages=new JTable();
+
tablemyImages.setModel(model);
tablemyImages.getColumnModel().getColumn(1).sizeWidthToFit();
tablemyImages.getColumnModel().getColumn(2).sizeWidthToFit();
tablemyImages.getColumnModel().getColumn(3).sizeWidthToFit();
tablemyImages.getColumnModel().getColumn(4).sizeWidthToFit();
tablemyImages.getColumnModel().getColumn(5).sizeWidthToFit();
-
+
JScrollPane scrollPaneAllImages = new JScrollPane();
- tableAllImages=new JTable();
+ tableAllImages = new JTable();
tableAllImages.setModel(modelAll);
tableAllImages.getColumnModel().getColumn(1).sizeWidthToFit();
tableAllImages.getColumnModel().getColumn(2).sizeWidthToFit();
tableAllImages.getColumnModel().getColumn(3).sizeWidthToFit();
tableAllImages.getColumnModel().getColumn(4).sizeWidthToFit();
tableAllImages.getColumnModel().getColumn(5).sizeWidthToFit();
-
-
-
- scrollPaneAllImages.setViewportView(tableAllImages);
- tabbedPane.addTab("Alle", null, scrollPaneAllImages, null);
+
+ scrollPaneAllImages.setViewportView(tableAllImages);
+ tabbedPane.addTab("Alle", null, scrollPaneAllImages, null);
scrollPaneMyImage.setViewportView(tablemyImages);
tabbedPane.addTab("Meine Images", null, scrollPaneMyImage, null);
-
+
JScrollPane scrollPaneCoopImages = new JScrollPane();
- JTable tableCoopImages=new JTable();
+
tableCoopImages.setModel(model);
tableCoopImages.getColumnModel().getColumn(1).sizeWidthToFit();
tableCoopImages.getColumnModel().getColumn(2).sizeWidthToFit();
@@ -303,10 +301,12 @@ public class LinkImage_GUI extends JFrame {
tableCoopImages.getColumnModel().getColumn(5).sizeWidthToFit();
scrollPaneCoopImages.setViewportView(tableCoopImages);
- tabbedPane.addTab("Kooperative Images", null, scrollPaneCoopImages, null);
-
+ tabbedPane.addTab("Kooperative Images", null, scrollPaneCoopImages,
+ null);
+ tabbedPane.setEnabledAt(2, false);
+
JScrollPane scrollPanePublicImages = new JScrollPane();
- JTable tablePublicImages=new JTable();
+
tablePublicImages.setModel(model);
tablePublicImages.getColumnModel().getColumn(1).sizeWidthToFit();
tablePublicImages.getColumnModel().getColumn(2).sizeWidthToFit();
@@ -315,10 +315,12 @@ public class LinkImage_GUI extends JFrame {
tablePublicImages.getColumnModel().getColumn(5).sizeWidthToFit();
scrollPanePublicImages.setViewportView(tablePublicImages);
- tabbedPane.addTab("\u00D6ffentliche Images", null, scrollPanePublicImages, null);
-
+ tabbedPane.addTab("\u00D6ffentliche Images", null,
+ scrollPanePublicImages, null);
+ tabbedPane.setEnabledAt(3, false);
+
JScrollPane scrollPanePublicVorlagen = new JScrollPane();
- JTable tablePublicVorlagen=new JTable();
+
tablePublicVorlagen.setModel(model);
tablePublicVorlagen.getColumnModel().getColumn(1).sizeWidthToFit();
tablePublicVorlagen.getColumnModel().getColumn(2).sizeWidthToFit();
@@ -327,9 +329,11 @@ public class LinkImage_GUI extends JFrame {
tablePublicVorlagen.getColumnModel().getColumn(5).sizeWidthToFit();
scrollPanePublicVorlagen.setViewportView(tablePublicVorlagen);
- tabbedPane.addTab("\u00D6ffentliche Vorlagen", null, scrollPanePublicVorlagen, null);
-
- initTableModel(modelAll);
+ tabbedPane.addTab("\u00D6ffentliche Vorlagen", null,
+ scrollPanePublicVorlagen, null);
+ tabbedPane.setEnabledAt(4, false);
+
+ initTableModel(modelAll);
{
JPanel buttonPane = new JPanel();
buttonPane.setBounds(0, 640, 597, 33);
@@ -337,89 +341,150 @@ public class LinkImage_GUI extends JFrame {
buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
getContentPane().add(buttonPane);
{
- JButton okButton = new JButton("Zur\u00FCck");
- okButton.addActionListener(new ActionListener() {
+ JButton cancelButton = new JButton("Zur\u00FCck");
+ cancelButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
-
- MainMenue_GUI main=new MainMenue_GUI();
- main.setVisible(true);
+ con.closeThriftConnection();
+ CreateLectureAllgemein_GUI eVAG = new CreateLectureAllgemein_GUI();
+ eVAG.setVisible(true);
dispose();
}
});
- okButton.setActionCommand("OK");
- buttonPane.add(okButton);
- getRootPane().setDefaultButton(okButton);
+ cancelButton.setActionCommand("CANCEL");
+ buttonPane.add(cancelButton);
+ getRootPane().setDefaultButton(cancelButton);
}
{
- JButton cancelButton = new JButton("Veranstaltung erzeugen und abschlie\u00DFen");
- cancelButton.addActionListener(new ActionListener() {
+ JButton doLinkButton = new JButton(
+ "Veranstaltung erzeugen und abschlie\u00DFen");
+ doLinkButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
-
- String imagename=tableAllImages.getValueAt(tableAllImages.getSelectedRow(), 0).toString();
- try {
- DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
- System.out.println(formatter.format(Lecture.lecture.getStartdate()).toString());
- client.writeLecturedata(Lecture.lecture.getName(), Lecture.lecture.getShortDesc(), Lecture.lecture.getDesc(), formatter.format(Lecture.lecture.getStartdate()).toString(), formatter.format(Lecture.lecture.getEnddate()).toString(), Lecture.lecture.isActive(), imagename, person.verantowrtlicher.getVorname(), person.verantowrtlicher.getName(), person.verantowrtlicher.getHochschule(), person.verantowrtlicher.getEMail(), person.verantowrtlicher.getTel(), person.verantowrtlicher.getFakultät());
- } catch (TException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
+
+ // check if a row is selected
+ if ((tableAllImages.getSelectedRow() != -1)
+ || (tablemyImages.getSelectedRow() != -1)
+ || (tableCoopImages.getSelectedRow() != -1)
+ || (tablePublicImages.getSelectedRow() != -1)
+ || (tablePublicVorlagen.getSelectedRow() != -1)) {
+
+ // a row is selected, do operations
+ String imagename = tableAllImages.getValueAt(
+ tableAllImages.getSelectedRow(), 0)
+ .toString();
+ try {
+ DateFormat formatter = new SimpleDateFormat(
+ "yyyy-MM-dd hh:mm:ss");
+ System.out.println("Veranstaltung angelegt um: "
+ + formatter.format(
+ Lecture.lecture.getStartdate())
+ .toString());
+ client.writeLecturedata(
+ Lecture.lecture.getName(),
+ Lecture.lecture.getShortDesc(),
+ Lecture.lecture.getDesc(),
+ formatter.format(
+ Lecture.lecture.getStartdate())
+ .toString(),
+ formatter.format(
+ Lecture.lecture.getEnddate())
+ .toString(),
+ Lecture.lecture.isActive(),
+ imagename,
+ person.verantwortlicher.getVorname(),
+ person.verantwortlicher.getName(),
+ person.verantwortlicher.getHochschule(),
+ person.verantwortlicher.getEMail(),
+ person.verantwortlicher.getTel(),
+ person.verantwortlicher.getFakultät());
+ JOptionPane
+ .showMessageDialog(
+ null,
+ "Ihre Veranstaltung wurde erfolgreich angelegt. Sie kehren nun zum Hauptmenü zurück.",
+ "Veranstaltung angelegt",
+ JOptionPane.INFORMATION_MESSAGE);
+ // zurück zum Menü
+ MainMenue_GUI m = new MainMenue_GUI();
+ m.setVisible(true);
+ } catch (TException e1) {
+ // TODO Auto-generated catch block
+ e1.printStackTrace();
+ JOptionPane
+ .showMessageDialog(
+ null,
+ "Beim Anlegen Ihrer Veranstaltung ist ein Fehler aufgetreten.",
+ "Error",
+ JOptionPane.ERROR_MESSAGE);
+ }
+ con.closeThriftConnection();
+ dispose();
+
+ } else {
+ // nothing selected
+ JOptionPane.showMessageDialog(null,
+ "Bitte wählen Sie ein Image aus.",
+ "Image Auswahl",
+ JOptionPane.INFORMATION_MESSAGE);
}
- dispose();
-
+
}
});
- cancelButton.setActionCommand("Cancel");
- buttonPane.add(cancelButton);
+ doLinkButton.setActionCommand("OK");
+ buttonPane.add(doLinkButton);
}
}
-
+
JSeparator separator = new JSeparator();
separator.setBounds(0, 78, 597, 2);
getContentPane().add(separator);
-
+
JSeparator separator_1 = new JSeparator();
separator_1.setBounds(0, 627, 597, 2);
getContentPane().add(separator_1);
-
+
JMenuBar menuBar = new JMenuBar();
setJMenuBar(menuBar);
-
+
JMenu mnNewMenu = new JMenu("Suchen");
menuBar.add(mnNewMenu);
-
+
JMenuItem mntmVlSuche = new JMenuItem("VL Suche");
mnNewMenu.add(mntmVlSuche);
-
+
JMenu mnNewMenu_1 = new JMenu("Hilfe");
menuBar.add(mnNewMenu_1);
-
+
JMenuItem mntmFaq = new JMenuItem("FAQ");
mnNewMenu_1.add(mntmFaq);
-
+
JMenuItem mntmOtrs = new JMenuItem("OTRS");
mnNewMenu_1.add(mntmOtrs);
-
+
}
-
- public DefaultTableModel initTableModel(DefaultTableModel model){
+
+ public DefaultTableModel initTableModel(DefaultTableModel model) {
List<server.Image> images;
try {
images = client.getImageList();
- Iterator<server.Image> i=images.iterator();
+ Iterator<server.Image> i = images.iterator();
List<Object[]> ListObj = new ArrayList<Object[]>();
- int x=0;
-
- while(i.hasNext())
- {
-
+ int x = 0;
+
+ while (i.hasNext()) {
+
i.next();
- Object [] obj={images.get(x).getImageName(),images.get(x).getLicenseRestriction(),images.get(x).getOsName(),images.get(x).getLectureName(),images.get(x).getUpdateTime(),images.get(x).getUserData()};
+ Object[] obj = { images.get(x).getImageName(),
+ images.get(x).getLicenseRestriction(),
+ images.get(x).getOsName(),
+ images.get(x).getLectureName(),
+ images.get(x).getUserData(),
+ images.get(x).getUpdateTime()
+ };
ListObj.add(obj);
model.addRow(ListObj.get(x));
x++;
-
+
}
-
+
return model;
} catch (TException e1) {
// TODO Auto-generated catch block
@@ -427,7 +492,5 @@ public class LinkImage_GUI extends JFrame {
}
return model;
}
-
- }
-
+}
diff --git a/Dozentenmodul/src/GUI/EingabeVeranstaltungAllgemein_GUI.java b/Dozentenmodul/src/gui/lecture/EditLectureAllgemein_GUI.java
index 86052152..115a9f1f 100644
--- a/Dozentenmodul/src/GUI/EingabeVeranstaltungAllgemein_GUI.java
+++ b/Dozentenmodul/src/gui/lecture/EditLectureAllgemein_GUI.java
@@ -1,6 +1,8 @@
-package gui;
+package gui.lecture;
+import gui.intro.MainMenue_GUI;
+
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
@@ -21,7 +23,6 @@ import javax.swing.JLabel;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
-import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JSeparator;
import javax.swing.JTextField;
@@ -31,11 +32,18 @@ import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.border.EmptyBorder;
import javax.swing.border.TitledBorder;
+import models.Image;
+import models.Lecture;
import models.person;
+import javax.swing.JTextArea;
+import java.awt.ScrollPane;
+import com.toedter.calendar.JDateChooser;
+import javax.swing.JRadioButton;
+import javax.swing.ButtonGroup;
@SuppressWarnings("serial")
-public class EingabeVeranstaltungAllgemein_GUI extends JFrame {
+public class EditLectureAllgemein_GUI extends JFrame {
private final JPanel contentPanel = new JPanel();
String[] result;
@@ -43,12 +51,19 @@ public class EingabeVeranstaltungAllgemein_GUI extends JFrame {
private JTextField Nachname;
private JTextField Hochschule;
private JTextField EMail;
+ private JTextField textFieldLaborname;
+ JTextArea description;
+ JRadioButton radioButtonyes;
+ JDateChooser dateChooserend;
+ JDateChooser dateChooserstart;
+ JRadioButton radioButtonno;
+ private final ButtonGroup buttonGroup = new ButtonGroup();
/**
* Launch the application.
*/
public static void main(String[] args) {
try {
- EingabeVeranstaltungAllgemein_GUI dialog = new EingabeVeranstaltungAllgemein_GUI();
+ EditLectureAllgemein_GUI dialog = new EditLectureAllgemein_GUI();
dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
dialog.setVisible(true);
} catch (Exception e) {
@@ -59,7 +74,7 @@ public class EingabeVeranstaltungAllgemein_GUI extends JFrame {
/**
* Create the dialog.
*/
- public EingabeVeranstaltungAllgemein_GUI() {
+ public EditLectureAllgemein_GUI() {
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(WindowEvent arg0) {
@@ -99,7 +114,7 @@ public class EingabeVeranstaltungAllgemein_GUI extends JFrame {
txtpnBitteWhlenSie.setEditable(false);
txtpnBitteWhlenSie.setBackground(SystemColor.menu);
txtpnBitteWhlenSie.setText("Geben Sie hier bitte einen sprechenden Imagename sowie Ihre Kontaktdaten an");
- txtpnBitteWhlenSie.setBounds(10, 36, 509, 32);
+ txtpnBitteWhlenSie.setBounds(10, 36, 509, 21);
panel.add(txtpnBitteWhlenSie);
}
contentPanel.setBounds(10, 85, 577, 493);
@@ -111,7 +126,7 @@ public class EingabeVeranstaltungAllgemein_GUI extends JFrame {
JPanel panel_1 = new JPanel();
panel_1.setBackground(SystemColor.menu);
panel_1.setBorder(new TitledBorder(null, "Informationen zum Besitzer", TitledBorder.LEADING, TitledBorder.TOP, null, null));
- panel_1.setBounds(10, 66, 557, 369);
+ panel_1.setBounds(10, 331, 557, 162);
contentPanel.add(panel_1);
panel_1.setLayout(null);
@@ -121,8 +136,10 @@ public class EingabeVeranstaltungAllgemein_GUI extends JFrame {
panel_1.add(label);
Vorname = new JTextField();
+ Vorname.setEditable(false);
+ Vorname.setEnabled(false);
+ Vorname.setText(person.verantwortlicher.getVorname());
Vorname.setBackground(Color.WHITE);
- Vorname.setText((String) null);
Vorname.setColumns(10);
Vorname.setBounds(145, 33, 350, 20);
panel_1.add(Vorname);
@@ -133,8 +150,10 @@ public class EingabeVeranstaltungAllgemein_GUI extends JFrame {
panel_1.add(label_7);
Nachname = new JTextField();
+ Nachname.setEnabled(false);
+ Nachname.setEditable(false);
+ Nachname.setText(person.verantwortlicher.getName());
Nachname.setBackground(Color.WHITE);
- Nachname.setText((String) null);
Nachname.setColumns(10);
Nachname.setBounds(145, 64, 350, 20);
panel_1.add(Nachname);
@@ -145,8 +164,10 @@ public class EingabeVeranstaltungAllgemein_GUI extends JFrame {
panel_1.add(label_8);
Hochschule = new JTextField();
+ Hochschule.setEnabled(false);
+ Hochschule.setEditable(false);
+ Hochschule.setText(person.verantwortlicher.getHochschule());
Hochschule.setBackground(Color.WHITE);
- Hochschule.setText((String) null);
Hochschule.setColumns(10);
Hochschule.setBounds(145, 95, 350, 20);
panel_1.add(Hochschule);
@@ -157,8 +178,10 @@ public class EingabeVeranstaltungAllgemein_GUI extends JFrame {
panel_1.add(label_9);
EMail = new JTextField();
+ EMail.setEnabled(false);
+ EMail.setEditable(false);
+ EMail.setText(person.verantwortlicher.getEMail());
EMail.setBackground(Color.WHITE);
- EMail.setText((String) null);
EMail.setColumns(10);
EMail.setBounds(145, 126, 350, 20);
panel_1.add(EMail);
@@ -170,16 +193,12 @@ public class EingabeVeranstaltungAllgemein_GUI extends JFrame {
panel.setBorder(new EmptyBorder(5, 5, 5, 5));
panel.setBackground(SystemColor.menu);
- JLabel lblPflichtfelder = new JLabel("* Pflichtfelder");
- lblPflichtfelder.setBounds(10, 442, 136, 14);
- contentPanel.add(lblPflichtfelder);
-
JLabel lblHauptmen = new JLabel("Hauptmen\u00FC");
lblHauptmen.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent arg0) {
- EingabeVeranstaltungAllgemein_GUI.this.setVisible(false);
+ EditLectureAllgemein_GUI.this.setVisible(false);
MainMenue_GUI main=new MainMenue_GUI();
main.setVisible(true);
}
@@ -204,6 +223,96 @@ public class EingabeVeranstaltungAllgemein_GUI extends JFrame {
JLabel lblNewLabel_1 = new JLabel("Neu");
lblNewLabel_1.setBounds(146, 11, 46, 14);
contentPanel.add(lblNewLabel_1);
+
+ JPanel panel_2 = new JPanel();
+ panel_2.setLayout(null);
+ panel_2.setBorder(new TitledBorder(null, "Veranstaltungsdaten", TitledBorder.LEADING, TitledBorder.TOP, null, null));
+ panel_2.setBackground(SystemColor.menu);
+ panel_2.setBounds(10, 36, 557, 284);
+ contentPanel.add(panel_2);
+
+ JLabel label_3 = new JLabel("Laborname (Anzeigename): *");
+ label_3.setBounds(10, 25, 180, 14);
+ panel_2.add(label_3);
+
+ textFieldLaborname = new JTextField();
+ textFieldLaborname.setText(Lecture.lecture.getName());
+ textFieldLaborname.setColumns(10);
+ textFieldLaborname.setBounds(200, 22, 347, 20);
+ panel_2.add(textFieldLaborname);
+
+ JTextArea textArea = new JTextArea();
+ textArea.setWrapStyleWord(true);
+ textArea.setText("Geben Sie bitte einen sprechenden Namen f\u00FCr das Image an. Dieser soll jedoch recht allgemein gehalten werden.\r\nBeispiel: \"Programmieren\", nicht \"Programmieren 1\"");
+ textArea.setLineWrap(true);
+ textArea.setFont(new Font("Tahoma", Font.PLAIN, 12));
+ textArea.setBackground(SystemColor.menu);
+ textArea.setBounds(10, 49, 537, 49);
+ panel_2.add(textArea);
+
+ JLabel label_4 = new JLabel("Beschreibung: *");
+ label_4.setBounds(10, 111, 180, 14);
+ panel_2.add(label_4);
+
+ ScrollPane scrollPane = new ScrollPane();
+ scrollPane.setBounds(200, 104, 347, 78);
+ panel_2.add(scrollPane);
+ description = new JTextArea();
+ description.setText(Lecture.lecture.getDesc());
+ description.setLineWrap(true);
+ scrollPane.add(description);
+ description.setBounds(0, 0, 4, 22);
+ scrollPane.add(description);
+
+ dateChooserend = new JDateChooser();
+ dateChooserend.setDateFormatString("dd-MM-yyyy hh:mm:ss");
+ dateChooserend.setDate(Lecture.lecture.getEnddate());
+ dateChooserend.setBounds(385, 188, 100, 20);
+ panel_2.add(dateChooserend);
+
+ JLabel label_5 = new JLabel("bis");
+ label_5.setBounds(351, 188, 24, 20);
+ panel_2.add(label_5);
+
+ dateChooserstart = new JDateChooser();
+ dateChooserstart.setDateFormatString("yyyy-MM-dd hh:mm:ss");
+ dateChooserstart.setDate(Lecture.lecture.getStartdate());
+ dateChooserstart.setBounds(240, 188, 101, 20);
+ panel_2.add(dateChooserstart);
+
+ JLabel label_6 = new JLabel("von:");
+ label_6.setBounds(200, 188, 30, 20);
+ panel_2.add(label_6);
+
+ JLabel label_10 = new JLabel("G\u00FCltigkeitsdatum: *");
+ label_10.setBounds(10, 188, 250, 14);
+ panel_2.add(label_10);
+
+ JLabel label_11 = new JLabel("Aktiv:");
+ label_11.setBounds(10, 229, 250, 14);
+ panel_2.add(label_11);
+
+ radioButtonyes = new JRadioButton("Ja");
+ buttonGroup.add(radioButtonyes);
+ if(Lecture.lecture.isActive()==true)
+ {
+ radioButtonyes.setSelected(true);
+ }else
+ {
+ radioButtonno.setSelected(true);
+ }
+
+ radioButtonyes.setBounds(240, 225, 109, 23);
+ panel_2.add(radioButtonyes);
+
+ radioButtonno = new JRadioButton("Nein");
+ buttonGroup.add(radioButtonno);
+ radioButtonno.setBounds(385, 225, 109, 23);
+ panel_2.add(radioButtonno);
+
+ JLabel label_12 = new JLabel("(Im VMChooser sichtbar)");
+ label_12.setBounds(10, 254, 250, 14);
+ panel_2.add(label_12);
{
JPanel buttonPane = new JPanel();
buttonPane.setBounds(0, 640, 597, 33);
@@ -214,13 +323,20 @@ public class EingabeVeranstaltungAllgemein_GUI extends JFrame {
JButton okButton = new JButton("Zur\u00FCck");
okButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
- person.verantowrtlicher.setVorname(Vorname.getText());
- person.verantowrtlicher.setName(Nachname.getText());
- person.verantowrtlicher.setEMail(EMail.getText());
-
- person.verantowrtlicher.setHochschule(Hochschule.getText());
-
+ if(radioButtonyes.isSelected()==true)
+ {
+ Lecture.lecture.setActive(true);
+ }
+ else
+ {
+ Lecture.lecture.setActive(false);
+ }
+ Lecture.lecture.setName(textFieldLaborname.getText());
+ Lecture.lecture.setDesc(description.getText());
+ Lecture.lecture.setEnddate(dateChooserend.getDate());
+ Lecture.lecture.setStartdate(dateChooserstart.getDate());
+ Image.image.setImagename(textFieldLaborname.getText());
MainMenue_GUI sr=new MainMenue_GUI();
sr.setVisible(true);
@@ -235,23 +351,26 @@ public class EingabeVeranstaltungAllgemein_GUI extends JFrame {
JButton cancelButton = new JButton("Weiter");
cancelButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
- if(Vorname.getText().isEmpty()==false && Nachname.getText().isEmpty()==false && Hochschule.getText().isEmpty()==false&&EMail.getText().isEmpty()==false)
+ if(radioButtonyes.isSelected()==true)
{
- person.verantowrtlicher.setVorname(Vorname.getText());
- person.verantowrtlicher.setName(Nachname.getText());
- person.verantowrtlicher.setEMail(EMail.getText());
-
- person.verantowrtlicher.setHochschule(Hochschule.getText());
-
-
- EingabeVeranstatlungTechnisch_GUI ea=new EingabeVeranstatlungTechnisch_GUI();
- ea.setVisible(true);
- dispose();
+ Lecture.lecture.setActive(true);
}
- else{
- JOptionPane.showMessageDialog(null, "Bitte geben Sie alle notwendigen Daten an!",
- "Error", JOptionPane.ERROR_MESSAGE);
+ else
+ {
+ Lecture.lecture.setActive(false);
}
+
+ Lecture.lecture.setName(textFieldLaborname.getText());
+ Lecture.lecture.setNewName(textFieldLaborname.getText());
+ Lecture.lecture.setDesc(description.getText());
+ Lecture.lecture.setEnddate(dateChooserend.getDate());
+ Lecture.lecture.setStartdate(dateChooserstart.getDate());
+ Image.image.setImagename(textFieldLaborname.getText());
+
+
+ EditLectureLink_GUI ev=new EditLectureLink_GUI();
+ ev.setVisible(true);
+ dispose();
}
});
cancelButton.setActionCommand("Cancel");
@@ -267,6 +386,10 @@ public class EingabeVeranstaltungAllgemein_GUI extends JFrame {
separator_1.setBounds(0, 627, 597, 2);
getContentPane().add(separator_1);
+ JLabel lblPflichtfelder = new JLabel("* Pflichtfelder");
+ lblPflichtfelder.setBounds(32, 602, 136, 14);
+ getContentPane().add(lblPflichtfelder);
+
JMenuBar menuBar = new JMenuBar();
setJMenuBar(menuBar);
@@ -286,4 +409,6 @@ public class EingabeVeranstaltungAllgemein_GUI extends JFrame {
mnNewMenu_1.add(mntmOtrs);
}
-}
+
+
+} \ No newline at end of file
diff --git a/Dozentenmodul/src/GUI/LinkImage_GUI.java b/Dozentenmodul/src/gui/lecture/EditLectureLink_GUI.java
index 38b3d5e3..c1fdec80 100644
--- a/Dozentenmodul/src/GUI/LinkImage_GUI.java
+++ b/Dozentenmodul/src/gui/lecture/EditLectureLink_GUI.java
@@ -1,6 +1,6 @@
-package gui;
-
+package gui.lecture;
+import gui.intro.MainMenue_GUI;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
@@ -20,7 +20,6 @@ import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
-
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JDialog;
@@ -29,6 +28,7 @@ import javax.swing.JLabel;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
+import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
@@ -42,36 +42,37 @@ import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.border.EmptyBorder;
import javax.swing.border.TitledBorder;
import javax.swing.table.DefaultTableModel;
-
import models.Lecture;
import models.person;
-
import org.apache.thrift.TException;
-
import server.Server.Client;
import thrift.ThriftConnection;
@SuppressWarnings("serial")
-public class LinkImage_GUI extends JFrame {
+public class EditLectureLink_GUI extends JFrame {
private final JPanel contentPanel = new JPanel();
String[] result;
JRadioButton rdbtnInternetJa;
JRadioButton rdbtnInternetNein;
JComboBox<String> comboBox;
- JTable tableAllImages;
+ JTable tableAllImages = new JTable();
+ JTable tablemyImages = new JTable();
+ JTable tableCoopImages = new JTable();
+ JTable tablePublicImages = new JTable();
+ JTable tablePublicVorlagen = new JTable();
private JTextField textFieldName;
- String[] titles= {"Image-Name", "Lizenzpflichtig", "OS", "Veranstaltung", "Verantwortlicher", "Letztes Update", "Schlagwort"};
- ThriftConnection thrift=new ThriftConnection();
- Client client=thrift.getThriftConnection();
+ String[] titles = { "Image-Name", "Lizenzpflichtig", "OS", "Veranstaltung",
+ "Verantwortlicher", "Letztes Update", "Schlagwort", "ID", "Version" };
+ ThriftConnection thrift = new ThriftConnection();
+ Client client = thrift.getThriftConnection();
-
/**
* Launch the application.
*/
public static void main(String[] args) {
try {
- LinkImage_GUI dialog = new LinkImage_GUI();
+ EditLectureLink_GUI dialog = new EditLectureLink_GUI();
dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
dialog.setVisible(true);
} catch (Exception e) {
@@ -82,7 +83,7 @@ public class LinkImage_GUI extends JFrame {
/**
* Create the dialog.
*/
- public LinkImage_GUI() {
+ public EditLectureLink_GUI() {
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(WindowEvent arg0) {
@@ -90,7 +91,7 @@ public class LinkImage_GUI extends JFrame {
}
});
setResizable(false);
-
+
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (ClassNotFoundException | InstantiationException
@@ -100,15 +101,13 @@ public class LinkImage_GUI extends JFrame {
}
setTitle("bwLehrpool Suite *Prototyp*");
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
- int top=(screenSize.height - 603) / 2;
- int left=(screenSize.width - 722) / 2;
+ int top = (screenSize.height - 603) / 2;
+ int left = (screenSize.width - 722) / 2;
setBounds(left, top, 603, 722);
-
- final DefaultTableModel modelAll = new DefaultTableModel( titles, 0 );
- final DefaultTableModel model = new DefaultTableModel( titles, 0 );
-
-
+ final DefaultTableModel modelAll = new DefaultTableModel(titles, 0);
+ final DefaultTableModel model = new DefaultTableModel(titles, 0);
+
getContentPane().setLayout(null);
{
JPanel panel = new JPanel();
@@ -117,16 +116,18 @@ public class LinkImage_GUI extends JFrame {
getContentPane().add(panel);
panel.setLayout(null);
{
- JLabel lblNewLabel = new JLabel("Suche nach VL-Image");
+ JLabel lblNewLabel = new JLabel(
+ "Image zur Verlinkung ausw\u00E4hlen");
lblNewLabel.setBounds(10, 11, 509, 22);
panel.add(lblNewLabel);
lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 18));
}
-
+
JTextPane txtpnBitteWhlenSie = new JTextPane();
txtpnBitteWhlenSie.setEditable(false);
txtpnBitteWhlenSie.setBackground(SystemColor.menu);
- txtpnBitteWhlenSie.setText("Hier k\u00F6nnen Sie nach Ihrem gew\u00FCnschten VL-Image suchen und dieses f\u00FCr weitere Schritte ausw\u00E4hlen");
+ txtpnBitteWhlenSie
+ .setText("W\u00E4hlen Sie bitte ein Image aus, auf dem Ihre Versanstaltung basiert.");
txtpnBitteWhlenSie.setBounds(10, 36, 509, 32);
panel.add(txtpnBitteWhlenSie);
}
@@ -135,72 +136,70 @@ public class LinkImage_GUI extends JFrame {
contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
getContentPane().add(contentPanel);
contentPanel.setLayout(null);
-
+
JPanel panel_1 = new JPanel();
panel_1.setBackground(SystemColor.menu);
- panel_1.setBorder(new TitledBorder(null, "Filterfunktionen", TitledBorder.LEADING, TitledBorder.TOP, null, null));
+ panel_1.setBorder(new TitledBorder(null, "Filterfunktionen",
+ TitledBorder.LEADING, TitledBorder.TOP, null, null));
panel_1.setBounds(10, 49, 557, 131);
contentPanel.add(panel_1);
panel_1.setLayout(null);
-
+
JLabel lblNewLabel_2 = new JLabel("Anzeigename:");
lblNewLabel_2.setBounds(10, 30, 250, 20);
panel_1.add(lblNewLabel_2);
-
+
JLabel lblInternetIstInnerhalb = new JLabel("Betriebssystem:");
lblInternetIstInnerhalb.setBounds(10, 58, 250, 20);
panel_1.add(lblInternetIstInnerhalb);
-
+
textFieldName = new JTextField();
textFieldName.addKeyListener(new KeyAdapter() {
@Override
public void keyReleased(KeyEvent e) {
- String stext=textFieldName.getText();
+ String stext = textFieldName.getText();
modelAll.setRowCount(0);
initTableModel(modelAll);
-
- if(stext!="")
- for(int i=0;i<modelAll.getRowCount();i++){
-
- if(modelAll.getValueAt(i, 0).toString().startsWith(stext)){
-
- }
- else
- {
- modelAll.removeRow(i);
+
+ if (stext != "")
+ for (int i = 0; i < modelAll.getRowCount(); i++) {
+
+ if (modelAll.getValueAt(i, 0).toString()
+ .startsWith(stext)) {
+
+ } else {
+ modelAll.removeRow(i);
+ }
}
- }
-
-
+
}
-
-
+
});
textFieldName.setBounds(270, 30, 250, 20);
panel_1.add(textFieldName);
textFieldName.setColumns(10);
-
- JLabel lblErweiterteSuche = new JLabel("<html><u>Erweiterte Suche</u></html>");
+
+ JLabel lblErweiterteSuche = new JLabel(
+ "<html><u>Erweiterte Suche</u></html>");
lblErweiterteSuche.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent arg0) {
- ExtendedSearch_GUI es=new ExtendedSearch_GUI();
+ ExtendedSearchForImages_GUI es = new ExtendedSearchForImages_GUI();
es.setVisible(true);
}
});
lblErweiterteSuche.setForeground(Color.BLUE);
-
+
lblErweiterteSuche.setBounds(431, 106, 89, 14);
panel_1.add(lblErweiterteSuche);
-
+
comboBox = new JComboBox<String>();
try {
- List<String> list=client.getAllOS();
+ List<String> list = client.getAllOS();
comboBox.addItem("");
- for(int i=0;i<list.size();i++)
- {
- comboBox.addItem(list.get(i));
+ for (int i = 0; i < list.size(); i++) {
+ comboBox.addItem(list.get(i));
}
} catch (TException e2) {
// TODO Auto-generated catch block
@@ -210,91 +209,84 @@ public class LinkImage_GUI extends JFrame {
public void actionPerformed(ActionEvent arg0) {
modelAll.setRowCount(0);
initTableModel(modelAll);
- String selItem=comboBox.getSelectedItem().toString();
- if(selItem!="")
- {
- for(int i=0;i<modelAll.getRowCount();i++){
-
- if(modelAll.getValueAt(i, 2).equals(selItem)){
-
- }
- else
- {
- modelAll.removeRow(i);
+ String selItem = comboBox.getSelectedItem().toString();
+ if (selItem != "") {
+ for (int i = 0; i < modelAll.getRowCount(); i++) {
+
+ if (modelAll.getValueAt(i, 2).equals(selItem)) {
+
+ } else {
+ modelAll.removeRow(i);
+ }
}
+
}
-
-
- }
}
});
comboBox.setBounds(270, 58, 250, 20);
panel_1.add(comboBox);
-
+
JLabel lblHauptmen = new JLabel("Hauptmen\u00FC");
lblHauptmen.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent arg0) {
-
- LinkImage_GUI.this.setVisible(false);
- MainMenue_GUI main=new MainMenue_GUI();
+
+ EditLectureLink_GUI.this.setVisible(false);
+ MainMenue_GUI main = new MainMenue_GUI();
main.setVisible(true);
}
});
lblHauptmen.setForeground(Color.BLUE);
lblHauptmen.setBounds(10, 11, 61, 14);
contentPanel.add(lblHauptmen);
-
+
JLabel label_1 = new JLabel(">");
label_1.setBounds(69, 11, 13, 14);
contentPanel.add(label_1);
-
- JLabel lblVlimage = new JLabel("VL-Image");
+
+ JLabel lblVlimage = new JLabel("Veranstaltung");
lblVlimage.setForeground(Color.BLUE);
- lblVlimage.setBounds(81, 11, 45, 14);
+ lblVlimage.setBounds(81, 11, 76, 14);
contentPanel.add(lblVlimage);
-
+
JLabel label_2 = new JLabel(">");
- label_2.setBounds(133, 11, 13, 14);
+ label_2.setBounds(151, 11, 13, 14);
contentPanel.add(label_2);
-
- JLabel lblNewLabel_1 = new JLabel("Imageauswahl");
- lblNewLabel_1.setBounds(146, 11, 85, 14);
+
+ JLabel lblNewLabel_1 = new JLabel("Veranstaltung verlinken");
+ lblNewLabel_1.setBounds(164, 11, 113, 14);
contentPanel.add(lblNewLabel_1);
-
+
JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
tabbedPane.setBounds(10, 197, 557, 300);
contentPanel.add(tabbedPane);
-
+
JScrollPane scrollPaneMyImage = new JScrollPane();
- JTable tablemyImages=new JTable();
+
tablemyImages.setModel(model);
tablemyImages.getColumnModel().getColumn(1).sizeWidthToFit();
tablemyImages.getColumnModel().getColumn(2).sizeWidthToFit();
tablemyImages.getColumnModel().getColumn(3).sizeWidthToFit();
tablemyImages.getColumnModel().getColumn(4).sizeWidthToFit();
tablemyImages.getColumnModel().getColumn(5).sizeWidthToFit();
-
+
JScrollPane scrollPaneAllImages = new JScrollPane();
- tableAllImages=new JTable();
tableAllImages.setModel(modelAll);
tableAllImages.getColumnModel().getColumn(1).sizeWidthToFit();
tableAllImages.getColumnModel().getColumn(2).sizeWidthToFit();
tableAllImages.getColumnModel().getColumn(3).sizeWidthToFit();
tableAllImages.getColumnModel().getColumn(4).sizeWidthToFit();
tableAllImages.getColumnModel().getColumn(5).sizeWidthToFit();
-
-
-
- scrollPaneAllImages.setViewportView(tableAllImages);
- tabbedPane.addTab("Alle", null, scrollPaneAllImages, null);
+
+ scrollPaneAllImages.setViewportView(tableAllImages);
+ tabbedPane.addTab("Alle", null, scrollPaneAllImages, null);
scrollPaneMyImage.setViewportView(tablemyImages);
tabbedPane.addTab("Meine Images", null, scrollPaneMyImage, null);
-
+
JScrollPane scrollPaneCoopImages = new JScrollPane();
- JTable tableCoopImages=new JTable();
+
tableCoopImages.setModel(model);
tableCoopImages.getColumnModel().getColumn(1).sizeWidthToFit();
tableCoopImages.getColumnModel().getColumn(2).sizeWidthToFit();
@@ -303,10 +295,12 @@ public class LinkImage_GUI extends JFrame {
tableCoopImages.getColumnModel().getColumn(5).sizeWidthToFit();
scrollPaneCoopImages.setViewportView(tableCoopImages);
- tabbedPane.addTab("Kooperative Images", null, scrollPaneCoopImages, null);
-
+ tabbedPane.addTab("Kooperative Images", null, scrollPaneCoopImages,
+ null);
+ tabbedPane.setEnabledAt(2, false);
+
JScrollPane scrollPanePublicImages = new JScrollPane();
- JTable tablePublicImages=new JTable();
+
tablePublicImages.setModel(model);
tablePublicImages.getColumnModel().getColumn(1).sizeWidthToFit();
tablePublicImages.getColumnModel().getColumn(2).sizeWidthToFit();
@@ -315,10 +309,12 @@ public class LinkImage_GUI extends JFrame {
tablePublicImages.getColumnModel().getColumn(5).sizeWidthToFit();
scrollPanePublicImages.setViewportView(tablePublicImages);
- tabbedPane.addTab("\u00D6ffentliche Images", null, scrollPanePublicImages, null);
-
+ tabbedPane.addTab("\u00D6ffentliche Images", null,
+ scrollPanePublicImages, null);
+ tabbedPane.setEnabledAt(3, false);
+
JScrollPane scrollPanePublicVorlagen = new JScrollPane();
- JTable tablePublicVorlagen=new JTable();
+
tablePublicVorlagen.setModel(model);
tablePublicVorlagen.getColumnModel().getColumn(1).sizeWidthToFit();
tablePublicVorlagen.getColumnModel().getColumn(2).sizeWidthToFit();
@@ -327,9 +323,16 @@ public class LinkImage_GUI extends JFrame {
tablePublicVorlagen.getColumnModel().getColumn(5).sizeWidthToFit();
scrollPanePublicVorlagen.setViewportView(tablePublicVorlagen);
- tabbedPane.addTab("\u00D6ffentliche Vorlagen", null, scrollPanePublicVorlagen, null);
-
- initTableModel(modelAll);
+ tabbedPane.addTab("\u00D6ffentliche Vorlagen", null,
+ scrollPanePublicVorlagen, null);
+ tabbedPane.setEnabledAt(4, false);
+
+ JButton btnLinkLschen = new JButton("Link l\u00F6schen");
+ btnLinkLschen.setEnabled(false);
+ btnLinkLschen.setBounds(478, 508, 89, 23);
+ contentPanel.add(btnLinkLschen);
+
+ initTableModel(modelAll);
{
JPanel buttonPane = new JPanel();
buttonPane.setBounds(0, 640, 597, 33);
@@ -340,9 +343,9 @@ public class LinkImage_GUI extends JFrame {
JButton okButton = new JButton("Zur\u00FCck");
okButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
-
- MainMenue_GUI main=new MainMenue_GUI();
- main.setVisible(true);
+
+ EditLectureAllgemein_GUI el = new EditLectureAllgemein_GUI();
+ el.setVisible(true);
dispose();
}
});
@@ -351,75 +354,126 @@ public class LinkImage_GUI extends JFrame {
getRootPane().setDefaultButton(okButton);
}
{
- JButton cancelButton = new JButton("Veranstaltung erzeugen und abschlie\u00DFen");
+ JButton cancelButton = new JButton(
+ "Veranstaltung ändern und abschlie\u00DFen");
cancelButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
-
- String imagename=tableAllImages.getValueAt(tableAllImages.getSelectedRow(), 0).toString();
- try {
- DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
- System.out.println(formatter.format(Lecture.lecture.getStartdate()).toString());
- client.writeLecturedata(Lecture.lecture.getName(), Lecture.lecture.getShortDesc(), Lecture.lecture.getDesc(), formatter.format(Lecture.lecture.getStartdate()).toString(), formatter.format(Lecture.lecture.getEnddate()).toString(), Lecture.lecture.isActive(), imagename, person.verantowrtlicher.getVorname(), person.verantowrtlicher.getName(), person.verantowrtlicher.getHochschule(), person.verantowrtlicher.getEMail(), person.verantowrtlicher.getTel(), person.verantowrtlicher.getFakultät());
- } catch (TException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
+
+ // check if a row is selected
+ if ((tableAllImages.getSelectedRow() != -1)
+ || (tablemyImages.getSelectedRow() != -1)
+ || (tableCoopImages.getSelectedRow() != -1)
+ || (tablePublicImages.getSelectedRow() != -1)
+ || (tablePublicVorlagen.getSelectedRow() != -1)) {
+
+ // a row is selected, do operations
+ String imagename = tableAllImages.getValueAt(
+ tableAllImages.getSelectedRow(), 0)
+ .toString();
+ System.out.println("ID: "+Lecture.lecture.getid());
+
+ try {
+
+ DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
+ System.out.println( formatter.format(
+ Lecture.lecture.getEnddate())
+ .toString());
+ client.updateLecturedata(Lecture.lecture.getName(),
+ Lecture.lecture.getNewName(),
+ Lecture.lecture.getShortDesc(),
+ Lecture.lecture.getDesc(),
+ formatter.format(
+ Lecture.lecture.getStartdate())
+ .toString(),
+ formatter.format(
+ Lecture.lecture.getEnddate())
+ .toString(),
+ Lecture.lecture.isActive(),
+ imagename,
+ person.verantwortlicher.getVorname(),
+ person.verantwortlicher.getName(),
+ person.verantwortlicher.getHochschule(),
+ person.verantwortlicher.getEMail(),
+ person.verantwortlicher.getTel(),
+ person.verantwortlicher.getFakultät(),
+ Lecture.lecture.getid());
+
+ } catch (TException e1) {
+ // TODO Auto-generated catch block
+ e1.printStackTrace();
+ }
+
+ } else {
+ // nothing selected
+ JOptionPane.showMessageDialog(null,
+ "Bitte wählen Sie ein Image aus.",
+ "Image Auswahl",
+ JOptionPane.INFORMATION_MESSAGE);
+
}
+ MainMenue_GUI m = new MainMenue_GUI();
+ m.setVisible(true);
dispose();
-
+
}
});
cancelButton.setActionCommand("Cancel");
buttonPane.add(cancelButton);
}
}
-
+
JSeparator separator = new JSeparator();
separator.setBounds(0, 78, 597, 2);
getContentPane().add(separator);
-
+
JSeparator separator_1 = new JSeparator();
separator_1.setBounds(0, 627, 597, 2);
getContentPane().add(separator_1);
-
+
JMenuBar menuBar = new JMenuBar();
setJMenuBar(menuBar);
-
+
JMenu mnNewMenu = new JMenu("Suchen");
menuBar.add(mnNewMenu);
-
+
JMenuItem mntmVlSuche = new JMenuItem("VL Suche");
mnNewMenu.add(mntmVlSuche);
-
+
JMenu mnNewMenu_1 = new JMenu("Hilfe");
menuBar.add(mnNewMenu_1);
-
+
JMenuItem mntmFaq = new JMenuItem("FAQ");
mnNewMenu_1.add(mntmFaq);
-
+
JMenuItem mntmOtrs = new JMenuItem("OTRS");
mnNewMenu_1.add(mntmOtrs);
-
+
}
-
- public DefaultTableModel initTableModel(DefaultTableModel model){
+
+ public DefaultTableModel initTableModel(DefaultTableModel model) {
List<server.Image> images;
try {
images = client.getImageList();
- Iterator<server.Image> i=images.iterator();
+ Iterator<server.Image> i = images.iterator();
List<Object[]> ListObj = new ArrayList<Object[]>();
- int x=0;
-
- while(i.hasNext())
- {
-
+ int x = 0;
+
+ while (i.hasNext()) {
+
i.next();
- Object [] obj={images.get(x).getImageName(),images.get(x).getLicenseRestriction(),images.get(x).getOsName(),images.get(x).getLectureName(),images.get(x).getUpdateTime(),images.get(x).getUserData()};
+ Object[] obj = { images.get(x).getImageName(),
+ images.get(x).getLicenseRestriction(),
+ images.get(x).getOsName(),
+ images.get(x).getLectureName(),
+ images.get(x).getUserData(),
+ images.get(x).getUpdateTime(), "", images.get(x).id,
+ images.get(x).getVersion() };
ListObj.add(obj);
model.addRow(ListObj.get(x));
x++;
-
+
}
-
+
return model;
} catch (TException e1) {
// TODO Auto-generated catch block
@@ -427,7 +481,4 @@ public class LinkImage_GUI extends JFrame {
}
return model;
}
-
- }
-
-
+}
diff --git a/Dozentenmodul/src/gui/lecture/EditLectureSearch_GUI.java b/Dozentenmodul/src/gui/lecture/EditLectureSearch_GUI.java
new file mode 100644
index 00000000..ae50fa22
--- /dev/null
+++ b/Dozentenmodul/src/gui/lecture/EditLectureSearch_GUI.java
@@ -0,0 +1,529 @@
+package gui.lecture;
+
+import gui.image.EditImageAllgemein_GUI;
+import gui.intro.MainMenue_GUI;
+import java.awt.Color;
+import java.awt.Dimension;
+import java.awt.FlowLayout;
+import java.awt.Font;
+import java.awt.SystemColor;
+import java.awt.Toolkit;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.awt.event.KeyAdapter;
+import java.awt.event.KeyEvent;
+import java.awt.event.MouseAdapter;
+import java.awt.event.MouseEvent;
+import java.awt.event.WindowAdapter;
+import java.awt.event.WindowEvent;
+import java.text.DateFormat;
+import java.text.ParseException;
+import java.text.SimpleDateFormat;
+import java.util.Iterator;
+import java.util.List;
+import javax.swing.JButton;
+import javax.swing.JDialog;
+import javax.swing.JFrame;
+import javax.swing.JLabel;
+import javax.swing.JMenu;
+import javax.swing.JMenuBar;
+import javax.swing.JMenuItem;
+import javax.swing.JOptionPane;
+import javax.swing.JPanel;
+import javax.swing.JRadioButton;
+import javax.swing.JScrollPane;
+import javax.swing.JSeparator;
+import javax.swing.JTabbedPane;
+import javax.swing.JTable;
+import javax.swing.JTextField;
+import javax.swing.JTextPane;
+import javax.swing.RowFilter;
+import javax.swing.UIManager;
+import javax.swing.UnsupportedLookAndFeelException;
+import javax.swing.border.EmptyBorder;
+import javax.swing.border.TitledBorder;
+import javax.swing.event.ChangeEvent;
+import javax.swing.event.ChangeListener;
+import javax.swing.table.DefaultTableModel;
+import javax.swing.table.TableModel;
+import javax.swing.table.TableRowSorter;
+import models.Lecture;
+import models.person;
+import org.apache.thrift.TException;
+import server.Server.Client;
+import thrift.ThriftConnection;
+
+@SuppressWarnings("serial")
+public class EditLectureSearch_GUI extends JFrame {
+
+ private final JPanel contentPanel = new JPanel();
+ String[] result;
+ JRadioButton rdbtnInternetJa;
+ JRadioButton rdbtnInternetNein;
+ JTable tableAllLectures;
+ JTable tablemyLectures;
+ JTable tableCoopImages;
+ JTable tablePublicVorlagen;
+ JTable tablePublicImages;
+ private JTextField textFieldName;
+ JTabbedPane tabbedPane;
+ String[] titles = { "Veranstaltungsname", "Beschreibung",
+ "Gültigkeitsdatum", "Aktiv", "Letzte Benutzung",
+ "Verantwortlicher", "Image", "Schlagwort", "ID" };
+ ThriftConnection con = new ThriftConnection();
+ Client client = con.getThriftConnection();
+ final DefaultTableModel modelAll = new DefaultTableModel(titles, 0);
+ final DefaultTableModel modelMyLectures = new DefaultTableModel(titles, 0);
+ final TableRowSorter<TableModel> rowSorterAll = new TableRowSorter<TableModel>(
+ modelAll);
+ final TableRowSorter<TableModel> rowSorterMyLectures = new TableRowSorter<TableModel>(
+ modelMyLectures);
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ try {
+ EditLectureSearch_GUI dialog = new EditLectureSearch_GUI();
+ dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
+ dialog.setVisible(true);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * Create the dialog.
+ */
+ public EditLectureSearch_GUI() {
+ addWindowListener(new WindowAdapter() {
+ @Override
+ public void windowClosing(WindowEvent arg0) {
+ // Beendet die Anwendung nach klick auf X
+ con.closeThriftConnection();
+ System.exit(0);
+ }
+ });
+ // Verhindert das Vergrößern Des Fensters
+ setResizable(false);
+
+ try {
+ // Setzt das Look & Feel auf System
+ UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
+ } catch (ClassNotFoundException | InstantiationException
+ | IllegalAccessException | UnsupportedLookAndFeelException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ // Setzt den Fenstertitel
+ setTitle("bwLehrpool Suite *Prototyp*");
+ // Zentriert das Fenster in die Bildmitte
+ Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
+ int top = (screenSize.height - 722) / 2;
+ int left = (screenSize.width - 603) / 2;
+ setBounds(left, top, 603, 722);
+
+ final DefaultTableModel model = new DefaultTableModel(titles, 0);
+
+ getContentPane().setLayout(null);
+ {
+ JPanel panel = new JPanel();
+ panel.setBackground(SystemColor.menu);
+ panel.setBounds(10, 11, 577, 57);
+ getContentPane().add(panel);
+ panel.setLayout(null);
+ {
+ JLabel lblNewLabel = new JLabel("Suche nach Veranstaltung");
+ lblNewLabel.setBounds(10, 11, 509, 22);
+ panel.add(lblNewLabel);
+ lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 18));
+ }
+
+ JTextPane txtpnBitteWhlenSie = new JTextPane();
+ txtpnBitteWhlenSie.setEditable(false);
+ txtpnBitteWhlenSie.setBackground(SystemColor.menu);
+ txtpnBitteWhlenSie
+ .setText("Hier k\u00F6nnen Sie nach Ihrem gew\u00FCnschten VL-Image suchen und dieses f\u00FCr weitere Schritte ausw\u00E4hlen");
+ txtpnBitteWhlenSie.setBounds(10, 36, 509, 32);
+ panel.add(txtpnBitteWhlenSie);
+ }
+ contentPanel.setBounds(10, 85, 577, 531);
+ contentPanel.setBackground(SystemColor.menu);
+ contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
+ getContentPane().add(contentPanel);
+ contentPanel.setLayout(null);
+
+ JPanel panel_1 = new JPanel();
+ panel_1.setBackground(SystemColor.menu);
+ panel_1.setBorder(new TitledBorder(null, "Filterfunktionen",
+ TitledBorder.LEADING, TitledBorder.TOP, null, null));
+ panel_1.setBounds(10, 49, 557, 131);
+ contentPanel.add(panel_1);
+ panel_1.setLayout(null);
+
+ JLabel lblNewLabel_2 = new JLabel("Anzeigename:");
+ lblNewLabel_2.setBounds(10, 30, 250, 20);
+ panel_1.add(lblNewLabel_2);
+
+ textFieldName = new JTextField();
+ // Key Listener der Tastatureingabe registriert
+ textFieldName.addKeyListener(new KeyAdapter() {
+ @Override
+ public void keyReleased(KeyEvent e) {
+ // Textfield eingabe auslesen
+ String stext = textFieldName.getText();
+
+ // Wenn Textfield nicht leer
+ if (stext != "") {
+ // Filtere nach der Eingabe
+ rowSorterAll.setRowFilter(RowFilter.regexFilter(
+ textFieldName.getText(), 0));
+ rowSorterMyLectures.setRowFilter(RowFilter.regexFilter(
+ textFieldName.getText(), 0));
+
+ }
+ }
+ });
+
+ textFieldName.setBounds(270, 30, 250, 20);
+ panel_1.add(textFieldName);
+ textFieldName.setColumns(10);
+
+ JLabel lblErweiterteSuche = new JLabel(
+ "<html><u>Erweiterte Suche</u></html>");
+ lblErweiterteSuche.addMouseListener(new MouseAdapter() {
+ @Override
+ public void mouseClicked(MouseEvent arg0) {
+ // Öffnet das Fenster Extended GUI
+ con.closeThriftConnection();
+ ExtendedSearchForImages_GUI es = new ExtendedSearchForImages_GUI();
+ es.setVisible(true);
+ }
+ });
+ lblErweiterteSuche.setForeground(Color.BLUE);
+
+ lblErweiterteSuche.setBounds(431, 106, 89, 14);
+ panel_1.add(lblErweiterteSuche);
+
+ JLabel lblHauptmen = new JLabel("Hauptmen\u00FC");
+ lblHauptmen.addMouseListener(new MouseAdapter() {
+ @Override
+ public void mouseClicked(MouseEvent arg0) {
+ // Öffnet das Hauptmenü
+ con.closeThriftConnection();
+ EditLectureSearch_GUI.this.setVisible(false);
+ MainMenue_GUI main = new MainMenue_GUI();
+ main.setVisible(true);
+ }
+ });
+ lblHauptmen.setForeground(Color.BLUE);
+ lblHauptmen.setBounds(10, 11, 61, 14);
+ contentPanel.add(lblHauptmen);
+
+ JLabel label_1 = new JLabel(">");
+ label_1.setBounds(69, 11, 13, 14);
+ contentPanel.add(label_1);
+
+ JLabel lblVlimage = new JLabel("Veranstaltung");
+ lblVlimage.setForeground(Color.BLUE);
+ lblVlimage.setBounds(81, 11, 75, 14);
+ contentPanel.add(lblVlimage);
+
+ JLabel label_2 = new JLabel(">");
+ label_2.setBounds(152, 11, 13, 14);
+ contentPanel.add(label_2);
+
+ JLabel lblNewLabel_1 = new JLabel("Veranstaltungsauswahl");
+ lblNewLabel_1.setBounds(166, 11, 128, 14);
+ contentPanel.add(lblNewLabel_1);
+
+ tabbedPane = new JTabbedPane(JTabbedPane.TOP);
+ tabbedPane.addChangeListener(new ChangeListener() {
+ public void stateChanged(ChangeEvent arg0) {
+ System.out.println(tabbedPane.getSelectedIndex());
+ if (tabbedPane.getSelectedIndex() == 0) {
+
+ String username = person.verantwortlicher.getName() + " "
+ + person.verantwortlicher.getVorname();
+ rowSorterMyLectures.setRowFilter(RowFilter.regexFilter(
+ username, 5));
+ } else if (tabbedPane.getSelectedIndex() == 1) {
+
+ }
+
+ }
+ });
+
+ tabbedPane.setBounds(10, 197, 557, 323);
+ contentPanel.add(tabbedPane);
+ initTableModel(modelMyLectures);
+
+ JScrollPane scrollPaneAllImages = new JScrollPane();
+ tableAllLectures = new JTable();
+ tableAllLectures.setModel(modelAll);
+ tableAllLectures.getColumnModel().getColumn(1).sizeWidthToFit();
+ tableAllLectures.getColumnModel().getColumn(2).sizeWidthToFit();
+ tableAllLectures.getColumnModel().getColumn(3).sizeWidthToFit();
+ tableAllLectures.getColumnModel().getColumn(4).sizeWidthToFit();
+ tableAllLectures.getColumnModel().getColumn(5).sizeWidthToFit();
+ initTableModel(modelAll);
+
+ JScrollPane scrollPaneMyImage = new JScrollPane();
+ tablemyLectures = new JTable();
+ tablemyLectures.setModel(modelMyLectures);
+
+ tablemyLectures.getColumnModel().getColumn(1).sizeWidthToFit();
+ tablemyLectures.getColumnModel().getColumn(2).sizeWidthToFit();
+ tablemyLectures.getColumnModel().getColumn(3).sizeWidthToFit();
+ tablemyLectures.getColumnModel().getColumn(4).sizeWidthToFit();
+ tablemyLectures.getColumnModel().getColumn(5).sizeWidthToFit();
+ tablemyLectures.setRowSorter(rowSorterMyLectures);
+
+ scrollPaneMyImage.setViewportView(tablemyLectures);
+ tabbedPane.addTab("Meine Veranstaltungen", null, scrollPaneMyImage,
+ null);
+ tableAllLectures.setRowSorter(rowSorterAll);
+
+ scrollPaneAllImages.setViewportView(tableAllLectures);
+ tabbedPane.addTab("Alle", null, scrollPaneAllImages, null);
+
+ JScrollPane scrollPaneCoopImages = new JScrollPane();
+ tableCoopImages = new JTable();
+ tableCoopImages.setModel(model);
+ tableCoopImages.getColumnModel().getColumn(1).sizeWidthToFit();
+ tableCoopImages.getColumnModel().getColumn(2).sizeWidthToFit();
+ tableCoopImages.getColumnModel().getColumn(3).sizeWidthToFit();
+ tableCoopImages.getColumnModel().getColumn(4).sizeWidthToFit();
+ tableCoopImages.getColumnModel().getColumn(5).sizeWidthToFit();
+
+ scrollPaneCoopImages.setViewportView(tableCoopImages);
+ tabbedPane.addTab("Kooperative Veranstaltungen", null,
+ scrollPaneCoopImages, null);
+ tabbedPane.setEnabledAt(2, false);
+
+ JScrollPane scrollPanePublicImages = new JScrollPane();
+ tablePublicImages = new JTable();
+ tablePublicImages.setModel(model);
+ tablePublicImages.getColumnModel().getColumn(1).sizeWidthToFit();
+ tablePublicImages.getColumnModel().getColumn(2).sizeWidthToFit();
+ tablePublicImages.getColumnModel().getColumn(3).sizeWidthToFit();
+ tablePublicImages.getColumnModel().getColumn(4).sizeWidthToFit();
+ tablePublicImages.getColumnModel().getColumn(5).sizeWidthToFit();
+
+ scrollPanePublicImages.setViewportView(tablePublicImages);
+ tabbedPane.addTab("\u00D6ffentliche Images", null,
+ scrollPanePublicImages, null);
+ tabbedPane.setEnabledAt(3, false);
+
+ JScrollPane scrollPanePublicVorlagen = new JScrollPane();
+ tablePublicVorlagen = new JTable();
+ tablePublicVorlagen.setModel(model);
+ tablePublicVorlagen.getColumnModel().getColumn(1).sizeWidthToFit();
+ tablePublicVorlagen.getColumnModel().getColumn(2).sizeWidthToFit();
+ tablePublicVorlagen.getColumnModel().getColumn(3).sizeWidthToFit();
+ tablePublicVorlagen.getColumnModel().getColumn(4).sizeWidthToFit();
+ tablePublicVorlagen.getColumnModel().getColumn(5).sizeWidthToFit();
+
+ scrollPanePublicVorlagen.setViewportView(tablePublicVorlagen);
+ tabbedPane.addTab("\u00D6ffentliche Vorlagen", null,
+ scrollPanePublicVorlagen, null);
+ tabbedPane.setEnabledAt(4, false);
+ {
+ JPanel buttonPane = new JPanel();
+ buttonPane.setBounds(0, 640, 597, 33);
+ buttonPane.setBackground(SystemColor.menu);
+ buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
+ getContentPane().add(buttonPane);
+ {
+ JButton btnBack = new JButton("Zur\u00FCck");
+ btnBack.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ // Öffnet das Hauptmenü
+ con.closeThriftConnection();
+ MainMenue_GUI main = new MainMenue_GUI();
+ main.setVisible(true);
+ dispose();
+ }
+ });
+ btnBack.setActionCommand("OK");
+ buttonPane.add(btnBack);
+ getRootPane().setDefaultButton(btnBack);
+ }
+ {
+ JButton btnContinue = new JButton("Weiter");
+ btnContinue.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+
+ System.out
+ .println("\ntableAllImages.getSelectedRow() = "
+ + tableAllLectures.getSelectedRow()
+ + "\ntablemyImages.getSelectedRow() = "
+ + tablemyLectures.getSelectedRow()
+ + "\ntableCoopImages.getSelectedRow() = "
+ + tableCoopImages.getSelectedRow()
+ + "\ntablePublicImages.getSelectedRow() = "
+ + tablePublicImages.getSelectedRow()
+ + "\ntablePublicVorlagen.getSelectedRow() = "
+ + tablePublicVorlagen.getSelectedRow());
+
+ // check if a row is selected
+ if ((tableAllLectures.getSelectedRow() != -1)
+ || (tablemyLectures.getSelectedRow() != -1)
+ || (tableCoopImages.getSelectedRow() != -1)
+ || (tablePublicImages.getSelectedRow() != -1)
+ || (tablePublicVorlagen.getSelectedRow() != -1)) {
+
+ // a row is selected, do operations
+
+ if (tabbedPane.getSelectedIndex() == 0) {
+
+ Lecture.lecture.setid(modelMyLectures
+ .getValueAt(
+ tablemyLectures
+ .convertRowIndexToModel(tablemyLectures
+ .getSelectedRow()),
+ 8).toString());
+ Lecture.lecture.setName(modelMyLectures
+ .getValueAt(
+ tablemyLectures
+ .convertRowIndexToModel(tablemyLectures
+ .getSelectedRow()),
+ 0).toString());
+ Lecture.lecture.setDesc(modelMyLectures
+ .getValueAt(
+ tablemyLectures
+ .convertRowIndexToModel(tablemyLectures
+ .getSelectedRow()),
+ 1).toString());
+ String date = modelMyLectures
+ .getValueAt(
+ tablemyLectures
+ .convertRowIndexToModel(tablemyLectures
+ .getSelectedRow()),
+ 2).toString();
+
+ Lecture.lecture.setLinkedImagename(modelMyLectures
+ .getValueAt(
+ tablemyLectures
+ .convertRowIndexToModel(tablemyLectures
+ .getSelectedRow()),
+ 6).toString());
+
+ int zweitesLeerzeichen = date.indexOf(" ",
+ date.indexOf(" ") + 1);
+
+ String startdate = date.substring(0,
+ zweitesLeerzeichen);
+ String enddate = date
+ .substring(zweitesLeerzeichen);
+ DateFormat df = new SimpleDateFormat(
+ "yyyy-MM-dd hh:mm:ss");
+
+ try {
+ // Format has to be "yyyy-MM-dd hh:mm:ss"
+ Lecture.lecture.setEnddate(df
+ .parse(enddate));
+ Lecture.lecture.setStartdate(df
+ .parse(startdate));
+ } catch (ParseException e1) {
+ // TODO Auto-generated catch block
+ e1.printStackTrace();
+ }
+ if (modelMyLectures
+ .getValueAt(
+ tablemyLectures
+ .convertRowIndexToModel(tablemyLectures
+ .getSelectedRow()),
+ 3).toString().equals("1")) {
+ Lecture.lecture.setActive(true);
+ } else {
+ Lecture.lecture.setActive(false);
+ }
+
+ con.closeThriftConnection();
+ // EditImageAllgemein_GUI ea=new
+ // EditImageAllgemein_GUI();
+ EditLectureAllgemein_GUI el = new EditLectureAllgemein_GUI();
+ el.setVisible(true);
+ dispose();
+ } else {
+ JOptionPane
+ .showMessageDialog(
+ null,
+ "Bitte wählen Sie ein eigenes Image aus",
+ "Message",
+ JOptionPane.INFORMATION_MESSAGE);
+ }
+ } else {
+ // nothing selected
+ JOptionPane.showMessageDialog(null,
+ "Bitte wählen Sie ein Image aus.",
+ "Image Auswahl",
+ JOptionPane.INFORMATION_MESSAGE);
+ }// end check if a row is selected
+
+ }
+ });
+ btnContinue.setActionCommand("Cancel");
+ buttonPane.add(btnContinue);
+ }
+ }
+
+ JSeparator separator = new JSeparator();
+ separator.setBounds(0, 78, 597, 2);
+ getContentPane().add(separator);
+
+ JSeparator separator_1 = new JSeparator();
+ separator_1.setBounds(0, 627, 597, 2);
+ getContentPane().add(separator_1);
+
+ JMenuBar menuBar = new JMenuBar();
+ setJMenuBar(menuBar);
+
+ JMenu mnNewMenu_1 = new JMenu("Hilfe");
+ menuBar.add(mnNewMenu_1);
+
+ JMenuItem mntmFaq = new JMenuItem("FAQ");
+ mnNewMenu_1.add(mntmFaq);
+
+ JMenuItem mntmOtrs = new JMenuItem("OTRS");
+ mnNewMenu_1.add(mntmOtrs);
+
+ }
+
+ // Initiale Beffülung eines Table models
+ public DefaultTableModel initTableModel(DefaultTableModel model) {
+ List<server.Lecture> lectures;
+ try {
+ // Hole eine Liste der Images
+ lectures = client.getLectureList();
+ Iterator<server.Lecture> i = lectures.iterator();
+
+ int x = 0;
+
+ while (i.hasNext()) {
+ // erzeuge Objekte für die Tabelle
+ Object[] obj = {
+ lectures.get(x).lecturename,
+ lectures.get(x).desc,
+ lectures.get(x).starttime + " "
+ + lectures.get(x).endtime,
+ lectures.get(x).isActive, lectures.get(x).lastused,
+ lectures.get(x).username, " ",
+ lectures.get(x).imagename, lectures.get(x).id };
+ // Füge diese Objekte der Tabelle hinzu
+ model.addRow(obj);
+ x++;
+ i.next();
+
+ }
+
+ return model;
+ } catch (TException e1) {
+ // TODO Auto-generated catch block
+ e1.printStackTrace();
+ }
+ return model;
+ }
+
+}
diff --git a/Dozentenmodul/src/GUI/ExtendedSearch_GUI.java b/Dozentenmodul/src/gui/lecture/ExtendedSearchForImages_GUI.java
index ab9693a7..3fc4b7f6 100644
--- a/Dozentenmodul/src/GUI/ExtendedSearch_GUI.java
+++ b/Dozentenmodul/src/gui/lecture/ExtendedSearchForImages_GUI.java
@@ -1,6 +1,9 @@
-package gui;
+package gui.lecture;
+import gui.image.CreateImageAllgemein_GUI;
+import gui.image.FTPCreateUploader_GUI;
+
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
@@ -30,7 +33,7 @@ import javax.swing.border.EmptyBorder;
import javax.swing.border.TitledBorder;
@SuppressWarnings("serial")
-public class ExtendedSearch_GUI extends JFrame {
+public class ExtendedSearchForImages_GUI extends JFrame {
private final JPanel contentPanel = new JPanel();
String[] result;
@@ -41,9 +44,10 @@ public class ExtendedSearch_GUI extends JFrame {
*/
public static void main(String[] args) {
try {
- ExtendedSearch_GUI dialog = new ExtendedSearch_GUI();
+ ExtendedSearchForImages_GUI dialog = new ExtendedSearchForImages_GUI();
dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
dialog.setVisible(true);
+
} catch (Exception e) {
e.printStackTrace();
}
@@ -52,7 +56,7 @@ public class ExtendedSearch_GUI extends JFrame {
/**
* Create the dialog.
*/
- public ExtendedSearch_GUI() {
+ public ExtendedSearchForImages_GUI() {
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(WindowEvent arg0) {
@@ -177,7 +181,7 @@ public class ExtendedSearch_GUI extends JFrame {
public void actionPerformed(ActionEvent e) {
- EingabeImageAllgemein_GUI sr=new EingabeImageAllgemein_GUI();
+ CreateImageAllgemein_GUI sr=new CreateImageAllgemein_GUI();
sr.setVisible(true);
dispose();
}
@@ -192,7 +196,7 @@ public class ExtendedSearch_GUI extends JFrame {
public void actionPerformed(ActionEvent e) {
- FTPUploader_GUI ea=new FTPUploader_GUI();
+ FTPCreateUploader_GUI ea=new FTPCreateUploader_GUI();
ea.setVisible(true);
dispose();
diff --git a/Dozentenmodul/src/GUI/SearchMethod_GUI.java b/Dozentenmodul/src/gui/lecture/SearchMethodLecture_GUI.java
index 24a12959..ae31236a 100644
--- a/Dozentenmodul/src/GUI/SearchMethod_GUI.java
+++ b/Dozentenmodul/src/gui/lecture/SearchMethodLecture_GUI.java
@@ -1,6 +1,9 @@
-package gui;
+package gui.lecture;
+import gui.image.SearchImage_GUI;
+import gui.intro.MainMenue_GUI;
+
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
@@ -33,7 +36,7 @@ import javax.swing.border.EmptyBorder;
import javax.swing.border.TitledBorder;
@SuppressWarnings("serial")
-public class SearchMethod_GUI extends JFrame {
+public class SearchMethodLecture_GUI extends JFrame {
private final JPanel contentPanel = new JPanel();
String[] result;
@@ -45,7 +48,7 @@ public class SearchMethod_GUI extends JFrame {
*/
public static void main(String[] args) {
try {
- SearchMethod_GUI dialog = new SearchMethod_GUI();
+ SearchMethodLecture_GUI dialog = new SearchMethodLecture_GUI();
dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
dialog.setVisible(true);
} catch (Exception e) {
@@ -56,7 +59,7 @@ public class SearchMethod_GUI extends JFrame {
/**
* Create the dialog.
*/
- public SearchMethod_GUI() {
+ public SearchMethodLecture_GUI() {
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(WindowEvent arg0) {
@@ -150,7 +153,7 @@ public class SearchMethod_GUI extends JFrame {
@Override
public void mouseClicked(MouseEvent arg0) {
- SearchMethod_GUI.this.setVisible(false);
+ SearchMethodLecture_GUI.this.setVisible(false);
MainMenue_GUI main=new MainMenue_GUI();
main.setVisible(true);
}
diff --git a/Dozentenmodul/src/models/Image.java b/Dozentenmodul/src/models/Image.java
index 2a8c4fcd..cdc8264c 100644
--- a/Dozentenmodul/src/models/Image.java
+++ b/Dozentenmodul/src/models/Image.java
@@ -1,6 +1,9 @@
package models;
public class Image {
+ private String ImageId;
+ private String version;
+
private String imagename;
private String newName;
private boolean licensed;
@@ -46,4 +49,16 @@ public class Image {
public void setNewName(String newName) {
this.newName = newName;
}
+ public String getImageId() {
+ return ImageId;
+ }
+ public void setImageId(String imageId) {
+ ImageId = imageId;
+ }
+ public String getVersion() {
+ return version;
+ }
+ public void setVersion(String version) {
+ this.version = version;
+ }
}
diff --git a/Dozentenmodul/src/models/Lecture.java b/Dozentenmodul/src/models/Lecture.java
index 383bded9..6b7e6fa1 100644
--- a/Dozentenmodul/src/models/Lecture.java
+++ b/Dozentenmodul/src/models/Lecture.java
@@ -6,14 +6,42 @@ public class Lecture {
private String name;
+ private String newName;
private String shortDesc;
private String desc;
private Date startdate;
private Date enddate;
private boolean active;
+ private String id;
+ private String linkedImagename;
+
public static Lecture lecture =new Lecture();
+
+
+ public String getNewName() {
+ return newName;
+ }
+ public void setNewName(String newName) {
+ this.newName = newName;
+ }
+
+ public String getLinkedImagename() {
+ return linkedImagename;
+ }
+
+ public void setLinkedImagename(String linkedImagename) {
+ this.linkedImagename = linkedImagename;
+ }
+
+ public String getid() {
+ return id;
+ }
+
+ public void setid(String id) {
+ this.id = id;
+ }
public String getName() {
return name;
}
diff --git a/Dozentenmodul/src/models/SessionData.java b/Dozentenmodul/src/models/SessionData.java
new file mode 100644
index 00000000..3b91e1a2
--- /dev/null
+++ b/Dozentenmodul/src/models/SessionData.java
@@ -0,0 +1,28 @@
+package models;
+
+public class SessionData {
+ private String sessionID;
+ private String authToken;
+ private String serverAdress;
+ public static SessionData session =new SessionData();
+ public String getSessionID() {
+ return sessionID;
+ }
+ public void setSessionID(String sessionID) {
+ this.sessionID = sessionID;
+ }
+ public String getAuthToken() {
+ return authToken;
+ }
+ public void setAuthToken(String authToken) {
+ this.authToken = authToken;
+ }
+ public String getServerAdress() {
+ return serverAdress;
+ }
+ public void setServerAdress(String serverAdress) {
+ this.serverAdress = serverAdress;
+ }
+
+
+}
diff --git a/Dozentenmodul/src/models/person.java b/Dozentenmodul/src/models/person.java
index f4dd5c22..435f3c1d 100644
--- a/Dozentenmodul/src/models/person.java
+++ b/Dozentenmodul/src/models/person.java
@@ -3,6 +3,9 @@ package models;
public class person{
+
+ private String username;
+
private String Name;
private String Vorname;
private String Hochschule;
@@ -12,9 +15,21 @@ public class person{
private boolean ischecked;
+
public static person verantowrtlicher=new person();
public static person ersteller=new person();
+
+ public static person verantwortlicher=new person();
+
+
+ public String getUsername() {
+ return username;
+ }
+ public void setUsername(String username) {
+ this.username = username;
+ }
+
public String getName() {
return Name;
}
diff --git a/Dozentenmodul/src/models/vm.java b/Dozentenmodul/src/models/vm.java
deleted file mode 100644
index 34f9ffaa..00000000
--- a/Dozentenmodul/src/models/vm.java
+++ /dev/null
@@ -1,69 +0,0 @@
-package models;
-
-import java.awt.List;
-import java.util.Date;
-
-
-public class vm {
-
- private String Laborname;
- private String shortDesc;
- private String longDesc;
- private String comment;
- private String OS;
- private Date begin;
- private Date end;
- private List software;
-
- public static vm vl=new vm();
- public String getLaborname() {
- return Laborname;
- }
- public void setLaborname(String laborname) {
- Laborname = laborname;
- }
- public String getShortDesc() {
- return shortDesc;
- }
- public void setShortDesc(String shortDesc) {
- this.shortDesc = shortDesc;
- }
- public String getLongDesc() {
- return longDesc;
- }
- public void setLongDesc(String longDesc) {
- this.longDesc = longDesc;
- }
- public String getComment() {
- return comment;
- }
- public void setComment(String comment) {
- this.comment = comment;
- }
- public String getOS() {
- return OS;
- }
- public void setOS(String oS) {
- OS = oS;
- }
- public Date getBegin() {
- return begin;
- }
- public void setBegin(Date begin) {
- this.begin = begin;
- }
- public Date getEnd() {
- return end;
- }
- public void setEnd(Date end) {
- this.end = end;
- }
- public List getSoftware() {
- return software;
- }
- public void setSoftware(List software) {
- this.software = software;
- }
-
-
-}
diff --git a/Dozentenmodul/src/thrift/AuthenticationError.java b/Dozentenmodul/src/thrift/AuthenticationError.java
new file mode 100644
index 00000000..7d543832
--- /dev/null
+++ b/Dozentenmodul/src/thrift/AuthenticationError.java
@@ -0,0 +1,51 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.1)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+package thrift;
+
+
+import java.util.Map;
+import java.util.HashMap;
+import org.apache.thrift.TEnum;
+
+public enum AuthenticationError implements org.apache.thrift.TEnum {
+ GENERIC_ERROR(0),
+ INVALID_CREDENTIALS(1),
+ ACCOUNT_SUSPENDED(2),
+ BANNED_NETWORK(3);
+
+ private final int value;
+
+ private AuthenticationError(int value) {
+ this.value = value;
+ }
+
+ /**
+ * Get the integer value of this enum value, as defined in the Thrift IDL.
+ */
+ public int getValue() {
+ return value;
+ }
+
+ /**
+ * Find a the enum type by its integer value, as defined in the Thrift IDL.
+ * @return null if the value is not found.
+ */
+ public static AuthenticationError findByValue(int value) {
+ switch (value) {
+ case 0:
+ return GENERIC_ERROR;
+ case 1:
+ return INVALID_CREDENTIALS;
+ case 2:
+ return ACCOUNT_SUSPENDED;
+ case 3:
+ return BANNED_NETWORK;
+ default:
+ return null;
+ }
+ }
+}
diff --git a/Dozentenmodul/src/thrift/AuthenticationException.java b/Dozentenmodul/src/thrift/AuthenticationException.java
new file mode 100644
index 00000000..d416cacf
--- /dev/null
+++ b/Dozentenmodul/src/thrift/AuthenticationException.java
@@ -0,0 +1,504 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.1)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+package thrift;
+
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class AuthenticationException extends TException implements org.apache.thrift.TBase<AuthenticationException, AuthenticationException._Fields>, java.io.Serializable, Cloneable, Comparable<AuthenticationException> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AuthenticationException");
+
+ private static final org.apache.thrift.protocol.TField NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("number", org.apache.thrift.protocol.TType.I32, (short)1);
+ private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)2);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new AuthenticationExceptionStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new AuthenticationExceptionTupleSchemeFactory());
+ }
+
+ /**
+ *
+ * @see AuthenticationError
+ */
+ public AuthenticationError number; // required
+ public String message; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ /**
+ *
+ * @see AuthenticationError
+ */
+ NUMBER((short)1, "number"),
+ MESSAGE((short)2, "message");
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 1: // NUMBER
+ return NUMBER;
+ case 2: // MESSAGE
+ return MESSAGE;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.NUMBER, new org.apache.thrift.meta_data.FieldMetaData("number", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, AuthenticationError.class)));
+ tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AuthenticationException.class, metaDataMap);
+ }
+
+ public AuthenticationException() {
+ }
+
+ public AuthenticationException(
+ AuthenticationError number,
+ String message)
+ {
+ this();
+ this.number = number;
+ this.message = message;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public AuthenticationException(AuthenticationException other) {
+ if (other.isSetNumber()) {
+ this.number = other.number;
+ }
+ if (other.isSetMessage()) {
+ this.message = other.message;
+ }
+ }
+
+ public AuthenticationException deepCopy() {
+ return new AuthenticationException(this);
+ }
+
+ @Override
+ public void clear() {
+ this.number = null;
+ this.message = null;
+ }
+
+ /**
+ *
+ * @see AuthenticationError
+ */
+ public AuthenticationError getNumber() {
+ return this.number;
+ }
+
+ /**
+ *
+ * @see AuthenticationError
+ */
+ public AuthenticationException setNumber(AuthenticationError number) {
+ this.number = number;
+ return this;
+ }
+
+ public void unsetNumber() {
+ this.number = null;
+ }
+
+ /** Returns true if field number is set (has been assigned a value) and false otherwise */
+ public boolean isSetNumber() {
+ return this.number != null;
+ }
+
+ public void setNumberIsSet(boolean value) {
+ if (!value) {
+ this.number = null;
+ }
+ }
+
+ public String getMessage() {
+ return this.message;
+ }
+
+ public AuthenticationException setMessage(String message) {
+ this.message = message;
+ return this;
+ }
+
+ public void unsetMessage() {
+ this.message = null;
+ }
+
+ /** Returns true if field message is set (has been assigned a value) and false otherwise */
+ public boolean isSetMessage() {
+ return this.message != null;
+ }
+
+ public void setMessageIsSet(boolean value) {
+ if (!value) {
+ this.message = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case NUMBER:
+ if (value == null) {
+ unsetNumber();
+ } else {
+ setNumber((AuthenticationError)value);
+ }
+ break;
+
+ case MESSAGE:
+ if (value == null) {
+ unsetMessage();
+ } else {
+ setMessage((String)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case NUMBER:
+ return getNumber();
+
+ case MESSAGE:
+ return getMessage();
+
+ }
+ throw new IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
+ switch (field) {
+ case NUMBER:
+ return isSetNumber();
+ case MESSAGE:
+ return isSetMessage();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof AuthenticationException)
+ return this.equals((AuthenticationException)that);
+ return false;
+ }
+
+ public boolean equals(AuthenticationException that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_number = true && this.isSetNumber();
+ boolean that_present_number = true && that.isSetNumber();
+ if (this_present_number || that_present_number) {
+ if (!(this_present_number && that_present_number))
+ return false;
+ if (!this.number.equals(that.number))
+ return false;
+ }
+
+ boolean this_present_message = true && this.isSetMessage();
+ boolean that_present_message = true && that.isSetMessage();
+ if (this_present_message || that_present_message) {
+ if (!(this_present_message && that_present_message))
+ return false;
+ if (!this.message.equals(that.message))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return 0;
+ }
+
+ @Override
+ public int compareTo(AuthenticationException other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(isSetNumber()).compareTo(other.isSetNumber());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetNumber()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.number, other.number);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetMessage()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("AuthenticationException(");
+ boolean first = true;
+
+ sb.append("number:");
+ if (this.number == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.number);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("message:");
+ if (this.message == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.message);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class AuthenticationExceptionStandardSchemeFactory implements SchemeFactory {
+ public AuthenticationExceptionStandardScheme getScheme() {
+ return new AuthenticationExceptionStandardScheme();
+ }
+ }
+
+ private static class AuthenticationExceptionStandardScheme extends StandardScheme<AuthenticationException> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, AuthenticationException struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 1: // NUMBER
+ if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
+ struct.number = AuthenticationError.findByValue(iprot.readI32());
+ struct.setNumberIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 2: // MESSAGE
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.message = iprot.readString();
+ struct.setMessageIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+
+ // check for required fields of primitive type, which can't be checked in the validate method
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, AuthenticationException struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.number != null) {
+ oprot.writeFieldBegin(NUMBER_FIELD_DESC);
+ oprot.writeI32(struct.number.getValue());
+ oprot.writeFieldEnd();
+ }
+ if (struct.message != null) {
+ oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
+ oprot.writeString(struct.message);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class AuthenticationExceptionTupleSchemeFactory implements SchemeFactory {
+ public AuthenticationExceptionTupleScheme getScheme() {
+ return new AuthenticationExceptionTupleScheme();
+ }
+ }
+
+ private static class AuthenticationExceptionTupleScheme extends TupleScheme<AuthenticationException> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, AuthenticationException struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetNumber()) {
+ optionals.set(0);
+ }
+ if (struct.isSetMessage()) {
+ optionals.set(1);
+ }
+ oprot.writeBitSet(optionals, 2);
+ if (struct.isSetNumber()) {
+ oprot.writeI32(struct.number.getValue());
+ }
+ if (struct.isSetMessage()) {
+ oprot.writeString(struct.message);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, AuthenticationException struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(2);
+ if (incoming.get(0)) {
+ struct.number = AuthenticationError.findByValue(iprot.readI32());
+ struct.setNumberIsSet(true);
+ }
+ if (incoming.get(1)) {
+ struct.message = iprot.readString();
+ struct.setMessageIsSet(true);
+ }
+ }
+ }
+
+}
+
diff --git a/Dozentenmodul/src/thrift/AuthorizationError.java b/Dozentenmodul/src/thrift/AuthorizationError.java
new file mode 100644
index 00000000..443be4f4
--- /dev/null
+++ b/Dozentenmodul/src/thrift/AuthorizationError.java
@@ -0,0 +1,48 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.1)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+package thrift;
+
+
+import java.util.Map;
+import java.util.HashMap;
+import org.apache.thrift.TEnum;
+
+public enum AuthorizationError implements org.apache.thrift.TEnum {
+ GENERIC_ERROR(0),
+ NOT_AUTHENTICATED(1),
+ NO_PERMISSION(2);
+
+ private final int value;
+
+ private AuthorizationError(int value) {
+ this.value = value;
+ }
+
+ /**
+ * Get the integer value of this enum value, as defined in the Thrift IDL.
+ */
+ public int getValue() {
+ return value;
+ }
+
+ /**
+ * Find a the enum type by its integer value, as defined in the Thrift IDL.
+ * @return null if the value is not found.
+ */
+ public static AuthorizationError findByValue(int value) {
+ switch (value) {
+ case 0:
+ return GENERIC_ERROR;
+ case 1:
+ return NOT_AUTHENTICATED;
+ case 2:
+ return NO_PERMISSION;
+ default:
+ return null;
+ }
+ }
+}
diff --git a/Dozentenmodul/src/thrift/AuthorizationException.java b/Dozentenmodul/src/thrift/AuthorizationException.java
new file mode 100644
index 00000000..0d5320c2
--- /dev/null
+++ b/Dozentenmodul/src/thrift/AuthorizationException.java
@@ -0,0 +1,504 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.1)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+package thrift;
+
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class AuthorizationException extends TException implements org.apache.thrift.TBase<AuthorizationException, AuthorizationException._Fields>, java.io.Serializable, Cloneable, Comparable<AuthorizationException> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AuthorizationException");
+
+ private static final org.apache.thrift.protocol.TField NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("number", org.apache.thrift.protocol.TType.I32, (short)1);
+ private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)2);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new AuthorizationExceptionStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new AuthorizationExceptionTupleSchemeFactory());
+ }
+
+ /**
+ *
+ * @see AuthorizationError
+ */
+ public AuthorizationError number; // required
+ public String message; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ /**
+ *
+ * @see AuthorizationError
+ */
+ NUMBER((short)1, "number"),
+ MESSAGE((short)2, "message");
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 1: // NUMBER
+ return NUMBER;
+ case 2: // MESSAGE
+ return MESSAGE;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.NUMBER, new org.apache.thrift.meta_data.FieldMetaData("number", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, AuthorizationError.class)));
+ tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AuthorizationException.class, metaDataMap);
+ }
+
+ public AuthorizationException() {
+ }
+
+ public AuthorizationException(
+ AuthorizationError number,
+ String message)
+ {
+ this();
+ this.number = number;
+ this.message = message;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public AuthorizationException(AuthorizationException other) {
+ if (other.isSetNumber()) {
+ this.number = other.number;
+ }
+ if (other.isSetMessage()) {
+ this.message = other.message;
+ }
+ }
+
+ public AuthorizationException deepCopy() {
+ return new AuthorizationException(this);
+ }
+
+ @Override
+ public void clear() {
+ this.number = null;
+ this.message = null;
+ }
+
+ /**
+ *
+ * @see AuthorizationError
+ */
+ public AuthorizationError getNumber() {
+ return this.number;
+ }
+
+ /**
+ *
+ * @see AuthorizationError
+ */
+ public AuthorizationException setNumber(AuthorizationError number) {
+ this.number = number;
+ return this;
+ }
+
+ public void unsetNumber() {
+ this.number = null;
+ }
+
+ /** Returns true if field number is set (has been assigned a value) and false otherwise */
+ public boolean isSetNumber() {
+ return this.number != null;
+ }
+
+ public void setNumberIsSet(boolean value) {
+ if (!value) {
+ this.number = null;
+ }
+ }
+
+ public String getMessage() {
+ return this.message;
+ }
+
+ public AuthorizationException setMessage(String message) {
+ this.message = message;
+ return this;
+ }
+
+ public void unsetMessage() {
+ this.message = null;
+ }
+
+ /** Returns true if field message is set (has been assigned a value) and false otherwise */
+ public boolean isSetMessage() {
+ return this.message != null;
+ }
+
+ public void setMessageIsSet(boolean value) {
+ if (!value) {
+ this.message = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case NUMBER:
+ if (value == null) {
+ unsetNumber();
+ } else {
+ setNumber((AuthorizationError)value);
+ }
+ break;
+
+ case MESSAGE:
+ if (value == null) {
+ unsetMessage();
+ } else {
+ setMessage((String)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case NUMBER:
+ return getNumber();
+
+ case MESSAGE:
+ return getMessage();
+
+ }
+ throw new IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
+ switch (field) {
+ case NUMBER:
+ return isSetNumber();
+ case MESSAGE:
+ return isSetMessage();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof AuthorizationException)
+ return this.equals((AuthorizationException)that);
+ return false;
+ }
+
+ public boolean equals(AuthorizationException that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_number = true && this.isSetNumber();
+ boolean that_present_number = true && that.isSetNumber();
+ if (this_present_number || that_present_number) {
+ if (!(this_present_number && that_present_number))
+ return false;
+ if (!this.number.equals(that.number))
+ return false;
+ }
+
+ boolean this_present_message = true && this.isSetMessage();
+ boolean that_present_message = true && that.isSetMessage();
+ if (this_present_message || that_present_message) {
+ if (!(this_present_message && that_present_message))
+ return false;
+ if (!this.message.equals(that.message))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return 0;
+ }
+
+ @Override
+ public int compareTo(AuthorizationException other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(isSetNumber()).compareTo(other.isSetNumber());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetNumber()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.number, other.number);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetMessage()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("AuthorizationException(");
+ boolean first = true;
+
+ sb.append("number:");
+ if (this.number == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.number);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("message:");
+ if (this.message == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.message);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class AuthorizationExceptionStandardSchemeFactory implements SchemeFactory {
+ public AuthorizationExceptionStandardScheme getScheme() {
+ return new AuthorizationExceptionStandardScheme();
+ }
+ }
+
+ private static class AuthorizationExceptionStandardScheme extends StandardScheme<AuthorizationException> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, AuthorizationException struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 1: // NUMBER
+ if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
+ struct.number = AuthorizationError.findByValue(iprot.readI32());
+ struct.setNumberIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 2: // MESSAGE
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.message = iprot.readString();
+ struct.setMessageIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+
+ // check for required fields of primitive type, which can't be checked in the validate method
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, AuthorizationException struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.number != null) {
+ oprot.writeFieldBegin(NUMBER_FIELD_DESC);
+ oprot.writeI32(struct.number.getValue());
+ oprot.writeFieldEnd();
+ }
+ if (struct.message != null) {
+ oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
+ oprot.writeString(struct.message);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class AuthorizationExceptionTupleSchemeFactory implements SchemeFactory {
+ public AuthorizationExceptionTupleScheme getScheme() {
+ return new AuthorizationExceptionTupleScheme();
+ }
+ }
+
+ private static class AuthorizationExceptionTupleScheme extends TupleScheme<AuthorizationException> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, AuthorizationException struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetNumber()) {
+ optionals.set(0);
+ }
+ if (struct.isSetMessage()) {
+ optionals.set(1);
+ }
+ oprot.writeBitSet(optionals, 2);
+ if (struct.isSetNumber()) {
+ oprot.writeI32(struct.number.getValue());
+ }
+ if (struct.isSetMessage()) {
+ oprot.writeString(struct.message);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, AuthorizationException struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(2);
+ if (incoming.get(0)) {
+ struct.number = AuthorizationError.findByValue(iprot.readI32());
+ struct.setNumberIsSet(true);
+ }
+ if (incoming.get(1)) {
+ struct.message = iprot.readString();
+ struct.setMessageIsSet(true);
+ }
+ }
+ }
+
+}
+
diff --git a/Dozentenmodul/src/thrift/ImageServer.java b/Dozentenmodul/src/thrift/ImageServer.java
new file mode 100644
index 00000000..410f437b
--- /dev/null
+++ b/Dozentenmodul/src/thrift/ImageServer.java
@@ -0,0 +1,2871 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.1)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+package thrift;
+
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class ImageServer {
+
+ public interface Iface {
+
+ public boolean ping() throws org.apache.thrift.TException;
+
+ public SessionData authenticate(String username, String password) throws AuthenticationException, org.apache.thrift.TException;
+
+ public UserInfo getUserFromToken(String token) throws InvalidTokenException, org.apache.thrift.TException;
+
+ }
+
+ public interface AsyncIface {
+
+ public void ping(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+ public void authenticate(String username, String password, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+ public void getUserFromToken(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+ }
+
+ public static class Client extends org.apache.thrift.TServiceClient implements Iface {
+ public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
+ public Factory() {}
+ public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
+ return new Client(prot);
+ }
+ public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
+ return new Client(iprot, oprot);
+ }
+ }
+
+ public Client(org.apache.thrift.protocol.TProtocol prot)
+ {
+ super(prot, prot);
+ }
+
+ public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
+ super(iprot, oprot);
+ }
+
+ public boolean ping() throws org.apache.thrift.TException
+ {
+ send_ping();
+ return recv_ping();
+ }
+
+ public void send_ping() throws org.apache.thrift.TException
+ {
+ ping_args args = new ping_args();
+ sendBase("ping", args);
+ }
+
+ public boolean recv_ping() throws org.apache.thrift.TException
+ {
+ ping_result result = new ping_result();
+ receiveBase(result, "ping");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "ping failed: unknown result");
+ }
+
+ public SessionData authenticate(String username, String password) throws AuthenticationException, org.apache.thrift.TException
+ {
+ send_authenticate(username, password);
+ return recv_authenticate();
+ }
+
+ public void send_authenticate(String username, String password) throws org.apache.thrift.TException
+ {
+ authenticate_args args = new authenticate_args();
+ args.setUsername(username);
+ args.setPassword(password);
+ sendBase("authenticate", args);
+ }
+
+ public SessionData recv_authenticate() throws AuthenticationException, org.apache.thrift.TException
+ {
+ authenticate_result result = new authenticate_result();
+ receiveBase(result, "authenticate");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.failure != null) {
+ throw result.failure;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticate failed: unknown result");
+ }
+
+ public UserInfo getUserFromToken(String token) throws InvalidTokenException, org.apache.thrift.TException
+ {
+ send_getUserFromToken(token);
+ return recv_getUserFromToken();
+ }
+
+ public void send_getUserFromToken(String token) throws org.apache.thrift.TException
+ {
+ getUserFromToken_args args = new getUserFromToken_args();
+ args.setToken(token);
+ sendBase("getUserFromToken", args);
+ }
+
+ public UserInfo recv_getUserFromToken() throws InvalidTokenException, org.apache.thrift.TException
+ {
+ getUserFromToken_result result = new getUserFromToken_result();
+ receiveBase(result, "getUserFromToken");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.failure != null) {
+ throw result.failure;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserFromToken failed: unknown result");
+ }
+
+ }
+ public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
+ public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
+ private org.apache.thrift.async.TAsyncClientManager clientManager;
+ private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
+ public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
+ this.clientManager = clientManager;
+ this.protocolFactory = protocolFactory;
+ }
+ public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
+ return new AsyncClient(protocolFactory, clientManager, transport);
+ }
+ }
+
+ public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
+ super(protocolFactory, clientManager, transport);
+ }
+
+ public void ping(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ ping_call method_call = new ping_call(resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class ping_call extends org.apache.thrift.async.TAsyncMethodCall {
+ public ping_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("ping", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ ping_args args = new ping_args();
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public boolean getResult() throws org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_ping();
+ }
+ }
+
+ public void authenticate(String username, String password, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ authenticate_call method_call = new authenticate_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class authenticate_call extends org.apache.thrift.async.TAsyncMethodCall {
+ private String username;
+ private String password;
+ public authenticate_call(String username, String password, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.username = username;
+ this.password = password;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticate", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ authenticate_args args = new authenticate_args();
+ args.setUsername(username);
+ args.setPassword(password);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public SessionData getResult() throws AuthenticationException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_authenticate();
+ }
+ }
+
+ public void getUserFromToken(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getUserFromToken_call method_call = new getUserFromToken_call(token, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getUserFromToken_call extends org.apache.thrift.async.TAsyncMethodCall {
+ private String token;
+ public getUserFromToken_call(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.token = token;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserFromToken", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getUserFromToken_args args = new getUserFromToken_args();
+ args.setToken(token);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public UserInfo getResult() throws InvalidTokenException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_getUserFromToken();
+ }
+ }
+
+ }
+
+ public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
+ private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
+ public Processor(I iface) {
+ super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
+ }
+
+ protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
+ super(iface, getProcessMap(processMap));
+ }
+
+ private static <I extends Iface> Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
+ processMap.put("ping", new ping());
+ processMap.put("authenticate", new authenticate());
+ processMap.put("getUserFromToken", new getUserFromToken());
+ return processMap;
+ }
+
+ public static class ping<I extends Iface> extends org.apache.thrift.ProcessFunction<I, ping_args> {
+ public ping() {
+ super("ping");
+ }
+
+ public ping_args getEmptyArgsInstance() {
+ return new ping_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public ping_result getResult(I iface, ping_args args) throws org.apache.thrift.TException {
+ ping_result result = new ping_result();
+ result.success = iface.ping();
+ result.setSuccessIsSet(true);
+ return result;
+ }
+ }
+
+ public static class authenticate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticate_args> {
+ public authenticate() {
+ super("authenticate");
+ }
+
+ public authenticate_args getEmptyArgsInstance() {
+ return new authenticate_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public authenticate_result getResult(I iface, authenticate_args args) throws org.apache.thrift.TException {
+ authenticate_result result = new authenticate_result();
+ try {
+ result.success = iface.authenticate(args.username, args.password);
+ } catch (AuthenticationException failure) {
+ result.failure = failure;
+ }
+ return result;
+ }
+ }
+
+ public static class getUserFromToken<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserFromToken_args> {
+ public getUserFromToken() {
+ super("getUserFromToken");
+ }
+
+ public getUserFromToken_args getEmptyArgsInstance() {
+ return new getUserFromToken_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public getUserFromToken_result getResult(I iface, getUserFromToken_args args) throws org.apache.thrift.TException {
+ getUserFromToken_result result = new getUserFromToken_result();
+ try {
+ result.success = iface.getUserFromToken(args.token);
+ } catch (InvalidTokenException failure) {
+ result.failure = failure;
+ }
+ return result;
+ }
+ }
+
+ }
+
+ public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
+ private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName());
+ public AsyncProcessor(I iface) {
+ super(iface, getProcessMap(new HashMap<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
+ }
+
+ protected AsyncProcessor(I iface, Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
+ super(iface, getProcessMap(processMap));
+ }
+
+ private static <I extends AsyncIface> Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase,?>> getProcessMap(Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
+ processMap.put("ping", new ping());
+ processMap.put("authenticate", new authenticate());
+ processMap.put("getUserFromToken", new getUserFromToken());
+ return processMap;
+ }
+
+ public static class ping<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, ping_args, Boolean> {
+ public ping() {
+ super("ping");
+ }
+
+ public ping_args getEmptyArgsInstance() {
+ return new ping_args();
+ }
+
+ public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new AsyncMethodCallback<Boolean>() {
+ public void onComplete(Boolean o) {
+ ping_result result = new ping_result();
+ result.success = o;
+ result.setSuccessIsSet(true);
+ try {
+ fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ return;
+ } catch (Exception e) {
+ LOGGER.error("Exception writing to internal frame buffer", e);
+ }
+ fb.close();
+ }
+ public void onError(Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TBase msg;
+ ping_result result = new ping_result();
+ {
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ return;
+ } catch (Exception ex) {
+ LOGGER.error("Exception writing to internal frame buffer", ex);
+ }
+ fb.close();
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, ping_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
+ iface.ping(resultHandler);
+ }
+ }
+
+ public static class authenticate<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, authenticate_args, SessionData> {
+ public authenticate() {
+ super("authenticate");
+ }
+
+ public authenticate_args getEmptyArgsInstance() {
+ return new authenticate_args();
+ }
+
+ public AsyncMethodCallback<SessionData> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new AsyncMethodCallback<SessionData>() {
+ public void onComplete(SessionData o) {
+ authenticate_result result = new authenticate_result();
+ result.success = o;
+ try {
+ fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ return;
+ } catch (Exception e) {
+ LOGGER.error("Exception writing to internal frame buffer", e);
+ }
+ fb.close();
+ }
+ public void onError(Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TBase msg;
+ authenticate_result result = new authenticate_result();
+ if (e instanceof AuthenticationException) {
+ result.failure = (AuthenticationException) e;
+ result.setFailureIsSet(true);
+ msg = result;
+ }
+ else
+ {
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ return;
+ } catch (Exception ex) {
+ LOGGER.error("Exception writing to internal frame buffer", ex);
+ }
+ fb.close();
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, authenticate_args args, org.apache.thrift.async.AsyncMethodCallback<SessionData> resultHandler) throws TException {
+ iface.authenticate(args.username, args.password,resultHandler);
+ }
+ }
+
+ public static class getUserFromToken<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getUserFromToken_args, UserInfo> {
+ public getUserFromToken() {
+ super("getUserFromToken");
+ }
+
+ public getUserFromToken_args getEmptyArgsInstance() {
+ return new getUserFromToken_args();
+ }
+
+ public AsyncMethodCallback<UserInfo> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new AsyncMethodCallback<UserInfo>() {
+ public void onComplete(UserInfo o) {
+ getUserFromToken_result result = new getUserFromToken_result();
+ result.success = o;
+ try {
+ fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ return;
+ } catch (Exception e) {
+ LOGGER.error("Exception writing to internal frame buffer", e);
+ }
+ fb.close();
+ }
+ public void onError(Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TBase msg;
+ getUserFromToken_result result = new getUserFromToken_result();
+ if (e instanceof InvalidTokenException) {
+ result.failure = (InvalidTokenException) e;
+ result.setFailureIsSet(true);
+ msg = result;
+ }
+ else
+ {
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ return;
+ } catch (Exception ex) {
+ LOGGER.error("Exception writing to internal frame buffer", ex);
+ }
+ fb.close();
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, getUserFromToken_args args, org.apache.thrift.async.AsyncMethodCallback<UserInfo> resultHandler) throws TException {
+ iface.getUserFromToken(args.token,resultHandler);
+ }
+ }
+
+ }
+
+ public static class ping_args implements org.apache.thrift.TBase<ping_args, ping_args._Fields>, java.io.Serializable, Cloneable, Comparable<ping_args> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ping_args");
+
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new ping_argsStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new ping_argsTupleSchemeFactory());
+ }
+
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+;
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ping_args.class, metaDataMap);
+ }
+
+ public ping_args() {
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public ping_args(ping_args other) {
+ }
+
+ public ping_args deepCopy() {
+ return new ping_args(this);
+ }
+
+ @Override
+ public void clear() {
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ }
+ throw new IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
+ switch (field) {
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof ping_args)
+ return this.equals((ping_args)that);
+ return false;
+ }
+
+ public boolean equals(ping_args that) {
+ if (that == null)
+ return false;
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return 0;
+ }
+
+ @Override
+ public int compareTo(ping_args other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("ping_args(");
+ boolean first = true;
+
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class ping_argsStandardSchemeFactory implements SchemeFactory {
+ public ping_argsStandardScheme getScheme() {
+ return new ping_argsStandardScheme();
+ }
+ }
+
+ private static class ping_argsStandardScheme extends StandardScheme<ping_args> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, ping_args struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+
+ // check for required fields of primitive type, which can't be checked in the validate method
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, ping_args struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class ping_argsTupleSchemeFactory implements SchemeFactory {
+ public ping_argsTupleScheme getScheme() {
+ return new ping_argsTupleScheme();
+ }
+ }
+
+ private static class ping_argsTupleScheme extends TupleScheme<ping_args> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, ping_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, ping_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ }
+ }
+
+ }
+
+ public static class ping_result implements org.apache.thrift.TBase<ping_result, ping_result._Fields>, java.io.Serializable, Cloneable, Comparable<ping_result> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ping_result");
+
+ private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new ping_resultStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new ping_resultTupleSchemeFactory());
+ }
+
+ public boolean success; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ SUCCESS((short)0, "success");
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 0: // SUCCESS
+ return SUCCESS;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ private static final int __SUCCESS_ISSET_ID = 0;
+ private byte __isset_bitfield = 0;
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ping_result.class, metaDataMap);
+ }
+
+ public ping_result() {
+ }
+
+ public ping_result(
+ boolean success)
+ {
+ this();
+ this.success = success;
+ setSuccessIsSet(true);
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public ping_result(ping_result other) {
+ __isset_bitfield = other.__isset_bitfield;
+ this.success = other.success;
+ }
+
+ public ping_result deepCopy() {
+ return new ping_result(this);
+ }
+
+ @Override
+ public void clear() {
+ setSuccessIsSet(false);
+ this.success = false;
+ }
+
+ public boolean isSuccess() {
+ return this.success;
+ }
+
+ public ping_result setSuccess(boolean success) {
+ this.success = success;
+ setSuccessIsSet(true);
+ return this;
+ }
+
+ public void unsetSuccess() {
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
+ }
+
+ /** Returns true if field success is set (has been assigned a value) and false otherwise */
+ public boolean isSetSuccess() {
+ return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
+ }
+
+ public void setSuccessIsSet(boolean value) {
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case SUCCESS:
+ if (value == null) {
+ unsetSuccess();
+ } else {
+ setSuccess((Boolean)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case SUCCESS:
+ return Boolean.valueOf(isSuccess());
+
+ }
+ throw new IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
+ switch (field) {
+ case SUCCESS:
+ return isSetSuccess();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof ping_result)
+ return this.equals((ping_result)that);
+ return false;
+ }
+
+ public boolean equals(ping_result that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_success = true;
+ boolean that_present_success = true;
+ if (this_present_success || that_present_success) {
+ if (!(this_present_success && that_present_success))
+ return false;
+ if (this.success != that.success)
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return 0;
+ }
+
+ @Override
+ public int compareTo(ping_result other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetSuccess()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("ping_result(");
+ boolean first = true;
+
+ sb.append("success:");
+ sb.append(this.success);
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
+ __isset_bitfield = 0;
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class ping_resultStandardSchemeFactory implements SchemeFactory {
+ public ping_resultStandardScheme getScheme() {
+ return new ping_resultStandardScheme();
+ }
+ }
+
+ private static class ping_resultStandardScheme extends StandardScheme<ping_result> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, ping_result struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 0: // SUCCESS
+ if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
+ struct.success = iprot.readBool();
+ struct.setSuccessIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+
+ // check for required fields of primitive type, which can't be checked in the validate method
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, ping_result struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.isSetSuccess()) {
+ oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
+ oprot.writeBool(struct.success);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class ping_resultTupleSchemeFactory implements SchemeFactory {
+ public ping_resultTupleScheme getScheme() {
+ return new ping_resultTupleScheme();
+ }
+ }
+
+ private static class ping_resultTupleScheme extends TupleScheme<ping_result> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, ping_result struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetSuccess()) {
+ optionals.set(0);
+ }
+ oprot.writeBitSet(optionals, 1);
+ if (struct.isSetSuccess()) {
+ oprot.writeBool(struct.success);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, ping_result struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(1);
+ if (incoming.get(0)) {
+ struct.success = iprot.readBool();
+ struct.setSuccessIsSet(true);
+ }
+ }
+ }
+
+ }
+
+ public static class authenticate_args implements org.apache.thrift.TBase<authenticate_args, authenticate_args._Fields>, java.io.Serializable, Cloneable, Comparable<authenticate_args> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticate_args");
+
+ private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)1);
+ private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)2);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new authenticate_argsStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new authenticate_argsTupleSchemeFactory());
+ }
+
+ public String username; // required
+ public String password; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ USERNAME((short)1, "username"),
+ PASSWORD((short)2, "password");
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 1: // USERNAME
+ return USERNAME;
+ case 2: // PASSWORD
+ return PASSWORD;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticate_args.class, metaDataMap);
+ }
+
+ public authenticate_args() {
+ }
+
+ public authenticate_args(
+ String username,
+ String password)
+ {
+ this();
+ this.username = username;
+ this.password = password;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public authenticate_args(authenticate_args other) {
+ if (other.isSetUsername()) {
+ this.username = other.username;
+ }
+ if (other.isSetPassword()) {
+ this.password = other.password;
+ }
+ }
+
+ public authenticate_args deepCopy() {
+ return new authenticate_args(this);
+ }
+
+ @Override
+ public void clear() {
+ this.username = null;
+ this.password = null;
+ }
+
+ public String getUsername() {
+ return this.username;
+ }
+
+ public authenticate_args setUsername(String username) {
+ this.username = username;
+ return this;
+ }
+
+ public void unsetUsername() {
+ this.username = null;
+ }
+
+ /** Returns true if field username is set (has been assigned a value) and false otherwise */
+ public boolean isSetUsername() {
+ return this.username != null;
+ }
+
+ public void setUsernameIsSet(boolean value) {
+ if (!value) {
+ this.username = null;
+ }
+ }
+
+ public String getPassword() {
+ return this.password;
+ }
+
+ public authenticate_args setPassword(String password) {
+ this.password = password;
+ return this;
+ }
+
+ public void unsetPassword() {
+ this.password = null;
+ }
+
+ /** Returns true if field password is set (has been assigned a value) and false otherwise */
+ public boolean isSetPassword() {
+ return this.password != null;
+ }
+
+ public void setPasswordIsSet(boolean value) {
+ if (!value) {
+ this.password = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case USERNAME:
+ if (value == null) {
+ unsetUsername();
+ } else {
+ setUsername((String)value);
+ }
+ break;
+
+ case PASSWORD:
+ if (value == null) {
+ unsetPassword();
+ } else {
+ setPassword((String)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case USERNAME:
+ return getUsername();
+
+ case PASSWORD:
+ return getPassword();
+
+ }
+ throw new IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
+ switch (field) {
+ case USERNAME:
+ return isSetUsername();
+ case PASSWORD:
+ return isSetPassword();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof authenticate_args)
+ return this.equals((authenticate_args)that);
+ return false;
+ }
+
+ public boolean equals(authenticate_args that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_username = true && this.isSetUsername();
+ boolean that_present_username = true && that.isSetUsername();
+ if (this_present_username || that_present_username) {
+ if (!(this_present_username && that_present_username))
+ return false;
+ if (!this.username.equals(that.username))
+ return false;
+ }
+
+ boolean this_present_password = true && this.isSetPassword();
+ boolean that_present_password = true && that.isSetPassword();
+ if (this_present_password || that_present_password) {
+ if (!(this_present_password && that_present_password))
+ return false;
+ if (!this.password.equals(that.password))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return 0;
+ }
+
+ @Override
+ public int compareTo(authenticate_args other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(isSetUsername()).compareTo(other.isSetUsername());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetUsername()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, other.username);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetPassword()).compareTo(other.isSetPassword());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetPassword()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, other.password);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("authenticate_args(");
+ boolean first = true;
+
+ sb.append("username:");
+ if (this.username == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.username);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("password:");
+ if (this.password == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.password);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class authenticate_argsStandardSchemeFactory implements SchemeFactory {
+ public authenticate_argsStandardScheme getScheme() {
+ return new authenticate_argsStandardScheme();
+ }
+ }
+
+ private static class authenticate_argsStandardScheme extends StandardScheme<authenticate_args> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, authenticate_args struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 1: // USERNAME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.username = iprot.readString();
+ struct.setUsernameIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 2: // PASSWORD
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.password = iprot.readString();
+ struct.setPasswordIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+
+ // check for required fields of primitive type, which can't be checked in the validate method
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, authenticate_args struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.username != null) {
+ oprot.writeFieldBegin(USERNAME_FIELD_DESC);
+ oprot.writeString(struct.username);
+ oprot.writeFieldEnd();
+ }
+ if (struct.password != null) {
+ oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
+ oprot.writeString(struct.password);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class authenticate_argsTupleSchemeFactory implements SchemeFactory {
+ public authenticate_argsTupleScheme getScheme() {
+ return new authenticate_argsTupleScheme();
+ }
+ }
+
+ private static class authenticate_argsTupleScheme extends TupleScheme<authenticate_args> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, authenticate_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetUsername()) {
+ optionals.set(0);
+ }
+ if (struct.isSetPassword()) {
+ optionals.set(1);
+ }
+ oprot.writeBitSet(optionals, 2);
+ if (struct.isSetUsername()) {
+ oprot.writeString(struct.username);
+ }
+ if (struct.isSetPassword()) {
+ oprot.writeString(struct.password);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, authenticate_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(2);
+ if (incoming.get(0)) {
+ struct.username = iprot.readString();
+ struct.setUsernameIsSet(true);
+ }
+ if (incoming.get(1)) {
+ struct.password = iprot.readString();
+ struct.setPasswordIsSet(true);
+ }
+ }
+ }
+
+ }
+
+ public static class authenticate_result implements org.apache.thrift.TBase<authenticate_result, authenticate_result._Fields>, java.io.Serializable, Cloneable, Comparable<authenticate_result> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticate_result");
+
+ private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
+ private static final org.apache.thrift.protocol.TField FAILURE_FIELD_DESC = new org.apache.thrift.protocol.TField("failure", org.apache.thrift.protocol.TType.STRUCT, (short)1);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new authenticate_resultStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new authenticate_resultTupleSchemeFactory());
+ }
+
+ public SessionData success; // required
+ public AuthenticationException failure; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ SUCCESS((short)0, "success"),
+ FAILURE((short)1, "failure");
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 0: // SUCCESS
+ return SUCCESS;
+ case 1: // FAILURE
+ return FAILURE;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SessionData.class)));
+ tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticate_result.class, metaDataMap);
+ }
+
+ public authenticate_result() {
+ }
+
+ public authenticate_result(
+ SessionData success,
+ AuthenticationException failure)
+ {
+ this();
+ this.success = success;
+ this.failure = failure;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public authenticate_result(authenticate_result other) {
+ if (other.isSetSuccess()) {
+ this.success = new SessionData(other.success);
+ }
+ if (other.isSetFailure()) {
+ this.failure = new AuthenticationException(other.failure);
+ }
+ }
+
+ public authenticate_result deepCopy() {
+ return new authenticate_result(this);
+ }
+
+ @Override
+ public void clear() {
+ this.success = null;
+ this.failure = null;
+ }
+
+ public SessionData getSuccess() {
+ return this.success;
+ }
+
+ public authenticate_result setSuccess(SessionData success) {
+ this.success = success;
+ return this;
+ }
+
+ public void unsetSuccess() {
+ this.success = null;
+ }
+
+ /** Returns true if field success is set (has been assigned a value) and false otherwise */
+ public boolean isSetSuccess() {
+ return this.success != null;
+ }
+
+ public void setSuccessIsSet(boolean value) {
+ if (!value) {
+ this.success = null;
+ }
+ }
+
+ public AuthenticationException getFailure() {
+ return this.failure;
+ }
+
+ public authenticate_result setFailure(AuthenticationException failure) {
+ this.failure = failure;
+ return this;
+ }
+
+ public void unsetFailure() {
+ this.failure = null;
+ }
+
+ /** Returns true if field failure is set (has been assigned a value) and false otherwise */
+ public boolean isSetFailure() {
+ return this.failure != null;
+ }
+
+ public void setFailureIsSet(boolean value) {
+ if (!value) {
+ this.failure = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case SUCCESS:
+ if (value == null) {
+ unsetSuccess();
+ } else {
+ setSuccess((SessionData)value);
+ }
+ break;
+
+ case FAILURE:
+ if (value == null) {
+ unsetFailure();
+ } else {
+ setFailure((AuthenticationException)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case SUCCESS:
+ return getSuccess();
+
+ case FAILURE:
+ return getFailure();
+
+ }
+ throw new IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
+ switch (field) {
+ case SUCCESS:
+ return isSetSuccess();
+ case FAILURE:
+ return isSetFailure();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof authenticate_result)
+ return this.equals((authenticate_result)that);
+ return false;
+ }
+
+ public boolean equals(authenticate_result that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_success = true && this.isSetSuccess();
+ boolean that_present_success = true && that.isSetSuccess();
+ if (this_present_success || that_present_success) {
+ if (!(this_present_success && that_present_success))
+ return false;
+ if (!this.success.equals(that.success))
+ return false;
+ }
+
+ boolean this_present_failure = true && this.isSetFailure();
+ boolean that_present_failure = true && that.isSetFailure();
+ if (this_present_failure || that_present_failure) {
+ if (!(this_present_failure && that_present_failure))
+ return false;
+ if (!this.failure.equals(that.failure))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return 0;
+ }
+
+ @Override
+ public int compareTo(authenticate_result other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetSuccess()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetFailure()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure, other.failure);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("authenticate_result(");
+ boolean first = true;
+
+ sb.append("success:");
+ if (this.success == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.success);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("failure:");
+ if (this.failure == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.failure);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ if (success != null) {
+ success.validate();
+ }
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class authenticate_resultStandardSchemeFactory implements SchemeFactory {
+ public authenticate_resultStandardScheme getScheme() {
+ return new authenticate_resultStandardScheme();
+ }
+ }
+
+ private static class authenticate_resultStandardScheme extends StandardScheme<authenticate_result> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, authenticate_result struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 0: // SUCCESS
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+ struct.success = new SessionData();
+ struct.success.read(iprot);
+ struct.setSuccessIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 1: // FAILURE
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+ struct.failure = new AuthenticationException();
+ struct.failure.read(iprot);
+ struct.setFailureIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+
+ // check for required fields of primitive type, which can't be checked in the validate method
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, authenticate_result struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.success != null) {
+ oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
+ struct.success.write(oprot);
+ oprot.writeFieldEnd();
+ }
+ if (struct.failure != null) {
+ oprot.writeFieldBegin(FAILURE_FIELD_DESC);
+ struct.failure.write(oprot);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class authenticate_resultTupleSchemeFactory implements SchemeFactory {
+ public authenticate_resultTupleScheme getScheme() {
+ return new authenticate_resultTupleScheme();
+ }
+ }
+
+ private static class authenticate_resultTupleScheme extends TupleScheme<authenticate_result> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, authenticate_result struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetSuccess()) {
+ optionals.set(0);
+ }
+ if (struct.isSetFailure()) {
+ optionals.set(1);
+ }
+ oprot.writeBitSet(optionals, 2);
+ if (struct.isSetSuccess()) {
+ struct.success.write(oprot);
+ }
+ if (struct.isSetFailure()) {
+ struct.failure.write(oprot);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, authenticate_result struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(2);
+ if (incoming.get(0)) {
+ struct.success = new SessionData();
+ struct.success.read(iprot);
+ struct.setSuccessIsSet(true);
+ }
+ if (incoming.get(1)) {
+ struct.failure = new AuthenticationException();
+ struct.failure.read(iprot);
+ struct.setFailureIsSet(true);
+ }
+ }
+ }
+
+ }
+
+ public static class getUserFromToken_args implements org.apache.thrift.TBase<getUserFromToken_args, getUserFromToken_args._Fields>, java.io.Serializable, Cloneable, Comparable<getUserFromToken_args> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserFromToken_args");
+
+ private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)1);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new getUserFromToken_argsStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new getUserFromToken_argsTupleSchemeFactory());
+ }
+
+ public String token; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ TOKEN((short)1, "token");
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 1: // TOKEN
+ return TOKEN;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token")));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserFromToken_args.class, metaDataMap);
+ }
+
+ public getUserFromToken_args() {
+ }
+
+ public getUserFromToken_args(
+ String token)
+ {
+ this();
+ this.token = token;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public getUserFromToken_args(getUserFromToken_args other) {
+ if (other.isSetToken()) {
+ this.token = other.token;
+ }
+ }
+
+ public getUserFromToken_args deepCopy() {
+ return new getUserFromToken_args(this);
+ }
+
+ @Override
+ public void clear() {
+ this.token = null;
+ }
+
+ public String getToken() {
+ return this.token;
+ }
+
+ public getUserFromToken_args setToken(String token) {
+ this.token = token;
+ return this;
+ }
+
+ public void unsetToken() {
+ this.token = null;
+ }
+
+ /** Returns true if field token is set (has been assigned a value) and false otherwise */
+ public boolean isSetToken() {
+ return this.token != null;
+ }
+
+ public void setTokenIsSet(boolean value) {
+ if (!value) {
+ this.token = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case TOKEN:
+ if (value == null) {
+ unsetToken();
+ } else {
+ setToken((String)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case TOKEN:
+ return getToken();
+
+ }
+ throw new IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
+ switch (field) {
+ case TOKEN:
+ return isSetToken();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof getUserFromToken_args)
+ return this.equals((getUserFromToken_args)that);
+ return false;
+ }
+
+ public boolean equals(getUserFromToken_args that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_token = true && this.isSetToken();
+ boolean that_present_token = true && that.isSetToken();
+ if (this_present_token || that_present_token) {
+ if (!(this_present_token && that_present_token))
+ return false;
+ if (!this.token.equals(that.token))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return 0;
+ }
+
+ @Override
+ public int compareTo(getUserFromToken_args other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetToken()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("getUserFromToken_args(");
+ boolean first = true;
+
+ sb.append("token:");
+ if (this.token == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.token);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class getUserFromToken_argsStandardSchemeFactory implements SchemeFactory {
+ public getUserFromToken_argsStandardScheme getScheme() {
+ return new getUserFromToken_argsStandardScheme();
+ }
+ }
+
+ private static class getUserFromToken_argsStandardScheme extends StandardScheme<getUserFromToken_args> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, getUserFromToken_args struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 1: // TOKEN
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.token = iprot.readString();
+ struct.setTokenIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+
+ // check for required fields of primitive type, which can't be checked in the validate method
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, getUserFromToken_args struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.token != null) {
+ oprot.writeFieldBegin(TOKEN_FIELD_DESC);
+ oprot.writeString(struct.token);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class getUserFromToken_argsTupleSchemeFactory implements SchemeFactory {
+ public getUserFromToken_argsTupleScheme getScheme() {
+ return new getUserFromToken_argsTupleScheme();
+ }
+ }
+
+ private static class getUserFromToken_argsTupleScheme extends TupleScheme<getUserFromToken_args> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, getUserFromToken_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetToken()) {
+ optionals.set(0);
+ }
+ oprot.writeBitSet(optionals, 1);
+ if (struct.isSetToken()) {
+ oprot.writeString(struct.token);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, getUserFromToken_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(1);
+ if (incoming.get(0)) {
+ struct.token = iprot.readString();
+ struct.setTokenIsSet(true);
+ }
+ }
+ }
+
+ }
+
+ public static class getUserFromToken_result implements org.apache.thrift.TBase<getUserFromToken_result, getUserFromToken_result._Fields>, java.io.Serializable, Cloneable, Comparable<getUserFromToken_result> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserFromToken_result");
+
+ private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
+ private static final org.apache.thrift.protocol.TField FAILURE_FIELD_DESC = new org.apache.thrift.protocol.TField("failure", org.apache.thrift.protocol.TType.STRUCT, (short)1);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new getUserFromToken_resultStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new getUserFromToken_resultTupleSchemeFactory());
+ }
+
+ public UserInfo success; // required
+ public InvalidTokenException failure; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ SUCCESS((short)0, "success"),
+ FAILURE((short)1, "failure");
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 0: // SUCCESS
+ return SUCCESS;
+ case 1: // FAILURE
+ return FAILURE;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserInfo.class)));
+ tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserFromToken_result.class, metaDataMap);
+ }
+
+ public getUserFromToken_result() {
+ }
+
+ public getUserFromToken_result(
+ UserInfo success,
+ InvalidTokenException failure)
+ {
+ this();
+ this.success = success;
+ this.failure = failure;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public getUserFromToken_result(getUserFromToken_result other) {
+ if (other.isSetSuccess()) {
+ this.success = new UserInfo(other.success);
+ }
+ if (other.isSetFailure()) {
+ this.failure = new InvalidTokenException(other.failure);
+ }
+ }
+
+ public getUserFromToken_result deepCopy() {
+ return new getUserFromToken_result(this);
+ }
+
+ @Override
+ public void clear() {
+ this.success = null;
+ this.failure = null;
+ }
+
+ public UserInfo getSuccess() {
+ return this.success;
+ }
+
+ public getUserFromToken_result setSuccess(UserInfo success) {
+ this.success = success;
+ return this;
+ }
+
+ public void unsetSuccess() {
+ this.success = null;
+ }
+
+ /** Returns true if field success is set (has been assigned a value) and false otherwise */
+ public boolean isSetSuccess() {
+ return this.success != null;
+ }
+
+ public void setSuccessIsSet(boolean value) {
+ if (!value) {
+ this.success = null;
+ }
+ }
+
+ public InvalidTokenException getFailure() {
+ return this.failure;
+ }
+
+ public getUserFromToken_result setFailure(InvalidTokenException failure) {
+ this.failure = failure;
+ return this;
+ }
+
+ public void unsetFailure() {
+ this.failure = null;
+ }
+
+ /** Returns true if field failure is set (has been assigned a value) and false otherwise */
+ public boolean isSetFailure() {
+ return this.failure != null;
+ }
+
+ public void setFailureIsSet(boolean value) {
+ if (!value) {
+ this.failure = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case SUCCESS:
+ if (value == null) {
+ unsetSuccess();
+ } else {
+ setSuccess((UserInfo)value);
+ }
+ break;
+
+ case FAILURE:
+ if (value == null) {
+ unsetFailure();
+ } else {
+ setFailure((InvalidTokenException)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case SUCCESS:
+ return getSuccess();
+
+ case FAILURE:
+ return getFailure();
+
+ }
+ throw new IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
+ switch (field) {
+ case SUCCESS:
+ return isSetSuccess();
+ case FAILURE:
+ return isSetFailure();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof getUserFromToken_result)
+ return this.equals((getUserFromToken_result)that);
+ return false;
+ }
+
+ public boolean equals(getUserFromToken_result that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_success = true && this.isSetSuccess();
+ boolean that_present_success = true && that.isSetSuccess();
+ if (this_present_success || that_present_success) {
+ if (!(this_present_success && that_present_success))
+ return false;
+ if (!this.success.equals(that.success))
+ return false;
+ }
+
+ boolean this_present_failure = true && this.isSetFailure();
+ boolean that_present_failure = true && that.isSetFailure();
+ if (this_present_failure || that_present_failure) {
+ if (!(this_present_failure && that_present_failure))
+ return false;
+ if (!this.failure.equals(that.failure))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return 0;
+ }
+
+ @Override
+ public int compareTo(getUserFromToken_result other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetSuccess()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetFailure()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure, other.failure);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("getUserFromToken_result(");
+ boolean first = true;
+
+ sb.append("success:");
+ if (this.success == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.success);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("failure:");
+ if (this.failure == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.failure);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ if (success != null) {
+ success.validate();
+ }
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class getUserFromToken_resultStandardSchemeFactory implements SchemeFactory {
+ public getUserFromToken_resultStandardScheme getScheme() {
+ return new getUserFromToken_resultStandardScheme();
+ }
+ }
+
+ private static class getUserFromToken_resultStandardScheme extends StandardScheme<getUserFromToken_result> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, getUserFromToken_result struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 0: // SUCCESS
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+ struct.success = new UserInfo();
+ struct.success.read(iprot);
+ struct.setSuccessIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 1: // FAILURE
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+ struct.failure = new InvalidTokenException();
+ struct.failure.read(iprot);
+ struct.setFailureIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+
+ // check for required fields of primitive type, which can't be checked in the validate method
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, getUserFromToken_result struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.success != null) {
+ oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
+ struct.success.write(oprot);
+ oprot.writeFieldEnd();
+ }
+ if (struct.failure != null) {
+ oprot.writeFieldBegin(FAILURE_FIELD_DESC);
+ struct.failure.write(oprot);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class getUserFromToken_resultTupleSchemeFactory implements SchemeFactory {
+ public getUserFromToken_resultTupleScheme getScheme() {
+ return new getUserFromToken_resultTupleScheme();
+ }
+ }
+
+ private static class getUserFromToken_resultTupleScheme extends TupleScheme<getUserFromToken_result> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, getUserFromToken_result struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetSuccess()) {
+ optionals.set(0);
+ }
+ if (struct.isSetFailure()) {
+ optionals.set(1);
+ }
+ oprot.writeBitSet(optionals, 2);
+ if (struct.isSetSuccess()) {
+ struct.success.write(oprot);
+ }
+ if (struct.isSetFailure()) {
+ struct.failure.write(oprot);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, getUserFromToken_result struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(2);
+ if (incoming.get(0)) {
+ struct.success = new UserInfo();
+ struct.success.read(iprot);
+ struct.setSuccessIsSet(true);
+ }
+ if (incoming.get(1)) {
+ struct.failure = new InvalidTokenException();
+ struct.failure.read(iprot);
+ struct.setFailureIsSet(true);
+ }
+ }
+ }
+
+ }
+
+}
diff --git a/Dozentenmodul/src/thrift/InvalidTokenException.java b/Dozentenmodul/src/thrift/InvalidTokenException.java
new file mode 100644
index 00000000..914199b5
--- /dev/null
+++ b/Dozentenmodul/src/thrift/InvalidTokenException.java
@@ -0,0 +1,280 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.1)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+package thrift;
+
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class InvalidTokenException extends TException implements org.apache.thrift.TBase<InvalidTokenException, InvalidTokenException._Fields>, java.io.Serializable, Cloneable, Comparable<InvalidTokenException> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InvalidTokenException");
+
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new InvalidTokenExceptionStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new InvalidTokenExceptionTupleSchemeFactory());
+ }
+
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+;
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(InvalidTokenException.class, metaDataMap);
+ }
+
+ public InvalidTokenException() {
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public InvalidTokenException(InvalidTokenException other) {
+ }
+
+ public InvalidTokenException deepCopy() {
+ return new InvalidTokenException(this);
+ }
+
+ @Override
+ public void clear() {
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ }
+ throw new IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
+ switch (field) {
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof InvalidTokenException)
+ return this.equals((InvalidTokenException)that);
+ return false;
+ }
+
+ public boolean equals(InvalidTokenException that) {
+ if (that == null)
+ return false;
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return 0;
+ }
+
+ @Override
+ public int compareTo(InvalidTokenException other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("InvalidTokenException(");
+ boolean first = true;
+
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class InvalidTokenExceptionStandardSchemeFactory implements SchemeFactory {
+ public InvalidTokenExceptionStandardScheme getScheme() {
+ return new InvalidTokenExceptionStandardScheme();
+ }
+ }
+
+ private static class InvalidTokenExceptionStandardScheme extends StandardScheme<InvalidTokenException> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, InvalidTokenException struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+
+ // check for required fields of primitive type, which can't be checked in the validate method
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, InvalidTokenException struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class InvalidTokenExceptionTupleSchemeFactory implements SchemeFactory {
+ public InvalidTokenExceptionTupleScheme getScheme() {
+ return new InvalidTokenExceptionTupleScheme();
+ }
+ }
+
+ private static class InvalidTokenExceptionTupleScheme extends TupleScheme<InvalidTokenException> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, InvalidTokenException struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, InvalidTokenException struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ }
+ }
+
+}
+
diff --git a/Dozentenmodul/src/thrift/MasterThriftConnection.java b/Dozentenmodul/src/thrift/MasterThriftConnection.java
new file mode 100644
index 00000000..ecbc689c
--- /dev/null
+++ b/Dozentenmodul/src/thrift/MasterThriftConnection.java
@@ -0,0 +1,38 @@
+package thrift;
+
+import org.apache.thrift.protocol.TBinaryProtocol;
+import org.apache.thrift.protocol.TProtocol;
+import org.apache.thrift.transport.TSocket;
+import org.apache.thrift.transport.TTransport;
+import org.apache.thrift.transport.TTransportException;
+
+import thrift.ImageServer.Client;
+
+
+
+public class MasterThriftConnection {
+ final TTransport transport = new TSocket("132.230.4.16", 9090);
+ public Client getMasterThriftConnection()
+ {
+
+ try {
+ transport.open();
+ } catch (TTransportException e) {
+ System.out.println("Keine Verbindung möglich!");
+ return null;
+ }
+
+ final TProtocol protocol = new TBinaryProtocol(transport);
+ final Client client = new Client(protocol);
+
+
+ System.out.println("Der Server läuft!");
+
+ return client;
+ }
+
+ public void closeMasterThriftConnection()
+ {
+ transport.close();
+ }
+}
diff --git a/Dozentenmodul/src/thrift/SessionData.java b/Dozentenmodul/src/thrift/SessionData.java
new file mode 100644
index 00000000..51f0f80b
--- /dev/null
+++ b/Dozentenmodul/src/thrift/SessionData.java
@@ -0,0 +1,588 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.1)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+package thrift;
+
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class SessionData implements org.apache.thrift.TBase<SessionData, SessionData._Fields>, java.io.Serializable, Cloneable, Comparable<SessionData> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SessionData");
+
+ private static final org.apache.thrift.protocol.TField SESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionId", org.apache.thrift.protocol.TType.STRING, (short)1);
+ private static final org.apache.thrift.protocol.TField AUTH_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("authToken", org.apache.thrift.protocol.TType.STRING, (short)2);
+ private static final org.apache.thrift.protocol.TField SERVER_ADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("serverAddress", org.apache.thrift.protocol.TType.STRING, (short)3);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new SessionDataStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new SessionDataTupleSchemeFactory());
+ }
+
+ public String sessionId; // required
+ public String authToken; // required
+ public String serverAddress; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ SESSION_ID((short)1, "sessionId"),
+ AUTH_TOKEN((short)2, "authToken"),
+ SERVER_ADDRESS((short)3, "serverAddress");
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 1: // SESSION_ID
+ return SESSION_ID;
+ case 2: // AUTH_TOKEN
+ return AUTH_TOKEN;
+ case 3: // SERVER_ADDRESS
+ return SERVER_ADDRESS;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.SESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("sessionId", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "ID")));
+ tmpMap.put(_Fields.AUTH_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("authToken", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token")));
+ tmpMap.put(_Fields.SERVER_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("serverAddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(SessionData.class, metaDataMap);
+ }
+
+ public SessionData() {
+ }
+
+ public SessionData(
+ String sessionId,
+ String authToken,
+ String serverAddress)
+ {
+ this();
+ this.sessionId = sessionId;
+ this.authToken = authToken;
+ this.serverAddress = serverAddress;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public SessionData(SessionData other) {
+ if (other.isSetSessionId()) {
+ this.sessionId = other.sessionId;
+ }
+ if (other.isSetAuthToken()) {
+ this.authToken = other.authToken;
+ }
+ if (other.isSetServerAddress()) {
+ this.serverAddress = other.serverAddress;
+ }
+ }
+
+ public SessionData deepCopy() {
+ return new SessionData(this);
+ }
+
+ @Override
+ public void clear() {
+ this.sessionId = null;
+ this.authToken = null;
+ this.serverAddress = null;
+ }
+
+ public String getSessionId() {
+ return this.sessionId;
+ }
+
+ public SessionData setSessionId(String sessionId) {
+ this.sessionId = sessionId;
+ return this;
+ }
+
+ public void unsetSessionId() {
+ this.sessionId = null;
+ }
+
+ /** Returns true if field sessionId is set (has been assigned a value) and false otherwise */
+ public boolean isSetSessionId() {
+ return this.sessionId != null;
+ }
+
+ public void setSessionIdIsSet(boolean value) {
+ if (!value) {
+ this.sessionId = null;
+ }
+ }
+
+ public String getAuthToken() {
+ return this.authToken;
+ }
+
+ public SessionData setAuthToken(String authToken) {
+ this.authToken = authToken;
+ return this;
+ }
+
+ public void unsetAuthToken() {
+ this.authToken = null;
+ }
+
+ /** Returns true if field authToken is set (has been assigned a value) and false otherwise */
+ public boolean isSetAuthToken() {
+ return this.authToken != null;
+ }
+
+ public void setAuthTokenIsSet(boolean value) {
+ if (!value) {
+ this.authToken = null;
+ }
+ }
+
+ public String getServerAddress() {
+ return this.serverAddress;
+ }
+
+ public SessionData setServerAddress(String serverAddress) {
+ this.serverAddress = serverAddress;
+ return this;
+ }
+
+ public void unsetServerAddress() {
+ this.serverAddress = null;
+ }
+
+ /** Returns true if field serverAddress is set (has been assigned a value) and false otherwise */
+ public boolean isSetServerAddress() {
+ return this.serverAddress != null;
+ }
+
+ public void setServerAddressIsSet(boolean value) {
+ if (!value) {
+ this.serverAddress = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case SESSION_ID:
+ if (value == null) {
+ unsetSessionId();
+ } else {
+ setSessionId((String)value);
+ }
+ break;
+
+ case AUTH_TOKEN:
+ if (value == null) {
+ unsetAuthToken();
+ } else {
+ setAuthToken((String)value);
+ }
+ break;
+
+ case SERVER_ADDRESS:
+ if (value == null) {
+ unsetServerAddress();
+ } else {
+ setServerAddress((String)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case SESSION_ID:
+ return getSessionId();
+
+ case AUTH_TOKEN:
+ return getAuthToken();
+
+ case SERVER_ADDRESS:
+ return getServerAddress();
+
+ }
+ throw new IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
+ switch (field) {
+ case SESSION_ID:
+ return isSetSessionId();
+ case AUTH_TOKEN:
+ return isSetAuthToken();
+ case SERVER_ADDRESS:
+ return isSetServerAddress();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof SessionData)
+ return this.equals((SessionData)that);
+ return false;
+ }
+
+ public boolean equals(SessionData that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_sessionId = true && this.isSetSessionId();
+ boolean that_present_sessionId = true && that.isSetSessionId();
+ if (this_present_sessionId || that_present_sessionId) {
+ if (!(this_present_sessionId && that_present_sessionId))
+ return false;
+ if (!this.sessionId.equals(that.sessionId))
+ return false;
+ }
+
+ boolean this_present_authToken = true && this.isSetAuthToken();
+ boolean that_present_authToken = true && that.isSetAuthToken();
+ if (this_present_authToken || that_present_authToken) {
+ if (!(this_present_authToken && that_present_authToken))
+ return false;
+ if (!this.authToken.equals(that.authToken))
+ return false;
+ }
+
+ boolean this_present_serverAddress = true && this.isSetServerAddress();
+ boolean that_present_serverAddress = true && that.isSetServerAddress();
+ if (this_present_serverAddress || that_present_serverAddress) {
+ if (!(this_present_serverAddress && that_present_serverAddress))
+ return false;
+ if (!this.serverAddress.equals(that.serverAddress))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return 0;
+ }
+
+ @Override
+ public int compareTo(SessionData other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(other.isSetSessionId());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetSessionId()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionId, other.sessionId);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetAuthToken()).compareTo(other.isSetAuthToken());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetAuthToken()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authToken, other.authToken);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetServerAddress()).compareTo(other.isSetServerAddress());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetServerAddress()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverAddress, other.serverAddress);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("SessionData(");
+ boolean first = true;
+
+ sb.append("sessionId:");
+ if (this.sessionId == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.sessionId);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("authToken:");
+ if (this.authToken == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.authToken);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("serverAddress:");
+ if (this.serverAddress == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.serverAddress);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class SessionDataStandardSchemeFactory implements SchemeFactory {
+ public SessionDataStandardScheme getScheme() {
+ return new SessionDataStandardScheme();
+ }
+ }
+
+ private static class SessionDataStandardScheme extends StandardScheme<SessionData> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, SessionData struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 1: // SESSION_ID
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.sessionId = iprot.readString();
+ struct.setSessionIdIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 2: // AUTH_TOKEN
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.authToken = iprot.readString();
+ struct.setAuthTokenIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 3: // SERVER_ADDRESS
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.serverAddress = iprot.readString();
+ struct.setServerAddressIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+
+ // check for required fields of primitive type, which can't be checked in the validate method
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, SessionData struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.sessionId != null) {
+ oprot.writeFieldBegin(SESSION_ID_FIELD_DESC);
+ oprot.writeString(struct.sessionId);
+ oprot.writeFieldEnd();
+ }
+ if (struct.authToken != null) {
+ oprot.writeFieldBegin(AUTH_TOKEN_FIELD_DESC);
+ oprot.writeString(struct.authToken);
+ oprot.writeFieldEnd();
+ }
+ if (struct.serverAddress != null) {
+ oprot.writeFieldBegin(SERVER_ADDRESS_FIELD_DESC);
+ oprot.writeString(struct.serverAddress);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class SessionDataTupleSchemeFactory implements SchemeFactory {
+ public SessionDataTupleScheme getScheme() {
+ return new SessionDataTupleScheme();
+ }
+ }
+
+ private static class SessionDataTupleScheme extends TupleScheme<SessionData> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, SessionData struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetSessionId()) {
+ optionals.set(0);
+ }
+ if (struct.isSetAuthToken()) {
+ optionals.set(1);
+ }
+ if (struct.isSetServerAddress()) {
+ optionals.set(2);
+ }
+ oprot.writeBitSet(optionals, 3);
+ if (struct.isSetSessionId()) {
+ oprot.writeString(struct.sessionId);
+ }
+ if (struct.isSetAuthToken()) {
+ oprot.writeString(struct.authToken);
+ }
+ if (struct.isSetServerAddress()) {
+ oprot.writeString(struct.serverAddress);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, SessionData struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(3);
+ if (incoming.get(0)) {
+ struct.sessionId = iprot.readString();
+ struct.setSessionIdIsSet(true);
+ }
+ if (incoming.get(1)) {
+ struct.authToken = iprot.readString();
+ struct.setAuthTokenIsSet(true);
+ }
+ if (incoming.get(2)) {
+ struct.serverAddress = iprot.readString();
+ struct.setServerAddressIsSet(true);
+ }
+ }
+ }
+
+}
+
diff --git a/Dozentenmodul/src/thrift/ThriftConnection.java b/Dozentenmodul/src/thrift/ThriftConnection.java
index 21baff96..311125f5 100644
--- a/Dozentenmodul/src/thrift/ThriftConnection.java
+++ b/Dozentenmodul/src/thrift/ThriftConnection.java
@@ -10,7 +10,8 @@ import server.Server;
import server.Server.Client;
public class ThriftConnection {
- final TTransport transport = new TSocket("141.79.128.121", 9090);
+ //final TTransport transport = new TSocket("141.79.128.121", 9090);
+ final TTransport transport = new TSocket("141.79.128.102", 9090);
public Client getThriftConnection()
{
@@ -25,13 +26,14 @@ public class ThriftConnection {
final Server.Client client = new Server.Client(protocol);
- System.out.println("Der Server läuft!");
+ System.out.println("Verbindung wurde aufgebaut.");
return client;
}
public void closeThriftConnection()
{
+ System.out.println("Verbindung wird geplant getrennt...");
transport.close();
}
}
diff --git a/Dozentenmodul/src/thrift/UserInfo.java b/Dozentenmodul/src/thrift/UserInfo.java
new file mode 100644
index 00000000..56678646
--- /dev/null
+++ b/Dozentenmodul/src/thrift/UserInfo.java
@@ -0,0 +1,688 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.1)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+package thrift;
+
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class UserInfo implements org.apache.thrift.TBase<UserInfo, UserInfo._Fields>, java.io.Serializable, Cloneable, Comparable<UserInfo> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UserInfo");
+
+ private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.STRING, (short)1);
+ private static final org.apache.thrift.protocol.TField FIRST_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("firstName", org.apache.thrift.protocol.TType.STRING, (short)2);
+ private static final org.apache.thrift.protocol.TField LAST_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lastName", org.apache.thrift.protocol.TType.STRING, (short)3);
+ private static final org.apache.thrift.protocol.TField E_MAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("eMail", org.apache.thrift.protocol.TType.STRING, (short)4);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new UserInfoStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new UserInfoTupleSchemeFactory());
+ }
+
+ public String userId; // required
+ public String firstName; // required
+ public String lastName; // required
+ public String eMail; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ USER_ID((short)1, "userId"),
+ FIRST_NAME((short)2, "firstName"),
+ LAST_NAME((short)3, "lastName"),
+ E_MAIL((short)4, "eMail");
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 1: // USER_ID
+ return USER_ID;
+ case 2: // FIRST_NAME
+ return FIRST_NAME;
+ case 3: // LAST_NAME
+ return LAST_NAME;
+ case 4: // E_MAIL
+ return E_MAIL;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.FIRST_NAME, new org.apache.thrift.meta_data.FieldMetaData("firstName", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.LAST_NAME, new org.apache.thrift.meta_data.FieldMetaData("lastName", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.E_MAIL, new org.apache.thrift.meta_data.FieldMetaData("eMail", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(UserInfo.class, metaDataMap);
+ }
+
+ public UserInfo() {
+ }
+
+ public UserInfo(
+ String userId,
+ String firstName,
+ String lastName,
+ String eMail)
+ {
+ this();
+ this.userId = userId;
+ this.firstName = firstName;
+ this.lastName = lastName;
+ this.eMail = eMail;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public UserInfo(UserInfo other) {
+ if (other.isSetUserId()) {
+ this.userId = other.userId;
+ }
+ if (other.isSetFirstName()) {
+ this.firstName = other.firstName;
+ }
+ if (other.isSetLastName()) {
+ this.lastName = other.lastName;
+ }
+ if (other.isSetEMail()) {
+ this.eMail = other.eMail;
+ }
+ }
+
+ public UserInfo deepCopy() {
+ return new UserInfo(this);
+ }
+
+ @Override
+ public void clear() {
+ this.userId = null;
+ this.firstName = null;
+ this.lastName = null;
+ this.eMail = null;
+ }
+
+ public String getUserId() {
+ return this.userId;
+ }
+
+ public UserInfo setUserId(String userId) {
+ this.userId = userId;
+ return this;
+ }
+
+ public void unsetUserId() {
+ this.userId = null;
+ }
+
+ /** Returns true if field userId is set (has been assigned a value) and false otherwise */
+ public boolean isSetUserId() {
+ return this.userId != null;
+ }
+
+ public void setUserIdIsSet(boolean value) {
+ if (!value) {
+ this.userId = null;
+ }
+ }
+
+ public String getFirstName() {
+ return this.firstName;
+ }
+
+ public UserInfo setFirstName(String firstName) {
+ this.firstName = firstName;
+ return this;
+ }
+
+ public void unsetFirstName() {
+ this.firstName = null;
+ }
+
+ /** Returns true if field firstName is set (has been assigned a value) and false otherwise */
+ public boolean isSetFirstName() {
+ return this.firstName != null;
+ }
+
+ public void setFirstNameIsSet(boolean value) {
+ if (!value) {
+ this.firstName = null;
+ }
+ }
+
+ public String getLastName() {
+ return this.lastName;
+ }
+
+ public UserInfo setLastName(String lastName) {
+ this.lastName = lastName;
+ return this;
+ }
+
+ public void unsetLastName() {
+ this.lastName = null;
+ }
+
+ /** Returns true if field lastName is set (has been assigned a value) and false otherwise */
+ public boolean isSetLastName() {
+ return this.lastName != null;
+ }
+
+ public void setLastNameIsSet(boolean value) {
+ if (!value) {
+ this.lastName = null;
+ }
+ }
+
+ public String getEMail() {
+ return this.eMail;
+ }
+
+ public UserInfo setEMail(String eMail) {
+ this.eMail = eMail;
+ return this;
+ }
+
+ public void unsetEMail() {
+ this.eMail = null;
+ }
+
+ /** Returns true if field eMail is set (has been assigned a value) and false otherwise */
+ public boolean isSetEMail() {
+ return this.eMail != null;
+ }
+
+ public void setEMailIsSet(boolean value) {
+ if (!value) {
+ this.eMail = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case USER_ID:
+ if (value == null) {
+ unsetUserId();
+ } else {
+ setUserId((String)value);
+ }
+ break;
+
+ case FIRST_NAME:
+ if (value == null) {
+ unsetFirstName();
+ } else {
+ setFirstName((String)value);
+ }
+ break;
+
+ case LAST_NAME:
+ if (value == null) {
+ unsetLastName();
+ } else {
+ setLastName((String)value);
+ }
+ break;
+
+ case E_MAIL:
+ if (value == null) {
+ unsetEMail();
+ } else {
+ setEMail((String)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case USER_ID:
+ return getUserId();
+
+ case FIRST_NAME:
+ return getFirstName();
+
+ case LAST_NAME:
+ return getLastName();
+
+ case E_MAIL:
+ return getEMail();
+
+ }
+ throw new IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
+ switch (field) {
+ case USER_ID:
+ return isSetUserId();
+ case FIRST_NAME:
+ return isSetFirstName();
+ case LAST_NAME:
+ return isSetLastName();
+ case E_MAIL:
+ return isSetEMail();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof UserInfo)
+ return this.equals((UserInfo)that);
+ return false;
+ }
+
+ public boolean equals(UserInfo that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_userId = true && this.isSetUserId();
+ boolean that_present_userId = true && that.isSetUserId();
+ if (this_present_userId || that_present_userId) {
+ if (!(this_present_userId && that_present_userId))
+ return false;
+ if (!this.userId.equals(that.userId))
+ return false;
+ }
+
+ boolean this_present_firstName = true && this.isSetFirstName();
+ boolean that_present_firstName = true && that.isSetFirstName();
+ if (this_present_firstName || that_present_firstName) {
+ if (!(this_present_firstName && that_present_firstName))
+ return false;
+ if (!this.firstName.equals(that.firstName))
+ return false;
+ }
+
+ boolean this_present_lastName = true && this.isSetLastName();
+ boolean that_present_lastName = true && that.isSetLastName();
+ if (this_present_lastName || that_present_lastName) {
+ if (!(this_present_lastName && that_present_lastName))
+ return false;
+ if (!this.lastName.equals(that.lastName))
+ return false;
+ }
+
+ boolean this_present_eMail = true && this.isSetEMail();
+ boolean that_present_eMail = true && that.isSetEMail();
+ if (this_present_eMail || that_present_eMail) {
+ if (!(this_present_eMail && that_present_eMail))
+ return false;
+ if (!this.eMail.equals(that.eMail))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return 0;
+ }
+
+ @Override
+ public int compareTo(UserInfo other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(isSetUserId()).compareTo(other.isSetUserId());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetUserId()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, other.userId);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetFirstName()).compareTo(other.isSetFirstName());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetFirstName()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.firstName, other.firstName);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetLastName()).compareTo(other.isSetLastName());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetLastName()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastName, other.lastName);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetEMail()).compareTo(other.isSetEMail());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetEMail()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eMail, other.eMail);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("UserInfo(");
+ boolean first = true;
+
+ sb.append("userId:");
+ if (this.userId == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.userId);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("firstName:");
+ if (this.firstName == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.firstName);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("lastName:");
+ if (this.lastName == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.lastName);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("eMail:");
+ if (this.eMail == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.eMail);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class UserInfoStandardSchemeFactory implements SchemeFactory {
+ public UserInfoStandardScheme getScheme() {
+ return new UserInfoStandardScheme();
+ }
+ }
+
+ private static class UserInfoStandardScheme extends StandardScheme<UserInfo> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, UserInfo struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 1: // USER_ID
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.userId = iprot.readString();
+ struct.setUserIdIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 2: // FIRST_NAME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.firstName = iprot.readString();
+ struct.setFirstNameIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 3: // LAST_NAME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.lastName = iprot.readString();
+ struct.setLastNameIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 4: // E_MAIL
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.eMail = iprot.readString();
+ struct.setEMailIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+
+ // check for required fields of primitive type, which can't be checked in the validate method
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, UserInfo struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.userId != null) {
+ oprot.writeFieldBegin(USER_ID_FIELD_DESC);
+ oprot.writeString(struct.userId);
+ oprot.writeFieldEnd();
+ }
+ if (struct.firstName != null) {
+ oprot.writeFieldBegin(FIRST_NAME_FIELD_DESC);
+ oprot.writeString(struct.firstName);
+ oprot.writeFieldEnd();
+ }
+ if (struct.lastName != null) {
+ oprot.writeFieldBegin(LAST_NAME_FIELD_DESC);
+ oprot.writeString(struct.lastName);
+ oprot.writeFieldEnd();
+ }
+ if (struct.eMail != null) {
+ oprot.writeFieldBegin(E_MAIL_FIELD_DESC);
+ oprot.writeString(struct.eMail);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class UserInfoTupleSchemeFactory implements SchemeFactory {
+ public UserInfoTupleScheme getScheme() {
+ return new UserInfoTupleScheme();
+ }
+ }
+
+ private static class UserInfoTupleScheme extends TupleScheme<UserInfo> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, UserInfo struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetUserId()) {
+ optionals.set(0);
+ }
+ if (struct.isSetFirstName()) {
+ optionals.set(1);
+ }
+ if (struct.isSetLastName()) {
+ optionals.set(2);
+ }
+ if (struct.isSetEMail()) {
+ optionals.set(3);
+ }
+ oprot.writeBitSet(optionals, 4);
+ if (struct.isSetUserId()) {
+ oprot.writeString(struct.userId);
+ }
+ if (struct.isSetFirstName()) {
+ oprot.writeString(struct.firstName);
+ }
+ if (struct.isSetLastName()) {
+ oprot.writeString(struct.lastName);
+ }
+ if (struct.isSetEMail()) {
+ oprot.writeString(struct.eMail);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, UserInfo struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(4);
+ if (incoming.get(0)) {
+ struct.userId = iprot.readString();
+ struct.setUserIdIsSet(true);
+ }
+ if (incoming.get(1)) {
+ struct.firstName = iprot.readString();
+ struct.setFirstNameIsSet(true);
+ }
+ if (incoming.get(2)) {
+ struct.lastName = iprot.readString();
+ struct.setLastNameIsSet(true);
+ }
+ if (incoming.get(3)) {
+ struct.eMail = iprot.readString();
+ struct.setEMailIsSet(true);
+ }
+ }
+ }
+
+}
+
diff --git a/Dozentenmodul/src/thrift/communicate.thrift b/Dozentenmodul/src/thrift/communicate.thrift
deleted file mode 100644
index e69de29b..00000000
--- a/Dozentenmodul/src/thrift/communicate.thrift
+++ /dev/null
diff --git a/Dozentenmodulserver/bin/server/BinaryListener.class b/Dozentenmodulserver/bin/server/BinaryListener.class
index 30db4102..d53cdc9d 100644
--- a/Dozentenmodulserver/bin/server/BinaryListener.class
+++ b/Dozentenmodulserver/bin/server/BinaryListener.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Image$ImageStandardScheme.class b/Dozentenmodulserver/bin/server/Image$ImageStandardScheme.class
index 2355b1c5..d2e80220 100644
--- a/Dozentenmodulserver/bin/server/Image$ImageStandardScheme.class
+++ b/Dozentenmodulserver/bin/server/Image$ImageStandardScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Image$ImageStandardSchemeFactory.class b/Dozentenmodulserver/bin/server/Image$ImageStandardSchemeFactory.class
index 6ae79b2d..da393159 100644
--- a/Dozentenmodulserver/bin/server/Image$ImageStandardSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Image$ImageStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Image$ImageTupleScheme.class b/Dozentenmodulserver/bin/server/Image$ImageTupleScheme.class
index 17a94e26..63fdf940 100644
--- a/Dozentenmodulserver/bin/server/Image$ImageTupleScheme.class
+++ b/Dozentenmodulserver/bin/server/Image$ImageTupleScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Image$ImageTupleSchemeFactory.class b/Dozentenmodulserver/bin/server/Image$ImageTupleSchemeFactory.class
index f37368bd..ae9305a5 100644
--- a/Dozentenmodulserver/bin/server/Image$ImageTupleSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Image$ImageTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Image$_Fields.class b/Dozentenmodulserver/bin/server/Image$_Fields.class
index 9b307a8e..1a5f4454 100644
--- a/Dozentenmodulserver/bin/server/Image$_Fields.class
+++ b/Dozentenmodulserver/bin/server/Image$_Fields.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Image.class b/Dozentenmodulserver/bin/server/Image.class
index 1e1a241d..4aed38be 100644
--- a/Dozentenmodulserver/bin/server/Image.class
+++ b/Dozentenmodulserver/bin/server/Image.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Lecture$LectureStandardScheme.class b/Dozentenmodulserver/bin/server/Lecture$LectureStandardScheme.class
new file mode 100644
index 00000000..9a345304
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Lecture$LectureStandardScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Lecture$LectureStandardSchemeFactory.class b/Dozentenmodulserver/bin/server/Lecture$LectureStandardSchemeFactory.class
new file mode 100644
index 00000000..8f40c279
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Lecture$LectureStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Lecture$LectureTupleScheme.class b/Dozentenmodulserver/bin/server/Lecture$LectureTupleScheme.class
new file mode 100644
index 00000000..8cd68eca
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Lecture$LectureTupleScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Lecture$LectureTupleSchemeFactory.class b/Dozentenmodulserver/bin/server/Lecture$LectureTupleSchemeFactory.class
new file mode 100644
index 00000000..a0ac20fb
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Lecture$LectureTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Lecture$_Fields.class b/Dozentenmodulserver/bin/server/Lecture$_Fields.class
new file mode 100644
index 00000000..e1ec6923
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Lecture$_Fields.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Lecture.class b/Dozentenmodulserver/bin/server/Lecture.class
new file mode 100644
index 00000000..8d3c743c
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Lecture.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncClient$DeleteFtpUser_call.class b/Dozentenmodulserver/bin/server/Server$AsyncClient$DeleteFtpUser_call.class
index abf4c581..b9f7aece 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncClient$DeleteFtpUser_call.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncClient$DeleteFtpUser_call.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncClient$Factory.class b/Dozentenmodulserver/bin/server/Server$AsyncClient$Factory.class
index acdef304..3a6ee149 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncClient$Factory.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncClient$Factory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncClient$getAllOS_call.class b/Dozentenmodulserver/bin/server/Server$AsyncClient$getAllOS_call.class
index 0cb35fc5..ad446096 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncClient$getAllOS_call.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncClient$getAllOS_call.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncClient$getFtpUser_call.class b/Dozentenmodulserver/bin/server/Server$AsyncClient$getFtpUser_call.class
index 2f623ddb..a81b124d 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncClient$getFtpUser_call.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncClient$getFtpUser_call.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncClient$getImageData_call.class b/Dozentenmodulserver/bin/server/Server$AsyncClient$getImageData_call.class
index 001d6cfe..b41f875f 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncClient$getImageData_call.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncClient$getImageData_call.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncClient$getImageList_call.class b/Dozentenmodulserver/bin/server/Server$AsyncClient$getImageList_call.class
index 48e04b70..9443b61d 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncClient$getImageList_call.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncClient$getImageList_call.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncClient$getLectureData_call.class b/Dozentenmodulserver/bin/server/Server$AsyncClient$getLectureData_call.class
new file mode 100644
index 00000000..f14b4b88
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$AsyncClient$getLectureData_call.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncClient$getImages_call.class b/Dozentenmodulserver/bin/server/Server$AsyncClient$getLectureList_call.class
index 237f1345..f5fea364 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncClient$getImages_call.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncClient$getLectureList_call.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncClient$getPathOfImage_call.class b/Dozentenmodulserver/bin/server/Server$AsyncClient$getPathOfImage_call.class
index 4252ebe5..15a7e64d 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncClient$getPathOfImage_call.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncClient$getPathOfImage_call.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncClient$getPersonData_call.class b/Dozentenmodulserver/bin/server/Server$AsyncClient$getPersonData_call.class
index f9a7d59c..e73d9eb7 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncClient$getPersonData_call.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncClient$getPersonData_call.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncClient$startFileCopy_call.class b/Dozentenmodulserver/bin/server/Server$AsyncClient$startFileCopy_call.class
index 5af5b67f..5706d84c 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncClient$startFileCopy_call.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncClient$startFileCopy_call.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncClient$updateImageData_call.class b/Dozentenmodulserver/bin/server/Server$AsyncClient$updateImageData_call.class
index d6ba0c07..f40d9576 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncClient$updateImageData_call.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncClient$updateImageData_call.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncClient$writeLecturedata_call.class b/Dozentenmodulserver/bin/server/Server$AsyncClient$writeLecturedata_call.class
index 5fabc8b7..45e8818b 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncClient$writeLecturedata_call.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncClient$writeLecturedata_call.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncClient$writeVLdata_call.class b/Dozentenmodulserver/bin/server/Server$AsyncClient$writeVLdata_call.class
index fe0ef5f5..0b9b8080 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncClient$writeVLdata_call.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncClient$writeVLdata_call.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncClient.class b/Dozentenmodulserver/bin/server/Server$AsyncClient.class
index 67c5c2e5..be6be8d5 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncClient.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncClient.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncIface.class b/Dozentenmodulserver/bin/server/Server$AsyncIface.class
index 8b9ee74b..041bd939 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncIface.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncIface.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$DeleteFtpUser$1.class b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$DeleteFtpUser$1.class
index 87cec09d..f05ef213 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$DeleteFtpUser$1.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$DeleteFtpUser$1.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$DeleteFtpUser.class b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$DeleteFtpUser.class
index 78f5e45f..41c2b398 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$DeleteFtpUser.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$DeleteFtpUser.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getAllOS$1.class b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getAllOS$1.class
index 5bc6fd96..c0839a71 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getAllOS$1.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getAllOS$1.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getAllOS.class b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getAllOS.class
index aaefe6b7..7b5efda9 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getAllOS.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getAllOS.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getFtpUser$1.class b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getFtpUser$1.class
index 5e55a2a1..fd02459a 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getFtpUser$1.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getFtpUser$1.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getFtpUser.class b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getFtpUser.class
index 49a0f26b..8866aa8c 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getFtpUser.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getFtpUser.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImageData$1.class b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImageData$1.class
index 97226ece..2adfcfd3 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImageData$1.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImageData$1.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImageData.class b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImageData.class
index b13764ef..052e5183 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImageData.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImageData.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImageList$1.class b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImageList$1.class
index 948c4d4b..efc7db7a 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImageList$1.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImageList$1.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImageList.class b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImageList.class
index 3a88ce37..b12eb26a 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImageList.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImageList.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImages$1.class b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImages$1.class
deleted file mode 100644
index 6a95dd5c..00000000
--- a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImages$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImages.class b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImages.class
deleted file mode 100644
index 9fc4ea92..00000000
--- a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImages.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getLectureData$1.class b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getLectureData$1.class
new file mode 100644
index 00000000..3199ecc8
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getLectureData$1.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getLectureData.class b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getLectureData.class
new file mode 100644
index 00000000..a3be493f
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getLectureData.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getLectureList$1.class b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getLectureList$1.class
new file mode 100644
index 00000000..26f60b44
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getLectureList$1.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getLectureList.class b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getLectureList.class
new file mode 100644
index 00000000..e32bc932
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getLectureList.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getPathOfImage$1.class b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getPathOfImage$1.class
index 6e937558..e052fa81 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getPathOfImage$1.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getPathOfImage$1.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getPathOfImage.class b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getPathOfImage.class
index fbf940f7..49e23bb5 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getPathOfImage.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getPathOfImage.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getPersonData$1.class b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getPersonData$1.class
index 69a9ccae..7e31f5f6 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getPersonData$1.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getPersonData$1.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getPersonData.class b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getPersonData.class
index cb0fa3f3..7479a47e 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getPersonData.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getPersonData.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$startFileCopy$1.class b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$startFileCopy$1.class
index df7b394c..e7028bc8 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$startFileCopy$1.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$startFileCopy$1.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$startFileCopy.class b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$startFileCopy.class
index 157435ac..58c78735 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$startFileCopy.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$startFileCopy.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$updateImageData$1.class b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$updateImageData$1.class
index b5758c82..ce2fbdaf 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$updateImageData$1.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$updateImageData$1.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$updateImageData.class b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$updateImageData.class
index 0a1bf7a6..6a24d4f3 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$updateImageData.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$updateImageData.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$writeLecturedata$1.class b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$writeLecturedata$1.class
index bb98cab8..e7a2b18a 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$writeLecturedata$1.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$writeLecturedata$1.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$writeLecturedata.class b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$writeLecturedata.class
index 33d60f15..8cc6545f 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$writeLecturedata.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$writeLecturedata.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$writeVLdata$1.class b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$writeVLdata$1.class
index 38d88ec0..d3005b35 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$writeVLdata$1.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$writeVLdata$1.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$writeVLdata.class b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$writeVLdata.class
index c5d0f961..96b2083f 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$writeVLdata.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$writeVLdata.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncProcessor.class b/Dozentenmodulserver/bin/server/Server$AsyncProcessor.class
index 6bbfa3a3..ddd24f66 100644
--- a/Dozentenmodulserver/bin/server/Server$AsyncProcessor.class
+++ b/Dozentenmodulserver/bin/server/Server$AsyncProcessor.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$Client$Factory.class b/Dozentenmodulserver/bin/server/Server$Client$Factory.class
index a1088cef..24cca88c 100644
--- a/Dozentenmodulserver/bin/server/Server$Client$Factory.class
+++ b/Dozentenmodulserver/bin/server/Server$Client$Factory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$Client.class b/Dozentenmodulserver/bin/server/Server$Client.class
index 8945f922..d138733d 100644
--- a/Dozentenmodulserver/bin/server/Server$Client.class
+++ b/Dozentenmodulserver/bin/server/Server$Client.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args$DeleteFtpUser_argsStandardScheme.class b/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args$DeleteFtpUser_argsStandardScheme.class
index 3e523047..0ac8e25a 100644
--- a/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args$DeleteFtpUser_argsStandardScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args$DeleteFtpUser_argsStandardScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args$DeleteFtpUser_argsStandardSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args$DeleteFtpUser_argsStandardSchemeFactory.class
index 69764a0f..f64ceb22 100644
--- a/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args$DeleteFtpUser_argsStandardSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args$DeleteFtpUser_argsStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args$DeleteFtpUser_argsTupleScheme.class b/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args$DeleteFtpUser_argsTupleScheme.class
index ee8e6598..d34a3316 100644
--- a/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args$DeleteFtpUser_argsTupleScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args$DeleteFtpUser_argsTupleScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args$DeleteFtpUser_argsTupleSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args$DeleteFtpUser_argsTupleSchemeFactory.class
index 7f34e06e..eac18f6d 100644
--- a/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args$DeleteFtpUser_argsTupleSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args$DeleteFtpUser_argsTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args$_Fields.class b/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args$_Fields.class
index 1db5c5c4..b2d4175d 100644
--- a/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args$_Fields.class
+++ b/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args$_Fields.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args.class b/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args.class
index 5685d9d1..ab5fb30a 100644
--- a/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args.class
+++ b/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result$DeleteFtpUser_resultStandardScheme.class b/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result$DeleteFtpUser_resultStandardScheme.class
index 0e5dd93f..ddf26e52 100644
--- a/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result$DeleteFtpUser_resultStandardScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result$DeleteFtpUser_resultStandardScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result$DeleteFtpUser_resultStandardSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result$DeleteFtpUser_resultStandardSchemeFactory.class
index 54bdfb03..9a53fe08 100644
--- a/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result$DeleteFtpUser_resultStandardSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result$DeleteFtpUser_resultStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result$DeleteFtpUser_resultTupleScheme.class b/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result$DeleteFtpUser_resultTupleScheme.class
index 7fe07c2e..00a8eb2b 100644
--- a/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result$DeleteFtpUser_resultTupleScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result$DeleteFtpUser_resultTupleScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result$DeleteFtpUser_resultTupleSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result$DeleteFtpUser_resultTupleSchemeFactory.class
index 2dbb4d7e..1ddecd68 100644
--- a/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result$DeleteFtpUser_resultTupleSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result$DeleteFtpUser_resultTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result$_Fields.class b/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result$_Fields.class
index 0e16bb85..02524b76 100644
--- a/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result$_Fields.class
+++ b/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result$_Fields.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result.class b/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result.class
index b6439b75..4cad3c82 100644
--- a/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result.class
+++ b/Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$Iface.class b/Dozentenmodulserver/bin/server/Server$Iface.class
index e55efaca..78cd8be5 100644
--- a/Dozentenmodulserver/bin/server/Server$Iface.class
+++ b/Dozentenmodulserver/bin/server/Server$Iface.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$Processor$DeleteFtpUser.class b/Dozentenmodulserver/bin/server/Server$Processor$DeleteFtpUser.class
index 7bb704d7..810f02a6 100644
--- a/Dozentenmodulserver/bin/server/Server$Processor$DeleteFtpUser.class
+++ b/Dozentenmodulserver/bin/server/Server$Processor$DeleteFtpUser.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$Processor$getAllOS.class b/Dozentenmodulserver/bin/server/Server$Processor$getAllOS.class
index 4d57dd86..2ab05339 100644
--- a/Dozentenmodulserver/bin/server/Server$Processor$getAllOS.class
+++ b/Dozentenmodulserver/bin/server/Server$Processor$getAllOS.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$Processor$getFtpUser.class b/Dozentenmodulserver/bin/server/Server$Processor$getFtpUser.class
index 2706645e..621a3e04 100644
--- a/Dozentenmodulserver/bin/server/Server$Processor$getFtpUser.class
+++ b/Dozentenmodulserver/bin/server/Server$Processor$getFtpUser.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$Processor$getImageData.class b/Dozentenmodulserver/bin/server/Server$Processor$getImageData.class
index e434bff0..9af46fba 100644
--- a/Dozentenmodulserver/bin/server/Server$Processor$getImageData.class
+++ b/Dozentenmodulserver/bin/server/Server$Processor$getImageData.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$Processor$getImageList.class b/Dozentenmodulserver/bin/server/Server$Processor$getImageList.class
index 314bfc7e..baabb6a2 100644
--- a/Dozentenmodulserver/bin/server/Server$Processor$getImageList.class
+++ b/Dozentenmodulserver/bin/server/Server$Processor$getImageList.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$Processor$getImages.class b/Dozentenmodulserver/bin/server/Server$Processor$getImages.class
deleted file mode 100644
index ab119e82..00000000
--- a/Dozentenmodulserver/bin/server/Server$Processor$getImages.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$Processor$getLectureData.class b/Dozentenmodulserver/bin/server/Server$Processor$getLectureData.class
new file mode 100644
index 00000000..9ef5348a
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$Processor$getLectureData.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$Processor$getLectureList.class b/Dozentenmodulserver/bin/server/Server$Processor$getLectureList.class
new file mode 100644
index 00000000..84f355f6
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$Processor$getLectureList.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$Processor$getPathOfImage.class b/Dozentenmodulserver/bin/server/Server$Processor$getPathOfImage.class
index 57c172ec..940e9424 100644
--- a/Dozentenmodulserver/bin/server/Server$Processor$getPathOfImage.class
+++ b/Dozentenmodulserver/bin/server/Server$Processor$getPathOfImage.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$Processor$getPersonData.class b/Dozentenmodulserver/bin/server/Server$Processor$getPersonData.class
index 6f913f8b..2a4d2d05 100644
--- a/Dozentenmodulserver/bin/server/Server$Processor$getPersonData.class
+++ b/Dozentenmodulserver/bin/server/Server$Processor$getPersonData.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$Processor$startFileCopy.class b/Dozentenmodulserver/bin/server/Server$Processor$startFileCopy.class
index 3eb4149e..3271e7b7 100644
--- a/Dozentenmodulserver/bin/server/Server$Processor$startFileCopy.class
+++ b/Dozentenmodulserver/bin/server/Server$Processor$startFileCopy.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$Processor$updateImageData.class b/Dozentenmodulserver/bin/server/Server$Processor$updateImageData.class
index ef2188da..76a62c71 100644
--- a/Dozentenmodulserver/bin/server/Server$Processor$updateImageData.class
+++ b/Dozentenmodulserver/bin/server/Server$Processor$updateImageData.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$Processor$writeLecturedata.class b/Dozentenmodulserver/bin/server/Server$Processor$writeLecturedata.class
index ce35be56..1ff6a12a 100644
--- a/Dozentenmodulserver/bin/server/Server$Processor$writeLecturedata.class
+++ b/Dozentenmodulserver/bin/server/Server$Processor$writeLecturedata.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$Processor$writeVLdata.class b/Dozentenmodulserver/bin/server/Server$Processor$writeVLdata.class
index c7ca3585..ffc95d27 100644
--- a/Dozentenmodulserver/bin/server/Server$Processor$writeVLdata.class
+++ b/Dozentenmodulserver/bin/server/Server$Processor$writeVLdata.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$Processor.class b/Dozentenmodulserver/bin/server/Server$Processor.class
index cdde28d3..42a0a279 100644
--- a/Dozentenmodulserver/bin/server/Server$Processor.class
+++ b/Dozentenmodulserver/bin/server/Server$Processor.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getAllOS_args$_Fields.class b/Dozentenmodulserver/bin/server/Server$getAllOS_args$_Fields.class
index acd8c9a5..29a348c1 100644
--- a/Dozentenmodulserver/bin/server/Server$getAllOS_args$_Fields.class
+++ b/Dozentenmodulserver/bin/server/Server$getAllOS_args$_Fields.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getAllOS_args$getAllOS_argsStandardScheme.class b/Dozentenmodulserver/bin/server/Server$getAllOS_args$getAllOS_argsStandardScheme.class
index 9fb46ff3..afac26c7 100644
--- a/Dozentenmodulserver/bin/server/Server$getAllOS_args$getAllOS_argsStandardScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$getAllOS_args$getAllOS_argsStandardScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getAllOS_args$getAllOS_argsStandardSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getAllOS_args$getAllOS_argsStandardSchemeFactory.class
index 1202e7b8..124a613e 100644
--- a/Dozentenmodulserver/bin/server/Server$getAllOS_args$getAllOS_argsStandardSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$getAllOS_args$getAllOS_argsStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getAllOS_args$getAllOS_argsTupleScheme.class b/Dozentenmodulserver/bin/server/Server$getAllOS_args$getAllOS_argsTupleScheme.class
index d7204bce..677c9ab2 100644
--- a/Dozentenmodulserver/bin/server/Server$getAllOS_args$getAllOS_argsTupleScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$getAllOS_args$getAllOS_argsTupleScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getAllOS_args$getAllOS_argsTupleSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getAllOS_args$getAllOS_argsTupleSchemeFactory.class
index d2d24e50..8f24da32 100644
--- a/Dozentenmodulserver/bin/server/Server$getAllOS_args$getAllOS_argsTupleSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$getAllOS_args$getAllOS_argsTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getAllOS_args.class b/Dozentenmodulserver/bin/server/Server$getAllOS_args.class
index d99a33dd..0657e6a1 100644
--- a/Dozentenmodulserver/bin/server/Server$getAllOS_args.class
+++ b/Dozentenmodulserver/bin/server/Server$getAllOS_args.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getAllOS_result$_Fields.class b/Dozentenmodulserver/bin/server/Server$getAllOS_result$_Fields.class
index 00fdbc3e..c36806a9 100644
--- a/Dozentenmodulserver/bin/server/Server$getAllOS_result$_Fields.class
+++ b/Dozentenmodulserver/bin/server/Server$getAllOS_result$_Fields.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getAllOS_result$getAllOS_resultStandardScheme.class b/Dozentenmodulserver/bin/server/Server$getAllOS_result$getAllOS_resultStandardScheme.class
index dd3e2e62..ffd7bd58 100644
--- a/Dozentenmodulserver/bin/server/Server$getAllOS_result$getAllOS_resultStandardScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$getAllOS_result$getAllOS_resultStandardScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getAllOS_result$getAllOS_resultStandardSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getAllOS_result$getAllOS_resultStandardSchemeFactory.class
index c8aa8086..0e6a86b6 100644
--- a/Dozentenmodulserver/bin/server/Server$getAllOS_result$getAllOS_resultStandardSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$getAllOS_result$getAllOS_resultStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getAllOS_result$getAllOS_resultTupleScheme.class b/Dozentenmodulserver/bin/server/Server$getAllOS_result$getAllOS_resultTupleScheme.class
index 844999a7..fe540f6a 100644
--- a/Dozentenmodulserver/bin/server/Server$getAllOS_result$getAllOS_resultTupleScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$getAllOS_result$getAllOS_resultTupleScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getAllOS_result$getAllOS_resultTupleSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getAllOS_result$getAllOS_resultTupleSchemeFactory.class
index 34be4d7f..4f3fecc8 100644
--- a/Dozentenmodulserver/bin/server/Server$getAllOS_result$getAllOS_resultTupleSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$getAllOS_result$getAllOS_resultTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getAllOS_result.class b/Dozentenmodulserver/bin/server/Server$getAllOS_result.class
index c55375d7..cd8b23b0 100644
--- a/Dozentenmodulserver/bin/server/Server$getAllOS_result.class
+++ b/Dozentenmodulserver/bin/server/Server$getAllOS_result.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getFtpUser_args$_Fields.class b/Dozentenmodulserver/bin/server/Server$getFtpUser_args$_Fields.class
index 5a4a8d06..d4847279 100644
--- a/Dozentenmodulserver/bin/server/Server$getFtpUser_args$_Fields.class
+++ b/Dozentenmodulserver/bin/server/Server$getFtpUser_args$_Fields.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getFtpUser_args$getFtpUser_argsStandardScheme.class b/Dozentenmodulserver/bin/server/Server$getFtpUser_args$getFtpUser_argsStandardScheme.class
index fe6500e8..84af7916 100644
--- a/Dozentenmodulserver/bin/server/Server$getFtpUser_args$getFtpUser_argsStandardScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$getFtpUser_args$getFtpUser_argsStandardScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getFtpUser_args$getFtpUser_argsStandardSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getFtpUser_args$getFtpUser_argsStandardSchemeFactory.class
index bd78a191..05c85c60 100644
--- a/Dozentenmodulserver/bin/server/Server$getFtpUser_args$getFtpUser_argsStandardSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$getFtpUser_args$getFtpUser_argsStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getFtpUser_args$getFtpUser_argsTupleScheme.class b/Dozentenmodulserver/bin/server/Server$getFtpUser_args$getFtpUser_argsTupleScheme.class
index 23759e1e..22c4aba1 100644
--- a/Dozentenmodulserver/bin/server/Server$getFtpUser_args$getFtpUser_argsTupleScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$getFtpUser_args$getFtpUser_argsTupleScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getFtpUser_args$getFtpUser_argsTupleSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getFtpUser_args$getFtpUser_argsTupleSchemeFactory.class
index 763cf69d..2d953509 100644
--- a/Dozentenmodulserver/bin/server/Server$getFtpUser_args$getFtpUser_argsTupleSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$getFtpUser_args$getFtpUser_argsTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getFtpUser_args.class b/Dozentenmodulserver/bin/server/Server$getFtpUser_args.class
index 7df3a1e6..66f5aaaa 100644
--- a/Dozentenmodulserver/bin/server/Server$getFtpUser_args.class
+++ b/Dozentenmodulserver/bin/server/Server$getFtpUser_args.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getFtpUser_result$_Fields.class b/Dozentenmodulserver/bin/server/Server$getFtpUser_result$_Fields.class
index 10a01836..6f86e39f 100644
--- a/Dozentenmodulserver/bin/server/Server$getFtpUser_result$_Fields.class
+++ b/Dozentenmodulserver/bin/server/Server$getFtpUser_result$_Fields.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getFtpUser_result$getFtpUser_resultStandardScheme.class b/Dozentenmodulserver/bin/server/Server$getFtpUser_result$getFtpUser_resultStandardScheme.class
index fa864bb8..35a2154e 100644
--- a/Dozentenmodulserver/bin/server/Server$getFtpUser_result$getFtpUser_resultStandardScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$getFtpUser_result$getFtpUser_resultStandardScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getFtpUser_result$getFtpUser_resultStandardSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getFtpUser_result$getFtpUser_resultStandardSchemeFactory.class
index af13045e..f6c36954 100644
--- a/Dozentenmodulserver/bin/server/Server$getFtpUser_result$getFtpUser_resultStandardSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$getFtpUser_result$getFtpUser_resultStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getFtpUser_result$getFtpUser_resultTupleScheme.class b/Dozentenmodulserver/bin/server/Server$getFtpUser_result$getFtpUser_resultTupleScheme.class
index 114f7ff8..2e0d9e4b 100644
--- a/Dozentenmodulserver/bin/server/Server$getFtpUser_result$getFtpUser_resultTupleScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$getFtpUser_result$getFtpUser_resultTupleScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getFtpUser_result$getFtpUser_resultTupleSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getFtpUser_result$getFtpUser_resultTupleSchemeFactory.class
index 66340ce5..f5403647 100644
--- a/Dozentenmodulserver/bin/server/Server$getFtpUser_result$getFtpUser_resultTupleSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$getFtpUser_result$getFtpUser_resultTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getFtpUser_result.class b/Dozentenmodulserver/bin/server/Server$getFtpUser_result.class
index 81000160..7d669976 100644
--- a/Dozentenmodulserver/bin/server/Server$getFtpUser_result.class
+++ b/Dozentenmodulserver/bin/server/Server$getFtpUser_result.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImageData_args$_Fields.class b/Dozentenmodulserver/bin/server/Server$getImageData_args$_Fields.class
index ea9b5219..6368703f 100644
--- a/Dozentenmodulserver/bin/server/Server$getImageData_args$_Fields.class
+++ b/Dozentenmodulserver/bin/server/Server$getImageData_args$_Fields.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImageData_args$getImageData_argsStandardScheme.class b/Dozentenmodulserver/bin/server/Server$getImageData_args$getImageData_argsStandardScheme.class
index 10740a7b..5219ac71 100644
--- a/Dozentenmodulserver/bin/server/Server$getImageData_args$getImageData_argsStandardScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$getImageData_args$getImageData_argsStandardScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImageData_args$getImageData_argsStandardSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getImageData_args$getImageData_argsStandardSchemeFactory.class
index f590572b..76025f2a 100644
--- a/Dozentenmodulserver/bin/server/Server$getImageData_args$getImageData_argsStandardSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$getImageData_args$getImageData_argsStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImageData_args$getImageData_argsTupleScheme.class b/Dozentenmodulserver/bin/server/Server$getImageData_args$getImageData_argsTupleScheme.class
index 23c5d362..72489263 100644
--- a/Dozentenmodulserver/bin/server/Server$getImageData_args$getImageData_argsTupleScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$getImageData_args$getImageData_argsTupleScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImageData_args$getImageData_argsTupleSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getImageData_args$getImageData_argsTupleSchemeFactory.class
index 5c6892f0..d22f3e08 100644
--- a/Dozentenmodulserver/bin/server/Server$getImageData_args$getImageData_argsTupleSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$getImageData_args$getImageData_argsTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImageData_args.class b/Dozentenmodulserver/bin/server/Server$getImageData_args.class
index ef701cf2..f26a5cb4 100644
--- a/Dozentenmodulserver/bin/server/Server$getImageData_args.class
+++ b/Dozentenmodulserver/bin/server/Server$getImageData_args.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImageData_result$_Fields.class b/Dozentenmodulserver/bin/server/Server$getImageData_result$_Fields.class
index d4d637a3..cae43275 100644
--- a/Dozentenmodulserver/bin/server/Server$getImageData_result$_Fields.class
+++ b/Dozentenmodulserver/bin/server/Server$getImageData_result$_Fields.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImageData_result$getImageData_resultStandardScheme.class b/Dozentenmodulserver/bin/server/Server$getImageData_result$getImageData_resultStandardScheme.class
index 484443f0..67f53c44 100644
--- a/Dozentenmodulserver/bin/server/Server$getImageData_result$getImageData_resultStandardScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$getImageData_result$getImageData_resultStandardScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImageData_result$getImageData_resultStandardSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getImageData_result$getImageData_resultStandardSchemeFactory.class
index 8267839a..40a59907 100644
--- a/Dozentenmodulserver/bin/server/Server$getImageData_result$getImageData_resultStandardSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$getImageData_result$getImageData_resultStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImageData_result$getImageData_resultTupleScheme.class b/Dozentenmodulserver/bin/server/Server$getImageData_result$getImageData_resultTupleScheme.class
index bf6fd221..ac192466 100644
--- a/Dozentenmodulserver/bin/server/Server$getImageData_result$getImageData_resultTupleScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$getImageData_result$getImageData_resultTupleScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImageData_result$getImageData_resultTupleSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getImageData_result$getImageData_resultTupleSchemeFactory.class
index b2bdf58c..cebad682 100644
--- a/Dozentenmodulserver/bin/server/Server$getImageData_result$getImageData_resultTupleSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$getImageData_result$getImageData_resultTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImageData_result.class b/Dozentenmodulserver/bin/server/Server$getImageData_result.class
index 199c9606..df47fb85 100644
--- a/Dozentenmodulserver/bin/server/Server$getImageData_result.class
+++ b/Dozentenmodulserver/bin/server/Server$getImageData_result.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImageList_args$_Fields.class b/Dozentenmodulserver/bin/server/Server$getImageList_args$_Fields.class
index e09a2fac..639a5d48 100644
--- a/Dozentenmodulserver/bin/server/Server$getImageList_args$_Fields.class
+++ b/Dozentenmodulserver/bin/server/Server$getImageList_args$_Fields.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImageList_args$getImageList_argsStandardScheme.class b/Dozentenmodulserver/bin/server/Server$getImageList_args$getImageList_argsStandardScheme.class
index b4e12fd3..fdcd61bf 100644
--- a/Dozentenmodulserver/bin/server/Server$getImageList_args$getImageList_argsStandardScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$getImageList_args$getImageList_argsStandardScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImageList_args$getImageList_argsStandardSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getImageList_args$getImageList_argsStandardSchemeFactory.class
index 1901ac4a..72f11f08 100644
--- a/Dozentenmodulserver/bin/server/Server$getImageList_args$getImageList_argsStandardSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$getImageList_args$getImageList_argsStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImageList_args$getImageList_argsTupleScheme.class b/Dozentenmodulserver/bin/server/Server$getImageList_args$getImageList_argsTupleScheme.class
index fe66de87..64537d12 100644
--- a/Dozentenmodulserver/bin/server/Server$getImageList_args$getImageList_argsTupleScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$getImageList_args$getImageList_argsTupleScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImageList_args$getImageList_argsTupleSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getImageList_args$getImageList_argsTupleSchemeFactory.class
index 63c43a95..97399865 100644
--- a/Dozentenmodulserver/bin/server/Server$getImageList_args$getImageList_argsTupleSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$getImageList_args$getImageList_argsTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImageList_args.class b/Dozentenmodulserver/bin/server/Server$getImageList_args.class
index 2f4ec0d5..84c82c2c 100644
--- a/Dozentenmodulserver/bin/server/Server$getImageList_args.class
+++ b/Dozentenmodulserver/bin/server/Server$getImageList_args.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImageList_result$_Fields.class b/Dozentenmodulserver/bin/server/Server$getImageList_result$_Fields.class
index fda7bca2..60f37666 100644
--- a/Dozentenmodulserver/bin/server/Server$getImageList_result$_Fields.class
+++ b/Dozentenmodulserver/bin/server/Server$getImageList_result$_Fields.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImageList_result$getImageList_resultStandardScheme.class b/Dozentenmodulserver/bin/server/Server$getImageList_result$getImageList_resultStandardScheme.class
index a9128af0..e55b5484 100644
--- a/Dozentenmodulserver/bin/server/Server$getImageList_result$getImageList_resultStandardScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$getImageList_result$getImageList_resultStandardScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImageList_result$getImageList_resultStandardSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getImageList_result$getImageList_resultStandardSchemeFactory.class
index d48ea2ae..23d5421f 100644
--- a/Dozentenmodulserver/bin/server/Server$getImageList_result$getImageList_resultStandardSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$getImageList_result$getImageList_resultStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImageList_result$getImageList_resultTupleScheme.class b/Dozentenmodulserver/bin/server/Server$getImageList_result$getImageList_resultTupleScheme.class
index c7717082..8c92c9b0 100644
--- a/Dozentenmodulserver/bin/server/Server$getImageList_result$getImageList_resultTupleScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$getImageList_result$getImageList_resultTupleScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImageList_result$getImageList_resultTupleSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getImageList_result$getImageList_resultTupleSchemeFactory.class
index 3324aaca..ac540e16 100644
--- a/Dozentenmodulserver/bin/server/Server$getImageList_result$getImageList_resultTupleSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$getImageList_result$getImageList_resultTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImageList_result.class b/Dozentenmodulserver/bin/server/Server$getImageList_result.class
index 8d1c3bc1..0eb17fa2 100644
--- a/Dozentenmodulserver/bin/server/Server$getImageList_result.class
+++ b/Dozentenmodulserver/bin/server/Server$getImageList_result.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImages_args$getImages_argsStandardScheme.class b/Dozentenmodulserver/bin/server/Server$getImages_args$getImages_argsStandardScheme.class
deleted file mode 100644
index aed4d508..00000000
--- a/Dozentenmodulserver/bin/server/Server$getImages_args$getImages_argsStandardScheme.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImages_args$getImages_argsStandardSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getImages_args$getImages_argsStandardSchemeFactory.class
deleted file mode 100644
index 2e843f94..00000000
--- a/Dozentenmodulserver/bin/server/Server$getImages_args$getImages_argsStandardSchemeFactory.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImages_args$getImages_argsTupleScheme.class b/Dozentenmodulserver/bin/server/Server$getImages_args$getImages_argsTupleScheme.class
deleted file mode 100644
index 41a966f7..00000000
--- a/Dozentenmodulserver/bin/server/Server$getImages_args$getImages_argsTupleScheme.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImages_args$getImages_argsTupleSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getImages_args$getImages_argsTupleSchemeFactory.class
deleted file mode 100644
index 2a92204c..00000000
--- a/Dozentenmodulserver/bin/server/Server$getImages_args$getImages_argsTupleSchemeFactory.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImages_result$getImages_resultStandardScheme.class b/Dozentenmodulserver/bin/server/Server$getImages_result$getImages_resultStandardScheme.class
deleted file mode 100644
index 1ca5a9b1..00000000
--- a/Dozentenmodulserver/bin/server/Server$getImages_result$getImages_resultStandardScheme.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImages_result$getImages_resultStandardSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getImages_result$getImages_resultStandardSchemeFactory.class
deleted file mode 100644
index 61195369..00000000
--- a/Dozentenmodulserver/bin/server/Server$getImages_result$getImages_resultStandardSchemeFactory.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImages_result$getImages_resultTupleScheme.class b/Dozentenmodulserver/bin/server/Server$getImages_result$getImages_resultTupleScheme.class
deleted file mode 100644
index 5bc68640..00000000
--- a/Dozentenmodulserver/bin/server/Server$getImages_result$getImages_resultTupleScheme.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImages_result$getImages_resultTupleSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getImages_result$getImages_resultTupleSchemeFactory.class
deleted file mode 100644
index 3314acdf..00000000
--- a/Dozentenmodulserver/bin/server/Server$getImages_result$getImages_resultTupleSchemeFactory.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImages_result.class b/Dozentenmodulserver/bin/server/Server$getImages_result.class
deleted file mode 100644
index 04ab5e6d..00000000
--- a/Dozentenmodulserver/bin/server/Server$getImages_result.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getLectureData_args$_Fields.class b/Dozentenmodulserver/bin/server/Server$getLectureData_args$_Fields.class
new file mode 100644
index 00000000..55f3041b
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getLectureData_args$_Fields.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getLectureData_args$getLectureData_argsStandardScheme.class b/Dozentenmodulserver/bin/server/Server$getLectureData_args$getLectureData_argsStandardScheme.class
new file mode 100644
index 00000000..b1c4d1c3
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getLectureData_args$getLectureData_argsStandardScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getLectureData_args$getLectureData_argsStandardSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getLectureData_args$getLectureData_argsStandardSchemeFactory.class
new file mode 100644
index 00000000..beb781e8
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getLectureData_args$getLectureData_argsStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getLectureData_args$getLectureData_argsTupleScheme.class b/Dozentenmodulserver/bin/server/Server$getLectureData_args$getLectureData_argsTupleScheme.class
new file mode 100644
index 00000000..c8506bd2
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getLectureData_args$getLectureData_argsTupleScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getLectureData_args$getLectureData_argsTupleSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getLectureData_args$getLectureData_argsTupleSchemeFactory.class
new file mode 100644
index 00000000..65b48e26
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getLectureData_args$getLectureData_argsTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getLectureData_args.class b/Dozentenmodulserver/bin/server/Server$getLectureData_args.class
new file mode 100644
index 00000000..aab8f100
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getLectureData_args.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getLectureData_result$_Fields.class b/Dozentenmodulserver/bin/server/Server$getLectureData_result$_Fields.class
new file mode 100644
index 00000000..faf631f8
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getLectureData_result$_Fields.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getLectureData_result$getLectureData_resultStandardScheme.class b/Dozentenmodulserver/bin/server/Server$getLectureData_result$getLectureData_resultStandardScheme.class
new file mode 100644
index 00000000..05dbb134
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getLectureData_result$getLectureData_resultStandardScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getLectureData_result$getLectureData_resultStandardSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getLectureData_result$getLectureData_resultStandardSchemeFactory.class
new file mode 100644
index 00000000..c7e92e00
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getLectureData_result$getLectureData_resultStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getLectureData_result$getLectureData_resultTupleScheme.class b/Dozentenmodulserver/bin/server/Server$getLectureData_result$getLectureData_resultTupleScheme.class
new file mode 100644
index 00000000..f17e4a83
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getLectureData_result$getLectureData_resultTupleScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getLectureData_result$getLectureData_resultTupleSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getLectureData_result$getLectureData_resultTupleSchemeFactory.class
new file mode 100644
index 00000000..9540d300
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getLectureData_result$getLectureData_resultTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getLectureData_result.class b/Dozentenmodulserver/bin/server/Server$getLectureData_result.class
new file mode 100644
index 00000000..25e880a9
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getLectureData_result.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getLectureList_args$_Fields.class b/Dozentenmodulserver/bin/server/Server$getLectureList_args$_Fields.class
new file mode 100644
index 00000000..451f34e4
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getLectureList_args$_Fields.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getLectureList_args$getLectureList_argsStandardScheme.class b/Dozentenmodulserver/bin/server/Server$getLectureList_args$getLectureList_argsStandardScheme.class
new file mode 100644
index 00000000..d028e4f7
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getLectureList_args$getLectureList_argsStandardScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getLectureList_args$getLectureList_argsStandardSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getLectureList_args$getLectureList_argsStandardSchemeFactory.class
new file mode 100644
index 00000000..d01f0951
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getLectureList_args$getLectureList_argsStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getLectureList_args$getLectureList_argsTupleScheme.class b/Dozentenmodulserver/bin/server/Server$getLectureList_args$getLectureList_argsTupleScheme.class
new file mode 100644
index 00000000..a61a916e
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getLectureList_args$getLectureList_argsTupleScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getLectureList_args$getLectureList_argsTupleSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getLectureList_args$getLectureList_argsTupleSchemeFactory.class
new file mode 100644
index 00000000..34b83306
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getLectureList_args$getLectureList_argsTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getLectureList_args.class b/Dozentenmodulserver/bin/server/Server$getLectureList_args.class
new file mode 100644
index 00000000..1c32e854
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getLectureList_args.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getLectureList_result$_Fields.class b/Dozentenmodulserver/bin/server/Server$getLectureList_result$_Fields.class
new file mode 100644
index 00000000..fa941650
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getLectureList_result$_Fields.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getLectureList_result$getLectureList_resultStandardScheme.class b/Dozentenmodulserver/bin/server/Server$getLectureList_result$getLectureList_resultStandardScheme.class
new file mode 100644
index 00000000..1e5871c7
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getLectureList_result$getLectureList_resultStandardScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getLectureList_result$getLectureList_resultStandardSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getLectureList_result$getLectureList_resultStandardSchemeFactory.class
new file mode 100644
index 00000000..f44743fb
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getLectureList_result$getLectureList_resultStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getLectureList_result$getLectureList_resultTupleScheme.class b/Dozentenmodulserver/bin/server/Server$getLectureList_result$getLectureList_resultTupleScheme.class
new file mode 100644
index 00000000..a493e06d
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getLectureList_result$getLectureList_resultTupleScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getLectureList_result$getLectureList_resultTupleSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getLectureList_result$getLectureList_resultTupleSchemeFactory.class
new file mode 100644
index 00000000..8f34b0ca
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getLectureList_result$getLectureList_resultTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getLectureList_result.class b/Dozentenmodulserver/bin/server/Server$getLectureList_result.class
new file mode 100644
index 00000000..7541df8c
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getLectureList_result.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getPathOfImage_args$_Fields.class b/Dozentenmodulserver/bin/server/Server$getPathOfImage_args$_Fields.class
index 5f09f5db..f5698a5d 100644
--- a/Dozentenmodulserver/bin/server/Server$getPathOfImage_args$_Fields.class
+++ b/Dozentenmodulserver/bin/server/Server$getPathOfImage_args$_Fields.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getPathOfImage_args$getPathOfImage_argsStandardScheme.class b/Dozentenmodulserver/bin/server/Server$getPathOfImage_args$getPathOfImage_argsStandardScheme.class
index 808ebfe6..e89140d8 100644
--- a/Dozentenmodulserver/bin/server/Server$getPathOfImage_args$getPathOfImage_argsStandardScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$getPathOfImage_args$getPathOfImage_argsStandardScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getPathOfImage_args$getPathOfImage_argsStandardSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getPathOfImage_args$getPathOfImage_argsStandardSchemeFactory.class
index 549b0df5..58726357 100644
--- a/Dozentenmodulserver/bin/server/Server$getPathOfImage_args$getPathOfImage_argsStandardSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$getPathOfImage_args$getPathOfImage_argsStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getPathOfImage_args$getPathOfImage_argsTupleScheme.class b/Dozentenmodulserver/bin/server/Server$getPathOfImage_args$getPathOfImage_argsTupleScheme.class
index 1bf314d6..6c6a3191 100644
--- a/Dozentenmodulserver/bin/server/Server$getPathOfImage_args$getPathOfImage_argsTupleScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$getPathOfImage_args$getPathOfImage_argsTupleScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getPathOfImage_args$getPathOfImage_argsTupleSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getPathOfImage_args$getPathOfImage_argsTupleSchemeFactory.class
index c58d478f..22f6b508 100644
--- a/Dozentenmodulserver/bin/server/Server$getPathOfImage_args$getPathOfImage_argsTupleSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$getPathOfImage_args$getPathOfImage_argsTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getPathOfImage_args.class b/Dozentenmodulserver/bin/server/Server$getPathOfImage_args.class
index c95c1b12..c1951807 100644
--- a/Dozentenmodulserver/bin/server/Server$getPathOfImage_args.class
+++ b/Dozentenmodulserver/bin/server/Server$getPathOfImage_args.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getPathOfImage_result$_Fields.class b/Dozentenmodulserver/bin/server/Server$getPathOfImage_result$_Fields.class
index 5904aa96..152f4c5a 100644
--- a/Dozentenmodulserver/bin/server/Server$getPathOfImage_result$_Fields.class
+++ b/Dozentenmodulserver/bin/server/Server$getPathOfImage_result$_Fields.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getPathOfImage_result$getPathOfImage_resultStandardScheme.class b/Dozentenmodulserver/bin/server/Server$getPathOfImage_result$getPathOfImage_resultStandardScheme.class
index dc467539..a53bbab2 100644
--- a/Dozentenmodulserver/bin/server/Server$getPathOfImage_result$getPathOfImage_resultStandardScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$getPathOfImage_result$getPathOfImage_resultStandardScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getPathOfImage_result$getPathOfImage_resultStandardSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getPathOfImage_result$getPathOfImage_resultStandardSchemeFactory.class
index 4226c7a1..9a20fb03 100644
--- a/Dozentenmodulserver/bin/server/Server$getPathOfImage_result$getPathOfImage_resultStandardSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$getPathOfImage_result$getPathOfImage_resultStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getPathOfImage_result$getPathOfImage_resultTupleScheme.class b/Dozentenmodulserver/bin/server/Server$getPathOfImage_result$getPathOfImage_resultTupleScheme.class
index dcc5ae29..713c68b5 100644
--- a/Dozentenmodulserver/bin/server/Server$getPathOfImage_result$getPathOfImage_resultTupleScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$getPathOfImage_result$getPathOfImage_resultTupleScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getPathOfImage_result$getPathOfImage_resultTupleSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getPathOfImage_result$getPathOfImage_resultTupleSchemeFactory.class
index 62bca8cf..a1a85270 100644
--- a/Dozentenmodulserver/bin/server/Server$getPathOfImage_result$getPathOfImage_resultTupleSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$getPathOfImage_result$getPathOfImage_resultTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getPathOfImage_result.class b/Dozentenmodulserver/bin/server/Server$getPathOfImage_result.class
index 452b7c20..97dea6f5 100644
--- a/Dozentenmodulserver/bin/server/Server$getPathOfImage_result.class
+++ b/Dozentenmodulserver/bin/server/Server$getPathOfImage_result.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getPersonData_args$_Fields.class b/Dozentenmodulserver/bin/server/Server$getPersonData_args$_Fields.class
index c5964095..bb6f6aad 100644
--- a/Dozentenmodulserver/bin/server/Server$getPersonData_args$_Fields.class
+++ b/Dozentenmodulserver/bin/server/Server$getPersonData_args$_Fields.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getPersonData_args$getPersonData_argsStandardScheme.class b/Dozentenmodulserver/bin/server/Server$getPersonData_args$getPersonData_argsStandardScheme.class
index eee9a5b4..a93585e5 100644
--- a/Dozentenmodulserver/bin/server/Server$getPersonData_args$getPersonData_argsStandardScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$getPersonData_args$getPersonData_argsStandardScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getPersonData_args$getPersonData_argsStandardSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getPersonData_args$getPersonData_argsStandardSchemeFactory.class
index ec4eca0f..edf3ffe2 100644
--- a/Dozentenmodulserver/bin/server/Server$getPersonData_args$getPersonData_argsStandardSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$getPersonData_args$getPersonData_argsStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getPersonData_args$getPersonData_argsTupleScheme.class b/Dozentenmodulserver/bin/server/Server$getPersonData_args$getPersonData_argsTupleScheme.class
index 7cd69a98..c5f114a4 100644
--- a/Dozentenmodulserver/bin/server/Server$getPersonData_args$getPersonData_argsTupleScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$getPersonData_args$getPersonData_argsTupleScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getPersonData_args$getPersonData_argsTupleSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getPersonData_args$getPersonData_argsTupleSchemeFactory.class
index 81eacde4..47a5dc7d 100644
--- a/Dozentenmodulserver/bin/server/Server$getPersonData_args$getPersonData_argsTupleSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$getPersonData_args$getPersonData_argsTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getPersonData_args.class b/Dozentenmodulserver/bin/server/Server$getPersonData_args.class
index 7306db1f..1ed68869 100644
--- a/Dozentenmodulserver/bin/server/Server$getPersonData_args.class
+++ b/Dozentenmodulserver/bin/server/Server$getPersonData_args.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getPersonData_result$_Fields.class b/Dozentenmodulserver/bin/server/Server$getPersonData_result$_Fields.class
index 4153a2e7..96d2ff40 100644
--- a/Dozentenmodulserver/bin/server/Server$getPersonData_result$_Fields.class
+++ b/Dozentenmodulserver/bin/server/Server$getPersonData_result$_Fields.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getPersonData_result$getPersonData_resultStandardScheme.class b/Dozentenmodulserver/bin/server/Server$getPersonData_result$getPersonData_resultStandardScheme.class
index 3701931c..6323e7ac 100644
--- a/Dozentenmodulserver/bin/server/Server$getPersonData_result$getPersonData_resultStandardScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$getPersonData_result$getPersonData_resultStandardScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getPersonData_result$getPersonData_resultStandardSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getPersonData_result$getPersonData_resultStandardSchemeFactory.class
index 099da45d..5041b018 100644
--- a/Dozentenmodulserver/bin/server/Server$getPersonData_result$getPersonData_resultStandardSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$getPersonData_result$getPersonData_resultStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getPersonData_result$getPersonData_resultTupleScheme.class b/Dozentenmodulserver/bin/server/Server$getPersonData_result$getPersonData_resultTupleScheme.class
index 5b0e349e..17932022 100644
--- a/Dozentenmodulserver/bin/server/Server$getPersonData_result$getPersonData_resultTupleScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$getPersonData_result$getPersonData_resultTupleScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getPersonData_result$getPersonData_resultTupleSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$getPersonData_result$getPersonData_resultTupleSchemeFactory.class
index e8ca1a07..c76e8e24 100644
--- a/Dozentenmodulserver/bin/server/Server$getPersonData_result$getPersonData_resultTupleSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$getPersonData_result$getPersonData_resultTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getPersonData_result.class b/Dozentenmodulserver/bin/server/Server$getPersonData_result.class
index d3e51d66..2686ad7c 100644
--- a/Dozentenmodulserver/bin/server/Server$getPersonData_result.class
+++ b/Dozentenmodulserver/bin/server/Server$getPersonData_result.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$startFileCopy_args$_Fields.class b/Dozentenmodulserver/bin/server/Server$startFileCopy_args$_Fields.class
index bbecb0cf..0fb16721 100644
--- a/Dozentenmodulserver/bin/server/Server$startFileCopy_args$_Fields.class
+++ b/Dozentenmodulserver/bin/server/Server$startFileCopy_args$_Fields.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$startFileCopy_args$startFileCopy_argsStandardScheme.class b/Dozentenmodulserver/bin/server/Server$startFileCopy_args$startFileCopy_argsStandardScheme.class
index 0668a17e..59551a4d 100644
--- a/Dozentenmodulserver/bin/server/Server$startFileCopy_args$startFileCopy_argsStandardScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$startFileCopy_args$startFileCopy_argsStandardScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$startFileCopy_args$startFileCopy_argsStandardSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$startFileCopy_args$startFileCopy_argsStandardSchemeFactory.class
index 0d342d2f..d31c4883 100644
--- a/Dozentenmodulserver/bin/server/Server$startFileCopy_args$startFileCopy_argsStandardSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$startFileCopy_args$startFileCopy_argsStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$startFileCopy_args$startFileCopy_argsTupleScheme.class b/Dozentenmodulserver/bin/server/Server$startFileCopy_args$startFileCopy_argsTupleScheme.class
index 38374d4d..49025877 100644
--- a/Dozentenmodulserver/bin/server/Server$startFileCopy_args$startFileCopy_argsTupleScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$startFileCopy_args$startFileCopy_argsTupleScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$startFileCopy_args$startFileCopy_argsTupleSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$startFileCopy_args$startFileCopy_argsTupleSchemeFactory.class
index b0621b7e..aa11dead 100644
--- a/Dozentenmodulserver/bin/server/Server$startFileCopy_args$startFileCopy_argsTupleSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$startFileCopy_args$startFileCopy_argsTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$startFileCopy_args.class b/Dozentenmodulserver/bin/server/Server$startFileCopy_args.class
index c604dbed..700714bb 100644
--- a/Dozentenmodulserver/bin/server/Server$startFileCopy_args.class
+++ b/Dozentenmodulserver/bin/server/Server$startFileCopy_args.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$startFileCopy_result$_Fields.class b/Dozentenmodulserver/bin/server/Server$startFileCopy_result$_Fields.class
index d7d82e3c..fa309bc2 100644
--- a/Dozentenmodulserver/bin/server/Server$startFileCopy_result$_Fields.class
+++ b/Dozentenmodulserver/bin/server/Server$startFileCopy_result$_Fields.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$startFileCopy_result$startFileCopy_resultStandardScheme.class b/Dozentenmodulserver/bin/server/Server$startFileCopy_result$startFileCopy_resultStandardScheme.class
index 7aa32fab..5e8ba644 100644
--- a/Dozentenmodulserver/bin/server/Server$startFileCopy_result$startFileCopy_resultStandardScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$startFileCopy_result$startFileCopy_resultStandardScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$startFileCopy_result$startFileCopy_resultStandardSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$startFileCopy_result$startFileCopy_resultStandardSchemeFactory.class
index 60e4f4da..c1af033f 100644
--- a/Dozentenmodulserver/bin/server/Server$startFileCopy_result$startFileCopy_resultStandardSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$startFileCopy_result$startFileCopy_resultStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$startFileCopy_result$startFileCopy_resultTupleScheme.class b/Dozentenmodulserver/bin/server/Server$startFileCopy_result$startFileCopy_resultTupleScheme.class
index b1efae21..03231ba0 100644
--- a/Dozentenmodulserver/bin/server/Server$startFileCopy_result$startFileCopy_resultTupleScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$startFileCopy_result$startFileCopy_resultTupleScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$startFileCopy_result$startFileCopy_resultTupleSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$startFileCopy_result$startFileCopy_resultTupleSchemeFactory.class
index 508eb6f0..e53d067e 100644
--- a/Dozentenmodulserver/bin/server/Server$startFileCopy_result$startFileCopy_resultTupleSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$startFileCopy_result$startFileCopy_resultTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$startFileCopy_result.class b/Dozentenmodulserver/bin/server/Server$startFileCopy_result.class
index 3f5ca56c..6151ec42 100644
--- a/Dozentenmodulserver/bin/server/Server$startFileCopy_result.class
+++ b/Dozentenmodulserver/bin/server/Server$startFileCopy_result.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$updateImageData_args$_Fields.class b/Dozentenmodulserver/bin/server/Server$updateImageData_args$_Fields.class
index b39db78a..1faa1485 100644
--- a/Dozentenmodulserver/bin/server/Server$updateImageData_args$_Fields.class
+++ b/Dozentenmodulserver/bin/server/Server$updateImageData_args$_Fields.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$updateImageData_args$updateImageData_argsStandardScheme.class b/Dozentenmodulserver/bin/server/Server$updateImageData_args$updateImageData_argsStandardScheme.class
index 0bfda7b1..a61d1eb5 100644
--- a/Dozentenmodulserver/bin/server/Server$updateImageData_args$updateImageData_argsStandardScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$updateImageData_args$updateImageData_argsStandardScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$updateImageData_args$updateImageData_argsStandardSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$updateImageData_args$updateImageData_argsStandardSchemeFactory.class
index 9ce25317..4c9cd562 100644
--- a/Dozentenmodulserver/bin/server/Server$updateImageData_args$updateImageData_argsStandardSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$updateImageData_args$updateImageData_argsStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$updateImageData_args$updateImageData_argsTupleScheme.class b/Dozentenmodulserver/bin/server/Server$updateImageData_args$updateImageData_argsTupleScheme.class
index c3e3c2df..9a82bd9f 100644
--- a/Dozentenmodulserver/bin/server/Server$updateImageData_args$updateImageData_argsTupleScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$updateImageData_args$updateImageData_argsTupleScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$updateImageData_args$updateImageData_argsTupleSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$updateImageData_args$updateImageData_argsTupleSchemeFactory.class
index bf7198bd..6b16e8ed 100644
--- a/Dozentenmodulserver/bin/server/Server$updateImageData_args$updateImageData_argsTupleSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$updateImageData_args$updateImageData_argsTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$updateImageData_args.class b/Dozentenmodulserver/bin/server/Server$updateImageData_args.class
index 7974620d..f194e0a8 100644
--- a/Dozentenmodulserver/bin/server/Server$updateImageData_args.class
+++ b/Dozentenmodulserver/bin/server/Server$updateImageData_args.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$updateImageData_result$_Fields.class b/Dozentenmodulserver/bin/server/Server$updateImageData_result$_Fields.class
index 662449f4..9d7dc8b6 100644
--- a/Dozentenmodulserver/bin/server/Server$updateImageData_result$_Fields.class
+++ b/Dozentenmodulserver/bin/server/Server$updateImageData_result$_Fields.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$updateImageData_result$updateImageData_resultStandardScheme.class b/Dozentenmodulserver/bin/server/Server$updateImageData_result$updateImageData_resultStandardScheme.class
index fe293b00..5bbeee9c 100644
--- a/Dozentenmodulserver/bin/server/Server$updateImageData_result$updateImageData_resultStandardScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$updateImageData_result$updateImageData_resultStandardScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$updateImageData_result$updateImageData_resultStandardSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$updateImageData_result$updateImageData_resultStandardSchemeFactory.class
index e39ceb45..7008f4c1 100644
--- a/Dozentenmodulserver/bin/server/Server$updateImageData_result$updateImageData_resultStandardSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$updateImageData_result$updateImageData_resultStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$updateImageData_result$updateImageData_resultTupleScheme.class b/Dozentenmodulserver/bin/server/Server$updateImageData_result$updateImageData_resultTupleScheme.class
index a0d7eb54..546e9d31 100644
--- a/Dozentenmodulserver/bin/server/Server$updateImageData_result$updateImageData_resultTupleScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$updateImageData_result$updateImageData_resultTupleScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$updateImageData_result$updateImageData_resultTupleSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$updateImageData_result$updateImageData_resultTupleSchemeFactory.class
index 15dcf24a..21a25f2f 100644
--- a/Dozentenmodulserver/bin/server/Server$updateImageData_result$updateImageData_resultTupleSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$updateImageData_result$updateImageData_resultTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$updateImageData_result.class b/Dozentenmodulserver/bin/server/Server$updateImageData_result.class
index 3c06c213..8a97f8f6 100644
--- a/Dozentenmodulserver/bin/server/Server$updateImageData_result.class
+++ b/Dozentenmodulserver/bin/server/Server$updateImageData_result.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$writeLecturedata_args$_Fields.class b/Dozentenmodulserver/bin/server/Server$writeLecturedata_args$_Fields.class
index 975fbbd0..1ed33177 100644
--- a/Dozentenmodulserver/bin/server/Server$writeLecturedata_args$_Fields.class
+++ b/Dozentenmodulserver/bin/server/Server$writeLecturedata_args$_Fields.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$writeLecturedata_args$writeLecturedata_argsStandardScheme.class b/Dozentenmodulserver/bin/server/Server$writeLecturedata_args$writeLecturedata_argsStandardScheme.class
index aa466c83..20f9457f 100644
--- a/Dozentenmodulserver/bin/server/Server$writeLecturedata_args$writeLecturedata_argsStandardScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$writeLecturedata_args$writeLecturedata_argsStandardScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$writeLecturedata_args$writeLecturedata_argsStandardSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$writeLecturedata_args$writeLecturedata_argsStandardSchemeFactory.class
index 6a6c9642..95b5cdca 100644
--- a/Dozentenmodulserver/bin/server/Server$writeLecturedata_args$writeLecturedata_argsStandardSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$writeLecturedata_args$writeLecturedata_argsStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$writeLecturedata_args$writeLecturedata_argsTupleScheme.class b/Dozentenmodulserver/bin/server/Server$writeLecturedata_args$writeLecturedata_argsTupleScheme.class
index a9ccf4b9..3e9cd2f2 100644
--- a/Dozentenmodulserver/bin/server/Server$writeLecturedata_args$writeLecturedata_argsTupleScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$writeLecturedata_args$writeLecturedata_argsTupleScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$writeLecturedata_args$writeLecturedata_argsTupleSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$writeLecturedata_args$writeLecturedata_argsTupleSchemeFactory.class
index fc9a392b..af7ce74c 100644
--- a/Dozentenmodulserver/bin/server/Server$writeLecturedata_args$writeLecturedata_argsTupleSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$writeLecturedata_args$writeLecturedata_argsTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$writeLecturedata_args.class b/Dozentenmodulserver/bin/server/Server$writeLecturedata_args.class
index 11c42610..76c16884 100644
--- a/Dozentenmodulserver/bin/server/Server$writeLecturedata_args.class
+++ b/Dozentenmodulserver/bin/server/Server$writeLecturedata_args.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$writeLecturedata_result$_Fields.class b/Dozentenmodulserver/bin/server/Server$writeLecturedata_result$_Fields.class
index 691bad30..340cbf7c 100644
--- a/Dozentenmodulserver/bin/server/Server$writeLecturedata_result$_Fields.class
+++ b/Dozentenmodulserver/bin/server/Server$writeLecturedata_result$_Fields.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$writeLecturedata_result$writeLecturedata_resultStandardScheme.class b/Dozentenmodulserver/bin/server/Server$writeLecturedata_result$writeLecturedata_resultStandardScheme.class
index d8a9f148..a188ae52 100644
--- a/Dozentenmodulserver/bin/server/Server$writeLecturedata_result$writeLecturedata_resultStandardScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$writeLecturedata_result$writeLecturedata_resultStandardScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$writeLecturedata_result$writeLecturedata_resultStandardSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$writeLecturedata_result$writeLecturedata_resultStandardSchemeFactory.class
index 5eec1fc4..b1c2e7c2 100644
--- a/Dozentenmodulserver/bin/server/Server$writeLecturedata_result$writeLecturedata_resultStandardSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$writeLecturedata_result$writeLecturedata_resultStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$writeLecturedata_result$writeLecturedata_resultTupleScheme.class b/Dozentenmodulserver/bin/server/Server$writeLecturedata_result$writeLecturedata_resultTupleScheme.class
index baca4a37..fdd5fc41 100644
--- a/Dozentenmodulserver/bin/server/Server$writeLecturedata_result$writeLecturedata_resultTupleScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$writeLecturedata_result$writeLecturedata_resultTupleScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$writeLecturedata_result$writeLecturedata_resultTupleSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$writeLecturedata_result$writeLecturedata_resultTupleSchemeFactory.class
index 6ccd0d98..fa139335 100644
--- a/Dozentenmodulserver/bin/server/Server$writeLecturedata_result$writeLecturedata_resultTupleSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$writeLecturedata_result$writeLecturedata_resultTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$writeLecturedata_result.class b/Dozentenmodulserver/bin/server/Server$writeLecturedata_result.class
index df3fcc10..3a46b9bf 100644
--- a/Dozentenmodulserver/bin/server/Server$writeLecturedata_result.class
+++ b/Dozentenmodulserver/bin/server/Server$writeLecturedata_result.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$writeVLdata_args$_Fields.class b/Dozentenmodulserver/bin/server/Server$writeVLdata_args$_Fields.class
index 1b8705f9..00319583 100644
--- a/Dozentenmodulserver/bin/server/Server$writeVLdata_args$_Fields.class
+++ b/Dozentenmodulserver/bin/server/Server$writeVLdata_args$_Fields.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$writeVLdata_args$writeVLdata_argsStandardScheme.class b/Dozentenmodulserver/bin/server/Server$writeVLdata_args$writeVLdata_argsStandardScheme.class
index f2fee499..8d8ae69e 100644
--- a/Dozentenmodulserver/bin/server/Server$writeVLdata_args$writeVLdata_argsStandardScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$writeVLdata_args$writeVLdata_argsStandardScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$writeVLdata_args$writeVLdata_argsStandardSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$writeVLdata_args$writeVLdata_argsStandardSchemeFactory.class
index aee142e0..078f124c 100644
--- a/Dozentenmodulserver/bin/server/Server$writeVLdata_args$writeVLdata_argsStandardSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$writeVLdata_args$writeVLdata_argsStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$writeVLdata_args$writeVLdata_argsTupleScheme.class b/Dozentenmodulserver/bin/server/Server$writeVLdata_args$writeVLdata_argsTupleScheme.class
index 3d29639a..025c8784 100644
--- a/Dozentenmodulserver/bin/server/Server$writeVLdata_args$writeVLdata_argsTupleScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$writeVLdata_args$writeVLdata_argsTupleScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$writeVLdata_args$writeVLdata_argsTupleSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$writeVLdata_args$writeVLdata_argsTupleSchemeFactory.class
index d33402b0..ff9d84ea 100644
--- a/Dozentenmodulserver/bin/server/Server$writeVLdata_args$writeVLdata_argsTupleSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$writeVLdata_args$writeVLdata_argsTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$writeVLdata_args.class b/Dozentenmodulserver/bin/server/Server$writeVLdata_args.class
index 3ed0f90a..2f77765d 100644
--- a/Dozentenmodulserver/bin/server/Server$writeVLdata_args.class
+++ b/Dozentenmodulserver/bin/server/Server$writeVLdata_args.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$writeVLdata_result$_Fields.class b/Dozentenmodulserver/bin/server/Server$writeVLdata_result$_Fields.class
index 04b29d07..24a2638c 100644
--- a/Dozentenmodulserver/bin/server/Server$writeVLdata_result$_Fields.class
+++ b/Dozentenmodulserver/bin/server/Server$writeVLdata_result$_Fields.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$writeVLdata_result$writeVLdata_resultStandardScheme.class b/Dozentenmodulserver/bin/server/Server$writeVLdata_result$writeVLdata_resultStandardScheme.class
index 324b2112..78eee47a 100644
--- a/Dozentenmodulserver/bin/server/Server$writeVLdata_result$writeVLdata_resultStandardScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$writeVLdata_result$writeVLdata_resultStandardScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$writeVLdata_result$writeVLdata_resultStandardSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$writeVLdata_result$writeVLdata_resultStandardSchemeFactory.class
index 6702b59c..127d594e 100644
--- a/Dozentenmodulserver/bin/server/Server$writeVLdata_result$writeVLdata_resultStandardSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$writeVLdata_result$writeVLdata_resultStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$writeVLdata_result$writeVLdata_resultTupleScheme.class b/Dozentenmodulserver/bin/server/Server$writeVLdata_result$writeVLdata_resultTupleScheme.class
index 78656531..57cccffb 100644
--- a/Dozentenmodulserver/bin/server/Server$writeVLdata_result$writeVLdata_resultTupleScheme.class
+++ b/Dozentenmodulserver/bin/server/Server$writeVLdata_result$writeVLdata_resultTupleScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$writeVLdata_result$writeVLdata_resultTupleSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$writeVLdata_result$writeVLdata_resultTupleSchemeFactory.class
index a5de6e5d..5aca0d63 100644
--- a/Dozentenmodulserver/bin/server/Server$writeVLdata_result$writeVLdata_resultTupleSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/Server$writeVLdata_result$writeVLdata_resultTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$writeVLdata_result.class b/Dozentenmodulserver/bin/server/Server$writeVLdata_result.class
index 5c2fe397..76e21904 100644
--- a/Dozentenmodulserver/bin/server/Server$writeVLdata_result.class
+++ b/Dozentenmodulserver/bin/server/Server$writeVLdata_result.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server.class b/Dozentenmodulserver/bin/server/Server.class
index 930bf12e..91c713d5 100644
--- a/Dozentenmodulserver/bin/server/Server.class
+++ b/Dozentenmodulserver/bin/server/Server.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/ServerHandler.class b/Dozentenmodulserver/bin/server/ServerHandler.class
index 9037194f..76357894 100644
--- a/Dozentenmodulserver/bin/server/ServerHandler.class
+++ b/Dozentenmodulserver/bin/server/ServerHandler.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/User$UserStandardScheme.class b/Dozentenmodulserver/bin/server/User$UserStandardScheme.class
index b431453b..cf96c062 100644
--- a/Dozentenmodulserver/bin/server/User$UserStandardScheme.class
+++ b/Dozentenmodulserver/bin/server/User$UserStandardScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/User$UserStandardSchemeFactory.class b/Dozentenmodulserver/bin/server/User$UserStandardSchemeFactory.class
index 176c88aa..a409161e 100644
--- a/Dozentenmodulserver/bin/server/User$UserStandardSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/User$UserStandardSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/User$UserTupleScheme.class b/Dozentenmodulserver/bin/server/User$UserTupleScheme.class
index ef7626d2..1eea1bb0 100644
--- a/Dozentenmodulserver/bin/server/User$UserTupleScheme.class
+++ b/Dozentenmodulserver/bin/server/User$UserTupleScheme.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/User$UserTupleSchemeFactory.class b/Dozentenmodulserver/bin/server/User$UserTupleSchemeFactory.class
index 4e4fba66..c76c48fe 100644
--- a/Dozentenmodulserver/bin/server/User$UserTupleSchemeFactory.class
+++ b/Dozentenmodulserver/bin/server/User$UserTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/User$_Fields.class b/Dozentenmodulserver/bin/server/User$_Fields.class
index 8837c194..191396fc 100644
--- a/Dozentenmodulserver/bin/server/User$_Fields.class
+++ b/Dozentenmodulserver/bin/server/User$_Fields.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/User.class b/Dozentenmodulserver/bin/server/User.class
index b19fe5bd..e76e61f2 100644
--- a/Dozentenmodulserver/bin/server/User.class
+++ b/Dozentenmodulserver/bin/server/User.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/startServer.class b/Dozentenmodulserver/bin/server/startServer.class
index bd79ab19..030b565e 100644
--- a/Dozentenmodulserver/bin/server/startServer.class
+++ b/Dozentenmodulserver/bin/server/startServer.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/sql/SQL.class b/Dozentenmodulserver/bin/sql/SQL.class
index 8451b9f6..6a4524b7 100644
--- a/Dozentenmodulserver/bin/sql/SQL.class
+++ b/Dozentenmodulserver/bin/sql/SQL.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/util/XMLCreator.class b/Dozentenmodulserver/bin/util/XMLCreator.class
new file mode 100644
index 00000000..59247610
--- /dev/null
+++ b/Dozentenmodulserver/bin/util/XMLCreator.class
Binary files differ
diff --git a/Dozentenmodulserver/src/server/BinaryListener.java b/Dozentenmodulserver/src/server/BinaryListener.java
index 7c546fee..8d592992 100644
--- a/Dozentenmodulserver/src/server/BinaryListener.java
+++ b/Dozentenmodulserver/src/server/BinaryListener.java
@@ -1,5 +1,7 @@
package server;
+import java.util.Date;
+
import org.apache.log4j.Logger;
import org.apache.thrift.server.TServer;
import org.apache.thrift.server.TServer.Args;
@@ -20,12 +22,13 @@ public class BinaryListener implements Runnable
final TServerTransport transport;
try {
transport = new TServerSocket( 9090 );
+ log.info(new Date()+" - Connected to Port 9090");
} catch ( TTransportException e ) {
- log.fatal( "Could not listen on port 9090" );
+ log.fatal( new Date() +" - Could not listen on port 9090" );
return;
}
TServer server = new TSimpleServer( new Args( transport ).processor( processor ) );
- log.info("Starting TSimpleServer");
+ log.info(new Date() +" - Started Running Server");
server.serve();
}
diff --git a/Dozentenmodulserver/src/server/Image.java b/Dozentenmodulserver/src/server/Image.java
index ec1a813f..34c2b45c 100644
--- a/Dozentenmodulserver/src/server/Image.java
+++ b/Dozentenmodulserver/src/server/Image.java
@@ -5,6 +5,7 @@
* @generated
*/
package server;
+
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;
@@ -34,12 +35,14 @@ import org.slf4j.LoggerFactory;
public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, java.io.Serializable, Cloneable, Comparable<Image> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Image");
- private static final org.apache.thrift.protocol.TField IMAGE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("imageName", org.apache.thrift.protocol.TType.STRING, (short)-1);
- private static final org.apache.thrift.protocol.TField LICENSE_RESTRICTION_FIELD_DESC = new org.apache.thrift.protocol.TField("licenseRestriction", org.apache.thrift.protocol.TType.STRING, (short)-2);
- private static final org.apache.thrift.protocol.TField OS_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("osName", org.apache.thrift.protocol.TType.STRING, (short)-3);
- private static final org.apache.thrift.protocol.TField LECTURE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureName", org.apache.thrift.protocol.TType.STRING, (short)-4);
- private static final org.apache.thrift.protocol.TField UPDATE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("updateTime", org.apache.thrift.protocol.TType.STRING, (short)-5);
- private static final org.apache.thrift.protocol.TField USER_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("userData", org.apache.thrift.protocol.TType.STRING, (short)-6);
+ private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.STRING, (short)-1);
+ private static final org.apache.thrift.protocol.TField VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("version", org.apache.thrift.protocol.TType.STRING, (short)-2);
+ private static final org.apache.thrift.protocol.TField IMAGE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("imageName", org.apache.thrift.protocol.TType.STRING, (short)-3);
+ private static final org.apache.thrift.protocol.TField LICENSE_RESTRICTION_FIELD_DESC = new org.apache.thrift.protocol.TField("licenseRestriction", org.apache.thrift.protocol.TType.STRING, (short)-4);
+ private static final org.apache.thrift.protocol.TField OS_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("osName", org.apache.thrift.protocol.TType.STRING, (short)-5);
+ private static final org.apache.thrift.protocol.TField LECTURE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureName", org.apache.thrift.protocol.TType.STRING, (short)-6);
+ private static final org.apache.thrift.protocol.TField UPDATE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("updateTime", org.apache.thrift.protocol.TType.STRING, (short)-7);
+ private static final org.apache.thrift.protocol.TField USER_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("userData", org.apache.thrift.protocol.TType.STRING, (short)-8);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
@@ -47,6 +50,8 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
schemes.put(TupleScheme.class, new ImageTupleSchemeFactory());
}
+ public String id; // required
+ public String version; // required
public String imageName; // required
public String licenseRestriction; // required
public String osName; // required
@@ -56,12 +61,14 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
- IMAGE_NAME((short)-1, "imageName"),
- LICENSE_RESTRICTION((short)-2, "licenseRestriction"),
- OS_NAME((short)-3, "osName"),
- LECTURE_NAME((short)-4, "lectureName"),
- UPDATE_TIME((short)-5, "updateTime"),
- USER_DATA((short)-6, "userData");
+ ID((short)-1, "id"),
+ VERSION((short)-2, "version"),
+ IMAGE_NAME((short)-3, "imageName"),
+ LICENSE_RESTRICTION((short)-4, "licenseRestriction"),
+ OS_NAME((short)-5, "osName"),
+ LECTURE_NAME((short)-6, "lectureName"),
+ UPDATE_TIME((short)-7, "updateTime"),
+ USER_DATA((short)-8, "userData");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
@@ -76,17 +83,21 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
- case -1: // IMAGE_NAME
+ case -1: // ID
+ return ID;
+ case -2: // VERSION
+ return VERSION;
+ case -3: // IMAGE_NAME
return IMAGE_NAME;
- case -2: // LICENSE_RESTRICTION
+ case -4: // LICENSE_RESTRICTION
return LICENSE_RESTRICTION;
- case -3: // OS_NAME
+ case -5: // OS_NAME
return OS_NAME;
- case -4: // LECTURE_NAME
+ case -6: // LECTURE_NAME
return LECTURE_NAME;
- case -5: // UPDATE_TIME
+ case -7: // UPDATE_TIME
return UPDATE_TIME;
- case -6: // USER_DATA
+ case -8: // USER_DATA
return USER_DATA;
default:
return null;
@@ -131,6 +142,10 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.VERSION, new org.apache.thrift.meta_data.FieldMetaData("version", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.IMAGE_NAME, new org.apache.thrift.meta_data.FieldMetaData("imageName", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.LICENSE_RESTRICTION, new org.apache.thrift.meta_data.FieldMetaData("licenseRestriction", org.apache.thrift.TFieldRequirementType.DEFAULT,
@@ -151,6 +166,8 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
}
public Image(
+ String id,
+ String version,
String imageName,
String licenseRestriction,
String osName,
@@ -159,6 +176,8 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
String userData)
{
this();
+ this.id = id;
+ this.version = version;
this.imageName = imageName;
this.licenseRestriction = licenseRestriction;
this.osName = osName;
@@ -171,6 +190,12 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
* Performs a deep copy on <i>other</i>.
*/
public Image(Image other) {
+ if (other.isSetId()) {
+ this.id = other.id;
+ }
+ if (other.isSetVersion()) {
+ this.version = other.version;
+ }
if (other.isSetImageName()) {
this.imageName = other.imageName;
}
@@ -197,6 +222,8 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
@Override
public void clear() {
+ this.id = null;
+ this.version = null;
this.imageName = null;
this.licenseRestriction = null;
this.osName = null;
@@ -205,6 +232,54 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
this.userData = null;
}
+ public String getId() {
+ return this.id;
+ }
+
+ public Image setId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ public void unsetId() {
+ this.id = null;
+ }
+
+ /** Returns true if field id is set (has been assigned a value) and false otherwise */
+ public boolean isSetId() {
+ return this.id != null;
+ }
+
+ public void setIdIsSet(boolean value) {
+ if (!value) {
+ this.id = null;
+ }
+ }
+
+ public String getVersion() {
+ return this.version;
+ }
+
+ public Image setVersion(String version) {
+ this.version = version;
+ return this;
+ }
+
+ public void unsetVersion() {
+ this.version = null;
+ }
+
+ /** Returns true if field version is set (has been assigned a value) and false otherwise */
+ public boolean isSetVersion() {
+ return this.version != null;
+ }
+
+ public void setVersionIsSet(boolean value) {
+ if (!value) {
+ this.version = null;
+ }
+ }
+
public String getImageName() {
return this.imageName;
}
@@ -351,6 +426,22 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
public void setFieldValue(_Fields field, Object value) {
switch (field) {
+ case ID:
+ if (value == null) {
+ unsetId();
+ } else {
+ setId((String)value);
+ }
+ break;
+
+ case VERSION:
+ if (value == null) {
+ unsetVersion();
+ } else {
+ setVersion((String)value);
+ }
+ break;
+
case IMAGE_NAME:
if (value == null) {
unsetImageName();
@@ -404,6 +495,12 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
public Object getFieldValue(_Fields field) {
switch (field) {
+ case ID:
+ return getId();
+
+ case VERSION:
+ return getVersion();
+
case IMAGE_NAME:
return getImageName();
@@ -433,6 +530,10 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
}
switch (field) {
+ case ID:
+ return isSetId();
+ case VERSION:
+ return isSetVersion();
case IMAGE_NAME:
return isSetImageName();
case LICENSE_RESTRICTION:
@@ -462,6 +563,24 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
if (that == null)
return false;
+ boolean this_present_id = true && this.isSetId();
+ boolean that_present_id = true && that.isSetId();
+ if (this_present_id || that_present_id) {
+ if (!(this_present_id && that_present_id))
+ return false;
+ if (!this.id.equals(that.id))
+ return false;
+ }
+
+ boolean this_present_version = true && this.isSetVersion();
+ boolean that_present_version = true && that.isSetVersion();
+ if (this_present_version || that_present_version) {
+ if (!(this_present_version && that_present_version))
+ return false;
+ if (!this.version.equals(that.version))
+ return false;
+ }
+
boolean this_present_imageName = true && this.isSetImageName();
boolean that_present_imageName = true && that.isSetImageName();
if (this_present_imageName || that_present_imageName) {
@@ -532,6 +651,26 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
int lastComparison = 0;
+ lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetId()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetVersion()).compareTo(other.isSetVersion());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetVersion()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.version, other.version);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
lastComparison = Boolean.valueOf(isSetImageName()).compareTo(other.isSetImageName());
if (lastComparison != 0) {
return lastComparison;
@@ -612,6 +751,22 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
StringBuilder sb = new StringBuilder("Image(");
boolean first = true;
+ sb.append("id:");
+ if (this.id == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.id);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("version:");
+ if (this.version == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.version);
+ }
+ first = false;
+ if (!first) sb.append(", ");
sb.append("imageName:");
if (this.imageName == null) {
sb.append("null");
@@ -702,7 +857,23 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
break;
}
switch (schemeField.id) {
- case -1: // IMAGE_NAME
+ case -1: // ID
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.id = iprot.readString();
+ struct.setIdIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -2: // VERSION
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.version = iprot.readString();
+ struct.setVersionIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -3: // IMAGE_NAME
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.imageName = iprot.readString();
struct.setImageNameIsSet(true);
@@ -710,7 +881,7 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
- case -2: // LICENSE_RESTRICTION
+ case -4: // LICENSE_RESTRICTION
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.licenseRestriction = iprot.readString();
struct.setLicenseRestrictionIsSet(true);
@@ -718,7 +889,7 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
- case -3: // OS_NAME
+ case -5: // OS_NAME
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.osName = iprot.readString();
struct.setOsNameIsSet(true);
@@ -726,7 +897,7 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
- case -4: // LECTURE_NAME
+ case -6: // LECTURE_NAME
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.lectureName = iprot.readString();
struct.setLectureNameIsSet(true);
@@ -734,7 +905,7 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
- case -5: // UPDATE_TIME
+ case -7: // UPDATE_TIME
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.updateTime = iprot.readString();
struct.setUpdateTimeIsSet(true);
@@ -742,7 +913,7 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
- case -6: // USER_DATA
+ case -8: // USER_DATA
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.userData = iprot.readString();
struct.setUserDataIsSet(true);
@@ -795,6 +966,16 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
oprot.writeString(struct.imageName);
oprot.writeFieldEnd();
}
+ if (struct.version != null) {
+ oprot.writeFieldBegin(VERSION_FIELD_DESC);
+ oprot.writeString(struct.version);
+ oprot.writeFieldEnd();
+ }
+ if (struct.id != null) {
+ oprot.writeFieldBegin(ID_FIELD_DESC);
+ oprot.writeString(struct.id);
+ oprot.writeFieldEnd();
+ }
oprot.writeFieldStop();
oprot.writeStructEnd();
}
@@ -813,25 +994,37 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
public void write(org.apache.thrift.protocol.TProtocol prot, Image struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
- if (struct.isSetImageName()) {
+ if (struct.isSetId()) {
optionals.set(0);
}
- if (struct.isSetLicenseRestriction()) {
+ if (struct.isSetVersion()) {
optionals.set(1);
}
- if (struct.isSetOsName()) {
+ if (struct.isSetImageName()) {
optionals.set(2);
}
- if (struct.isSetLectureName()) {
+ if (struct.isSetLicenseRestriction()) {
optionals.set(3);
}
- if (struct.isSetUpdateTime()) {
+ if (struct.isSetOsName()) {
optionals.set(4);
}
- if (struct.isSetUserData()) {
+ if (struct.isSetLectureName()) {
optionals.set(5);
}
- oprot.writeBitSet(optionals, 6);
+ if (struct.isSetUpdateTime()) {
+ optionals.set(6);
+ }
+ if (struct.isSetUserData()) {
+ optionals.set(7);
+ }
+ oprot.writeBitSet(optionals, 8);
+ if (struct.isSetId()) {
+ oprot.writeString(struct.id);
+ }
+ if (struct.isSetVersion()) {
+ oprot.writeString(struct.version);
+ }
if (struct.isSetImageName()) {
oprot.writeString(struct.imageName);
}
@@ -855,28 +1048,36 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, Image struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(6);
+ BitSet incoming = iprot.readBitSet(8);
if (incoming.get(0)) {
+ struct.id = iprot.readString();
+ struct.setIdIsSet(true);
+ }
+ if (incoming.get(1)) {
+ struct.version = iprot.readString();
+ struct.setVersionIsSet(true);
+ }
+ if (incoming.get(2)) {
struct.imageName = iprot.readString();
struct.setImageNameIsSet(true);
}
- if (incoming.get(1)) {
+ if (incoming.get(3)) {
struct.licenseRestriction = iprot.readString();
struct.setLicenseRestrictionIsSet(true);
}
- if (incoming.get(2)) {
+ if (incoming.get(4)) {
struct.osName = iprot.readString();
struct.setOsNameIsSet(true);
}
- if (incoming.get(3)) {
+ if (incoming.get(5)) {
struct.lectureName = iprot.readString();
struct.setLectureNameIsSet(true);
}
- if (incoming.get(4)) {
+ if (incoming.get(6)) {
struct.updateTime = iprot.readString();
struct.setUpdateTimeIsSet(true);
}
- if (incoming.get(5)) {
+ if (incoming.get(7)) {
struct.userData = iprot.readString();
struct.setUserDataIsSet(true);
}
diff --git a/Dozentenmodulserver/src/server/Lecture.java b/Dozentenmodulserver/src/server/Lecture.java
new file mode 100644
index 00000000..0c61ad84
--- /dev/null
+++ b/Dozentenmodulserver/src/server/Lecture.java
@@ -0,0 +1,1188 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.1)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+package server;
+
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class Lecture implements org.apache.thrift.TBase<Lecture, Lecture._Fields>, java.io.Serializable, Cloneable, Comparable<Lecture> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Lecture");
+
+ private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.STRING, (short)-1);
+ private static final org.apache.thrift.protocol.TField LECTURENAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lecturename", org.apache.thrift.protocol.TType.STRING, (short)-2);
+ private static final org.apache.thrift.protocol.TField IS_ACTIVE_FIELD_DESC = new org.apache.thrift.protocol.TField("isActive", org.apache.thrift.protocol.TType.STRING, (short)-3);
+ private static final org.apache.thrift.protocol.TField STARTTIME_FIELD_DESC = new org.apache.thrift.protocol.TField("starttime", org.apache.thrift.protocol.TType.STRING, (short)-4);
+ private static final org.apache.thrift.protocol.TField ENDTIME_FIELD_DESC = new org.apache.thrift.protocol.TField("endtime", org.apache.thrift.protocol.TType.STRING, (short)-5);
+ private static final org.apache.thrift.protocol.TField LASTUSED_FIELD_DESC = new org.apache.thrift.protocol.TField("lastused", org.apache.thrift.protocol.TType.STRING, (short)-6);
+ private static final org.apache.thrift.protocol.TField DESC_FIELD_DESC = new org.apache.thrift.protocol.TField("desc", org.apache.thrift.protocol.TType.STRING, (short)-7);
+ private static final org.apache.thrift.protocol.TField IMAGENAME_FIELD_DESC = new org.apache.thrift.protocol.TField("imagename", org.apache.thrift.protocol.TType.STRING, (short)-8);
+ private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)-9);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new LectureStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new LectureTupleSchemeFactory());
+ }
+
+ public String id; // required
+ public String lecturename; // required
+ public String isActive; // required
+ public String starttime; // required
+ public String endtime; // required
+ public String lastused; // required
+ public String desc; // required
+ public String imagename; // required
+ public String username; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ ID((short)-1, "id"),
+ LECTURENAME((short)-2, "lecturename"),
+ IS_ACTIVE((short)-3, "isActive"),
+ STARTTIME((short)-4, "starttime"),
+ ENDTIME((short)-5, "endtime"),
+ LASTUSED((short)-6, "lastused"),
+ DESC((short)-7, "desc"),
+ IMAGENAME((short)-8, "imagename"),
+ USERNAME((short)-9, "username");
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case -1: // ID
+ return ID;
+ case -2: // LECTURENAME
+ return LECTURENAME;
+ case -3: // IS_ACTIVE
+ return IS_ACTIVE;
+ case -4: // STARTTIME
+ return STARTTIME;
+ case -5: // ENDTIME
+ return ENDTIME;
+ case -6: // LASTUSED
+ return LASTUSED;
+ case -7: // DESC
+ return DESC;
+ case -8: // IMAGENAME
+ return IMAGENAME;
+ case -9: // USERNAME
+ return USERNAME;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.LECTURENAME, new org.apache.thrift.meta_data.FieldMetaData("lecturename", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.IS_ACTIVE, new org.apache.thrift.meta_data.FieldMetaData("isActive", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.STARTTIME, new org.apache.thrift.meta_data.FieldMetaData("starttime", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.ENDTIME, new org.apache.thrift.meta_data.FieldMetaData("endtime", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.LASTUSED, new org.apache.thrift.meta_data.FieldMetaData("lastused", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.DESC, new org.apache.thrift.meta_data.FieldMetaData("desc", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.IMAGENAME, new org.apache.thrift.meta_data.FieldMetaData("imagename", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Lecture.class, metaDataMap);
+ }
+
+ public Lecture() {
+ }
+
+ public Lecture(
+ String id,
+ String lecturename,
+ String isActive,
+ String starttime,
+ String endtime,
+ String lastused,
+ String desc,
+ String imagename,
+ String username)
+ {
+ this();
+ this.id = id;
+ this.lecturename = lecturename;
+ this.isActive = isActive;
+ this.starttime = starttime;
+ this.endtime = endtime;
+ this.lastused = lastused;
+ this.desc = desc;
+ this.imagename = imagename;
+ this.username = username;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public Lecture(Lecture other) {
+ if (other.isSetId()) {
+ this.id = other.id;
+ }
+ if (other.isSetLecturename()) {
+ this.lecturename = other.lecturename;
+ }
+ if (other.isSetIsActive()) {
+ this.isActive = other.isActive;
+ }
+ if (other.isSetStarttime()) {
+ this.starttime = other.starttime;
+ }
+ if (other.isSetEndtime()) {
+ this.endtime = other.endtime;
+ }
+ if (other.isSetLastused()) {
+ this.lastused = other.lastused;
+ }
+ if (other.isSetDesc()) {
+ this.desc = other.desc;
+ }
+ if (other.isSetImagename()) {
+ this.imagename = other.imagename;
+ }
+ if (other.isSetUsername()) {
+ this.username = other.username;
+ }
+ }
+
+ public Lecture deepCopy() {
+ return new Lecture(this);
+ }
+
+ @Override
+ public void clear() {
+ this.id = null;
+ this.lecturename = null;
+ this.isActive = null;
+ this.starttime = null;
+ this.endtime = null;
+ this.lastused = null;
+ this.desc = null;
+ this.imagename = null;
+ this.username = null;
+ }
+
+ public String getId() {
+ return this.id;
+ }
+
+ public Lecture setId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ public void unsetId() {
+ this.id = null;
+ }
+
+ /** Returns true if field id is set (has been assigned a value) and false otherwise */
+ public boolean isSetId() {
+ return this.id != null;
+ }
+
+ public void setIdIsSet(boolean value) {
+ if (!value) {
+ this.id = null;
+ }
+ }
+
+ public String getLecturename() {
+ return this.lecturename;
+ }
+
+ public Lecture setLecturename(String lecturename) {
+ this.lecturename = lecturename;
+ return this;
+ }
+
+ public void unsetLecturename() {
+ this.lecturename = null;
+ }
+
+ /** Returns true if field lecturename is set (has been assigned a value) and false otherwise */
+ public boolean isSetLecturename() {
+ return this.lecturename != null;
+ }
+
+ public void setLecturenameIsSet(boolean value) {
+ if (!value) {
+ this.lecturename = null;
+ }
+ }
+
+ public String getIsActive() {
+ return this.isActive;
+ }
+
+ public Lecture setIsActive(String isActive) {
+ this.isActive = isActive;
+ return this;
+ }
+
+ public void unsetIsActive() {
+ this.isActive = null;
+ }
+
+ /** Returns true if field isActive is set (has been assigned a value) and false otherwise */
+ public boolean isSetIsActive() {
+ return this.isActive != null;
+ }
+
+ public void setIsActiveIsSet(boolean value) {
+ if (!value) {
+ this.isActive = null;
+ }
+ }
+
+ public String getStarttime() {
+ return this.starttime;
+ }
+
+ public Lecture setStarttime(String starttime) {
+ this.starttime = starttime;
+ return this;
+ }
+
+ public void unsetStarttime() {
+ this.starttime = null;
+ }
+
+ /** Returns true if field starttime is set (has been assigned a value) and false otherwise */
+ public boolean isSetStarttime() {
+ return this.starttime != null;
+ }
+
+ public void setStarttimeIsSet(boolean value) {
+ if (!value) {
+ this.starttime = null;
+ }
+ }
+
+ public String getEndtime() {
+ return this.endtime;
+ }
+
+ public Lecture setEndtime(String endtime) {
+ this.endtime = endtime;
+ return this;
+ }
+
+ public void unsetEndtime() {
+ this.endtime = null;
+ }
+
+ /** Returns true if field endtime is set (has been assigned a value) and false otherwise */
+ public boolean isSetEndtime() {
+ return this.endtime != null;
+ }
+
+ public void setEndtimeIsSet(boolean value) {
+ if (!value) {
+ this.endtime = null;
+ }
+ }
+
+ public String getLastused() {
+ return this.lastused;
+ }
+
+ public Lecture setLastused(String lastused) {
+ this.lastused = lastused;
+ return this;
+ }
+
+ public void unsetLastused() {
+ this.lastused = null;
+ }
+
+ /** Returns true if field lastused is set (has been assigned a value) and false otherwise */
+ public boolean isSetLastused() {
+ return this.lastused != null;
+ }
+
+ public void setLastusedIsSet(boolean value) {
+ if (!value) {
+ this.lastused = null;
+ }
+ }
+
+ public String getDesc() {
+ return this.desc;
+ }
+
+ public Lecture setDesc(String desc) {
+ this.desc = desc;
+ return this;
+ }
+
+ public void unsetDesc() {
+ this.desc = null;
+ }
+
+ /** Returns true if field desc is set (has been assigned a value) and false otherwise */
+ public boolean isSetDesc() {
+ return this.desc != null;
+ }
+
+ public void setDescIsSet(boolean value) {
+ if (!value) {
+ this.desc = null;
+ }
+ }
+
+ public String getImagename() {
+ return this.imagename;
+ }
+
+ public Lecture setImagename(String imagename) {
+ this.imagename = imagename;
+ return this;
+ }
+
+ public void unsetImagename() {
+ this.imagename = null;
+ }
+
+ /** Returns true if field imagename is set (has been assigned a value) and false otherwise */
+ public boolean isSetImagename() {
+ return this.imagename != null;
+ }
+
+ public void setImagenameIsSet(boolean value) {
+ if (!value) {
+ this.imagename = null;
+ }
+ }
+
+ public String getUsername() {
+ return this.username;
+ }
+
+ public Lecture setUsername(String username) {
+ this.username = username;
+ return this;
+ }
+
+ public void unsetUsername() {
+ this.username = null;
+ }
+
+ /** Returns true if field username is set (has been assigned a value) and false otherwise */
+ public boolean isSetUsername() {
+ return this.username != null;
+ }
+
+ public void setUsernameIsSet(boolean value) {
+ if (!value) {
+ this.username = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case ID:
+ if (value == null) {
+ unsetId();
+ } else {
+ setId((String)value);
+ }
+ break;
+
+ case LECTURENAME:
+ if (value == null) {
+ unsetLecturename();
+ } else {
+ setLecturename((String)value);
+ }
+ break;
+
+ case IS_ACTIVE:
+ if (value == null) {
+ unsetIsActive();
+ } else {
+ setIsActive((String)value);
+ }
+ break;
+
+ case STARTTIME:
+ if (value == null) {
+ unsetStarttime();
+ } else {
+ setStarttime((String)value);
+ }
+ break;
+
+ case ENDTIME:
+ if (value == null) {
+ unsetEndtime();
+ } else {
+ setEndtime((String)value);
+ }
+ break;
+
+ case LASTUSED:
+ if (value == null) {
+ unsetLastused();
+ } else {
+ setLastused((String)value);
+ }
+ break;
+
+ case DESC:
+ if (value == null) {
+ unsetDesc();
+ } else {
+ setDesc((String)value);
+ }
+ break;
+
+ case IMAGENAME:
+ if (value == null) {
+ unsetImagename();
+ } else {
+ setImagename((String)value);
+ }
+ break;
+
+ case USERNAME:
+ if (value == null) {
+ unsetUsername();
+ } else {
+ setUsername((String)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case ID:
+ return getId();
+
+ case LECTURENAME:
+ return getLecturename();
+
+ case IS_ACTIVE:
+ return getIsActive();
+
+ case STARTTIME:
+ return getStarttime();
+
+ case ENDTIME:
+ return getEndtime();
+
+ case LASTUSED:
+ return getLastused();
+
+ case DESC:
+ return getDesc();
+
+ case IMAGENAME:
+ return getImagename();
+
+ case USERNAME:
+ return getUsername();
+
+ }
+ throw new IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
+ switch (field) {
+ case ID:
+ return isSetId();
+ case LECTURENAME:
+ return isSetLecturename();
+ case IS_ACTIVE:
+ return isSetIsActive();
+ case STARTTIME:
+ return isSetStarttime();
+ case ENDTIME:
+ return isSetEndtime();
+ case LASTUSED:
+ return isSetLastused();
+ case DESC:
+ return isSetDesc();
+ case IMAGENAME:
+ return isSetImagename();
+ case USERNAME:
+ return isSetUsername();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof Lecture)
+ return this.equals((Lecture)that);
+ return false;
+ }
+
+ public boolean equals(Lecture that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_id = true && this.isSetId();
+ boolean that_present_id = true && that.isSetId();
+ if (this_present_id || that_present_id) {
+ if (!(this_present_id && that_present_id))
+ return false;
+ if (!this.id.equals(that.id))
+ return false;
+ }
+
+ boolean this_present_lecturename = true && this.isSetLecturename();
+ boolean that_present_lecturename = true && that.isSetLecturename();
+ if (this_present_lecturename || that_present_lecturename) {
+ if (!(this_present_lecturename && that_present_lecturename))
+ return false;
+ if (!this.lecturename.equals(that.lecturename))
+ return false;
+ }
+
+ boolean this_present_isActive = true && this.isSetIsActive();
+ boolean that_present_isActive = true && that.isSetIsActive();
+ if (this_present_isActive || that_present_isActive) {
+ if (!(this_present_isActive && that_present_isActive))
+ return false;
+ if (!this.isActive.equals(that.isActive))
+ return false;
+ }
+
+ boolean this_present_starttime = true && this.isSetStarttime();
+ boolean that_present_starttime = true && that.isSetStarttime();
+ if (this_present_starttime || that_present_starttime) {
+ if (!(this_present_starttime && that_present_starttime))
+ return false;
+ if (!this.starttime.equals(that.starttime))
+ return false;
+ }
+
+ boolean this_present_endtime = true && this.isSetEndtime();
+ boolean that_present_endtime = true && that.isSetEndtime();
+ if (this_present_endtime || that_present_endtime) {
+ if (!(this_present_endtime && that_present_endtime))
+ return false;
+ if (!this.endtime.equals(that.endtime))
+ return false;
+ }
+
+ boolean this_present_lastused = true && this.isSetLastused();
+ boolean that_present_lastused = true && that.isSetLastused();
+ if (this_present_lastused || that_present_lastused) {
+ if (!(this_present_lastused && that_present_lastused))
+ return false;
+ if (!this.lastused.equals(that.lastused))
+ return false;
+ }
+
+ boolean this_present_desc = true && this.isSetDesc();
+ boolean that_present_desc = true && that.isSetDesc();
+ if (this_present_desc || that_present_desc) {
+ if (!(this_present_desc && that_present_desc))
+ return false;
+ if (!this.desc.equals(that.desc))
+ return false;
+ }
+
+ boolean this_present_imagename = true && this.isSetImagename();
+ boolean that_present_imagename = true && that.isSetImagename();
+ if (this_present_imagename || that_present_imagename) {
+ if (!(this_present_imagename && that_present_imagename))
+ return false;
+ if (!this.imagename.equals(that.imagename))
+ return false;
+ }
+
+ boolean this_present_username = true && this.isSetUsername();
+ boolean that_present_username = true && that.isSetUsername();
+ if (this_present_username || that_present_username) {
+ if (!(this_present_username && that_present_username))
+ return false;
+ if (!this.username.equals(that.username))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return 0;
+ }
+
+ @Override
+ public int compareTo(Lecture other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetId()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetLecturename()).compareTo(other.isSetLecturename());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetLecturename()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lecturename, other.lecturename);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetIsActive()).compareTo(other.isSetIsActive());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetIsActive()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isActive, other.isActive);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetStarttime()).compareTo(other.isSetStarttime());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetStarttime()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.starttime, other.starttime);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetEndtime()).compareTo(other.isSetEndtime());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetEndtime()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endtime, other.endtime);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetLastused()).compareTo(other.isSetLastused());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetLastused()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastused, other.lastused);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetDesc()).compareTo(other.isSetDesc());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetDesc()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.desc, other.desc);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetImagename()).compareTo(other.isSetImagename());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetImagename()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imagename, other.imagename);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetUsername()).compareTo(other.isSetUsername());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetUsername()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, other.username);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("Lecture(");
+ boolean first = true;
+
+ sb.append("id:");
+ if (this.id == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.id);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("lecturename:");
+ if (this.lecturename == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.lecturename);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("isActive:");
+ if (this.isActive == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.isActive);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("starttime:");
+ if (this.starttime == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.starttime);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("endtime:");
+ if (this.endtime == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.endtime);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("lastused:");
+ if (this.lastused == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.lastused);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("desc:");
+ if (this.desc == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.desc);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("imagename:");
+ if (this.imagename == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.imagename);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("username:");
+ if (this.username == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.username);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class LectureStandardSchemeFactory implements SchemeFactory {
+ public LectureStandardScheme getScheme() {
+ return new LectureStandardScheme();
+ }
+ }
+
+ private static class LectureStandardScheme extends StandardScheme<Lecture> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, Lecture struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case -1: // ID
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.id = iprot.readString();
+ struct.setIdIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -2: // LECTURENAME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.lecturename = iprot.readString();
+ struct.setLecturenameIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -3: // IS_ACTIVE
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.isActive = iprot.readString();
+ struct.setIsActiveIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -4: // STARTTIME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.starttime = iprot.readString();
+ struct.setStarttimeIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -5: // ENDTIME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.endtime = iprot.readString();
+ struct.setEndtimeIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -6: // LASTUSED
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.lastused = iprot.readString();
+ struct.setLastusedIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -7: // DESC
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.desc = iprot.readString();
+ struct.setDescIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -8: // IMAGENAME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.imagename = iprot.readString();
+ struct.setImagenameIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -9: // USERNAME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.username = iprot.readString();
+ struct.setUsernameIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+
+ // check for required fields of primitive type, which can't be checked in the validate method
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, Lecture struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.username != null) {
+ oprot.writeFieldBegin(USERNAME_FIELD_DESC);
+ oprot.writeString(struct.username);
+ oprot.writeFieldEnd();
+ }
+ if (struct.imagename != null) {
+ oprot.writeFieldBegin(IMAGENAME_FIELD_DESC);
+ oprot.writeString(struct.imagename);
+ oprot.writeFieldEnd();
+ }
+ if (struct.desc != null) {
+ oprot.writeFieldBegin(DESC_FIELD_DESC);
+ oprot.writeString(struct.desc);
+ oprot.writeFieldEnd();
+ }
+ if (struct.lastused != null) {
+ oprot.writeFieldBegin(LASTUSED_FIELD_DESC);
+ oprot.writeString(struct.lastused);
+ oprot.writeFieldEnd();
+ }
+ if (struct.endtime != null) {
+ oprot.writeFieldBegin(ENDTIME_FIELD_DESC);
+ oprot.writeString(struct.endtime);
+ oprot.writeFieldEnd();
+ }
+ if (struct.starttime != null) {
+ oprot.writeFieldBegin(STARTTIME_FIELD_DESC);
+ oprot.writeString(struct.starttime);
+ oprot.writeFieldEnd();
+ }
+ if (struct.isActive != null) {
+ oprot.writeFieldBegin(IS_ACTIVE_FIELD_DESC);
+ oprot.writeString(struct.isActive);
+ oprot.writeFieldEnd();
+ }
+ if (struct.lecturename != null) {
+ oprot.writeFieldBegin(LECTURENAME_FIELD_DESC);
+ oprot.writeString(struct.lecturename);
+ oprot.writeFieldEnd();
+ }
+ if (struct.id != null) {
+ oprot.writeFieldBegin(ID_FIELD_DESC);
+ oprot.writeString(struct.id);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class LectureTupleSchemeFactory implements SchemeFactory {
+ public LectureTupleScheme getScheme() {
+ return new LectureTupleScheme();
+ }
+ }
+
+ private static class LectureTupleScheme extends TupleScheme<Lecture> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, Lecture struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetId()) {
+ optionals.set(0);
+ }
+ if (struct.isSetLecturename()) {
+ optionals.set(1);
+ }
+ if (struct.isSetIsActive()) {
+ optionals.set(2);
+ }
+ if (struct.isSetStarttime()) {
+ optionals.set(3);
+ }
+ if (struct.isSetEndtime()) {
+ optionals.set(4);
+ }
+ if (struct.isSetLastused()) {
+ optionals.set(5);
+ }
+ if (struct.isSetDesc()) {
+ optionals.set(6);
+ }
+ if (struct.isSetImagename()) {
+ optionals.set(7);
+ }
+ if (struct.isSetUsername()) {
+ optionals.set(8);
+ }
+ oprot.writeBitSet(optionals, 9);
+ if (struct.isSetId()) {
+ oprot.writeString(struct.id);
+ }
+ if (struct.isSetLecturename()) {
+ oprot.writeString(struct.lecturename);
+ }
+ if (struct.isSetIsActive()) {
+ oprot.writeString(struct.isActive);
+ }
+ if (struct.isSetStarttime()) {
+ oprot.writeString(struct.starttime);
+ }
+ if (struct.isSetEndtime()) {
+ oprot.writeString(struct.endtime);
+ }
+ if (struct.isSetLastused()) {
+ oprot.writeString(struct.lastused);
+ }
+ if (struct.isSetDesc()) {
+ oprot.writeString(struct.desc);
+ }
+ if (struct.isSetImagename()) {
+ oprot.writeString(struct.imagename);
+ }
+ if (struct.isSetUsername()) {
+ oprot.writeString(struct.username);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, Lecture struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(9);
+ if (incoming.get(0)) {
+ struct.id = iprot.readString();
+ struct.setIdIsSet(true);
+ }
+ if (incoming.get(1)) {
+ struct.lecturename = iprot.readString();
+ struct.setLecturenameIsSet(true);
+ }
+ if (incoming.get(2)) {
+ struct.isActive = iprot.readString();
+ struct.setIsActiveIsSet(true);
+ }
+ if (incoming.get(3)) {
+ struct.starttime = iprot.readString();
+ struct.setStarttimeIsSet(true);
+ }
+ if (incoming.get(4)) {
+ struct.endtime = iprot.readString();
+ struct.setEndtimeIsSet(true);
+ }
+ if (incoming.get(5)) {
+ struct.lastused = iprot.readString();
+ struct.setLastusedIsSet(true);
+ }
+ if (incoming.get(6)) {
+ struct.desc = iprot.readString();
+ struct.setDescIsSet(true);
+ }
+ if (incoming.get(7)) {
+ struct.imagename = iprot.readString();
+ struct.setImagenameIsSet(true);
+ }
+ if (incoming.get(8)) {
+ struct.username = iprot.readString();
+ struct.setUsernameIsSet(true);
+ }
+ }
+ }
+
+}
+
diff --git a/Dozentenmodulserver/src/server/Server.java b/Dozentenmodulserver/src/server/Server.java
index 73ffb544..d3e256df 100644
--- a/Dozentenmodulserver/src/server/Server.java
+++ b/Dozentenmodulserver/src/server/Server.java
@@ -5,6 +5,7 @@
* @generated
*/
package server;
+
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;
@@ -39,14 +40,14 @@ public class Server {
public long DeleteFtpUser(String user) throws org.apache.thrift.TException;
- public List<String> getImages() throws org.apache.thrift.TException;
-
- public String getPathOfImage(String name) throws org.apache.thrift.TException;
+ public String getPathOfImage(String image_id, String version) throws org.apache.thrift.TException;
- public boolean writeVLdata(String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu) throws org.apache.thrift.TException;
+ public boolean writeVLdata(String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu, String imagePath) throws org.apache.thrift.TException;
public List<Image> getImageList() throws org.apache.thrift.TException;
+ public List<Lecture> getLectureList() throws org.apache.thrift.TException;
+
public List<String> getAllOS() throws org.apache.thrift.TException;
public Map<String,String> getPersonData(String Vorname, String Nachname) throws org.apache.thrift.TException;
@@ -55,9 +56,13 @@ public class Server {
public boolean startFileCopy(String file) throws org.apache.thrift.TException;
- public Map<String,String> getImageData(String imagename) throws org.apache.thrift.TException;
+ public Map<String,String> getImageData(String imageid, String imageversion) throws org.apache.thrift.TException;
+
+ public boolean updateImageData(String name, String newName, boolean license, boolean internet, long ram, long cpu, String id, String version) throws org.apache.thrift.TException;
+
+ public Map<String,String> getLectureData(String lecturename) throws org.apache.thrift.TException;
- public boolean updateImageData(String name, String newName, boolean license, boolean internet, long ram, long cpu) throws org.apache.thrift.TException;
+ public boolean updateLecturedata(String name, String newName, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, String id) throws org.apache.thrift.TException;
}
@@ -67,14 +72,14 @@ public class Server {
public void DeleteFtpUser(String user, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
- public void getImages(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void getPathOfImage(String image_id, String version, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
- public void getPathOfImage(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
-
- public void writeVLdata(String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void writeVLdata(String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu, String imagePath, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void getImageList(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void getLectureList(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
public void getAllOS(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void getPersonData(String Vorname, String Nachname, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
@@ -83,9 +88,13 @@ public class Server {
public void startFileCopy(String file, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
- public void getImageData(String imagename, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void getImageData(String imageid, String imageversion, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+ public void updateImageData(String name, String newName, boolean license, boolean internet, long ram, long cpu, String id, String version, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+ public void getLectureData(String lecturename, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
- public void updateImageData(String name, String newName, boolean license, boolean internet, long ram, long cpu, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void updateLecturedata(String name, String newName, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, String id, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
}
@@ -154,38 +163,17 @@ public class Server {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "DeleteFtpUser failed: unknown result");
}
- public List<String> getImages() throws org.apache.thrift.TException
- {
- send_getImages();
- return recv_getImages();
- }
-
- public void send_getImages() throws org.apache.thrift.TException
- {
- getImages_args args = new getImages_args();
- sendBase("getImages", args);
- }
-
- public List<String> recv_getImages() throws org.apache.thrift.TException
- {
- getImages_result result = new getImages_result();
- receiveBase(result, "getImages");
- if (result.isSetSuccess()) {
- return result.success;
- }
- throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImages failed: unknown result");
- }
-
- public String getPathOfImage(String name) throws org.apache.thrift.TException
+ public String getPathOfImage(String image_id, String version) throws org.apache.thrift.TException
{
- send_getPathOfImage(name);
+ send_getPathOfImage(image_id, version);
return recv_getPathOfImage();
}
- public void send_getPathOfImage(String name) throws org.apache.thrift.TException
+ public void send_getPathOfImage(String image_id, String version) throws org.apache.thrift.TException
{
getPathOfImage_args args = new getPathOfImage_args();
- args.setName(name);
+ args.setImage_id(image_id);
+ args.setVersion(version);
sendBase("getPathOfImage", args);
}
@@ -199,13 +187,13 @@ public class Server {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPathOfImage failed: unknown result");
}
- public boolean writeVLdata(String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu) throws org.apache.thrift.TException
+ public boolean writeVLdata(String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu, String imagePath) throws org.apache.thrift.TException
{
- send_writeVLdata(imagename, firstname, lastname, university, Mail, Tel, Fak, license, internet, ram, cpu);
+ send_writeVLdata(imagename, firstname, lastname, university, Mail, Tel, Fak, license, internet, ram, cpu, imagePath);
return recv_writeVLdata();
}
- public void send_writeVLdata(String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu) throws org.apache.thrift.TException
+ public void send_writeVLdata(String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu, String imagePath) throws org.apache.thrift.TException
{
writeVLdata_args args = new writeVLdata_args();
args.setImagename(imagename);
@@ -219,6 +207,7 @@ public class Server {
args.setInternet(internet);
args.setRam(ram);
args.setCpu(cpu);
+ args.setImagePath(imagePath);
sendBase("writeVLdata", args);
}
@@ -254,6 +243,28 @@ public class Server {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImageList failed: unknown result");
}
+ public List<Lecture> getLectureList() throws org.apache.thrift.TException
+ {
+ send_getLectureList();
+ return recv_getLectureList();
+ }
+
+ public void send_getLectureList() throws org.apache.thrift.TException
+ {
+ getLectureList_args args = new getLectureList_args();
+ sendBase("getLectureList", args);
+ }
+
+ public List<Lecture> recv_getLectureList() throws org.apache.thrift.TException
+ {
+ getLectureList_result result = new getLectureList_result();
+ receiveBase(result, "getLectureList");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLectureList failed: unknown result");
+ }
+
public List<String> getAllOS() throws org.apache.thrift.TException
{
send_getAllOS();
@@ -358,16 +369,17 @@ public class Server {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "startFileCopy failed: unknown result");
}
- public Map<String,String> getImageData(String imagename) throws org.apache.thrift.TException
+ public Map<String,String> getImageData(String imageid, String imageversion) throws org.apache.thrift.TException
{
- send_getImageData(imagename);
+ send_getImageData(imageid, imageversion);
return recv_getImageData();
}
- public void send_getImageData(String imagename) throws org.apache.thrift.TException
+ public void send_getImageData(String imageid, String imageversion) throws org.apache.thrift.TException
{
getImageData_args args = new getImageData_args();
- args.setImagename(imagename);
+ args.setImageid(imageid);
+ args.setImageversion(imageversion);
sendBase("getImageData", args);
}
@@ -381,13 +393,13 @@ public class Server {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImageData failed: unknown result");
}
- public boolean updateImageData(String name, String newName, boolean license, boolean internet, long ram, long cpu) throws org.apache.thrift.TException
+ public boolean updateImageData(String name, String newName, boolean license, boolean internet, long ram, long cpu, String id, String version) throws org.apache.thrift.TException
{
- send_updateImageData(name, newName, license, internet, ram, cpu);
+ send_updateImageData(name, newName, license, internet, ram, cpu, id, version);
return recv_updateImageData();
}
- public void send_updateImageData(String name, String newName, boolean license, boolean internet, long ram, long cpu) throws org.apache.thrift.TException
+ public void send_updateImageData(String name, String newName, boolean license, boolean internet, long ram, long cpu, String id, String version) throws org.apache.thrift.TException
{
updateImageData_args args = new updateImageData_args();
args.setName(name);
@@ -396,6 +408,8 @@ public class Server {
args.setInternet(internet);
args.setRam(ram);
args.setCpu(cpu);
+ args.setId(id);
+ args.setVersion(version);
sendBase("updateImageData", args);
}
@@ -409,6 +423,66 @@ public class Server {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateImageData failed: unknown result");
}
+ public Map<String,String> getLectureData(String lecturename) throws org.apache.thrift.TException
+ {
+ send_getLectureData(lecturename);
+ return recv_getLectureData();
+ }
+
+ public void send_getLectureData(String lecturename) throws org.apache.thrift.TException
+ {
+ getLectureData_args args = new getLectureData_args();
+ args.setLecturename(lecturename);
+ sendBase("getLectureData", args);
+ }
+
+ public Map<String,String> recv_getLectureData() throws org.apache.thrift.TException
+ {
+ getLectureData_result result = new getLectureData_result();
+ receiveBase(result, "getLectureData");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLectureData failed: unknown result");
+ }
+
+ public boolean updateLecturedata(String name, String newName, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, String id) throws org.apache.thrift.TException
+ {
+ send_updateLecturedata(name, newName, shortdesc, desc, startDate, endDate, isActive, imagename, firstname, lastname, university, Mail, Tel, Fak, id);
+ return recv_updateLecturedata();
+ }
+
+ public void send_updateLecturedata(String name, String newName, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, String id) throws org.apache.thrift.TException
+ {
+ updateLecturedata_args args = new updateLecturedata_args();
+ args.setName(name);
+ args.setNewName(newName);
+ args.setShortdesc(shortdesc);
+ args.setDesc(desc);
+ args.setStartDate(startDate);
+ args.setEndDate(endDate);
+ args.setIsActive(isActive);
+ args.setImagename(imagename);
+ args.setFirstname(firstname);
+ args.setLastname(lastname);
+ args.setUniversity(university);
+ args.setMail(Mail);
+ args.setTel(Tel);
+ args.setFak(Fak);
+ args.setId(id);
+ sendBase("updateLecturedata", args);
+ }
+
+ public boolean recv_updateLecturedata() throws org.apache.thrift.TException
+ {
+ updateLecturedata_result result = new updateLecturedata_result();
+ receiveBase(result, "updateLecturedata");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateLecturedata failed: unknown result");
+ }
+
}
public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
@@ -488,53 +562,27 @@ public class Server {
}
}
- public void getImages(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ public void getPathOfImage(String image_id, String version, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
- getImages_call method_call = new getImages_call(resultHandler, this, ___protocolFactory, ___transport);
- this.___currentMethod = method_call;
- ___manager.call(method_call);
- }
-
- public static class getImages_call extends org.apache.thrift.async.TAsyncMethodCall {
- public getImages_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
- super(client, protocolFactory, transport, resultHandler, false);
- }
-
- public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
- prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getImages", org.apache.thrift.protocol.TMessageType.CALL, 0));
- getImages_args args = new getImages_args();
- args.write(prot);
- prot.writeMessageEnd();
- }
-
- public List<String> getResult() throws org.apache.thrift.TException {
- if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new IllegalStateException("Method call not finished!");
- }
- org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
- org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
- return (new Client(prot)).recv_getImages();
- }
- }
-
- public void getPathOfImage(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- checkReady();
- getPathOfImage_call method_call = new getPathOfImage_call(name, resultHandler, this, ___protocolFactory, ___transport);
+ getPathOfImage_call method_call = new getPathOfImage_call(image_id, version, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class getPathOfImage_call extends org.apache.thrift.async.TAsyncMethodCall {
- private String name;
- public getPathOfImage_call(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ private String image_id;
+ private String version;
+ public getPathOfImage_call(String image_id, String version, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
- this.name = name;
+ this.image_id = image_id;
+ this.version = version;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPathOfImage", org.apache.thrift.protocol.TMessageType.CALL, 0));
getPathOfImage_args args = new getPathOfImage_args();
- args.setName(name);
+ args.setImage_id(image_id);
+ args.setVersion(version);
args.write(prot);
prot.writeMessageEnd();
}
@@ -549,9 +597,9 @@ public class Server {
}
}
- public void writeVLdata(String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ public void writeVLdata(String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu, String imagePath, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
- writeVLdata_call method_call = new writeVLdata_call(imagename, firstname, lastname, university, Mail, Tel, Fak, license, internet, ram, cpu, resultHandler, this, ___protocolFactory, ___transport);
+ writeVLdata_call method_call = new writeVLdata_call(imagename, firstname, lastname, university, Mail, Tel, Fak, license, internet, ram, cpu, imagePath, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
@@ -568,7 +616,8 @@ public class Server {
private boolean internet;
private long ram;
private long cpu;
- public writeVLdata_call(String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ private String imagePath;
+ public writeVLdata_call(String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu, String imagePath, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.imagename = imagename;
this.firstname = firstname;
@@ -581,6 +630,7 @@ public class Server {
this.internet = internet;
this.ram = ram;
this.cpu = cpu;
+ this.imagePath = imagePath;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
@@ -597,6 +647,7 @@ public class Server {
args.setInternet(internet);
args.setRam(ram);
args.setCpu(cpu);
+ args.setImagePath(imagePath);
args.write(prot);
prot.writeMessageEnd();
}
@@ -640,6 +691,35 @@ public class Server {
}
}
+ public void getLectureList(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getLectureList_call method_call = new getLectureList_call(resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getLectureList_call extends org.apache.thrift.async.TAsyncMethodCall {
+ public getLectureList_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLectureList", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getLectureList_args args = new getLectureList_args();
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public List<Lecture> getResult() throws org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_getLectureList();
+ }
+ }
+
public void getAllOS(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
getAllOS_call method_call = new getAllOS_call(resultHandler, this, ___protocolFactory, ___transport);
@@ -804,24 +884,27 @@ public class Server {
}
}
- public void getImageData(String imagename, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ public void getImageData(String imageid, String imageversion, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
- getImageData_call method_call = new getImageData_call(imagename, resultHandler, this, ___protocolFactory, ___transport);
+ getImageData_call method_call = new getImageData_call(imageid, imageversion, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class getImageData_call extends org.apache.thrift.async.TAsyncMethodCall {
- private String imagename;
- public getImageData_call(String imagename, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ private String imageid;
+ private String imageversion;
+ public getImageData_call(String imageid, String imageversion, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
- this.imagename = imagename;
+ this.imageid = imageid;
+ this.imageversion = imageversion;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getImageData", org.apache.thrift.protocol.TMessageType.CALL, 0));
getImageData_args args = new getImageData_args();
- args.setImagename(imagename);
+ args.setImageid(imageid);
+ args.setImageversion(imageversion);
args.write(prot);
prot.writeMessageEnd();
}
@@ -836,9 +919,9 @@ public class Server {
}
}
- public void updateImageData(String name, String newName, boolean license, boolean internet, long ram, long cpu, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ public void updateImageData(String name, String newName, boolean license, boolean internet, long ram, long cpu, String id, String version, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
- updateImageData_call method_call = new updateImageData_call(name, newName, license, internet, ram, cpu, resultHandler, this, ___protocolFactory, ___transport);
+ updateImageData_call method_call = new updateImageData_call(name, newName, license, internet, ram, cpu, id, version, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
@@ -850,7 +933,9 @@ public class Server {
private boolean internet;
private long ram;
private long cpu;
- public updateImageData_call(String name, String newName, boolean license, boolean internet, long ram, long cpu, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ private String id;
+ private String version;
+ public updateImageData_call(String name, String newName, boolean license, boolean internet, long ram, long cpu, String id, String version, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.name = name;
this.newName = newName;
@@ -858,6 +943,8 @@ public class Server {
this.internet = internet;
this.ram = ram;
this.cpu = cpu;
+ this.id = id;
+ this.version = version;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
@@ -869,6 +956,8 @@ public class Server {
args.setInternet(internet);
args.setRam(ram);
args.setCpu(cpu);
+ args.setId(id);
+ args.setVersion(version);
args.write(prot);
prot.writeMessageEnd();
}
@@ -883,6 +972,112 @@ public class Server {
}
}
+ public void getLectureData(String lecturename, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getLectureData_call method_call = new getLectureData_call(lecturename, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getLectureData_call extends org.apache.thrift.async.TAsyncMethodCall {
+ private String lecturename;
+ public getLectureData_call(String lecturename, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.lecturename = lecturename;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLectureData", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getLectureData_args args = new getLectureData_args();
+ args.setLecturename(lecturename);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public Map<String,String> getResult() throws org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_getLectureData();
+ }
+ }
+
+ public void updateLecturedata(String name, String newName, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, String id, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ updateLecturedata_call method_call = new updateLecturedata_call(name, newName, shortdesc, desc, startDate, endDate, isActive, imagename, firstname, lastname, university, Mail, Tel, Fak, id, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class updateLecturedata_call extends org.apache.thrift.async.TAsyncMethodCall {
+ private String name;
+ private String newName;
+ private String shortdesc;
+ private String desc;
+ private String startDate;
+ private String endDate;
+ private boolean isActive;
+ private String imagename;
+ private String firstname;
+ private String lastname;
+ private String university;
+ private String Mail;
+ private String Tel;
+ private String Fak;
+ private String id;
+ public updateLecturedata_call(String name, String newName, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, String id, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.name = name;
+ this.newName = newName;
+ this.shortdesc = shortdesc;
+ this.desc = desc;
+ this.startDate = startDate;
+ this.endDate = endDate;
+ this.isActive = isActive;
+ this.imagename = imagename;
+ this.firstname = firstname;
+ this.lastname = lastname;
+ this.university = university;
+ this.Mail = Mail;
+ this.Tel = Tel;
+ this.Fak = Fak;
+ this.id = id;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateLecturedata", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ updateLecturedata_args args = new updateLecturedata_args();
+ args.setName(name);
+ args.setNewName(newName);
+ args.setShortdesc(shortdesc);
+ args.setDesc(desc);
+ args.setStartDate(startDate);
+ args.setEndDate(endDate);
+ args.setIsActive(isActive);
+ args.setImagename(imagename);
+ args.setFirstname(firstname);
+ args.setLastname(lastname);
+ args.setUniversity(university);
+ args.setMail(Mail);
+ args.setTel(Tel);
+ args.setFak(Fak);
+ args.setId(id);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public boolean getResult() throws org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_updateLecturedata();
+ }
+ }
+
}
public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
@@ -898,16 +1093,18 @@ public class Server {
private static <I extends Iface> Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
processMap.put("getFtpUser", new getFtpUser());
processMap.put("DeleteFtpUser", new DeleteFtpUser());
- processMap.put("getImages", new getImages());
processMap.put("getPathOfImage", new getPathOfImage());
processMap.put("writeVLdata", new writeVLdata());
processMap.put("getImageList", new getImageList());
+ processMap.put("getLectureList", new getLectureList());
processMap.put("getAllOS", new getAllOS());
processMap.put("getPersonData", new getPersonData());
processMap.put("writeLecturedata", new writeLecturedata());
processMap.put("startFileCopy", new startFileCopy());
processMap.put("getImageData", new getImageData());
processMap.put("updateImageData", new updateImageData());
+ processMap.put("getLectureData", new getLectureData());
+ processMap.put("updateLecturedata", new updateLecturedata());
return processMap;
}
@@ -952,26 +1149,6 @@ public class Server {
}
}
- public static class getImages<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getImages_args> {
- public getImages() {
- super("getImages");
- }
-
- public getImages_args getEmptyArgsInstance() {
- return new getImages_args();
- }
-
- protected boolean isOneway() {
- return false;
- }
-
- public getImages_result getResult(I iface, getImages_args args) throws org.apache.thrift.TException {
- getImages_result result = new getImages_result();
- result.success = iface.getImages();
- return result;
- }
- }
-
public static class getPathOfImage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPathOfImage_args> {
public getPathOfImage() {
super("getPathOfImage");
@@ -987,7 +1164,7 @@ public class Server {
public getPathOfImage_result getResult(I iface, getPathOfImage_args args) throws org.apache.thrift.TException {
getPathOfImage_result result = new getPathOfImage_result();
- result.success = iface.getPathOfImage(args.name);
+ result.success = iface.getPathOfImage(args.image_id, args.version);
return result;
}
}
@@ -1007,7 +1184,7 @@ public class Server {
public writeVLdata_result getResult(I iface, writeVLdata_args args) throws org.apache.thrift.TException {
writeVLdata_result result = new writeVLdata_result();
- result.success = iface.writeVLdata(args.imagename, args.firstname, args.lastname, args.university, args.Mail, args.Tel, args.Fak, args.license, args.internet, args.ram, args.cpu);
+ result.success = iface.writeVLdata(args.imagename, args.firstname, args.lastname, args.university, args.Mail, args.Tel, args.Fak, args.license, args.internet, args.ram, args.cpu, args.imagePath);
result.setSuccessIsSet(true);
return result;
}
@@ -1033,6 +1210,26 @@ public class Server {
}
}
+ public static class getLectureList<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLectureList_args> {
+ public getLectureList() {
+ super("getLectureList");
+ }
+
+ public getLectureList_args getEmptyArgsInstance() {
+ return new getLectureList_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public getLectureList_result getResult(I iface, getLectureList_args args) throws org.apache.thrift.TException {
+ getLectureList_result result = new getLectureList_result();
+ result.success = iface.getLectureList();
+ return result;
+ }
+ }
+
public static class getAllOS<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllOS_args> {
public getAllOS() {
super("getAllOS");
@@ -1130,7 +1327,7 @@ public class Server {
public getImageData_result getResult(I iface, getImageData_args args) throws org.apache.thrift.TException {
getImageData_result result = new getImageData_result();
- result.success = iface.getImageData(args.imagename);
+ result.success = iface.getImageData(args.imageid, args.imageversion);
return result;
}
}
@@ -1150,7 +1347,48 @@ public class Server {
public updateImageData_result getResult(I iface, updateImageData_args args) throws org.apache.thrift.TException {
updateImageData_result result = new updateImageData_result();
- result.success = iface.updateImageData(args.name, args.newName, args.license, args.internet, args.ram, args.cpu);
+ result.success = iface.updateImageData(args.name, args.newName, args.license, args.internet, args.ram, args.cpu, args.id, args.version);
+ result.setSuccessIsSet(true);
+ return result;
+ }
+ }
+
+ public static class getLectureData<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLectureData_args> {
+ public getLectureData() {
+ super("getLectureData");
+ }
+
+ public getLectureData_args getEmptyArgsInstance() {
+ return new getLectureData_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public getLectureData_result getResult(I iface, getLectureData_args args) throws org.apache.thrift.TException {
+ getLectureData_result result = new getLectureData_result();
+ result.success = iface.getLectureData(args.lecturename);
+ return result;
+ }
+ }
+
+ public static class updateLecturedata<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateLecturedata_args> {
+ public updateLecturedata() {
+ super("updateLecturedata");
+ }
+
+ public updateLecturedata_args getEmptyArgsInstance() {
+ return new updateLecturedata_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public updateLecturedata_result getResult(I iface, updateLecturedata_args args) throws org.apache.thrift.TException {
+ updateLecturedata_result result = new updateLecturedata_result();
+ result.success = iface.updateLecturedata(args.name, args.newName, args.shortdesc, args.desc, args.startDate, args.endDate, args.isActive, args.imagename, args.firstname, args.lastname, args.university, args.Mail, args.Tel, args.Fak, args.id);
result.setSuccessIsSet(true);
return result;
}
@@ -1171,16 +1409,18 @@ public class Server {
private static <I extends AsyncIface> Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase,?>> getProcessMap(Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
processMap.put("getFtpUser", new getFtpUser());
processMap.put("DeleteFtpUser", new DeleteFtpUser());
- processMap.put("getImages", new getImages());
processMap.put("getPathOfImage", new getPathOfImage());
processMap.put("writeVLdata", new writeVLdata());
processMap.put("getImageList", new getImageList());
+ processMap.put("getLectureList", new getLectureList());
processMap.put("getAllOS", new getAllOS());
processMap.put("getPersonData", new getPersonData());
processMap.put("writeLecturedata", new writeLecturedata());
processMap.put("startFileCopy", new startFileCopy());
processMap.put("getImageData", new getImageData());
processMap.put("updateImageData", new updateImageData());
+ processMap.put("getLectureData", new getLectureData());
+ processMap.put("updateLecturedata", new updateLecturedata());
return processMap;
}
@@ -1287,20 +1527,20 @@ public class Server {
}
}
- public static class getImages<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getImages_args, List<String>> {
- public getImages() {
- super("getImages");
+ public static class getPathOfImage<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getPathOfImage_args, String> {
+ public getPathOfImage() {
+ super("getPathOfImage");
}
- public getImages_args getEmptyArgsInstance() {
- return new getImages_args();
+ public getPathOfImage_args getEmptyArgsInstance() {
+ return new getPathOfImage_args();
}
- public AsyncMethodCallback<List<String>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ public AsyncMethodCallback<String> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<List<String>>() {
- public void onComplete(List<String> o) {
- getImages_result result = new getImages_result();
+ return new AsyncMethodCallback<String>() {
+ public void onComplete(String o) {
+ getPathOfImage_result result = new getPathOfImage_result();
result.success = o;
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
@@ -1313,7 +1553,7 @@ public class Server {
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
- getImages_result result = new getImages_result();
+ getPathOfImage_result result = new getPathOfImage_result();
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
@@ -1333,26 +1573,27 @@ public class Server {
return false;
}
- public void start(I iface, getImages_args args, org.apache.thrift.async.AsyncMethodCallback<List<String>> resultHandler) throws TException {
- iface.getImages(resultHandler);
+ public void start(I iface, getPathOfImage_args args, org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws TException {
+ iface.getPathOfImage(args.image_id, args.version,resultHandler);
}
}
- public static class getPathOfImage<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getPathOfImage_args, String> {
- public getPathOfImage() {
- super("getPathOfImage");
+ public static class writeVLdata<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, writeVLdata_args, Boolean> {
+ public writeVLdata() {
+ super("writeVLdata");
}
- public getPathOfImage_args getEmptyArgsInstance() {
- return new getPathOfImage_args();
+ public writeVLdata_args getEmptyArgsInstance() {
+ return new writeVLdata_args();
}
- public AsyncMethodCallback<String> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<String>() {
- public void onComplete(String o) {
- getPathOfImage_result result = new getPathOfImage_result();
+ return new AsyncMethodCallback<Boolean>() {
+ public void onComplete(Boolean o) {
+ writeVLdata_result result = new writeVLdata_result();
result.success = o;
+ result.setSuccessIsSet(true);
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
@@ -1364,7 +1605,7 @@ public class Server {
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
- getPathOfImage_result result = new getPathOfImage_result();
+ writeVLdata_result result = new writeVLdata_result();
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
@@ -1384,27 +1625,26 @@ public class Server {
return false;
}
- public void start(I iface, getPathOfImage_args args, org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws TException {
- iface.getPathOfImage(args.name,resultHandler);
+ public void start(I iface, writeVLdata_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
+ iface.writeVLdata(args.imagename, args.firstname, args.lastname, args.university, args.Mail, args.Tel, args.Fak, args.license, args.internet, args.ram, args.cpu, args.imagePath,resultHandler);
}
}
- public static class writeVLdata<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, writeVLdata_args, Boolean> {
- public writeVLdata() {
- super("writeVLdata");
+ public static class getImageList<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getImageList_args, List<Image>> {
+ public getImageList() {
+ super("getImageList");
}
- public writeVLdata_args getEmptyArgsInstance() {
- return new writeVLdata_args();
+ public getImageList_args getEmptyArgsInstance() {
+ return new getImageList_args();
}
- public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ public AsyncMethodCallback<List<Image>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Boolean>() {
- public void onComplete(Boolean o) {
- writeVLdata_result result = new writeVLdata_result();
+ return new AsyncMethodCallback<List<Image>>() {
+ public void onComplete(List<Image> o) {
+ getImageList_result result = new getImageList_result();
result.success = o;
- result.setSuccessIsSet(true);
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
@@ -1416,7 +1656,7 @@ public class Server {
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
- writeVLdata_result result = new writeVLdata_result();
+ getImageList_result result = new getImageList_result();
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
@@ -1436,25 +1676,25 @@ public class Server {
return false;
}
- public void start(I iface, writeVLdata_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
- iface.writeVLdata(args.imagename, args.firstname, args.lastname, args.university, args.Mail, args.Tel, args.Fak, args.license, args.internet, args.ram, args.cpu,resultHandler);
+ public void start(I iface, getImageList_args args, org.apache.thrift.async.AsyncMethodCallback<List<Image>> resultHandler) throws TException {
+ iface.getImageList(resultHandler);
}
}
- public static class getImageList<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getImageList_args, List<Image>> {
- public getImageList() {
- super("getImageList");
+ public static class getLectureList<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getLectureList_args, List<Lecture>> {
+ public getLectureList() {
+ super("getLectureList");
}
- public getImageList_args getEmptyArgsInstance() {
- return new getImageList_args();
+ public getLectureList_args getEmptyArgsInstance() {
+ return new getLectureList_args();
}
- public AsyncMethodCallback<List<Image>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ public AsyncMethodCallback<List<Lecture>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<List<Image>>() {
- public void onComplete(List<Image> o) {
- getImageList_result result = new getImageList_result();
+ return new AsyncMethodCallback<List<Lecture>>() {
+ public void onComplete(List<Lecture> o) {
+ getLectureList_result result = new getLectureList_result();
result.success = o;
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
@@ -1467,7 +1707,7 @@ public class Server {
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
- getImageList_result result = new getImageList_result();
+ getLectureList_result result = new getLectureList_result();
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
@@ -1487,8 +1727,8 @@ public class Server {
return false;
}
- public void start(I iface, getImageList_args args, org.apache.thrift.async.AsyncMethodCallback<List<Image>> resultHandler) throws TException {
- iface.getImageList(resultHandler);
+ public void start(I iface, getLectureList_args args, org.apache.thrift.async.AsyncMethodCallback<List<Lecture>> resultHandler) throws TException {
+ iface.getLectureList(resultHandler);
}
}
@@ -1745,7 +1985,7 @@ public class Server {
}
public void start(I iface, getImageData_args args, org.apache.thrift.async.AsyncMethodCallback<Map<String,String>> resultHandler) throws TException {
- iface.getImageData(args.imagename,resultHandler);
+ iface.getImageData(args.imageid, args.imageversion,resultHandler);
}
}
@@ -1797,7 +2037,110 @@ public class Server {
}
public void start(I iface, updateImageData_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
- iface.updateImageData(args.name, args.newName, args.license, args.internet, args.ram, args.cpu,resultHandler);
+ iface.updateImageData(args.name, args.newName, args.license, args.internet, args.ram, args.cpu, args.id, args.version,resultHandler);
+ }
+ }
+
+ public static class getLectureData<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getLectureData_args, Map<String,String>> {
+ public getLectureData() {
+ super("getLectureData");
+ }
+
+ public getLectureData_args getEmptyArgsInstance() {
+ return new getLectureData_args();
+ }
+
+ public AsyncMethodCallback<Map<String,String>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new AsyncMethodCallback<Map<String,String>>() {
+ public void onComplete(Map<String,String> o) {
+ getLectureData_result result = new getLectureData_result();
+ result.success = o;
+ try {
+ fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ return;
+ } catch (Exception e) {
+ LOGGER.error("Exception writing to internal frame buffer", e);
+ }
+ fb.close();
+ }
+ public void onError(Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TBase msg;
+ getLectureData_result result = new getLectureData_result();
+ {
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ return;
+ } catch (Exception ex) {
+ LOGGER.error("Exception writing to internal frame buffer", ex);
+ }
+ fb.close();
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, getLectureData_args args, org.apache.thrift.async.AsyncMethodCallback<Map<String,String>> resultHandler) throws TException {
+ iface.getLectureData(args.lecturename,resultHandler);
+ }
+ }
+
+ public static class updateLecturedata<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, updateLecturedata_args, Boolean> {
+ public updateLecturedata() {
+ super("updateLecturedata");
+ }
+
+ public updateLecturedata_args getEmptyArgsInstance() {
+ return new updateLecturedata_args();
+ }
+
+ public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new AsyncMethodCallback<Boolean>() {
+ public void onComplete(Boolean o) {
+ updateLecturedata_result result = new updateLecturedata_result();
+ result.success = o;
+ result.setSuccessIsSet(true);
+ try {
+ fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ return;
+ } catch (Exception e) {
+ LOGGER.error("Exception writing to internal frame buffer", e);
+ }
+ fb.close();
+ }
+ public void onError(Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TBase msg;
+ updateLecturedata_result result = new updateLecturedata_result();
+ {
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ return;
+ } catch (Exception ex) {
+ LOGGER.error("Exception writing to internal frame buffer", ex);
+ }
+ fb.close();
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, updateLecturedata_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
+ iface.updateLecturedata(args.name, args.newName, args.shortdesc, args.desc, args.startDate, args.endDate, args.isActive, args.imagename, args.firstname, args.lastname, args.university, args.Mail, args.Tel, args.Fak, args.id,resultHandler);
}
}
@@ -3116,268 +3459,25 @@ public class Server {
}
- public static class getImages_args implements org.apache.thrift.TBase<getImages_args, getImages_args._Fields>, java.io.Serializable, Cloneable, Comparable<getImages_args> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImages_args");
-
-
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new getImages_argsStandardSchemeFactory());
- schemes.put(TupleScheme.class, new getImages_argsTupleSchemeFactory());
- }
-
-
- /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
- public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-;
-
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
- static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
- byName.put(field.getFieldName(), field);
- }
- }
-
- /**
- * Find the _Fields constant that matches fieldId, or null if its not found.
- */
- public static _Fields findByThriftId(int fieldId) {
- switch(fieldId) {
- default:
- return null;
- }
- }
-
- /**
- * Find the _Fields constant that matches fieldId, throwing an exception
- * if it is not found.
- */
- public static _Fields findByThriftIdOrThrow(int fieldId) {
- _Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
- return fields;
- }
-
- /**
- * Find the _Fields constant that matches name, or null if its not found.
- */
- public static _Fields findByName(String name) {
- return byName.get(name);
- }
-
- private final short _thriftId;
- private final String _fieldName;
-
- _Fields(short thriftId, String fieldName) {
- _thriftId = thriftId;
- _fieldName = fieldName;
- }
-
- public short getThriftFieldId() {
- return _thriftId;
- }
-
- public String getFieldName() {
- return _fieldName;
- }
- }
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
- static {
- Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
- metaDataMap = Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImages_args.class, metaDataMap);
- }
-
- public getImages_args() {
- }
-
- /**
- * Performs a deep copy on <i>other</i>.
- */
- public getImages_args(getImages_args other) {
- }
-
- public getImages_args deepCopy() {
- return new getImages_args(this);
- }
-
- @Override
- public void clear() {
- }
-
- public void setFieldValue(_Fields field, Object value) {
- switch (field) {
- }
- }
-
- public Object getFieldValue(_Fields field) {
- switch (field) {
- }
- throw new IllegalStateException();
- }
-
- /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
- public boolean isSet(_Fields field) {
- if (field == null) {
- throw new IllegalArgumentException();
- }
-
- switch (field) {
- }
- throw new IllegalStateException();
- }
-
- @Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
- if (that instanceof getImages_args)
- return this.equals((getImages_args)that);
- return false;
- }
-
- public boolean equals(getImages_args that) {
- if (that == null)
- return false;
-
- return true;
- }
-
- @Override
- public int hashCode() {
- return 0;
- }
-
- @Override
- public int compareTo(getImages_args other) {
- if (!getClass().equals(other.getClass())) {
- return getClass().getName().compareTo(other.getClass().getName());
- }
-
- int lastComparison = 0;
-
- return 0;
- }
-
- public _Fields fieldForId(int fieldId) {
- return _Fields.findByThriftId(fieldId);
- }
-
- public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
- }
-
- public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder("getImages_args(");
- boolean first = true;
-
- sb.append(")");
- return sb.toString();
- }
-
- public void validate() throws org.apache.thrift.TException {
- // check for required fields
- // check for sub-struct validity
- }
-
- private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
- try {
- write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
- } catch (org.apache.thrift.TException te) {
- throw new java.io.IOException(te);
- }
- }
-
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
- try {
- read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
- } catch (org.apache.thrift.TException te) {
- throw new java.io.IOException(te);
- }
- }
-
- private static class getImages_argsStandardSchemeFactory implements SchemeFactory {
- public getImages_argsStandardScheme getScheme() {
- return new getImages_argsStandardScheme();
- }
- }
-
- private static class getImages_argsStandardScheme extends StandardScheme<getImages_args> {
-
- public void read(org.apache.thrift.protocol.TProtocol iprot, getImages_args struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TField schemeField;
- iprot.readStructBegin();
- while (true)
- {
- schemeField = iprot.readFieldBegin();
- if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
- break;
- }
- switch (schemeField.id) {
- default:
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
-
- // check for required fields of primitive type, which can't be checked in the validate method
- struct.validate();
- }
-
- public void write(org.apache.thrift.protocol.TProtocol oprot, getImages_args struct) throws org.apache.thrift.TException {
- struct.validate();
-
- oprot.writeStructBegin(STRUCT_DESC);
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
-
- }
-
- private static class getImages_argsTupleSchemeFactory implements SchemeFactory {
- public getImages_argsTupleScheme getScheme() {
- return new getImages_argsTupleScheme();
- }
- }
-
- private static class getImages_argsTupleScheme extends TupleScheme<getImages_args> {
-
- @Override
- public void write(org.apache.thrift.protocol.TProtocol prot, getImages_args struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- }
-
- @Override
- public void read(org.apache.thrift.protocol.TProtocol prot, getImages_args struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- }
- }
-
- }
-
- public static class getImages_result implements org.apache.thrift.TBase<getImages_result, getImages_result._Fields>, java.io.Serializable, Cloneable, Comparable<getImages_result> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImages_result");
+ public static class getPathOfImage_args implements org.apache.thrift.TBase<getPathOfImage_args, getPathOfImage_args._Fields>, java.io.Serializable, Cloneable, Comparable<getPathOfImage_args> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPathOfImage_args");
- private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
+ private static final org.apache.thrift.protocol.TField IMAGE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("image_id", org.apache.thrift.protocol.TType.STRING, (short)-1);
+ private static final org.apache.thrift.protocol.TField VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("version", org.apache.thrift.protocol.TType.STRING, (short)-2);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
- schemes.put(StandardScheme.class, new getImages_resultStandardSchemeFactory());
- schemes.put(TupleScheme.class, new getImages_resultTupleSchemeFactory());
+ schemes.put(StandardScheme.class, new getPathOfImage_argsStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new getPathOfImage_argsTupleSchemeFactory());
}
- public List<String> success; // required
+ public String image_id; // required
+ public String version; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
- SUCCESS((short)0, "success");
+ IMAGE_ID((short)-1, "image_id"),
+ VERSION((short)-2, "version");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
@@ -3392,8 +3492,10 @@ public class Server {
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
- case 0: // SUCCESS
- return SUCCESS;
+ case -1: // IMAGE_ID
+ return IMAGE_ID;
+ case -2: // VERSION
+ return VERSION;
default:
return null;
}
@@ -3437,474 +3539,111 @@ public class Server {
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
- tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
+ tmpMap.put(_Fields.IMAGE_ID, new org.apache.thrift.meta_data.FieldMetaData("image_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.VERSION, new org.apache.thrift.meta_data.FieldMetaData("version", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImages_result.class, metaDataMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPathOfImage_args.class, metaDataMap);
}
- public getImages_result() {
+ public getPathOfImage_args() {
}
- public getImages_result(
- List<String> success)
+ public getPathOfImage_args(
+ String image_id,
+ String version)
{
this();
- this.success = success;
+ this.image_id = image_id;
+ this.version = version;
}
/**
* Performs a deep copy on <i>other</i>.
*/
- public getImages_result(getImages_result other) {
- if (other.isSetSuccess()) {
- List<String> __this__success = new ArrayList<String>(other.success);
- this.success = __this__success;
+ public getPathOfImage_args(getPathOfImage_args other) {
+ if (other.isSetImage_id()) {
+ this.image_id = other.image_id;
+ }
+ if (other.isSetVersion()) {
+ this.version = other.version;
}
}
- public getImages_result deepCopy() {
- return new getImages_result(this);
+ public getPathOfImage_args deepCopy() {
+ return new getPathOfImage_args(this);
}
@Override
public void clear() {
- this.success = null;
- }
-
- public int getSuccessSize() {
- return (this.success == null) ? 0 : this.success.size();
- }
-
- public java.util.Iterator<String> getSuccessIterator() {
- return (this.success == null) ? null : this.success.iterator();
- }
-
- public void addToSuccess(String elem) {
- if (this.success == null) {
- this.success = new ArrayList<String>();
- }
- this.success.add(elem);
+ this.image_id = null;
+ this.version = null;
}
- public List<String> getSuccess() {
- return this.success;
+ public String getImage_id() {
+ return this.image_id;
}
- public getImages_result setSuccess(List<String> success) {
- this.success = success;
+ public getPathOfImage_args setImage_id(String image_id) {
+ this.image_id = image_id;
return this;
}
- public void unsetSuccess() {
- this.success = null;
+ public void unsetImage_id() {
+ this.image_id = null;
}
- /** Returns true if field success is set (has been assigned a value) and false otherwise */
- public boolean isSetSuccess() {
- return this.success != null;
+ /** Returns true if field image_id is set (has been assigned a value) and false otherwise */
+ public boolean isSetImage_id() {
+ return this.image_id != null;
}
- public void setSuccessIsSet(boolean value) {
+ public void setImage_idIsSet(boolean value) {
if (!value) {
- this.success = null;
- }
- }
-
- public void setFieldValue(_Fields field, Object value) {
- switch (field) {
- case SUCCESS:
- if (value == null) {
- unsetSuccess();
- } else {
- setSuccess((List<String>)value);
- }
- break;
-
- }
- }
-
- public Object getFieldValue(_Fields field) {
- switch (field) {
- case SUCCESS:
- return getSuccess();
-
- }
- throw new IllegalStateException();
- }
-
- /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
- public boolean isSet(_Fields field) {
- if (field == null) {
- throw new IllegalArgumentException();
- }
-
- switch (field) {
- case SUCCESS:
- return isSetSuccess();
- }
- throw new IllegalStateException();
- }
-
- @Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
- if (that instanceof getImages_result)
- return this.equals((getImages_result)that);
- return false;
- }
-
- public boolean equals(getImages_result that) {
- if (that == null)
- return false;
-
- boolean this_present_success = true && this.isSetSuccess();
- boolean that_present_success = true && that.isSetSuccess();
- if (this_present_success || that_present_success) {
- if (!(this_present_success && that_present_success))
- return false;
- if (!this.success.equals(that.success))
- return false;
- }
-
- return true;
- }
-
- @Override
- public int hashCode() {
- return 0;
- }
-
- @Override
- public int compareTo(getImages_result other) {
- if (!getClass().equals(other.getClass())) {
- return getClass().getName().compareTo(other.getClass().getName());
- }
-
- int lastComparison = 0;
-
- lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetSuccess()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- return 0;
- }
-
- public _Fields fieldForId(int fieldId) {
- return _Fields.findByThriftId(fieldId);
- }
-
- public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
- }
-
- public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder("getImages_result(");
- boolean first = true;
-
- sb.append("success:");
- if (this.success == null) {
- sb.append("null");
- } else {
- sb.append(this.success);
- }
- first = false;
- sb.append(")");
- return sb.toString();
- }
-
- public void validate() throws org.apache.thrift.TException {
- // check for required fields
- // check for sub-struct validity
- }
-
- private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
- try {
- write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
- } catch (org.apache.thrift.TException te) {
- throw new java.io.IOException(te);
- }
- }
-
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
- try {
- read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
- } catch (org.apache.thrift.TException te) {
- throw new java.io.IOException(te);
- }
- }
-
- private static class getImages_resultStandardSchemeFactory implements SchemeFactory {
- public getImages_resultStandardScheme getScheme() {
- return new getImages_resultStandardScheme();
- }
- }
-
- private static class getImages_resultStandardScheme extends StandardScheme<getImages_result> {
-
- public void read(org.apache.thrift.protocol.TProtocol iprot, getImages_result struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TField schemeField;
- iprot.readStructBegin();
- while (true)
- {
- schemeField = iprot.readFieldBegin();
- if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
- break;
- }
- switch (schemeField.id) {
- case 0: // SUCCESS
- if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
- {
- org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
- struct.success = new ArrayList<String>(_list0.size);
- for (int _i1 = 0; _i1 < _list0.size; ++_i1)
- {
- String _elem2;
- _elem2 = iprot.readString();
- struct.success.add(_elem2);
- }
- iprot.readListEnd();
- }
- struct.setSuccessIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- default:
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
-
- // check for required fields of primitive type, which can't be checked in the validate method
- struct.validate();
- }
-
- public void write(org.apache.thrift.protocol.TProtocol oprot, getImages_result struct) throws org.apache.thrift.TException {
- struct.validate();
-
- oprot.writeStructBegin(STRUCT_DESC);
- if (struct.success != null) {
- oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
- {
- oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size()));
- for (String _iter3 : struct.success)
- {
- oprot.writeString(_iter3);
- }
- oprot.writeListEnd();
- }
- oprot.writeFieldEnd();
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
+ this.image_id = null;
}
-
}
- private static class getImages_resultTupleSchemeFactory implements SchemeFactory {
- public getImages_resultTupleScheme getScheme() {
- return new getImages_resultTupleScheme();
- }
+ public String getVersion() {
+ return this.version;
}
- private static class getImages_resultTupleScheme extends TupleScheme<getImages_result> {
-
- @Override
- public void write(org.apache.thrift.protocol.TProtocol prot, getImages_result struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
- if (struct.isSetSuccess()) {
- optionals.set(0);
- }
- oprot.writeBitSet(optionals, 1);
- if (struct.isSetSuccess()) {
- {
- oprot.writeI32(struct.success.size());
- for (String _iter4 : struct.success)
- {
- oprot.writeString(_iter4);
- }
- }
- }
- }
-
- @Override
- public void read(org.apache.thrift.protocol.TProtocol prot, getImages_result struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(1);
- if (incoming.get(0)) {
- {
- org.apache.thrift.protocol.TList _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.success = new ArrayList<String>(_list5.size);
- for (int _i6 = 0; _i6 < _list5.size; ++_i6)
- {
- String _elem7;
- _elem7 = iprot.readString();
- struct.success.add(_elem7);
- }
- }
- struct.setSuccessIsSet(true);
- }
- }
- }
-
- }
-
- public static class getPathOfImage_args implements org.apache.thrift.TBase<getPathOfImage_args, getPathOfImage_args._Fields>, java.io.Serializable, Cloneable, Comparable<getPathOfImage_args> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPathOfImage_args");
-
- private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)-1);
-
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new getPathOfImage_argsStandardSchemeFactory());
- schemes.put(TupleScheme.class, new getPathOfImage_argsTupleSchemeFactory());
- }
-
- public String name; // required
-
- /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
- public enum _Fields implements org.apache.thrift.TFieldIdEnum {
- NAME((short)-1, "name");
-
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
- static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
- byName.put(field.getFieldName(), field);
- }
- }
-
- /**
- * Find the _Fields constant that matches fieldId, or null if its not found.
- */
- public static _Fields findByThriftId(int fieldId) {
- switch(fieldId) {
- case -1: // NAME
- return NAME;
- default:
- return null;
- }
- }
-
- /**
- * Find the _Fields constant that matches fieldId, throwing an exception
- * if it is not found.
- */
- public static _Fields findByThriftIdOrThrow(int fieldId) {
- _Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
- return fields;
- }
-
- /**
- * Find the _Fields constant that matches name, or null if its not found.
- */
- public static _Fields findByName(String name) {
- return byName.get(name);
- }
-
- private final short _thriftId;
- private final String _fieldName;
-
- _Fields(short thriftId, String fieldName) {
- _thriftId = thriftId;
- _fieldName = fieldName;
- }
-
- public short getThriftFieldId() {
- return _thriftId;
- }
-
- public String getFieldName() {
- return _fieldName;
- }
- }
-
- // isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
- static {
- Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
- tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPathOfImage_args.class, metaDataMap);
- }
-
- public getPathOfImage_args() {
- }
-
- public getPathOfImage_args(
- String name)
- {
- this();
- this.name = name;
- }
-
- /**
- * Performs a deep copy on <i>other</i>.
- */
- public getPathOfImage_args(getPathOfImage_args other) {
- if (other.isSetName()) {
- this.name = other.name;
- }
- }
-
- public getPathOfImage_args deepCopy() {
- return new getPathOfImage_args(this);
- }
-
- @Override
- public void clear() {
- this.name = null;
- }
-
- public String getName() {
- return this.name;
- }
-
- public getPathOfImage_args setName(String name) {
- this.name = name;
+ public getPathOfImage_args setVersion(String version) {
+ this.version = version;
return this;
}
- public void unsetName() {
- this.name = null;
+ public void unsetVersion() {
+ this.version = null;
}
- /** Returns true if field name is set (has been assigned a value) and false otherwise */
- public boolean isSetName() {
- return this.name != null;
+ /** Returns true if field version is set (has been assigned a value) and false otherwise */
+ public boolean isSetVersion() {
+ return this.version != null;
}
- public void setNameIsSet(boolean value) {
+ public void setVersionIsSet(boolean value) {
if (!value) {
- this.name = null;
+ this.version = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
- case NAME:
+ case IMAGE_ID:
if (value == null) {
- unsetName();
+ unsetImage_id();
} else {
- setName((String)value);
+ setImage_id((String)value);
+ }
+ break;
+
+ case VERSION:
+ if (value == null) {
+ unsetVersion();
+ } else {
+ setVersion((String)value);
}
break;
@@ -3913,8 +3652,11 @@ public class Server {
public Object getFieldValue(_Fields field) {
switch (field) {
- case NAME:
- return getName();
+ case IMAGE_ID:
+ return getImage_id();
+
+ case VERSION:
+ return getVersion();
}
throw new IllegalStateException();
@@ -3927,8 +3669,10 @@ public class Server {
}
switch (field) {
- case NAME:
- return isSetName();
+ case IMAGE_ID:
+ return isSetImage_id();
+ case VERSION:
+ return isSetVersion();
}
throw new IllegalStateException();
}
@@ -3946,12 +3690,21 @@ public class Server {
if (that == null)
return false;
- boolean this_present_name = true && this.isSetName();
- boolean that_present_name = true && that.isSetName();
- if (this_present_name || that_present_name) {
- if (!(this_present_name && that_present_name))
+ boolean this_present_image_id = true && this.isSetImage_id();
+ boolean that_present_image_id = true && that.isSetImage_id();
+ if (this_present_image_id || that_present_image_id) {
+ if (!(this_present_image_id && that_present_image_id))
return false;
- if (!this.name.equals(that.name))
+ if (!this.image_id.equals(that.image_id))
+ return false;
+ }
+
+ boolean this_present_version = true && this.isSetVersion();
+ boolean that_present_version = true && that.isSetVersion();
+ if (this_present_version || that_present_version) {
+ if (!(this_present_version && that_present_version))
+ return false;
+ if (!this.version.equals(that.version))
return false;
}
@@ -3971,12 +3724,22 @@ public class Server {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName());
+ lastComparison = Boolean.valueOf(isSetImage_id()).compareTo(other.isSetImage_id());
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetName()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name);
+ if (isSetImage_id()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.image_id, other.image_id);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetVersion()).compareTo(other.isSetVersion());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetVersion()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.version, other.version);
if (lastComparison != 0) {
return lastComparison;
}
@@ -4001,11 +3764,19 @@ public class Server {
StringBuilder sb = new StringBuilder("getPathOfImage_args(");
boolean first = true;
- sb.append("name:");
- if (this.name == null) {
+ sb.append("image_id:");
+ if (this.image_id == null) {
sb.append("null");
} else {
- sb.append(this.name);
+ sb.append(this.image_id);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("version:");
+ if (this.version == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.version);
}
first = false;
sb.append(")");
@@ -4051,10 +3822,18 @@ public class Server {
break;
}
switch (schemeField.id) {
- case -1: // NAME
+ case -1: // IMAGE_ID
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.name = iprot.readString();
- struct.setNameIsSet(true);
+ struct.image_id = iprot.readString();
+ struct.setImage_idIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -2: // VERSION
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.version = iprot.readString();
+ struct.setVersionIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
@@ -4074,9 +3853,14 @@ public class Server {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
- if (struct.name != null) {
- oprot.writeFieldBegin(NAME_FIELD_DESC);
- oprot.writeString(struct.name);
+ if (struct.version != null) {
+ oprot.writeFieldBegin(VERSION_FIELD_DESC);
+ oprot.writeString(struct.version);
+ oprot.writeFieldEnd();
+ }
+ if (struct.image_id != null) {
+ oprot.writeFieldBegin(IMAGE_ID_FIELD_DESC);
+ oprot.writeString(struct.image_id);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
@@ -4097,22 +3881,32 @@ public class Server {
public void write(org.apache.thrift.protocol.TProtocol prot, getPathOfImage_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
- if (struct.isSetName()) {
+ if (struct.isSetImage_id()) {
optionals.set(0);
}
- oprot.writeBitSet(optionals, 1);
- if (struct.isSetName()) {
- oprot.writeString(struct.name);
+ if (struct.isSetVersion()) {
+ optionals.set(1);
+ }
+ oprot.writeBitSet(optionals, 2);
+ if (struct.isSetImage_id()) {
+ oprot.writeString(struct.image_id);
+ }
+ if (struct.isSetVersion()) {
+ oprot.writeString(struct.version);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getPathOfImage_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(1);
+ BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
- struct.name = iprot.readString();
- struct.setNameIsSet(true);
+ struct.image_id = iprot.readString();
+ struct.setImage_idIsSet(true);
+ }
+ if (incoming.get(1)) {
+ struct.version = iprot.readString();
+ struct.setVersionIsSet(true);
}
}
}
@@ -4487,6 +4281,7 @@ public class Server {
private static final org.apache.thrift.protocol.TField INTERNET_FIELD_DESC = new org.apache.thrift.protocol.TField("internet", org.apache.thrift.protocol.TType.BOOL, (short)-9);
private static final org.apache.thrift.protocol.TField RAM_FIELD_DESC = new org.apache.thrift.protocol.TField("ram", org.apache.thrift.protocol.TType.I64, (short)-10);
private static final org.apache.thrift.protocol.TField CPU_FIELD_DESC = new org.apache.thrift.protocol.TField("cpu", org.apache.thrift.protocol.TType.I64, (short)-11);
+ private static final org.apache.thrift.protocol.TField IMAGE_PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("imagePath", org.apache.thrift.protocol.TType.STRING, (short)-12);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
@@ -4505,6 +4300,7 @@ public class Server {
public boolean internet; // required
public long ram; // required
public long cpu; // required
+ public String imagePath; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
@@ -4518,7 +4314,8 @@ public class Server {
LICENSE((short)-8, "license"),
INTERNET((short)-9, "internet"),
RAM((short)-10, "ram"),
- CPU((short)-11, "cpu");
+ CPU((short)-11, "cpu"),
+ IMAGE_PATH((short)-12, "imagePath");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
@@ -4555,6 +4352,8 @@ public class Server {
return RAM;
case -11: // CPU
return CPU;
+ case -12: // IMAGE_PATH
+ return IMAGE_PATH;
default:
return null;
}
@@ -4625,6 +4424,8 @@ public class Server {
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "int")));
tmpMap.put(_Fields.CPU, new org.apache.thrift.meta_data.FieldMetaData("cpu", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "int")));
+ tmpMap.put(_Fields.IMAGE_PATH, new org.apache.thrift.meta_data.FieldMetaData("imagePath", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeVLdata_args.class, metaDataMap);
}
@@ -4643,7 +4444,8 @@ public class Server {
boolean license,
boolean internet,
long ram,
- long cpu)
+ long cpu,
+ String imagePath)
{
this();
this.imagename = imagename;
@@ -4661,6 +4463,7 @@ public class Server {
setRamIsSet(true);
this.cpu = cpu;
setCpuIsSet(true);
+ this.imagePath = imagePath;
}
/**
@@ -4693,6 +4496,9 @@ public class Server {
this.internet = other.internet;
this.ram = other.ram;
this.cpu = other.cpu;
+ if (other.isSetImagePath()) {
+ this.imagePath = other.imagePath;
+ }
}
public writeVLdata_args deepCopy() {
@@ -4716,6 +4522,7 @@ public class Server {
this.ram = 0;
setCpuIsSet(false);
this.cpu = 0;
+ this.imagePath = null;
}
public String getImagename() {
@@ -4978,6 +4785,30 @@ public class Server {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CPU_ISSET_ID, value);
}
+ public String getImagePath() {
+ return this.imagePath;
+ }
+
+ public writeVLdata_args setImagePath(String imagePath) {
+ this.imagePath = imagePath;
+ return this;
+ }
+
+ public void unsetImagePath() {
+ this.imagePath = null;
+ }
+
+ /** Returns true if field imagePath is set (has been assigned a value) and false otherwise */
+ public boolean isSetImagePath() {
+ return this.imagePath != null;
+ }
+
+ public void setImagePathIsSet(boolean value) {
+ if (!value) {
+ this.imagePath = null;
+ }
+ }
+
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case IMAGENAME:
@@ -5068,6 +4899,14 @@ public class Server {
}
break;
+ case IMAGE_PATH:
+ if (value == null) {
+ unsetImagePath();
+ } else {
+ setImagePath((String)value);
+ }
+ break;
+
}
}
@@ -5106,6 +4945,9 @@ public class Server {
case CPU:
return Long.valueOf(getCpu());
+ case IMAGE_PATH:
+ return getImagePath();
+
}
throw new IllegalStateException();
}
@@ -5139,6 +4981,8 @@ public class Server {
return isSetRam();
case CPU:
return isSetCpu();
+ case IMAGE_PATH:
+ return isSetImagePath();
}
throw new IllegalStateException();
}
@@ -5255,6 +5099,15 @@ public class Server {
return false;
}
+ boolean this_present_imagePath = true && this.isSetImagePath();
+ boolean that_present_imagePath = true && that.isSetImagePath();
+ if (this_present_imagePath || that_present_imagePath) {
+ if (!(this_present_imagePath && that_present_imagePath))
+ return false;
+ if (!this.imagePath.equals(that.imagePath))
+ return false;
+ }
+
return true;
}
@@ -5381,6 +5234,16 @@ public class Server {
return lastComparison;
}
}
+ lastComparison = Boolean.valueOf(isSetImagePath()).compareTo(other.isSetImagePath());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetImagePath()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imagePath, other.imagePath);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
return 0;
}
@@ -5472,6 +5335,14 @@ public class Server {
sb.append("cpu:");
sb.append(this.cpu);
first = false;
+ if (!first) sb.append(", ");
+ sb.append("imagePath:");
+ if (this.imagePath == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.imagePath);
+ }
+ first = false;
sb.append(")");
return sb.toString();
}
@@ -5605,6 +5476,14 @@ public class Server {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
+ case -12: // IMAGE_PATH
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.imagePath = iprot.readString();
+ struct.setImagePathIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
@@ -5620,6 +5499,11 @@ public class Server {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.imagePath != null) {
+ oprot.writeFieldBegin(IMAGE_PATH_FIELD_DESC);
+ oprot.writeString(struct.imagePath);
+ oprot.writeFieldEnd();
+ }
oprot.writeFieldBegin(CPU_FIELD_DESC);
oprot.writeI64(struct.cpu);
oprot.writeFieldEnd();
@@ -5718,7 +5602,10 @@ public class Server {
if (struct.isSetCpu()) {
optionals.set(10);
}
- oprot.writeBitSet(optionals, 11);
+ if (struct.isSetImagePath()) {
+ optionals.set(11);
+ }
+ oprot.writeBitSet(optionals, 12);
if (struct.isSetImagename()) {
oprot.writeString(struct.imagename);
}
@@ -5752,12 +5639,15 @@ public class Server {
if (struct.isSetCpu()) {
oprot.writeI64(struct.cpu);
}
+ if (struct.isSetImagePath()) {
+ oprot.writeString(struct.imagePath);
+ }
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, writeVLdata_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(11);
+ BitSet incoming = iprot.readBitSet(12);
if (incoming.get(0)) {
struct.imagename = iprot.readString();
struct.setImagenameIsSet(true);
@@ -5802,6 +5692,10 @@ public class Server {
struct.cpu = iprot.readI64();
struct.setCpuIsSet(true);
}
+ if (incoming.get(11)) {
+ struct.imagePath = iprot.readString();
+ struct.setImagePathIsSet(true);
+ }
}
}
@@ -6716,14 +6610,14 @@ public class Server {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
- struct.success = new ArrayList<Image>(_list8.size);
- for (int _i9 = 0; _i9 < _list8.size; ++_i9)
+ org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
+ struct.success = new ArrayList<Image>(_list0.size);
+ for (int _i1 = 0; _i1 < _list0.size; ++_i1)
{
- Image _elem10;
- _elem10 = new Image();
- _elem10.read(iprot);
- struct.success.add(_elem10);
+ Image _elem2;
+ _elem2 = new Image();
+ _elem2.read(iprot);
+ struct.success.add(_elem2);
}
iprot.readListEnd();
}
@@ -6751,9 +6645,9 @@ public class Server {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
- for (Image _iter11 : struct.success)
+ for (Image _iter3 : struct.success)
{
- _iter11.write(oprot);
+ _iter3.write(oprot);
}
oprot.writeListEnd();
}
@@ -6784,9 +6678,9 @@ public class Server {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (Image _iter12 : struct.success)
+ for (Image _iter4 : struct.success)
{
- _iter12.write(oprot);
+ _iter4.write(oprot);
}
}
}
@@ -6798,12 +6692,666 @@ public class Server {
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
+ org.apache.thrift.protocol.TList _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.success = new ArrayList<Image>(_list5.size);
+ for (int _i6 = 0; _i6 < _list5.size; ++_i6)
+ {
+ Image _elem7;
+ _elem7 = new Image();
+ _elem7.read(iprot);
+ struct.success.add(_elem7);
+ }
+ }
+ struct.setSuccessIsSet(true);
+ }
+ }
+ }
+
+ }
+
+ public static class getLectureList_args implements org.apache.thrift.TBase<getLectureList_args, getLectureList_args._Fields>, java.io.Serializable, Cloneable, Comparable<getLectureList_args> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLectureList_args");
+
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new getLectureList_argsStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new getLectureList_argsTupleSchemeFactory());
+ }
+
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+;
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureList_args.class, metaDataMap);
+ }
+
+ public getLectureList_args() {
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public getLectureList_args(getLectureList_args other) {
+ }
+
+ public getLectureList_args deepCopy() {
+ return new getLectureList_args(this);
+ }
+
+ @Override
+ public void clear() {
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ }
+ throw new IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
+ switch (field) {
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof getLectureList_args)
+ return this.equals((getLectureList_args)that);
+ return false;
+ }
+
+ public boolean equals(getLectureList_args that) {
+ if (that == null)
+ return false;
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return 0;
+ }
+
+ @Override
+ public int compareTo(getLectureList_args other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("getLectureList_args(");
+ boolean first = true;
+
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class getLectureList_argsStandardSchemeFactory implements SchemeFactory {
+ public getLectureList_argsStandardScheme getScheme() {
+ return new getLectureList_argsStandardScheme();
+ }
+ }
+
+ private static class getLectureList_argsStandardScheme extends StandardScheme<getLectureList_args> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureList_args struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+
+ // check for required fields of primitive type, which can't be checked in the validate method
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureList_args struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class getLectureList_argsTupleSchemeFactory implements SchemeFactory {
+ public getLectureList_argsTupleScheme getScheme() {
+ return new getLectureList_argsTupleScheme();
+ }
+ }
+
+ private static class getLectureList_argsTupleScheme extends TupleScheme<getLectureList_args> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, getLectureList_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, getLectureList_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ }
+ }
+
+ }
+
+ public static class getLectureList_result implements org.apache.thrift.TBase<getLectureList_result, getLectureList_result._Fields>, java.io.Serializable, Cloneable, Comparable<getLectureList_result> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLectureList_result");
+
+ private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new getLectureList_resultStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new getLectureList_resultTupleSchemeFactory());
+ }
+
+ public List<Lecture> success; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ SUCCESS((short)0, "success");
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 0: // SUCCESS
+ return SUCCESS;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Lecture.class))));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureList_result.class, metaDataMap);
+ }
+
+ public getLectureList_result() {
+ }
+
+ public getLectureList_result(
+ List<Lecture> success)
+ {
+ this();
+ this.success = success;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public getLectureList_result(getLectureList_result other) {
+ if (other.isSetSuccess()) {
+ List<Lecture> __this__success = new ArrayList<Lecture>(other.success.size());
+ for (Lecture other_element : other.success) {
+ __this__success.add(new Lecture(other_element));
+ }
+ this.success = __this__success;
+ }
+ }
+
+ public getLectureList_result deepCopy() {
+ return new getLectureList_result(this);
+ }
+
+ @Override
+ public void clear() {
+ this.success = null;
+ }
+
+ public int getSuccessSize() {
+ return (this.success == null) ? 0 : this.success.size();
+ }
+
+ public java.util.Iterator<Lecture> getSuccessIterator() {
+ return (this.success == null) ? null : this.success.iterator();
+ }
+
+ public void addToSuccess(Lecture elem) {
+ if (this.success == null) {
+ this.success = new ArrayList<Lecture>();
+ }
+ this.success.add(elem);
+ }
+
+ public List<Lecture> getSuccess() {
+ return this.success;
+ }
+
+ public getLectureList_result setSuccess(List<Lecture> success) {
+ this.success = success;
+ return this;
+ }
+
+ public void unsetSuccess() {
+ this.success = null;
+ }
+
+ /** Returns true if field success is set (has been assigned a value) and false otherwise */
+ public boolean isSetSuccess() {
+ return this.success != null;
+ }
+
+ public void setSuccessIsSet(boolean value) {
+ if (!value) {
+ this.success = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case SUCCESS:
+ if (value == null) {
+ unsetSuccess();
+ } else {
+ setSuccess((List<Lecture>)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case SUCCESS:
+ return getSuccess();
+
+ }
+ throw new IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
+ switch (field) {
+ case SUCCESS:
+ return isSetSuccess();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof getLectureList_result)
+ return this.equals((getLectureList_result)that);
+ return false;
+ }
+
+ public boolean equals(getLectureList_result that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_success = true && this.isSetSuccess();
+ boolean that_present_success = true && that.isSetSuccess();
+ if (this_present_success || that_present_success) {
+ if (!(this_present_success && that_present_success))
+ return false;
+ if (!this.success.equals(that.success))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return 0;
+ }
+
+ @Override
+ public int compareTo(getLectureList_result other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetSuccess()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("getLectureList_result(");
+ boolean first = true;
+
+ sb.append("success:");
+ if (this.success == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.success);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class getLectureList_resultStandardSchemeFactory implements SchemeFactory {
+ public getLectureList_resultStandardScheme getScheme() {
+ return new getLectureList_resultStandardScheme();
+ }
+ }
+
+ private static class getLectureList_resultStandardScheme extends StandardScheme<getLectureList_result> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureList_result struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 0: // SUCCESS
+ if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
+ {
+ org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
+ struct.success = new ArrayList<Lecture>(_list8.size);
+ for (int _i9 = 0; _i9 < _list8.size; ++_i9)
+ {
+ Lecture _elem10;
+ _elem10 = new Lecture();
+ _elem10.read(iprot);
+ struct.success.add(_elem10);
+ }
+ iprot.readListEnd();
+ }
+ struct.setSuccessIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+
+ // check for required fields of primitive type, which can't be checked in the validate method
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureList_result struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.success != null) {
+ oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
+ {
+ oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
+ for (Lecture _iter11 : struct.success)
+ {
+ _iter11.write(oprot);
+ }
+ oprot.writeListEnd();
+ }
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class getLectureList_resultTupleSchemeFactory implements SchemeFactory {
+ public getLectureList_resultTupleScheme getScheme() {
+ return new getLectureList_resultTupleScheme();
+ }
+ }
+
+ private static class getLectureList_resultTupleScheme extends TupleScheme<getLectureList_result> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, getLectureList_result struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetSuccess()) {
+ optionals.set(0);
+ }
+ oprot.writeBitSet(optionals, 1);
+ if (struct.isSetSuccess()) {
+ {
+ oprot.writeI32(struct.success.size());
+ for (Lecture _iter12 : struct.success)
+ {
+ _iter12.write(oprot);
+ }
+ }
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, getLectureList_result struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(1);
+ if (incoming.get(0)) {
+ {
org.apache.thrift.protocol.TList _list13 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new ArrayList<Image>(_list13.size);
+ struct.success = new ArrayList<Lecture>(_list13.size);
for (int _i14 = 0; _i14 < _list13.size; ++_i14)
{
- Image _elem15;
- _elem15 = new Image();
+ Lecture _elem15;
+ _elem15 = new Lecture();
_elem15.read(iprot);
struct.success.add(_elem15);
}
@@ -10941,7 +11489,8 @@ public class Server {
public static class getImageData_args implements org.apache.thrift.TBase<getImageData_args, getImageData_args._Fields>, java.io.Serializable, Cloneable, Comparable<getImageData_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageData_args");
- private static final org.apache.thrift.protocol.TField IMAGENAME_FIELD_DESC = new org.apache.thrift.protocol.TField("imagename", org.apache.thrift.protocol.TType.STRING, (short)-1);
+ private static final org.apache.thrift.protocol.TField IMAGEID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageid", org.apache.thrift.protocol.TType.STRING, (short)-1);
+ private static final org.apache.thrift.protocol.TField IMAGEVERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("imageversion", org.apache.thrift.protocol.TType.STRING, (short)-2);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
@@ -10949,11 +11498,13 @@ public class Server {
schemes.put(TupleScheme.class, new getImageData_argsTupleSchemeFactory());
}
- public String imagename; // required
+ public String imageid; // required
+ public String imageversion; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
- IMAGENAME((short)-1, "imagename");
+ IMAGEID((short)-1, "imageid"),
+ IMAGEVERSION((short)-2, "imageversion");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
@@ -10968,8 +11519,10 @@ public class Server {
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
- case -1: // IMAGENAME
- return IMAGENAME;
+ case -1: // IMAGEID
+ return IMAGEID;
+ case -2: // IMAGEVERSION
+ return IMAGEVERSION;
default:
return null;
}
@@ -11013,7 +11566,9 @@ public class Server {
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
- tmpMap.put(_Fields.IMAGENAME, new org.apache.thrift.meta_data.FieldMetaData("imagename", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ tmpMap.put(_Fields.IMAGEID, new org.apache.thrift.meta_data.FieldMetaData("imageid", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.IMAGEVERSION, new org.apache.thrift.meta_data.FieldMetaData("imageversion", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageData_args.class, metaDataMap);
@@ -11023,18 +11578,23 @@ public class Server {
}
public getImageData_args(
- String imagename)
+ String imageid,
+ String imageversion)
{
this();
- this.imagename = imagename;
+ this.imageid = imageid;
+ this.imageversion = imageversion;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public getImageData_args(getImageData_args other) {
- if (other.isSetImagename()) {
- this.imagename = other.imagename;
+ if (other.isSetImageid()) {
+ this.imageid = other.imageid;
+ }
+ if (other.isSetImageversion()) {
+ this.imageversion = other.imageversion;
}
}
@@ -11044,40 +11604,73 @@ public class Server {
@Override
public void clear() {
- this.imagename = null;
+ this.imageid = null;
+ this.imageversion = null;
}
- public String getImagename() {
- return this.imagename;
+ public String getImageid() {
+ return this.imageid;
}
- public getImageData_args setImagename(String imagename) {
- this.imagename = imagename;
+ public getImageData_args setImageid(String imageid) {
+ this.imageid = imageid;
return this;
}
- public void unsetImagename() {
- this.imagename = null;
+ public void unsetImageid() {
+ this.imageid = null;
}
- /** Returns true if field imagename is set (has been assigned a value) and false otherwise */
- public boolean isSetImagename() {
- return this.imagename != null;
+ /** Returns true if field imageid is set (has been assigned a value) and false otherwise */
+ public boolean isSetImageid() {
+ return this.imageid != null;
}
- public void setImagenameIsSet(boolean value) {
+ public void setImageidIsSet(boolean value) {
if (!value) {
- this.imagename = null;
+ this.imageid = null;
+ }
+ }
+
+ public String getImageversion() {
+ return this.imageversion;
+ }
+
+ public getImageData_args setImageversion(String imageversion) {
+ this.imageversion = imageversion;
+ return this;
+ }
+
+ public void unsetImageversion() {
+ this.imageversion = null;
+ }
+
+ /** Returns true if field imageversion is set (has been assigned a value) and false otherwise */
+ public boolean isSetImageversion() {
+ return this.imageversion != null;
+ }
+
+ public void setImageversionIsSet(boolean value) {
+ if (!value) {
+ this.imageversion = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
- case IMAGENAME:
+ case IMAGEID:
if (value == null) {
- unsetImagename();
+ unsetImageid();
} else {
- setImagename((String)value);
+ setImageid((String)value);
+ }
+ break;
+
+ case IMAGEVERSION:
+ if (value == null) {
+ unsetImageversion();
+ } else {
+ setImageversion((String)value);
}
break;
@@ -11086,8 +11679,11 @@ public class Server {
public Object getFieldValue(_Fields field) {
switch (field) {
- case IMAGENAME:
- return getImagename();
+ case IMAGEID:
+ return getImageid();
+
+ case IMAGEVERSION:
+ return getImageversion();
}
throw new IllegalStateException();
@@ -11100,8 +11696,10 @@ public class Server {
}
switch (field) {
- case IMAGENAME:
- return isSetImagename();
+ case IMAGEID:
+ return isSetImageid();
+ case IMAGEVERSION:
+ return isSetImageversion();
}
throw new IllegalStateException();
}
@@ -11119,12 +11717,21 @@ public class Server {
if (that == null)
return false;
- boolean this_present_imagename = true && this.isSetImagename();
- boolean that_present_imagename = true && that.isSetImagename();
- if (this_present_imagename || that_present_imagename) {
- if (!(this_present_imagename && that_present_imagename))
+ boolean this_present_imageid = true && this.isSetImageid();
+ boolean that_present_imageid = true && that.isSetImageid();
+ if (this_present_imageid || that_present_imageid) {
+ if (!(this_present_imageid && that_present_imageid))
return false;
- if (!this.imagename.equals(that.imagename))
+ if (!this.imageid.equals(that.imageid))
+ return false;
+ }
+
+ boolean this_present_imageversion = true && this.isSetImageversion();
+ boolean that_present_imageversion = true && that.isSetImageversion();
+ if (this_present_imageversion || that_present_imageversion) {
+ if (!(this_present_imageversion && that_present_imageversion))
+ return false;
+ if (!this.imageversion.equals(that.imageversion))
return false;
}
@@ -11144,12 +11751,22 @@ public class Server {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetImagename()).compareTo(other.isSetImagename());
+ lastComparison = Boolean.valueOf(isSetImageid()).compareTo(other.isSetImageid());
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetImagename()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imagename, other.imagename);
+ if (isSetImageid()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageid, other.imageid);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetImageversion()).compareTo(other.isSetImageversion());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetImageversion()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageversion, other.imageversion);
if (lastComparison != 0) {
return lastComparison;
}
@@ -11174,11 +11791,19 @@ public class Server {
StringBuilder sb = new StringBuilder("getImageData_args(");
boolean first = true;
- sb.append("imagename:");
- if (this.imagename == null) {
+ sb.append("imageid:");
+ if (this.imageid == null) {
sb.append("null");
} else {
- sb.append(this.imagename);
+ sb.append(this.imageid);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("imageversion:");
+ if (this.imageversion == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.imageversion);
}
first = false;
sb.append(")");
@@ -11224,10 +11849,18 @@ public class Server {
break;
}
switch (schemeField.id) {
- case -1: // IMAGENAME
+ case -1: // IMAGEID
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.imagename = iprot.readString();
- struct.setImagenameIsSet(true);
+ struct.imageid = iprot.readString();
+ struct.setImageidIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -2: // IMAGEVERSION
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.imageversion = iprot.readString();
+ struct.setImageversionIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
@@ -11247,9 +11880,14 @@ public class Server {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
- if (struct.imagename != null) {
- oprot.writeFieldBegin(IMAGENAME_FIELD_DESC);
- oprot.writeString(struct.imagename);
+ if (struct.imageversion != null) {
+ oprot.writeFieldBegin(IMAGEVERSION_FIELD_DESC);
+ oprot.writeString(struct.imageversion);
+ oprot.writeFieldEnd();
+ }
+ if (struct.imageid != null) {
+ oprot.writeFieldBegin(IMAGEID_FIELD_DESC);
+ oprot.writeString(struct.imageid);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
@@ -11270,22 +11908,32 @@ public class Server {
public void write(org.apache.thrift.protocol.TProtocol prot, getImageData_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
- if (struct.isSetImagename()) {
+ if (struct.isSetImageid()) {
optionals.set(0);
}
- oprot.writeBitSet(optionals, 1);
- if (struct.isSetImagename()) {
- oprot.writeString(struct.imagename);
+ if (struct.isSetImageversion()) {
+ optionals.set(1);
+ }
+ oprot.writeBitSet(optionals, 2);
+ if (struct.isSetImageid()) {
+ oprot.writeString(struct.imageid);
+ }
+ if (struct.isSetImageversion()) {
+ oprot.writeString(struct.imageversion);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getImageData_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(1);
+ BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
- struct.imagename = iprot.readString();
- struct.setImagenameIsSet(true);
+ struct.imageid = iprot.readString();
+ struct.setImageidIsSet(true);
+ }
+ if (incoming.get(1)) {
+ struct.imageversion = iprot.readString();
+ struct.setImageversionIsSet(true);
}
}
}
@@ -11707,6 +12355,8 @@ public class Server {
private static final org.apache.thrift.protocol.TField INTERNET_FIELD_DESC = new org.apache.thrift.protocol.TField("internet", org.apache.thrift.protocol.TType.BOOL, (short)-4);
private static final org.apache.thrift.protocol.TField RAM_FIELD_DESC = new org.apache.thrift.protocol.TField("ram", org.apache.thrift.protocol.TType.I64, (short)-5);
private static final org.apache.thrift.protocol.TField CPU_FIELD_DESC = new org.apache.thrift.protocol.TField("cpu", org.apache.thrift.protocol.TType.I64, (short)-6);
+ private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.STRING, (short)-7);
+ private static final org.apache.thrift.protocol.TField VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("version", org.apache.thrift.protocol.TType.STRING, (short)-8);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
@@ -11720,6 +12370,8 @@ public class Server {
public boolean internet; // required
public long ram; // required
public long cpu; // required
+ public String id; // required
+ public String version; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
@@ -11728,7 +12380,9 @@ public class Server {
LICENSE((short)-3, "license"),
INTERNET((short)-4, "internet"),
RAM((short)-5, "ram"),
- CPU((short)-6, "cpu");
+ CPU((short)-6, "cpu"),
+ ID((short)-7, "id"),
+ VERSION((short)-8, "version");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
@@ -11755,6 +12409,10 @@ public class Server {
return RAM;
case -6: // CPU
return CPU;
+ case -7: // ID
+ return ID;
+ case -8: // VERSION
+ return VERSION;
default:
return null;
}
@@ -11815,6 +12473,10 @@ public class Server {
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "int")));
tmpMap.put(_Fields.CPU, new org.apache.thrift.meta_data.FieldMetaData("cpu", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "int")));
+ tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.VERSION, new org.apache.thrift.meta_data.FieldMetaData("version", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageData_args.class, metaDataMap);
}
@@ -11828,7 +12490,9 @@ public class Server {
boolean license,
boolean internet,
long ram,
- long cpu)
+ long cpu,
+ String id,
+ String version)
{
this();
this.name = name;
@@ -11841,6 +12505,8 @@ public class Server {
setRamIsSet(true);
this.cpu = cpu;
setCpuIsSet(true);
+ this.id = id;
+ this.version = version;
}
/**
@@ -11858,6 +12524,12 @@ public class Server {
this.internet = other.internet;
this.ram = other.ram;
this.cpu = other.cpu;
+ if (other.isSetId()) {
+ this.id = other.id;
+ }
+ if (other.isSetVersion()) {
+ this.version = other.version;
+ }
}
public updateImageData_args deepCopy() {
@@ -11876,6 +12548,8 @@ public class Server {
this.ram = 0;
setCpuIsSet(false);
this.cpu = 0;
+ this.id = null;
+ this.version = null;
}
public String getName() {
@@ -12018,6 +12692,54 @@ public class Server {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CPU_ISSET_ID, value);
}
+ public String getId() {
+ return this.id;
+ }
+
+ public updateImageData_args setId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ public void unsetId() {
+ this.id = null;
+ }
+
+ /** Returns true if field id is set (has been assigned a value) and false otherwise */
+ public boolean isSetId() {
+ return this.id != null;
+ }
+
+ public void setIdIsSet(boolean value) {
+ if (!value) {
+ this.id = null;
+ }
+ }
+
+ public String getVersion() {
+ return this.version;
+ }
+
+ public updateImageData_args setVersion(String version) {
+ this.version = version;
+ return this;
+ }
+
+ public void unsetVersion() {
+ this.version = null;
+ }
+
+ /** Returns true if field version is set (has been assigned a value) and false otherwise */
+ public boolean isSetVersion() {
+ return this.version != null;
+ }
+
+ public void setVersionIsSet(boolean value) {
+ if (!value) {
+ this.version = null;
+ }
+ }
+
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case NAME:
@@ -12068,6 +12790,22 @@ public class Server {
}
break;
+ case ID:
+ if (value == null) {
+ unsetId();
+ } else {
+ setId((String)value);
+ }
+ break;
+
+ case VERSION:
+ if (value == null) {
+ unsetVersion();
+ } else {
+ setVersion((String)value);
+ }
+ break;
+
}
}
@@ -12091,6 +12829,12 @@ public class Server {
case CPU:
return Long.valueOf(getCpu());
+ case ID:
+ return getId();
+
+ case VERSION:
+ return getVersion();
+
}
throw new IllegalStateException();
}
@@ -12114,6 +12858,10 @@ public class Server {
return isSetRam();
case CPU:
return isSetCpu();
+ case ID:
+ return isSetId();
+ case VERSION:
+ return isSetVersion();
}
throw new IllegalStateException();
}
@@ -12185,6 +12933,24 @@ public class Server {
return false;
}
+ boolean this_present_id = true && this.isSetId();
+ boolean that_present_id = true && that.isSetId();
+ if (this_present_id || that_present_id) {
+ if (!(this_present_id && that_present_id))
+ return false;
+ if (!this.id.equals(that.id))
+ return false;
+ }
+
+ boolean this_present_version = true && this.isSetVersion();
+ boolean that_present_version = true && that.isSetVersion();
+ if (this_present_version || that_present_version) {
+ if (!(this_present_version && that_present_version))
+ return false;
+ if (!this.version.equals(that.version))
+ return false;
+ }
+
return true;
}
@@ -12261,6 +13027,26 @@ public class Server {
return lastComparison;
}
}
+ lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetId()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetVersion()).compareTo(other.isSetVersion());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetVersion()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.version, other.version);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
return 0;
}
@@ -12312,6 +13098,22 @@ public class Server {
sb.append("cpu:");
sb.append(this.cpu);
first = false;
+ if (!first) sb.append(", ");
+ sb.append("id:");
+ if (this.id == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.id);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("version:");
+ if (this.version == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.version);
+ }
+ first = false;
sb.append(")");
return sb.toString();
}
@@ -12405,6 +13207,22 @@ public class Server {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
+ case -7: // ID
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.id = iprot.readString();
+ struct.setIdIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -8: // VERSION
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.version = iprot.readString();
+ struct.setVersionIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
@@ -12420,6 +13238,16 @@ public class Server {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.version != null) {
+ oprot.writeFieldBegin(VERSION_FIELD_DESC);
+ oprot.writeString(struct.version);
+ oprot.writeFieldEnd();
+ }
+ if (struct.id != null) {
+ oprot.writeFieldBegin(ID_FIELD_DESC);
+ oprot.writeString(struct.id);
+ oprot.writeFieldEnd();
+ }
oprot.writeFieldBegin(CPU_FIELD_DESC);
oprot.writeI64(struct.cpu);
oprot.writeFieldEnd();
@@ -12478,7 +13306,13 @@ public class Server {
if (struct.isSetCpu()) {
optionals.set(5);
}
- oprot.writeBitSet(optionals, 6);
+ if (struct.isSetId()) {
+ optionals.set(6);
+ }
+ if (struct.isSetVersion()) {
+ optionals.set(7);
+ }
+ oprot.writeBitSet(optionals, 8);
if (struct.isSetName()) {
oprot.writeString(struct.name);
}
@@ -12497,12 +13331,18 @@ public class Server {
if (struct.isSetCpu()) {
oprot.writeI64(struct.cpu);
}
+ if (struct.isSetId()) {
+ oprot.writeString(struct.id);
+ }
+ if (struct.isSetVersion()) {
+ oprot.writeString(struct.version);
+ }
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, updateImageData_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(6);
+ BitSet incoming = iprot.readBitSet(8);
if (incoming.get(0)) {
struct.name = iprot.readString();
struct.setNameIsSet(true);
@@ -12527,6 +13367,14 @@ public class Server {
struct.cpu = iprot.readI64();
struct.setCpuIsSet(true);
}
+ if (incoming.get(6)) {
+ struct.id = iprot.readString();
+ struct.setIdIsSet(true);
+ }
+ if (incoming.get(7)) {
+ struct.version = iprot.readString();
+ struct.setVersionIsSet(true);
+ }
}
}
@@ -12886,4 +13734,2870 @@ public class Server {
}
+ public static class getLectureData_args implements org.apache.thrift.TBase<getLectureData_args, getLectureData_args._Fields>, java.io.Serializable, Cloneable, Comparable<getLectureData_args> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLectureData_args");
+
+ private static final org.apache.thrift.protocol.TField LECTURENAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lecturename", org.apache.thrift.protocol.TType.STRING, (short)-1);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new getLectureData_argsStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new getLectureData_argsTupleSchemeFactory());
+ }
+
+ public String lecturename; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ LECTURENAME((short)-1, "lecturename");
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case -1: // LECTURENAME
+ return LECTURENAME;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.LECTURENAME, new org.apache.thrift.meta_data.FieldMetaData("lecturename", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureData_args.class, metaDataMap);
+ }
+
+ public getLectureData_args() {
+ }
+
+ public getLectureData_args(
+ String lecturename)
+ {
+ this();
+ this.lecturename = lecturename;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public getLectureData_args(getLectureData_args other) {
+ if (other.isSetLecturename()) {
+ this.lecturename = other.lecturename;
+ }
+ }
+
+ public getLectureData_args deepCopy() {
+ return new getLectureData_args(this);
+ }
+
+ @Override
+ public void clear() {
+ this.lecturename = null;
+ }
+
+ public String getLecturename() {
+ return this.lecturename;
+ }
+
+ public getLectureData_args setLecturename(String lecturename) {
+ this.lecturename = lecturename;
+ return this;
+ }
+
+ public void unsetLecturename() {
+ this.lecturename = null;
+ }
+
+ /** Returns true if field lecturename is set (has been assigned a value) and false otherwise */
+ public boolean isSetLecturename() {
+ return this.lecturename != null;
+ }
+
+ public void setLecturenameIsSet(boolean value) {
+ if (!value) {
+ this.lecturename = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case LECTURENAME:
+ if (value == null) {
+ unsetLecturename();
+ } else {
+ setLecturename((String)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case LECTURENAME:
+ return getLecturename();
+
+ }
+ throw new IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
+ switch (field) {
+ case LECTURENAME:
+ return isSetLecturename();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof getLectureData_args)
+ return this.equals((getLectureData_args)that);
+ return false;
+ }
+
+ public boolean equals(getLectureData_args that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_lecturename = true && this.isSetLecturename();
+ boolean that_present_lecturename = true && that.isSetLecturename();
+ if (this_present_lecturename || that_present_lecturename) {
+ if (!(this_present_lecturename && that_present_lecturename))
+ return false;
+ if (!this.lecturename.equals(that.lecturename))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return 0;
+ }
+
+ @Override
+ public int compareTo(getLectureData_args other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(isSetLecturename()).compareTo(other.isSetLecturename());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetLecturename()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lecturename, other.lecturename);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("getLectureData_args(");
+ boolean first = true;
+
+ sb.append("lecturename:");
+ if (this.lecturename == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.lecturename);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class getLectureData_argsStandardSchemeFactory implements SchemeFactory {
+ public getLectureData_argsStandardScheme getScheme() {
+ return new getLectureData_argsStandardScheme();
+ }
+ }
+
+ private static class getLectureData_argsStandardScheme extends StandardScheme<getLectureData_args> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureData_args struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case -1: // LECTURENAME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.lecturename = iprot.readString();
+ struct.setLecturenameIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+
+ // check for required fields of primitive type, which can't be checked in the validate method
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureData_args struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.lecturename != null) {
+ oprot.writeFieldBegin(LECTURENAME_FIELD_DESC);
+ oprot.writeString(struct.lecturename);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class getLectureData_argsTupleSchemeFactory implements SchemeFactory {
+ public getLectureData_argsTupleScheme getScheme() {
+ return new getLectureData_argsTupleScheme();
+ }
+ }
+
+ private static class getLectureData_argsTupleScheme extends TupleScheme<getLectureData_args> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, getLectureData_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetLecturename()) {
+ optionals.set(0);
+ }
+ oprot.writeBitSet(optionals, 1);
+ if (struct.isSetLecturename()) {
+ oprot.writeString(struct.lecturename);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, getLectureData_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(1);
+ if (incoming.get(0)) {
+ struct.lecturename = iprot.readString();
+ struct.setLecturenameIsSet(true);
+ }
+ }
+ }
+
+ }
+
+ public static class getLectureData_result implements org.apache.thrift.TBase<getLectureData_result, getLectureData_result._Fields>, java.io.Serializable, Cloneable, Comparable<getLectureData_result> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLectureData_result");
+
+ private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new getLectureData_resultStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new getLectureData_resultTupleSchemeFactory());
+ }
+
+ public Map<String,String> success; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ SUCCESS((short)0, "success");
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 0: // SUCCESS
+ return SUCCESS;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureData_result.class, metaDataMap);
+ }
+
+ public getLectureData_result() {
+ }
+
+ public getLectureData_result(
+ Map<String,String> success)
+ {
+ this();
+ this.success = success;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public getLectureData_result(getLectureData_result other) {
+ if (other.isSetSuccess()) {
+ Map<String,String> __this__success = new HashMap<String,String>(other.success);
+ this.success = __this__success;
+ }
+ }
+
+ public getLectureData_result deepCopy() {
+ return new getLectureData_result(this);
+ }
+
+ @Override
+ public void clear() {
+ this.success = null;
+ }
+
+ public int getSuccessSize() {
+ return (this.success == null) ? 0 : this.success.size();
+ }
+
+ public void putToSuccess(String key, String val) {
+ if (this.success == null) {
+ this.success = new HashMap<String,String>();
+ }
+ this.success.put(key, val);
+ }
+
+ public Map<String,String> getSuccess() {
+ return this.success;
+ }
+
+ public getLectureData_result setSuccess(Map<String,String> success) {
+ this.success = success;
+ return this;
+ }
+
+ public void unsetSuccess() {
+ this.success = null;
+ }
+
+ /** Returns true if field success is set (has been assigned a value) and false otherwise */
+ public boolean isSetSuccess() {
+ return this.success != null;
+ }
+
+ public void setSuccessIsSet(boolean value) {
+ if (!value) {
+ this.success = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case SUCCESS:
+ if (value == null) {
+ unsetSuccess();
+ } else {
+ setSuccess((Map<String,String>)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case SUCCESS:
+ return getSuccess();
+
+ }
+ throw new IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
+ switch (field) {
+ case SUCCESS:
+ return isSetSuccess();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof getLectureData_result)
+ return this.equals((getLectureData_result)that);
+ return false;
+ }
+
+ public boolean equals(getLectureData_result that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_success = true && this.isSetSuccess();
+ boolean that_present_success = true && that.isSetSuccess();
+ if (this_present_success || that_present_success) {
+ if (!(this_present_success && that_present_success))
+ return false;
+ if (!this.success.equals(that.success))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return 0;
+ }
+
+ @Override
+ public int compareTo(getLectureData_result other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetSuccess()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("getLectureData_result(");
+ boolean first = true;
+
+ sb.append("success:");
+ if (this.success == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.success);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class getLectureData_resultStandardSchemeFactory implements SchemeFactory {
+ public getLectureData_resultStandardScheme getScheme() {
+ return new getLectureData_resultStandardScheme();
+ }
+ }
+
+ private static class getLectureData_resultStandardScheme extends StandardScheme<getLectureData_result> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureData_result struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 0: // SUCCESS
+ if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
+ {
+ org.apache.thrift.protocol.TMap _map44 = iprot.readMapBegin();
+ struct.success = new HashMap<String,String>(2*_map44.size);
+ for (int _i45 = 0; _i45 < _map44.size; ++_i45)
+ {
+ String _key46;
+ String _val47;
+ _key46 = iprot.readString();
+ _val47 = iprot.readString();
+ struct.success.put(_key46, _val47);
+ }
+ iprot.readMapEnd();
+ }
+ struct.setSuccessIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+
+ // check for required fields of primitive type, which can't be checked in the validate method
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureData_result struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.success != null) {
+ oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
+ {
+ oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size()));
+ for (Map.Entry<String, String> _iter48 : struct.success.entrySet())
+ {
+ oprot.writeString(_iter48.getKey());
+ oprot.writeString(_iter48.getValue());
+ }
+ oprot.writeMapEnd();
+ }
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class getLectureData_resultTupleSchemeFactory implements SchemeFactory {
+ public getLectureData_resultTupleScheme getScheme() {
+ return new getLectureData_resultTupleScheme();
+ }
+ }
+
+ private static class getLectureData_resultTupleScheme extends TupleScheme<getLectureData_result> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, getLectureData_result struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetSuccess()) {
+ optionals.set(0);
+ }
+ oprot.writeBitSet(optionals, 1);
+ if (struct.isSetSuccess()) {
+ {
+ oprot.writeI32(struct.success.size());
+ for (Map.Entry<String, String> _iter49 : struct.success.entrySet())
+ {
+ oprot.writeString(_iter49.getKey());
+ oprot.writeString(_iter49.getValue());
+ }
+ }
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, getLectureData_result struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(1);
+ if (incoming.get(0)) {
+ {
+ org.apache.thrift.protocol.TMap _map50 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.success = new HashMap<String,String>(2*_map50.size);
+ for (int _i51 = 0; _i51 < _map50.size; ++_i51)
+ {
+ String _key52;
+ String _val53;
+ _key52 = iprot.readString();
+ _val53 = iprot.readString();
+ struct.success.put(_key52, _val53);
+ }
+ }
+ struct.setSuccessIsSet(true);
+ }
+ }
+ }
+
+ }
+
+ public static class updateLecturedata_args implements org.apache.thrift.TBase<updateLecturedata_args, updateLecturedata_args._Fields>, java.io.Serializable, Cloneable, Comparable<updateLecturedata_args> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateLecturedata_args");
+
+ private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)-1);
+ private static final org.apache.thrift.protocol.TField NEW_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("newName", org.apache.thrift.protocol.TType.STRING, (short)-2);
+ private static final org.apache.thrift.protocol.TField SHORTDESC_FIELD_DESC = new org.apache.thrift.protocol.TField("shortdesc", org.apache.thrift.protocol.TType.STRING, (short)-3);
+ private static final org.apache.thrift.protocol.TField DESC_FIELD_DESC = new org.apache.thrift.protocol.TField("desc", org.apache.thrift.protocol.TType.STRING, (short)-4);
+ private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.STRING, (short)-5);
+ private static final org.apache.thrift.protocol.TField END_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("endDate", org.apache.thrift.protocol.TType.STRING, (short)-6);
+ private static final org.apache.thrift.protocol.TField IS_ACTIVE_FIELD_DESC = new org.apache.thrift.protocol.TField("isActive", org.apache.thrift.protocol.TType.BOOL, (short)-7);
+ private static final org.apache.thrift.protocol.TField IMAGENAME_FIELD_DESC = new org.apache.thrift.protocol.TField("imagename", org.apache.thrift.protocol.TType.STRING, (short)-8);
+ private static final org.apache.thrift.protocol.TField FIRSTNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("firstname", org.apache.thrift.protocol.TType.STRING, (short)-9);
+ private static final org.apache.thrift.protocol.TField LASTNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lastname", org.apache.thrift.protocol.TType.STRING, (short)-10);
+ private static final org.apache.thrift.protocol.TField UNIVERSITY_FIELD_DESC = new org.apache.thrift.protocol.TField("university", org.apache.thrift.protocol.TType.STRING, (short)-11);
+ private static final org.apache.thrift.protocol.TField MAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("Mail", org.apache.thrift.protocol.TType.STRING, (short)-12);
+ private static final org.apache.thrift.protocol.TField TEL_FIELD_DESC = new org.apache.thrift.protocol.TField("Tel", org.apache.thrift.protocol.TType.STRING, (short)-13);
+ private static final org.apache.thrift.protocol.TField FAK_FIELD_DESC = new org.apache.thrift.protocol.TField("Fak", org.apache.thrift.protocol.TType.STRING, (short)-14);
+ private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.STRING, (short)-15);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new updateLecturedata_argsStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new updateLecturedata_argsTupleSchemeFactory());
+ }
+
+ public String name; // required
+ public String newName; // required
+ public String shortdesc; // required
+ public String desc; // required
+ public String startDate; // required
+ public String endDate; // required
+ public boolean isActive; // required
+ public String imagename; // required
+ public String firstname; // required
+ public String lastname; // required
+ public String university; // required
+ public String Mail; // required
+ public String Tel; // required
+ public String Fak; // required
+ public String id; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ NAME((short)-1, "name"),
+ NEW_NAME((short)-2, "newName"),
+ SHORTDESC((short)-3, "shortdesc"),
+ DESC((short)-4, "desc"),
+ START_DATE((short)-5, "startDate"),
+ END_DATE((short)-6, "endDate"),
+ IS_ACTIVE((short)-7, "isActive"),
+ IMAGENAME((short)-8, "imagename"),
+ FIRSTNAME((short)-9, "firstname"),
+ LASTNAME((short)-10, "lastname"),
+ UNIVERSITY((short)-11, "university"),
+ MAIL((short)-12, "Mail"),
+ TEL((short)-13, "Tel"),
+ FAK((short)-14, "Fak"),
+ ID((short)-15, "id");
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case -1: // NAME
+ return NAME;
+ case -2: // NEW_NAME
+ return NEW_NAME;
+ case -3: // SHORTDESC
+ return SHORTDESC;
+ case -4: // DESC
+ return DESC;
+ case -5: // START_DATE
+ return START_DATE;
+ case -6: // END_DATE
+ return END_DATE;
+ case -7: // IS_ACTIVE
+ return IS_ACTIVE;
+ case -8: // IMAGENAME
+ return IMAGENAME;
+ case -9: // FIRSTNAME
+ return FIRSTNAME;
+ case -10: // LASTNAME
+ return LASTNAME;
+ case -11: // UNIVERSITY
+ return UNIVERSITY;
+ case -12: // MAIL
+ return MAIL;
+ case -13: // TEL
+ return TEL;
+ case -14: // FAK
+ return FAK;
+ case -15: // ID
+ return ID;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ private static final int __ISACTIVE_ISSET_ID = 0;
+ private byte __isset_bitfield = 0;
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.NEW_NAME, new org.apache.thrift.meta_data.FieldMetaData("newName", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.SHORTDESC, new org.apache.thrift.meta_data.FieldMetaData("shortdesc", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.DESC, new org.apache.thrift.meta_data.FieldMetaData("desc", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.IS_ACTIVE, new org.apache.thrift.meta_data.FieldMetaData("isActive", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
+ tmpMap.put(_Fields.IMAGENAME, new org.apache.thrift.meta_data.FieldMetaData("imagename", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.FIRSTNAME, new org.apache.thrift.meta_data.FieldMetaData("firstname", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.LASTNAME, new org.apache.thrift.meta_data.FieldMetaData("lastname", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.UNIVERSITY, new org.apache.thrift.meta_data.FieldMetaData("university", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("Mail", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.TEL, new org.apache.thrift.meta_data.FieldMetaData("Tel", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.FAK, new org.apache.thrift.meta_data.FieldMetaData("Fak", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateLecturedata_args.class, metaDataMap);
+ }
+
+ public updateLecturedata_args() {
+ }
+
+ public updateLecturedata_args(
+ String name,
+ String newName,
+ String shortdesc,
+ String desc,
+ String startDate,
+ String endDate,
+ boolean isActive,
+ String imagename,
+ String firstname,
+ String lastname,
+ String university,
+ String Mail,
+ String Tel,
+ String Fak,
+ String id)
+ {
+ this();
+ this.name = name;
+ this.newName = newName;
+ this.shortdesc = shortdesc;
+ this.desc = desc;
+ this.startDate = startDate;
+ this.endDate = endDate;
+ this.isActive = isActive;
+ setIsActiveIsSet(true);
+ this.imagename = imagename;
+ this.firstname = firstname;
+ this.lastname = lastname;
+ this.university = university;
+ this.Mail = Mail;
+ this.Tel = Tel;
+ this.Fak = Fak;
+ this.id = id;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public updateLecturedata_args(updateLecturedata_args other) {
+ __isset_bitfield = other.__isset_bitfield;
+ if (other.isSetName()) {
+ this.name = other.name;
+ }
+ if (other.isSetNewName()) {
+ this.newName = other.newName;
+ }
+ if (other.isSetShortdesc()) {
+ this.shortdesc = other.shortdesc;
+ }
+ if (other.isSetDesc()) {
+ this.desc = other.desc;
+ }
+ if (other.isSetStartDate()) {
+ this.startDate = other.startDate;
+ }
+ if (other.isSetEndDate()) {
+ this.endDate = other.endDate;
+ }
+ this.isActive = other.isActive;
+ if (other.isSetImagename()) {
+ this.imagename = other.imagename;
+ }
+ if (other.isSetFirstname()) {
+ this.firstname = other.firstname;
+ }
+ if (other.isSetLastname()) {
+ this.lastname = other.lastname;
+ }
+ if (other.isSetUniversity()) {
+ this.university = other.university;
+ }
+ if (other.isSetMail()) {
+ this.Mail = other.Mail;
+ }
+ if (other.isSetTel()) {
+ this.Tel = other.Tel;
+ }
+ if (other.isSetFak()) {
+ this.Fak = other.Fak;
+ }
+ if (other.isSetId()) {
+ this.id = other.id;
+ }
+ }
+
+ public updateLecturedata_args deepCopy() {
+ return new updateLecturedata_args(this);
+ }
+
+ @Override
+ public void clear() {
+ this.name = null;
+ this.newName = null;
+ this.shortdesc = null;
+ this.desc = null;
+ this.startDate = null;
+ this.endDate = null;
+ setIsActiveIsSet(false);
+ this.isActive = false;
+ this.imagename = null;
+ this.firstname = null;
+ this.lastname = null;
+ this.university = null;
+ this.Mail = null;
+ this.Tel = null;
+ this.Fak = null;
+ this.id = null;
+ }
+
+ public String getName() {
+ return this.name;
+ }
+
+ public updateLecturedata_args setName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ public void unsetName() {
+ this.name = null;
+ }
+
+ /** Returns true if field name is set (has been assigned a value) and false otherwise */
+ public boolean isSetName() {
+ return this.name != null;
+ }
+
+ public void setNameIsSet(boolean value) {
+ if (!value) {
+ this.name = null;
+ }
+ }
+
+ public String getNewName() {
+ return this.newName;
+ }
+
+ public updateLecturedata_args setNewName(String newName) {
+ this.newName = newName;
+ return this;
+ }
+
+ public void unsetNewName() {
+ this.newName = null;
+ }
+
+ /** Returns true if field newName is set (has been assigned a value) and false otherwise */
+ public boolean isSetNewName() {
+ return this.newName != null;
+ }
+
+ public void setNewNameIsSet(boolean value) {
+ if (!value) {
+ this.newName = null;
+ }
+ }
+
+ public String getShortdesc() {
+ return this.shortdesc;
+ }
+
+ public updateLecturedata_args setShortdesc(String shortdesc) {
+ this.shortdesc = shortdesc;
+ return this;
+ }
+
+ public void unsetShortdesc() {
+ this.shortdesc = null;
+ }
+
+ /** Returns true if field shortdesc is set (has been assigned a value) and false otherwise */
+ public boolean isSetShortdesc() {
+ return this.shortdesc != null;
+ }
+
+ public void setShortdescIsSet(boolean value) {
+ if (!value) {
+ this.shortdesc = null;
+ }
+ }
+
+ public String getDesc() {
+ return this.desc;
+ }
+
+ public updateLecturedata_args setDesc(String desc) {
+ this.desc = desc;
+ return this;
+ }
+
+ public void unsetDesc() {
+ this.desc = null;
+ }
+
+ /** Returns true if field desc is set (has been assigned a value) and false otherwise */
+ public boolean isSetDesc() {
+ return this.desc != null;
+ }
+
+ public void setDescIsSet(boolean value) {
+ if (!value) {
+ this.desc = null;
+ }
+ }
+
+ public String getStartDate() {
+ return this.startDate;
+ }
+
+ public updateLecturedata_args setStartDate(String startDate) {
+ this.startDate = startDate;
+ return this;
+ }
+
+ public void unsetStartDate() {
+ this.startDate = null;
+ }
+
+ /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
+ public boolean isSetStartDate() {
+ return this.startDate != null;
+ }
+
+ public void setStartDateIsSet(boolean value) {
+ if (!value) {
+ this.startDate = null;
+ }
+ }
+
+ public String getEndDate() {
+ return this.endDate;
+ }
+
+ public updateLecturedata_args setEndDate(String endDate) {
+ this.endDate = endDate;
+ return this;
+ }
+
+ public void unsetEndDate() {
+ this.endDate = null;
+ }
+
+ /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
+ public boolean isSetEndDate() {
+ return this.endDate != null;
+ }
+
+ public void setEndDateIsSet(boolean value) {
+ if (!value) {
+ this.endDate = null;
+ }
+ }
+
+ public boolean isIsActive() {
+ return this.isActive;
+ }
+
+ public updateLecturedata_args setIsActive(boolean isActive) {
+ this.isActive = isActive;
+ setIsActiveIsSet(true);
+ return this;
+ }
+
+ public void unsetIsActive() {
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISACTIVE_ISSET_ID);
+ }
+
+ /** Returns true if field isActive is set (has been assigned a value) and false otherwise */
+ public boolean isSetIsActive() {
+ return EncodingUtils.testBit(__isset_bitfield, __ISACTIVE_ISSET_ID);
+ }
+
+ public void setIsActiveIsSet(boolean value) {
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISACTIVE_ISSET_ID, value);
+ }
+
+ public String getImagename() {
+ return this.imagename;
+ }
+
+ public updateLecturedata_args setImagename(String imagename) {
+ this.imagename = imagename;
+ return this;
+ }
+
+ public void unsetImagename() {
+ this.imagename = null;
+ }
+
+ /** Returns true if field imagename is set (has been assigned a value) and false otherwise */
+ public boolean isSetImagename() {
+ return this.imagename != null;
+ }
+
+ public void setImagenameIsSet(boolean value) {
+ if (!value) {
+ this.imagename = null;
+ }
+ }
+
+ public String getFirstname() {
+ return this.firstname;
+ }
+
+ public updateLecturedata_args setFirstname(String firstname) {
+ this.firstname = firstname;
+ return this;
+ }
+
+ public void unsetFirstname() {
+ this.firstname = null;
+ }
+
+ /** Returns true if field firstname is set (has been assigned a value) and false otherwise */
+ public boolean isSetFirstname() {
+ return this.firstname != null;
+ }
+
+ public void setFirstnameIsSet(boolean value) {
+ if (!value) {
+ this.firstname = null;
+ }
+ }
+
+ public String getLastname() {
+ return this.lastname;
+ }
+
+ public updateLecturedata_args setLastname(String lastname) {
+ this.lastname = lastname;
+ return this;
+ }
+
+ public void unsetLastname() {
+ this.lastname = null;
+ }
+
+ /** Returns true if field lastname is set (has been assigned a value) and false otherwise */
+ public boolean isSetLastname() {
+ return this.lastname != null;
+ }
+
+ public void setLastnameIsSet(boolean value) {
+ if (!value) {
+ this.lastname = null;
+ }
+ }
+
+ public String getUniversity() {
+ return this.university;
+ }
+
+ public updateLecturedata_args setUniversity(String university) {
+ this.university = university;
+ return this;
+ }
+
+ public void unsetUniversity() {
+ this.university = null;
+ }
+
+ /** Returns true if field university is set (has been assigned a value) and false otherwise */
+ public boolean isSetUniversity() {
+ return this.university != null;
+ }
+
+ public void setUniversityIsSet(boolean value) {
+ if (!value) {
+ this.university = null;
+ }
+ }
+
+ public String getMail() {
+ return this.Mail;
+ }
+
+ public updateLecturedata_args setMail(String Mail) {
+ this.Mail = Mail;
+ return this;
+ }
+
+ public void unsetMail() {
+ this.Mail = null;
+ }
+
+ /** Returns true if field Mail is set (has been assigned a value) and false otherwise */
+ public boolean isSetMail() {
+ return this.Mail != null;
+ }
+
+ public void setMailIsSet(boolean value) {
+ if (!value) {
+ this.Mail = null;
+ }
+ }
+
+ public String getTel() {
+ return this.Tel;
+ }
+
+ public updateLecturedata_args setTel(String Tel) {
+ this.Tel = Tel;
+ return this;
+ }
+
+ public void unsetTel() {
+ this.Tel = null;
+ }
+
+ /** Returns true if field Tel is set (has been assigned a value) and false otherwise */
+ public boolean isSetTel() {
+ return this.Tel != null;
+ }
+
+ public void setTelIsSet(boolean value) {
+ if (!value) {
+ this.Tel = null;
+ }
+ }
+
+ public String getFak() {
+ return this.Fak;
+ }
+
+ public updateLecturedata_args setFak(String Fak) {
+ this.Fak = Fak;
+ return this;
+ }
+
+ public void unsetFak() {
+ this.Fak = null;
+ }
+
+ /** Returns true if field Fak is set (has been assigned a value) and false otherwise */
+ public boolean isSetFak() {
+ return this.Fak != null;
+ }
+
+ public void setFakIsSet(boolean value) {
+ if (!value) {
+ this.Fak = null;
+ }
+ }
+
+ public String getId() {
+ return this.id;
+ }
+
+ public updateLecturedata_args setId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ public void unsetId() {
+ this.id = null;
+ }
+
+ /** Returns true if field id is set (has been assigned a value) and false otherwise */
+ public boolean isSetId() {
+ return this.id != null;
+ }
+
+ public void setIdIsSet(boolean value) {
+ if (!value) {
+ this.id = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case NAME:
+ if (value == null) {
+ unsetName();
+ } else {
+ setName((String)value);
+ }
+ break;
+
+ case NEW_NAME:
+ if (value == null) {
+ unsetNewName();
+ } else {
+ setNewName((String)value);
+ }
+ break;
+
+ case SHORTDESC:
+ if (value == null) {
+ unsetShortdesc();
+ } else {
+ setShortdesc((String)value);
+ }
+ break;
+
+ case DESC:
+ if (value == null) {
+ unsetDesc();
+ } else {
+ setDesc((String)value);
+ }
+ break;
+
+ case START_DATE:
+ if (value == null) {
+ unsetStartDate();
+ } else {
+ setStartDate((String)value);
+ }
+ break;
+
+ case END_DATE:
+ if (value == null) {
+ unsetEndDate();
+ } else {
+ setEndDate((String)value);
+ }
+ break;
+
+ case IS_ACTIVE:
+ if (value == null) {
+ unsetIsActive();
+ } else {
+ setIsActive((Boolean)value);
+ }
+ break;
+
+ case IMAGENAME:
+ if (value == null) {
+ unsetImagename();
+ } else {
+ setImagename((String)value);
+ }
+ break;
+
+ case FIRSTNAME:
+ if (value == null) {
+ unsetFirstname();
+ } else {
+ setFirstname((String)value);
+ }
+ break;
+
+ case LASTNAME:
+ if (value == null) {
+ unsetLastname();
+ } else {
+ setLastname((String)value);
+ }
+ break;
+
+ case UNIVERSITY:
+ if (value == null) {
+ unsetUniversity();
+ } else {
+ setUniversity((String)value);
+ }
+ break;
+
+ case MAIL:
+ if (value == null) {
+ unsetMail();
+ } else {
+ setMail((String)value);
+ }
+ break;
+
+ case TEL:
+ if (value == null) {
+ unsetTel();
+ } else {
+ setTel((String)value);
+ }
+ break;
+
+ case FAK:
+ if (value == null) {
+ unsetFak();
+ } else {
+ setFak((String)value);
+ }
+ break;
+
+ case ID:
+ if (value == null) {
+ unsetId();
+ } else {
+ setId((String)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case NAME:
+ return getName();
+
+ case NEW_NAME:
+ return getNewName();
+
+ case SHORTDESC:
+ return getShortdesc();
+
+ case DESC:
+ return getDesc();
+
+ case START_DATE:
+ return getStartDate();
+
+ case END_DATE:
+ return getEndDate();
+
+ case IS_ACTIVE:
+ return Boolean.valueOf(isIsActive());
+
+ case IMAGENAME:
+ return getImagename();
+
+ case FIRSTNAME:
+ return getFirstname();
+
+ case LASTNAME:
+ return getLastname();
+
+ case UNIVERSITY:
+ return getUniversity();
+
+ case MAIL:
+ return getMail();
+
+ case TEL:
+ return getTel();
+
+ case FAK:
+ return getFak();
+
+ case ID:
+ return getId();
+
+ }
+ throw new IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
+ switch (field) {
+ case NAME:
+ return isSetName();
+ case NEW_NAME:
+ return isSetNewName();
+ case SHORTDESC:
+ return isSetShortdesc();
+ case DESC:
+ return isSetDesc();
+ case START_DATE:
+ return isSetStartDate();
+ case END_DATE:
+ return isSetEndDate();
+ case IS_ACTIVE:
+ return isSetIsActive();
+ case IMAGENAME:
+ return isSetImagename();
+ case FIRSTNAME:
+ return isSetFirstname();
+ case LASTNAME:
+ return isSetLastname();
+ case UNIVERSITY:
+ return isSetUniversity();
+ case MAIL:
+ return isSetMail();
+ case TEL:
+ return isSetTel();
+ case FAK:
+ return isSetFak();
+ case ID:
+ return isSetId();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof updateLecturedata_args)
+ return this.equals((updateLecturedata_args)that);
+ return false;
+ }
+
+ public boolean equals(updateLecturedata_args that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_name = true && this.isSetName();
+ boolean that_present_name = true && that.isSetName();
+ if (this_present_name || that_present_name) {
+ if (!(this_present_name && that_present_name))
+ return false;
+ if (!this.name.equals(that.name))
+ return false;
+ }
+
+ boolean this_present_newName = true && this.isSetNewName();
+ boolean that_present_newName = true && that.isSetNewName();
+ if (this_present_newName || that_present_newName) {
+ if (!(this_present_newName && that_present_newName))
+ return false;
+ if (!this.newName.equals(that.newName))
+ return false;
+ }
+
+ boolean this_present_shortdesc = true && this.isSetShortdesc();
+ boolean that_present_shortdesc = true && that.isSetShortdesc();
+ if (this_present_shortdesc || that_present_shortdesc) {
+ if (!(this_present_shortdesc && that_present_shortdesc))
+ return false;
+ if (!this.shortdesc.equals(that.shortdesc))
+ return false;
+ }
+
+ boolean this_present_desc = true && this.isSetDesc();
+ boolean that_present_desc = true && that.isSetDesc();
+ if (this_present_desc || that_present_desc) {
+ if (!(this_present_desc && that_present_desc))
+ return false;
+ if (!this.desc.equals(that.desc))
+ return false;
+ }
+
+ boolean this_present_startDate = true && this.isSetStartDate();
+ boolean that_present_startDate = true && that.isSetStartDate();
+ if (this_present_startDate || that_present_startDate) {
+ if (!(this_present_startDate && that_present_startDate))
+ return false;
+ if (!this.startDate.equals(that.startDate))
+ return false;
+ }
+
+ boolean this_present_endDate = true && this.isSetEndDate();
+ boolean that_present_endDate = true && that.isSetEndDate();
+ if (this_present_endDate || that_present_endDate) {
+ if (!(this_present_endDate && that_present_endDate))
+ return false;
+ if (!this.endDate.equals(that.endDate))
+ return false;
+ }
+
+ boolean this_present_isActive = true;
+ boolean that_present_isActive = true;
+ if (this_present_isActive || that_present_isActive) {
+ if (!(this_present_isActive && that_present_isActive))
+ return false;
+ if (this.isActive != that.isActive)
+ return false;
+ }
+
+ boolean this_present_imagename = true && this.isSetImagename();
+ boolean that_present_imagename = true && that.isSetImagename();
+ if (this_present_imagename || that_present_imagename) {
+ if (!(this_present_imagename && that_present_imagename))
+ return false;
+ if (!this.imagename.equals(that.imagename))
+ return false;
+ }
+
+ boolean this_present_firstname = true && this.isSetFirstname();
+ boolean that_present_firstname = true && that.isSetFirstname();
+ if (this_present_firstname || that_present_firstname) {
+ if (!(this_present_firstname && that_present_firstname))
+ return false;
+ if (!this.firstname.equals(that.firstname))
+ return false;
+ }
+
+ boolean this_present_lastname = true && this.isSetLastname();
+ boolean that_present_lastname = true && that.isSetLastname();
+ if (this_present_lastname || that_present_lastname) {
+ if (!(this_present_lastname && that_present_lastname))
+ return false;
+ if (!this.lastname.equals(that.lastname))
+ return false;
+ }
+
+ boolean this_present_university = true && this.isSetUniversity();
+ boolean that_present_university = true && that.isSetUniversity();
+ if (this_present_university || that_present_university) {
+ if (!(this_present_university && that_present_university))
+ return false;
+ if (!this.university.equals(that.university))
+ return false;
+ }
+
+ boolean this_present_Mail = true && this.isSetMail();
+ boolean that_present_Mail = true && that.isSetMail();
+ if (this_present_Mail || that_present_Mail) {
+ if (!(this_present_Mail && that_present_Mail))
+ return false;
+ if (!this.Mail.equals(that.Mail))
+ return false;
+ }
+
+ boolean this_present_Tel = true && this.isSetTel();
+ boolean that_present_Tel = true && that.isSetTel();
+ if (this_present_Tel || that_present_Tel) {
+ if (!(this_present_Tel && that_present_Tel))
+ return false;
+ if (!this.Tel.equals(that.Tel))
+ return false;
+ }
+
+ boolean this_present_Fak = true && this.isSetFak();
+ boolean that_present_Fak = true && that.isSetFak();
+ if (this_present_Fak || that_present_Fak) {
+ if (!(this_present_Fak && that_present_Fak))
+ return false;
+ if (!this.Fak.equals(that.Fak))
+ return false;
+ }
+
+ boolean this_present_id = true && this.isSetId();
+ boolean that_present_id = true && that.isSetId();
+ if (this_present_id || that_present_id) {
+ if (!(this_present_id && that_present_id))
+ return false;
+ if (!this.id.equals(that.id))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return 0;
+ }
+
+ @Override
+ public int compareTo(updateLecturedata_args other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetName()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetNewName()).compareTo(other.isSetNewName());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetNewName()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newName, other.newName);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetShortdesc()).compareTo(other.isSetShortdesc());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetShortdesc()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shortdesc, other.shortdesc);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetDesc()).compareTo(other.isSetDesc());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetDesc()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.desc, other.desc);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(other.isSetStartDate());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetStartDate()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, other.startDate);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(other.isSetEndDate());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetEndDate()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, other.endDate);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetIsActive()).compareTo(other.isSetIsActive());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetIsActive()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isActive, other.isActive);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetImagename()).compareTo(other.isSetImagename());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetImagename()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imagename, other.imagename);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetFirstname()).compareTo(other.isSetFirstname());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetFirstname()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.firstname, other.firstname);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetLastname()).compareTo(other.isSetLastname());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetLastname()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastname, other.lastname);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetUniversity()).compareTo(other.isSetUniversity());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetUniversity()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.university, other.university);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetMail()).compareTo(other.isSetMail());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetMail()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Mail, other.Mail);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetTel()).compareTo(other.isSetTel());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetTel()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Tel, other.Tel);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetFak()).compareTo(other.isSetFak());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetFak()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Fak, other.Fak);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetId()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("updateLecturedata_args(");
+ boolean first = true;
+
+ sb.append("name:");
+ if (this.name == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.name);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("newName:");
+ if (this.newName == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.newName);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("shortdesc:");
+ if (this.shortdesc == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.shortdesc);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("desc:");
+ if (this.desc == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.desc);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("startDate:");
+ if (this.startDate == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.startDate);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("endDate:");
+ if (this.endDate == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.endDate);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("isActive:");
+ sb.append(this.isActive);
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("imagename:");
+ if (this.imagename == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.imagename);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("firstname:");
+ if (this.firstname == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.firstname);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("lastname:");
+ if (this.lastname == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.lastname);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("university:");
+ if (this.university == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.university);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("Mail:");
+ if (this.Mail == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.Mail);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("Tel:");
+ if (this.Tel == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.Tel);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("Fak:");
+ if (this.Fak == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.Fak);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("id:");
+ if (this.id == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.id);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
+ __isset_bitfield = 0;
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class updateLecturedata_argsStandardSchemeFactory implements SchemeFactory {
+ public updateLecturedata_argsStandardScheme getScheme() {
+ return new updateLecturedata_argsStandardScheme();
+ }
+ }
+
+ private static class updateLecturedata_argsStandardScheme extends StandardScheme<updateLecturedata_args> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, updateLecturedata_args struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case -1: // NAME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.name = iprot.readString();
+ struct.setNameIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -2: // NEW_NAME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.newName = iprot.readString();
+ struct.setNewNameIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -3: // SHORTDESC
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.shortdesc = iprot.readString();
+ struct.setShortdescIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -4: // DESC
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.desc = iprot.readString();
+ struct.setDescIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -5: // START_DATE
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.startDate = iprot.readString();
+ struct.setStartDateIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -6: // END_DATE
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.endDate = iprot.readString();
+ struct.setEndDateIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -7: // IS_ACTIVE
+ if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
+ struct.isActive = iprot.readBool();
+ struct.setIsActiveIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -8: // IMAGENAME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.imagename = iprot.readString();
+ struct.setImagenameIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -9: // FIRSTNAME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.firstname = iprot.readString();
+ struct.setFirstnameIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -10: // LASTNAME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.lastname = iprot.readString();
+ struct.setLastnameIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -11: // UNIVERSITY
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.university = iprot.readString();
+ struct.setUniversityIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -12: // MAIL
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.Mail = iprot.readString();
+ struct.setMailIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -13: // TEL
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.Tel = iprot.readString();
+ struct.setTelIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -14: // FAK
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.Fak = iprot.readString();
+ struct.setFakIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -15: // ID
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.id = iprot.readString();
+ struct.setIdIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+
+ // check for required fields of primitive type, which can't be checked in the validate method
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, updateLecturedata_args struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.id != null) {
+ oprot.writeFieldBegin(ID_FIELD_DESC);
+ oprot.writeString(struct.id);
+ oprot.writeFieldEnd();
+ }
+ if (struct.Fak != null) {
+ oprot.writeFieldBegin(FAK_FIELD_DESC);
+ oprot.writeString(struct.Fak);
+ oprot.writeFieldEnd();
+ }
+ if (struct.Tel != null) {
+ oprot.writeFieldBegin(TEL_FIELD_DESC);
+ oprot.writeString(struct.Tel);
+ oprot.writeFieldEnd();
+ }
+ if (struct.Mail != null) {
+ oprot.writeFieldBegin(MAIL_FIELD_DESC);
+ oprot.writeString(struct.Mail);
+ oprot.writeFieldEnd();
+ }
+ if (struct.university != null) {
+ oprot.writeFieldBegin(UNIVERSITY_FIELD_DESC);
+ oprot.writeString(struct.university);
+ oprot.writeFieldEnd();
+ }
+ if (struct.lastname != null) {
+ oprot.writeFieldBegin(LASTNAME_FIELD_DESC);
+ oprot.writeString(struct.lastname);
+ oprot.writeFieldEnd();
+ }
+ if (struct.firstname != null) {
+ oprot.writeFieldBegin(FIRSTNAME_FIELD_DESC);
+ oprot.writeString(struct.firstname);
+ oprot.writeFieldEnd();
+ }
+ if (struct.imagename != null) {
+ oprot.writeFieldBegin(IMAGENAME_FIELD_DESC);
+ oprot.writeString(struct.imagename);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldBegin(IS_ACTIVE_FIELD_DESC);
+ oprot.writeBool(struct.isActive);
+ oprot.writeFieldEnd();
+ if (struct.endDate != null) {
+ oprot.writeFieldBegin(END_DATE_FIELD_DESC);
+ oprot.writeString(struct.endDate);
+ oprot.writeFieldEnd();
+ }
+ if (struct.startDate != null) {
+ oprot.writeFieldBegin(START_DATE_FIELD_DESC);
+ oprot.writeString(struct.startDate);
+ oprot.writeFieldEnd();
+ }
+ if (struct.desc != null) {
+ oprot.writeFieldBegin(DESC_FIELD_DESC);
+ oprot.writeString(struct.desc);
+ oprot.writeFieldEnd();
+ }
+ if (struct.shortdesc != null) {
+ oprot.writeFieldBegin(SHORTDESC_FIELD_DESC);
+ oprot.writeString(struct.shortdesc);
+ oprot.writeFieldEnd();
+ }
+ if (struct.newName != null) {
+ oprot.writeFieldBegin(NEW_NAME_FIELD_DESC);
+ oprot.writeString(struct.newName);
+ oprot.writeFieldEnd();
+ }
+ if (struct.name != null) {
+ oprot.writeFieldBegin(NAME_FIELD_DESC);
+ oprot.writeString(struct.name);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class updateLecturedata_argsTupleSchemeFactory implements SchemeFactory {
+ public updateLecturedata_argsTupleScheme getScheme() {
+ return new updateLecturedata_argsTupleScheme();
+ }
+ }
+
+ private static class updateLecturedata_argsTupleScheme extends TupleScheme<updateLecturedata_args> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, updateLecturedata_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetName()) {
+ optionals.set(0);
+ }
+ if (struct.isSetNewName()) {
+ optionals.set(1);
+ }
+ if (struct.isSetShortdesc()) {
+ optionals.set(2);
+ }
+ if (struct.isSetDesc()) {
+ optionals.set(3);
+ }
+ if (struct.isSetStartDate()) {
+ optionals.set(4);
+ }
+ if (struct.isSetEndDate()) {
+ optionals.set(5);
+ }
+ if (struct.isSetIsActive()) {
+ optionals.set(6);
+ }
+ if (struct.isSetImagename()) {
+ optionals.set(7);
+ }
+ if (struct.isSetFirstname()) {
+ optionals.set(8);
+ }
+ if (struct.isSetLastname()) {
+ optionals.set(9);
+ }
+ if (struct.isSetUniversity()) {
+ optionals.set(10);
+ }
+ if (struct.isSetMail()) {
+ optionals.set(11);
+ }
+ if (struct.isSetTel()) {
+ optionals.set(12);
+ }
+ if (struct.isSetFak()) {
+ optionals.set(13);
+ }
+ if (struct.isSetId()) {
+ optionals.set(14);
+ }
+ oprot.writeBitSet(optionals, 15);
+ if (struct.isSetName()) {
+ oprot.writeString(struct.name);
+ }
+ if (struct.isSetNewName()) {
+ oprot.writeString(struct.newName);
+ }
+ if (struct.isSetShortdesc()) {
+ oprot.writeString(struct.shortdesc);
+ }
+ if (struct.isSetDesc()) {
+ oprot.writeString(struct.desc);
+ }
+ if (struct.isSetStartDate()) {
+ oprot.writeString(struct.startDate);
+ }
+ if (struct.isSetEndDate()) {
+ oprot.writeString(struct.endDate);
+ }
+ if (struct.isSetIsActive()) {
+ oprot.writeBool(struct.isActive);
+ }
+ if (struct.isSetImagename()) {
+ oprot.writeString(struct.imagename);
+ }
+ if (struct.isSetFirstname()) {
+ oprot.writeString(struct.firstname);
+ }
+ if (struct.isSetLastname()) {
+ oprot.writeString(struct.lastname);
+ }
+ if (struct.isSetUniversity()) {
+ oprot.writeString(struct.university);
+ }
+ if (struct.isSetMail()) {
+ oprot.writeString(struct.Mail);
+ }
+ if (struct.isSetTel()) {
+ oprot.writeString(struct.Tel);
+ }
+ if (struct.isSetFak()) {
+ oprot.writeString(struct.Fak);
+ }
+ if (struct.isSetId()) {
+ oprot.writeString(struct.id);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, updateLecturedata_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(15);
+ if (incoming.get(0)) {
+ struct.name = iprot.readString();
+ struct.setNameIsSet(true);
+ }
+ if (incoming.get(1)) {
+ struct.newName = iprot.readString();
+ struct.setNewNameIsSet(true);
+ }
+ if (incoming.get(2)) {
+ struct.shortdesc = iprot.readString();
+ struct.setShortdescIsSet(true);
+ }
+ if (incoming.get(3)) {
+ struct.desc = iprot.readString();
+ struct.setDescIsSet(true);
+ }
+ if (incoming.get(4)) {
+ struct.startDate = iprot.readString();
+ struct.setStartDateIsSet(true);
+ }
+ if (incoming.get(5)) {
+ struct.endDate = iprot.readString();
+ struct.setEndDateIsSet(true);
+ }
+ if (incoming.get(6)) {
+ struct.isActive = iprot.readBool();
+ struct.setIsActiveIsSet(true);
+ }
+ if (incoming.get(7)) {
+ struct.imagename = iprot.readString();
+ struct.setImagenameIsSet(true);
+ }
+ if (incoming.get(8)) {
+ struct.firstname = iprot.readString();
+ struct.setFirstnameIsSet(true);
+ }
+ if (incoming.get(9)) {
+ struct.lastname = iprot.readString();
+ struct.setLastnameIsSet(true);
+ }
+ if (incoming.get(10)) {
+ struct.university = iprot.readString();
+ struct.setUniversityIsSet(true);
+ }
+ if (incoming.get(11)) {
+ struct.Mail = iprot.readString();
+ struct.setMailIsSet(true);
+ }
+ if (incoming.get(12)) {
+ struct.Tel = iprot.readString();
+ struct.setTelIsSet(true);
+ }
+ if (incoming.get(13)) {
+ struct.Fak = iprot.readString();
+ struct.setFakIsSet(true);
+ }
+ if (incoming.get(14)) {
+ struct.id = iprot.readString();
+ struct.setIdIsSet(true);
+ }
+ }
+ }
+
+ }
+
+ public static class updateLecturedata_result implements org.apache.thrift.TBase<updateLecturedata_result, updateLecturedata_result._Fields>, java.io.Serializable, Cloneable, Comparable<updateLecturedata_result> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateLecturedata_result");
+
+ private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new updateLecturedata_resultStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new updateLecturedata_resultTupleSchemeFactory());
+ }
+
+ public boolean success; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ SUCCESS((short)0, "success");
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 0: // SUCCESS
+ return SUCCESS;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ private static final int __SUCCESS_ISSET_ID = 0;
+ private byte __isset_bitfield = 0;
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateLecturedata_result.class, metaDataMap);
+ }
+
+ public updateLecturedata_result() {
+ }
+
+ public updateLecturedata_result(
+ boolean success)
+ {
+ this();
+ this.success = success;
+ setSuccessIsSet(true);
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public updateLecturedata_result(updateLecturedata_result other) {
+ __isset_bitfield = other.__isset_bitfield;
+ this.success = other.success;
+ }
+
+ public updateLecturedata_result deepCopy() {
+ return new updateLecturedata_result(this);
+ }
+
+ @Override
+ public void clear() {
+ setSuccessIsSet(false);
+ this.success = false;
+ }
+
+ public boolean isSuccess() {
+ return this.success;
+ }
+
+ public updateLecturedata_result setSuccess(boolean success) {
+ this.success = success;
+ setSuccessIsSet(true);
+ return this;
+ }
+
+ public void unsetSuccess() {
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
+ }
+
+ /** Returns true if field success is set (has been assigned a value) and false otherwise */
+ public boolean isSetSuccess() {
+ return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
+ }
+
+ public void setSuccessIsSet(boolean value) {
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case SUCCESS:
+ if (value == null) {
+ unsetSuccess();
+ } else {
+ setSuccess((Boolean)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case SUCCESS:
+ return Boolean.valueOf(isSuccess());
+
+ }
+ throw new IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
+ switch (field) {
+ case SUCCESS:
+ return isSetSuccess();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof updateLecturedata_result)
+ return this.equals((updateLecturedata_result)that);
+ return false;
+ }
+
+ public boolean equals(updateLecturedata_result that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_success = true;
+ boolean that_present_success = true;
+ if (this_present_success || that_present_success) {
+ if (!(this_present_success && that_present_success))
+ return false;
+ if (this.success != that.success)
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return 0;
+ }
+
+ @Override
+ public int compareTo(updateLecturedata_result other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetSuccess()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("updateLecturedata_result(");
+ boolean first = true;
+
+ sb.append("success:");
+ sb.append(this.success);
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
+ __isset_bitfield = 0;
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class updateLecturedata_resultStandardSchemeFactory implements SchemeFactory {
+ public updateLecturedata_resultStandardScheme getScheme() {
+ return new updateLecturedata_resultStandardScheme();
+ }
+ }
+
+ private static class updateLecturedata_resultStandardScheme extends StandardScheme<updateLecturedata_result> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, updateLecturedata_result struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 0: // SUCCESS
+ if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
+ struct.success = iprot.readBool();
+ struct.setSuccessIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+
+ // check for required fields of primitive type, which can't be checked in the validate method
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, updateLecturedata_result struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.isSetSuccess()) {
+ oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
+ oprot.writeBool(struct.success);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class updateLecturedata_resultTupleSchemeFactory implements SchemeFactory {
+ public updateLecturedata_resultTupleScheme getScheme() {
+ return new updateLecturedata_resultTupleScheme();
+ }
+ }
+
+ private static class updateLecturedata_resultTupleScheme extends TupleScheme<updateLecturedata_result> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, updateLecturedata_result struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetSuccess()) {
+ optionals.set(0);
+ }
+ oprot.writeBitSet(optionals, 1);
+ if (struct.isSetSuccess()) {
+ oprot.writeBool(struct.success);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, updateLecturedata_result struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(1);
+ if (incoming.get(0)) {
+ struct.success = iprot.readBool();
+ struct.setSuccessIsSet(true);
+ }
+ }
+ }
+
+ }
+
}
diff --git a/Dozentenmodulserver/src/server/ServerHandler.java b/Dozentenmodulserver/src/server/ServerHandler.java
index 750943ed..9474d942 100644
--- a/Dozentenmodulserver/src/server/ServerHandler.java
+++ b/Dozentenmodulserver/src/server/ServerHandler.java
@@ -15,10 +15,14 @@ import java.util.List;
import java.util.Map;
import java.util.UUID;
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.transform.TransformerException;
+
import org.apache.commons.io.FileUtils;
import org.apache.thrift.TException;
import sql.SQL;
+import util.XMLCreator;
public class ServerHandler implements Server.Iface {
@@ -65,21 +69,26 @@ public class ServerHandler implements Server.Iface {
}
@Override
- public List<String> getImages() throws TException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public String getPathOfImage(String name) throws TException {
- // TODO Auto-generated method stub
+ public String getPathOfImage(String image_id, String version) throws TException {
+
+ try {
+ ResultSet rs=sql.getPathOfImage(con, image_id, version);
+ System.out.println("Path SQL erfolgreich");
+ rs.next();
+ System.out.println(rs.getString("image_path"));
+ return rs.getString("image_path");
+ } catch (SQLException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+
return null;
}
@Override
public boolean writeVLdata(String imagename, String firstname,
String lastname, String university, String Mail, String Tel,
- String Fak, boolean license, boolean internet, long ram, long cpu)
+ String Fak, boolean license, boolean internet, long ram, long cpu, String imagePath)
throws TException {
String login="tete";
@@ -87,8 +96,8 @@ public class ServerHandler implements Server.Iface {
int pk_person=sql.setPerson(con, login, lastname, firstname, Mail, new Date(), pk_institution);
- sql.setImageData(con, pk_person, license, internet, cpu, ram, imagename);
-
+ sql.setImageData(con, pk_person, license, internet, cpu, ram, imagename, imagePath);
+
// TODO Auto-generated method stub
return true;
}
@@ -104,7 +113,7 @@ public class ServerHandler implements Server.Iface {
while(res.next())
{
- list.add(new Image(res.getString("image_name"),res.getString("cond_hasLicenseRestriction"),res.getString("name"),res.getString("lecture"),res.getString("image_update_time"),res.getString("user")));
+ list.add(new Image(res.getString("GUID_imageID"),res.getString("imageVersion"),res.getString("image_name"),res.getString("cond_hasLicenseRestriction"),res.getString("name"),res.getString("lecture"),res.getString("image_update_time"),res.getString("user")));
}
@@ -189,7 +198,20 @@ public class ServerHandler implements Server.Iface {
System.out.println(startDate);
sql.setLectureData(con, pk_person, pk_image, imageversion, name, desc, shortdesc, startDate, endDate, isActive);
-
+ XMLCreator xml=new XMLCreator(con, name);
+ try {
+ xml.create(name);
+ System.out.println(new Date() + " - Creator beendet");
+ } catch (SQLException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ } catch (ParserConfigurationException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ } catch (TransformerException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
return false;
}
@@ -199,6 +221,7 @@ public class ServerHandler implements Server.Iface {
System.out.println("Vor Move" +new Date());
try {
+ //der übergebene Filename ist falsch - hier muss der generierte name geholt werden, nicht der ursprüngliche name. wo wird dieser eingelesen?
FileUtils.moveFile(tmpFile, new File("141.79.128.103:/srv/nfs4slx/"+tmpFile.getName()));
} catch (IOException e) {
// TODO Auto-generated catch block
@@ -211,15 +234,16 @@ public class ServerHandler implements Server.Iface {
@Override
- public Map<String, String> getImageData(String imagename) throws TException {
- System.out.println("test:"+imagename);
- ResultSet data=sql.getImageData(con, imagename);
+ public Map<String, String> getImageData(String imageid, String imageversion) throws TException {
+
+ ResultSet data=sql.getImageData(con, imageid, imageversion);
Map<String,String> map=new HashMap<String, String>();
try {
while(data.next())
{
System.out.println(data.getString("cond_hasInternetRestriction")+data.getString("cond_hasLicenseRestriction")+data.getString("cond_minCPUs")+data.getString("cond_minRAM"));
+ map.put("name",data.getString("image_name"));
map.put("internet", data.getString("cond_hasInternetRestriction"));
map.put("license", data.getString("cond_hasLicenseRestriction"));
map.put("cpu", data.getString("cond_minCPUs"));
@@ -239,11 +263,70 @@ public class ServerHandler implements Server.Iface {
@Override
public boolean updateImageData(String name, String newName,boolean license,
- boolean internet, long ram, long cpu) throws TException {
+ boolean internet, long ram, long cpu,String id, String version) throws TException {
System.out.println("Server: Vor Update");
- sql.UpdateImageData(con, name, newName ,license, internet, cpu, ram);
+ sql.UpdateImageData(con, name, newName ,license, internet, cpu, ram, id, version);
System.out.println("Update erfolgreich");
return false;
}
+
+ @Override
+ public Map<String, String> getLectureData(String lecturename)
+ throws TException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+
+ @Override
+ public List<Lecture> getLectureList() throws TException {
+ ResultSet res=sql.getLectureList(con);
+
+ List<Lecture> list = new ArrayList<Lecture>();
+
+ try {
+
+ while(res.next())
+ {
+
+ list.add(new Lecture(res.getString("lectureID"), res.getString("name"), res.getString("isActive"), res.getString("startTime"), res.getString("endTime"), res.getString("lastUsed"), res.getString("description"), res.getString("image_name"), res.getString("user")));
+
+ }
+
+
+ return list;
+ } catch (SQLException e1) {
+ // TODO Auto-generated catch block
+ e1.printStackTrace();
+ }
+
+ return null;
+ }
+
+
+ @Override
+ public boolean updateLecturedata(String name, String newName,
+ String shortdesc, String desc, String startDate, String endDate,
+ boolean isActive, String imagename, String firstname,
+ String lastname, String university, String Mail, String Tel,
+ String Fak, String id) throws TException {
+ int pk_image=0;
+ int imageversion=0;
+ ResultSet image=sql.getImageIDandVersion(con, imagename);
+
+ try {
+ while(image.next())
+ {
+ pk_image=image.getInt("GUID_imageID");
+ imageversion=image.getInt("imageVersion");
+ }
+ } catch (SQLException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ sql.updateLectureData(con, pk_image, imageversion, lastname, newName, desc, shortdesc, startDate, endDate, isActive, id);
+ return false;
+ }
+
}
diff --git a/Dozentenmodulserver/src/server/User.java b/Dozentenmodulserver/src/server/User.java
index 5fd2f983..7bf98cc4 100644
--- a/Dozentenmodulserver/src/server/User.java
+++ b/Dozentenmodulserver/src/server/User.java
@@ -5,6 +5,7 @@
* @generated
*/
package server;
+
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;
diff --git a/Dozentenmodulserver/src/server/startServer.java b/Dozentenmodulserver/src/server/startServer.java
index 46b9a2f1..e1ab22c0 100644
--- a/Dozentenmodulserver/src/server/startServer.java
+++ b/Dozentenmodulserver/src/server/startServer.java
@@ -1,6 +1,7 @@
package server;
import java.util.ArrayList;
+import java.util.Date;
import java.util.List;
import org.apache.log4j.BasicConfigurator;
@@ -22,7 +23,7 @@ public class startServer {
public static void main(String[] args) {
BasicConfigurator.configure();
- log.info( "Starting Application" );
+ log.info( new Date() + " - starting Application\n" );
Thread t;
t = new Thread(new BinaryListener());
servers.add(t);
@@ -41,7 +42,7 @@ public class startServer {
}
}
}
- log.info( "All Servers shut down, exiting..." );
+ log.info( new Date()+" - all Servers shut down, exiting...\n" );
}
diff --git a/Dozentenmodulserver/src/sql/SQL.java b/Dozentenmodulserver/src/sql/SQL.java
index 2e81116a..27bdc17c 100644
--- a/Dozentenmodulserver/src/sql/SQL.java
+++ b/Dozentenmodulserver/src/sql/SQL.java
@@ -6,306 +6,439 @@ import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.text.DateFormat;
+import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;
+import org.apache.log4j.Logger;
+
+import server.BinaryListener;
public class SQL {
+
+ private static Logger log = Logger.getLogger( BinaryListener.class );
- public Connection getConnection()
- {
+ public Connection getConnection() {
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
} catch (InstantiationException | IllegalAccessException
| ClassNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
- }
+ }
try {
- Connection con=DriverManager.getConnection("jdbc:mysql://127.0.0.1/bwLehrpool?user=root&password=slx-ng-open");
+ Connection con = DriverManager
+ .getConnection("jdbc:mysql://127.0.0.1/bwLehrpool?user=root&password=slx-ng-open");
con.setAutoCommit(false);
+ log.info(new Date() + " - Connection returned to Client.");
return con;
} catch (SQLException e) {
// TODO Auto-generated catch block
+ log.info(new Date() + " - Could not return connection to Client.");
e.printStackTrace();
}
return null;
}
-
- public int writeFTPUser(Connection con,String user, String pass)
- {
+
+ public int writeFTPUser(Connection con, String user, String pass) {
Statement stm;
try {
- stm=con.createStatement();
-
- int ret=stm.executeUpdate("INSERT INTO `bwLehrpool`.`FtpUsers`(`User`,`Password`,`Uid`,`Gid`,`Dir`)VALUES('"+user+"',SHA1('"+pass+"'),'10001','12345','/srv/openslx/nfs/temp');");
+ stm = con.createStatement();
+
+ int ret = stm
+ .executeUpdate("INSERT INTO `bwLehrpool`.`FtpUsers`(`User`,`Password`,`Uid`,`Gid`,`Dir`)VALUES('"
+ + user
+ + "',SHA1('"
+ + pass
+ + "'),'10001','12345','/srv/openslx/nfs/temp');");
con.commit();
+ log.info(new Date() + " - created FTPUser "+user+" : "+pass+".");
return ret;
} catch (SQLException e) {
// TODO Auto-generated catch block
+ log.info(new Date() + " - FTPUser not created.");
e.printStackTrace();
}
return -1;
}
-
- public int DeleteUser(Connection con, String user)
- {
+
+ public int DeleteUser(Connection con, String user) {
Statement stm;
try {
- stm=con.createStatement();
-
- int ret=stm.executeUpdate("DELETE FROM `bwLehrpool`.`FtpUsers` where User like '"+user+"';");
+ stm = con.createStatement();
+
+ int ret = stm
+ .executeUpdate("DELETE FROM `bwLehrpool`.`FtpUsers` where User like '"
+ + user + "';");
con.commit();
+ log.info(new Date() + " - FTPUser "+user+" deleted.");
return ret;
} catch (SQLException e) {
// TODO Auto-generated catch block
+ log.info(new Date() + " - Could not delete FTPUser "+user+".");
e.printStackTrace();
}
return -1;
}
-
- public ResultSet getImage(Connection con)
- {
+
+ public ResultSet getImage(Connection con) {
try {
- Statement stm=con.createStatement();
-
- return stm.executeQuery("SELECT image_name FROM bwLehrpool.m_VLData_imageInfo;");
-
-
+ Statement stm = con.createStatement();
+
+ return stm
+ .executeQuery("SELECT image_name FROM bwLehrpool.m_VLData_imageInfo;");
+
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
-
-
+
return null;
}
- public ResultSet getPathOfImage(Connection con, String image_name)
- {
+ public ResultSet getPathOfImage(Connection con, String image_id,
+ String version) {
try {
- Statement stm=con.createStatement();
-
- return stm.executeQuery("SELECT image_path FROM bwLehrpool.m_VLData_imageInfo where image_name like '"+image_name+"';");
-
-
+ Statement stm = con.createStatement();
+
+ return stm
+ .executeQuery("SELECT image_path FROM bwLehrpool.m_VLData_imageInfo where GUID_imageID='"
+ + image_id
+ + "' and imageVersion='"
+ + version
+ + "';");
+
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
-
-
+
return null;
}
-
- public int setInstitution(Connection con,String university)
- {
+
+ public int setInstitution(Connection con, String university) {
try {
- Statement stm=con.createStatement();
-
-
-
- ResultSet ret=stm.executeQuery("SELECT * FROM bwLehrpool.m_institution where name like'"+university+"';");
- if(ret.next()==false)
- {
- Random rand=new Random();
- int id=rand.nextInt();
- stm.executeUpdate("INSERT INTO `bwLehrpool`.`m_institution`(`institutionID`,`name`)VALUES('"+id+"','"+university+"');");
+ Statement stm = con.createStatement();
+
+ ResultSet ret = stm
+ .executeQuery("SELECT * FROM bwLehrpool.m_institution where name like'"
+ + university + "';");
+ if (ret.next() == false) {
+ Random rand = new Random();
+ int id = rand.nextInt();
+ stm.executeUpdate("INSERT INTO `bwLehrpool`.`m_institution`(`institutionID`,`name`)VALUES('"
+ + id + "','" + university + "');");
con.commit();
- ResultSet rs=stm.executeQuery("SELECT institutionID FROM bwLehrpool.m_institution WHERE name like '"+university+"';");
+ ResultSet rs = stm
+ .executeQuery("SELECT institutionID FROM bwLehrpool.m_institution WHERE name like '"
+ + university + "';");
rs.next();
return rs.getInt("institutionID");
- }
- else
- {
+ } else {
return ret.getInt("institutionID");
}
-
+
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return -1;
}
-
-
-
- public int setPerson(Connection con,String login, String lastname, String firstname, String mail, Date lastlogin,int Institution)
- {
+
+ public int setPerson(Connection con, String login, String lastname,
+ String firstname, String mail, Date lastlogin, int Institution) {
DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
try {
- Statement stm=con.createStatement();
-
- ResultSet ret=stm.executeQuery("SELECT userID FROM bwLehrpool.m_user where Nachname like '"+lastname+"' and Vorname like '"+firstname+"';");
- if(ret.next()==false)
- {
- Random rand=new Random();
- int id=rand.nextInt();
- stm.executeUpdate("INSERT INTO `bwLehrpool`.`m_user`(`userID`,`loginName`,`nachname`,`vorname`,`mail`,`lastLogin`,`institution`)VALUES('"+id+"','Platzhalter','"+lastname+"','"+firstname+"','"+mail+"','"+formatter.format(new Date())+"','"+Institution+"');");
- con.commit();
- ResultSet rs=stm.executeQuery("SELECT userID FROM bwLehrpool.m_user where Nachname like '"+lastname+"' and Vorname like '"+firstname+"';");
- rs.next();
- return rs.getInt("userID");
- }
- else
- {
+ Statement stm = con.createStatement();
+
+ ResultSet ret = stm
+ .executeQuery("SELECT userID FROM bwLehrpool.m_user where Nachname like '"
+ + lastname
+ + "' and Vorname like '"
+ + firstname
+ + "';");
+ if (ret.next() == false) {
+ Random rand = new Random();
+ int id = rand.nextInt();
+ stm.executeUpdate("INSERT INTO `bwLehrpool`.`m_user`(`userID`,`loginName`,`nachname`,`vorname`,`mail`,`lastLogin`,`institution`)VALUES('"
+ + id
+ + "','Platzhalter','"
+ + lastname
+ + "','"
+ + firstname
+ + "','"
+ + mail
+ + "','"
+ + formatter.format(new Date())
+ + "','"
+ + Institution
+ + "');");
+ con.commit();
+ ResultSet rs = stm
+ .executeQuery("SELECT userID FROM bwLehrpool.m_user where Nachname like '"
+ + lastname
+ + "' and Vorname like '"
+ + firstname
+ + "';");
+ rs.next();
+ return rs.getInt("userID");
+ } else {
return ret.getInt("userID");
}
-
+
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return -1;
}
-
- public boolean setImageData(Connection con, int pk_person, boolean license, boolean internet, long cpu, long ram, String imagename)
- {
-
+
+ public boolean setImageData(Connection con, int pk_person, boolean license,
+ boolean internet, long cpu, long ram, String imagename,
+ String imagePath) {
+
DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
-
- int internet_bol=0;
- int license_bol=0;
- if(internet==true)
- {
- internet_bol=1;
+
+ int internet_bol = 0;
+ int license_bol = 0;
+ if (internet == true) {
+ internet_bol = 1;
}
- if(license==true)
- {
- license_bol=1;
+ if (license == true) {
+ license_bol = 1;
}
try {
- Statement stm=con.createStatement();
- Random random=new Random();
- int uid=random.nextInt();
- stm.executeUpdate("INSERT INTO `bwLehrpool`.`m_VLData_imageInfo`(`GUID_imageID`,`imageVersion`,`image_name`,`image_path`,`image_lastCall`,`image_create_time`,`image_update_time`,`image_owner`,`image_change_by`,`rec_create_time`,`rec_change_time`,`rec_owner`,`rec_change_by`,`content_operatingSystem`,`status_isCompressed`,`status_isSecure`,`status_isOptimzed`,`status_isValid`,`status_isReady`,`status_isDeleted`,`status_isLastOfficialVersion`,`cond_hasLicenseRestriction`,`cond_hasInternetRestriction`,`cond_minRAM`,`cond_minCPUs`)VALUES('"+uid+"',1,'"+imagename+"','/srv/openslx/nfs/temp/','"+formatter.format(new Date())+"','"+formatter.format(new Date())+"','"+formatter.format(new Date())+"','"+pk_person+"','"+pk_person+"','"+formatter.format(new Date())+"','"+formatter.format(new Date())+"','"+pk_person+"','"+pk_person+"',1,1,1,1,1,1,0,0,'"+license_bol+"','"+internet_bol+"','"+ram+"','"+cpu+"');");
+ Statement stm = con.createStatement();
+ Random random = new Random();
+ int uid = random.nextInt();
+ stm.executeUpdate("INSERT INTO `bwLehrpool`.`m_VLData_imageInfo`(`GUID_imageID`,`imageVersion`,`image_name`,`image_path`,`image_lastCall`,`image_create_time`,`image_update_time`,`image_owner`,`image_change_by`,`rec_create_time`,`rec_change_time`,`rec_owner`,`rec_change_by`,`content_operatingSystem`,`status_isCompressed`,`status_isSecure`,`status_isOptimzed`,`status_isValid`,`status_isReady`,`status_isDeleted`,`status_isLastOfficialVersion`,`cond_hasLicenseRestriction`,`cond_hasInternetRestriction`,`cond_minRAM`,`cond_minCPUs`)VALUES('"
+ + uid //GUID_imageID
+ + "',1,'" //imageVersion
+ + imagename //image_name
+ + "','"
+ + imagePath //image_path
+ + "','"
+ + formatter.format(new Date()) //image_lastCall
+ + "','"
+ + formatter.format(new Date()) //image_create_time
+ + "','"
+ + formatter.format(new Date()) //image_update_time
+ + "','"
+ + pk_person //image_owner
+ + "','"
+ + pk_person //image_change_by
+ + "','"
+ + formatter.format(new Date()) //rec_create_time
+ + "','"
+ + formatter.format(new Date()) //rec_change_time
+ + "','"
+ + pk_person //rec_owner
+ + "','"
+ + pk_person //rec_change_by
+ + "',0" //content_operatingSystem
+ + ",1" //status_isCompressed
+ + ",1" //status_isSecure
+ + ",1" //status_isOptimzed
+ + ",1" //status_isValid
+ + ",1" //status_isReady
+ + ",0" //status_isDeleted
+ + ",0,'" //status_isLastOfficialVersion
+ + license_bol //cond_hasLicenseRestriction
+ + "','"
+ + internet_bol //cond_hasInternetRestriction
+ + "','"
+ + ram //cond_minRAM
+ + "','"
+ + cpu //cond_minCPUs
+ + "');");
con.commit();
-
+
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return true;
-
+
}
-
- public ResultSet getImageList(Connection con){
+
+ public ResultSet getImageList(Connection con) {
try {
- Statement stm=con.createStatement();
-
- return stm.executeQuery("SELECT vl.image_name, vl.cond_hasLicenseRestriction, os.name, '' as lecture,vl.image_update_time, Concat(u.Nachname,' ',u.Vorname) as user FROM bwLehrpool.m_VLData_imageInfo vl, bwLehrpool.m_operatingSystem os, bwLehrpool.m_user u Where vl.content_operatingSystem=os.operatingSystemID and vl.image_owner=u.userID and vl.image_name not in (SELECT vl.image_name FROM bwLehrpool.m_VLData_imageInfo vl, bwLehrpool.m_operatingSystem os, bwLehrpool.m_VLData_lecture lect, bwLehrpool.m_user u Where vl.content_operatingSystem=os.operatingSystemID and lect.imageID=vl.GUID_imageID and vl.image_owner=u.userID) union SELECT vl.image_name, vl.cond_hasLicenseRestriction, os.name, lect.name as lecture, vl.image_update_time, Concat(u.Nachname,' ',u.Vorname) as user FROM bwLehrpool.m_VLData_imageInfo vl, bwLehrpool.m_operatingSystem os, bwLehrpool.m_VLData_lecture lect, bwLehrpool.m_user u Where vl.content_operatingSystem=os.operatingSystemID and lect.imageID=vl.GUID_imageID and vl.image_owner=u.userID;");
-
-
+ Statement stm = con.createStatement();
+
+ return stm
+ .executeQuery("SELECT vl.GUID_imageID, vl.imageVersion,vl.image_name, vl.cond_hasLicenseRestriction, os.name, '' as lecture,vl.image_update_time, Concat(u.Nachname,' ',u.Vorname) as user FROM bwLehrpool.m_VLData_imageInfo vl, bwLehrpool.m_operatingSystem os, bwLehrpool.m_user u Where vl.content_operatingSystem=os.operatingSystemID and vl.image_owner=u.userID and vl.image_name not in (SELECT vl.image_name FROM bwLehrpool.m_VLData_imageInfo vl, bwLehrpool.m_operatingSystem os, bwLehrpool.m_VLData_lecture lect, bwLehrpool.m_user u Where vl.content_operatingSystem=os.operatingSystemID and lect.imageID=vl.GUID_imageID and vl.image_owner=u.userID) union SELECT vl.GUID_imageID, vl.imageVersion,vl.image_name, vl.cond_hasLicenseRestriction, os.name, lect.name as lecture, vl.image_update_time, Concat(u.Nachname,' ',u.Vorname) as user FROM bwLehrpool.m_VLData_imageInfo vl, bwLehrpool.m_operatingSystem os, bwLehrpool.m_VLData_lecture lect, bwLehrpool.m_user u Where vl.content_operatingSystem=os.operatingSystemID and lect.imageID=vl.GUID_imageID and vl.image_owner=u.userID;");
+
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return null;
}
-
-
- public ResultSet getAllOS(Connection con)
- {
-
-
+
+ public ResultSet getLectureList(Connection con) {
+ try {
+ Statement stm = con.createStatement();
+
+ return stm
+ .executeQuery("SELECT l.lectureID, l.name, l.isActive,l.startTime,l.endTime,l.lastUsed,l.description, i.image_name, concat(u.Nachname,' ',u.Vorname) as user FROM bwLehrpool.m_VLData_lecture l, bwLehrpool.m_VLData_imageInfo i, bwLehrpool.m_user u where i.GUID_imageID=l.imageID and l.admin_owner=u.userID;");
+
+ } catch (SQLException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ return null;
+ }
+
+ public ResultSet getAllOS(Connection con) {
+
try {
- Statement stm=con.createStatement();
- return stm.executeQuery("SELECT name FROM bwLehrpool.m_operatingSystem;");
+ Statement stm = con.createStatement();
+ return stm
+ .executeQuery("SELECT name FROM bwLehrpool.m_operatingSystem;");
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
-
-
return null;
-
+
}
-
- public ResultSet getPersonData(Connection con,String Vorname, String Nachname)
- {
+
+ public ResultSet getPersonData(Connection con, String Vorname,
+ String Nachname) {
try {
- Statement stm=con.createStatement();
- return stm.executeQuery("SELECT u.Nachname, u.Vorname, u.mail, i.name FROM bwLehrpool.m_user u, bwLehrpool.m_institution i where u.Nachname like '"+Nachname+"' and u.Vorname like '"+Vorname+"' and u.institution=i.institutionID;");
+ Statement stm = con.createStatement();
+ return stm
+ .executeQuery("SELECT u.Nachname, u.Vorname, u.mail, i.name FROM bwLehrpool.m_user u, bwLehrpool.m_institution i where u.Nachname like '"
+ + Nachname
+ + "' and u.Vorname like '"
+ + Vorname
+ + "' and u.institution=i.institutionID;");
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return null;
}
-
- public int setLectureData(Connection con, int pk_person, int pk_image,int imageversion, String name, String desc, String shortdesc,String start, String end, boolean isactive)
- {
-
+
+ public int setLectureData(Connection con, int pk_person, int pk_image,
+ int imageversion, String name, String desc, String shortdesc,
+ String start, String end, boolean isactive) {
+
DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
- int active_bol=0;
+ int active_bol = 0;
- if(isactive==true)
- {
- active_bol=1;
+ if (isactive == true) {
+ active_bol = 1;
}
try {
- Statement stm=con.createStatement();
- Random random=new Random();
- int uid=random.nextInt();
- stm.executeUpdate("INSERT INTO `bwLehrpool`.`m_VLData_lecture`(`lectureID`,`name`,`isActive`,`startTime`,`endTime`,`lastUsed`,`shortDescription`,`description`,`imageID`,`imageVersion`,`admin_createTime`,`admin_changeTime`,`admin_owner`,`admin_change_by`)VALUES('"+uid+"','"+name+"','"+active_bol+"','"+start+"','"+end+"','"+formatter.format(new Date())+"','"+shortdesc+"','"+desc+"','"+pk_image+"','"+imageversion+"','"+formatter.format(new Date())+"','"+formatter.format(new Date())+"','"+pk_person+"','"+pk_person+"');");
+ Statement stm = con.createStatement();
+ Random random = new Random();
+ int uid = random.nextInt();
+ stm.executeUpdate("INSERT INTO `bwLehrpool`.`m_VLData_lecture`(`lectureID`,`name`,`isActive`,`startTime`,`endTime`,`lastUsed`,`shortDescription`,`description`,`imageID`,`imageVersion`,`admin_createTime`,`admin_changeTime`,`admin_owner`,`admin_change_by`)VALUES('"
+ + uid
+ + "','"
+ + name
+ + "','"
+ + active_bol
+ + "','"
+ + start
+ + "','"
+ + end
+ + "','"
+ + formatter.format(new Date())
+ + "','"
+ + shortdesc
+ + "','"
+ + desc
+ + "','"
+ + pk_image
+ + "','"
+ + imageversion
+ + "','"
+ + formatter.format(new Date())
+ + "','"
+ + formatter.format(new Date())
+ + "','"
+ + pk_person
+ + "','"
+ + pk_person + "');");
con.commit();
-
+
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return 0;
-
+
}
-
- public ResultSet getImageIDandVersion(Connection con,String name)
- {
+
+ public ResultSet getImageIDandVersion(Connection con, String name) {
try {
- Statement stm=con.createStatement();
- return stm.executeQuery("SELECT GUID_imageID, imageVersion FROM bwLehrpool.m_VLData_imageInfo where image_name like '"+name+"';");
+ Statement stm = con.createStatement();
+ return stm
+ .executeQuery("SELECT GUID_imageID, imageVersion FROM bwLehrpool.m_VLData_imageInfo where image_name like '"
+ + name + "';");
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return null;
}
-
- public ResultSet getImageData(Connection con,String name){
+
+ public ResultSet getImageData(Connection con, String id, String version) {
try {
- Statement stm=con.createStatement();
+ Statement stm = con.createStatement();
System.out.println("Test");
- return stm.executeQuery("SELECT image_name,cond_hasInternetRestriction,cond_hasLicenseRestriction, cond_minCPUs, cond_minRAM FROM bwLehrpool.m_VLData_imageInfo where image_name like '"+name+"';");
+ return stm
+ .executeQuery("SELECT image_name,cond_hasInternetRestriction,cond_hasLicenseRestriction, cond_minCPUs, cond_minRAM FROM bwLehrpool.m_VLData_imageInfo where GUID_imageID = '"
+ + id + "' and imageVersion = '" + version + "' ;");
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return null;
}
-
- public int UpdateImageData(Connection con,String name,String newName,boolean license, boolean internet, long cpu, long ram){
+
+ public int UpdateImageData(Connection con, String name, String newName,
+ boolean license, boolean internet, long cpu, long ram, String id,
+ String version) {
try {
DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
- Statement stm=con.createStatement();
- ResultSet rs=getImageIDandVersion(con, name);
- rs.next();
- System.out.println(rs.getString("GUID_imageID")+"Version"+rs.getString("imageVersion"));
- int newVersion=rs.getInt("imageVersion")+1;
- int internet_bol=0;
- int license_bol=0;
- if(internet==true)
- {
- internet_bol=1;
+ Statement stm = con.createStatement();
+ int newVersion = Integer.parseInt(version) + 1;
+
+ int internet_bol = 0;
+ int license_bol = 0;
+ if (internet == true) {
+ internet_bol = 1;
}
- if(license==true)
- {
- license_bol=1;
+ if (license == true) {
+ license_bol = 1;
}
System.out.println(internet_bol);
System.out.println(license_bol);
- stm.executeUpdate("UPDATE `bwLehrpool`.`m_VLData_imageInfo` SET `imageVersion` = '"+newVersion+"',`image_name` = '"+newName+"',`image_update_time` = '"+formatter.format(new Date())+"',`rec_change_time` = '"+formatter.format(new Date())+"',`cond_hasLicenseRestriction` = '"+license_bol+"',`cond_hasInternetRestriction` = '"+internet_bol+"',`cond_minRAM` = '"+ram+"',`cond_minCPUs` = '"+cpu+"' WHERE `GUID_imageID` = '"+rs.getString("GUID_imageID")+"' AND `imageVersion` = '"+rs.getString("imageVersion")+"';");
+ stm.executeUpdate("UPDATE `bwLehrpool`.`m_VLData_imageInfo` SET `imageVersion` = '"
+ + newVersion
+ + "',`image_name` = '"
+ + newName
+ + "',`image_update_time` = '"
+ + formatter.format(new Date())
+ + "',`rec_change_time` = '"
+ + formatter.format(new Date())
+ + "',`cond_hasLicenseRestriction` = '"
+ + license_bol
+ + "',`cond_hasInternetRestriction` = '"
+ + internet_bol
+ + "',`cond_minRAM` = '"
+ + ram
+ + "',`cond_minCPUs` = '"
+ + cpu
+ + "' WHERE `GUID_imageID` = '"
+ + id
+ + "' AND `imageVersion` = '" + version + "';");
con.commit();
return 0;
} catch (SQLException e) {
@@ -314,4 +447,44 @@ public class SQL {
}
return -1;
}
+
+ public int updateLectureData(Connection con, int pk_image,
+ int imageversion, String name, String newName ,String desc, String shortdesc,
+ String start, String end, boolean isactive, String id) {
+
+ DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
+ int active_bol = 0;
+
+ if (isactive == true) {
+ active_bol = 1;
+ }
+ try {
+ Statement stm = con.createStatement();
+ stm.executeUpdate("UPDATE `bwLehrpool`.`m_VLData_lecture` SET `name` = '"
+ +newName
+ +"',`isActive` = '"
+ +active_bol
+ +"',`startTime` = '"
+ +start
+ +"',`endTime` = '"
+ +end
+ +"',`description` = '"
+ +desc
+ +"',`imageID` = '"
+ +pk_image
+ +"',`imageVersion` = '"
+ +imageversion
+ +"',`admin_changeTime` = '"
+ +formatter.format(new Date())
+ +"'WHERE `lectureID` = '"
+ +id+"';" );
+ con.commit();
+
+ } catch (SQLException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ return 0;
+
+ }
}
diff --git a/Dozentenmodulserver/src/util/XMLCreator.java b/Dozentenmodulserver/src/util/XMLCreator.java
new file mode 100644
index 00000000..111a6337
--- /dev/null
+++ b/Dozentenmodulserver/src/util/XMLCreator.java
@@ -0,0 +1,221 @@
+package util;
+
+import java.io.File;
+import java.sql.Connection;
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.sql.Statement;
+import java.text.DateFormat;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.transform.Transformer;
+import javax.xml.transform.TransformerException;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.transform.stream.StreamResult;
+
+import org.apache.log4j.Logger;
+import org.w3c.dom.Comment;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+
+import server.BinaryListener;
+
+public class XMLCreator {
+
+ /*
+ * This class offers methods to create XML files for the (old) version of
+ * managing VMware *.vmdks
+ */
+
+ private Connection con = null;
+ private Statement st = null;
+ private ResultSet rs = null;
+ private String vmName;
+ private String filePath = "/srv/openslx/nfs/temp/";
+ private String imageName;
+ private String xmlName;
+ private static Logger log = Logger.getLogger( BinaryListener.class );
+
+ // phone param not existing
+ private String query = "SELECT m_VLData_imageInfo.image_path ,vorname, nachname, mail, shortdescription, description, m_operatingSystem.name as os, m_VLData_lecture.admin_changeTime as time, m_VLData_lecture.name as lectureName, m_user.institution as userInstitution, m_user.loginName as loginName, m_institution.name as institutionName "
+ + "FROM bwLehrpool.m_VLData_lecture, bwLehrpool.m_VLData_imageInfo, bwLehrpool.m_user, bwLehrpool.m_operatingSystem, bwLehrpool.m_institution "
+ + "WHERE m_user.userID = m_VLData_lecture.admin_owner "
+ + "AND m_VLData_imageInfo.GUID_imageID = m_VLData_lecture.imageID "
+ + "AND m_VLData_imageInfo.content_operatingSystem = m_operatingSystem.operatingSystemID "
+ + "AND m_user.institution = m_institution.institutionID "
+ + "AND m_VLData_lecture.name = ";
+
+ public XMLCreator(Connection con) {
+ this.con = con;
+ }
+
+ public XMLCreator(Connection con, String vmName) {
+ this.con = con;
+ this.vmName = vmName;
+ }
+
+ public boolean create() throws SQLException, ParserConfigurationException,
+ TransformerException {
+
+ // System.out.println(query);
+
+ if (con == null || vmName == null) {
+ return false;
+ }
+ query += "'" + this.vmName + "';";
+
+ boolean success = startCreation();
+
+ if (success) {
+ return true;
+ }
+ log.info(new Date() + " - Could not create XML-File '"+vmName+"'. Error in create(String vmName).");
+ return false;
+
+ }
+
+ // overload method for dynamic setting of param vmName instead of static
+ // context above
+ public boolean create(String vmName) throws SQLException,
+ ParserConfigurationException, TransformerException {
+ // System.out.println(query);
+
+ if (con == null || vmName == null) {
+ return false;
+ }
+ query += "'" + vmName + "';";
+
+ boolean success = startCreation();
+
+ if (success) {
+ return true;
+ }
+ log.info(new Date() + " - Could not create XML-File '"+vmName+"'. Error in create(String vmName).");
+ return false;
+ }
+
+ private boolean startCreation() throws SQLException,
+ ParserConfigurationException, TransformerException {
+ // get needed data from database
+ st = con.createStatement();
+ rs = st.executeQuery(query);
+ rs.next();
+
+ // factory
+ DocumentBuilderFactory docFactory = DocumentBuilderFactory
+ .newInstance();
+ DocumentBuilder docBuilder = docFactory.newDocumentBuilder();
+
+ // root elements - dynamic content
+ Document doc = docBuilder.newDocument();
+ Element rootElement = doc.createElement("settings");
+ doc.appendChild(rootElement);
+
+ Element entry = doc.createElement("eintrag");
+ rootElement.appendChild(entry);
+
+ Element prio = doc.createElement("priority");
+ entry.appendChild(prio);
+ prio.setAttribute("param", "0");
+
+ Comment fComment = doc.createComment("Diesen Abschnitt ergänzen");
+ entry.appendChild(fComment);
+
+ Element imgName = doc.createElement("image_name");
+ entry.appendChild(imgName);
+ imageName = rs.getString("image_path").substring(
+ rs.getString("image_path").lastIndexOf("/")+1); //+1 um das führende "/" los zu werden
+
+ imgName.setAttribute("param", imageName);
+
+ Element creator = doc.createElement("creator");
+ entry.appendChild(creator);
+ creator.setAttribute("param",
+ (rs.getString("vorname") + " " + rs.getString("nachname")));
+
+ Element email = doc.createElement("email");
+ entry.appendChild(email);
+ email.setAttribute("param", rs.getString("mail"));
+
+ // TODO check whether necessary
+ Element phone = doc.createElement("phone");
+ entry.appendChild(phone);
+ phone.setAttribute("param", "");
+
+ Element shortDesc = doc.createElement("short_description");
+ entry.appendChild(shortDesc);
+ shortDesc.setAttribute("param", rs.getString("lectureName"));
+
+ // TODO append latest change date and time
+ Element longDesc = doc.createElement("long_description");
+ entry.appendChild(longDesc);
+ longDesc.setAttribute("param", rs.getString("description")
+ + "; last update: " + rs.getString("time"));
+
+ Element os = doc.createElement("os");
+ entry.appendChild(os);
+ os.setAttribute("param", rs.getString("os"));
+
+ Comment sComment = doc.createComment("Diesen Abschnitt ergänzen");
+ entry.appendChild(sComment);
+
+ // static content following - second part of xml descriptor
+
+ Element netwParam = doc.createElement("network");
+ entry.appendChild(netwParam);
+ netwParam.setAttribute("param", "nat");
+
+ Element netcParam = doc.createElement("netcard");
+ entry.appendChild(netcParam);
+ netcParam.setAttribute("param", "e1000");
+
+ Element vm = doc.createElement("virtualmachine");
+ entry.appendChild(vm);
+ vm.setAttribute("param", "vmware");
+
+ // TODO Fallunterscheidung
+ Element icon = doc.createElement("icon");
+ entry.appendChild(icon);
+ icon.setAttribute("param", "windows");
+
+ Element active = doc.createElement("active");
+ entry.appendChild(active);
+ active.setAttribute("param", "true");
+
+ Element pools = doc.createElement("pools");
+ entry.appendChild(pools);
+ pools.setAttribute("param", "default");
+
+ Element enable3d = doc.createElement("enable3d");
+ entry.appendChild(enable3d);
+ enable3d.setAttribute("param", "true");
+
+ // write virtual document to file
+ TransformerFactory transformerFactory = TransformerFactory
+ .newInstance();
+ Transformer transformer = transformerFactory.newTransformer();
+ DOMSource source = new DOMSource(doc);
+
+ //Set XML-filename
+ DateFormat formatter = new SimpleDateFormat("yyyMMddhhmmss");
+ xmlName=formatter.format(new Date()) + "_" + rs.getString("institutionName") + "_" + rs.getString("loginName") + "_" + rs.getString("lectureName") + ".xml";
+
+ //Write file
+ StreamResult result = new StreamResult(new File(filePath+ xmlName)); // see filepath at top of class
+
+ transformer.transform(source, result);
+
+ // cleanup
+ rs.close();
+ st.close();
+
+ // return
+ log.info(new Date() + " - XML-File '"+xmlName+"' successfully created.");
+ return true;
+ }
+}
diff --git a/Dozentenmodulserver/thrift/server.thrift b/Dozentenmodulserver/thrift/server.thrift
index 64bc64d2..2bcc9ba1 100644
--- a/Dozentenmodulserver/thrift/server.thrift
+++ b/Dozentenmodulserver/thrift/server.thrift
@@ -1,6 +1,8 @@
/**
* Define some namespace/package name for our stuff
*/
+namespace java server
+
typedef i64 int
struct User{
@@ -10,6 +12,8 @@ struct User{
}
struct Image{
+ string id,
+ string version,
string imageName,
string licenseRestriction,
string osName,
@@ -17,17 +21,30 @@ struct Image{
string updateTime,
string userData,
}
+struct Lecture{
+ string id,
+ string lecturename,
+ string isActive,
+ string starttime,
+ string endtime,
+ string lastused,
+ string desc,
+ string imagename,
+ string username,
+}
service Server{
User getFtpUser(),
int DeleteFtpUser(string user),
- list<string> getImages(),
- string getPathOfImage(string name),
- bool writeVLdata(string imagename, string firstname, string lastname,string university, string Mail, string Tel, string Fak, bool license, bool internet, int ram, int cpu),
+ string getPathOfImage(string image_id,string version),
+ bool writeVLdata(string imagename, string firstname, string lastname,string university, string Mail, string Tel, string Fak, bool license, bool internet, int ram, int cpu, string imagePath),
list<Image> getImageList(),
+ list<Lecture> getLectureList(),
list<string> getAllOS(),
map<string,string> getPersonData(string Vorname, string Nachname),
bool writeLecturedata(string name, string shortdesc, string desc,string startDate, string endDate, bool isActive, string imagename,string firstname,string lastname, string university, string Mail, string Tel,string Fak),
bool startFileCopy(string file),
- map<string,string> getImageData(string imagename),
- bool updateImageData(string name, string newName,bool license, bool internet, int ram,int cpu),
+ map<string,string> getImageData(string imageid, string imageversion),
+ bool updateImageData(string name, string newName,bool license, bool internet, int ram,int cpu, string id, string version),
+ map<string,string> getLectureData(string lecturename),
+ bool updateLecturedata(string name, string newName ,string shortdesc, string desc,string startDate, string endDate, bool isActive, string imagename,string firstname,string lastname, string university, string Mail, string Tel,string Fak, string id),
} \ No newline at end of file