summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Dozentenmodul/.classpath11
-rw-r--r--Dozentenmodul/bin/GUI/AddOS$1.classbin1814 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/AddOS$2.classbin615 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/AddOS.classbin4661 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/AddSoftware$1.classbin1862 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/AddSoftware$2.classbin651 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/AddSoftware.classbin4449 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/BillOfRights_GUI$1.classbin680 -> 680 bytes
-rw-r--r--Dozentenmodul/bin/GUI/BillOfRights_GUI$2.classbin799 -> 799 bytes
-rw-r--r--Dozentenmodul/bin/GUI/BillOfRights_GUI$3.classbin929 -> 929 bytes
-rw-r--r--Dozentenmodul/bin/GUI/BillOfRights_GUI.classbin11011 -> 11011 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$1.classbin716 -> 716 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$2.classbin793 -> 793 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$3.classbin1550 -> 1550 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$4.classbin1921 -> 1921 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EditImageAllgemein_GUI.classbin8601 -> 8601 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$1.classbin716 -> 716 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$2.classbin793 -> 793 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$3.classbin1310 -> 1310 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$4.classbin837 -> 837 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EditImageTechnisch_GUI.classbin8349 -> 8349 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$1.classbin734 -> 734 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$2.classbin811 -> 811 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$3.classbin1571 -> 1571 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$4.classbin1948 -> 1948 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI.classbin8298 -> 8298 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$1.classbin734 -> 734 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$2.classbin811 -> 811 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$3.classbin1642 -> 1639 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$4.classbin1622 -> 1619 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI.classbin8391 -> 8391 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeSoftwareDaten$1.classbin701 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeSoftwareDaten$2.classbin1620 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeSoftwareDaten$3.classbin786 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeSoftwareDaten$4.classbin1367 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeSoftwareDaten$5.classbin1367 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeSoftwareDaten$6.classbin980 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeSoftwareDaten$7.classbin962 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeSoftwareDaten.classbin7467 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeSystemDaten$1.classbin689 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeSystemDaten$2.classbin765 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeSystemDaten$3.classbin1745 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeSystemDaten$4.classbin2098 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeSystemDaten.classbin8684 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$1.classbin782 -> 782 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$2.classbin859 -> 859 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$3.classbin1613 -> 1613 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$4.classbin2006 -> 2006 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI.classbin8379 -> 8379 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$1.classbin782 -> 782 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$2.classbin859 -> 859 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$3.classbin1902 -> 1902 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$4.classbin1862 -> 1862 bytes
-rw-r--r--Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI.classbin7857 -> 7746 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/ExtendedSearch_GUI.classbin6286 -> 6375 bytes
-rw-r--r--Dozentenmodul/bin/GUI/FTPDownloader_GUI$1.classbin1245 -> 1266 bytes
-rw-r--r--Dozentenmodul/bin/GUI/FTPDownloader_GUI$2.classbin1211 -> 1211 bytes
-rw-r--r--Dozentenmodul/bin/GUI/FTPDownloader_GUI$3.classbin778 -> 778 bytes
-rw-r--r--Dozentenmodul/bin/GUI/FTPDownloader_GUI$4.classbin1271 -> 1292 bytes
-rw-r--r--Dozentenmodul/bin/GUI/FTPDownloader_GUI.classbin9377 -> 9132 bytes
-rw-r--r--Dozentenmodul/bin/GUI/FTPUploader_GUI$1.classbin738 -> 738 bytes
-rw-r--r--Dozentenmodul/bin/GUI/FTPUploader_GUI$2.classbin1172 -> 1193 bytes
-rw-r--r--Dozentenmodul/bin/GUI/FTPUploader_GUI$3.classbin1312 -> 1312 bytes
-rw-r--r--Dozentenmodul/bin/GUI/FTPUploader_GUI$4.classbin735 -> 735 bytes
-rw-r--r--Dozentenmodul/bin/GUI/FTPUploader_GUI$5.classbin1429 -> 1450 bytes
-rw-r--r--Dozentenmodul/bin/GUI/FTPUploader_GUI.classbin10112 -> 10375 bytes
-rw-r--r--Dozentenmodul/bin/GUI/Freigabe$1.classbin629 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/Freigabe$2.classbin1099 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/Freigabe$3.classbin764 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/Freigabe$4.classbin740 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/Freigabe.classbin6056 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/LinkImage_GUI$1.classbin662 -> 662 bytes
-rw-r--r--Dozentenmodul/bin/GUI/LinkImage_GUI$2.classbin1453 -> 1453 bytes
-rw-r--r--Dozentenmodul/bin/GUI/LinkImage_GUI$3.classbin730 -> 730 bytes
-rw-r--r--Dozentenmodul/bin/GUI/LinkImage_GUI$4.classbin1478 -> 1478 bytes
-rw-r--r--Dozentenmodul/bin/GUI/LinkImage_GUI$5.classbin739 -> 739 bytes
-rw-r--r--Dozentenmodul/bin/GUI/LinkImage_GUI$6.classbin781 -> 781 bytes
-rw-r--r--Dozentenmodul/bin/GUI/LinkImage_GUI$7.classbin2273 -> 2402 bytes
-rw-r--r--Dozentenmodul/bin/GUI/LinkImage_GUI.classbin10743 -> 11187 bytes
-rw-r--r--Dozentenmodul/bin/GUI/Login_GUI$1.classbin708 -> 708 bytes
-rw-r--r--Dozentenmodul/bin/GUI/Login_GUI$2.classbin635 -> 635 bytes
-rw-r--r--Dozentenmodul/bin/GUI/Login_GUI$3.classbin1001 -> 1001 bytes
-rw-r--r--Dozentenmodul/bin/GUI/Login_GUI.classbin3731 -> 3731 bytes
-rw-r--r--Dozentenmodul/bin/GUI/MainMenue_GUI$1.classbin662 -> 662 bytes
-rw-r--r--Dozentenmodul/bin/GUI/MainMenue_GUI$2.classbin729 -> 729 bytes
-rw-r--r--Dozentenmodul/bin/GUI/MainMenue_GUI$3.classbin740 -> 740 bytes
-rw-r--r--Dozentenmodul/bin/GUI/MainMenue_GUI$4.classbin1476 -> 1476 bytes
-rw-r--r--Dozentenmodul/bin/GUI/MainMenue_GUI.classbin7959 -> 7959 bytes
-rw-r--r--Dozentenmodul/bin/GUI/SearchImage_GUI$1.classbin674 -> 674 bytes
-rw-r--r--Dozentenmodul/bin/GUI/SearchImage_GUI$3.classbin742 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/SearchImage_GUI$5.classbin751 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/SearchImage_GUI$6.classbin831 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/SearchImage_GUI$7.classbin793 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/SearchImage_GUI$8.classbin2486 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/SearchImage_GUI.classbin10885 -> 11326 bytes
-rw-r--r--Dozentenmodul/bin/GUI/SearchMethod_GUI$1.classbin680 -> 680 bytes
-rw-r--r--Dozentenmodul/bin/GUI/SearchMethod_GUI$2.classbin757 -> 757 bytes
-rw-r--r--Dozentenmodul/bin/GUI/SearchMethod_GUI$3.classbin797 -> 797 bytes
-rw-r--r--Dozentenmodul/bin/GUI/SearchMethod_GUI$4.classbin965 -> 965 bytes
-rw-r--r--Dozentenmodul/bin/GUI/SearchMethod_GUI.classbin6910 -> 6910 bytes
-rw-r--r--Dozentenmodul/bin/GUI/Summary.classbin1130 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/VmWareLink_GUI$1.classbin665 -> 665 bytes
-rw-r--r--Dozentenmodul/bin/GUI/VmWareLink_GUI$2.classbin1126 -> 1126 bytes
-rw-r--r--Dozentenmodul/bin/GUI/VmWareLink_GUI$3.classbin785 -> 785 bytes
-rw-r--r--Dozentenmodul/bin/GUI/VmWareLink_GUI.classbin5127 -> 5127 bytes
-rw-r--r--Dozentenmodul/bin/GUI/searchRohling$1.classbin659 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/searchRohling$2.classbin782 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/searchRohling$3.classbin784 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/searchRohling$4.classbin1011 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/searchRohling$5.classbin930 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/GUI/searchRohling.classbin6592 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/Jsch/scriptExecutor.classbin2560 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/Models/Image.classbin1417 -> 1396 bytes
-rw-r--r--Dozentenmodul/bin/Models/Lecture.classbin1644 -> 1644 bytes
-rw-r--r--Dozentenmodul/bin/Models/person.classbin1882 -> 1882 bytes
-rw-r--r--Dozentenmodul/bin/Models/vm.classbin2060 -> 2060 bytes
-rw-r--r--Dozentenmodul/bin/downloader/FTPException.classbin350 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/ftp/DownloadTask.class (renamed from Dozentenmodul/bin/downloader/DownloadTask.class)bin3881 -> 3839 bytes
-rw-r--r--Dozentenmodul/bin/ftp/FTPException.classbin0 -> 336 bytes
-rw-r--r--Dozentenmodul/bin/ftp/FTPUtility.class (renamed from Dozentenmodul/bin/downloader/FTPUtility.class)bin5174 -> 5153 bytes
-rw-r--r--Dozentenmodul/bin/ftp/UploadTask.class (renamed from Dozentenmodul/bin/downloader/UploadTask.class)bin3420 -> 3378 bytes
-rw-r--r--Dozentenmodul/bin/gui/BillOfRights_GUI$1.classbin0 -> 680 bytes
-rw-r--r--Dozentenmodul/bin/gui/BillOfRights_GUI$2.classbin0 -> 799 bytes
-rw-r--r--Dozentenmodul/bin/gui/BillOfRights_GUI$3.classbin0 -> 929 bytes
-rw-r--r--Dozentenmodul/bin/gui/BillOfRights_GUI.classbin0 -> 11011 bytes
-rw-r--r--Dozentenmodul/bin/gui/EditImageAllgemein_GUI$1.classbin0 -> 716 bytes
-rw-r--r--Dozentenmodul/bin/gui/EditImageAllgemein_GUI$2.classbin0 -> 793 bytes
-rw-r--r--Dozentenmodul/bin/gui/EditImageAllgemein_GUI$3.classbin0 -> 1550 bytes
-rw-r--r--Dozentenmodul/bin/gui/EditImageAllgemein_GUI$4.classbin0 -> 1921 bytes
-rw-r--r--Dozentenmodul/bin/gui/EditImageAllgemein_GUI.classbin0 -> 8601 bytes
-rw-r--r--Dozentenmodul/bin/gui/EditImageTechnisch_GUI$1.classbin0 -> 716 bytes
-rw-r--r--Dozentenmodul/bin/gui/EditImageTechnisch_GUI$2.classbin0 -> 793 bytes
-rw-r--r--Dozentenmodul/bin/gui/EditImageTechnisch_GUI$3.classbin0 -> 1310 bytes
-rw-r--r--Dozentenmodul/bin/gui/EditImageTechnisch_GUI$4.classbin0 -> 837 bytes
-rw-r--r--Dozentenmodul/bin/gui/EditImageTechnisch_GUI.classbin0 -> 8349 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$1.classbin0 -> 734 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$2.classbin0 -> 811 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$3.classbin0 -> 1571 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$4.classbin0 -> 1948 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI.classbin0 -> 8298 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI$1.classbin0 -> 734 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI$2.classbin0 -> 811 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI$3.classbin0 -> 1639 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI$4.classbin0 -> 1619 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI.classbin0 -> 8391 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$1.classbin0 -> 782 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$2.classbin0 -> 859 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$3.classbin0 -> 1613 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$4.classbin0 -> 2006 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI.classbin0 -> 8379 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$1.classbin0 -> 782 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$2.classbin0 -> 859 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$3.classbin0 -> 1902 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$4.classbin0 -> 1862 bytes
-rw-r--r--Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI.classbin0 -> 7746 bytes
-rw-r--r--Dozentenmodul/bin/gui/ExtendedSearch_GUI$1.classbin0 -> 692 bytes
-rw-r--r--Dozentenmodul/bin/gui/ExtendedSearch_GUI$2.classbin0 -> 833 bytes
-rw-r--r--Dozentenmodul/bin/gui/ExtendedSearch_GUI$3.classbin0 -> 813 bytes
-rw-r--r--Dozentenmodul/bin/gui/ExtendedSearch_GUI.classbin0 -> 6375 bytes
-rw-r--r--Dozentenmodul/bin/gui/FTPDownloader_GUI$1.classbin0 -> 1266 bytes
-rw-r--r--Dozentenmodul/bin/gui/FTPDownloader_GUI$2.classbin0 -> 1211 bytes
-rw-r--r--Dozentenmodul/bin/gui/FTPDownloader_GUI$3.classbin0 -> 778 bytes
-rw-r--r--Dozentenmodul/bin/gui/FTPDownloader_GUI$4.classbin0 -> 1292 bytes
-rw-r--r--Dozentenmodul/bin/gui/FTPDownloader_GUI.classbin0 -> 9132 bytes
-rw-r--r--Dozentenmodul/bin/gui/FTPUploader_GUI$1.classbin0 -> 738 bytes
-rw-r--r--Dozentenmodul/bin/gui/FTPUploader_GUI$2.classbin0 -> 1193 bytes
-rw-r--r--Dozentenmodul/bin/gui/FTPUploader_GUI$3.classbin0 -> 1312 bytes
-rw-r--r--Dozentenmodul/bin/gui/FTPUploader_GUI$4.classbin0 -> 735 bytes
-rw-r--r--Dozentenmodul/bin/gui/FTPUploader_GUI$5.classbin0 -> 1450 bytes
-rw-r--r--Dozentenmodul/bin/gui/FTPUploader_GUI.classbin0 -> 10375 bytes
-rw-r--r--Dozentenmodul/bin/gui/LinkImage_GUI$1.classbin0 -> 662 bytes
-rw-r--r--Dozentenmodul/bin/gui/LinkImage_GUI$2.classbin0 -> 1453 bytes
-rw-r--r--Dozentenmodul/bin/gui/LinkImage_GUI$3.classbin0 -> 730 bytes
-rw-r--r--Dozentenmodul/bin/gui/LinkImage_GUI$4.classbin0 -> 1478 bytes
-rw-r--r--Dozentenmodul/bin/gui/LinkImage_GUI$5.classbin0 -> 739 bytes
-rw-r--r--Dozentenmodul/bin/gui/LinkImage_GUI$6.classbin0 -> 781 bytes
-rw-r--r--Dozentenmodul/bin/gui/LinkImage_GUI$7.classbin0 -> 2402 bytes
-rw-r--r--Dozentenmodul/bin/gui/LinkImage_GUI.classbin0 -> 11187 bytes
-rw-r--r--Dozentenmodul/bin/gui/Login_GUI$1.classbin0 -> 708 bytes
-rw-r--r--Dozentenmodul/bin/gui/Login_GUI$2.classbin0 -> 635 bytes
-rw-r--r--Dozentenmodul/bin/gui/Login_GUI$3.classbin0 -> 1001 bytes
-rw-r--r--Dozentenmodul/bin/gui/Login_GUI.classbin0 -> 3731 bytes
-rw-r--r--Dozentenmodul/bin/gui/MainMenue_GUI$1.classbin0 -> 662 bytes
-rw-r--r--Dozentenmodul/bin/gui/MainMenue_GUI$2.classbin0 -> 729 bytes
-rw-r--r--Dozentenmodul/bin/gui/MainMenue_GUI$3.classbin0 -> 740 bytes
-rw-r--r--Dozentenmodul/bin/gui/MainMenue_GUI$4.classbin0 -> 1476 bytes
-rw-r--r--Dozentenmodul/bin/gui/MainMenue_GUI.classbin0 -> 7959 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchImage_GUI$1.classbin0 -> 674 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchImage_GUI$2.class (renamed from Dozentenmodul/bin/GUI/SearchImage_GUI$2.class)bin1467 -> 1467 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchImage_GUI$3.classbin0 -> 742 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchImage_GUI$4.class (renamed from Dozentenmodul/bin/GUI/SearchImage_GUI$4.class)bin1490 -> 1490 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchImage_GUI$5.classbin0 -> 751 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchImage_GUI$6.classbin0 -> 831 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchImage_GUI$7.classbin0 -> 793 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchImage_GUI$8.classbin0 -> 809 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchImage_GUI.classbin0 -> 11326 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchMethod_GUI$1.classbin0 -> 680 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchMethod_GUI$2.classbin0 -> 757 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchMethod_GUI$3.classbin0 -> 797 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchMethod_GUI$4.classbin0 -> 965 bytes
-rw-r--r--Dozentenmodul/bin/gui/SearchMethod_GUI.classbin0 -> 6910 bytes
-rw-r--r--Dozentenmodul/bin/gui/VmWareLink_GUI$1.classbin0 -> 665 bytes
-rw-r--r--Dozentenmodul/bin/gui/VmWareLink_GUI$2.classbin0 -> 1126 bytes
-rw-r--r--Dozentenmodul/bin/gui/VmWareLink_GUI$3.classbin0 -> 785 bytes
-rw-r--r--Dozentenmodul/bin/gui/VmWareLink_GUI.classbin0 -> 5127 bytes
-rw-r--r--Dozentenmodul/bin/models/Image.classbin0 -> 1396 bytes
-rw-r--r--Dozentenmodul/bin/models/Lecture.classbin0 -> 1644 bytes
-rw-r--r--Dozentenmodul/bin/models/person.classbin0 -> 1882 bytes
-rw-r--r--Dozentenmodul/bin/models/user.classbin0 -> 718 bytes
-rw-r--r--Dozentenmodul/bin/models/vm.classbin0 -> 2060 bytes
-rw-r--r--Dozentenmodul/bin/rmi/RmiClientMethods.classbin1314 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/sql/sql.classbin5302 -> 0 bytes
-rw-r--r--Dozentenmodul/bin/thrift/ThriftConnection.classbin0 -> 1427 bytes
-rw-r--r--Dozentenmodul/src/GUI/AddOS.java177
-rw-r--r--Dozentenmodul/src/GUI/AddSoftware.java176
-rw-r--r--Dozentenmodul/src/GUI/BillOfRights_GUI.java2
-rw-r--r--Dozentenmodul/src/GUI/EditImageAllgemein_GUI.java8
-rw-r--r--Dozentenmodul/src/GUI/EditImageTechnisch_GUI.java5
-rw-r--r--Dozentenmodul/src/GUI/EingabeImageAllgemein_GUI.java8
-rw-r--r--Dozentenmodul/src/GUI/EingabeImageTechnisch_GUI.java13
-rw-r--r--Dozentenmodul/src/GUI/EingabeSoftwareDaten.java311
-rw-r--r--Dozentenmodul/src/GUI/EingabeSystemDaten.java311
-rw-r--r--Dozentenmodul/src/GUI/EingabeVeranstaltungAllgemein_GUI.java51
-rw-r--r--Dozentenmodul/src/GUI/EingabeVeranstatlungTechnisch_GUI.java59
-rw-r--r--Dozentenmodul/src/GUI/ExtendedSearch_GUI.java46
-rw-r--r--Dozentenmodul/src/GUI/FTPDownloader_GUI.java43
-rw-r--r--Dozentenmodul/src/GUI/FTPUploader_GUI.java70
-rw-r--r--Dozentenmodul/src/GUI/Freigabe.java226
-rw-r--r--Dozentenmodul/src/GUI/LinkImage_GUI.java140
-rw-r--r--Dozentenmodul/src/GUI/Login_GUI.java2
-rw-r--r--Dozentenmodul/src/GUI/MainMenue_GUI.java2
-rw-r--r--Dozentenmodul/src/GUI/SearchImage_GUI.java162
-rw-r--r--Dozentenmodul/src/GUI/SearchMethod_GUI.java46
-rw-r--r--Dozentenmodul/src/GUI/Summary.java442
-rw-r--r--Dozentenmodul/src/GUI/VmWareLink_GUI.java2
-rw-r--r--Dozentenmodul/src/GUI/searchRohling.java236
-rw-r--r--Dozentenmodul/src/Jsch/scriptExecutor.java61
-rw-r--r--Dozentenmodul/src/Models/Image.java33
-rw-r--r--Dozentenmodul/src/Models/Lecture.java2
-rw-r--r--Dozentenmodul/src/Models/person.java3
-rw-r--r--Dozentenmodul/src/Models/vm.java2
-rw-r--r--Dozentenmodul/src/ftp/DownloadTask.java (renamed from Dozentenmodul/src/downloader/DownloadTask.java)221
-rw-r--r--Dozentenmodul/src/ftp/FTPException.java (renamed from Dozentenmodul/src/downloader/FTPException.java)14
-rw-r--r--Dozentenmodul/src/ftp/FTPUtility.java (renamed from Dozentenmodul/src/downloader/FTPUtility.java)458
-rw-r--r--Dozentenmodul/src/ftp/UploadTask.java (renamed from Dozentenmodul/src/downloader/UploadTask.java)184
-rw-r--r--Dozentenmodul/src/gui/BillOfRights_GUI.java181
-rw-r--r--Dozentenmodul/src/gui/EditImageAllgemein_GUI.java336
-rw-r--r--Dozentenmodul/src/gui/EditImageTechnisch_GUI.java311
-rw-r--r--Dozentenmodul/src/gui/EingabeImageAllgemein_GUI.java337
-rw-r--r--Dozentenmodul/src/gui/EingabeImageTechnisch_GUI.java346
-rw-r--r--Dozentenmodul/src/gui/EingabeVeranstaltungAllgemein_GUI.java338
-rw-r--r--Dozentenmodul/src/gui/EingabeVeranstatlungTechnisch_GUI.java317
-rw-r--r--Dozentenmodul/src/gui/ExtendedSearch_GUI.java233
-rw-r--r--Dozentenmodul/src/gui/FTPDownloader_GUI.java348
-rw-r--r--Dozentenmodul/src/gui/FTPUploader_GUI.java401
-rw-r--r--Dozentenmodul/src/gui/LinkImage_GUI.java433
-rw-r--r--Dozentenmodul/src/gui/Login_GUI.java152
-rw-r--r--Dozentenmodul/src/gui/MainMenue_GUI.java325
-rw-r--r--Dozentenmodul/src/gui/SearchImage_GUI.java420
-rw-r--r--Dozentenmodul/src/gui/SearchMethod_GUI.java243
-rw-r--r--Dozentenmodul/src/gui/VmWareLink_GUI.java190
-rw-r--r--Dozentenmodul/src/models/Image.java43
-rw-r--r--Dozentenmodul/src/models/Lecture.java66
-rw-r--r--Dozentenmodul/src/models/person.java62
-rw-r--r--Dozentenmodul/src/models/user.java22
-rw-r--r--Dozentenmodul/src/models/vm.java69
-rw-r--r--Dozentenmodul/src/rmi/RmiClientMethods.java29
-rw-r--r--Dozentenmodul/src/sql/sql.java189
-rw-r--r--Dozentenmodul/src/thrift/ThriftConnection.java32
-rw-r--r--Dozentenmodulserver/.classpath27
-rw-r--r--Dozentenmodulserver/.project2
-rw-r--r--Dozentenmodulserver/bin/Models/User.classbin905 -> 0 bytes
-rw-r--r--Dozentenmodulserver/bin/server/BinaryListener.classbin0 -> 2110 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Image$ImageStandardScheme.classbin0 -> 3331 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Image$ImageStandardSchemeFactory.classbin0 -> 869 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Image$ImageTupleScheme.classbin0 -> 2712 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Image$ImageTupleSchemeFactory.classbin0 -> 845 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Image$_Fields.classbin0 -> 3248 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Image.classbin0 -> 15192 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncClient$DeleteFtpUser_call.classbin0 -> 3131 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncClient$Factory.classbin0 -> 1442 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncClient$getAllOS_call.classbin0 -> 2993 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncClient$getFtpUser_call.classbin0 -> 2945 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncClient$getImageList_call.classbin0 -> 3021 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncClient$getImages_call.classbin0 -> 3001 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncClient$getPathOfImage_call.classbin0 -> 3157 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncClient$getPersonData_call.classbin0 -> 3333 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncClient$writeLecturedata_call.classbin0 -> 4410 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncClient$writeVLdata_call.classbin0 -> 4135 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncClient.classbin0 -> 6369 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncIface.classbin0 -> 1172 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$DeleteFtpUser$1.classbin0 -> 2969 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$DeleteFtpUser.classbin0 -> 3107 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$getAllOS$1.classbin0 -> 2997 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$getAllOS.classbin0 -> 3062 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$getFtpUser$1.classbin0 -> 2851 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$getFtpUser.classbin0 -> 2996 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImageList$1.classbin0 -> 3021 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImageList.classbin0 -> 3098 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImages$1.classbin0 -> 3006 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImages.classbin0 -> 3075 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$getPathOfImage$1.classbin0 -> 2907 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$getPathOfImage.classbin0 -> 3128 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$getPersonData$1.classbin0 -> 3090 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$getPersonData.classbin0 -> 3301 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$writeLecturedata$1.classbin0 -> 3011 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$writeLecturedata.classbin0 -> 3648 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$writeVLdata$1.classbin0 -> 2966 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor$writeVLdata.classbin0 -> 3446 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$AsyncProcessor.classbin0 -> 2968 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$Client$Factory.classbin0 -> 1411 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$Client.classbin0 -> 10557 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args$DeleteFtpUser_argsStandardScheme.classbin0 -> 2628 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args$DeleteFtpUser_argsStandardSchemeFactory.classbin0 -> 1162 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args$DeleteFtpUser_argsTupleScheme.classbin0 -> 2112 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args$DeleteFtpUser_argsTupleSchemeFactory.classbin0 -> 1138 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args$_Fields.classbin0 -> 3004 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$DeleteFtpUser_args.classbin0 -> 9460 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result$DeleteFtpUser_resultStandardScheme.classbin0 -> 2632 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result$DeleteFtpUser_resultStandardSchemeFactory.classbin0 -> 1194 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result$DeleteFtpUser_resultTupleScheme.classbin0 -> 2088 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result$DeleteFtpUser_resultTupleSchemeFactory.classbin0 -> 1170 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result$_Fields.classbin0 -> 3030 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$DeleteFtpUser_result.classbin0 -> 9823 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$Iface.classbin0 -> 1241 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$Processor$DeleteFtpUser.classbin0 -> 2029 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$Processor$getAllOS.classbin0 -> 1875 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$Processor$getFtpUser.classbin0 -> 1901 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$Processor$getImageList.classbin0 -> 1939 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$Processor$getImages.classbin0 -> 1891 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$Processor$getPathOfImage.classbin0 -> 2014 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$Processor$getPersonData.classbin0 -> 2059 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$Processor$writeLecturedata.classbin0 -> 2563 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$Processor$writeVLdata.classbin0 -> 2346 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$Processor.classbin0 -> 2816 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getAllOS_args$_Fields.classbin0 -> 2848 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getAllOS_args$getAllOS_argsStandardScheme.classbin0 -> 2153 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getAllOS_args$getAllOS_argsStandardSchemeFactory.classbin0 -> 1082 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getAllOS_args$getAllOS_argsTupleScheme.classbin0 -> 1463 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getAllOS_args$getAllOS_argsTupleSchemeFactory.classbin0 -> 1058 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getAllOS_args.classbin0 -> 7328 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getAllOS_result$_Fields.classbin0 -> 2980 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getAllOS_result$getAllOS_resultStandardScheme.classbin0 -> 3464 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getAllOS_result$getAllOS_resultStandardSchemeFactory.classbin0 -> 1114 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getAllOS_result$getAllOS_resultTupleScheme.classbin0 -> 2849 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getAllOS_result$getAllOS_resultTupleSchemeFactory.classbin0 -> 1090 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getAllOS_result.classbin0 -> 10548 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getFtpUser_args$_Fields.classbin0 -> 2868 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getFtpUser_args$getFtpUser_argsStandardScheme.classbin0 -> 2177 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getFtpUser_args$getFtpUser_argsStandardSchemeFactory.classbin0 -> 1114 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getFtpUser_args$getFtpUser_argsTupleScheme.classbin0 -> 1487 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getFtpUser_args$getFtpUser_argsTupleSchemeFactory.classbin0 -> 1090 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getFtpUser_args.classbin0 -> 7400 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getFtpUser_result$_Fields.classbin0 -> 3000 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getFtpUser_result$getFtpUser_resultStandardScheme.classbin0 -> 2624 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getFtpUser_result$getFtpUser_resultStandardSchemeFactory.classbin0 -> 1146 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getFtpUser_result$getFtpUser_resultTupleScheme.classbin0 -> 2111 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getFtpUser_result$getFtpUser_resultTupleSchemeFactory.classbin0 -> 1122 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getFtpUser_result.classbin0 -> 9665 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageList_args$_Fields.classbin0 -> 2888 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageList_args$getImageList_argsStandardScheme.classbin0 -> 2201 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageList_args$getImageList_argsStandardSchemeFactory.classbin0 -> 1146 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageList_args$getImageList_argsTupleScheme.classbin0 -> 1511 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageList_args$getImageList_argsTupleSchemeFactory.classbin0 -> 1122 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageList_args.classbin0 -> 7472 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageList_result$_Fields.classbin0 -> 3020 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageList_result$getImageList_resultStandardScheme.classbin0 -> 3490 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageList_result$getImageList_resultStandardSchemeFactory.classbin0 -> 1178 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageList_result$getImageList_resultTupleScheme.classbin0 -> 2877 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageList_result$getImageList_resultTupleSchemeFactory.classbin0 -> 1154 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImageList_result.classbin0 -> 10892 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImages_args$_Fields.classbin0 -> 2858 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImages_args$getImages_argsStandardScheme.classbin0 -> 2165 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImages_args$getImages_argsStandardSchemeFactory.classbin0 -> 1098 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImages_args$getImages_argsTupleScheme.classbin0 -> 1475 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImages_args$getImages_argsTupleSchemeFactory.classbin0 -> 1074 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImages_args.classbin0 -> 7364 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImages_result$_Fields.classbin0 -> 2990 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImages_result$getImages_resultStandardScheme.classbin0 -> 3472 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImages_result$getImages_resultStandardSchemeFactory.classbin0 -> 1130 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImages_result$getImages_resultTupleScheme.classbin0 -> 2857 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImages_result$getImages_resultTupleSchemeFactory.classbin0 -> 1106 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getImages_result.classbin0 -> 10586 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPathOfImage_args$_Fields.classbin0 -> 3007 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPathOfImage_args$getPathOfImage_argsStandardScheme.classbin0 -> 2640 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPathOfImage_args$getPathOfImage_argsStandardSchemeFactory.classbin0 -> 1178 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPathOfImage_args$getPathOfImage_argsTupleScheme.classbin0 -> 2124 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPathOfImage_args$getPathOfImage_argsTupleSchemeFactory.classbin0 -> 1154 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPathOfImage_args.classbin0 -> 9481 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPathOfImage_result$_Fields.classbin0 -> 3040 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPathOfImage_result$getPathOfImage_resultStandardScheme.classbin0 -> 2670 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPathOfImage_result$getPathOfImage_resultStandardSchemeFactory.classbin0 -> 1210 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPathOfImage_result$getPathOfImage_resultTupleScheme.classbin0 -> 2157 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPathOfImage_result$getPathOfImage_resultTupleSchemeFactory.classbin0 -> 1186 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPathOfImage_result.classbin0 -> 9604 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPersonData_args$_Fields.classbin0 -> 3096 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPersonData_args$getPersonData_argsStandardScheme.classbin0 -> 2815 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPersonData_args$getPersonData_argsStandardSchemeFactory.classbin0 -> 1162 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPersonData_args$getPersonData_argsTupleScheme.classbin0 -> 2278 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPersonData_args$getPersonData_argsTupleSchemeFactory.classbin0 -> 1138 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPersonData_args.classbin0 -> 10760 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPersonData_result$_Fields.classbin0 -> 3030 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPersonData_result$getPersonData_resultStandardScheme.classbin0 -> 3881 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPersonData_result$getPersonData_resultStandardSchemeFactory.classbin0 -> 1194 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPersonData_result$getPersonData_resultTupleScheme.classbin0 -> 3273 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPersonData_result$getPersonData_resultTupleSchemeFactory.classbin0 -> 1170 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$getPersonData_result.classbin0 -> 10572 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeLecturedata_args$_Fields.classbin0 -> 4053 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeLecturedata_args$writeLecturedata_argsStandardScheme.classbin0 -> 4862 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeLecturedata_args$writeLecturedata_argsStandardSchemeFactory.classbin0 -> 1210 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeLecturedata_args$writeLecturedata_argsTupleScheme.classbin0 -> 4056 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeLecturedata_args$writeLecturedata_argsTupleSchemeFactory.classbin0 -> 1186 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeLecturedata_args.classbin0 -> 24604 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeLecturedata_result$_Fields.classbin0 -> 3060 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeLecturedata_result$writeLecturedata_resultStandardScheme.classbin0 -> 2656 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeLecturedata_result$writeLecturedata_resultStandardSchemeFactory.classbin0 -> 1242 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeLecturedata_result$writeLecturedata_resultTupleScheme.classbin0 -> 2113 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeLecturedata_result$writeLecturedata_resultTupleSchemeFactory.classbin0 -> 1218 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeLecturedata_result.classbin0 -> 9835 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeVLdata_args$_Fields.classbin0 -> 3821 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeVLdata_args$writeVLdata_argsStandardScheme.classbin0 -> 4451 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeVLdata_args$writeVLdata_argsStandardSchemeFactory.classbin0 -> 1130 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeVLdata_args$writeVLdata_argsTupleScheme.classbin0 -> 3724 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeVLdata_args$writeVLdata_argsTupleSchemeFactory.classbin0 -> 1106 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeVLdata_args.classbin0 -> 22061 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeVLdata_result$_Fields.classbin0 -> 3010 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeVLdata_result$writeVLdata_resultStandardScheme.classbin0 -> 2596 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeVLdata_result$writeVLdata_resultStandardSchemeFactory.classbin0 -> 1162 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeVLdata_result$writeVLdata_resultTupleScheme.classbin0 -> 2053 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeVLdata_result$writeVLdata_resultTupleSchemeFactory.classbin0 -> 1138 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server$writeVLdata_result.classbin0 -> 9650 bytes
-rw-r--r--Dozentenmodulserver/bin/server/Server.classbin0 -> 1774 bytes
-rw-r--r--Dozentenmodulserver/bin/server/ServerHandler.classbin0 -> 7226 bytes
-rw-r--r--Dozentenmodulserver/bin/server/ServerInterface.classbin1287 -> 0 bytes
-rw-r--r--Dozentenmodulserver/bin/server/ServerMethod.classbin8870 -> 0 bytes
-rw-r--r--Dozentenmodulserver/bin/server/User$UserStandardScheme.classbin0 -> 2737 bytes
-rw-r--r--Dozentenmodulserver/bin/server/User$UserStandardSchemeFactory.classbin0 -> 853 bytes
-rw-r--r--Dozentenmodulserver/bin/server/User$UserTupleScheme.classbin0 -> 2173 bytes
-rw-r--r--Dozentenmodulserver/bin/server/User$UserTupleSchemeFactory.classbin0 -> 829 bytes
-rw-r--r--Dozentenmodulserver/bin/server/User$_Fields.classbin0 -> 2938 bytes
-rw-r--r--Dozentenmodulserver/bin/server/User.classbin0 -> 11240 bytes
-rw-r--r--Dozentenmodulserver/bin/server/startServer.classbin0 -> 1609 bytes
-rw-r--r--Dozentenmodulserver/bin/sql/SQL.classbin9653 -> 9718 bytes
-rw-r--r--Dozentenmodulserver/src/Models/User.java29
-rw-r--r--Dozentenmodulserver/src/server/BinaryListener.java32
-rw-r--r--Dozentenmodulserver/src/server/Image.java880
-rw-r--r--Dozentenmodulserver/src/server/Server.java9820
-rw-r--r--Dozentenmodulserver/src/server/ServerHandler.java204
-rw-r--r--Dozentenmodulserver/src/server/ServerInterface.java24
-rw-r--r--Dozentenmodulserver/src/server/ServerMethod.java269
-rw-r--r--Dozentenmodulserver/src/server/User.java587
-rw-r--r--Dozentenmodulserver/src/server/startServer.java48
-rw-r--r--Dozentenmodulserver/src/sql/SQL.java13
-rw-r--r--Dozentenmodulserver/thrift/server.thrift30
457 files changed, 17592 insertions, 3323 deletions
diff --git a/Dozentenmodul/.classpath b/Dozentenmodul/.classpath
index 966848f9..78464bbf 100644
--- a/Dozentenmodul/.classpath
+++ b/Dozentenmodul/.classpath
@@ -15,6 +15,15 @@
<classpathentry kind="lib" path="lib/swing2swt.jar"/>
<classpathentry kind="lib" path="lib/swt.jar"/>
<classpathentry kind="lib" path="lib/wizard-0.998.1.jar"/>
- <classpathentry combineaccessrules="false" kind="src" path="/Dozentenmodulserver"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/bwLehrpoolSuite_Server"/>
+ <classpathentry kind="lib" path="C:/Users/tspitzer/.m2/repository/org/apache/thrift/libthrift/0.9.1/libthrift-0.9.1.jar">
+ <attributes>
+ <attribute name="maven.pomderived" value="true"/>
+ <attribute name="maven.groupId" value="org.apache.thrift"/>
+ <attribute name="maven.artifactId" value="libthrift"/>
+ <attribute name="maven.version" value="0.9.1"/>
+ <attribute name="maven.scope" value="compile"/>
+ </attributes>
+ </classpathentry>
<classpathentry kind="output" path="bin"/>
</classpath>
diff --git a/Dozentenmodul/bin/GUI/AddOS$1.class b/Dozentenmodul/bin/GUI/AddOS$1.class
deleted file mode 100644
index d0e224c4..00000000
--- a/Dozentenmodul/bin/GUI/AddOS$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/AddOS$2.class b/Dozentenmodul/bin/GUI/AddOS$2.class
deleted file mode 100644
index 360da7c6..00000000
--- a/Dozentenmodul/bin/GUI/AddOS$2.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/AddOS.class b/Dozentenmodul/bin/GUI/AddOS.class
deleted file mode 100644
index 3188cfaf..00000000
--- a/Dozentenmodul/bin/GUI/AddOS.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/AddSoftware$1.class b/Dozentenmodul/bin/GUI/AddSoftware$1.class
deleted file mode 100644
index 5098c2e8..00000000
--- a/Dozentenmodul/bin/GUI/AddSoftware$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/AddSoftware$2.class b/Dozentenmodul/bin/GUI/AddSoftware$2.class
deleted file mode 100644
index f1000277..00000000
--- a/Dozentenmodul/bin/GUI/AddSoftware$2.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/AddSoftware.class b/Dozentenmodul/bin/GUI/AddSoftware.class
deleted file mode 100644
index 7ff4d636..00000000
--- a/Dozentenmodul/bin/GUI/AddSoftware.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/BillOfRights_GUI$1.class b/Dozentenmodul/bin/GUI/BillOfRights_GUI$1.class
index 05b22922..bc461adb 100644
--- a/Dozentenmodul/bin/GUI/BillOfRights_GUI$1.class
+++ b/Dozentenmodul/bin/GUI/BillOfRights_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/BillOfRights_GUI$2.class b/Dozentenmodul/bin/GUI/BillOfRights_GUI$2.class
index dfc23e83..82986708 100644
--- a/Dozentenmodul/bin/GUI/BillOfRights_GUI$2.class
+++ b/Dozentenmodul/bin/GUI/BillOfRights_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/BillOfRights_GUI$3.class b/Dozentenmodul/bin/GUI/BillOfRights_GUI$3.class
index 190722f2..8be5df02 100644
--- a/Dozentenmodul/bin/GUI/BillOfRights_GUI$3.class
+++ b/Dozentenmodul/bin/GUI/BillOfRights_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/BillOfRights_GUI.class b/Dozentenmodul/bin/GUI/BillOfRights_GUI.class
index e40e4c23..5c2fcdb9 100644
--- a/Dozentenmodul/bin/GUI/BillOfRights_GUI.class
+++ b/Dozentenmodul/bin/GUI/BillOfRights_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$1.class b/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$1.class
index 97310c6c..ee7be2bd 100644
--- a/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$1.class
+++ b/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$2.class b/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$2.class
index 27608f81..f6c046d9 100644
--- a/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$2.class
+++ b/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$3.class b/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$3.class
index 3807bbd7..e3137f1d 100644
--- a/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$3.class
+++ b/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$4.class b/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$4.class
index 6c8c0373..de9f7f02 100644
--- a/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$4.class
+++ b/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI.class b/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI.class
index 6cebf7bb..33b53ff7 100644
--- a/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI.class
+++ b/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$1.class b/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$1.class
index 62cc076d..a5f90abf 100644
--- a/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$1.class
+++ b/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$2.class b/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$2.class
index 258ffb22..e0d6b0bb 100644
--- a/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$2.class
+++ b/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$3.class b/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$3.class
index caadfbe2..9e416d61 100644
--- a/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$3.class
+++ b/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$4.class b/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$4.class
index 7ad8ecb2..2c924bfb 100644
--- a/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$4.class
+++ b/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI.class b/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI.class
index 6d064ab1..f6ff8e3f 100644
--- a/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI.class
+++ b/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$1.class b/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$1.class
index 2acc5103..cb46e119 100644
--- a/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$1.class
+++ b/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$2.class b/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$2.class
index 438107e9..2f31d675 100644
--- a/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$2.class
+++ b/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$3.class b/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$3.class
index 7ac1fb57..93093bec 100644
--- a/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$3.class
+++ b/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$4.class b/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$4.class
index d3cc7b54..e0cabe51 100644
--- a/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$4.class
+++ b/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI.class b/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI.class
index 483bb446..34123c90 100644
--- a/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI.class
+++ b/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$1.class b/Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$1.class
index 83868e37..b7b5fc47 100644
--- a/Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$1.class
+++ b/Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$2.class b/Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$2.class
index 256550dd..b237ee04 100644
--- a/Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$2.class
+++ b/Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$3.class b/Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$3.class
index d7512073..2f3bc164 100644
--- a/Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$3.class
+++ b/Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$4.class b/Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$4.class
index 09601747..7237fa6b 100644
--- a/Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$4.class
+++ b/Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI.class b/Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI.class
index a3a80be6..baa9e9f0 100644
--- a/Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI.class
+++ b/Dozentenmodul/bin/GUI/EingabeImageTechnisch_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeSoftwareDaten$1.class b/Dozentenmodul/bin/GUI/EingabeSoftwareDaten$1.class
deleted file mode 100644
index 23850785..00000000
--- a/Dozentenmodul/bin/GUI/EingabeSoftwareDaten$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeSoftwareDaten$2.class b/Dozentenmodul/bin/GUI/EingabeSoftwareDaten$2.class
deleted file mode 100644
index dc238aff..00000000
--- a/Dozentenmodul/bin/GUI/EingabeSoftwareDaten$2.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeSoftwareDaten$3.class b/Dozentenmodul/bin/GUI/EingabeSoftwareDaten$3.class
deleted file mode 100644
index 55184bdc..00000000
--- a/Dozentenmodul/bin/GUI/EingabeSoftwareDaten$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeSoftwareDaten$4.class b/Dozentenmodul/bin/GUI/EingabeSoftwareDaten$4.class
deleted file mode 100644
index 5e5beb26..00000000
--- a/Dozentenmodul/bin/GUI/EingabeSoftwareDaten$4.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeSoftwareDaten$5.class b/Dozentenmodul/bin/GUI/EingabeSoftwareDaten$5.class
deleted file mode 100644
index dd3857ae..00000000
--- a/Dozentenmodul/bin/GUI/EingabeSoftwareDaten$5.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeSoftwareDaten$6.class b/Dozentenmodul/bin/GUI/EingabeSoftwareDaten$6.class
deleted file mode 100644
index cf6a183b..00000000
--- a/Dozentenmodul/bin/GUI/EingabeSoftwareDaten$6.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeSoftwareDaten$7.class b/Dozentenmodul/bin/GUI/EingabeSoftwareDaten$7.class
deleted file mode 100644
index bed98da0..00000000
--- a/Dozentenmodul/bin/GUI/EingabeSoftwareDaten$7.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeSoftwareDaten.class b/Dozentenmodul/bin/GUI/EingabeSoftwareDaten.class
deleted file mode 100644
index 3c161449..00000000
--- a/Dozentenmodul/bin/GUI/EingabeSoftwareDaten.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeSystemDaten$1.class b/Dozentenmodul/bin/GUI/EingabeSystemDaten$1.class
deleted file mode 100644
index 13fa2ff5..00000000
--- a/Dozentenmodul/bin/GUI/EingabeSystemDaten$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeSystemDaten$2.class b/Dozentenmodul/bin/GUI/EingabeSystemDaten$2.class
deleted file mode 100644
index 9c9a52e2..00000000
--- a/Dozentenmodul/bin/GUI/EingabeSystemDaten$2.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeSystemDaten$3.class b/Dozentenmodul/bin/GUI/EingabeSystemDaten$3.class
deleted file mode 100644
index 67f969dd..00000000
--- a/Dozentenmodul/bin/GUI/EingabeSystemDaten$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeSystemDaten$4.class b/Dozentenmodul/bin/GUI/EingabeSystemDaten$4.class
deleted file mode 100644
index f114d20f..00000000
--- a/Dozentenmodul/bin/GUI/EingabeSystemDaten$4.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeSystemDaten.class b/Dozentenmodul/bin/GUI/EingabeSystemDaten.class
deleted file mode 100644
index f49339a7..00000000
--- a/Dozentenmodul/bin/GUI/EingabeSystemDaten.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$1.class b/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$1.class
index 1acab38d..38c70c68 100644
--- a/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$1.class
+++ b/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$2.class b/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$2.class
index e8b1e273..f0bc60c5 100644
--- a/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$2.class
+++ b/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$3.class b/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$3.class
index 1c285411..0893f571 100644
--- a/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$3.class
+++ b/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$4.class b/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$4.class
index 4c2e2062..b750b556 100644
--- a/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$4.class
+++ b/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI.class b/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI.class
index 7af6113a..30234793 100644
--- a/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI.class
+++ b/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$1.class b/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$1.class
index a89afe39..f36b268f 100644
--- a/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$1.class
+++ b/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$2.class b/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$2.class
index 58667d69..385d35b6 100644
--- a/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$2.class
+++ b/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$3.class b/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$3.class
index df097e0a..945432de 100644
--- a/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$3.class
+++ b/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$4.class b/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$4.class
index 071f93e5..2c97bca7 100644
--- a/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$4.class
+++ b/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI.class b/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI.class
index 3d39ff64..0cfa4c75 100644
--- a/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI.class
+++ b/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI.class
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 3a488d1f..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 9ab60749..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 9ef7db7c..00000000
--- a/Dozentenmodul/bin/GUI/ExtendedSearch_GUI$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/ExtendedSearch_GUI.class b/Dozentenmodul/bin/GUI/ExtendedSearch_GUI.class
index b6068b0d..eeb3f65f 100644
--- a/Dozentenmodul/bin/GUI/ExtendedSearch_GUI.class
+++ b/Dozentenmodul/bin/GUI/ExtendedSearch_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/FTPDownloader_GUI$1.class b/Dozentenmodul/bin/GUI/FTPDownloader_GUI$1.class
index 87c4357f..244b88e2 100644
--- a/Dozentenmodul/bin/GUI/FTPDownloader_GUI$1.class
+++ b/Dozentenmodul/bin/GUI/FTPDownloader_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/FTPDownloader_GUI$2.class b/Dozentenmodul/bin/GUI/FTPDownloader_GUI$2.class
index 1a785eec..42a0f970 100644
--- a/Dozentenmodul/bin/GUI/FTPDownloader_GUI$2.class
+++ b/Dozentenmodul/bin/GUI/FTPDownloader_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/FTPDownloader_GUI$3.class b/Dozentenmodul/bin/GUI/FTPDownloader_GUI$3.class
index 0e294890..26910efa 100644
--- a/Dozentenmodul/bin/GUI/FTPDownloader_GUI$3.class
+++ b/Dozentenmodul/bin/GUI/FTPDownloader_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/FTPDownloader_GUI$4.class b/Dozentenmodul/bin/GUI/FTPDownloader_GUI$4.class
index 240d4147..235576d0 100644
--- a/Dozentenmodul/bin/GUI/FTPDownloader_GUI$4.class
+++ b/Dozentenmodul/bin/GUI/FTPDownloader_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/FTPDownloader_GUI.class b/Dozentenmodul/bin/GUI/FTPDownloader_GUI.class
index beba4335..55635a3d 100644
--- a/Dozentenmodul/bin/GUI/FTPDownloader_GUI.class
+++ b/Dozentenmodul/bin/GUI/FTPDownloader_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/FTPUploader_GUI$1.class b/Dozentenmodul/bin/GUI/FTPUploader_GUI$1.class
index 1da4ccf2..3a3714a5 100644
--- a/Dozentenmodul/bin/GUI/FTPUploader_GUI$1.class
+++ b/Dozentenmodul/bin/GUI/FTPUploader_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/FTPUploader_GUI$2.class b/Dozentenmodul/bin/GUI/FTPUploader_GUI$2.class
index 3fb99365..905d3fde 100644
--- a/Dozentenmodul/bin/GUI/FTPUploader_GUI$2.class
+++ b/Dozentenmodul/bin/GUI/FTPUploader_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/FTPUploader_GUI$3.class b/Dozentenmodul/bin/GUI/FTPUploader_GUI$3.class
index 2ccfe0bc..4b544121 100644
--- a/Dozentenmodul/bin/GUI/FTPUploader_GUI$3.class
+++ b/Dozentenmodul/bin/GUI/FTPUploader_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/FTPUploader_GUI$4.class b/Dozentenmodul/bin/GUI/FTPUploader_GUI$4.class
index f3eb6703..c4594204 100644
--- a/Dozentenmodul/bin/GUI/FTPUploader_GUI$4.class
+++ b/Dozentenmodul/bin/GUI/FTPUploader_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/FTPUploader_GUI$5.class b/Dozentenmodul/bin/GUI/FTPUploader_GUI$5.class
index ced1d71e..83efe314 100644
--- a/Dozentenmodul/bin/GUI/FTPUploader_GUI$5.class
+++ b/Dozentenmodul/bin/GUI/FTPUploader_GUI$5.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/FTPUploader_GUI.class b/Dozentenmodul/bin/GUI/FTPUploader_GUI.class
index 541dbdb2..25b2a092 100644
--- a/Dozentenmodul/bin/GUI/FTPUploader_GUI.class
+++ b/Dozentenmodul/bin/GUI/FTPUploader_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/Freigabe$1.class b/Dozentenmodul/bin/GUI/Freigabe$1.class
deleted file mode 100644
index 4d1020a9..00000000
--- a/Dozentenmodul/bin/GUI/Freigabe$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/Freigabe$2.class b/Dozentenmodul/bin/GUI/Freigabe$2.class
deleted file mode 100644
index d959f1e9..00000000
--- a/Dozentenmodul/bin/GUI/Freigabe$2.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/Freigabe$3.class b/Dozentenmodul/bin/GUI/Freigabe$3.class
deleted file mode 100644
index a6c51385..00000000
--- a/Dozentenmodul/bin/GUI/Freigabe$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/Freigabe$4.class b/Dozentenmodul/bin/GUI/Freigabe$4.class
deleted file mode 100644
index 3d45eda7..00000000
--- a/Dozentenmodul/bin/GUI/Freigabe$4.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/Freigabe.class b/Dozentenmodul/bin/GUI/Freigabe.class
deleted file mode 100644
index ed4a1bab..00000000
--- a/Dozentenmodul/bin/GUI/Freigabe.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/LinkImage_GUI$1.class b/Dozentenmodul/bin/GUI/LinkImage_GUI$1.class
index d8562511..a0a9eb95 100644
--- a/Dozentenmodul/bin/GUI/LinkImage_GUI$1.class
+++ b/Dozentenmodul/bin/GUI/LinkImage_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/LinkImage_GUI$2.class b/Dozentenmodul/bin/GUI/LinkImage_GUI$2.class
index e384bebf..59117e1c 100644
--- a/Dozentenmodul/bin/GUI/LinkImage_GUI$2.class
+++ b/Dozentenmodul/bin/GUI/LinkImage_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/LinkImage_GUI$3.class b/Dozentenmodul/bin/GUI/LinkImage_GUI$3.class
index ac217766..c6115895 100644
--- a/Dozentenmodul/bin/GUI/LinkImage_GUI$3.class
+++ b/Dozentenmodul/bin/GUI/LinkImage_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/LinkImage_GUI$4.class b/Dozentenmodul/bin/GUI/LinkImage_GUI$4.class
index 7bc4f741..1c0ad2e0 100644
--- a/Dozentenmodul/bin/GUI/LinkImage_GUI$4.class
+++ b/Dozentenmodul/bin/GUI/LinkImage_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/LinkImage_GUI$5.class b/Dozentenmodul/bin/GUI/LinkImage_GUI$5.class
index a73476cc..a666be6d 100644
--- a/Dozentenmodul/bin/GUI/LinkImage_GUI$5.class
+++ b/Dozentenmodul/bin/GUI/LinkImage_GUI$5.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/LinkImage_GUI$6.class b/Dozentenmodul/bin/GUI/LinkImage_GUI$6.class
index 14c1ad5c..0b50d8a6 100644
--- a/Dozentenmodul/bin/GUI/LinkImage_GUI$6.class
+++ b/Dozentenmodul/bin/GUI/LinkImage_GUI$6.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/LinkImage_GUI$7.class b/Dozentenmodul/bin/GUI/LinkImage_GUI$7.class
index 6077a740..1275514d 100644
--- a/Dozentenmodul/bin/GUI/LinkImage_GUI$7.class
+++ b/Dozentenmodul/bin/GUI/LinkImage_GUI$7.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/LinkImage_GUI.class b/Dozentenmodul/bin/GUI/LinkImage_GUI.class
index 2409416e..fdbfbc72 100644
--- a/Dozentenmodul/bin/GUI/LinkImage_GUI.class
+++ b/Dozentenmodul/bin/GUI/LinkImage_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/Login_GUI$1.class b/Dozentenmodul/bin/GUI/Login_GUI$1.class
index 80f3117b..f1662376 100644
--- a/Dozentenmodul/bin/GUI/Login_GUI$1.class
+++ b/Dozentenmodul/bin/GUI/Login_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/Login_GUI$2.class b/Dozentenmodul/bin/GUI/Login_GUI$2.class
index 996bf863..e1124c7a 100644
--- a/Dozentenmodul/bin/GUI/Login_GUI$2.class
+++ b/Dozentenmodul/bin/GUI/Login_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/Login_GUI$3.class b/Dozentenmodul/bin/GUI/Login_GUI$3.class
index af3cdd01..2fee37d2 100644
--- a/Dozentenmodul/bin/GUI/Login_GUI$3.class
+++ b/Dozentenmodul/bin/GUI/Login_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/Login_GUI.class b/Dozentenmodul/bin/GUI/Login_GUI.class
index 1d1bdd6a..3f50f3e9 100644
--- a/Dozentenmodul/bin/GUI/Login_GUI.class
+++ b/Dozentenmodul/bin/GUI/Login_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/MainMenue_GUI$1.class b/Dozentenmodul/bin/GUI/MainMenue_GUI$1.class
index d53f764d..29f2a80d 100644
--- a/Dozentenmodul/bin/GUI/MainMenue_GUI$1.class
+++ b/Dozentenmodul/bin/GUI/MainMenue_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/MainMenue_GUI$2.class b/Dozentenmodul/bin/GUI/MainMenue_GUI$2.class
index cd0b03b0..eefe174e 100644
--- a/Dozentenmodul/bin/GUI/MainMenue_GUI$2.class
+++ b/Dozentenmodul/bin/GUI/MainMenue_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/MainMenue_GUI$3.class b/Dozentenmodul/bin/GUI/MainMenue_GUI$3.class
index 2d031c05..6801b996 100644
--- a/Dozentenmodul/bin/GUI/MainMenue_GUI$3.class
+++ b/Dozentenmodul/bin/GUI/MainMenue_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/MainMenue_GUI$4.class b/Dozentenmodul/bin/GUI/MainMenue_GUI$4.class
index 8d95cc8c..27d59c34 100644
--- a/Dozentenmodul/bin/GUI/MainMenue_GUI$4.class
+++ b/Dozentenmodul/bin/GUI/MainMenue_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/MainMenue_GUI.class b/Dozentenmodul/bin/GUI/MainMenue_GUI.class
index 0107e0d3..72a928ed 100644
--- a/Dozentenmodul/bin/GUI/MainMenue_GUI.class
+++ b/Dozentenmodul/bin/GUI/MainMenue_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/SearchImage_GUI$1.class b/Dozentenmodul/bin/GUI/SearchImage_GUI$1.class
index b53db456..64902560 100644
--- a/Dozentenmodul/bin/GUI/SearchImage_GUI$1.class
+++ b/Dozentenmodul/bin/GUI/SearchImage_GUI$1.class
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 2d78fc2d..00000000
--- a/Dozentenmodul/bin/GUI/SearchImage_GUI$3.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 89c65db9..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 86997368..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 8918339a..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 b0ed708c..00000000
--- a/Dozentenmodul/bin/GUI/SearchImage_GUI$8.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/SearchImage_GUI.class b/Dozentenmodul/bin/GUI/SearchImage_GUI.class
index c522d03f..8f3d3005 100644
--- a/Dozentenmodul/bin/GUI/SearchImage_GUI.class
+++ b/Dozentenmodul/bin/GUI/SearchImage_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/SearchMethod_GUI$1.class b/Dozentenmodul/bin/GUI/SearchMethod_GUI$1.class
index ec42bcc5..b2222872 100644
--- a/Dozentenmodul/bin/GUI/SearchMethod_GUI$1.class
+++ b/Dozentenmodul/bin/GUI/SearchMethod_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/SearchMethod_GUI$2.class b/Dozentenmodul/bin/GUI/SearchMethod_GUI$2.class
index 489e5cbc..296d7ebc 100644
--- a/Dozentenmodul/bin/GUI/SearchMethod_GUI$2.class
+++ b/Dozentenmodul/bin/GUI/SearchMethod_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/SearchMethod_GUI$3.class b/Dozentenmodul/bin/GUI/SearchMethod_GUI$3.class
index e8e4be15..4b572444 100644
--- a/Dozentenmodul/bin/GUI/SearchMethod_GUI$3.class
+++ b/Dozentenmodul/bin/GUI/SearchMethod_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/SearchMethod_GUI$4.class b/Dozentenmodul/bin/GUI/SearchMethod_GUI$4.class
index c42fde89..64fdeb32 100644
--- a/Dozentenmodul/bin/GUI/SearchMethod_GUI$4.class
+++ b/Dozentenmodul/bin/GUI/SearchMethod_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/SearchMethod_GUI.class b/Dozentenmodul/bin/GUI/SearchMethod_GUI.class
index 548e1645..d4f71a85 100644
--- a/Dozentenmodul/bin/GUI/SearchMethod_GUI.class
+++ b/Dozentenmodul/bin/GUI/SearchMethod_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/Summary.class b/Dozentenmodul/bin/GUI/Summary.class
deleted file mode 100644
index 6b2254bd..00000000
--- a/Dozentenmodul/bin/GUI/Summary.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/VmWareLink_GUI$1.class b/Dozentenmodul/bin/GUI/VmWareLink_GUI$1.class
index a722eae2..efb86a09 100644
--- a/Dozentenmodul/bin/GUI/VmWareLink_GUI$1.class
+++ b/Dozentenmodul/bin/GUI/VmWareLink_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/VmWareLink_GUI$2.class b/Dozentenmodul/bin/GUI/VmWareLink_GUI$2.class
index 7ece9ffa..1d99d01e 100644
--- a/Dozentenmodul/bin/GUI/VmWareLink_GUI$2.class
+++ b/Dozentenmodul/bin/GUI/VmWareLink_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/VmWareLink_GUI$3.class b/Dozentenmodul/bin/GUI/VmWareLink_GUI$3.class
index e6e1b2e0..b3c0ab3a 100644
--- a/Dozentenmodul/bin/GUI/VmWareLink_GUI$3.class
+++ b/Dozentenmodul/bin/GUI/VmWareLink_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/VmWareLink_GUI.class b/Dozentenmodul/bin/GUI/VmWareLink_GUI.class
index ce7723a6..907d6eb8 100644
--- a/Dozentenmodul/bin/GUI/VmWareLink_GUI.class
+++ b/Dozentenmodul/bin/GUI/VmWareLink_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/searchRohling$1.class b/Dozentenmodul/bin/GUI/searchRohling$1.class
deleted file mode 100644
index e203c632..00000000
--- a/Dozentenmodul/bin/GUI/searchRohling$1.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/searchRohling$2.class b/Dozentenmodul/bin/GUI/searchRohling$2.class
deleted file mode 100644
index 71c323d8..00000000
--- a/Dozentenmodul/bin/GUI/searchRohling$2.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/searchRohling$3.class b/Dozentenmodul/bin/GUI/searchRohling$3.class
deleted file mode 100644
index b096e379..00000000
--- a/Dozentenmodul/bin/GUI/searchRohling$3.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/searchRohling$4.class b/Dozentenmodul/bin/GUI/searchRohling$4.class
deleted file mode 100644
index 6ea2c49f..00000000
--- a/Dozentenmodul/bin/GUI/searchRohling$4.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/searchRohling$5.class b/Dozentenmodul/bin/GUI/searchRohling$5.class
deleted file mode 100644
index f353aa56..00000000
--- a/Dozentenmodul/bin/GUI/searchRohling$5.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/searchRohling.class b/Dozentenmodul/bin/GUI/searchRohling.class
deleted file mode 100644
index 5ae1d551..00000000
--- a/Dozentenmodul/bin/GUI/searchRohling.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/Jsch/scriptExecutor.class b/Dozentenmodul/bin/Jsch/scriptExecutor.class
deleted file mode 100644
index 7604f55f..00000000
--- a/Dozentenmodul/bin/Jsch/scriptExecutor.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/Models/Image.class b/Dozentenmodul/bin/Models/Image.class
index 12094191..dfcc1d27 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 8213a163..6626b998 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 18b67125..8c7815e5 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
index dc7ca2c8..58709544 100644
--- a/Dozentenmodul/bin/Models/vm.class
+++ b/Dozentenmodul/bin/Models/vm.class
Binary files differ
diff --git a/Dozentenmodul/bin/downloader/FTPException.class b/Dozentenmodul/bin/downloader/FTPException.class
deleted file mode 100644
index ee7db37e..00000000
--- a/Dozentenmodul/bin/downloader/FTPException.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/downloader/DownloadTask.class b/Dozentenmodul/bin/ftp/DownloadTask.class
index 210944c5..1b153fb7 100644
--- a/Dozentenmodul/bin/downloader/DownloadTask.class
+++ b/Dozentenmodul/bin/ftp/DownloadTask.class
Binary files differ
diff --git a/Dozentenmodul/bin/ftp/FTPException.class b/Dozentenmodul/bin/ftp/FTPException.class
new file mode 100644
index 00000000..aa1d8638
--- /dev/null
+++ b/Dozentenmodul/bin/ftp/FTPException.class
Binary files differ
diff --git a/Dozentenmodul/bin/downloader/FTPUtility.class b/Dozentenmodul/bin/ftp/FTPUtility.class
index 33125b5c..f563788c 100644
--- a/Dozentenmodul/bin/downloader/FTPUtility.class
+++ b/Dozentenmodul/bin/ftp/FTPUtility.class
Binary files differ
diff --git a/Dozentenmodul/bin/downloader/UploadTask.class b/Dozentenmodul/bin/ftp/UploadTask.class
index c80c815b..12ba0962 100644
--- a/Dozentenmodul/bin/downloader/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
new file mode 100644
index 00000000..bc461adb
--- /dev/null
+++ b/Dozentenmodul/bin/gui/BillOfRights_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/BillOfRights_GUI$2.class b/Dozentenmodul/bin/gui/BillOfRights_GUI$2.class
new file mode 100644
index 00000000..82986708
--- /dev/null
+++ b/Dozentenmodul/bin/gui/BillOfRights_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/BillOfRights_GUI$3.class b/Dozentenmodul/bin/gui/BillOfRights_GUI$3.class
new file mode 100644
index 00000000..8be5df02
--- /dev/null
+++ b/Dozentenmodul/bin/gui/BillOfRights_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/BillOfRights_GUI.class b/Dozentenmodul/bin/gui/BillOfRights_GUI.class
new file mode 100644
index 00000000..5c2fcdb9
--- /dev/null
+++ b/Dozentenmodul/bin/gui/BillOfRights_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$1.class b/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$1.class
new file mode 100644
index 00000000..ee7be2bd
--- /dev/null
+++ b/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$2.class b/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$2.class
new file mode 100644
index 00000000..f6c046d9
--- /dev/null
+++ b/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$3.class b/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$3.class
new file mode 100644
index 00000000..e3137f1d
--- /dev/null
+++ b/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$4.class b/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$4.class
new file mode 100644
index 00000000..de9f7f02
--- /dev/null
+++ b/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EditImageAllgemein_GUI.class b/Dozentenmodul/bin/gui/EditImageAllgemein_GUI.class
new file mode 100644
index 00000000..33b53ff7
--- /dev/null
+++ b/Dozentenmodul/bin/gui/EditImageAllgemein_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$1.class b/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$1.class
new file mode 100644
index 00000000..a5f90abf
--- /dev/null
+++ b/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$2.class b/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$2.class
new file mode 100644
index 00000000..e0d6b0bb
--- /dev/null
+++ b/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$3.class b/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$3.class
new file mode 100644
index 00000000..9e416d61
--- /dev/null
+++ b/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$4.class b/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$4.class
new file mode 100644
index 00000000..2c924bfb
--- /dev/null
+++ b/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EditImageTechnisch_GUI.class b/Dozentenmodul/bin/gui/EditImageTechnisch_GUI.class
new file mode 100644
index 00000000..f6ff8e3f
--- /dev/null
+++ b/Dozentenmodul/bin/gui/EditImageTechnisch_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$1.class b/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$1.class
new file mode 100644
index 00000000..cb46e119
--- /dev/null
+++ b/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$2.class b/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$2.class
new file mode 100644
index 00000000..2f31d675
--- /dev/null
+++ b/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$3.class b/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$3.class
new file mode 100644
index 00000000..93093bec
--- /dev/null
+++ b/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$4.class b/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$4.class
new file mode 100644
index 00000000..e0cabe51
--- /dev/null
+++ b/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI.class b/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI.class
new file mode 100644
index 00000000..34123c90
--- /dev/null
+++ b/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI$1.class b/Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI$1.class
new file mode 100644
index 00000000..b7b5fc47
--- /dev/null
+++ b/Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI$2.class b/Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI$2.class
new file mode 100644
index 00000000..b237ee04
--- /dev/null
+++ b/Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI$3.class b/Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI$3.class
new file mode 100644
index 00000000..2f3bc164
--- /dev/null
+++ b/Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI$4.class b/Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI$4.class
new file mode 100644
index 00000000..7237fa6b
--- /dev/null
+++ b/Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI.class b/Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI.class
new file mode 100644
index 00000000..baa9e9f0
--- /dev/null
+++ b/Dozentenmodul/bin/gui/EingabeImageTechnisch_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$1.class b/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$1.class
new file mode 100644
index 00000000..38c70c68
--- /dev/null
+++ b/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$2.class b/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$2.class
new file mode 100644
index 00000000..f0bc60c5
--- /dev/null
+++ b/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$3.class b/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$3.class
new file mode 100644
index 00000000..0893f571
--- /dev/null
+++ b/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$4.class b/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$4.class
new file mode 100644
index 00000000..b750b556
--- /dev/null
+++ b/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI.class b/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI.class
new file mode 100644
index 00000000..30234793
--- /dev/null
+++ b/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$1.class b/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$1.class
new file mode 100644
index 00000000..f36b268f
--- /dev/null
+++ b/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$2.class b/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$2.class
new file mode 100644
index 00000000..385d35b6
--- /dev/null
+++ b/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$3.class b/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$3.class
new file mode 100644
index 00000000..945432de
--- /dev/null
+++ b/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$4.class b/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$4.class
new file mode 100644
index 00000000..2c97bca7
--- /dev/null
+++ b/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI.class b/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI.class
new file mode 100644
index 00000000..0cfa4c75
--- /dev/null
+++ b/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/ExtendedSearch_GUI$1.class b/Dozentenmodul/bin/gui/ExtendedSearch_GUI$1.class
new file mode 100644
index 00000000..14bb24a5
--- /dev/null
+++ b/Dozentenmodul/bin/gui/ExtendedSearch_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/ExtendedSearch_GUI$2.class b/Dozentenmodul/bin/gui/ExtendedSearch_GUI$2.class
new file mode 100644
index 00000000..dd35be9f
--- /dev/null
+++ b/Dozentenmodul/bin/gui/ExtendedSearch_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/ExtendedSearch_GUI$3.class b/Dozentenmodul/bin/gui/ExtendedSearch_GUI$3.class
new file mode 100644
index 00000000..465fc151
--- /dev/null
+++ b/Dozentenmodul/bin/gui/ExtendedSearch_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/ExtendedSearch_GUI.class b/Dozentenmodul/bin/gui/ExtendedSearch_GUI.class
new file mode 100644
index 00000000..eeb3f65f
--- /dev/null
+++ b/Dozentenmodul/bin/gui/ExtendedSearch_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/FTPDownloader_GUI$1.class b/Dozentenmodul/bin/gui/FTPDownloader_GUI$1.class
new file mode 100644
index 00000000..244b88e2
--- /dev/null
+++ b/Dozentenmodul/bin/gui/FTPDownloader_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/FTPDownloader_GUI$2.class b/Dozentenmodul/bin/gui/FTPDownloader_GUI$2.class
new file mode 100644
index 00000000..42a0f970
--- /dev/null
+++ b/Dozentenmodul/bin/gui/FTPDownloader_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/FTPDownloader_GUI$3.class b/Dozentenmodul/bin/gui/FTPDownloader_GUI$3.class
new file mode 100644
index 00000000..26910efa
--- /dev/null
+++ b/Dozentenmodul/bin/gui/FTPDownloader_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/FTPDownloader_GUI$4.class b/Dozentenmodul/bin/gui/FTPDownloader_GUI$4.class
new file mode 100644
index 00000000..235576d0
--- /dev/null
+++ b/Dozentenmodul/bin/gui/FTPDownloader_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/FTPDownloader_GUI.class b/Dozentenmodul/bin/gui/FTPDownloader_GUI.class
new file mode 100644
index 00000000..55635a3d
--- /dev/null
+++ b/Dozentenmodul/bin/gui/FTPDownloader_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/FTPUploader_GUI$1.class b/Dozentenmodul/bin/gui/FTPUploader_GUI$1.class
new file mode 100644
index 00000000..3a3714a5
--- /dev/null
+++ b/Dozentenmodul/bin/gui/FTPUploader_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/FTPUploader_GUI$2.class b/Dozentenmodul/bin/gui/FTPUploader_GUI$2.class
new file mode 100644
index 00000000..905d3fde
--- /dev/null
+++ b/Dozentenmodul/bin/gui/FTPUploader_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/FTPUploader_GUI$3.class b/Dozentenmodul/bin/gui/FTPUploader_GUI$3.class
new file mode 100644
index 00000000..4b544121
--- /dev/null
+++ b/Dozentenmodul/bin/gui/FTPUploader_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/FTPUploader_GUI$4.class b/Dozentenmodul/bin/gui/FTPUploader_GUI$4.class
new file mode 100644
index 00000000..c4594204
--- /dev/null
+++ b/Dozentenmodul/bin/gui/FTPUploader_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/FTPUploader_GUI$5.class b/Dozentenmodul/bin/gui/FTPUploader_GUI$5.class
new file mode 100644
index 00000000..83efe314
--- /dev/null
+++ b/Dozentenmodul/bin/gui/FTPUploader_GUI$5.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/FTPUploader_GUI.class b/Dozentenmodul/bin/gui/FTPUploader_GUI.class
new file mode 100644
index 00000000..25b2a092
--- /dev/null
+++ b/Dozentenmodul/bin/gui/FTPUploader_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/LinkImage_GUI$1.class b/Dozentenmodul/bin/gui/LinkImage_GUI$1.class
new file mode 100644
index 00000000..a0a9eb95
--- /dev/null
+++ b/Dozentenmodul/bin/gui/LinkImage_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/LinkImage_GUI$2.class b/Dozentenmodul/bin/gui/LinkImage_GUI$2.class
new file mode 100644
index 00000000..59117e1c
--- /dev/null
+++ b/Dozentenmodul/bin/gui/LinkImage_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/LinkImage_GUI$3.class b/Dozentenmodul/bin/gui/LinkImage_GUI$3.class
new file mode 100644
index 00000000..c6115895
--- /dev/null
+++ b/Dozentenmodul/bin/gui/LinkImage_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/LinkImage_GUI$4.class b/Dozentenmodul/bin/gui/LinkImage_GUI$4.class
new file mode 100644
index 00000000..1c0ad2e0
--- /dev/null
+++ b/Dozentenmodul/bin/gui/LinkImage_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/LinkImage_GUI$5.class b/Dozentenmodul/bin/gui/LinkImage_GUI$5.class
new file mode 100644
index 00000000..a666be6d
--- /dev/null
+++ b/Dozentenmodul/bin/gui/LinkImage_GUI$5.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/LinkImage_GUI$6.class b/Dozentenmodul/bin/gui/LinkImage_GUI$6.class
new file mode 100644
index 00000000..0b50d8a6
--- /dev/null
+++ b/Dozentenmodul/bin/gui/LinkImage_GUI$6.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/LinkImage_GUI$7.class b/Dozentenmodul/bin/gui/LinkImage_GUI$7.class
new file mode 100644
index 00000000..1275514d
--- /dev/null
+++ b/Dozentenmodul/bin/gui/LinkImage_GUI$7.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/LinkImage_GUI.class b/Dozentenmodul/bin/gui/LinkImage_GUI.class
new file mode 100644
index 00000000..fdbfbc72
--- /dev/null
+++ b/Dozentenmodul/bin/gui/LinkImage_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/Login_GUI$1.class b/Dozentenmodul/bin/gui/Login_GUI$1.class
new file mode 100644
index 00000000..f1662376
--- /dev/null
+++ b/Dozentenmodul/bin/gui/Login_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/Login_GUI$2.class b/Dozentenmodul/bin/gui/Login_GUI$2.class
new file mode 100644
index 00000000..e1124c7a
--- /dev/null
+++ b/Dozentenmodul/bin/gui/Login_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/Login_GUI$3.class b/Dozentenmodul/bin/gui/Login_GUI$3.class
new file mode 100644
index 00000000..2fee37d2
--- /dev/null
+++ b/Dozentenmodul/bin/gui/Login_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/Login_GUI.class b/Dozentenmodul/bin/gui/Login_GUI.class
new file mode 100644
index 00000000..3f50f3e9
--- /dev/null
+++ b/Dozentenmodul/bin/gui/Login_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/MainMenue_GUI$1.class b/Dozentenmodul/bin/gui/MainMenue_GUI$1.class
new file mode 100644
index 00000000..29f2a80d
--- /dev/null
+++ b/Dozentenmodul/bin/gui/MainMenue_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/MainMenue_GUI$2.class b/Dozentenmodul/bin/gui/MainMenue_GUI$2.class
new file mode 100644
index 00000000..eefe174e
--- /dev/null
+++ b/Dozentenmodul/bin/gui/MainMenue_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/MainMenue_GUI$3.class b/Dozentenmodul/bin/gui/MainMenue_GUI$3.class
new file mode 100644
index 00000000..6801b996
--- /dev/null
+++ b/Dozentenmodul/bin/gui/MainMenue_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/MainMenue_GUI$4.class b/Dozentenmodul/bin/gui/MainMenue_GUI$4.class
new file mode 100644
index 00000000..27d59c34
--- /dev/null
+++ b/Dozentenmodul/bin/gui/MainMenue_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/MainMenue_GUI.class b/Dozentenmodul/bin/gui/MainMenue_GUI.class
new file mode 100644
index 00000000..72a928ed
--- /dev/null
+++ b/Dozentenmodul/bin/gui/MainMenue_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchImage_GUI$1.class b/Dozentenmodul/bin/gui/SearchImage_GUI$1.class
new file mode 100644
index 00000000..64902560
--- /dev/null
+++ b/Dozentenmodul/bin/gui/SearchImage_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/SearchImage_GUI$2.class b/Dozentenmodul/bin/gui/SearchImage_GUI$2.class
index 2a0a8791..349defd0 100644
--- a/Dozentenmodul/bin/GUI/SearchImage_GUI$2.class
+++ b/Dozentenmodul/bin/gui/SearchImage_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchImage_GUI$3.class b/Dozentenmodul/bin/gui/SearchImage_GUI$3.class
new file mode 100644
index 00000000..4cf2f88b
--- /dev/null
+++ b/Dozentenmodul/bin/gui/SearchImage_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/GUI/SearchImage_GUI$4.class b/Dozentenmodul/bin/gui/SearchImage_GUI$4.class
index a20de136..47eff0b7 100644
--- a/Dozentenmodul/bin/GUI/SearchImage_GUI$4.class
+++ b/Dozentenmodul/bin/gui/SearchImage_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchImage_GUI$5.class b/Dozentenmodul/bin/gui/SearchImage_GUI$5.class
new file mode 100644
index 00000000..c640b0f0
--- /dev/null
+++ b/Dozentenmodul/bin/gui/SearchImage_GUI$5.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchImage_GUI$6.class b/Dozentenmodul/bin/gui/SearchImage_GUI$6.class
new file mode 100644
index 00000000..38b85fef
--- /dev/null
+++ b/Dozentenmodul/bin/gui/SearchImage_GUI$6.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchImage_GUI$7.class b/Dozentenmodul/bin/gui/SearchImage_GUI$7.class
new file mode 100644
index 00000000..a76b3d45
--- /dev/null
+++ b/Dozentenmodul/bin/gui/SearchImage_GUI$7.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchImage_GUI$8.class b/Dozentenmodul/bin/gui/SearchImage_GUI$8.class
new file mode 100644
index 00000000..26f722d9
--- /dev/null
+++ b/Dozentenmodul/bin/gui/SearchImage_GUI$8.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchImage_GUI.class b/Dozentenmodul/bin/gui/SearchImage_GUI.class
new file mode 100644
index 00000000..8f3d3005
--- /dev/null
+++ b/Dozentenmodul/bin/gui/SearchImage_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchMethod_GUI$1.class b/Dozentenmodul/bin/gui/SearchMethod_GUI$1.class
new file mode 100644
index 00000000..b2222872
--- /dev/null
+++ b/Dozentenmodul/bin/gui/SearchMethod_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchMethod_GUI$2.class b/Dozentenmodul/bin/gui/SearchMethod_GUI$2.class
new file mode 100644
index 00000000..296d7ebc
--- /dev/null
+++ b/Dozentenmodul/bin/gui/SearchMethod_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchMethod_GUI$3.class b/Dozentenmodul/bin/gui/SearchMethod_GUI$3.class
new file mode 100644
index 00000000..4b572444
--- /dev/null
+++ b/Dozentenmodul/bin/gui/SearchMethod_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchMethod_GUI$4.class b/Dozentenmodul/bin/gui/SearchMethod_GUI$4.class
new file mode 100644
index 00000000..64fdeb32
--- /dev/null
+++ b/Dozentenmodul/bin/gui/SearchMethod_GUI$4.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/SearchMethod_GUI.class b/Dozentenmodul/bin/gui/SearchMethod_GUI.class
new file mode 100644
index 00000000..d4f71a85
--- /dev/null
+++ b/Dozentenmodul/bin/gui/SearchMethod_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/VmWareLink_GUI$1.class b/Dozentenmodul/bin/gui/VmWareLink_GUI$1.class
new file mode 100644
index 00000000..efb86a09
--- /dev/null
+++ b/Dozentenmodul/bin/gui/VmWareLink_GUI$1.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/VmWareLink_GUI$2.class b/Dozentenmodul/bin/gui/VmWareLink_GUI$2.class
new file mode 100644
index 00000000..1d99d01e
--- /dev/null
+++ b/Dozentenmodul/bin/gui/VmWareLink_GUI$2.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/VmWareLink_GUI$3.class b/Dozentenmodul/bin/gui/VmWareLink_GUI$3.class
new file mode 100644
index 00000000..b3c0ab3a
--- /dev/null
+++ b/Dozentenmodul/bin/gui/VmWareLink_GUI$3.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/VmWareLink_GUI.class b/Dozentenmodul/bin/gui/VmWareLink_GUI.class
new file mode 100644
index 00000000..907d6eb8
--- /dev/null
+++ b/Dozentenmodul/bin/gui/VmWareLink_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/models/Image.class b/Dozentenmodul/bin/models/Image.class
new file mode 100644
index 00000000..dfcc1d27
--- /dev/null
+++ b/Dozentenmodul/bin/models/Image.class
Binary files differ
diff --git a/Dozentenmodul/bin/models/Lecture.class b/Dozentenmodul/bin/models/Lecture.class
new file mode 100644
index 00000000..6626b998
--- /dev/null
+++ b/Dozentenmodul/bin/models/Lecture.class
Binary files differ
diff --git a/Dozentenmodul/bin/models/person.class b/Dozentenmodul/bin/models/person.class
new file mode 100644
index 00000000..8c7815e5
--- /dev/null
+++ b/Dozentenmodul/bin/models/person.class
Binary files differ
diff --git a/Dozentenmodul/bin/models/user.class b/Dozentenmodul/bin/models/user.class
new file mode 100644
index 00000000..af67dd13
--- /dev/null
+++ b/Dozentenmodul/bin/models/user.class
Binary files differ
diff --git a/Dozentenmodul/bin/models/vm.class b/Dozentenmodul/bin/models/vm.class
new file mode 100644
index 00000000..58709544
--- /dev/null
+++ b/Dozentenmodul/bin/models/vm.class
Binary files differ
diff --git a/Dozentenmodul/bin/rmi/RmiClientMethods.class b/Dozentenmodul/bin/rmi/RmiClientMethods.class
deleted file mode 100644
index 451fa5a2..00000000
--- a/Dozentenmodul/bin/rmi/RmiClientMethods.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/sql/sql.class b/Dozentenmodul/bin/sql/sql.class
deleted file mode 100644
index 825f92de..00000000
--- a/Dozentenmodul/bin/sql/sql.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodul/bin/thrift/ThriftConnection.class b/Dozentenmodul/bin/thrift/ThriftConnection.class
new file mode 100644
index 00000000..6d255bd4
--- /dev/null
+++ b/Dozentenmodul/bin/thrift/ThriftConnection.class
Binary files differ
diff --git a/Dozentenmodul/src/GUI/AddOS.java b/Dozentenmodul/src/GUI/AddOS.java
deleted file mode 100644
index 1642b05b..00000000
--- a/Dozentenmodul/src/GUI/AddOS.java
+++ /dev/null
@@ -1,177 +0,0 @@
-package GUI;
-
-import java.awt.BorderLayout;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Toolkit;
-import javax.swing.JFrame;
-import sql.sql;
-import javax.swing.JButton;
-import javax.swing.JDialog;
-import javax.swing.JOptionPane;
-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.JTextField;
-import javax.swing.JComboBox;
-import javax.swing.JCheckBox;
-import java.awt.event.ActionListener;
-import java.awt.event.ActionEvent;
-import java.sql.Connection;
-import javax.swing.DefaultComboBoxModel;
-
-@SuppressWarnings("serial")
-public class AddOS extends JFrame {
-
- private final JPanel contentPanel = new JPanel();
- private JTextField textField;
- private JTextField textField_1;
- private JTextField textField_2;
- @SuppressWarnings("rawtypes")
- JComboBox comboBox;
- JCheckBox checkBox;
- sql sql=new sql();
- /**
- * Launch the application.
- */
- public static void main(String[] args) {
- try {
- AddOS dialog = new AddOS();
- dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
- dialog.setVisible(true);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- /**
- * Create the dialog.
- */
- @SuppressWarnings({ "rawtypes", "unchecked" })
- public AddOS() {
- setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
- setTitle("Dozentenmodul *Prototyp*");
-
- try {
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
- } catch (ClassNotFoundException | InstantiationException
- | IllegalAccessException | UnsupportedLookAndFeelException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- }
-
- Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
- int top=(screenSize.height - 416) / 2;
- int left=(screenSize.width - 300) / 2;
- setBounds(left, top, 416, 300);
- //setBounds(100, 100, 288, 300);
- getContentPane().setLayout(new BorderLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- getContentPane().add(contentPanel, BorderLayout.CENTER);
- contentPanel.setLayout(null);
- {
- JLabel lblNewLabel = new JLabel("Betriebssystem hinzuf\u00FCgen");
- lblNewLabel.setFont(new Font("Dialog", Font.PLAIN, 14));
- lblNewLabel.setBounds(10, 11, 194, 25);
- contentPanel.add(lblNewLabel);
- }
- {
- JLabel lblHersteller = new JLabel("Hersteller:*");
- lblHersteller.setBounds(10, 47, 100, 20);
- contentPanel.add(lblHersteller);
- }
- {
- textField = new JTextField();
- textField.setBounds(120, 47, 270, 20);
- contentPanel.add(textField);
- textField.setColumns(10);
- }
- {
- JLabel lblNewLabel_1 = new JLabel("Name:*");
- lblNewLabel_1.setBounds(10, 78, 100, 20);
- contentPanel.add(lblNewLabel_1);
- }
- {
- textField_1 = new JTextField();
- textField_1.setColumns(10);
- textField_1.setBounds(120, 78, 270, 20);
- contentPanel.add(textField_1);
- }
- {
- JLabel lblVersion = new JLabel("Version:*");
- lblVersion.setBounds(10, 109, 100, 20);
- contentPanel.add(lblVersion);
- }
- {
- textField_2 = new JTextField();
- textField_2.setColumns(10);
- textField_2.setBounds(120, 109, 270, 20);
- contentPanel.add(textField_2);
- }
- {
- JLabel lblArchitektur = new JLabel("Architektur:*");
- lblArchitektur.setBounds(10, 140, 100, 20);
- contentPanel.add(lblArchitektur);
- }
-
- comboBox = new JComboBox();
- comboBox.setModel(new DefaultComboBoxModel(new String[] {"32-bit", "64-bit"}));
- comboBox.setBounds(120, 140, 135, 20);
- contentPanel.add(comboBox);
-
- JLabel lblLizenzpflichtig = new JLabel("Lizenzpflichtig:*");
- lblLizenzpflichtig.setBounds(10, 171, 100, 20);
- contentPanel.add(lblLizenzpflichtig);
-
- checkBox = new JCheckBox("");
- checkBox.setBounds(120, 167, 97, 23);
- contentPanel.add(checkBox);
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- getContentPane().add(buttonPane, BorderLayout.SOUTH);
- {
- JButton okButton = new JButton("OK");
- okButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- if(textField.getText().isEmpty()==false&&textField_2.getText().isEmpty()==false&&comboBox.getSelectedIndex()!=-1&&textField_1.getText().isEmpty()==false)
- {
- int Kosten=0;
- if(checkBox.isSelected()==true)
- {
- Kosten=1;
- }
- Connection con=sql.getConnection();
-
- sql.AddOS(con, textField_1.getText().toString(), textField_2.getText().toString(), comboBox.getSelectedItem().toString(), Kosten, textField.getText().toString());
-
- dispose();
-
- }
- else
- {
- JOptionPane.showMessageDialog(null, "Bitte geben Sie alle notwendigen Daten an!",
- "Error", JOptionPane.ERROR_MESSAGE);
- }
- }
- });
- okButton.setActionCommand("OK");
- buttonPane.add(okButton);
- getRootPane().setDefaultButton(okButton);
- }
- {
- JButton cancelButton = new JButton("Zur\u00FCck");
- cancelButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- dispose();
- }
- });
- cancelButton.setActionCommand("Cancel");
- buttonPane.add(cancelButton);
- }
- }
- }
-}
diff --git a/Dozentenmodul/src/GUI/AddSoftware.java b/Dozentenmodul/src/GUI/AddSoftware.java
deleted file mode 100644
index 37a3a8bb..00000000
--- a/Dozentenmodul/src/GUI/AddSoftware.java
+++ /dev/null
@@ -1,176 +0,0 @@
-package GUI;
-
-import java.awt.BorderLayout;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Toolkit;
-import javax.swing.JFrame;
-import sql.sql;
-import javax.swing.JButton;
-import javax.swing.JDialog;
-import javax.swing.JOptionPane;
-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.JTextField;
-import javax.swing.JComboBox;
-import javax.swing.JCheckBox;
-import java.awt.event.ActionListener;
-import java.awt.event.ActionEvent;
-import java.sql.Connection;
-import javax.swing.DefaultComboBoxModel;
-
-@SuppressWarnings("serial")
-public class AddSoftware extends JFrame {
-
- private final JPanel contentPanel = new JPanel();
- private JTextField textField;
- private JTextField textField_1;
- private JTextField textField_2;
- @SuppressWarnings("rawtypes")
- JComboBox comboBox;
- JCheckBox checkBox;
- sql sql=new sql();
- /**
- * Launch the application.
- */
- /*public static void main(String[] args) {
- try {
- AddSoftware dialog = new AddSoftware();
- dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
- dialog.setVisible(true);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }*/
-
- /**
- * Create the dialog.
- */
- @SuppressWarnings({ "rawtypes", "unchecked" })
- public AddSoftware() {
- setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
- setTitle("Dozentenmodul *Prototyp*");
-
- try {
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
- } catch (ClassNotFoundException | InstantiationException
- | IllegalAccessException | UnsupportedLookAndFeelException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- }
-
- Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
- int top=(screenSize.height - 416) / 2;
- int left=(screenSize.width - 300) / 2;
- setBounds(left, top, 416, 300);
- //setBounds(100, 100, 288, 300);
- getContentPane().setLayout(new BorderLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- getContentPane().add(contentPanel, BorderLayout.CENTER);
- contentPanel.setLayout(null);
- {
- JLabel lblNewLabel = new JLabel("Software hinzuf\u00FCgen");
- lblNewLabel.setFont(new Font("Dialog", Font.PLAIN, 14));
- lblNewLabel.setBounds(10, 11, 194, 25);
- contentPanel.add(lblNewLabel);
- }
- {
- JLabel lblHersteller = new JLabel("Hersteller: *");
- lblHersteller.setBounds(10, 47, 100, 20);
- contentPanel.add(lblHersteller);
- }
- {
- textField = new JTextField();
- textField.setBounds(120, 47, 270, 20);
- contentPanel.add(textField);
- textField.setColumns(10);
- }
- {
- JLabel lblNewLabel_1 = new JLabel("Name: *");
- lblNewLabel_1.setBounds(10, 78, 100, 20);
- contentPanel.add(lblNewLabel_1);
- }
- {
- textField_1 = new JTextField();
- textField_1.setColumns(10);
- textField_1.setBounds(120, 78, 270, 20);
- contentPanel.add(textField_1);
- }
- {
- JLabel lblVersion = new JLabel("Version: *");
- lblVersion.setBounds(10, 109, 100, 20);
- contentPanel.add(lblVersion);
- }
- {
- textField_2 = new JTextField();
- textField_2.setColumns(10);
- textField_2.setBounds(120, 109, 270, 20);
- contentPanel.add(textField_2);
- }
- {
- JLabel lblArchitektur = new JLabel("Architektur: *");
- lblArchitektur.setBounds(10, 140, 100, 20);
- contentPanel.add(lblArchitektur);
- }
-
- comboBox = new JComboBox();
- comboBox.setModel(new DefaultComboBoxModel(new String[] {"32-bit", "64-bit"}));
- comboBox.setBounds(120, 140, 135, 20);
- contentPanel.add(comboBox);
-
- JLabel lblLizenzpflichtig = new JLabel("Lizenzpflichtig: *");
- lblLizenzpflichtig.setBounds(10, 171, 100, 20);
- contentPanel.add(lblLizenzpflichtig);
-
- checkBox = new JCheckBox("");
- checkBox.setBounds(120, 167, 97, 23);
- contentPanel.add(checkBox);
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- getContentPane().add(buttonPane, BorderLayout.SOUTH);
- {
- JButton okButton = new JButton("OK");
- okButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- if(textField.getText().isEmpty()==false&&textField_2.getText().isEmpty()==false&&comboBox.getSelectedIndex()!=-1&&textField_1.getText().isEmpty()==false)
- {
- int Kosten=0;
- if(checkBox.isSelected()==true)
- {
- Kosten=1;
- }
- Connection con=sql.getConnection();
-
- sql.AddSoftware(con, textField_1.getText().toString(), textField_2.getText().toString(), comboBox.getSelectedItem().toString(), Kosten, textField.getText().toString());
-
- dispose();
- }else
- {
- JOptionPane.showMessageDialog(null, "Bitte geben Sie alle notwendigen Daten an!",
- "Error", JOptionPane.ERROR_MESSAGE);
- }
- }
-
- });
- okButton.setActionCommand("OK");
- buttonPane.add(okButton);
- getRootPane().setDefaultButton(okButton);
- }
- {
- JButton cancelButton = new JButton("Zur\u00FCck");
- cancelButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- dispose();
- }
- });
- cancelButton.setActionCommand("Cancel");
- buttonPane.add(cancelButton);
- }
- }
- }
-}
diff --git a/Dozentenmodul/src/GUI/BillOfRights_GUI.java b/Dozentenmodul/src/GUI/BillOfRights_GUI.java
index c3ff7be0..6f66d479 100644
--- a/Dozentenmodul/src/GUI/BillOfRights_GUI.java
+++ b/Dozentenmodul/src/GUI/BillOfRights_GUI.java
@@ -1,4 +1,4 @@
-package GUI;
+package gui;
import java.awt.Dimension;
import java.awt.FlowLayout;
diff --git a/Dozentenmodul/src/GUI/EditImageAllgemein_GUI.java b/Dozentenmodul/src/GUI/EditImageAllgemein_GUI.java
index 7e97f008..784c66a7 100644
--- a/Dozentenmodul/src/GUI/EditImageAllgemein_GUI.java
+++ b/Dozentenmodul/src/GUI/EditImageAllgemein_GUI.java
@@ -1,4 +1,4 @@
-package GUI;
+package gui;
import java.awt.Dimension;
import java.awt.FlowLayout;
@@ -24,12 +24,14 @@ import javax.swing.JMenuBar;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
-import Models.Image;
-import Models.person;
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;
diff --git a/Dozentenmodul/src/GUI/EditImageTechnisch_GUI.java b/Dozentenmodul/src/GUI/EditImageTechnisch_GUI.java
index bf1c8a86..a3fdcf20 100644
--- a/Dozentenmodul/src/GUI/EditImageTechnisch_GUI.java
+++ b/Dozentenmodul/src/GUI/EditImageTechnisch_GUI.java
@@ -1,4 +1,4 @@
-package GUI;
+package gui;
import java.awt.Dimension;
@@ -22,7 +22,6 @@ import javax.swing.JSeparator;
import javax.swing.JMenuBar;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
-import Models.Image;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.border.TitledBorder;
@@ -34,6 +33,8 @@ import javax.swing.ButtonGroup;
import javax.swing.JSpinner;
import javax.swing.SpinnerNumberModel;
+import models.Image;
+
@SuppressWarnings("serial")
public class EditImageTechnisch_GUI extends JFrame {
diff --git a/Dozentenmodul/src/GUI/EingabeImageAllgemein_GUI.java b/Dozentenmodul/src/GUI/EingabeImageAllgemein_GUI.java
index a9889d9f..4eb5c609 100644
--- a/Dozentenmodul/src/GUI/EingabeImageAllgemein_GUI.java
+++ b/Dozentenmodul/src/GUI/EingabeImageAllgemein_GUI.java
@@ -1,4 +1,4 @@
-package GUI;
+package gui;
import java.awt.Dimension;
@@ -25,12 +25,14 @@ import javax.swing.JMenuBar;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
-import Models.Image;
-import Models.person;
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;
diff --git a/Dozentenmodul/src/GUI/EingabeImageTechnisch_GUI.java b/Dozentenmodul/src/GUI/EingabeImageTechnisch_GUI.java
index 3fd6fcbb..daf46d99 100644
--- a/Dozentenmodul/src/GUI/EingabeImageTechnisch_GUI.java
+++ b/Dozentenmodul/src/GUI/EingabeImageTechnisch_GUI.java
@@ -1,4 +1,4 @@
-package GUI;
+package gui;
import java.awt.Dimension;
@@ -22,7 +22,6 @@ import javax.swing.JSeparator;
import javax.swing.JMenuBar;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
-import Models.Image;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.border.TitledBorder;
@@ -34,6 +33,8 @@ import javax.swing.ButtonGroup;
import javax.swing.JSpinner;
import javax.swing.SpinnerNumberModel;
+import models.Image;
+
@SuppressWarnings("serial")
public class EingabeImageTechnisch_GUI extends JFrame {
@@ -263,11 +264,11 @@ public class EingabeImageTechnisch_GUI extends JFrame {
if(rdbtnlicenseJa.isSelected()==true)
{
- Image.image.setLicenseneed(true);
+ Image.image.setLicensed(true);
}
else
{
- Image.image.setLicenseneed(false);
+ Image.image.setLicensed(false);
}
Image.image.setCpu(Integer.valueOf(spinnerCPU.getValue().toString()).intValue());
Image.image.setRam(Integer.valueOf(spinnerRam.getValue().toString()).intValue());
@@ -296,11 +297,11 @@ public class EingabeImageTechnisch_GUI extends JFrame {
if(rdbtnlicenseJa.isSelected()==true)
{
- Image.image.setLicenseneed(true);
+ Image.image.setLicensed(true);
}
else
{
- Image.image.setLicenseneed(false);
+ Image.image.setLicensed(false);
}
Image.image.setCpu(Integer.valueOf(spinnerCPU.getValue().toString()).intValue());
Image.image.setRam(Integer.valueOf(spinnerRam.getValue().toString()).intValue());
diff --git a/Dozentenmodul/src/GUI/EingabeSoftwareDaten.java b/Dozentenmodul/src/GUI/EingabeSoftwareDaten.java
deleted file mode 100644
index 50d8e5f9..00000000
--- a/Dozentenmodul/src/GUI/EingabeSoftwareDaten.java
+++ /dev/null
@@ -1,311 +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 javax.swing.JTextField;
-import sql.sql;
-import java.awt.event.ActionListener;
-import java.awt.event.ActionEvent;
-import java.sql.Connection;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.util.Arrays;
-import javax.swing.JSeparator;
-import java.awt.List;
-import java.awt.event.KeyAdapter;
-import java.awt.event.KeyEvent;
-import javax.swing.plaf.basic.BasicArrowButton;
-import javax.swing.JMenuBar;
-import javax.swing.JMenu;
-import javax.swing.JMenuItem;
-import Models.vm;
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
-
-
-@SuppressWarnings("serial")
-public class EingabeSoftwareDaten extends JFrame {
-
- private final JPanel contentPanel = new JPanel();
- String[] result;
- sql sql=new sql();
- private JTextField textField;
- List listavailable;
- List listchoosed;
-
- /**
- * Launch the application.
- */
- public static void main(String[] args) {
- try {
- EingabeSoftwareDaten dialog = new EingabeSoftwareDaten();
- dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
- dialog.setVisible(true);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- /**
- * Create the dialog.
- */
- @SuppressWarnings({ })
- public EingabeSoftwareDaten() {
- 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 - 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.setBounds(0, 0, 577, 71);
- getContentPane().add(panel);
- panel.setLayout(null);
- {
- JLabel lblNewLabel = new JLabel("Eingabe der installierten Software (Schritt 5 von 7)");
- 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 geben Sie nun die in Ihrem System installierte Software an.");
- txtpnBitteWhlenSie.setBounds(10, 36, 509, 42);
- panel.add(txtpnBitteWhlenSie);
- }
- contentPanel.setBounds(10, 95, 567, 512);
- contentPanel.setBackground(SystemColor.menu);
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- getContentPane().add(contentPanel);
- contentPanel.setLayout(null);
-
- JLabel lblSysteminformationen = new JLabel("Verf\u00FCgbare Software");
- lblSysteminformationen.setFont(new Font("Tahoma", Font.PLAIN, 14));
- lblSysteminformationen.setBounds(10, 11, 162, 20);
- contentPanel.add(lblSysteminformationen);
-
-
- JLabel lblAusgewhlteSoftware = new JLabel("Installierte Software");
- lblAusgewhlteSoftware.setFont(new Font("Tahoma", Font.PLAIN, 14));
- lblAusgewhlteSoftware.setBounds(306, 11, 162, 20);
- contentPanel.add(lblAusgewhlteSoftware);
-
-
-
- textField = new JTextField();
- textField.addKeyListener(new KeyAdapter() {
- @Override
- public void keyReleased(KeyEvent e) {
-
-
- Connection con=sql.getConnection();
- ResultSet rs=sql.getSoftwareByName(con, textField.getText().toString());
- listavailable.removeAll();
- try {
- while(rs.next())
- {
- listavailable.add(rs.getString("SW"));
- }
- } catch (SQLException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- }
-
- }
- });
-
- textField.setBounds(10, 36, 244, 20);
- contentPanel.add(textField);
- textField.setColumns(10);
-
- JButton btnSoftwareHinzufgen = new JButton("Software hinzuf\u00FCgen");
- btnSoftwareHinzufgen.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- AddSoftware as=new AddSoftware();
- as.setVisible(true);
- }
- });
- btnSoftwareHinzufgen.setBounds(10, 483, 162, 23);
- contentPanel.add(btnSoftwareHinzufgen);
-
- listavailable = new List();
- Connection con=sql.getConnection();
- ResultSet he=sql.getAllHersteller(con);
-
- try {
- while(he.next())
- {
-
- ResultSet sw=sql.getAllSoftware(con, he.getString("Name"));
-
- while(sw.next())
- {
-
- listavailable.add(he.getString("Name")+" "+sw.getString("Produktname")+" "+sw.getString("Version")+" "+sw.getString("Architektur"));
- }
- }
- } catch (SQLException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- }
- listavailable.setMultipleMode(true);
- listavailable.setBounds(10, 62, 244, 415);
- contentPanel.add(listavailable);
-
- listchoosed = new List();
- if(vm.vl.getSoftware()!=null)
- {
- for(int i=0;i<vm.vl.getSoftware().getItemCount();i++){
- listchoosed.add(vm.vl.getSoftware().getItem(i));
- listavailable.remove(vm.vl.getSoftware().getItem(i));
- }
- }
-
- listchoosed.setMultipleMode(true);
- listchoosed.setBounds(306, 62, 244, 415);
- contentPanel.add(listchoosed);
-
- JButton btnNewButton = new BasicArrowButton(BasicArrowButton.EAST);
- btnNewButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- String[] items=new String[listavailable.getItemCount()];
- items=listavailable.getSelectedItems();
- for(int i=0;i<items.length;i++)
- {
- listchoosed.add(items[i]);
-
- listavailable.remove(items[i]);
- }
-
- String[] sort=listchoosed.getItems();
- Arrays.sort(sort);
- listchoosed.removeAll();
-
- for(int i=0;i<sort.length;i++)
- {
- listchoosed.add(sort[i]);
- }
-
-
- }
- });
- btnNewButton.setBounds(260, 223, 40, 40);
- contentPanel.add(btnNewButton);
-
- JButton btnNewButton_1 = new BasicArrowButton(BasicArrowButton.WEST);
- btnNewButton_1.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- String[] items=new String[listchoosed.getItemCount()];
- items=listchoosed.getSelectedItems();
- for(int i=0;i<items.length;i++)
- {
- listavailable.add(items[i]);
- listchoosed.remove(items[i]);
- }
- String[] sort=listavailable.getItems();
- Arrays.sort(sort);
- listavailable.removeAll();
-
- for(int i=0;i<sort.length;i++)
- {
- listavailable.add(sort[i]);
- }
- }
- });
- btnNewButton_1.setBounds(260, 274, 40, 40);
- contentPanel.add(btnNewButton_1);
-
-
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setBounds(0, 631, 587, 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) {
- vm.vl.setSoftware(listchoosed);
- EingabeSystemDaten eas=new EingabeSystemDaten();
- eas.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 arg0) {
- vm.vl.setSoftware(listchoosed);
- Freigabe fs=new Freigabe();
- fs.setVisible(true);
- dispose();
- }
- });
- cancelButton.setActionCommand("Cancel");
- buttonPane.add(cancelButton);
- }
- }
-
- JSeparator separator = new JSeparator();
- separator.setBounds(0, 618, 616, 2);
- getContentPane().add(separator);
-
- JSeparator separator_1 = new JSeparator();
- separator_1.setBounds(0, 82, 587, 2);
- getContentPane().add(separator_1);
-
- JMenuBar menuBar = new JMenuBar();
- setJMenuBar(menuBar);
-
- JMenu mnSuchen = new JMenu("Suchen");
- menuBar.add(mnSuchen);
-
- JMenuItem mntmVlSuche = new JMenuItem("VL Suche");
- mnSuchen.add(mntmVlSuche);
-
- JMenu mnHilfe = new JMenu("Hilfe");
- menuBar.add(mnHilfe);
-
- JMenuItem mntmFaq = new JMenuItem("FAQ");
- mnHilfe.add(mntmFaq);
-
- JMenuItem mntmOtrs = new JMenuItem("OTRS");
- mnHilfe.add(mntmOtrs);
-
- }
-}
diff --git a/Dozentenmodul/src/GUI/EingabeSystemDaten.java b/Dozentenmodul/src/GUI/EingabeSystemDaten.java
deleted file mode 100644
index 2722fa51..00000000
--- a/Dozentenmodul/src/GUI/EingabeSystemDaten.java
+++ /dev/null
@@ -1,311 +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.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 sql.sql;
-import java.awt.event.ActionListener;
-import java.awt.event.ActionEvent;
-import javax.swing.JSeparator;
-import javax.swing.JTextArea;
-import java.awt.Choice;
-import java.sql.Connection;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import Models.vm;
-import com.toedter.calendar.JDateChooser;
-import javax.swing.JMenuBar;
-import javax.swing.JMenu;
-import javax.swing.JMenuItem;
-import javax.swing.JScrollPane;
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
-
-
-@SuppressWarnings("serial")
-public class EingabeSystemDaten extends JFrame {
-
- private final JPanel contentPanel = new JPanel();
- String[] result;
- sql sql=new sql();
- private JTextField Laborname;
- JDateChooser dateChooser;
- JDateChooser dateChooser_1;
- Choice choiceOS;
- JTextArea shortDesc;
- JTextArea longDesc;
- JTextArea comment;
- /**
- * Launch the application.
- */
- public static void main(String[] args) {
- try {
- EingabeSystemDaten dialog = new EingabeSystemDaten();
- dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
- dialog.setVisible(true);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- /**
- * Create the dialog.
- */
- public EingabeSystemDaten() {
- 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 - 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.setBounds(0, 0, 587, 71);
- getContentPane().add(panel);
- panel.setLayout(null);
- {
- JLabel lblNewLabel = new JLabel("Eingabe der systembezogenen Daten (Schritt 4 von 7)");
- 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 geben Sie nun die notwendigen Daten Ihres Systems ein.");
- txtpnBitteWhlenSie.setBounds(10, 36, 509, 42);
- panel.add(txtpnBitteWhlenSie);
- }
- contentPanel.setBounds(10, 95, 567, 506);
- contentPanel.setBackground(Color.WHITE);
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- getContentPane().add(contentPanel);
- contentPanel.setLayout(null);
-
- JLabel lblSysteminformationen = new JLabel("Systeminformationen");
- lblSysteminformationen.setFont(new Font("Tahoma", Font.PLAIN, 14));
- lblSysteminformationen.setBounds(10, 11, 162, 14);
- contentPanel.add(lblSysteminformationen);
-
- JLabel lblLabornameanzeigename = new JLabel("Laborname (Anzeigename): *");
- lblLabornameanzeigename.setBounds(10, 36, 150, 20);
- contentPanel.add(lblLabornameanzeigename);
-
- Laborname = new JTextField();
- Laborname.setText(vm.vl.getLaborname());
- Laborname.setBounds(170, 36, 350, 20);
- contentPanel.add(Laborname);
- Laborname.setColumns(10);
-
- JLabel lblKurzbeschreibung = new JLabel("Kurzbeschreibung: *");
- lblKurzbeschreibung.setBounds(10, 67, 150, 20);
- contentPanel.add(lblKurzbeschreibung);
-
- JLabel lblLangbeschreibung = new JLabel("Langbeschreibung: *");
- lblLangbeschreibung.setBounds(10, 139, 150, 20);
- contentPanel.add(lblLangbeschreibung);
-
- JLabel lblKommentar = new JLabel("Kommentar:");
- lblKommentar.setBounds(10, 308, 150, 20);
- contentPanel.add(lblKommentar);
-
- JLabel lblBetriebssystem = new JLabel("Betriebssystem: *");
- lblBetriebssystem.setBounds(10, 373, 150, 20);
- contentPanel.add(lblBetriebssystem);
-
- choiceOS = new Choice();
- choiceOS.setFont(new Font("Tahoma", Font.PLAIN, 11));
-
-
-
-
-
- choiceOS.setBounds(170, 373, 226, 20);
-
- Connection con=sql.getConnection();
- ResultSet rs=sql.getAllOS(con);
-
- try {
- while(rs.next())
- {
- choiceOS.addItem(rs.getString("Produktname")+" "+rs.getString("Version")+" "+rs.getString("Architektur"));
- }
- } catch (SQLException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- choiceOS.select(vm.vl.getOS());
-
- contentPanel.add(choiceOS);
-
- JLabel lblGltigkeitsdatumVon = new JLabel("G\u00FCltigkeitsdatum: *");
- lblGltigkeitsdatumVon.setBounds(10, 404, 150, 20);
- contentPanel.add(lblGltigkeitsdatumVon);
-
- JLabel lblVon = new JLabel("von");
- lblVon.setBounds(170, 407, 24, 14);
- contentPanel.add(lblVon);
-
- dateChooser = new JDateChooser();
- dateChooser.setDateFormatString("dd.MM.yyyy HH:mm:ss");
- dateChooser.setDate(vm.vl.getBegin());
- dateChooser.setBounds(204, 404, 132, 20);
- contentPanel.add(dateChooser);
-
- JLabel lblNewLabel_1 = new JLabel("bis");
- lblNewLabel_1.setBounds(354, 407, 24, 14);
- contentPanel.add(lblNewLabel_1);
-
- dateChooser_1 = new JDateChooser();
- dateChooser_1.setDateFormatString("dd.MM.yyyy HH:mm:ss");
- dateChooser_1.setDate(vm.vl.getEnd());
- dateChooser_1.setBounds(388, 404, 132, 20);
- contentPanel.add(dateChooser_1);
-
- JButton btnHinzufgen = new JButton("Hinzuf\u00FCgen");
- btnHinzufgen.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- AddOS os=new AddOS();
- os.setVisible(true);
-
- }
- });
- btnHinzufgen.setBounds(402, 372, 118, 23);
- contentPanel.add(btnHinzufgen);
- shortDesc=new JTextArea();
- shortDesc.setBorder(UIManager.getBorder("ComboBox.border"));
- shortDesc.setFont(new Font("Tahoma", Font.PLAIN, 11));
- shortDesc.setText(vm.vl.getShortDesc());
- JScrollPane scrollPane = new JScrollPane(shortDesc);
- scrollPane.setBorder(null);
- scrollPane.setBounds(170, 67, 350, 63);
- contentPanel.add(scrollPane);
- longDesc=new JTextArea();
- longDesc.setBorder(UIManager.getBorder("TextField.border"));
- longDesc.setFont(new Font("Tahoma", Font.PLAIN, 11));
- longDesc.setText(vm.vl.getLongDesc());
- JScrollPane scrollPane_1 = new JScrollPane(longDesc);
- scrollPane_1.setBorder(null);
- scrollPane_1.setBounds(170, 139, 350, 158);
- contentPanel.add(scrollPane_1);
- JScrollPane scrollPane_2 = new JScrollPane();
- scrollPane_2.setBorder(UIManager.getBorder("TextArea.border"));
- scrollPane_2.setBounds(170, 308, 350, 59);
- contentPanel.add(scrollPane_2);
-
- comment = new JTextArea();
- comment.setFont(new Font("Tahoma", Font.PLAIN, 11));
- comment.setBorder(UIManager.getBorder("TextField.border"));
- scrollPane_2.setViewportView(comment);
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setBounds(0, 630, 587, 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 arg0) {
- vm.vl.setBegin(dateChooser.getDate());
- vm.vl.setComment(comment.getText());
- vm.vl.setEnd(dateChooser_1.getDate());
- vm.vl.setLaborname(Laborname.getText());
- vm.vl.setLongDesc(longDesc.getText());
- vm.vl.setOS(choiceOS.getSelectedItem());
- vm.vl.setShortDesc(shortDesc.getText());
- EingabeImageAllgemein_GUI ea= new EingabeImageAllgemein_GUI();
- ea.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 arg0) {
- vm.vl.setBegin(dateChooser.getDate());
- vm.vl.setComment(comment.getText());
- vm.vl.setEnd(dateChooser_1.getDate());
- vm.vl.setLaborname(Laborname.getText());
- vm.vl.setLongDesc(longDesc.getText());
- vm.vl.setOS(choiceOS.getSelectedItem());
- vm.vl.setShortDesc(shortDesc.getText());
- if(Laborname.getText().isEmpty()==false&&shortDesc.getText().isEmpty()==false&&longDesc.getText().isEmpty()==false&&dateChooser.getDate()!=null&&dateChooser_1.getDate()!=null)
- {
- EingabeSoftwareDaten ea=new EingabeSoftwareDaten();
- 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, 617, 587, 2);
- getContentPane().add(separator);
-
- JSeparator separator_1 = new JSeparator();
- separator_1.setBounds(0, 82, 587, 2);
- getContentPane().add(separator_1);
-
- JMenuBar menuBar = new JMenuBar();
- setJMenuBar(menuBar);
-
- JMenu mnSuchen = new JMenu("Suchen");
- menuBar.add(mnSuchen);
-
- JMenuItem mntmVlSuche = new JMenuItem("VL Suche");
- mnSuchen.add(mntmVlSuche);
-
- JMenu mnHilfe = new JMenu("Hilfe");
- menuBar.add(mnHilfe);
-
- JMenuItem mntmFaq = new JMenuItem("FAQ");
- mnHilfe.add(mntmFaq);
-
- JMenuItem mntmOtrs = new JMenuItem("OTRS");
- mnHilfe.add(mntmOtrs);
-
- }
-}
diff --git a/Dozentenmodul/src/GUI/EingabeVeranstaltungAllgemein_GUI.java b/Dozentenmodul/src/GUI/EingabeVeranstaltungAllgemein_GUI.java
index 32cdd288..045f8a84 100644
--- a/Dozentenmodul/src/GUI/EingabeVeranstaltungAllgemein_GUI.java
+++ b/Dozentenmodul/src/GUI/EingabeVeranstaltungAllgemein_GUI.java
@@ -1,39 +1,40 @@
-package GUI;
+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 javax.swing.JFrame;
+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.JTextArea;
+import javax.swing.JTextField;
+import javax.swing.JTextPane;
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 Models.Image;
-import Models.Lecture;
-import Models.person;
-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 models.Lecture;
+import models.person;
+
@SuppressWarnings("serial")
public class EingabeVeranstaltungAllgemein_GUI extends JFrame {
@@ -81,8 +82,8 @@ public class EingabeVeranstaltungAllgemein_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 - 722) / 2;
+ int left=(screenSize.width - 603) / 2;
setBounds(left, top, 603, 722);
//setBounds(100, 100, 603, 722);
getContentPane().setLayout(null);
diff --git a/Dozentenmodul/src/GUI/EingabeVeranstatlungTechnisch_GUI.java b/Dozentenmodul/src/GUI/EingabeVeranstatlungTechnisch_GUI.java
index a8e581a5..3733b200 100644
--- a/Dozentenmodul/src/GUI/EingabeVeranstatlungTechnisch_GUI.java
+++ b/Dozentenmodul/src/GUI/EingabeVeranstatlungTechnisch_GUI.java
@@ -1,42 +1,41 @@
-package GUI;
+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 javax.swing.JFrame;
+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.JPanel;
-import javax.swing.UIManager;
-import javax.swing.UnsupportedLookAndFeelException;
-import javax.swing.border.EmptyBorder;
-import java.awt.Color;
+import javax.swing.JFrame;
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.JMenuBar;
import javax.swing.JMenuItem;
-import Models.Image;
-import Models.Lecture;
-
-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.JPanel;
import javax.swing.JRadioButton;
-import javax.swing.ButtonGroup;
-import javax.swing.JSpinner;
-import javax.swing.SpinnerNumberModel;
+import javax.swing.JSeparator;
+import javax.swing.JTextArea;
import javax.swing.JTextField;
-import java.awt.ScrollPane;
+import javax.swing.JTextPane;
+import javax.swing.UIManager;
+import javax.swing.UnsupportedLookAndFeelException;
+import javax.swing.border.EmptyBorder;
+
+import models.Lecture;
+
+
import com.toedter.calendar.JDateChooser;
@SuppressWarnings("serial")
@@ -44,8 +43,6 @@ public class EingabeVeranstatlungTechnisch_GUI extends JFrame {
private final JPanel contentPanel = new JPanel();
String[] result;
- private final ButtonGroup buttonGrouplicense = new ButtonGroup();
- private final ButtonGroup buttonGroupInternet = new ButtonGroup();
private JTextField textFieldLaborname;
JRadioButton rdbtnJa;
JDateChooser dateChooserend;
@@ -87,8 +84,8 @@ public class EingabeVeranstatlungTechnisch_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 - 722) / 2;
+ int left=(screenSize.width - 603) / 2;
setBounds(left, top, 603, 722);
//setBounds(100, 100, 603, 722);
getContentPane().setLayout(null);
diff --git a/Dozentenmodul/src/GUI/ExtendedSearch_GUI.java b/Dozentenmodul/src/GUI/ExtendedSearch_GUI.java
index 4ba0aa0d..20041516 100644
--- a/Dozentenmodul/src/GUI/ExtendedSearch_GUI.java
+++ b/Dozentenmodul/src/GUI/ExtendedSearch_GUI.java
@@ -1,41 +1,33 @@
-package GUI;
+package gui;
import java.awt.Dimension;
import java.awt.FlowLayout;
+import java.awt.Font;
+import java.awt.SystemColor;
import java.awt.Toolkit;
-import javax.swing.JFrame;
+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 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 Models.Image;
-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 javax.swing.JCheckBox;
-import javax.swing.JTextField;
-import javax.swing.JComboBox;
@SuppressWarnings("serial")
public class ExtendedSearch_GUI extends JFrame {
@@ -170,7 +162,7 @@ public class ExtendedSearch_GUI extends JFrame {
lblHochschuleuniversitt.setBounds(10, 70, 176, 20);
panel_2.add(lblHochschuleuniversitt);
- JComboBox comboBox = new JComboBox();
+ JComboBox<String> comboBox = new JComboBox<String>();
comboBox.setBounds(196, 70, 351, 20);
panel_2.add(comboBox);
{
diff --git a/Dozentenmodul/src/GUI/FTPDownloader_GUI.java b/Dozentenmodul/src/GUI/FTPDownloader_GUI.java
index 60e509e2..94e1e05d 100644
--- a/Dozentenmodul/src/GUI/FTPDownloader_GUI.java
+++ b/Dozentenmodul/src/GUI/FTPDownloader_GUI.java
@@ -1,4 +1,4 @@
-package GUI;
+package gui;
import java.awt.BorderLayout;
import java.awt.Color;
@@ -6,7 +6,6 @@ import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Toolkit;
import java.io.File;
-import java.rmi.RemoteException;
import javax.swing.JButton;
import javax.swing.JFileChooser;
@@ -19,11 +18,8 @@ import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.border.EmptyBorder;
-import Models.User;
+import ftp.DownloadTask;
-import rmi.RmiClientMethods;
-import server.ServerInterface;
-import downloader.DownloadTask;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.beans.PropertyChangeEvent;
@@ -35,6 +31,12 @@ 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 {
@@ -61,8 +63,8 @@ public class FTPDownloader_GUI extends JFrame implements PropertyChangeListener
long bytesread;
JLabel labelZeit;
boolean taskrun=false;
- RmiClientMethods rmi=new RmiClientMethods();
- ServerInterface sint=rmi.getInterface();
+ ThriftConnection thrift=new ThriftConnection();
+ Client client=thrift.getThriftConnection();
/**
* Launch the application.
*/
@@ -89,8 +91,8 @@ public class FTPDownloader_GUI extends JFrame implements PropertyChangeListener
if(taskrun==true)
{
try {
- sint.DeleteFtpUser(user.getUsername());
- } catch (RemoteException e1) {
+ client.DeleteFtpUser(user.userName);
+ } catch (TException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
@@ -116,10 +118,9 @@ public class FTPDownloader_GUI extends JFrame implements PropertyChangeListener
setBackground(Color.WHITE);
setTitle("Dozentenmodul *Prototyp*");
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
- int top=(screenSize.height - 603) / 2;
- int left=(screenSize.width - 722) / 2;
+ 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));
@@ -265,8 +266,8 @@ public class FTPDownloader_GUI extends JFrame implements PropertyChangeListener
{
task.cancel(true);
try {
- sint.DeleteFtpUser(user.getUsername());
- } catch (RemoteException e1) {
+ client.DeleteFtpUser(user.userName);
+ } catch (TException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
@@ -291,16 +292,14 @@ public class FTPDownloader_GUI extends JFrame implements PropertyChangeListener
progressBar.setValue(0);
try {
- user=sint.getFtpUser();
- downloadPath=sint.getPathOfImage(filename);
- } catch (RemoteException e) {
+ user=client.getFtpUser();
+ //downloadPath=client.getPathOfImage(filename);
+ } catch (TException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
- System.out.println(user.getUsername()+"Pass:"+user.getPass());
-
- task = new DownloadTask(host, port, user.getUsername(), user.getPass(),downloadPath+filename+".vmdk", lblNewLabel.getText(), this);
- System.out.println(downloadPath+filename);
+
+ task = new DownloadTask(host, port, user.userName, user.password,user.path+filename+".vmdk", lblNewLabel.getText(), this);
task.addPropertyChangeListener(this);
task.execute();
taskrun=true;
diff --git a/Dozentenmodul/src/GUI/FTPUploader_GUI.java b/Dozentenmodul/src/GUI/FTPUploader_GUI.java
index d4d1d414..1a76b7b3 100644
--- a/Dozentenmodul/src/GUI/FTPUploader_GUI.java
+++ b/Dozentenmodul/src/GUI/FTPUploader_GUI.java
@@ -1,43 +1,44 @@
-package GUI;
+package gui;
import java.awt.BorderLayout;
-import rmi.*;
-import server.ServerInterface;
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.rmi.RemoteException;
+
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 downloader.UploadTask;
-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 Models.Image;
-import Models.User;
-import Models.person;
+import models.Image;
+import models.person;
-import java.awt.SystemColor;
-import java.awt.Font;
-import javax.swing.JTextPane;
-import javax.swing.JMenuBar;
-import javax.swing.JMenu;
-import javax.swing.JSeparator;
+import org.apache.thrift.TException;
+
+import server.Server.Client;
+import thrift.ThriftConnection;
+import ftp.UploadTask;
@SuppressWarnings("serial")
@@ -50,7 +51,7 @@ public class FTPUploader_GUI extends JFrame implements PropertyChangeListener {
JProgressBar progressBar;
String host="141.79.128.121";
int port=21;
- User user;
+ server.User user;
String filename="";
File uploadFile;
static String arg="";
@@ -64,8 +65,8 @@ public class FTPUploader_GUI extends JFrame implements PropertyChangeListener {
double speed;
long bytesread;
boolean taskrun=false;
- RmiClientMethods rmi=new RmiClientMethods();
- ServerInterface sint=rmi.getInterface();
+ ThriftConnection thrift=new ThriftConnection();
+ Client client=thrift.getThriftConnection();
/**
* Launch the application.
*/
@@ -92,8 +93,9 @@ public class FTPUploader_GUI extends JFrame implements PropertyChangeListener {
if(taskrun==true)
{
try {
- sint.DeleteFtpUser(user.getUsername());
- } catch (RemoteException e1) {
+
+ client.DeleteFtpUser(user.userName);
+ } catch (TException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
@@ -273,9 +275,9 @@ public class FTPUploader_GUI extends JFrame implements PropertyChangeListener {
if(taskrun==true)
{
try {
- sint.DeleteFtpUser(user.getUsername());
+ client.DeleteFtpUser(user.userName);
- } catch (RemoteException e1) {
+ } catch (TException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
@@ -324,13 +326,17 @@ public class FTPUploader_GUI extends JFrame implements PropertyChangeListener {
progressBar.setValue(0);
try {
- user=sint.getFtpUser();
- } catch (RemoteException e) {
+ 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.getUsername(),user.getPass(),user.getPath(), uploadFile);
+ task=new UploadTask(host,port,user.userName,user.password,user.path, uploadFile);
+
task.addPropertyChangeListener(this);
task.execute();
taskrun=true;
@@ -382,8 +388,8 @@ public class FTPUploader_GUI extends JFrame implements PropertyChangeListener {
public boolean writeData(){
try {
- sint.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.isLicenseneed(), Image.image.isInternet(), Image.image.getRam(), Image.image.getCpu());
- } catch (RemoteException e) {
+ 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;
diff --git a/Dozentenmodul/src/GUI/Freigabe.java b/Dozentenmodul/src/GUI/Freigabe.java
deleted file mode 100644
index d720e9b4..00000000
--- a/Dozentenmodul/src/GUI/Freigabe.java
+++ /dev/null
@@ -1,226 +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 sql.sql;
-import java.awt.event.ActionListener;
-import java.awt.event.ActionEvent;
-import javax.swing.JSeparator;
-import java.awt.List;
-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.JRadioButton;
-import javax.swing.ButtonGroup;
-import java.awt.event.ItemListener;
-import java.awt.event.ItemEvent;
-
-
-@SuppressWarnings("serial")
-public class Freigabe extends JFrame {
-
- private final JPanel contentPanel = new JPanel();
- String[] result;
- sql sql=new sql();
- private final ButtonGroup buttonGroup = new ButtonGroup();
- JRadioButton rdbtnSelektierteHochschulen;
- List list;
- /**
- * Launch the application.
- */
- public static void main(String[] args) {
- try {
- Freigabe dialog = new Freigabe();
- dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
- dialog.setVisible(true);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- /**
- * Create the dialog.
- */
- @SuppressWarnings({ })
- public Freigabe() {
- 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 - 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.setBounds(0, 0, 577, 71);
- getContentPane().add(panel);
- panel.setLayout(null);
- {
- JLabel lblNewLabel = new JLabel("Freigabe (Schritt 6 von 7)");
- 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 spezifizieren Sie, f\u00FCr welche Personen/Hochschulen Ihre VL verf\u00FCgbar sein soll.");
- txtpnBitteWhlenSie.setBounds(10, 36, 509, 42);
- panel.add(txtpnBitteWhlenSie);
- }
- contentPanel.setBounds(10, 95, 567, 512);
- contentPanel.setBackground(Color.WHITE);
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- getContentPane().add(contentPanel);
- contentPanel.setLayout(null);
-
- JLabel lblFreigeben = new JLabel("Freigeben:");
- lblFreigeben.setFont(new Font("Tahoma", Font.PLAIN, 14));
- lblFreigeben.setBounds(10, 11, 93, 22);
- contentPanel.add(lblFreigeben);
-
- JRadioButton rdbtnPrivat = new JRadioButton("Privat");
- rdbtnPrivat.setSelected(true);
- rdbtnPrivat.setBackground(Color.WHITE);
- buttonGroup.add(rdbtnPrivat);
- rdbtnPrivat.setBounds(10, 40, 153, 23);
- contentPanel.add(rdbtnPrivat);
-
- JRadioButton rdbtnFrAlleHochschulen = new JRadioButton("F\u00FCr alle Hochschulen");
- rdbtnFrAlleHochschulen.setBackground(Color.WHITE);
- buttonGroup.add(rdbtnFrAlleHochschulen);
- rdbtnFrAlleHochschulen.setBounds(10, 92, 153, 23);
- contentPanel.add(rdbtnFrAlleHochschulen);
-
- JRadioButton rdbtnEigeneHochschule = new JRadioButton("Eigene Hochschule");
- rdbtnEigeneHochschule.setBackground(Color.WHITE);
- buttonGroup.add(rdbtnEigeneHochschule);
- rdbtnEigeneHochschule.setBounds(10, 66, 153, 23);
- contentPanel.add(rdbtnEigeneHochschule);
-
- rdbtnSelektierteHochschulen = new JRadioButton("Hochschulen ausw\u00E4hlen");
- rdbtnSelektierteHochschulen.addItemListener(new ItemListener() {
- public void itemStateChanged(ItemEvent e) {
- if(rdbtnSelektierteHochschulen.isSelected()==true)
- {
- list.setBackground(Color.WHITE);
- list.setEnabled(true);
- }
- else
- {
- list.setEnabled(false);
- list.setBackground(SystemColor.control);
-
- }
- }
- });
-
- rdbtnSelektierteHochschulen.setBackground(Color.WHITE);
- buttonGroup.add(rdbtnSelektierteHochschulen);
- rdbtnSelektierteHochschulen.setBounds(10, 118, 153, 23);
- contentPanel.add(rdbtnSelektierteHochschulen);
-
- list = new List();
- list.setMultipleMode(true);
- list.setBackground(SystemColor.control);
- list.setEnabled(false);
- list.setBounds(10, 147, 547, 355);
- list.add("Hochschule Offenburg");
- list.add("Hochschule Reutlingen");
- list.add("Uni Freiburg");
- list.add("Hochschule Karlsruhe");
- contentPanel.add(list);
-
-
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setBounds(0, 631, 587, 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) {
-
- EingabeSoftwareDaten eas=new EingabeSoftwareDaten();
- eas.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 arg0) {
-
- Summary fs=new Summary();
- fs.setVisible(true);
- dispose();
- }
- });
- cancelButton.setActionCommand("Cancel");
- buttonPane.add(cancelButton);
- }
- }
-
- JSeparator separator = new JSeparator();
- separator.setBounds(0, 618, 616, 2);
- getContentPane().add(separator);
-
- JSeparator separator_1 = new JSeparator();
- separator_1.setBounds(0, 82, 587, 2);
- getContentPane().add(separator_1);
-
- JMenuBar menuBar = new JMenuBar();
- setJMenuBar(menuBar);
-
- JMenu mnSuchen = new JMenu("Suchen");
- menuBar.add(mnSuchen);
-
- JMenuItem mntmVlSuche = new JMenuItem("VL Suche");
- mnSuchen.add(mntmVlSuche);
-
- JMenu mnHilfe = new JMenu("Hilfe");
- menuBar.add(mnHilfe);
-
- JMenuItem mntmFaq = new JMenuItem("FAQ");
- mnHilfe.add(mntmFaq);
-
- JMenuItem mntmOtrs = new JMenuItem("OTRS");
- mnHilfe.add(mntmOtrs);
-
- }
-}
diff --git a/Dozentenmodul/src/GUI/LinkImage_GUI.java b/Dozentenmodul/src/GUI/LinkImage_GUI.java
index ec93a629..38b3d5e3 100644
--- a/Dozentenmodul/src/GUI/LinkImage_GUI.java
+++ b/Dozentenmodul/src/GUI/LinkImage_GUI.java
@@ -1,69 +1,55 @@
-package GUI;
+package gui;
-import java.awt.BorderLayout;
+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 javax.swing.JFrame;
+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.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;
-import javax.swing.JPanel;
-import javax.swing.ScrollPaneLayout;
-import javax.swing.UIManager;
-import javax.swing.UnsupportedLookAndFeelException;
-import javax.swing.border.Border;
-import javax.swing.border.EmptyBorder;
-import java.awt.Color;
+import javax.swing.JFrame;
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.JMenuBar;
import javax.swing.JMenuItem;
-import Models.Image;
-import Models.Lecture;
-import Models.person;
-
-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.JPanel;
import javax.swing.JRadioButton;
-import javax.swing.ButtonGroup;
-import javax.swing.JSpinner;
-import javax.swing.SpinnerNumberModel;
-import javax.swing.JTextField;
+import javax.swing.JScrollPane;
+import javax.swing.JSeparator;
import javax.swing.JTabbedPane;
-import java.awt.Panel;
import javax.swing.JTable;
-import javax.swing.plaf.basic.BasicTabbedPaneUI.TabbedPaneLayout;
+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 javax.swing.table.DefaultTableModel;
-import javax.swing.table.TableModel;
-import javax.swing.JScrollPane;
-import rmi.RmiClientMethods;
-import server.ServerInterface;
+import models.Lecture;
+import models.person;
-import java.awt.ScrollPane;
-import java.rmi.RemoteException;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
+import org.apache.thrift.TException;
-import javax.swing.JComboBox;
-import java.awt.event.KeyAdapter;
-import java.awt.event.KeyEvent;
+import server.Server.Client;
+import thrift.ThriftConnection;
@SuppressWarnings("serial")
public class LinkImage_GUI extends JFrame {
@@ -72,14 +58,13 @@ public class LinkImage_GUI extends JFrame {
String[] result;
JRadioButton rdbtnInternetJa;
JRadioButton rdbtnInternetNein;
- JComboBox comboBox;
+ JComboBox<String> comboBox;
JTable tableAllImages;
- private final ButtonGroup buttonGrouplicense = new ButtonGroup();
- private final ButtonGroup buttonGroupInternet = new ButtonGroup();
private JTextField textFieldName;
String[] titles= {"Image-Name", "Lizenzpflichtig", "OS", "Veranstaltung", "Verantwortlicher", "Letztes Update", "Schlagwort"};
- RmiClientMethods rmi=new RmiClientMethods();
- ServerInterface sint=rmi.getInterface();
+ ThriftConnection thrift=new ThriftConnection();
+ Client client=thrift.getThriftConnection();
+
/**
* Launch the application.
@@ -118,7 +103,6 @@ public class LinkImage_GUI extends JFrame {
int top=(screenSize.height - 603) / 2;
int left=(screenSize.width - 722) / 2;
setBounds(left, top, 603, 722);
- //setBounds(100, 100, 603, 722);
final DefaultTableModel modelAll = new DefaultTableModel( titles, 0 );
@@ -210,15 +194,15 @@ public class LinkImage_GUI extends JFrame {
lblErweiterteSuche.setBounds(431, 106, 89, 14);
panel_1.add(lblErweiterteSuche);
- comboBox = new JComboBox();
+ comboBox = new JComboBox<String>();
try {
- List<String> list=sint.getAllOS();
+ List<String> list=client.getAllOS();
comboBox.addItem("");
for(int i=0;i<list.size();i++)
{
comboBox.addItem(list.get(i));
}
- } catch (RemoteException e2) {
+ } catch (TException e2) {
// TODO Auto-generated catch block
e2.printStackTrace();
}
@@ -345,14 +329,7 @@ public class LinkImage_GUI extends JFrame {
scrollPanePublicVorlagen.setViewportView(tablePublicVorlagen);
tabbedPane.addTab("\u00D6ffentliche Vorlagen", null, scrollPanePublicVorlagen, null);
- initTableModel(modelAll);
-
-
-
-
-
-
-
+ initTableModel(modelAll);
{
JPanel buttonPane = new JPanel();
buttonPane.setBounds(0, 640, 597, 33);
@@ -363,9 +340,7 @@ public class LinkImage_GUI extends JFrame {
JButton okButton = new JButton("Zur\u00FCck");
okButton.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());
-
+
MainMenue_GUI main=new MainMenue_GUI();
main.setVisible(true);
dispose();
@@ -381,14 +356,11 @@ public class LinkImage_GUI extends JFrame {
public void actionPerformed(ActionEvent e) {
String imagename=tableAllImages.getValueAt(tableAllImages.getSelectedRow(), 0).toString();
- String Name=tableAllImages.getValueAt(tableAllImages.getSelectedRow(), 5).toString();
- String Nachname=tableAllImages.getValueAt(tableAllImages.getSelectedRow(), 5).toString().substring(0,Name.indexOf(" ") );
- String Vorname=tableAllImages.getValueAt(tableAllImages.getSelectedRow(), 5).toString().substring(Name.indexOf(" ")+1,Name.length());
-
try {
-
- sint.writeLecturedata(Lecture.lecture.getName(), Lecture.lecture.getShortDesc(), Lecture.lecture.getDesc(), Lecture.lecture.getStartdate(), Lecture.lecture.getEnddate(), Lecture.lecture.isActive(), imagename, person.verantowrtlicher.getVorname(), person.verantowrtlicher.getName(), person.verantowrtlicher.getHochschule(), person.verantowrtlicher.getEMail(), person.verantowrtlicher.getTel(), person.verantowrtlicher.getFakultät());
- } catch (RemoteException e1) {
+ 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();
}
@@ -430,22 +402,26 @@ public class LinkImage_GUI extends JFrame {
}
public DefaultTableModel initTableModel(DefaultTableModel model){
- List<Object[]> images;
+ List<server.Image> images;
try {
- images = sint.getImageList();
- Iterator<Object[]> i=images.iterator();
+ images = client.getImageList();
+ Iterator<server.Image> i=images.iterator();
+ List<Object[]> ListObj = new ArrayList<Object[]>();
int x=0;
while(i.hasNext())
{
- i.next();
- model.addRow(images.get(x));
+ 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()};
+ ListObj.add(obj);
+ model.addRow(ListObj.get(x));
x++;
+
}
return model;
- } catch (RemoteException e1) {
+ } catch (TException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
diff --git a/Dozentenmodul/src/GUI/Login_GUI.java b/Dozentenmodul/src/GUI/Login_GUI.java
index 2a890d56..c982fa7b 100644
--- a/Dozentenmodul/src/GUI/Login_GUI.java
+++ b/Dozentenmodul/src/GUI/Login_GUI.java
@@ -1,4 +1,4 @@
-package GUI;
+package gui;
import java.awt.Dimension;
diff --git a/Dozentenmodul/src/GUI/MainMenue_GUI.java b/Dozentenmodul/src/GUI/MainMenue_GUI.java
index d60ccc72..0f80d372 100644
--- a/Dozentenmodul/src/GUI/MainMenue_GUI.java
+++ b/Dozentenmodul/src/GUI/MainMenue_GUI.java
@@ -1,4 +1,4 @@
-package GUI;
+package gui;
import java.awt.Dimension;
import java.awt.FlowLayout;
diff --git a/Dozentenmodul/src/GUI/SearchImage_GUI.java b/Dozentenmodul/src/GUI/SearchImage_GUI.java
index ecdbf65d..d9ee091f 100644
--- a/Dozentenmodul/src/GUI/SearchImage_GUI.java
+++ b/Dozentenmodul/src/GUI/SearchImage_GUI.java
@@ -1,68 +1,50 @@
-package GUI;
+package gui;
-import java.awt.BorderLayout;
+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 javax.swing.JFrame;
+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.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
import javax.swing.JButton;
+import javax.swing.JComboBox;
import javax.swing.JDialog;
-import javax.swing.JPanel;
-import javax.swing.ScrollPaneLayout;
-import javax.swing.UIManager;
-import javax.swing.UnsupportedLookAndFeelException;
-import javax.swing.border.Border;
-import javax.swing.border.EmptyBorder;
-import java.awt.Color;
+import javax.swing.JFrame;
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.JMenuBar;
import javax.swing.JMenuItem;
-import Models.Image;
-import Models.person;
-
-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.JPanel;
import javax.swing.JRadioButton;
-import javax.swing.ButtonGroup;
-import javax.swing.JSpinner;
-import javax.swing.SpinnerNumberModel;
-import javax.swing.JTextField;
+import javax.swing.JScrollPane;
+import javax.swing.JSeparator;
import javax.swing.JTabbedPane;
-import java.awt.Panel;
import javax.swing.JTable;
-import javax.swing.plaf.basic.BasicTabbedPaneUI.TabbedPaneLayout;
+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 javax.swing.table.DefaultTableModel;
-import javax.swing.table.TableModel;
-import javax.swing.JScrollPane;
-
-import rmi.RmiClientMethods;
-import server.ServerInterface;
-import java.awt.ScrollPane;
-import java.rmi.RemoteException;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
+import org.apache.thrift.TException;
-import javax.swing.JComboBox;
-import java.awt.event.KeyAdapter;
-import java.awt.event.KeyEvent;
+import server.Server.Client;
+import thrift.ThriftConnection;
@SuppressWarnings("serial")
public class SearchImage_GUI extends JFrame {
@@ -71,14 +53,12 @@ public class SearchImage_GUI extends JFrame {
String[] result;
JRadioButton rdbtnInternetJa;
JRadioButton rdbtnInternetNein;
- JComboBox comboBox;
+ JComboBox<String> comboBox;
JTable tableAllImages;
- private final ButtonGroup buttonGrouplicense = new ButtonGroup();
- private final ButtonGroup buttonGroupInternet = new ButtonGroup();
private JTextField textFieldName;
String[] titles= {"Image-Name", "Lizenzpflichtig", "OS", "Veranstaltung", "Verantwortlicher", "Letztes Update", "Schlagwort"};
- RmiClientMethods rmi=new RmiClientMethods();
- ServerInterface sint=rmi.getInterface();
+ ThriftConnection con=new ThriftConnection();
+ Client client=con.getThriftConnection();
/**
* Launch the application.
@@ -117,7 +97,6 @@ public class SearchImage_GUI extends JFrame {
int top=(screenSize.height - 603) / 2;
int left=(screenSize.width - 722) / 2;
setBounds(left, top, 603, 722);
- //setBounds(100, 100, 603, 722);
final DefaultTableModel modelAll = new DefaultTableModel( titles, 0 );
@@ -184,12 +163,8 @@ public class SearchImage_GUI extends JFrame {
{
modelAll.removeRow(i);
}
- }
-
-
- }
-
-
+ }
+ }
});
textFieldName.setBounds(270, 30, 250, 20);
@@ -209,15 +184,15 @@ public class SearchImage_GUI extends JFrame {
lblErweiterteSuche.setBounds(431, 106, 89, 14);
panel_1.add(lblErweiterteSuche);
- comboBox = new JComboBox();
+ comboBox = new JComboBox<String>();
try {
- List<String> list=sint.getAllOS();
+ List<String> list=client.getAllOS();
comboBox.addItem("");
for(int i=0;i<list.size();i++)
{
comboBox.addItem(list.get(i));
}
- } catch (RemoteException e2) {
+ } catch (TException e2) {
// TODO Auto-generated catch block
e2.printStackTrace();
}
@@ -237,9 +212,7 @@ public class SearchImage_GUI extends JFrame {
{
modelAll.removeRow(i);
}
- }
-
-
+ }
}
}
});
@@ -299,9 +272,7 @@ public class SearchImage_GUI extends JFrame {
tableAllImages.getColumnModel().getColumn(3).sizeWidthToFit();
tableAllImages.getColumnModel().getColumn(4).sizeWidthToFit();
tableAllImages.getColumnModel().getColumn(5).sizeWidthToFit();
-
-
-
+
scrollPaneAllImages.setViewportView(tableAllImages);
tabbedPane.addTab("Alle", null, scrollPaneAllImages, null);
@@ -356,13 +327,6 @@ public class SearchImage_GUI extends JFrame {
});
btnDownload.setBounds(449, 508, 118, 23);
contentPanel.add(btnDownload);
-
-
-
-
-
-
-
{
JPanel buttonPane = new JPanel();
buttonPane.setBounds(0, 640, 597, 33);
@@ -372,10 +336,7 @@ public class SearchImage_GUI extends JFrame {
{
JButton okButton = new JButton("Zur\u00FCck");
okButton.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());
-
+ public void actionPerformed(ActionEvent e) {
MainMenue_GUI main=new MainMenue_GUI();
main.setVisible(true);
dispose();
@@ -389,30 +350,9 @@ public class SearchImage_GUI extends JFrame {
JButton cancelButton = new JButton("Weiter");
cancelButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
-
- String imagename=tableAllImages.getValueAt(tableAllImages.getSelectedRow(), 0).toString();
- String Name=tableAllImages.getValueAt(tableAllImages.getSelectedRow(), 5).toString();
- String Nachname=tableAllImages.getValueAt(tableAllImages.getSelectedRow(), 5).toString().substring(0,Name.indexOf(" ") );
- String Vorname=tableAllImages.getValueAt(tableAllImages.getSelectedRow(), 5).toString().substring(Name.indexOf(" ")+1,Name.length());
- try {
- Map<String, String> map=sint.getPersonData(Vorname, Nachname);
- person.verantowrtlicher.setEMail(map.get("mail"));
- person.verantowrtlicher.setFakultät(map.get("fak"));
- person.verantowrtlicher.setHochschule(map.get("Hochschule"));
- person.verantowrtlicher.setName(map.get("Nachname"));
- person.verantowrtlicher.setTel(map.get("tel"));
- person.verantowrtlicher.setVorname(map.get("Vorname"));
- Image.image.setImagename(imagename);
- //System.out.println(map.get("tel").toString());
- } catch (RemoteException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- }
-
EditImageAllgemein_GUI ea=new EditImageAllgemein_GUI();
ea.setVisible(true);
- dispose();
-
+ dispose();
}
});
cancelButton.setActionCommand("Cancel");
@@ -449,22 +389,26 @@ public class SearchImage_GUI extends JFrame {
}
public DefaultTableModel initTableModel(DefaultTableModel model){
- List<Object[]> images;
+ List<server.Image> images;
try {
- images = sint.getImageList();
- Iterator<Object[]> i=images.iterator();
+ images = client.getImageList();
+ Iterator<server.Image> i=images.iterator();
+ List<Object[]> ListObj = new ArrayList<Object[]>();
int x=0;
while(i.hasNext())
{
- i.next();
- model.addRow(images.get(x));
+ 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()};
+ ListObj.add(obj);
+ model.addRow(ListObj.get(x));
x++;
+
}
return model;
- } catch (RemoteException e1) {
+ } catch (TException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
diff --git a/Dozentenmodul/src/GUI/SearchMethod_GUI.java b/Dozentenmodul/src/GUI/SearchMethod_GUI.java
index b4aa5586..24a12959 100644
--- a/Dozentenmodul/src/GUI/SearchMethod_GUI.java
+++ b/Dozentenmodul/src/GUI/SearchMethod_GUI.java
@@ -1,40 +1,36 @@
-package GUI;
+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 javax.swing.JFrame;
+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.JOptionPane;
+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 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 Models.Image;
-import Models.person;
-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;
@SuppressWarnings("serial")
public class SearchMethod_GUI extends JFrame {
diff --git a/Dozentenmodul/src/GUI/Summary.java b/Dozentenmodul/src/GUI/Summary.java
deleted file mode 100644
index 38c69ad1..00000000
--- a/Dozentenmodul/src/GUI/Summary.java
+++ /dev/null
@@ -1,442 +0,0 @@
-package GUI;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.List;
-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 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.JMenuItem;
-import javax.swing.JMenu;
-import Models.*;
-import Models.vm;
-import javax.swing.JTextArea;
-import javax.swing.JScrollPane;
-import javax.swing.JTabbedPane;
-import java.awt.Panel;
-import java.text.SimpleDateFormat;
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
-
-
-@SuppressWarnings("serial")
-public class Summary extends JFrame {
- String[] result;
-
- /**
- * Launch the application.
- */
- public static void main(String[] args) {
- try {
- Summary dialog = new Summary();
- dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
- dialog.setVisible(true);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- /**
- * Create the dialog.
- */
- public Summary() {
- 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 - 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.setBounds(0, 0, 577, 68);
- getContentPane().add(panel);
- panel.setLayout(null);
- {
- JLabel lblNewLabel = new JLabel("Fertig stellen (Schritt 7 von 7)");
- lblNewLabel.setBounds(10, 11, 391, 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 laden Sie nun ihre fertige VL mithilfe des Uploaders auf den Server.");
- txtpnBitteWhlenSie.setBounds(10, 36, 391, 42);
- panel.add(txtpnBitteWhlenSie);
- }
-
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setBounds(0, 627, 577, 36);
- 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) {
- Freigabe ea=new Freigabe();
- ea.setVisible(true);
- dispose();
- }
- });
- okButton.setActionCommand("OK");
- buttonPane.add(okButton);
- getRootPane().setDefaultButton(okButton);
- }
- {
- JButton cancelButton = new JButton("Fertig");
- cancelButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
-
- System.exit(0);
- }
- });
- cancelButton.setActionCommand("Cancel");
- buttonPane.add(cancelButton);
- }
- }
-
- JSeparator separator = new JSeparator();
- separator.setBounds(0, 79, 587, 2);
- getContentPane().add(separator);
-
- JSeparator separator_1 = new JSeparator();
- separator_1.setBounds(0, 614, 587, 2);
- getContentPane().add(separator_1);
-
- JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
- tabbedPane.setBounds(10, 111, 567, 458);
-
-
- getContentPane().add(tabbedPane);
-
- Panel panel = new Panel();
- panel.setBackground(Color.WHITE);
- tabbedPane.addTab("Allgemein", null, panel, null);
- panel.setLayout(null);
-
- JLabel label = new JLabel("Ersteller");
- label.setFont(new Font("Tahoma", Font.PLAIN, 14));
- label.setBounds(264, 11, 251, 14);
- panel.add(label);
-
- JLabel label_1 = new JLabel("Vorname:");
- label_1.setBounds(10, 36, 65, 14);
- panel.add(label_1);
-
- JLabel label_2 = new JLabel("Vorname:");
- label_2.setBounds(264, 36, 65, 14);
- panel.add(label_2);
-
- JLabel label_3 = new JLabel("Nachname:");
- label_3.setBounds(10, 61, 65, 14);
- panel.add(label_3);
-
- JLabel label_4 = new JLabel("Nachname:");
- label_4.setBounds(264, 61, 65, 14);
- panel.add(label_4);
-
- JLabel label_5 = new JLabel("Hochschule:");
- label_5.setBounds(10, 86, 65, 14);
- panel.add(label_5);
-
- JLabel label_6 = new JLabel("Hochschule:");
- label_6.setBounds(264, 86, 65, 14);
- panel.add(label_6);
-
- JLabel label_Vorname_V = new JLabel((String) null);
- label_Vorname_V.setText(personData.verantowrtlicher.getVorname());
- label_Vorname_V.setBounds(85, 36, 169, 14);
- panel.add(label_Vorname_V);
-
- JLabel label_Vorname_E = new JLabel((String) null);
- label_Vorname_E.setText(personData.ersteller.getVorname());
- label_Vorname_E.setBounds(339, 36, 169, 14);
- panel.add(label_Vorname_E);
-
- JLabel label_Nachname_E = new JLabel((String) null);
- label_Nachname_E.setText(personData.ersteller.getName());
- label_Nachname_E.setBounds(339, 61, 169, 14);
- panel.add(label_Nachname_E);
-
- JLabel label_Nachname_V = new JLabel((String) null);
- label_Nachname_V.setText(personData.verantowrtlicher.getName());
- label_Nachname_V.setBounds(85, 61, 169, 14);
- panel.add(label_Nachname_V);
-
- JLabel label_Hochschule_V = new JLabel((String) null);
- label_Hochschule_V.setText(personData.verantowrtlicher.getHochschule());
- label_Hochschule_V.setBounds(85, 86, 169, 14);
- panel.add(label_Hochschule_V);
-
- JLabel label_Hochschule_E = new JLabel((String) null);
- label_Hochschule_E.setText(personData.ersteller.getHochschule());
- label_Hochschule_E.setBounds(339, 86, 169, 14);
- panel.add(label_Hochschule_E);
-
- JLabel label_Mail_E = new JLabel((String) null);
- label_Mail_E.setText(personData.ersteller.getEMail());
- label_Mail_E.setBounds(339, 111, 169, 14);
- panel.add(label_Mail_E);
-
- JLabel label_14 = new JLabel("E-Mail:");
- label_14.setBounds(264, 111, 65, 14);
- panel.add(label_14);
-
- JLabel label_Mail_V = new JLabel((String) null);
- label_Mail_V.setText(personData.verantowrtlicher.getEMail());
- label_Mail_V.setBounds(85, 111, 169, 14);
- panel.add(label_Mail_V);
-
- JLabel label_16 = new JLabel("E-Mail:");
- label_16.setBounds(10, 111, 65, 14);
- panel.add(label_16);
-
- JLabel label_17 = new JLabel("Tel.-Nummer:");
- label_17.setBounds(10, 136, 65, 14);
- panel.add(label_17);
-
- JLabel label_Tel_V = new JLabel((String) null);
- label_Tel_V.setText(personData.verantowrtlicher.getTel());
- label_Tel_V.setBounds(85, 136, 169, 14);
- panel.add(label_Tel_V);
-
- JLabel label_19 = new JLabel("Tel.-Nummer:");
- label_19.setBounds(264, 136, 65, 14);
- panel.add(label_19);
-
- JLabel label_Tel_E = new JLabel((String) null);
- label_Tel_E.setText(personData.ersteller.getTel());
- label_Tel_E.setBounds(339, 136, 169, 14);
- panel.add(label_Tel_E);
-
- JLabel label_Fak_E = new JLabel((String) null);
- label_Fak_E.setText(personData.ersteller.getFakultät());
- label_Fak_E.setBounds(339, 161, 169, 14);
- panel.add(label_Fak_E);
-
- JLabel label_22 = new JLabel("Fakult\u00E4t:");
- label_22.setBounds(264, 161, 65, 14);
- panel.add(label_22);
-
- JLabel label_Fak_V = new JLabel((String) null);
- label_Fak_V.setText(personData.verantowrtlicher.getFakultät());
- label_Fak_V.setBounds(85, 161, 169, 14);
- panel.add(label_Fak_V);
-
- JLabel label_24 = new JLabel("Fakult\u00E4t:");
- label_24.setBounds(10, 161, 65, 14);
- panel.add(label_24);
-
- JLabel label_25 = new JLabel("Verantwortlicher");
- label_25.setFont(new Font("Tahoma", Font.PLAIN, 14));
- label_25.setBounds(10, 11, 244, 14);
- panel.add(label_25);
-
- JButton btnZurDateneingabe = new JButton("Daten \u00E4ndern");
- btnZurDateneingabe.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- EingabeImageAllgemein_GUI ea=new EingabeImageAllgemein_GUI();
- ea.setVisible(true);
- setVisible(false);
- }
- });
- btnZurDateneingabe.setBounds(10, 186, 132, 23);
- panel.add(btnZurDateneingabe);
-
- Panel panel_1 = new Panel();
- panel_1.setBackground(Color.WHITE);
- tabbedPane.addTab("Systeminformationen", null, panel_1, null);
- panel_1.setLayout(null);
-
- JLabel label_end = new JLabel((String) null);
- SimpleDateFormat fmt = new SimpleDateFormat("dd.MM.yyyy HH:mm:ss");
- String Date_End=fmt.format(vm.vl.getEnd());
- label_end.setText(Date_End);
- label_end.setBounds(318, 310, 197, 14);
- panel_1.add(label_end);
-
- JLabel label_27 = new JLabel("bis");
- label_27.setBounds(262, 310, 46, 14);
- panel_1.add(label_27);
-
- JLabel label_begin = new JLabel((String) null);
- String Date_Begin=fmt.format(vm.vl.getBegin());
- label_begin.setText(Date_Begin);
- label_begin.setBounds(120, 310, 134, 14);
- panel_1.add(label_begin);
-
- JLabel label_29 = new JLabel("G\u00FCltig von");
- label_29.setBounds(10, 310, 100, 14);
- panel_1.add(label_29);
-
- JLabel label_30 = new JLabel("Betriebssystem:");
- label_30.setBounds(10, 285, 100, 14);
- panel_1.add(label_30);
-
- JLabel label_OS = new JLabel((String) null);
- label_OS.setText(vm.vl.getOS());
- label_OS.setBounds(120, 285, 395, 14);
- panel_1.add(label_OS);
-
- JScrollPane scrollPane_3 = new JScrollPane();
- scrollPane_3.setBounds(121, 201, 393, 72);
- panel_1.add(scrollPane_3);
-
- JTextArea textArea_comment = new JTextArea();
- textArea_comment.setFont(new Font("Tahoma", Font.PLAIN, 11));
- textArea_comment.setText(vm.vl.getComment());
- scrollPane_3.setViewportView(textArea_comment);
- textArea_comment.setEditable(false);
-
- JLabel label_32 = new JLabel("Kommentar:");
- label_32.setBounds(10, 200, 100, 14);
- panel_1.add(label_32);
-
- JScrollPane scrollPane_2 = new JScrollPane();
- scrollPane_2.setBounds(121, 117, 393, 72);
- panel_1.add(scrollPane_2);
-
- JTextArea textArea_long = new JTextArea();
- textArea_long.setFont(new Font("Tahoma", Font.PLAIN, 11));
- textArea_long.setText(vm.vl.getLongDesc());
- scrollPane_2.setViewportView(textArea_long);
- textArea_long.setEditable(false);
-
- JLabel label_33 = new JLabel("Langbeschreibung:");
- label_33.setBounds(10, 116, 100, 14);
- panel_1.add(label_33);
-
- JScrollPane scrollPane_1 = new JScrollPane();
- scrollPane_1.setBounds(121, 37, 393, 72);
- panel_1.add(scrollPane_1);
-
- JTextArea textArea_short = new JTextArea();
- textArea_short.setFont(new Font("Tahoma", Font.PLAIN, 11));
- textArea_short.setText(vm.vl.getShortDesc());
- scrollPane_1.setViewportView(textArea_short);
- textArea_short.setEditable(false);
-
- JLabel label_34 = new JLabel("Kurzbeschreibung:");
- label_34.setBounds(10, 36, 100, 14);
- panel_1.add(label_34);
-
- JLabel label_35 = new JLabel("Laborname:");
- label_35.setBounds(10, 11, 100, 14);
- panel_1.add(label_35);
-
- JLabel label_Laborname = new JLabel((String) null);
- label_Laborname.setText(vm.vl.getLaborname());
- label_Laborname.setBounds(120, 11, 395, 14);
- panel_1.add(label_Laborname);
-
- JButton btnDatenndern = new JButton("Daten \u00E4ndern");
- btnDatenndern.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- EingabeSystemDaten es=new EingabeSystemDaten();
- es.setVisible(true);
- setVisible(false);
- }
- });
- btnDatenndern.setBounds(10, 335, 132, 23);
- panel_1.add(btnDatenndern);
-
- Panel panel_2 = new Panel();
- panel_2.setBackground(Color.WHITE);
- tabbedPane.addTab("Software", null, panel_2, null);
- panel_2.setLayout(null);
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBounds(11, 37, 541, 334);
- panel_2.add(scrollPane);
-
- List list_sw = new List();
- list_sw.setEnabled(false);
- List temp=vm.vl.getSoftware();
- for(int i=0;i<temp.getItemCount();i++)
- {
- list_sw.add(temp.getItem(i));
- }
- scrollPane.setViewportView(list_sw);
-
- JLabel lblInstallierteSoftware = new JLabel("Installierte Software");
- lblInstallierteSoftware.setFont(new Font("Tahoma", Font.PLAIN, 14));
- lblInstallierteSoftware.setBounds(10, 11, 171, 14);
- panel_2.add(lblInstallierteSoftware);
-
- JButton btnDatenndern_1 = new JButton("Daten \u00E4ndern");
- btnDatenndern_1.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- EingabeSoftwareDaten es=new EingabeSoftwareDaten();
- es.setVisible(true);
- setVisible(false);
- }
- });
- btnDatenndern_1.setBounds(11, 382, 132, 23);
- panel_2.add(btnDatenndern_1);
-
- JLabel lblZusammenfassung = new JLabel("Zusammenfassung");
- lblZusammenfassung.setFont(new Font("Tahoma", Font.PLAIN, 16));
- lblZusammenfassung.setBounds(10, 86, 223, 20);
- getContentPane().add(lblZusammenfassung);
-
- JButton btnUploadtoolStarten = new JButton("Uploadtool starten");
- btnUploadtoolStarten.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- FTPUploader_GUI up=new FTPUploader_GUI();
- up.setVisible(true);
- }
- });
- btnUploadtoolStarten.setBounds(439, 580, 138, 23);
- getContentPane().add(btnUploadtoolStarten);
-
- JMenuBar menuBar = new JMenuBar();
- setJMenuBar(menuBar);
-
- JMenu mnSuchen = new JMenu("Suchen");
- menuBar.add(mnSuchen);
-
- JMenuItem mntmVlSuche = new JMenuItem("VL Suche");
- mnSuchen.add(mntmVlSuche);
-
- JMenu mnHilfe = new JMenu("Hilfe");
- menuBar.add(mnHilfe);
-
- JMenuItem mntmFaq = new JMenuItem("FAQ");
- mnHilfe.add(mntmFaq);
-
- JMenuItem mntmOtrs = new JMenuItem("OTRS");
- mnHilfe.add(mntmOtrs);
-
-
-
- }
-}
diff --git a/Dozentenmodul/src/GUI/VmWareLink_GUI.java b/Dozentenmodul/src/GUI/VmWareLink_GUI.java
index 8cc28b39..b803ee44 100644
--- a/Dozentenmodul/src/GUI/VmWareLink_GUI.java
+++ b/Dozentenmodul/src/GUI/VmWareLink_GUI.java
@@ -1,4 +1,4 @@
-package GUI;
+package gui;
import java.awt.Desktop;
import java.awt.Dimension;
diff --git a/Dozentenmodul/src/GUI/searchRohling.java b/Dozentenmodul/src/GUI/searchRohling.java
deleted file mode 100644
index 3c322901..00000000
--- a/Dozentenmodul/src/GUI/searchRohling.java
+++ /dev/null
@@ -1,236 +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 javax.swing.JTextField;
-import java.awt.event.KeyAdapter;
-import java.awt.event.KeyEvent;
-import java.net.SocketException;
-import java.rmi.RemoteException;
-import java.security.NoSuchAlgorithmException;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.awt.List;
-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 downloader.FTPException;
-import downloader.FTPUtility;
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
-import javax.swing.JComboBox;
-import javax.swing.DefaultComboBoxModel;
-
-import rmi.RmiClientMethods;
-import server.ServerInterface;
-
-import Models.User;
-
-@SuppressWarnings("serial")
-public class searchRohling extends JFrame {
-
- private final JPanel contentPanel = new JPanel();
- private JTextField textFieldsearch;
- List list;
- ArrayList<String> result;
- String host="141.79.128.121";
- User user;
- int port=21;
- RmiClientMethods rmi=new RmiClientMethods();
- ServerInterface sint=rmi.getInterface();
- //FTPUtility f=new FTPUtility(host, port, user.getUsername(), user.getPass());
- /**
- * Launch the application.
- */
- public static void main(String[] args) {
- try {
- searchRohling dialog = new searchRohling();
- dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
- dialog.setVisible(true);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- /**
- * Create the dialog.
- */
-
- public searchRohling() {
- getContentPane().setEnabled(false);
- 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 - 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.setBounds(0, 0, 577, 71);
- getContentPane().add(panel);
- panel.setLayout(null);
- {
- JLabel lblNewLabel = new JLabel("Rohling ausw\u00E4hlen (Schritt 1 von 7)");
- 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 w\u00E4hlen Sie nun Ihr gew\u00FCnschtes Rohling aus und klicken Sie auf Download. Sollten Sie schon im Besitz Ihres gew\u00FCnschten Rohlings sein klicken Sie auf weiter.");
- txtpnBitteWhlenSie.setBounds(10, 36, 509, 42);
- panel.add(txtpnBitteWhlenSie);
- }
- contentPanel.setBounds(10, 126, 567, 446);
- contentPanel.setBackground(Color.WHITE);
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- getContentPane().add(contentPanel);
- contentPanel.setLayout(null);
-
- list = new List();
- list.setBounds(10, 10, 547, 426);
- contentPanel.add(list);
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setBounds(0, 630, 587, 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 arg0) {
- MainMenue_GUI ac=new MainMenue_GUI();
- ac.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 arg0) {
- VmWareLink_GUI vp=new VmWareLink_GUI();
- vp.setVisible(true);
- dispose();
- }
- });
- cancelButton.setActionCommand("Cancel");
- buttonPane.add(cancelButton);
- }
- }
-
- JButton btnDownload = new JButton("Download");
- btnDownload.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- FTPDownloader_GUI ftp=new FTPDownloader_GUI(list.getItem(list.getSelectedIndex()).toString());
- ftp.setVisible(true);
- }
- });
- btnDownload.setBounds(488, 583, 89, 23);
- getContentPane().add(btnDownload);
-
- textFieldsearch = new JTextField();
- textFieldsearch.addKeyListener(new KeyAdapter() {
- @Override
- public void keyReleased(KeyEvent arg0) {
- System.out.println(textFieldsearch.getText().toString());}}
- /*list.removeAll();
- for(int i=0;i<result.length;i++)
- {
- if(result[i]!=null)
- list.add(result[i]);
-
- }
- }
- }*/);
- textFieldsearch.setBounds(91, 95, 166, 20);
- getContentPane().add(textFieldsearch);
- textFieldsearch.setColumns(10);
-
- JSeparator separator = new JSeparator();
- separator.setBounds(0, 617, 587, 2);
- getContentPane().add(separator);
-
- JSeparator separator_1 = new JSeparator();
- separator_1.setBounds(0, 82, 587, 2);
- getContentPane().add(separator_1);
-
- JLabel lblName = new JLabel("Name:");
- lblName.setBounds(10, 98, 71, 14);
- getContentPane().add(lblName);
-
- JMenuBar menuBar = new JMenuBar();
- setJMenuBar(menuBar);
-
- JMenu mnNewMenu = new JMenu("Suche");
- 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);
-
-try {
- result=sint.getImages();
-
- for(int i=0; i<result.size();i++)
- {
- System.out.println(result.get(i).toString());
- list.add(result.get(i).toString());
- }
-
- //list.removeAll();
-
- } catch (RemoteException e2) {
- // TODO Auto-generated catch block
- e2.printStackTrace();
- }
-
-
- }
-}
diff --git a/Dozentenmodul/src/Jsch/scriptExecutor.java b/Dozentenmodul/src/Jsch/scriptExecutor.java
deleted file mode 100644
index 0ded43b8..00000000
--- a/Dozentenmodul/src/Jsch/scriptExecutor.java
+++ /dev/null
@@ -1,61 +0,0 @@
-package Jsch;
-
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.util.Properties;
-import com.jcraft.jsch.ChannelExec;
-import com.jcraft.jsch.JSch;
-import com.jcraft.jsch.JSchException;
-import com.jcraft.jsch.Session;
-
-public class scriptExecutor {
-
- /**
- * @param args
- */
- public static void main(String[] args) {
- // TODO Auto-generated method stub
- executeScript();
- }
-
- public static void executeScript()
- {
- JSch j=new JSch();
-
- try {
- Session se=j.getSession("root", "141.79.128.121", 22);
-
- Properties config = new Properties();
- config.setProperty("StrictHostKeyChecking", "no");
- se.setConfig(config);
- se.setPassword("!N4ye,04u.");
- se.connect();
- ChannelExec ch=(ChannelExec) se.openChannel("exec");
- InputStream is=ch.getInputStream();
-
- ch.setCommand("sh /home/openslx/hello.sh 'test'");
- //ch.setCommand("ls");
- ch.connect();
-
- BufferedReader reader = new BufferedReader(new InputStreamReader(is));
- String line;
- int index = 0;
-
- while ((line = reader.readLine()) != null)
- {
- System.out.println(++index + " : " + line);
- }
-
- ch.disconnect();
- se.disconnect();
-
- System.out.println("Done!");
- } catch (JSchException | IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
-
-}
diff --git a/Dozentenmodul/src/Models/Image.java b/Dozentenmodul/src/Models/Image.java
index aafc7372..f16a7594 100644
--- a/Dozentenmodul/src/Models/Image.java
+++ b/Dozentenmodul/src/Models/Image.java
@@ -1,54 +1,43 @@
-package Models;
+package models;
public class Image {
-
- private String Imagename;
- private boolean licenseneed;
+ private String imagename;
+ private boolean licensed;
private boolean internet;
private int ram;
private int cpu;
- public static Image image=new Image();
+ public static Image image =new Image();
+
public String getImagename() {
- return Imagename;
+ return imagename;
}
-
public void setImagename(String imagename) {
- Imagename = imagename;
+ this.imagename = imagename;
}
-
- public boolean isLicenseneed() {
- return licenseneed;
+ public boolean isLicensed() {
+ return licensed;
}
-
- public void setLicenseneed(boolean licenseneed) {
- this.licenseneed = licenseneed;
+ public void setLicensed(boolean licensed) {
+ this.licensed = licensed;
}
-
public boolean isInternet() {
return internet;
}
-
public void setInternet(boolean internet) {
this.internet = internet;
}
-
public int getRam() {
return ram;
}
-
public void setRam(int ram) {
this.ram = ram;
}
-
public int getCpu() {
return cpu;
}
-
public void setCpu(int cpu) {
this.cpu = cpu;
}
-
-
}
diff --git a/Dozentenmodul/src/Models/Lecture.java b/Dozentenmodul/src/Models/Lecture.java
index 4eb755e9..383bded9 100644
--- a/Dozentenmodul/src/Models/Lecture.java
+++ b/Dozentenmodul/src/Models/Lecture.java
@@ -1,4 +1,4 @@
-package Models;
+package models;
import java.util.Date;
diff --git a/Dozentenmodul/src/Models/person.java b/Dozentenmodul/src/Models/person.java
index 46b7ec69..c106ec12 100644
--- a/Dozentenmodul/src/Models/person.java
+++ b/Dozentenmodul/src/Models/person.java
@@ -1,6 +1,5 @@
-package Models;
+package models;
-import java.io.Serializable;
public class person{
diff --git a/Dozentenmodul/src/Models/vm.java b/Dozentenmodul/src/Models/vm.java
index bfe81c29..07074cf9 100644
--- a/Dozentenmodul/src/Models/vm.java
+++ b/Dozentenmodul/src/Models/vm.java
@@ -1,4 +1,4 @@
-package Models;
+package models;
import java.awt.List;
import java.util.Date;
diff --git a/Dozentenmodul/src/downloader/DownloadTask.java b/Dozentenmodul/src/ftp/DownloadTask.java
index 9cae23ed..8a643325 100644
--- a/Dozentenmodul/src/downloader/DownloadTask.java
+++ b/Dozentenmodul/src/ftp/DownloadTask.java
@@ -1,111 +1,112 @@
-package downloader;
-
-import java.io.File;
-import java.io.FileOutputStream;
-import java.io.InputStream;
-
-import javax.swing.JOptionPane;
-import javax.swing.SwingWorker;
-import GUI.FTPDownloader_GUI;
-
-/**
- * Execute file download in a background thread and update the progress.
- * @author www.codejava.net
- *
- */
-public class DownloadTask extends SwingWorker<Void, Void> {
-
- private static final int BUFFER_SIZE = 4096;
-
- private String host;
- private int port;
- private String username;
- private String password;
-
- private String downloadPath;
- private String saveDir;
-
- @SuppressWarnings("unused")
- private FTPDownloader_GUI gui;
-
- public DownloadTask(String host, int port, String username,
- String password, String downloadPath, String saveDir,
- FTPDownloader_GUI gui) {
- this.host = host;
- this.port = port;
- this.username = username;
- this.password = password;
- this.downloadPath = downloadPath;
- this.saveDir = saveDir;
- this.gui = gui;
-
- }
-
- /**
- * Executed in background thread
- */
- @Override
- protected Void doInBackground() throws Exception {
- FTPUtility util = new FTPUtility(host, port, username, password);
- try {
- util.connect();
-
- byte[] buffer = new byte[BUFFER_SIZE];
- int bytesRead = -1;
- long totalBytesRead = 0;
- int percentCompleted = 0;
- long start=System.nanoTime();
- final double NANOS_PER_SECOND = 1000000000.0;
- final double BYTES_PER_MIB = 1024*1024;
- long fileSize = util.getFileSize(downloadPath);
- //gui.setFileSize(fileSize);
-
- String fileName = new File(downloadPath).getName();
-
- File downloadFile = new File(saveDir + File.separator + fileName);
- FileOutputStream outputStream = new FileOutputStream(downloadFile);
-
- util.downloadFile(downloadPath);
- InputStream inputStream = util.getInputStream();
-
- while ((bytesRead = inputStream.read(buffer)) != -1 && isCancelled()==false) {
- outputStream.write(buffer, 0, bytesRead);
- totalBytesRead += bytesRead;
- //System.out.println(totalBytesRead);
- double speed = NANOS_PER_SECOND / BYTES_PER_MIB * totalBytesRead / (System.nanoTime() - start + 1);
- percentCompleted = (int) (totalBytesRead * 100 / fileSize);
- setProgress(percentCompleted);
- firePropertyChange("speed", 0, speed);
- firePropertyChange("filesize", 0,fileSize);
- firePropertyChange("bytesread", 0,totalBytesRead);
-
- }
-
- outputStream.close();
-
- util.finish();
- } catch (FTPException ex) {
- JOptionPane.showMessageDialog(null, "Error downloading file: " + ex.getMessage(),
- "Error", JOptionPane.ERROR_MESSAGE);
- ex.printStackTrace();
- setProgress(0);
- cancel(true);
- } finally {
- util.disconnect();
- }
-
- return null;
- }
-
- /**
- * Executed in Swing's event dispatching thread
- */
- @Override
- protected void done() {
- if (!isCancelled()) {
- JOptionPane.showMessageDialog(null,
- "File has been downloaded successfully!", "Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- }
+package ftp;
+
+import gui.FTPDownloader_GUI;
+
+import java.io.File;
+import java.io.FileOutputStream;
+import java.io.InputStream;
+
+import javax.swing.JOptionPane;
+import javax.swing.SwingWorker;
+
+/**
+ * Execute file download in a background thread and update the progress.
+ * @author www.codejava.net
+ *
+ */
+public class DownloadTask extends SwingWorker<Void, Void> {
+
+ private static final int BUFFER_SIZE = 4096;
+
+ private String host;
+ private int port;
+ private String username;
+ private String password;
+
+ private String downloadPath;
+ private String saveDir;
+
+ @SuppressWarnings("unused")
+ private FTPDownloader_GUI gui;
+
+ public DownloadTask(String host, int port, String username,
+ String password, String downloadPath, String saveDir,
+ FTPDownloader_GUI gui) {
+ this.host = host;
+ this.port = port;
+ this.username = username;
+ this.password = password;
+ this.downloadPath = downloadPath;
+ this.saveDir = saveDir;
+ this.gui = gui;
+
+ }
+
+ /**
+ * Executed in background thread
+ */
+ @Override
+ protected Void doInBackground() throws Exception {
+ FTPUtility util = new FTPUtility(host, port, username, password);
+ try {
+ util.connect();
+
+ byte[] buffer = new byte[BUFFER_SIZE];
+ int bytesRead = -1;
+ long totalBytesRead = 0;
+ int percentCompleted = 0;
+ long start=System.nanoTime();
+ final double NANOS_PER_SECOND = 1000000000.0;
+ final double BYTES_PER_MIB = 1024*1024;
+ long fileSize = util.getFileSize(downloadPath);
+ //gui.setFileSize(fileSize);
+
+ String fileName = new File(downloadPath).getName();
+
+ File downloadFile = new File(saveDir + File.separator + fileName);
+ FileOutputStream outputStream = new FileOutputStream(downloadFile);
+
+ util.downloadFile(downloadPath);
+ InputStream inputStream = util.getInputStream();
+
+ while ((bytesRead = inputStream.read(buffer)) != -1 && isCancelled()==false) {
+ outputStream.write(buffer, 0, bytesRead);
+ totalBytesRead += bytesRead;
+ //System.out.println(totalBytesRead);
+ double speed = NANOS_PER_SECOND / BYTES_PER_MIB * totalBytesRead / (System.nanoTime() - start + 1);
+ percentCompleted = (int) (totalBytesRead * 100 / fileSize);
+ setProgress(percentCompleted);
+ firePropertyChange("speed", 0, speed);
+ firePropertyChange("filesize", 0,fileSize);
+ firePropertyChange("bytesread", 0,totalBytesRead);
+
+ }
+
+ outputStream.close();
+
+ util.finish();
+ } catch (FTPException ex) {
+ JOptionPane.showMessageDialog(null, "Error downloading file: " + ex.getMessage(),
+ "Error", JOptionPane.ERROR_MESSAGE);
+ ex.printStackTrace();
+ setProgress(0);
+ cancel(true);
+ } finally {
+ util.disconnect();
+ }
+
+ return null;
+ }
+
+ /**
+ * Executed in Swing's event dispatching thread
+ */
+ @Override
+ protected void done() {
+ if (!isCancelled()) {
+ JOptionPane.showMessageDialog(null,
+ "File has been downloaded successfully!", "Message",
+ JOptionPane.INFORMATION_MESSAGE);
+ }
+ }
} \ No newline at end of file
diff --git a/Dozentenmodul/src/downloader/FTPException.java b/Dozentenmodul/src/ftp/FTPException.java
index 33ba32be..bc3193e0 100644
--- a/Dozentenmodul/src/downloader/FTPException.java
+++ b/Dozentenmodul/src/ftp/FTPException.java
@@ -1,8 +1,8 @@
-package downloader;
-
-@SuppressWarnings("serial")
-public class FTPException extends Exception {
- public FTPException(String message) {
- super(message);
- }
+package ftp;
+
+@SuppressWarnings("serial")
+public class FTPException extends Exception {
+ public FTPException(String message) {
+ super(message);
+ }
} \ No newline at end of file
diff --git a/Dozentenmodul/src/downloader/FTPUtility.java b/Dozentenmodul/src/ftp/FTPUtility.java
index bc45e69f..c62ba07d 100644
--- a/Dozentenmodul/src/downloader/FTPUtility.java
+++ b/Dozentenmodul/src/ftp/FTPUtility.java
@@ -1,230 +1,230 @@
-package downloader;
-
-import java.io.File;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.net.SocketException;
-import java.security.NoSuchAlgorithmException;
-import org.apache.commons.net.ftp.FTP;
-import org.apache.commons.net.ftp.FTPFile;
-import org.apache.commons.net.ftp.FTPReply;
-import org.apache.commons.net.ftp.FTPSClient;
-
-
-/**
- * A utility class that provides functionality for downloading files from a FTP
- * server.
- *
- * @author www.codejava.net
- *
- */
-public class FTPUtility {
-
- // FTP server information
- private String host;
- private int port;
- private String username;
- private String password;
-
- private FTPSClient ftpClient = new FTPSClient();
- private int replyCode;
-
- private InputStream inputStream;
- private OutputStream outputStream;
-
- public FTPUtility(String host, int port, String user, String pass) {
- this.host = host;
- this.port = port;
- this.username = user;
- this.password = pass;
- }
-
- /**
- * Connect and login to the server.
- *
- * @throws FTPException
- * @throws NoSuchAlgorithmException
- */
- public void connect() throws FTPException, NoSuchAlgorithmException {
- try {
- ftpClient.connect(host, port);
- replyCode = ftpClient.getReplyCode();
- if (!FTPReply.isPositiveCompletion(replyCode)) {
- throw new FTPException("FTP serve refused connection.");
- }
-
-
- boolean logged = ftpClient.login(username, password);
- if (!logged) {
- // failed to login
- ftpClient.execPROT("P");
- ftpClient.disconnect();
- throw new FTPException("Could not login to the server.");
- }
-
- ftpClient.enterLocalPassiveMode();
-
- } catch (IOException ex) {
- throw new FTPException("I/O error: " + ex.getMessage());
- }
- }
-
- /**
- * Gets size (in bytes) of the file on the server.
- *
- * @param filePath
- * Path of the file on server
- * @return file size in bytes
- * @throws FTPException
- */
- public long getFileSize(String filePath) throws FTPException {
- try {
- FTPFile file = ftpClient.mlistFile(filePath);
- if (file == null) {
- throw new FTPException("The file may not exist on the server!");
- }
- return file.getSize();
- } catch (IOException ex) {
- throw new FTPException("Could not determine size of the file: "
- + ex.getMessage());
- }
- }
-
- /**
- * Start downloading a file from the server
- *
- * @param downloadPath
- * Full path of the file on the server
- * @throws FTPException
- * if client-server communication error occurred
- */
- public void downloadFile(String downloadPath) throws FTPException {
- try {
-
- boolean success = ftpClient.setFileType(FTP.BINARY_FILE_TYPE);
- if (!success) {
- throw new FTPException("Could not set binary file type.");
- }
-
- inputStream = ftpClient.retrieveFileStream(downloadPath);
-
- if (inputStream == null) {
- throw new FTPException(
- "Could not open input stream. The file may not exist on the server.");
- }
- } catch (IOException ex) {
- throw new FTPException("Error downloading file: " + ex.getMessage());
- }
- }
-
-
- /**
- * Start uploading a file to the server
- * @param uploadFile the file to be uploaded
- * @param destDir destination directory on the server
- * where the file is stored
- * @throws FTPException if client-server communication error occurred
- */
- public void uploadFile(File uploadFile, String destDir) throws FTPException {
- try {
- boolean success = ftpClient.changeWorkingDirectory(destDir);
- if (!success) {
- throw new FTPException("Could not change working directory to "
- + destDir + ". The directory may not exist.");
- }
-
- success = ftpClient.setFileType(FTP.BINARY_FILE_TYPE);
- if (!success) {
- throw new FTPException("Could not set binary file type.");
- }
-
- outputStream = ftpClient.storeFileStream(uploadFile.getName());
- // ftpClient.rename(uploadFile.getName(), vm.vl.getLaborname());
- } catch (IOException ex) {
- throw new FTPException("Error uploading file: " + ex.getMessage());
- }
- }
-
- /**
- * Write an array of bytes to the output stream.
- */
- public void writeFileBytes(byte[] bytes, int offset, int length)
- throws IOException {
- outputStream.write(bytes, offset, length);
- }
-
- /**
- * Complete the download operation.
- */
- public void finish() throws IOException {
- inputStream.close();
- ftpClient.completePendingCommand();
- }
-
- /**
- * Log out and disconnect from the server
- */
- public void disconnect() throws FTPException {
- if (ftpClient.isConnected()) {
- try {
- if (!ftpClient.logout()) {
- throw new FTPException("Could not log out from the server");
- }
- ftpClient.disconnect();
- } catch (IOException ex) {
- throw new FTPException("Error disconnect from the server: "
- + ex.getMessage());
- }
- }
- }
-
- /**
- * Return InputStream of the remote file on the server.
- */
- public InputStream getInputStream() {
- return inputStream;
- }
-
- public OutputStream getOutputStream() {
- return outputStream;
- }
-
- public String[] getAllRohling(String SearchString) throws SocketException
- {
- //FTPClient ftp=new FTPClient();
-
- String[] filenamelist;
-
-
- try {
-
-
- ftpClient.changeWorkingDirectory("/home/openslx/images");
- filenamelist=ftpClient.listNames();
-
- String[] search=new String[filenamelist.length];
- for(int i=0;i<filenamelist.length;i++)
- {
- /*if(filenamelist[i].startsWith(SearchString)==true)
- {
- search[i]=filenamelist[i];
- }*/
-
- if(filenamelist[i].contains(SearchString)==true)
- {
- search[i]=filenamelist[i];
- }
- }
- return search;
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
-
-
- return null;
- }
-
+package ftp;
+
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.net.SocketException;
+import java.security.NoSuchAlgorithmException;
+import org.apache.commons.net.ftp.FTP;
+import org.apache.commons.net.ftp.FTPFile;
+import org.apache.commons.net.ftp.FTPReply;
+import org.apache.commons.net.ftp.FTPSClient;
+
+
+/**
+ * A utility class that provides functionality for downloading files from a FTP
+ * server.
+ *
+ * @author www.codejava.net
+ *
+ */
+public class FTPUtility {
+
+ // FTP server information
+ private String host;
+ private int port;
+ private String username;
+ private String password;
+
+ private FTPSClient ftpClient = new FTPSClient();
+ private int replyCode;
+
+ private InputStream inputStream;
+ private OutputStream outputStream;
+
+ public FTPUtility(String host, int port, String user, String pass) {
+ this.host = host;
+ this.port = port;
+ this.username = user;
+ this.password = pass;
+ }
+
+ /**
+ * Connect and login to the server.
+ *
+ * @throws FTPException
+ * @throws NoSuchAlgorithmException
+ */
+ public void connect() throws FTPException, NoSuchAlgorithmException {
+ try {
+ ftpClient.connect(host, port);
+ replyCode = ftpClient.getReplyCode();
+ if (!FTPReply.isPositiveCompletion(replyCode)) {
+ throw new FTPException("FTP serve refused connection.");
+ }
+
+
+ boolean logged = ftpClient.login(username, password);
+ if (!logged) {
+ // failed to login
+ ftpClient.execPROT("P");
+ ftpClient.disconnect();
+ throw new FTPException("Could not login to the server.");
+ }
+
+ ftpClient.enterLocalPassiveMode();
+
+ } catch (IOException ex) {
+ throw new FTPException("I/O error: " + ex.getMessage());
+ }
+ }
+
+ /**
+ * Gets size (in bytes) of the file on the server.
+ *
+ * @param filePath
+ * Path of the file on server
+ * @return file size in bytes
+ * @throws FTPException
+ */
+ public long getFileSize(String filePath) throws FTPException {
+ try {
+ FTPFile file = ftpClient.mlistFile(filePath);
+ if (file == null) {
+ throw new FTPException("The file may not exist on the server!");
+ }
+ return file.getSize();
+ } catch (IOException ex) {
+ throw new FTPException("Could not determine size of the file: "
+ + ex.getMessage());
+ }
+ }
+
+ /**
+ * Start downloading a file from the server
+ *
+ * @param downloadPath
+ * Full path of the file on the server
+ * @throws FTPException
+ * if client-server communication error occurred
+ */
+ public void downloadFile(String downloadPath) throws FTPException {
+ try {
+
+ boolean success = ftpClient.setFileType(FTP.BINARY_FILE_TYPE);
+ if (!success) {
+ throw new FTPException("Could not set binary file type.");
+ }
+
+ inputStream = ftpClient.retrieveFileStream(downloadPath);
+
+ if (inputStream == null) {
+ throw new FTPException(
+ "Could not open input stream. The file may not exist on the server.");
+ }
+ } catch (IOException ex) {
+ throw new FTPException("Error downloading file: " + ex.getMessage());
+ }
+ }
+
+
+ /**
+ * Start uploading a file to the server
+ * @param uploadFile the file to be uploaded
+ * @param destDir destination directory on the server
+ * where the file is stored
+ * @throws FTPException if client-server communication error occurred
+ */
+ public void uploadFile(File uploadFile, String destDir) throws FTPException {
+ try {
+ boolean success = ftpClient.changeWorkingDirectory(destDir);
+ if (!success) {
+ throw new FTPException("Could not change working directory to "
+ + destDir + ". The directory may not exist.");
+ }
+
+ success = ftpClient.setFileType(FTP.BINARY_FILE_TYPE);
+ if (!success) {
+ throw new FTPException("Could not set binary file type.");
+ }
+
+ outputStream = ftpClient.storeFileStream(uploadFile.getName());
+ // ftpClient.rename(uploadFile.getName(), vm.vl.getLaborname());
+ } catch (IOException ex) {
+ throw new FTPException("Error uploading file: " + ex.getMessage());
+ }
+ }
+
+ /**
+ * Write an array of bytes to the output stream.
+ */
+ public void writeFileBytes(byte[] bytes, int offset, int length)
+ throws IOException {
+ outputStream.write(bytes, offset, length);
+ }
+
+ /**
+ * Complete the download operation.
+ */
+ public void finish() throws IOException {
+ inputStream.close();
+ ftpClient.completePendingCommand();
+ }
+
+ /**
+ * Log out and disconnect from the server
+ */
+ public void disconnect() throws FTPException {
+ if (ftpClient.isConnected()) {
+ try {
+ if (!ftpClient.logout()) {
+ throw new FTPException("Could not log out from the server");
+ }
+ ftpClient.disconnect();
+ } catch (IOException ex) {
+ throw new FTPException("Error disconnect from the server: "
+ + ex.getMessage());
+ }
+ }
+ }
+
+ /**
+ * Return InputStream of the remote file on the server.
+ */
+ public InputStream getInputStream() {
+ return inputStream;
+ }
+
+ public OutputStream getOutputStream() {
+ return outputStream;
+ }
+
+ public String[] getAllRohling(String SearchString) throws SocketException
+ {
+ //FTPClient ftp=new FTPClient();
+
+ String[] filenamelist;
+
+
+ try {
+
+
+ ftpClient.changeWorkingDirectory("/home/openslx/images");
+ filenamelist=ftpClient.listNames();
+
+ String[] search=new String[filenamelist.length];
+ for(int i=0;i<filenamelist.length;i++)
+ {
+ /*if(filenamelist[i].startsWith(SearchString)==true)
+ {
+ search[i]=filenamelist[i];
+ }*/
+
+ if(filenamelist[i].contains(SearchString)==true)
+ {
+ search[i]=filenamelist[i];
+ }
+ }
+ return search;
+ } catch (IOException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+
+
+
+ return null;
+ }
+
} \ No newline at end of file
diff --git a/Dozentenmodul/src/downloader/UploadTask.java b/Dozentenmodul/src/ftp/UploadTask.java
index 6d7de00f..e5d8a817 100644
--- a/Dozentenmodul/src/downloader/UploadTask.java
+++ b/Dozentenmodul/src/ftp/UploadTask.java
@@ -1,93 +1,93 @@
-package downloader;
-
-import java.io.File;
-import java.io.FileInputStream;
-
-import javax.swing.JOptionPane;
-import javax.swing.SwingWorker;
-
-/**
- * Executes the file upload in a background thread and updates progress to
- * listeners that implement the java.beans.PropertyChangeListener interface.
- * @author www.codejava.net
- *
- */
-public class UploadTask extends SwingWorker<Void, Void> {
- private static final int BUFFER_SIZE = 4096;
-
- private String host;
- private int port;
- private String username;
- private String password;
-
- private String destDir;
- private File uploadFile;
-
- public UploadTask(String host, int port, String username, String password,
- String destDir, File uploadFile) {
- this.host = host;
- this.port = port;
- this.username = username;
- this.password = password;
- this.destDir = destDir;
- this.uploadFile = uploadFile;
- }
-
- /**
- * Executed in background thread
- */
- @Override
- protected Void doInBackground() throws Exception {
- FTPUtility util = new FTPUtility(host, port, username, password);
- try {
- util.connect();
- util.uploadFile(uploadFile, destDir);
-
- FileInputStream inputStream = new FileInputStream(uploadFile);
- byte[] buffer = new byte[BUFFER_SIZE];
- int bytesRead = -1;
- long totalBytesRead = 0;
- int percentCompleted = 0;
- long fileSize = uploadFile.length();
- long start=System.nanoTime();
- final double NANOS_PER_SECOND = 1000000000.0;
- final double BYTES_PER_MIB = 1024*1024;
- while ((bytesRead = inputStream.read(buffer)) != -1 && isCancelled()==false) {
- util.writeFileBytes(buffer, 0, bytesRead);
- totalBytesRead += bytesRead;
- percentCompleted = (int) (totalBytesRead * 100 / fileSize);
- double speed = NANOS_PER_SECOND / BYTES_PER_MIB * totalBytesRead / (System.nanoTime() - start + 1);
- setProgress(percentCompleted);
- firePropertyChange("speed", 0, speed);
- firePropertyChange("filesize", 0,fileSize);
- firePropertyChange("bytesread", 0,totalBytesRead);
- }
-
- inputStream.close();
-
- util.finish();
- } catch (FTPException ex) {
- JOptionPane.showMessageDialog(null, "Error uploading file: " + ex.getMessage(),
- "Error", JOptionPane.ERROR_MESSAGE);
- ex.printStackTrace();
- setProgress(0);
- cancel(true);
- } finally {
- util.disconnect();
- }
-
- return null;
- }
-
- /**
- * Executed in Swing's event dispatching thread
- */
- @Override
- protected void done() {
- if (!isCancelled()) {
- JOptionPane.showMessageDialog(null,
- "File has been uploaded successfully!", "Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- }
+package ftp;
+
+import java.io.File;
+import java.io.FileInputStream;
+
+import javax.swing.JOptionPane;
+import javax.swing.SwingWorker;
+
+/**
+ * Executes the file upload in a background thread and updates progress to
+ * listeners that implement the java.beans.PropertyChangeListener interface.
+ * @author www.codejava.net
+ *
+ */
+public class UploadTask extends SwingWorker<Void, Void> {
+ private static final int BUFFER_SIZE = 4096;
+
+ private String host;
+ private int port;
+ private String username;
+ private String password;
+
+ private String destDir;
+ private File uploadFile;
+
+ public UploadTask(String host, int port, String username, String password,
+ String destDir, File uploadFile) {
+ this.host = host;
+ this.port = port;
+ this.username = username;
+ this.password = password;
+ this.destDir = destDir;
+ this.uploadFile = uploadFile;
+ }
+
+ /**
+ * Executed in background thread
+ */
+ @Override
+ protected Void doInBackground() throws Exception {
+ FTPUtility util = new FTPUtility(host, port, username, password);
+ try {
+ util.connect();
+ util.uploadFile(uploadFile, destDir);
+
+ FileInputStream inputStream = new FileInputStream(uploadFile);
+ byte[] buffer = new byte[BUFFER_SIZE];
+ int bytesRead = -1;
+ long totalBytesRead = 0;
+ int percentCompleted = 0;
+ long fileSize = uploadFile.length();
+ long start=System.nanoTime();
+ final double NANOS_PER_SECOND = 1000000000.0;
+ final double BYTES_PER_MIB = 1024*1024;
+ while ((bytesRead = inputStream.read(buffer)) != -1 && isCancelled()==false) {
+ util.writeFileBytes(buffer, 0, bytesRead);
+ totalBytesRead += bytesRead;
+ percentCompleted = (int) (totalBytesRead * 100 / fileSize);
+ double speed = NANOS_PER_SECOND / BYTES_PER_MIB * totalBytesRead / (System.nanoTime() - start + 1);
+ setProgress(percentCompleted);
+ firePropertyChange("speed", 0, speed);
+ firePropertyChange("filesize", 0,fileSize);
+ firePropertyChange("bytesread", 0,totalBytesRead);
+ }
+
+ inputStream.close();
+
+ util.finish();
+ } catch (FTPException ex) {
+ JOptionPane.showMessageDialog(null, "Error uploading file: " + ex.getMessage(),
+ "Error", JOptionPane.ERROR_MESSAGE);
+ ex.printStackTrace();
+ setProgress(0);
+ cancel(true);
+ } finally {
+ util.disconnect();
+ }
+
+ return null;
+ }
+
+ /**
+ * Executed in Swing's event dispatching thread
+ */
+ @Override
+ protected void done() {
+ if (!isCancelled()) {
+ JOptionPane.showMessageDialog(null,
+ "File has been uploaded successfully!", "Message",
+ JOptionPane.INFORMATION_MESSAGE);
+ }
+ }
} \ No newline at end of file
diff --git a/Dozentenmodul/src/gui/BillOfRights_GUI.java b/Dozentenmodul/src/gui/BillOfRights_GUI.java
new file mode 100644
index 00000000..6f66d479
--- /dev/null
+++ b/Dozentenmodul/src/gui/BillOfRights_GUI.java
@@ -0,0 +1,181 @@
+package gui;
+
+import java.awt.Dimension;
+import java.awt.FlowLayout;
+import java.awt.Toolkit;
+import javax.swing.JButton;
+import javax.swing.JDialog;
+import javax.swing.JPanel;
+import javax.swing.JScrollPane;
+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.JFrame;
+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.JCheckBox;
+import javax.swing.SwingConstants;
+import javax.swing.event.ChangeListener;
+import javax.swing.event.ChangeEvent;
+import javax.swing.JTextArea;
+
+
+
+@SuppressWarnings("serial")
+public class BillOfRights_GUI extends JFrame {
+
+ private final JPanel contentPanel = new JPanel();
+ String[] result;
+ JButton fwdButton;
+ JCheckBox chckbxAkzeptieren;
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ try {
+ BillOfRights_GUI dialog = new BillOfRights_GUI();
+ dialog.setDefaultCloseOperation(JDialog.HIDE_ON_CLOSE);
+ dialog.setVisible(true);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * Create the dialog.
+ */
+ public BillOfRights_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("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, 545, 366);
+ 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) {
+ 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) {
+ 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
new file mode 100644
index 00000000..784c66a7
--- /dev/null
+++ b/Dozentenmodul/src/gui/EditImageAllgemein_GUI.java
@@ -0,0 +1,336 @@
+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.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 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 Tel;
+ private JTextField Fak;
+ private JTextField imagename;
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ try {
+ EditImageAllgemein_GUI dialog = new EditImageAllgemein_GUI();
+ dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
+ dialog.setVisible(true);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * Create the dialog.
+ */
+ public EditImageAllgemein_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("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, 183, 125, 20);
+ panel_1.add(label);
+
+ Vorname = new JTextField();
+ Vorname.setBackground(Color.WHITE);
+ Vorname.setText(person.verantowrtlicher.getVorname());
+ Vorname.setColumns(10);
+ Vorname.setBounds(145, 183, 350, 20);
+ panel_1.add(Vorname);
+
+ JLabel label_7 = new JLabel("Nachname: *");
+ label_7.setBackground(SystemColor.menu);
+ label_7.setBounds(10, 214, 125, 20);
+ panel_1.add(label_7);
+
+ Nachname = new JTextField();
+ Nachname.setBackground(Color.WHITE);
+ Nachname.setText(person.verantowrtlicher.getName());
+ Nachname.setColumns(10);
+ Nachname.setBounds(145, 214, 350, 20);
+ panel_1.add(Nachname);
+
+ JLabel label_8 = new JLabel("Hochschule: *");
+ label_8.setBackground(SystemColor.menu);
+ label_8.setBounds(10, 245, 125, 20);
+ panel_1.add(label_8);
+
+ Hochschule = new JTextField();
+ Hochschule.setBackground(Color.WHITE);
+ Hochschule.setText(person.verantowrtlicher.getHochschule());
+ Hochschule.setColumns(10);
+ Hochschule.setBounds(145, 245, 350, 20);
+ panel_1.add(Hochschule);
+
+ JLabel label_9 = new JLabel("E-Mail: *");
+ label_9.setBackground(SystemColor.menu);
+ label_9.setBounds(10, 276, 125, 20);
+ panel_1.add(label_9);
+
+ EMail = new JTextField();
+ EMail.setBackground(Color.WHITE);
+ EMail.setText(person.verantowrtlicher.getEMail());
+ EMail.setColumns(10);
+ EMail.setBounds(145, 276, 350, 20);
+ panel_1.add(EMail);
+
+ JLabel label_10 = new JLabel("Tel.-Nummer:");
+ label_10.setBackground(SystemColor.menu);
+ label_10.setBounds(10, 307, 125, 20);
+ panel_1.add(label_10);
+
+ Tel = new JTextField();
+ Tel.setBackground(Color.WHITE);
+ Tel.setText(person.verantowrtlicher.getTel());
+ Tel.setColumns(10);
+ Tel.setBounds(145, 307, 350, 20);
+ panel_1.add(Tel);
+
+ JLabel lblFakulttinstitution = new JLabel("Fakult\u00E4t/Institution:");
+ lblFakulttinstitution.setBackground(SystemColor.menu);
+ lblFakulttinstitution.setBounds(10, 338, 125, 20);
+ panel_1.add(lblFakulttinstitution);
+
+ Fak = new JTextField();
+ Fak.setBackground(Color.WHITE);
+ Fak.setText(person.verantowrtlicher.getFakultät());
+ Fak.setColumns(10);
+ Fak.setBounds(145, 338, 350, 20);
+ panel_1.add(Fak);
+
+ 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) {
+
+ 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) {
+ person.verantowrtlicher.setVorname(Vorname.getText());
+ person.verantowrtlicher.setName(Nachname.getText());
+ person.verantowrtlicher.setEMail(EMail.getText());
+ person.verantowrtlicher.setFakultät(Fak.getText());
+ person.verantowrtlicher.setHochschule(Hochschule.getText());
+ person.verantowrtlicher.setTel(Tel.getText());
+ 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) {
+ 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.setFakultät(Fak.getText());
+ person.verantowrtlicher.setHochschule(Hochschule.getText());
+ person.verantowrtlicher.setTel(Tel.getText());
+ Image.image.setImagename(imagename.getText());
+ EditImageTechnisch_GUI ea=new EditImageTechnisch_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/EditImageTechnisch_GUI.java b/Dozentenmodul/src/gui/EditImageTechnisch_GUI.java
new file mode 100644
index 00000000..a3fdcf20
--- /dev/null
+++ b/Dozentenmodul/src/gui/EditImageTechnisch_GUI.java
@@ -0,0 +1,311 @@
+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 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();
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ try {
+ EditImageTechnisch_GUI dialog = new EditImageTechnisch_GUI();
+ dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
+ dialog.setVisible(true);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * Create the dialog.
+ */
+ public EditImageTechnisch_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);
+
+ JRadioButton rdbtnInternetJa = new JRadioButton("Ja");
+ buttonGroupInternet.add(rdbtnInternetJa);
+ rdbtnInternetJa.setBounds(266, 57, 109, 23);
+ panel_1.add(rdbtnInternetJa);
+
+ JRadioButton 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) {
+
+ 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);
+ 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) {
+ 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) {
+
+
+ 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/EingabeImageAllgemein_GUI.java b/Dozentenmodul/src/gui/EingabeImageAllgemein_GUI.java
new file mode 100644
index 00000000..4eb5c609
--- /dev/null
+++ b/Dozentenmodul/src/gui/EingabeImageAllgemein_GUI.java
@@ -0,0 +1,337 @@
+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.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 Tel;
+ private JTextField Fak;
+ private JTextField imagename;
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ try {
+ EingabeImageAllgemein_GUI dialog = new EingabeImageAllgemein_GUI();
+ dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
+ dialog.setVisible(true);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * Create the dialog.
+ */
+ public EingabeImageAllgemein_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, 183, 125, 20);
+ panel_1.add(label);
+
+ Vorname = new JTextField();
+ Vorname.setBackground(Color.WHITE);
+ Vorname.setText((String) null);
+ Vorname.setColumns(10);
+ Vorname.setBounds(145, 183, 350, 20);
+ panel_1.add(Vorname);
+
+ JLabel label_7 = new JLabel("Nachname: *");
+ label_7.setBackground(SystemColor.menu);
+ label_7.setBounds(10, 214, 125, 20);
+ panel_1.add(label_7);
+
+ Nachname = new JTextField();
+ Nachname.setBackground(Color.WHITE);
+ Nachname.setText((String) null);
+ Nachname.setColumns(10);
+ Nachname.setBounds(145, 214, 350, 20);
+ panel_1.add(Nachname);
+
+ JLabel label_8 = new JLabel("Hochschule: *");
+ label_8.setBackground(SystemColor.menu);
+ label_8.setBounds(10, 245, 125, 20);
+ panel_1.add(label_8);
+
+ Hochschule = new JTextField();
+ Hochschule.setBackground(Color.WHITE);
+ Hochschule.setText((String) null);
+ Hochschule.setColumns(10);
+ Hochschule.setBounds(145, 245, 350, 20);
+ panel_1.add(Hochschule);
+
+ JLabel label_9 = new JLabel("E-Mail: *");
+ label_9.setBackground(SystemColor.menu);
+ label_9.setBounds(10, 276, 125, 20);
+ panel_1.add(label_9);
+
+ EMail = new JTextField();
+ EMail.setBackground(Color.WHITE);
+ EMail.setText((String) null);
+ EMail.setColumns(10);
+ EMail.setBounds(145, 276, 350, 20);
+ panel_1.add(EMail);
+
+ JLabel label_10 = new JLabel("Tel.-Nummer:");
+ label_10.setBackground(SystemColor.menu);
+ label_10.setBounds(10, 307, 125, 20);
+ panel_1.add(label_10);
+
+ Tel = new JTextField();
+ Tel.setBackground(Color.WHITE);
+ Tel.setText((String) null);
+ Tel.setColumns(10);
+ Tel.setBounds(145, 307, 350, 20);
+ panel_1.add(Tel);
+
+ JLabel lblFakulttinstitution = new JLabel("Fakult\u00E4t/Institution:");
+ lblFakulttinstitution.setBackground(SystemColor.menu);
+ lblFakulttinstitution.setBounds(10, 338, 125, 20);
+ panel_1.add(lblFakulttinstitution);
+
+ Fak = new JTextField();
+ Fak.setBackground(Color.WHITE);
+ Fak.setText((String) null);
+ Fak.setColumns(10);
+ Fak.setBounds(145, 338, 350, 20);
+ panel_1.add(Fak);
+
+ 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) {
+
+ 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) {
+ person.verantowrtlicher.setVorname(Vorname.getText());
+ person.verantowrtlicher.setName(Nachname.getText());
+ person.verantowrtlicher.setEMail(EMail.getText());
+ person.verantowrtlicher.setFakultät(Fak.getText());
+ person.verantowrtlicher.setHochschule(Hochschule.getText());
+ person.verantowrtlicher.setTel(Tel.getText());
+ 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) {
+ 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.setFakultät(Fak.getText());
+ person.verantowrtlicher.setHochschule(Hochschule.getText());
+ person.verantowrtlicher.setTel(Tel.getText());
+ 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 = 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/EingabeImageTechnisch_GUI.java b/Dozentenmodul/src/gui/EingabeImageTechnisch_GUI.java
new file mode 100644
index 00000000..62cfd19a
--- /dev/null
+++ b/Dozentenmodul/src/gui/EingabeImageTechnisch_GUI.java
@@ -0,0 +1,346 @@
+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/EingabeVeranstaltungAllgemein_GUI.java b/Dozentenmodul/src/gui/EingabeVeranstaltungAllgemein_GUI.java
new file mode 100644
index 00000000..045f8a84
--- /dev/null
+++ b/Dozentenmodul/src/gui/EingabeVeranstaltungAllgemein_GUI.java
@@ -0,0 +1,338 @@
+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.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 models.Lecture;
+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;
+ private JTextField Tel;
+ private JTextField Fak;
+ private JTextField imagename;
+ /**
+ * 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, 183, 125, 20);
+ panel_1.add(label);
+
+ Vorname = new JTextField();
+ Vorname.setBackground(Color.WHITE);
+ Vorname.setText((String) null);
+ Vorname.setColumns(10);
+ Vorname.setBounds(145, 183, 350, 20);
+ panel_1.add(Vorname);
+
+ JLabel label_7 = new JLabel("Nachname: *");
+ label_7.setBackground(SystemColor.menu);
+ label_7.setBounds(10, 214, 125, 20);
+ panel_1.add(label_7);
+
+ Nachname = new JTextField();
+ Nachname.setBackground(Color.WHITE);
+ Nachname.setText((String) null);
+ Nachname.setColumns(10);
+ Nachname.setBounds(145, 214, 350, 20);
+ panel_1.add(Nachname);
+
+ JLabel label_8 = new JLabel("Hochschule: *");
+ label_8.setBackground(SystemColor.menu);
+ label_8.setBounds(10, 245, 125, 20);
+ panel_1.add(label_8);
+
+ Hochschule = new JTextField();
+ Hochschule.setBackground(Color.WHITE);
+ Hochschule.setText((String) null);
+ Hochschule.setColumns(10);
+ Hochschule.setBounds(145, 245, 350, 20);
+ panel_1.add(Hochschule);
+
+ JLabel label_9 = new JLabel("E-Mail: *");
+ label_9.setBackground(SystemColor.menu);
+ label_9.setBounds(10, 276, 125, 20);
+ panel_1.add(label_9);
+
+ EMail = new JTextField();
+ EMail.setBackground(Color.WHITE);
+ EMail.setText((String) null);
+ EMail.setColumns(10);
+ EMail.setBounds(145, 276, 350, 20);
+ panel_1.add(EMail);
+
+ JLabel label_10 = new JLabel("Tel.-Nummer:");
+ label_10.setBackground(SystemColor.menu);
+ label_10.setBounds(10, 307, 125, 20);
+ panel_1.add(label_10);
+
+ Tel = new JTextField();
+ Tel.setBackground(Color.WHITE);
+ Tel.setText((String) null);
+ Tel.setColumns(10);
+ Tel.setBounds(145, 307, 350, 20);
+ panel_1.add(Tel);
+
+ JLabel lblFakulttinstitution = new JLabel("Fakult\u00E4t/Institution:");
+ lblFakulttinstitution.setBackground(SystemColor.menu);
+ lblFakulttinstitution.setBounds(10, 338, 125, 20);
+ panel_1.add(lblFakulttinstitution);
+
+ Fak = new JTextField();
+ Fak.setBackground(Color.WHITE);
+ Fak.setText((String) null);
+ Fak.setColumns(10);
+ Fak.setBounds(145, 338, 350, 20);
+ panel_1.add(Fak);
+
+ JLabel lblImagename = new JLabel("Veranstaltungsname: *");
+ 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) {
+
+ 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.setFakultät(Fak.getText());
+ person.verantowrtlicher.setHochschule(Hochschule.getText());
+ person.verantowrtlicher.setTel(Tel.getText());
+ Lecture.lecture.setName(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) {
+ 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.setFakultät(Fak.getText());
+ person.verantowrtlicher.setHochschule(Hochschule.getText());
+ person.verantowrtlicher.setTel(Tel.getText());
+ Lecture.lecture.setName(imagename.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
new file mode 100644
index 00000000..3733b200
--- /dev/null
+++ b/Dozentenmodul/src/gui/EingabeVeranstatlungTechnisch_GUI.java
@@ -0,0 +1,317 @@
+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.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, 109, 250, 14);
+ contentPanel.add(lblKurzbeschreibung);
+
+ ScrollPane scrollPane = new ScrollPane();
+ scrollPane.setBounds(270, 109, 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, 249, 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, 252, 250, 14);
+ contentPanel.add(label);
+
+ JLabel lblGltigkeitsdatum = new JLabel("G\u00FCltigkeitsdatum: *");
+ lblGltigkeitsdatum.setBounds(0, 397, 250, 14);
+ contentPanel.add(lblGltigkeitsdatum);
+
+ JLabel lblVon = new JLabel("von:");
+ lblVon.setBounds(270, 394, 30, 20);
+ contentPanel.add(lblVon);
+
+ dateChooserstart = new JDateChooser();
+ dateChooserstart.setDateFormatString("yyyy-MM-dd hh:mm:ss");
+ dateChooserstart.setBounds(332, 391, 101, 20);
+ contentPanel.add(dateChooserstart);
+
+ JLabel lblBis = new JLabel("bis");
+ lblBis.setBounds(443, 394, 24, 20);
+ contentPanel.add(lblBis);
+
+ dateChooserend = new JDateChooser();
+ dateChooserend.setDateFormatString("dd.MM.yyyy hh:mm:ss");
+ dateChooserend.setBounds(477, 392, 100, 20);
+ contentPanel.add(dateChooserend);
+
+ JLabel lblAktiv = new JLabel("Aktiv:");
+ lblAktiv.setBounds(0, 450, 250, 14);
+ contentPanel.add(lblAktiv);
+
+ JLabel lblimVmchooserSichtbar = new JLabel("(Im VMChooser sichtbar)");
+ lblimVmchooserSichtbar.setBounds(0, 475, 250, 14);
+ contentPanel.add(lblimVmchooserSichtbar);
+
+ rdbtnJa = new JRadioButton("Ja");
+ rdbtnJa.setSelected(true);
+ buttonGroup.add(rdbtnJa);
+ rdbtnJa.setBounds(270, 446, 109, 23);
+ contentPanel.add(rdbtnJa);
+
+ JRadioButton rdbtnNein = new JRadioButton("Nein");
+ buttonGroup.add(rdbtnNein);
+ rdbtnNein.setBounds(381, 446, 109, 23);
+ contentPanel.add(rdbtnNein);
+ //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());
+
+
+ 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());
+ 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
new file mode 100644
index 00000000..20041516
--- /dev/null
+++ b/Dozentenmodul/src/gui/ExtendedSearch_GUI.java
@@ -0,0 +1,233 @@
+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 - 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("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
new file mode 100644
index 00000000..94e1e05d
--- /dev/null
+++ b/Dozentenmodul/src/gui/FTPDownloader_GUI.java
@@ -0,0 +1,348 @@
+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.128.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
new file mode 100644
index 00000000..980f3481
--- /dev/null
+++ b/Dozentenmodul/src/gui/FTPUploader_GUI.java
@@ -0,0 +1,401 @@
+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);
+ {
+ 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);
+
+ } 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/LinkImage_GUI.java b/Dozentenmodul/src/gui/LinkImage_GUI.java
new file mode 100644
index 00000000..38b3d5e3
--- /dev/null
+++ b/Dozentenmodul/src/gui/LinkImage_GUI.java
@@ -0,0 +1,433 @@
+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.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.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;
+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.JScrollPane;
+import javax.swing.JSeparator;
+import javax.swing.JTabbedPane;
+import javax.swing.JTable;
+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 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 {
+
+ private final JPanel contentPanel = new JPanel();
+ String[] result;
+ JRadioButton rdbtnInternetJa;
+ JRadioButton rdbtnInternetNein;
+ JComboBox<String> comboBox;
+ JTable tableAllImages;
+ private JTextField textFieldName;
+ String[] titles= {"Image-Name", "Lizenzpflichtig", "OS", "Veranstaltung", "Verantwortlicher", "Letztes Update", "Schlagwort"};
+ ThriftConnection thrift=new ThriftConnection();
+ Client client=thrift.getThriftConnection();
+
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ try {
+ LinkImage_GUI dialog = new LinkImage_GUI();
+ dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
+ dialog.setVisible(true);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * Create the dialog.
+ */
+ public LinkImage_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);
+
+
+ final DefaultTableModel modelAll = new DefaultTableModel( titles, 0 );
+ 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();
+ textFieldName.addKeyListener(new KeyAdapter() {
+ @Override
+ public void keyReleased(KeyEvent e) {
+ 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);
+ }
+ }
+
+
+ }
+
+
+ });
+
+ 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) {
+ ExtendedSearch_GUI es=new ExtendedSearch_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();
+ comboBox.addItem("");
+ for(int i=0;i<list.size();i++)
+ {
+ comboBox.addItem(list.get(i));
+ }
+ } catch (TException e2) {
+ // TODO Auto-generated catch block
+ e2.printStackTrace();
+ }
+ comboBox.addActionListener(new ActionListener() {
+ 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);
+ }
+ }
+
+
+ }
+ }
+ });
+ 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();
+ 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);
+
+ 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);
+
+ 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();
+ 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);
+
+ 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);
+
+ 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);
+
+ initTableModel(modelAll);
+ {
+ 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 main=new MainMenue_GUI();
+ main.setVisible(true);
+ dispose();
+ }
+ });
+ okButton.setActionCommand("OK");
+ buttonPane.add(okButton);
+ getRootPane().setDefaultButton(okButton);
+ }
+ {
+ JButton cancelButton = new JButton("Veranstaltung erzeugen 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();
+ }
+ 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){
+ List<server.Image> images;
+ try {
+ images = client.getImageList();
+ Iterator<server.Image> i=images.iterator();
+ List<Object[]> ListObj = new ArrayList<Object[]>();
+ 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()};
+ ListObj.add(obj);
+ model.addRow(ListObj.get(x));
+ x++;
+
+ }
+
+ return model;
+ } catch (TException e1) {
+ // TODO Auto-generated catch block
+ e1.printStackTrace();
+ }
+ return model;
+ }
+
+ }
+
+
diff --git a/Dozentenmodul/src/gui/Login_GUI.java b/Dozentenmodul/src/gui/Login_GUI.java
new file mode 100644
index 00000000..c982fa7b
--- /dev/null
+++ b/Dozentenmodul/src/gui/Login_GUI.java
@@ -0,0 +1,152 @@
+package gui;
+
+
+import java.awt.Dimension;
+import java.awt.EventQueue;
+import java.awt.Image;
+import java.awt.Toolkit;
+import javax.swing.ImageIcon;
+import javax.swing.JFrame;
+import javax.swing.JOptionPane;
+import javax.swing.JPanel;
+import javax.swing.UIManager;
+import javax.swing.UnsupportedLookAndFeelException;
+import javax.swing.border.EmptyBorder;
+import javax.swing.JLabel;
+import javax.swing.JTextField;
+import javax.swing.JButton;
+import java.awt.event.ActionListener;
+import java.awt.event.ActionEvent;
+import javax.swing.JPasswordField;
+import java.awt.event.WindowAdapter;
+import java.awt.event.WindowEvent;
+import java.awt.SystemColor;
+
+
+@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 {
+ //Aufruf und Anzeige des Login Fensters
+ Login_GUI frame = new Login_GUI();
+ frame.setVisible(true);
+ } 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)
+ {
+
+
+ //Erstellen einer Instanz der Aktionsauswahl
+ BillOfRights_GUI re=new BillOfRights_GUI();
+ re.setVisible(true);
+ //Schließen des Fensters nach erfolgreichen Login
+ setVisible(false);
+ }
+ 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
new file mode 100644
index 00000000..e44e5c90
--- /dev/null
+++ b/Dozentenmodul/src/gui/MainMenue_GUI.java
@@ -0,0 +1,325 @@
+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;
+ 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);
+
+ JRadioButton rdbtnImageDelete = new JRadioButton("L\u00F6schen");
+ 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");
+ 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.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.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");
+ 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)
+ {
+ SearchImage_GUI si=new SearchImage_GUI();
+ si.setVisible(true);
+ dispose();
+ }else if(rdbtnImageSearchDownload.isSelected()==true)
+ {
+ SearchMethod_GUI sm=new SearchMethod_GUI();
+ sm.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
new file mode 100644
index 00000000..44b83087
--- /dev/null
+++ b/Dozentenmodul/src/gui/SearchImage_GUI.java
@@ -0,0 +1,420 @@
+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.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.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+import javax.swing.JButton;
+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.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.UIManager;
+import javax.swing.UnsupportedLookAndFeelException;
+import javax.swing.border.EmptyBorder;
+import javax.swing.border.TitledBorder;
+import javax.swing.table.DefaultTableModel;
+
+import org.apache.thrift.TException;
+
+import server.Server.Client;
+import thrift.ThriftConnection;
+
+@SuppressWarnings("serial")
+public class SearchImage_GUI extends JFrame {
+
+ private final JPanel contentPanel = new JPanel();
+ String[] result;
+ JRadioButton rdbtnInternetJa;
+ JRadioButton rdbtnInternetNein;
+ JComboBox<String> comboBox;
+ JTable tableAllImages;
+ private JTextField textFieldName;
+ 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 {
+ SearchImage_GUI dialog = new SearchImage_GUI();
+ dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
+ dialog.setVisible(true);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * Create the dialog.
+ */
+ public SearchImage_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);
+
+
+ final DefaultTableModel modelAll = new DefaultTableModel( titles, 0 );
+ 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();
+ textFieldName.addKeyListener(new KeyAdapter() {
+ @Override
+ public void keyReleased(KeyEvent e) {
+ 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);
+ }
+ }
+ }
+ });
+
+ 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) {
+ ExtendedSearch_GUI es=new ExtendedSearch_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();
+ comboBox.addItem("");
+ for(int i=0;i<list.size();i++)
+ {
+ comboBox.addItem(list.get(i));
+ }
+ } catch (TException e2) {
+ // TODO Auto-generated catch block
+ e2.printStackTrace();
+ }
+ comboBox.addActionListener(new ActionListener() {
+ 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);
+ }
+ }
+ }
+ }
+ });
+ 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) {
+
+ 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);
+
+ 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);
+
+ 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();
+ 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);
+
+ 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);
+
+ 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);
+
+ initTableModel(modelAll);
+
+ JButton btnDownload = new JButton("Download");
+ btnDownload.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent arg0) {
+ FTPDownloader_GUI down=new FTPDownloader_GUI("Test");
+ down.setVisible(true);
+ SearchImage_GUI.this.setVisible(false);
+ }
+ });
+ 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) {
+ 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) {
+ EditImageAllgemein_GUI ea=new EditImageAllgemein_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);
+
+ }
+
+ public DefaultTableModel initTableModel(DefaultTableModel model){
+ List<server.Image> images;
+ try {
+ images = client.getImageList();
+ Iterator<server.Image> i=images.iterator();
+ List<Object[]> ListObj = new ArrayList<Object[]>();
+ 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()};
+ ListObj.add(obj);
+ model.addRow(ListObj.get(x));
+ x++;
+
+ }
+
+ return model;
+ } catch (TException e1) {
+ // TODO Auto-generated catch block
+ e1.printStackTrace();
+ }
+ return model;
+ }
+
+ }
+
+
diff --git a/Dozentenmodul/src/gui/SearchMethod_GUI.java b/Dozentenmodul/src/gui/SearchMethod_GUI.java
new file mode 100644
index 00000000..24a12959
--- /dev/null
+++ b/Dozentenmodul/src/gui/SearchMethod_GUI.java
@@ -0,0 +1,243 @@
+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
new file mode 100644
index 00000000..b803ee44
--- /dev/null
+++ b/Dozentenmodul/src/gui/VmWareLink_GUI.java
@@ -0,0 +1,190 @@
+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.IOException;
+import java.net.URI;
+import java.net.URISyntaxException;
+import java.awt.event.WindowAdapter;
+import java.awt.event.WindowEvent;
+import javax.swing.JCheckBox;
+
+
+@SuppressWarnings("serial")
+public class VmWareLink_GUI extends JFrame {
+
+ private final JPanel contentPanel = new JPanel();
+ String[] result;
+ /**
+ * 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);
+
+ JCheckBox chckbxNewCheckBox = new JCheckBox("Diese Benachrichtigung nicht mehr anzeigen.");
+ 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/models/Image.java b/Dozentenmodul/src/models/Image.java
new file mode 100644
index 00000000..f16a7594
--- /dev/null
+++ b/Dozentenmodul/src/models/Image.java
@@ -0,0 +1,43 @@
+package models;
+
+public class Image {
+ private String imagename;
+ private boolean licensed;
+ private boolean internet;
+ private int ram;
+ private int cpu;
+
+ public static Image image =new Image();
+
+ public String getImagename() {
+ return imagename;
+ }
+ public void setImagename(String imagename) {
+ this.imagename = imagename;
+ }
+ public boolean isLicensed() {
+ return licensed;
+ }
+ public void setLicensed(boolean licensed) {
+ this.licensed = licensed;
+ }
+ public boolean isInternet() {
+ return internet;
+ }
+ public void setInternet(boolean internet) {
+ this.internet = internet;
+ }
+ public int getRam() {
+ return ram;
+ }
+ public void setRam(int ram) {
+ this.ram = ram;
+ }
+ public int getCpu() {
+ return cpu;
+ }
+ public void setCpu(int cpu) {
+ this.cpu = cpu;
+ }
+
+}
diff --git a/Dozentenmodul/src/models/Lecture.java b/Dozentenmodul/src/models/Lecture.java
new file mode 100644
index 00000000..383bded9
--- /dev/null
+++ b/Dozentenmodul/src/models/Lecture.java
@@ -0,0 +1,66 @@
+package models;
+
+import java.util.Date;
+
+public class Lecture {
+
+
+ private String name;
+ private String shortDesc;
+ private String desc;
+ private Date startdate;
+ private Date enddate;
+ private boolean active;
+
+ public static Lecture lecture =new Lecture();
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getShortDesc() {
+ return shortDesc;
+ }
+
+ public void setShortDesc(String shortDesc) {
+ this.shortDesc = shortDesc;
+ }
+
+ public String getDesc() {
+ return desc;
+ }
+
+ public void setDesc(String desc) {
+ this.desc = desc;
+ }
+
+ public Date getStartdate() {
+ return startdate;
+ }
+
+ public void setStartdate(Date startdate) {
+ this.startdate = startdate;
+ }
+
+ public Date getEnddate() {
+ return enddate;
+ }
+
+ public void setEnddate(Date enddate) {
+ this.enddate = enddate;
+ }
+
+ public boolean isActive() {
+ return active;
+ }
+
+ public void setActive(boolean active) {
+ this.active = active;
+ }
+
+
+}
diff --git a/Dozentenmodul/src/models/person.java b/Dozentenmodul/src/models/person.java
new file mode 100644
index 00000000..f4dd5c22
--- /dev/null
+++ b/Dozentenmodul/src/models/person.java
@@ -0,0 +1,62 @@
+package models;
+
+
+public class person{
+
+ private String Name;
+ private String Vorname;
+ private String Hochschule;
+ private String EMail;
+ private String Tel;
+ private String Fakultät;
+ private boolean ischecked;
+
+
+ public static person verantowrtlicher=new person();
+ public static person ersteller=new person();
+
+ public String getName() {
+ return Name;
+ }
+ public void setName(String name) {
+ Name = name;
+ }
+ public String getVorname() {
+ return Vorname;
+ }
+ public void setVorname(String vorname) {
+ Vorname = vorname;
+ }
+ public String getHochschule() {
+ return Hochschule;
+ }
+ public void setHochschule(String hochschule) {
+ Hochschule = hochschule;
+ }
+ public String getEMail() {
+ return EMail;
+ }
+ public void setEMail(String eMail) {
+ EMail = eMail;
+ }
+ public String getTel() {
+ return Tel;
+ }
+ public void setTel(String tel) {
+ Tel = tel;
+ }
+ public String getFakultät() {
+ return Fakultät;
+ }
+ public void setFakultät(String fakultät) {
+ Fakultät = fakultät;
+ }
+ public boolean isIschecked() {
+ return ischecked;
+ }
+ public void setIschecked(boolean ischecked) {
+ this.ischecked = ischecked;
+ }
+
+
+}
diff --git a/Dozentenmodul/src/models/user.java b/Dozentenmodul/src/models/user.java
new file mode 100644
index 00000000..be64937f
--- /dev/null
+++ b/Dozentenmodul/src/models/user.java
@@ -0,0 +1,22 @@
+package models;
+
+public class user {
+
+ private String userName;
+ private String Password;
+ public String getUserName() {
+ return userName;
+ }
+ public void setUserName(String userName) {
+ this.userName = userName;
+ }
+ public String getPassword() {
+ return Password;
+ }
+ public void setPassword(String password) {
+ Password = password;
+ }
+
+
+
+}
diff --git a/Dozentenmodul/src/models/vm.java b/Dozentenmodul/src/models/vm.java
new file mode 100644
index 00000000..34f9ffaa
--- /dev/null
+++ b/Dozentenmodul/src/models/vm.java
@@ -0,0 +1,69 @@
+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/rmi/RmiClientMethods.java b/Dozentenmodul/src/rmi/RmiClientMethods.java
deleted file mode 100644
index 58df1734..00000000
--- a/Dozentenmodul/src/rmi/RmiClientMethods.java
+++ /dev/null
@@ -1,29 +0,0 @@
-package rmi;
-import java.rmi.*;
-import server.*;
-
-public class RmiClientMethods {
-
- public ServerInterface getInterface()
- {
- String strName = "rmi://141.79.128.121:9999/TheRMIExample";
- System.out.println("Client: Looking up " + strName + "...");
- ServerInterface RMI = null;
-
- try
- {
-
- RMI = (ServerInterface)Naming.lookup(strName);
-
- }
- catch (Exception e)
- {
- System.out.println("Client: Exception thrown looking up " + strName);
- System.out.println("Client: " + e.getMessage().toString());
- System.exit(1);
- }
- return RMI;
- }
-
-
-}
diff --git a/Dozentenmodul/src/sql/sql.java b/Dozentenmodul/src/sql/sql.java
deleted file mode 100644
index c7252049..00000000
--- a/Dozentenmodul/src/sql/sql.java
+++ /dev/null
@@ -1,189 +0,0 @@
-package sql;
-import java.sql.Connection;
-import java.sql.DriverManager;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.sql.Statement;
-
-
-
-
-public class sql {
-
- //Erstellt eine Verbindung zu einer Datenbank
- 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://132.230.4.16/bwLehrpool?user=bwlpuser&password=armag3ddon");
- con.setAutoCommit(false);
- return con;
- } catch (SQLException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- return null;
- }
-
- //Liefert alle vorhandenen Betriebssysteme zurück
- public ResultSet getAllOS(Connection con)
- {
- Statement stm;
- try {
- stm = con.createStatement();
- return stm.executeQuery("SELECT distinct Produktname, Version, Architektur FROM bwLehrpool.Betriebssystem order by Produktname asc;");
- } catch (SQLException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- return null;
- }
-
- //Fügt ein Betriebssystem in die Datenbank ein
- public int AddOS(Connection con, String name, String Version, String Architektur,int Kosten, String Hersteller)
- {
- Statement stm;
- try {
- stm=con.createStatement();
-
- int pk_Hersteller=HerstellerExists(con, Hersteller);
-
- if(pk_Hersteller==-1)
- {
- addHersteller(con, Hersteller);
- pk_Hersteller=HerstellerExists(con, Hersteller);
- }
-
- int ret=stm.executeUpdate("INSERT INTO `bwLehrpool`.`Betriebssystem`(`Produktname`,`Version`,`Architektur`,`IstKostenlos`,`SWHersteller_pk`)VALUES('"+name+"','"+Version+"','"+Architektur+"',"+Kosten+","+pk_Hersteller+");");
- con.commit();
- return ret;
- } catch (SQLException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- return -1;
-
- }
-
- //Überprüft ob der angegebene Hersteller bereits exisitert
- public int HerstellerExists(Connection con, String Hersteller)
- {
- int pk_Hersteller=-1;
- try {
- ResultSet rs=getAllHersteller(con);
- while(rs.next())
- {
- if(rs.getString("Name").equals(Hersteller))
- {
- pk_Hersteller=Integer.parseInt(rs.getString("pk"));
- }
- }
- } catch (SQLException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- return pk_Hersteller;
- }
-
- //Liefert alle vorhandenen Hersteller zurück
- public ResultSet getAllHersteller(Connection con)
- {
- try {
- Statement stm=con.createStatement();
- return stm.executeQuery("SELECT pk,Name FROM bwLehrpool.SWHersteller order by Name asc;");
- } catch (SQLException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- return null;
- }
- //Fügt einen Hersteller in die Datenbank ein
- public int addHersteller(Connection con, String Name){
- Statement stm;
- int ret=-1;
- try {
- stm=con.createStatement();
- ret=stm.executeUpdate("INSERT INTO `bwLehrpool`.`SWHersteller`(`Name`)VALUES('"+Name+"');");
- con.commit();
- } catch (SQLException e) {
- // TODO Auto-generated catch block
-
- e.printStackTrace();
- }
- return ret;
- }
-
- //Liefert sämtliche in der Datenbank vorhandene Software zurück
- public ResultSet getAllSoftware(Connection con, String Hersteller)
- {
-
- try {
- Statement stm=con.createStatement();
-
- return stm.executeQuery("SELECT s.pk,s.Produktname, s.Version, s.Architektur FROM bwLehrpool.Software s left join bwLehrpool.SWHersteller h on s.SWHersteller_pk=h.pk where Name like '"+Hersteller+"' order by s.Produktname;");
-
-
- } catch (SQLException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
-
- return null;
-
- }
-
- //Gibt die Software abhängig vom gesuchten Namen zurück
- public ResultSet getSoftwareByName(Connection con, String Name)
- {
-
- try {
- Statement stm=con.createStatement();
-
- return stm.executeQuery("SELECT concat(h.Name,' ',s.Produktname,' ',s.Version,' ',s.Architektur) as SW FROM bwLehrpool.Software s left join bwLehrpool.SWHersteller h on s.SWHersteller_pk=h.pk where concat(h.Name,' ',s.Produktname,' ',s.Version,' ',s.Architektur) like '%"+Name+"%' order by s.Produktname;");
-
-
- } catch (SQLException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
-
- return null;
-
- }
-
- //Fügt eine Software in die Datenbank ein
- public int AddSoftware(Connection con, String name, String Version, String Architektur,int Kosten, String Hersteller)
- {
- Statement stm;
- try {
- stm=con.createStatement();
-
- int pk_Hersteller=HerstellerExists(con, Hersteller);
-
- if(pk_Hersteller==-1)
- {
-
- addHersteller(con, Hersteller);
- pk_Hersteller=HerstellerExists(con, Hersteller);
-
- }
- int ret=stm.executeUpdate("INSERT INTO `bwLehrpool`.`Software`(`Produktname`,`Version`,`Architektur`,`IstKostenlos`,`SWHersteller_pk`)VALUES('"+name+"','"+Version+"','"+Architektur+"',"+Kosten+","+pk_Hersteller+");");
- con.commit();
- return ret;
- } catch (SQLException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- return -1;
-
- }
-
-}
diff --git a/Dozentenmodul/src/thrift/ThriftConnection.java b/Dozentenmodul/src/thrift/ThriftConnection.java
new file mode 100644
index 00000000..6a65c948
--- /dev/null
+++ b/Dozentenmodul/src/thrift/ThriftConnection.java
@@ -0,0 +1,32 @@
+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 server.Server;
+import server.Server.Client;
+
+public class ThriftConnection {
+
+ public Client getThriftConnection()
+ {
+ final TTransport transport = new TSocket("141.79.128.121", 9090);
+ try {
+ transport.open();
+ } catch (TTransportException e) {
+ System.out.println("Keine Verbindung zum Master möglich!");
+ return null;
+ }
+
+ final TProtocol protocol = new TBinaryProtocol(transport);
+ final Server.Client client = new Server.Client(protocol);
+
+
+ System.out.println("Der Zentralserver läuft!");
+ return client;
+ }
+
+}
diff --git a/Dozentenmodulserver/.classpath b/Dozentenmodulserver/.classpath
index 8f62c67f..ecda71d7 100644
--- a/Dozentenmodulserver/.classpath
+++ b/Dozentenmodulserver/.classpath
@@ -3,5 +3,32 @@
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
<classpathentry kind="lib" path="lib/mysql-connector-java-5.1.25-bin.jar"/>
+ <classpathentry kind="lib" path="C:/Users/tspitzer/.m2/repository/org/apache/thrift/libthrift/0.9.1/libthrift-0.9.1.jar">
+ <attributes>
+ <attribute name="maven.pomderived" value="true"/>
+ <attribute name="maven.groupId" value="org.apache.thrift"/>
+ <attribute name="maven.artifactId" value="libthrift"/>
+ <attribute name="maven.version" value="0.9.1"/>
+ <attribute name="maven.scope" value="compile"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="lib" path="C:/Users/tspitzer/.m2/repository/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar">
+ <attributes>
+ <attribute name="maven.pomderived" value="true"/>
+ <attribute name="maven.groupId" value="org.slf4j"/>
+ <attribute name="maven.artifactId" value="slf4j-api"/>
+ <attribute name="maven.version" value="1.7.5"/>
+ <attribute name="maven.scope" value="compile"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="lib" path="C:/Users/tspitzer/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar">
+ <attributes>
+ <attribute name="maven.pomderived" value="true"/>
+ <attribute name="maven.groupId" value="log4j"/>
+ <attribute name="maven.artifactId" value="log4j"/>
+ <attribute name="maven.version" value="1.2.17"/>
+ <attribute name="maven.scope" value="compile"/>
+ </attributes>
+ </classpathentry>
<classpathentry kind="output" path="bin"/>
</classpath>
diff --git a/Dozentenmodulserver/.project b/Dozentenmodulserver/.project
index 9d8b97eb..713974ca 100644
--- a/Dozentenmodulserver/.project
+++ b/Dozentenmodulserver/.project
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
- <name>Dozentenmodulserver</name>
+ <name>bwLehrpoolSuite_Server</name>
<comment></comment>
<projects>
</projects>
diff --git a/Dozentenmodulserver/bin/Models/User.class b/Dozentenmodulserver/bin/Models/User.class
deleted file mode 100644
index 88815161..00000000
--- a/Dozentenmodulserver/bin/Models/User.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/BinaryListener.class b/Dozentenmodulserver/bin/server/BinaryListener.class
new file mode 100644
index 00000000..30db4102
--- /dev/null
+++ 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
new file mode 100644
index 00000000..24a0ce08
--- /dev/null
+++ 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
new file mode 100644
index 00000000..c03e8e34
--- /dev/null
+++ 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
new file mode 100644
index 00000000..e577ea19
--- /dev/null
+++ 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
new file mode 100644
index 00000000..51290eba
--- /dev/null
+++ 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
new file mode 100644
index 00000000..01586c34
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Image$_Fields.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Image.class b/Dozentenmodulserver/bin/server/Image.class
new file mode 100644
index 00000000..290c32a4
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Image.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncClient$DeleteFtpUser_call.class b/Dozentenmodulserver/bin/server/Server$AsyncClient$DeleteFtpUser_call.class
new file mode 100644
index 00000000..3fd8d648
--- /dev/null
+++ 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
new file mode 100644
index 00000000..02090e03
--- /dev/null
+++ 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
new file mode 100644
index 00000000..ee79e7f0
--- /dev/null
+++ 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
new file mode 100644
index 00000000..860b6413
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$AsyncClient$getFtpUser_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
new file mode 100644
index 00000000..ec81909c
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$AsyncClient$getImageList_call.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncClient$getImages_call.class b/Dozentenmodulserver/bin/server/Server$AsyncClient$getImages_call.class
new file mode 100644
index 00000000..8429995b
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$AsyncClient$getImages_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
new file mode 100644
index 00000000..dac1a6e9
--- /dev/null
+++ 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
new file mode 100644
index 00000000..49bd00d0
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$AsyncClient$getPersonData_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
new file mode 100644
index 00000000..20fd007f
--- /dev/null
+++ 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
new file mode 100644
index 00000000..07def1d7
--- /dev/null
+++ 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
new file mode 100644
index 00000000..d1be51a1
--- /dev/null
+++ 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
new file mode 100644
index 00000000..9aa7b280
--- /dev/null
+++ 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
new file mode 100644
index 00000000..bc0a316b
--- /dev/null
+++ 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
new file mode 100644
index 00000000..61d10987
--- /dev/null
+++ 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
new file mode 100644
index 00000000..ac1435db
--- /dev/null
+++ 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
new file mode 100644
index 00000000..87fedf44
--- /dev/null
+++ 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
new file mode 100644
index 00000000..40feea3c
--- /dev/null
+++ 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
new file mode 100644
index 00000000..71d85012
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getFtpUser.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImageList$1.class b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImageList$1.class
new file mode 100644
index 00000000..14789d7a
--- /dev/null
+++ 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
new file mode 100644
index 00000000..e2898535
--- /dev/null
+++ 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
new file mode 100644
index 00000000..ddc2db72
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImages$1.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImages.class b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImages.class
new file mode 100644
index 00000000..c1c4dc48
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getImages.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getPathOfImage$1.class b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getPathOfImage$1.class
new file mode 100644
index 00000000..4a288d59
--- /dev/null
+++ 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
new file mode 100644
index 00000000..f94ad804
--- /dev/null
+++ 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
new file mode 100644
index 00000000..4e7bfb81
--- /dev/null
+++ 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
new file mode 100644
index 00000000..ed49e98f
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$getPersonData.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$AsyncProcessor$writeLecturedata$1.class b/Dozentenmodulserver/bin/server/Server$AsyncProcessor$writeLecturedata$1.class
new file mode 100644
index 00000000..df2b6a9c
--- /dev/null
+++ 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
new file mode 100644
index 00000000..5664236e
--- /dev/null
+++ 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
new file mode 100644
index 00000000..a1c6d582
--- /dev/null
+++ 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
new file mode 100644
index 00000000..f0df5ac0
--- /dev/null
+++ 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
new file mode 100644
index 00000000..db502b47
--- /dev/null
+++ 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
new file mode 100644
index 00000000..0406711b
--- /dev/null
+++ 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
new file mode 100644
index 00000000..add04104
--- /dev/null
+++ 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
new file mode 100644
index 00000000..1191867e
--- /dev/null
+++ 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
new file mode 100644
index 00000000..02fc15bd
--- /dev/null
+++ 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
new file mode 100644
index 00000000..6c98f0d5
--- /dev/null
+++ 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
new file mode 100644
index 00000000..a7fbc48a
--- /dev/null
+++ 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
new file mode 100644
index 00000000..ba605764
--- /dev/null
+++ 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
new file mode 100644
index 00000000..102765ea
--- /dev/null
+++ 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
new file mode 100644
index 00000000..2c99b1ff
--- /dev/null
+++ 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
new file mode 100644
index 00000000..e9e4cce0
--- /dev/null
+++ 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
new file mode 100644
index 00000000..677f7674
--- /dev/null
+++ 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
new file mode 100644
index 00000000..80950864
--- /dev/null
+++ 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
new file mode 100644
index 00000000..8d98b743
--- /dev/null
+++ 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
new file mode 100644
index 00000000..b2ea20ca
--- /dev/null
+++ 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
new file mode 100644
index 00000000..0ea90ba1
--- /dev/null
+++ 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
new file mode 100644
index 00000000..9c0ee549
--- /dev/null
+++ 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
new file mode 100644
index 00000000..5118d7c6
--- /dev/null
+++ 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
new file mode 100644
index 00000000..a9eb446d
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$Processor$getFtpUser.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$Processor$getImageList.class b/Dozentenmodulserver/bin/server/Server$Processor$getImageList.class
new file mode 100644
index 00000000..cba4cb71
--- /dev/null
+++ 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
new file mode 100644
index 00000000..864e29b3
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$Processor$getImages.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$Processor$getPathOfImage.class b/Dozentenmodulserver/bin/server/Server$Processor$getPathOfImage.class
new file mode 100644
index 00000000..b070d975
--- /dev/null
+++ 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
new file mode 100644
index 00000000..04eb7145
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$Processor$getPersonData.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$Processor$writeLecturedata.class b/Dozentenmodulserver/bin/server/Server$Processor$writeLecturedata.class
new file mode 100644
index 00000000..6e6e9d4a
--- /dev/null
+++ 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
new file mode 100644
index 00000000..e65ab367
--- /dev/null
+++ 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
new file mode 100644
index 00000000..c2490288
--- /dev/null
+++ 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
new file mode 100644
index 00000000..8068ef6d
--- /dev/null
+++ 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
new file mode 100644
index 00000000..d06adcd2
--- /dev/null
+++ 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
new file mode 100644
index 00000000..0892ad37
--- /dev/null
+++ 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
new file mode 100644
index 00000000..256a7b53
--- /dev/null
+++ 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
new file mode 100644
index 00000000..d42e3fa4
--- /dev/null
+++ 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
new file mode 100644
index 00000000..8839c2d7
--- /dev/null
+++ 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
new file mode 100644
index 00000000..b31e3632
--- /dev/null
+++ 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
new file mode 100644
index 00000000..c3f60d6b
--- /dev/null
+++ 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
new file mode 100644
index 00000000..485f0926
--- /dev/null
+++ 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
new file mode 100644
index 00000000..0a2d584a
--- /dev/null
+++ 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
new file mode 100644
index 00000000..bcf78ee1
--- /dev/null
+++ 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
new file mode 100644
index 00000000..536973c6
--- /dev/null
+++ 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
new file mode 100644
index 00000000..8d5287cb
--- /dev/null
+++ 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
new file mode 100644
index 00000000..131c1387
--- /dev/null
+++ 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
new file mode 100644
index 00000000..d7efbb6b
--- /dev/null
+++ 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
new file mode 100644
index 00000000..c8f8519c
--- /dev/null
+++ 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
new file mode 100644
index 00000000..df906712
--- /dev/null
+++ 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
new file mode 100644
index 00000000..542bb0f8
--- /dev/null
+++ 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
new file mode 100644
index 00000000..eedf98f9
--- /dev/null
+++ 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
new file mode 100644
index 00000000..e39c03e8
--- /dev/null
+++ 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
new file mode 100644
index 00000000..ca3c644a
--- /dev/null
+++ 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
new file mode 100644
index 00000000..0449919c
--- /dev/null
+++ 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
new file mode 100644
index 00000000..7877a7fe
--- /dev/null
+++ 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
new file mode 100644
index 00000000..f45a14f8
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getFtpUser_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
new file mode 100644
index 00000000..e27111e7
--- /dev/null
+++ 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
new file mode 100644
index 00000000..df3bcde4
--- /dev/null
+++ 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
new file mode 100644
index 00000000..957e3a30
--- /dev/null
+++ 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
new file mode 100644
index 00000000..f5a58df8
--- /dev/null
+++ 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
new file mode 100644
index 00000000..2138036c
--- /dev/null
+++ 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
new file mode 100644
index 00000000..b1f224b6
--- /dev/null
+++ 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
new file mode 100644
index 00000000..eaa8b6b9
--- /dev/null
+++ 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
new file mode 100644
index 00000000..b6fa6a4b
--- /dev/null
+++ 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
new file mode 100644
index 00000000..7206f021
--- /dev/null
+++ 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
new file mode 100644
index 00000000..8f856522
--- /dev/null
+++ 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
new file mode 100644
index 00000000..387484fd
--- /dev/null
+++ 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
new file mode 100644
index 00000000..87873368
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getImageList_result.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImages_args$_Fields.class b/Dozentenmodulserver/bin/server/Server$getImages_args$_Fields.class
new file mode 100644
index 00000000..27a74ca1
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getImages_args$_Fields.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
new file mode 100644
index 00000000..528c6913
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getImages_args$getImages_argsStandardScheme.class
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
new file mode 100644
index 00000000..870a6eaf
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getImages_args$getImages_argsStandardSchemeFactory.class
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
new file mode 100644
index 00000000..e1a61916
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getImages_args$getImages_argsTupleScheme.class
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
new file mode 100644
index 00000000..fd625462
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getImages_args$getImages_argsTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImages_args.class b/Dozentenmodulserver/bin/server/Server$getImages_args.class
new file mode 100644
index 00000000..b9b7f657
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getImages_args.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImages_result$_Fields.class b/Dozentenmodulserver/bin/server/Server$getImages_result$_Fields.class
new file mode 100644
index 00000000..6cd10724
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getImages_result$_Fields.class
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
new file mode 100644
index 00000000..69242767
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getImages_result$getImages_resultStandardScheme.class
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
new file mode 100644
index 00000000..67cd4169
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getImages_result$getImages_resultStandardSchemeFactory.class
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
new file mode 100644
index 00000000..67c22daa
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getImages_result$getImages_resultTupleScheme.class
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
new file mode 100644
index 00000000..40c4f449
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getImages_result$getImages_resultTupleSchemeFactory.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/Server$getImages_result.class b/Dozentenmodulserver/bin/server/Server$getImages_result.class
new file mode 100644
index 00000000..4662ea85
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getImages_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
new file mode 100644
index 00000000..497f1c9f
--- /dev/null
+++ 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
new file mode 100644
index 00000000..99e88cea
--- /dev/null
+++ 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
new file mode 100644
index 00000000..71e2febe
--- /dev/null
+++ 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
new file mode 100644
index 00000000..9dede6cc
--- /dev/null
+++ 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
new file mode 100644
index 00000000..2dca70ac
--- /dev/null
+++ 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
new file mode 100644
index 00000000..95676a09
--- /dev/null
+++ 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
new file mode 100644
index 00000000..c8395862
--- /dev/null
+++ 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
new file mode 100644
index 00000000..1356f8ef
--- /dev/null
+++ 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
new file mode 100644
index 00000000..f3442bc9
--- /dev/null
+++ 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
new file mode 100644
index 00000000..c2b16d2c
--- /dev/null
+++ 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
new file mode 100644
index 00000000..5d0ea6e2
--- /dev/null
+++ 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
new file mode 100644
index 00000000..d082ca77
--- /dev/null
+++ 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
new file mode 100644
index 00000000..0334404a
--- /dev/null
+++ 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
new file mode 100644
index 00000000..4218d645
--- /dev/null
+++ 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
new file mode 100644
index 00000000..c05d2f4c
--- /dev/null
+++ 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
new file mode 100644
index 00000000..202bcd46
--- /dev/null
+++ 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
new file mode 100644
index 00000000..203b2da3
--- /dev/null
+++ 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
new file mode 100644
index 00000000..a226d5b6
--- /dev/null
+++ 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
new file mode 100644
index 00000000..6299bc60
--- /dev/null
+++ 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
new file mode 100644
index 00000000..2eef4b54
--- /dev/null
+++ 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
new file mode 100644
index 00000000..64981f87
--- /dev/null
+++ 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
new file mode 100644
index 00000000..fa6fddda
--- /dev/null
+++ 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
new file mode 100644
index 00000000..74c3c58c
--- /dev/null
+++ 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
new file mode 100644
index 00000000..7d9322e9
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server$getPersonData_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
new file mode 100644
index 00000000..e340b697
--- /dev/null
+++ 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
new file mode 100644
index 00000000..4c9c07c3
--- /dev/null
+++ 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
new file mode 100644
index 00000000..56edc2a6
--- /dev/null
+++ 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
new file mode 100644
index 00000000..d78b0f78
--- /dev/null
+++ 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
new file mode 100644
index 00000000..9d076c31
--- /dev/null
+++ 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
new file mode 100644
index 00000000..446e2687
--- /dev/null
+++ 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
new file mode 100644
index 00000000..c449a739
--- /dev/null
+++ 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
new file mode 100644
index 00000000..c5381e2e
--- /dev/null
+++ 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
new file mode 100644
index 00000000..2cd2a923
--- /dev/null
+++ 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
new file mode 100644
index 00000000..570099f8
--- /dev/null
+++ 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
new file mode 100644
index 00000000..4a0e87a8
--- /dev/null
+++ 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
new file mode 100644
index 00000000..258b6330
--- /dev/null
+++ 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
new file mode 100644
index 00000000..8c6d872e
--- /dev/null
+++ 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
new file mode 100644
index 00000000..ac0f7bf9
--- /dev/null
+++ 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
new file mode 100644
index 00000000..3a44ab86
--- /dev/null
+++ 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
new file mode 100644
index 00000000..f3a974f0
--- /dev/null
+++ 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
new file mode 100644
index 00000000..1c582ef0
--- /dev/null
+++ 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
new file mode 100644
index 00000000..579e8b86
--- /dev/null
+++ 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
new file mode 100644
index 00000000..a08d2088
--- /dev/null
+++ 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
new file mode 100644
index 00000000..45ed0dd0
--- /dev/null
+++ 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
new file mode 100644
index 00000000..a5c1672e
--- /dev/null
+++ 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
new file mode 100644
index 00000000..45b2dfcc
--- /dev/null
+++ 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
new file mode 100644
index 00000000..acc50ec7
--- /dev/null
+++ 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
new file mode 100644
index 00000000..fdcc464f
--- /dev/null
+++ 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
new file mode 100644
index 00000000..af9172e7
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/Server.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/ServerHandler.class b/Dozentenmodulserver/bin/server/ServerHandler.class
new file mode 100644
index 00000000..58c7e63c
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/ServerHandler.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/ServerInterface.class b/Dozentenmodulserver/bin/server/ServerInterface.class
deleted file mode 100644
index 9c9c08d8..00000000
--- a/Dozentenmodulserver/bin/server/ServerInterface.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/ServerMethod.class b/Dozentenmodulserver/bin/server/ServerMethod.class
deleted file mode 100644
index a60a23f9..00000000
--- a/Dozentenmodulserver/bin/server/ServerMethod.class
+++ /dev/null
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/User$UserStandardScheme.class b/Dozentenmodulserver/bin/server/User$UserStandardScheme.class
new file mode 100644
index 00000000..b431453b
--- /dev/null
+++ 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
new file mode 100644
index 00000000..176c88aa
--- /dev/null
+++ 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
new file mode 100644
index 00000000..ef7626d2
--- /dev/null
+++ 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
new file mode 100644
index 00000000..4e4fba66
--- /dev/null
+++ 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
new file mode 100644
index 00000000..8837c194
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/User$_Fields.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/User.class b/Dozentenmodulserver/bin/server/User.class
new file mode 100644
index 00000000..b19fe5bd
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/User.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/server/startServer.class b/Dozentenmodulserver/bin/server/startServer.class
new file mode 100644
index 00000000..bd79ab19
--- /dev/null
+++ b/Dozentenmodulserver/bin/server/startServer.class
Binary files differ
diff --git a/Dozentenmodulserver/bin/sql/SQL.class b/Dozentenmodulserver/bin/sql/SQL.class
index 45162648..1c996f36 100644
--- a/Dozentenmodulserver/bin/sql/SQL.class
+++ b/Dozentenmodulserver/bin/sql/SQL.class
Binary files differ
diff --git a/Dozentenmodulserver/src/Models/User.java b/Dozentenmodulserver/src/Models/User.java
deleted file mode 100644
index c533d6fa..00000000
--- a/Dozentenmodulserver/src/Models/User.java
+++ /dev/null
@@ -1,29 +0,0 @@
-package Models;
-
-import java.io.Serializable;
-
-@SuppressWarnings("serial")
-public class User implements Serializable {
-
- private String username;
- private String pass;
- private String path;
- public String getPath() {
- return path;
- }
- public void setPath(String path) {
- this.path = path;
- }
- public String getUsername() {
- return username;
- }
- public void setUsername(String username) {
- this.username = username;
- }
- public String getPass() {
- return pass;
- }
- public void setPass(String pass) {
- this.pass = pass;
- }
-}
diff --git a/Dozentenmodulserver/src/server/BinaryListener.java b/Dozentenmodulserver/src/server/BinaryListener.java
new file mode 100644
index 00000000..7c546fee
--- /dev/null
+++ b/Dozentenmodulserver/src/server/BinaryListener.java
@@ -0,0 +1,32 @@
+package server;
+
+import org.apache.log4j.Logger;
+import org.apache.thrift.server.TServer;
+import org.apache.thrift.server.TServer.Args;
+import org.apache.thrift.server.TSimpleServer;
+import org.apache.thrift.transport.TServerSocket;
+import org.apache.thrift.transport.TServerTransport;
+import org.apache.thrift.transport.TTransportException;
+
+public class BinaryListener implements Runnable
+{
+ private static Logger log = Logger.getLogger( BinaryListener.class );
+
+ @Override
+ public void run()
+ {
+ final ServerHandler handler = new ServerHandler();
+ final Server.Processor<ServerHandler> processor = new Server.Processor<ServerHandler>( handler );
+ final TServerTransport transport;
+ try {
+ transport = new TServerSocket( 9090 );
+ } catch ( TTransportException e ) {
+ log.fatal( "Could not listen on port 9090" );
+ return;
+ }
+ TServer server = new TSimpleServer( new Args( transport ).processor( processor ) );
+ log.info("Starting TSimpleServer");
+ server.serve();
+ }
+
+}
diff --git a/Dozentenmodulserver/src/server/Image.java b/Dozentenmodulserver/src/server/Image.java
new file mode 100644
index 00000000..e142b86e
--- /dev/null
+++ b/Dozentenmodulserver/src/server/Image.java
@@ -0,0 +1,880 @@
+/**
+ * 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 java.util.BitSet;
+import java.util.Collections;
+import java.util.EnumMap;
+import java.util.EnumSet;
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+import org.apache.thrift.scheme.TupleScheme;
+
+@SuppressWarnings("serial")
+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);
+
+ @SuppressWarnings("rawtypes")
+private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new ImageStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new ImageTupleSchemeFactory());
+ }
+
+ public String imageName; // required
+ public String licenseRestriction; // required
+ public String osName; // required
+ public String lectureName; // required
+ public String updateTime; // required
+ public String userData; // 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 {
+ 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");
+
+ 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: // IMAGE_NAME
+ return IMAGE_NAME;
+ case -2: // LICENSE_RESTRICTION
+ return LICENSE_RESTRICTION;
+ case -3: // OS_NAME
+ return OS_NAME;
+ case -4: // LECTURE_NAME
+ return LECTURE_NAME;
+ case -5: // UPDATE_TIME
+ return UPDATE_TIME;
+ case -6: // USER_DATA
+ return USER_DATA;
+ 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.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,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.OS_NAME, new org.apache.thrift.meta_data.FieldMetaData("osName", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.LECTURE_NAME, 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.UPDATE_TIME, new org.apache.thrift.meta_data.FieldMetaData("updateTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.USER_DATA, new org.apache.thrift.meta_data.FieldMetaData("userData", 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(Image.class, metaDataMap);
+ }
+
+ public Image() {
+ }
+
+ public Image(
+ String imageName,
+ String licenseRestriction,
+ String osName,
+ String lectureName,
+ String updateTime,
+ String userData)
+ {
+ this();
+ this.imageName = imageName;
+ this.licenseRestriction = licenseRestriction;
+ this.osName = osName;
+ this.lectureName = lectureName;
+ this.updateTime = updateTime;
+ this.userData = userData;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public Image(Image other) {
+ if (other.isSetImageName()) {
+ this.imageName = other.imageName;
+ }
+ if (other.isSetLicenseRestriction()) {
+ this.licenseRestriction = other.licenseRestriction;
+ }
+ if (other.isSetOsName()) {
+ this.osName = other.osName;
+ }
+ if (other.isSetLectureName()) {
+ this.lectureName = other.lectureName;
+ }
+ if (other.isSetUpdateTime()) {
+ this.updateTime = other.updateTime;
+ }
+ if (other.isSetUserData()) {
+ this.userData = other.userData;
+ }
+ }
+
+ public Image deepCopy() {
+ return new Image(this);
+ }
+
+ @Override
+ public void clear() {
+ this.imageName = null;
+ this.licenseRestriction = null;
+ this.osName = null;
+ this.lectureName = null;
+ this.updateTime = null;
+ this.userData = null;
+ }
+
+ public String getImageName() {
+ return this.imageName;
+ }
+
+ public Image 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 getLicenseRestriction() {
+ return this.licenseRestriction;
+ }
+
+ public Image setLicenseRestriction(String licenseRestriction) {
+ this.licenseRestriction = licenseRestriction;
+ return this;
+ }
+
+ public void unsetLicenseRestriction() {
+ this.licenseRestriction = null;
+ }
+
+ /** Returns true if field licenseRestriction is set (has been assigned a value) and false otherwise */
+ public boolean isSetLicenseRestriction() {
+ return this.licenseRestriction != null;
+ }
+
+ public void setLicenseRestrictionIsSet(boolean value) {
+ if (!value) {
+ this.licenseRestriction = null;
+ }
+ }
+
+ public String getOsName() {
+ return this.osName;
+ }
+
+ public Image setOsName(String osName) {
+ this.osName = osName;
+ return this;
+ }
+
+ public void unsetOsName() {
+ this.osName = null;
+ }
+
+ /** Returns true if field osName is set (has been assigned a value) and false otherwise */
+ public boolean isSetOsName() {
+ return this.osName != null;
+ }
+
+ public void setOsNameIsSet(boolean value) {
+ if (!value) {
+ this.osName = null;
+ }
+ }
+
+ public String getLectureName() {
+ return this.lectureName;
+ }
+
+ public Image 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 getUpdateTime() {
+ return this.updateTime;
+ }
+
+ public Image setUpdateTime(String updateTime) {
+ this.updateTime = updateTime;
+ return this;
+ }
+
+ public void unsetUpdateTime() {
+ this.updateTime = null;
+ }
+
+ /** Returns true if field updateTime is set (has been assigned a value) and false otherwise */
+ public boolean isSetUpdateTime() {
+ return this.updateTime != null;
+ }
+
+ public void setUpdateTimeIsSet(boolean value) {
+ if (!value) {
+ this.updateTime = null;
+ }
+ }
+
+ public String getUserData() {
+ return this.userData;
+ }
+
+ public Image setUserData(String userData) {
+ this.userData = userData;
+ return this;
+ }
+
+ public void unsetUserData() {
+ this.userData = null;
+ }
+
+ /** Returns true if field userData is set (has been assigned a value) and false otherwise */
+ public boolean isSetUserData() {
+ return this.userData != null;
+ }
+
+ public void setUserDataIsSet(boolean value) {
+ if (!value) {
+ this.userData = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case IMAGE_NAME:
+ if (value == null) {
+ unsetImageName();
+ } else {
+ setImageName((String)value);
+ }
+ break;
+
+ case LICENSE_RESTRICTION:
+ if (value == null) {
+ unsetLicenseRestriction();
+ } else {
+ setLicenseRestriction((String)value);
+ }
+ break;
+
+ case OS_NAME:
+ if (value == null) {
+ unsetOsName();
+ } else {
+ setOsName((String)value);
+ }
+ break;
+
+ case LECTURE_NAME:
+ if (value == null) {
+ unsetLectureName();
+ } else {
+ setLectureName((String)value);
+ }
+ break;
+
+ case UPDATE_TIME:
+ if (value == null) {
+ unsetUpdateTime();
+ } else {
+ setUpdateTime((String)value);
+ }
+ break;
+
+ case USER_DATA:
+ if (value == null) {
+ unsetUserData();
+ } else {
+ setUserData((String)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case IMAGE_NAME:
+ return getImageName();
+
+ case LICENSE_RESTRICTION:
+ return getLicenseRestriction();
+
+ case OS_NAME:
+ return getOsName();
+
+ case LECTURE_NAME:
+ return getLectureName();
+
+ case UPDATE_TIME:
+ return getUpdateTime();
+
+ case USER_DATA:
+ return getUserData();
+
+ }
+ 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 IMAGE_NAME:
+ return isSetImageName();
+ case LICENSE_RESTRICTION:
+ return isSetLicenseRestriction();
+ case OS_NAME:
+ return isSetOsName();
+ case LECTURE_NAME:
+ return isSetLectureName();
+ case UPDATE_TIME:
+ return isSetUpdateTime();
+ case USER_DATA:
+ return isSetUserData();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof Image)
+ return this.equals((Image)that);
+ return false;
+ }
+
+ public boolean equals(Image that) {
+ 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))
+ return false;
+ if (!this.imageName.equals(that.imageName))
+ return false;
+ }
+
+ boolean this_present_licenseRestriction = true && this.isSetLicenseRestriction();
+ boolean that_present_licenseRestriction = true && that.isSetLicenseRestriction();
+ if (this_present_licenseRestriction || that_present_licenseRestriction) {
+ if (!(this_present_licenseRestriction && that_present_licenseRestriction))
+ return false;
+ if (!this.licenseRestriction.equals(that.licenseRestriction))
+ return false;
+ }
+
+ boolean this_present_osName = true && this.isSetOsName();
+ boolean that_present_osName = true && that.isSetOsName();
+ if (this_present_osName || that_present_osName) {
+ if (!(this_present_osName && that_present_osName))
+ return false;
+ if (!this.osName.equals(that.osName))
+ 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_updateTime = true && this.isSetUpdateTime();
+ boolean that_present_updateTime = true && that.isSetUpdateTime();
+ if (this_present_updateTime || that_present_updateTime) {
+ if (!(this_present_updateTime && that_present_updateTime))
+ return false;
+ if (!this.updateTime.equals(that.updateTime))
+ return false;
+ }
+
+ boolean this_present_userData = true && this.isSetUserData();
+ boolean that_present_userData = true && that.isSetUserData();
+ if (this_present_userData || that_present_userData) {
+ if (!(this_present_userData && that_present_userData))
+ return false;
+ if (!this.userData.equals(that.userData))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return 0;
+ }
+
+ @Override
+ public int compareTo(Image other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ 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(isSetLicenseRestriction()).compareTo(other.isSetLicenseRestriction());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetLicenseRestriction()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.licenseRestriction, other.licenseRestriction);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetOsName()).compareTo(other.isSetOsName());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetOsName()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.osName, other.osName);
+ 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(isSetUpdateTime()).compareTo(other.isSetUpdateTime());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetUpdateTime()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.updateTime, other.updateTime);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetUserData()).compareTo(other.isSetUserData());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetUserData()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userData, other.userData);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ @SuppressWarnings("unchecked")
+public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ }
+
+ @SuppressWarnings("unchecked")
+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("Image(");
+ boolean first = true;
+
+ sb.append("imageName:");
+ if (this.imageName == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.imageName);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("licenseRestriction:");
+ if (this.licenseRestriction == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.licenseRestriction);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("osName:");
+ if (this.osName == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.osName);
+ }
+ 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("updateTime:");
+ if (this.updateTime == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.updateTime);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("userData:");
+ if (this.userData == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.userData);
+ }
+ 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 ImageStandardSchemeFactory implements SchemeFactory {
+ @SuppressWarnings("unchecked")
+ public ImageStandardScheme getScheme() {
+ return new ImageStandardScheme();
+ }
+ }
+
+ private static class ImageStandardScheme extends StandardScheme<Image> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, Image 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: // IMAGE_NAME
+ 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 -2: // LICENSE_RESTRICTION
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.licenseRestriction = iprot.readString();
+ struct.setLicenseRestrictionIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -3: // OS_NAME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.osName = iprot.readString();
+ struct.setOsNameIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -4: // LECTURE_NAME
+ 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 -5: // UPDATE_TIME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.updateTime = iprot.readString();
+ struct.setUpdateTimeIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -6: // USER_DATA
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.userData = iprot.readString();
+ struct.setUserDataIsSet(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, Image struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.userData != null) {
+ oprot.writeFieldBegin(USER_DATA_FIELD_DESC);
+ oprot.writeString(struct.userData);
+ oprot.writeFieldEnd();
+ }
+ if (struct.updateTime != null) {
+ oprot.writeFieldBegin(UPDATE_TIME_FIELD_DESC);
+ oprot.writeString(struct.updateTime);
+ oprot.writeFieldEnd();
+ }
+ if (struct.lectureName != null) {
+ oprot.writeFieldBegin(LECTURE_NAME_FIELD_DESC);
+ oprot.writeString(struct.lectureName);
+ oprot.writeFieldEnd();
+ }
+ if (struct.osName != null) {
+ oprot.writeFieldBegin(OS_NAME_FIELD_DESC);
+ oprot.writeString(struct.osName);
+ oprot.writeFieldEnd();
+ }
+ if (struct.licenseRestriction != null) {
+ oprot.writeFieldBegin(LICENSE_RESTRICTION_FIELD_DESC);
+ oprot.writeString(struct.licenseRestriction);
+ oprot.writeFieldEnd();
+ }
+ if (struct.imageName != null) {
+ oprot.writeFieldBegin(IMAGE_NAME_FIELD_DESC);
+ oprot.writeString(struct.imageName);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class ImageTupleSchemeFactory implements SchemeFactory {
+ @SuppressWarnings("unchecked")
+ public ImageTupleScheme getScheme() {
+ return new ImageTupleScheme();
+ }
+ }
+
+ private static class ImageTupleScheme extends TupleScheme<Image> {
+
+ @Override
+ 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()) {
+ optionals.set(0);
+ }
+ if (struct.isSetLicenseRestriction()) {
+ optionals.set(1);
+ }
+ if (struct.isSetOsName()) {
+ optionals.set(2);
+ }
+ if (struct.isSetLectureName()) {
+ optionals.set(3);
+ }
+ if (struct.isSetUpdateTime()) {
+ optionals.set(4);
+ }
+ if (struct.isSetUserData()) {
+ optionals.set(5);
+ }
+ oprot.writeBitSet(optionals, 6);
+ if (struct.isSetImageName()) {
+ oprot.writeString(struct.imageName);
+ }
+ if (struct.isSetLicenseRestriction()) {
+ oprot.writeString(struct.licenseRestriction);
+ }
+ if (struct.isSetOsName()) {
+ oprot.writeString(struct.osName);
+ }
+ if (struct.isSetLectureName()) {
+ oprot.writeString(struct.lectureName);
+ }
+ if (struct.isSetUpdateTime()) {
+ oprot.writeString(struct.updateTime);
+ }
+ if (struct.isSetUserData()) {
+ oprot.writeString(struct.userData);
+ }
+ }
+
+ @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);
+ if (incoming.get(0)) {
+ struct.imageName = iprot.readString();
+ struct.setImageNameIsSet(true);
+ }
+ if (incoming.get(1)) {
+ struct.licenseRestriction = iprot.readString();
+ struct.setLicenseRestrictionIsSet(true);
+ }
+ if (incoming.get(2)) {
+ struct.osName = iprot.readString();
+ struct.setOsNameIsSet(true);
+ }
+ if (incoming.get(3)) {
+ struct.lectureName = iprot.readString();
+ struct.setLectureNameIsSet(true);
+ }
+ if (incoming.get(4)) {
+ struct.updateTime = iprot.readString();
+ struct.setUpdateTimeIsSet(true);
+ }
+ if (incoming.get(5)) {
+ struct.userData = iprot.readString();
+ struct.setUserDataIsSet(true);
+ }
+ }
+ }
+
+}
+
diff --git a/Dozentenmodulserver/src/server/Server.java b/Dozentenmodulserver/src/server/Server.java
new file mode 100644
index 00000000..a0342201
--- /dev/null
+++ b/Dozentenmodulserver/src/server/Server.java
@@ -0,0 +1,9820 @@
+/**
+ * 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 java.util.ArrayList;
+import java.util.BitSet;
+import java.util.Collections;
+import java.util.EnumMap;
+import java.util.EnumSet;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.protocol.TTupleProtocol;
+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.server.AbstractNonblockingServer.AsyncFrameBuffer;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class Server {
+
+ public interface Iface {
+
+ public User getFtpUser() throws org.apache.thrift.TException;
+
+ 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 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 List<Image> getImageList() 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;
+
+ public boolean writeLecturedata(String name, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak) throws org.apache.thrift.TException;
+
+ }
+
+ public interface AsyncIface {
+
+ public void getFtpUser(@SuppressWarnings("rawtypes") org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+ public void DeleteFtpUser(String user, @SuppressWarnings("rawtypes") org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+ public void getImages(@SuppressWarnings("rawtypes") org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+ public void getPathOfImage(String name, @SuppressWarnings("rawtypes") 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, @SuppressWarnings("rawtypes") org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+ public void getImageList(@SuppressWarnings("rawtypes") org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+ public void getAllOS(@SuppressWarnings("rawtypes") org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+ public void getPersonData(String Vorname, String Nachname, @SuppressWarnings("rawtypes") org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+ public void writeLecturedata(String name, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, @SuppressWarnings("rawtypes") 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 User getFtpUser() throws org.apache.thrift.TException
+ {
+ send_getFtpUser();
+ return recv_getFtpUser();
+ }
+
+ public void send_getFtpUser() throws org.apache.thrift.TException
+ {
+ getFtpUser_args args = new getFtpUser_args();
+ sendBase("getFtpUser", args);
+ }
+
+ public User recv_getFtpUser() throws org.apache.thrift.TException
+ {
+ getFtpUser_result result = new getFtpUser_result();
+ receiveBase(result, "getFtpUser");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFtpUser failed: unknown result");
+ }
+
+ public long DeleteFtpUser(String user) throws org.apache.thrift.TException
+ {
+ send_DeleteFtpUser(user);
+ return recv_DeleteFtpUser();
+ }
+
+ public void send_DeleteFtpUser(String user) throws org.apache.thrift.TException
+ {
+ DeleteFtpUser_args args = new DeleteFtpUser_args();
+ args.setUser(user);
+ sendBase("DeleteFtpUser", args);
+ }
+
+ public long recv_DeleteFtpUser() throws org.apache.thrift.TException
+ {
+ DeleteFtpUser_result result = new DeleteFtpUser_result();
+ receiveBase(result, "DeleteFtpUser");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ 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
+ {
+ send_getPathOfImage(name);
+ return recv_getPathOfImage();
+ }
+
+ public void send_getPathOfImage(String name) throws org.apache.thrift.TException
+ {
+ getPathOfImage_args args = new getPathOfImage_args();
+ args.setName(name);
+ sendBase("getPathOfImage", args);
+ }
+
+ public String recv_getPathOfImage() throws org.apache.thrift.TException
+ {
+ getPathOfImage_result result = new getPathOfImage_result();
+ receiveBase(result, "getPathOfImage");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ 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
+ {
+ send_writeVLdata(imagename, firstname, lastname, university, Mail, Tel, Fak, license, internet, ram, cpu);
+ 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
+ {
+ writeVLdata_args args = new writeVLdata_args();
+ args.setImagename(imagename);
+ args.setFirstname(firstname);
+ args.setLastname(lastname);
+ args.setUniversity(university);
+ args.setMail(Mail);
+ args.setTel(Tel);
+ args.setFak(Fak);
+ args.setLicense(license);
+ args.setInternet(internet);
+ args.setRam(ram);
+ args.setCpu(cpu);
+ sendBase("writeVLdata", args);
+ }
+
+ public boolean recv_writeVLdata() throws org.apache.thrift.TException
+ {
+ writeVLdata_result result = new writeVLdata_result();
+ receiveBase(result, "writeVLdata");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "writeVLdata failed: unknown result");
+ }
+
+ public List<Image> getImageList() throws org.apache.thrift.TException
+ {
+ send_getImageList();
+ return recv_getImageList();
+ }
+
+ public void send_getImageList() throws org.apache.thrift.TException
+ {
+ getImageList_args args = new getImageList_args();
+ sendBase("getImageList", args);
+ }
+
+ public List<Image> recv_getImageList() throws org.apache.thrift.TException
+ {
+ getImageList_result result = new getImageList_result();
+ receiveBase(result, "getImageList");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImageList failed: unknown result");
+ }
+
+ public List<String> getAllOS() throws org.apache.thrift.TException
+ {
+ send_getAllOS();
+ return recv_getAllOS();
+ }
+
+ public void send_getAllOS() throws org.apache.thrift.TException
+ {
+ getAllOS_args args = new getAllOS_args();
+ sendBase("getAllOS", args);
+ }
+
+ public List<String> recv_getAllOS() throws org.apache.thrift.TException
+ {
+ getAllOS_result result = new getAllOS_result();
+ receiveBase(result, "getAllOS");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllOS failed: unknown result");
+ }
+
+ public Map<String,String> getPersonData(String Vorname, String Nachname) throws org.apache.thrift.TException
+ {
+ send_getPersonData(Vorname, Nachname);
+ return recv_getPersonData();
+ }
+
+ public void send_getPersonData(String Vorname, String Nachname) throws org.apache.thrift.TException
+ {
+ getPersonData_args args = new getPersonData_args();
+ args.setVorname(Vorname);
+ args.setNachname(Nachname);
+ sendBase("getPersonData", args);
+ }
+
+ public Map<String,String> recv_getPersonData() throws org.apache.thrift.TException
+ {
+ getPersonData_result result = new getPersonData_result();
+ receiveBase(result, "getPersonData");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPersonData failed: unknown result");
+ }
+
+ public boolean writeLecturedata(String name, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak) throws org.apache.thrift.TException
+ {
+ send_writeLecturedata(name, shortdesc, desc, startDate, endDate, isActive, imagename, firstname, lastname, university, Mail, Tel, Fak);
+ return recv_writeLecturedata();
+ }
+
+ public void send_writeLecturedata(String name, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak) throws org.apache.thrift.TException
+ {
+ writeLecturedata_args args = new writeLecturedata_args();
+ args.setName(name);
+ 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);
+ sendBase("writeLecturedata", args);
+ }
+
+ public boolean recv_writeLecturedata() throws org.apache.thrift.TException
+ {
+ writeLecturedata_result result = new writeLecturedata_result();
+ receiveBase(result, "writeLecturedata");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "writeLecturedata 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 getFtpUser(@SuppressWarnings("rawtypes") org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getFtpUser_call method_call = new getFtpUser_call(resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ @SuppressWarnings("rawtypes")
+ public static class getFtpUser_call extends org.apache.thrift.async.TAsyncMethodCall {
+ @SuppressWarnings("unchecked")
+ public getFtpUser_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("getFtpUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getFtpUser_args args = new getFtpUser_args();
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public User 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_getFtpUser();
+ }
+ }
+
+ public void DeleteFtpUser(String user, @SuppressWarnings("rawtypes") org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ DeleteFtpUser_call method_call = new DeleteFtpUser_call(user, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ @SuppressWarnings("rawtypes")
+ public static class DeleteFtpUser_call extends org.apache.thrift.async.TAsyncMethodCall {
+ private String user;
+ @SuppressWarnings("unchecked")
+ public DeleteFtpUser_call(String user, 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.user = user;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("DeleteFtpUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ DeleteFtpUser_args args = new DeleteFtpUser_args();
+ args.setUser(user);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public long 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_DeleteFtpUser();
+ }
+ }
+
+ public void getImages(@SuppressWarnings("rawtypes") 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);
+ }
+
+ @SuppressWarnings("rawtypes")
+ public static class getImages_call extends org.apache.thrift.async.TAsyncMethodCall {
+ @SuppressWarnings("unchecked")
+ 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, @SuppressWarnings("rawtypes") org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getPathOfImage_call method_call = new getPathOfImage_call(name, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ @SuppressWarnings("rawtypes")
+ public static class getPathOfImage_call extends org.apache.thrift.async.TAsyncMethodCall {
+ private String name;
+ @SuppressWarnings("unchecked")
+ 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 {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.name = name;
+ }
+
+ 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.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public 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_getPathOfImage();
+ }
+ }
+
+ 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 {
+ checkReady();
+ writeVLdata_call method_call = new writeVLdata_call(imagename, firstname, lastname, university, Mail, Tel, Fak, license, internet, ram, cpu, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ @SuppressWarnings("rawtypes")
+ public static class writeVLdata_call extends org.apache.thrift.async.TAsyncMethodCall {
+ private String imagename;
+ private String firstname;
+ private String lastname;
+ private String university;
+ private String Mail;
+ private String Tel;
+ private String Fak;
+ private boolean license;
+ private boolean internet;
+ private long ram;
+ private long cpu;
+ @SuppressWarnings("unchecked")
+ 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 {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.imagename = imagename;
+ this.firstname = firstname;
+ this.lastname = lastname;
+ this.university = university;
+ this.Mail = Mail;
+ this.Tel = Tel;
+ this.Fak = Fak;
+ this.license = license;
+ this.internet = internet;
+ this.ram = ram;
+ this.cpu = cpu;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("writeVLdata", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ writeVLdata_args args = new writeVLdata_args();
+ args.setImagename(imagename);
+ args.setFirstname(firstname);
+ args.setLastname(lastname);
+ args.setUniversity(university);
+ args.setMail(Mail);
+ args.setTel(Tel);
+ args.setFak(Fak);
+ args.setLicense(license);
+ args.setInternet(internet);
+ args.setRam(ram);
+ args.setCpu(cpu);
+ 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_writeVLdata();
+ }
+ }
+
+ public void getImageList(@SuppressWarnings("rawtypes") org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getImageList_call method_call = new getImageList_call(resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ @SuppressWarnings("rawtypes")
+ public static class getImageList_call extends org.apache.thrift.async.TAsyncMethodCall {
+ @SuppressWarnings("unchecked")
+ public getImageList_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("getImageList", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getImageList_args args = new getImageList_args();
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public List<Image> 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_getImageList();
+ }
+ }
+
+ public void getAllOS(@SuppressWarnings("rawtypes") org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getAllOS_call method_call = new getAllOS_call(resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getAllOS_call extends org.apache.thrift.async.TAsyncMethodCall {
+ public getAllOS_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("getAllOS", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getAllOS_args args = new getAllOS_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_getAllOS();
+ }
+ }
+
+ public void getPersonData(String Vorname, String Nachname, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getPersonData_call method_call = new getPersonData_call(Vorname, Nachname, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getPersonData_call extends org.apache.thrift.async.TAsyncMethodCall {
+ private String Vorname;
+ private String Nachname;
+ public getPersonData_call(String Vorname, String Nachname, 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.Vorname = Vorname;
+ this.Nachname = Nachname;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPersonData", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getPersonData_args args = new getPersonData_args();
+ args.setVorname(Vorname);
+ args.setNachname(Nachname);
+ 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_getPersonData();
+ }
+ }
+
+ public void writeLecturedata(String name, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ writeLecturedata_call method_call = new writeLecturedata_call(name, shortdesc, desc, startDate, endDate, isActive, imagename, firstname, lastname, university, Mail, Tel, Fak, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class writeLecturedata_call extends org.apache.thrift.async.TAsyncMethodCall {
+ private String name;
+ 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;
+ public writeLecturedata_call(String name, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, 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.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;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("writeLecturedata", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ writeLecturedata_args args = new writeLecturedata_args();
+ args.setName(name);
+ 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.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_writeLecturedata();
+ }
+ }
+
+ }
+
+ 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("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("getAllOS", new getAllOS());
+ processMap.put("getPersonData", new getPersonData());
+ processMap.put("writeLecturedata", new writeLecturedata());
+ return processMap;
+ }
+
+ public static class getFtpUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFtpUser_args> {
+ public getFtpUser() {
+ super("getFtpUser");
+ }
+
+ public getFtpUser_args getEmptyArgsInstance() {
+ return new getFtpUser_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public getFtpUser_result getResult(I iface, getFtpUser_args args) throws org.apache.thrift.TException {
+ getFtpUser_result result = new getFtpUser_result();
+ result.success = iface.getFtpUser();
+ return result;
+ }
+ }
+
+ public static class DeleteFtpUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, DeleteFtpUser_args> {
+ public DeleteFtpUser() {
+ super("DeleteFtpUser");
+ }
+
+ public DeleteFtpUser_args getEmptyArgsInstance() {
+ return new DeleteFtpUser_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public DeleteFtpUser_result getResult(I iface, DeleteFtpUser_args args) throws org.apache.thrift.TException {
+ DeleteFtpUser_result result = new DeleteFtpUser_result();
+ result.success = iface.DeleteFtpUser(args.user);
+ result.setSuccessIsSet(true);
+ return result;
+ }
+ }
+
+ 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");
+ }
+
+ public getPathOfImage_args getEmptyArgsInstance() {
+ return new getPathOfImage_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ 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);
+ return result;
+ }
+ }
+
+ public static class writeVLdata<I extends Iface> extends org.apache.thrift.ProcessFunction<I, writeVLdata_args> {
+ public writeVLdata() {
+ super("writeVLdata");
+ }
+
+ public writeVLdata_args getEmptyArgsInstance() {
+ return new writeVLdata_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ 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.setSuccessIsSet(true);
+ return result;
+ }
+ }
+
+ public static class getImageList<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getImageList_args> {
+ public getImageList() {
+ super("getImageList");
+ }
+
+ public getImageList_args getEmptyArgsInstance() {
+ return new getImageList_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public getImageList_result getResult(I iface, getImageList_args args) throws org.apache.thrift.TException {
+ getImageList_result result = new getImageList_result();
+ result.success = iface.getImageList();
+ return result;
+ }
+ }
+
+ public static class getAllOS<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllOS_args> {
+ public getAllOS() {
+ super("getAllOS");
+ }
+
+ public getAllOS_args getEmptyArgsInstance() {
+ return new getAllOS_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public getAllOS_result getResult(I iface, getAllOS_args args) throws org.apache.thrift.TException {
+ getAllOS_result result = new getAllOS_result();
+ result.success = iface.getAllOS();
+ return result;
+ }
+ }
+
+ public static class getPersonData<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPersonData_args> {
+ public getPersonData() {
+ super("getPersonData");
+ }
+
+ public getPersonData_args getEmptyArgsInstance() {
+ return new getPersonData_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public getPersonData_result getResult(I iface, getPersonData_args args) throws org.apache.thrift.TException {
+ getPersonData_result result = new getPersonData_result();
+ result.success = iface.getPersonData(args.Vorname, args.Nachname);
+ return result;
+ }
+ }
+
+ public static class writeLecturedata<I extends Iface> extends org.apache.thrift.ProcessFunction<I, writeLecturedata_args> {
+ public writeLecturedata() {
+ super("writeLecturedata");
+ }
+
+ public writeLecturedata_args getEmptyArgsInstance() {
+ return new writeLecturedata_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public writeLecturedata_result getResult(I iface, writeLecturedata_args args) throws org.apache.thrift.TException {
+ writeLecturedata_result result = new writeLecturedata_result();
+ result.success = iface.writeLecturedata(args.name, args.shortdesc, args.desc, args.startDate, args.endDate, args.isActive, args.imagename, args.firstname, args.lastname, args.university, args.Mail, args.Tel, args.Fak);
+ result.setSuccessIsSet(true);
+ 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("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("getAllOS", new getAllOS());
+ processMap.put("getPersonData", new getPersonData());
+ processMap.put("writeLecturedata", new writeLecturedata());
+ return processMap;
+ }
+
+ public static class getFtpUser<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getFtpUser_args, User> {
+ public getFtpUser() {
+ super("getFtpUser");
+ }
+
+ public getFtpUser_args getEmptyArgsInstance() {
+ return new getFtpUser_args();
+ }
+
+ public AsyncMethodCallback<User> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new AsyncMethodCallback<User>() {
+ public void onComplete(User o) {
+ getFtpUser_result result = new getFtpUser_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;
+ getFtpUser_result result = new getFtpUser_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, getFtpUser_args args, org.apache.thrift.async.AsyncMethodCallback<User> resultHandler) throws TException {
+ iface.getFtpUser(resultHandler);
+ }
+ }
+
+ public static class DeleteFtpUser<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, DeleteFtpUser_args, Long> {
+ public DeleteFtpUser() {
+ super("DeleteFtpUser");
+ }
+
+ public DeleteFtpUser_args getEmptyArgsInstance() {
+ return new DeleteFtpUser_args();
+ }
+
+ public AsyncMethodCallback<Long> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new AsyncMethodCallback<Long>() {
+ public void onComplete(Long o) {
+ DeleteFtpUser_result result = new DeleteFtpUser_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;
+ DeleteFtpUser_result result = new DeleteFtpUser_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, DeleteFtpUser_args args, org.apache.thrift.async.AsyncMethodCallback<Long> resultHandler) throws TException {
+ iface.DeleteFtpUser(args.user,resultHandler);
+ }
+ }
+
+ public static class getImages<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getImages_args, List<String>> {
+ public getImages() {
+ super("getImages");
+ }
+
+ public getImages_args getEmptyArgsInstance() {
+ return new getImages_args();
+ }
+
+ public AsyncMethodCallback<List<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();
+ 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;
+ getImages_result result = new getImages_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, getImages_args args, org.apache.thrift.async.AsyncMethodCallback<List<String>> resultHandler) throws TException {
+ iface.getImages(resultHandler);
+ }
+ }
+
+ public static class getPathOfImage<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getPathOfImage_args, String> {
+ public getPathOfImage() {
+ super("getPathOfImage");
+ }
+
+ public getPathOfImage_args getEmptyArgsInstance() {
+ return new getPathOfImage_args();
+ }
+
+ public AsyncMethodCallback<String> 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();
+ 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;
+ 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());
+ }
+ 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, getPathOfImage_args args, org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws TException {
+ iface.getPathOfImage(args.name,resultHandler);
+ }
+ }
+
+ public static class writeVLdata<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, writeVLdata_args, Boolean> {
+ public writeVLdata() {
+ super("writeVLdata");
+ }
+
+ public writeVLdata_args getEmptyArgsInstance() {
+ return new writeVLdata_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) {
+ 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;
+ } 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;
+ 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());
+ }
+ 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, 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 static class getImageList<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getImageList_args, List<Image>> {
+ public getImageList() {
+ super("getImageList");
+ }
+
+ public getImageList_args getEmptyArgsInstance() {
+ return new getImageList_args();
+ }
+
+ public AsyncMethodCallback<List<Image>> 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();
+ 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;
+ 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());
+ }
+ 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, getImageList_args args, org.apache.thrift.async.AsyncMethodCallback<List<Image>> resultHandler) throws TException {
+ iface.getImageList(resultHandler);
+ }
+ }
+
+ public static class getAllOS<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getAllOS_args, List<String>> {
+ public getAllOS() {
+ super("getAllOS");
+ }
+
+ public getAllOS_args getEmptyArgsInstance() {
+ return new getAllOS_args();
+ }
+
+ public AsyncMethodCallback<List<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) {
+ getAllOS_result result = new getAllOS_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;
+ getAllOS_result result = new getAllOS_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, getAllOS_args args, org.apache.thrift.async.AsyncMethodCallback<List<String>> resultHandler) throws TException {
+ iface.getAllOS(resultHandler);
+ }
+ }
+
+ public static class getPersonData<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getPersonData_args, Map<String,String>> {
+ public getPersonData() {
+ super("getPersonData");
+ }
+
+ public getPersonData_args getEmptyArgsInstance() {
+ return new getPersonData_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) {
+ getPersonData_result result = new getPersonData_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;
+ getPersonData_result result = new getPersonData_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, getPersonData_args args, org.apache.thrift.async.AsyncMethodCallback<Map<String,String>> resultHandler) throws TException {
+ iface.getPersonData(args.Vorname, args.Nachname,resultHandler);
+ }
+ }
+
+ public static class writeLecturedata<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, writeLecturedata_args, Boolean> {
+ public writeLecturedata() {
+ super("writeLecturedata");
+ }
+
+ public writeLecturedata_args getEmptyArgsInstance() {
+ return new writeLecturedata_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) {
+ writeLecturedata_result result = new writeLecturedata_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;
+ writeLecturedata_result result = new writeLecturedata_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, writeLecturedata_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
+ iface.writeLecturedata(args.name, args.shortdesc, args.desc, args.startDate, args.endDate, args.isActive, args.imagename, args.firstname, args.lastname, args.university, args.Mail, args.Tel, args.Fak,resultHandler);
+ }
+ }
+
+ }
+
+ public static class getFtpUser_args implements org.apache.thrift.TBase<getFtpUser_args, getFtpUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<getFtpUser_args> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFtpUser_args");
+
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new getFtpUser_argsStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new getFtpUser_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(getFtpUser_args.class, metaDataMap);
+ }
+
+ public getFtpUser_args() {
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public getFtpUser_args(getFtpUser_args other) {
+ }
+
+ public getFtpUser_args deepCopy() {
+ return new getFtpUser_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 getFtpUser_args)
+ return this.equals((getFtpUser_args)that);
+ return false;
+ }
+
+ public boolean equals(getFtpUser_args that) {
+ if (that == null)
+ return false;
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return 0;
+ }
+
+ @Override
+ public int compareTo(getFtpUser_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("getFtpUser_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 getFtpUser_argsStandardSchemeFactory implements SchemeFactory {
+ public getFtpUser_argsStandardScheme getScheme() {
+ return new getFtpUser_argsStandardScheme();
+ }
+ }
+
+ private static class getFtpUser_argsStandardScheme extends StandardScheme<getFtpUser_args> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, getFtpUser_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, getFtpUser_args struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class getFtpUser_argsTupleSchemeFactory implements SchemeFactory {
+ public getFtpUser_argsTupleScheme getScheme() {
+ return new getFtpUser_argsTupleScheme();
+ }
+ }
+
+ private static class getFtpUser_argsTupleScheme extends TupleScheme<getFtpUser_args> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, getFtpUser_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, getFtpUser_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ }
+ }
+
+ }
+
+ public static class getFtpUser_result implements org.apache.thrift.TBase<getFtpUser_result, getFtpUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<getFtpUser_result> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFtpUser_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 Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new getFtpUser_resultStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new getFtpUser_resultTupleSchemeFactory());
+ }
+
+ public User 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFtpUser_result.class, metaDataMap);
+ }
+
+ public getFtpUser_result() {
+ }
+
+ public getFtpUser_result(
+ User success)
+ {
+ this();
+ this.success = success;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public getFtpUser_result(getFtpUser_result other) {
+ if (other.isSetSuccess()) {
+ this.success = new User(other.success);
+ }
+ }
+
+ public getFtpUser_result deepCopy() {
+ return new getFtpUser_result(this);
+ }
+
+ @Override
+ public void clear() {
+ this.success = null;
+ }
+
+ public User getSuccess() {
+ return this.success;
+ }
+
+ public getFtpUser_result setSuccess(User 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((User)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 getFtpUser_result)
+ return this.equals((getFtpUser_result)that);
+ return false;
+ }
+
+ public boolean equals(getFtpUser_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(getFtpUser_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("getFtpUser_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
+ 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 getFtpUser_resultStandardSchemeFactory implements SchemeFactory {
+ public getFtpUser_resultStandardScheme getScheme() {
+ return new getFtpUser_resultStandardScheme();
+ }
+ }
+
+ private static class getFtpUser_resultStandardScheme extends StandardScheme<getFtpUser_result> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, getFtpUser_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 User();
+ struct.success.read(iprot);
+ 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, getFtpUser_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();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class getFtpUser_resultTupleSchemeFactory implements SchemeFactory {
+ public getFtpUser_resultTupleScheme getScheme() {
+ return new getFtpUser_resultTupleScheme();
+ }
+ }
+
+ private static class getFtpUser_resultTupleScheme extends TupleScheme<getFtpUser_result> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, getFtpUser_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()) {
+ struct.success.write(oprot);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, getFtpUser_result struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(1);
+ if (incoming.get(0)) {
+ struct.success = new User();
+ struct.success.read(iprot);
+ struct.setSuccessIsSet(true);
+ }
+ }
+ }
+
+ }
+
+ public static class DeleteFtpUser_args implements org.apache.thrift.TBase<DeleteFtpUser_args, DeleteFtpUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<DeleteFtpUser_args> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DeleteFtpUser_args");
+
+ private static final org.apache.thrift.protocol.TField USER_FIELD_DESC = new org.apache.thrift.protocol.TField("user", 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 DeleteFtpUser_argsStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new DeleteFtpUser_argsTupleSchemeFactory());
+ }
+
+ public String user; // 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((short)-1, "user");
+
+ 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
+ return USER;
+ 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, new org.apache.thrift.meta_data.FieldMetaData("user", 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(DeleteFtpUser_args.class, metaDataMap);
+ }
+
+ public DeleteFtpUser_args() {
+ }
+
+ public DeleteFtpUser_args(
+ String user)
+ {
+ this();
+ this.user = user;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public DeleteFtpUser_args(DeleteFtpUser_args other) {
+ if (other.isSetUser()) {
+ this.user = other.user;
+ }
+ }
+
+ public DeleteFtpUser_args deepCopy() {
+ return new DeleteFtpUser_args(this);
+ }
+
+ @Override
+ public void clear() {
+ this.user = null;
+ }
+
+ public String getUser() {
+ return this.user;
+ }
+
+ public DeleteFtpUser_args setUser(String user) {
+ this.user = user;
+ return this;
+ }
+
+ public void unsetUser() {
+ this.user = null;
+ }
+
+ /** Returns true if field user is set (has been assigned a value) and false otherwise */
+ public boolean isSetUser() {
+ return this.user != null;
+ }
+
+ public void setUserIsSet(boolean value) {
+ if (!value) {
+ this.user = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case USER:
+ if (value == null) {
+ unsetUser();
+ } else {
+ setUser((String)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case USER:
+ return getUser();
+
+ }
+ 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:
+ return isSetUser();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof DeleteFtpUser_args)
+ return this.equals((DeleteFtpUser_args)that);
+ return false;
+ }
+
+ public boolean equals(DeleteFtpUser_args that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_user = true && this.isSetUser();
+ boolean that_present_user = true && that.isSetUser();
+ if (this_present_user || that_present_user) {
+ if (!(this_present_user && that_present_user))
+ return false;
+ if (!this.user.equals(that.user))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return 0;
+ }
+
+ @Override
+ public int compareTo(DeleteFtpUser_args other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(isSetUser()).compareTo(other.isSetUser());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetUser()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, other.user);
+ 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("DeleteFtpUser_args(");
+ boolean first = true;
+
+ sb.append("user:");
+ if (this.user == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.user);
+ }
+ 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 DeleteFtpUser_argsStandardSchemeFactory implements SchemeFactory {
+ public DeleteFtpUser_argsStandardScheme getScheme() {
+ return new DeleteFtpUser_argsStandardScheme();
+ }
+ }
+
+ private static class DeleteFtpUser_argsStandardScheme extends StandardScheme<DeleteFtpUser_args> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, DeleteFtpUser_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: // USER
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.user = iprot.readString();
+ struct.setUserIsSet(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, DeleteFtpUser_args struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.user != null) {
+ oprot.writeFieldBegin(USER_FIELD_DESC);
+ oprot.writeString(struct.user);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class DeleteFtpUser_argsTupleSchemeFactory implements SchemeFactory {
+ public DeleteFtpUser_argsTupleScheme getScheme() {
+ return new DeleteFtpUser_argsTupleScheme();
+ }
+ }
+
+ private static class DeleteFtpUser_argsTupleScheme extends TupleScheme<DeleteFtpUser_args> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, DeleteFtpUser_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetUser()) {
+ optionals.set(0);
+ }
+ oprot.writeBitSet(optionals, 1);
+ if (struct.isSetUser()) {
+ oprot.writeString(struct.user);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, DeleteFtpUser_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(1);
+ if (incoming.get(0)) {
+ struct.user = iprot.readString();
+ struct.setUserIsSet(true);
+ }
+ }
+ }
+
+ }
+
+ public static class DeleteFtpUser_result implements org.apache.thrift.TBase<DeleteFtpUser_result, DeleteFtpUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<DeleteFtpUser_result> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DeleteFtpUser_result");
+
+ private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new DeleteFtpUser_resultStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new DeleteFtpUser_resultTupleSchemeFactory());
+ }
+
+ public long 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.I64 , "int")));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(DeleteFtpUser_result.class, metaDataMap);
+ }
+
+ public DeleteFtpUser_result() {
+ }
+
+ public DeleteFtpUser_result(
+ long success)
+ {
+ this();
+ this.success = success;
+ setSuccessIsSet(true);
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public DeleteFtpUser_result(DeleteFtpUser_result other) {
+ __isset_bitfield = other.__isset_bitfield;
+ this.success = other.success;
+ }
+
+ public DeleteFtpUser_result deepCopy() {
+ return new DeleteFtpUser_result(this);
+ }
+
+ @Override
+ public void clear() {
+ setSuccessIsSet(false);
+ this.success = 0;
+ }
+
+ public long getSuccess() {
+ return this.success;
+ }
+
+ public DeleteFtpUser_result setSuccess(long 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((Long)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case SUCCESS:
+ return Long.valueOf(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 DeleteFtpUser_result)
+ return this.equals((DeleteFtpUser_result)that);
+ return false;
+ }
+
+ public boolean equals(DeleteFtpUser_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(DeleteFtpUser_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("DeleteFtpUser_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 DeleteFtpUser_resultStandardSchemeFactory implements SchemeFactory {
+ public DeleteFtpUser_resultStandardScheme getScheme() {
+ return new DeleteFtpUser_resultStandardScheme();
+ }
+ }
+
+ private static class DeleteFtpUser_resultStandardScheme extends StandardScheme<DeleteFtpUser_result> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, DeleteFtpUser_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.I64) {
+ struct.success = iprot.readI64();
+ 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, DeleteFtpUser_result struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.isSetSuccess()) {
+ oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
+ oprot.writeI64(struct.success);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class DeleteFtpUser_resultTupleSchemeFactory implements SchemeFactory {
+ public DeleteFtpUser_resultTupleScheme getScheme() {
+ return new DeleteFtpUser_resultTupleScheme();
+ }
+ }
+
+ private static class DeleteFtpUser_resultTupleScheme extends TupleScheme<DeleteFtpUser_result> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, DeleteFtpUser_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.writeI64(struct.success);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, DeleteFtpUser_result struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(1);
+ if (incoming.get(0)) {
+ struct.success = iprot.readI64();
+ struct.setSuccessIsSet(true);
+ }
+ }
+ }
+
+ }
+
+ 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");
+
+ 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 getImages_resultStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new getImages_resultTupleSchemeFactory());
+ }
+
+ public List<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.ListMetaData(org.apache.thrift.protocol.TType.LIST,
+ 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);
+ }
+
+ public getImages_result() {
+ }
+
+ public getImages_result(
+ List<String> success)
+ {
+ this();
+ this.success = success;
+ }
+
+ /**
+ * 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 getImages_result deepCopy() {
+ return new getImages_result(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);
+ }
+
+ public List<String> getSuccess() {
+ return this.success;
+ }
+
+ public getImages_result setSuccess(List<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((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();
+ }
+
+ }
+
+ private static class getImages_resultTupleSchemeFactory implements SchemeFactory {
+ public getImages_resultTupleScheme getScheme() {
+ return new getImages_resultTupleScheme();
+ }
+ }
+
+ 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;
+ 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 void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case NAME:
+ if (value == null) {
+ unsetName();
+ } else {
+ setName((String)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case NAME:
+ return getName();
+
+ }
+ 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();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof getPathOfImage_args)
+ return this.equals((getPathOfImage_args)that);
+ return false;
+ }
+
+ public boolean equals(getPathOfImage_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;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return 0;
+ }
+
+ @Override
+ public int compareTo(getPathOfImage_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;
+ }
+ }
+ 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("getPathOfImage_args(");
+ boolean first = true;
+
+ sb.append("name:");
+ if (this.name == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.name);
+ }
+ 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 getPathOfImage_argsStandardSchemeFactory implements SchemeFactory {
+ public getPathOfImage_argsStandardScheme getScheme() {
+ return new getPathOfImage_argsStandardScheme();
+ }
+ }
+
+ private static class getPathOfImage_argsStandardScheme extends StandardScheme<getPathOfImage_args> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, getPathOfImage_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;
+ 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, getPathOfImage_args struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.name != null) {
+ oprot.writeFieldBegin(NAME_FIELD_DESC);
+ oprot.writeString(struct.name);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class getPathOfImage_argsTupleSchemeFactory implements SchemeFactory {
+ public getPathOfImage_argsTupleScheme getScheme() {
+ return new getPathOfImage_argsTupleScheme();
+ }
+ }
+
+ private static class getPathOfImage_argsTupleScheme extends TupleScheme<getPathOfImage_args> {
+
+ @Override
+ 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()) {
+ optionals.set(0);
+ }
+ oprot.writeBitSet(optionals, 1);
+ if (struct.isSetName()) {
+ oprot.writeString(struct.name);
+ }
+ }
+
+ @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);
+ if (incoming.get(0)) {
+ struct.name = iprot.readString();
+ struct.setNameIsSet(true);
+ }
+ }
+ }
+
+ }
+
+ public static class getPathOfImage_result implements org.apache.thrift.TBase<getPathOfImage_result, getPathOfImage_result._Fields>, java.io.Serializable, Cloneable, Comparable<getPathOfImage_result> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPathOfImage_result");
+
+ private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new getPathOfImage_resultStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new getPathOfImage_resultTupleSchemeFactory());
+ }
+
+ public 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.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPathOfImage_result.class, metaDataMap);
+ }
+
+ public getPathOfImage_result() {
+ }
+
+ public getPathOfImage_result(
+ String success)
+ {
+ this();
+ this.success = success;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public getPathOfImage_result(getPathOfImage_result other) {
+ if (other.isSetSuccess()) {
+ this.success = other.success;
+ }
+ }
+
+ public getPathOfImage_result deepCopy() {
+ return new getPathOfImage_result(this);
+ }
+
+ @Override
+ public void clear() {
+ this.success = null;
+ }
+
+ public String getSuccess() {
+ return this.success;
+ }
+
+ public getPathOfImage_result setSuccess(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((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 getPathOfImage_result)
+ return this.equals((getPathOfImage_result)that);
+ return false;
+ }
+
+ public boolean equals(getPathOfImage_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(getPathOfImage_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("getPathOfImage_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 getPathOfImage_resultStandardSchemeFactory implements SchemeFactory {
+ public getPathOfImage_resultStandardScheme getScheme() {
+ return new getPathOfImage_resultStandardScheme();
+ }
+ }
+
+ private static class getPathOfImage_resultStandardScheme extends StandardScheme<getPathOfImage_result> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, getPathOfImage_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.STRING) {
+ struct.success = iprot.readString();
+ 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, getPathOfImage_result struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.success != null) {
+ oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
+ oprot.writeString(struct.success);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class getPathOfImage_resultTupleSchemeFactory implements SchemeFactory {
+ public getPathOfImage_resultTupleScheme getScheme() {
+ return new getPathOfImage_resultTupleScheme();
+ }
+ }
+
+ private static class getPathOfImage_resultTupleScheme extends TupleScheme<getPathOfImage_result> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, getPathOfImage_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.writeString(struct.success);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, getPathOfImage_result struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(1);
+ if (incoming.get(0)) {
+ struct.success = iprot.readString();
+ struct.setSuccessIsSet(true);
+ }
+ }
+ }
+
+ }
+
+ public static class writeVLdata_args implements org.apache.thrift.TBase<writeVLdata_args, writeVLdata_args._Fields>, java.io.Serializable, Cloneable, Comparable<writeVLdata_args> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeVLdata_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 FIRSTNAME_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 LASTNAME_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 UNIVERSITY_FIELD_DESC = new org.apache.thrift.protocol.TField("university", org.apache.thrift.protocol.TType.STRING, (short)-4);
+ 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)-5);
+ 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)-6);
+ 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)-7);
+ private static final org.apache.thrift.protocol.TField LICENSE_FIELD_DESC = new org.apache.thrift.protocol.TField("license", org.apache.thrift.protocol.TType.BOOL, (short)-8);
+ 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 Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new writeVLdata_argsStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new writeVLdata_argsTupleSchemeFactory());
+ }
+
+ 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 boolean license; // required
+ public boolean internet; // required
+ public long ram; // required
+ public long cpu; // 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"),
+ FIRSTNAME((short)-2, "firstname"),
+ LASTNAME((short)-3, "lastname"),
+ UNIVERSITY((short)-4, "university"),
+ MAIL((short)-5, "Mail"),
+ TEL((short)-6, "Tel"),
+ FAK((short)-7, "Fak"),
+ LICENSE((short)-8, "license"),
+ INTERNET((short)-9, "internet"),
+ RAM((short)-10, "ram"),
+ CPU((short)-11, "cpu");
+
+ 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: // IMAGENAME
+ return IMAGENAME;
+ case -2: // FIRSTNAME
+ return FIRSTNAME;
+ case -3: // LASTNAME
+ return LASTNAME;
+ case -4: // UNIVERSITY
+ return UNIVERSITY;
+ case -5: // MAIL
+ return MAIL;
+ case -6: // TEL
+ return TEL;
+ case -7: // FAK
+ return FAK;
+ case -8: // LICENSE
+ return LICENSE;
+ case -9: // INTERNET
+ return INTERNET;
+ case -10: // RAM
+ return RAM;
+ case -11: // CPU
+ return CPU;
+ 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 __LICENSE_ISSET_ID = 0;
+ private static final int __INTERNET_ISSET_ID = 1;
+ private static final int __RAM_ISSET_ID = 2;
+ private static final int __CPU_ISSET_ID = 3;
+ 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.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.LICENSE, new org.apache.thrift.meta_data.FieldMetaData("license", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
+ tmpMap.put(_Fields.INTERNET, new org.apache.thrift.meta_data.FieldMetaData("internet", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
+ tmpMap.put(_Fields.RAM, new org.apache.thrift.meta_data.FieldMetaData("ram", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ 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")));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeVLdata_args.class, metaDataMap);
+ }
+
+ public writeVLdata_args() {
+ }
+
+ public writeVLdata_args(
+ String imagename,
+ String firstname,
+ String lastname,
+ String university,
+ String Mail,
+ String Tel,
+ String Fak,
+ boolean license,
+ boolean internet,
+ long ram,
+ long cpu)
+ {
+ this();
+ this.imagename = imagename;
+ this.firstname = firstname;
+ this.lastname = lastname;
+ this.university = university;
+ this.Mail = Mail;
+ this.Tel = Tel;
+ this.Fak = Fak;
+ this.license = license;
+ setLicenseIsSet(true);
+ this.internet = internet;
+ setInternetIsSet(true);
+ this.ram = ram;
+ setRamIsSet(true);
+ this.cpu = cpu;
+ setCpuIsSet(true);
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public writeVLdata_args(writeVLdata_args other) {
+ __isset_bitfield = other.__isset_bitfield;
+ 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;
+ }
+ this.license = other.license;
+ this.internet = other.internet;
+ this.ram = other.ram;
+ this.cpu = other.cpu;
+ }
+
+ public writeVLdata_args deepCopy() {
+ return new writeVLdata_args(this);
+ }
+
+ @Override
+ public void clear() {
+ this.imagename = null;
+ this.firstname = null;
+ this.lastname = null;
+ this.university = null;
+ this.Mail = null;
+ this.Tel = null;
+ this.Fak = null;
+ setLicenseIsSet(false);
+ this.license = false;
+ setInternetIsSet(false);
+ this.internet = false;
+ setRamIsSet(false);
+ this.ram = 0;
+ setCpuIsSet(false);
+ this.cpu = 0;
+ }
+
+ public String getImagename() {
+ return this.imagename;
+ }
+
+ public writeVLdata_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 writeVLdata_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 writeVLdata_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 writeVLdata_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 writeVLdata_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 writeVLdata_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 writeVLdata_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 boolean isLicense() {
+ return this.license;
+ }
+
+ public writeVLdata_args setLicense(boolean license) {
+ this.license = license;
+ setLicenseIsSet(true);
+ return this;
+ }
+
+ public void unsetLicense() {
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LICENSE_ISSET_ID);
+ }
+
+ /** Returns true if field license is set (has been assigned a value) and false otherwise */
+ public boolean isSetLicense() {
+ return EncodingUtils.testBit(__isset_bitfield, __LICENSE_ISSET_ID);
+ }
+
+ public void setLicenseIsSet(boolean value) {
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LICENSE_ISSET_ID, value);
+ }
+
+ public boolean isInternet() {
+ return this.internet;
+ }
+
+ public writeVLdata_args setInternet(boolean internet) {
+ this.internet = internet;
+ setInternetIsSet(true);
+ return this;
+ }
+
+ public void unsetInternet() {
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __INTERNET_ISSET_ID);
+ }
+
+ /** Returns true if field internet is set (has been assigned a value) and false otherwise */
+ public boolean isSetInternet() {
+ return EncodingUtils.testBit(__isset_bitfield, __INTERNET_ISSET_ID);
+ }
+
+ public void setInternetIsSet(boolean value) {
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __INTERNET_ISSET_ID, value);
+ }
+
+ public long getRam() {
+ return this.ram;
+ }
+
+ public writeVLdata_args setRam(long ram) {
+ this.ram = ram;
+ setRamIsSet(true);
+ return this;
+ }
+
+ public void unsetRam() {
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RAM_ISSET_ID);
+ }
+
+ /** Returns true if field ram is set (has been assigned a value) and false otherwise */
+ public boolean isSetRam() {
+ return EncodingUtils.testBit(__isset_bitfield, __RAM_ISSET_ID);
+ }
+
+ public void setRamIsSet(boolean value) {
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RAM_ISSET_ID, value);
+ }
+
+ public long getCpu() {
+ return this.cpu;
+ }
+
+ public writeVLdata_args setCpu(long cpu) {
+ this.cpu = cpu;
+ setCpuIsSet(true);
+ return this;
+ }
+
+ public void unsetCpu() {
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __CPU_ISSET_ID);
+ }
+
+ /** Returns true if field cpu is set (has been assigned a value) and false otherwise */
+ public boolean isSetCpu() {
+ return EncodingUtils.testBit(__isset_bitfield, __CPU_ISSET_ID);
+ }
+
+ public void setCpuIsSet(boolean value) {
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CPU_ISSET_ID, value);
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ 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 LICENSE:
+ if (value == null) {
+ unsetLicense();
+ } else {
+ setLicense((Boolean)value);
+ }
+ break;
+
+ case INTERNET:
+ if (value == null) {
+ unsetInternet();
+ } else {
+ setInternet((Boolean)value);
+ }
+ break;
+
+ case RAM:
+ if (value == null) {
+ unsetRam();
+ } else {
+ setRam((Long)value);
+ }
+ break;
+
+ case CPU:
+ if (value == null) {
+ unsetCpu();
+ } else {
+ setCpu((Long)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ 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 LICENSE:
+ return Boolean.valueOf(isLicense());
+
+ case INTERNET:
+ return Boolean.valueOf(isInternet());
+
+ case RAM:
+ return Long.valueOf(getRam());
+
+ case CPU:
+ return Long.valueOf(getCpu());
+
+ }
+ 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 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 LICENSE:
+ return isSetLicense();
+ case INTERNET:
+ return isSetInternet();
+ case RAM:
+ return isSetRam();
+ case CPU:
+ return isSetCpu();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof writeVLdata_args)
+ return this.equals((writeVLdata_args)that);
+ return false;
+ }
+
+ public boolean equals(writeVLdata_args that) {
+ 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))
+ 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_license = true;
+ boolean that_present_license = true;
+ if (this_present_license || that_present_license) {
+ if (!(this_present_license && that_present_license))
+ return false;
+ if (this.license != that.license)
+ return false;
+ }
+
+ boolean this_present_internet = true;
+ boolean that_present_internet = true;
+ if (this_present_internet || that_present_internet) {
+ if (!(this_present_internet && that_present_internet))
+ return false;
+ if (this.internet != that.internet)
+ return false;
+ }
+
+ boolean this_present_ram = true;
+ boolean that_present_ram = true;
+ if (this_present_ram || that_present_ram) {
+ if (!(this_present_ram && that_present_ram))
+ return false;
+ if (this.ram != that.ram)
+ return false;
+ }
+
+ boolean this_present_cpu = true;
+ boolean that_present_cpu = true;
+ if (this_present_cpu || that_present_cpu) {
+ if (!(this_present_cpu && that_present_cpu))
+ return false;
+ if (this.cpu != that.cpu)
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return 0;
+ }
+
+ @Override
+ public int compareTo(writeVLdata_args other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ 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(isSetLicense()).compareTo(other.isSetLicense());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetLicense()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.license, other.license);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetInternet()).compareTo(other.isSetInternet());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetInternet()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.internet, other.internet);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetRam()).compareTo(other.isSetRam());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetRam()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ram, other.ram);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetCpu()).compareTo(other.isSetCpu());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetCpu()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cpu, other.cpu);
+ 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("writeVLdata_args(");
+ boolean first = true;
+
+ 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("license:");
+ sb.append(this.license);
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("internet:");
+ sb.append(this.internet);
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("ram:");
+ sb.append(this.ram);
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("cpu:");
+ sb.append(this.cpu);
+ 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 writeVLdata_argsStandardSchemeFactory implements SchemeFactory {
+ public writeVLdata_argsStandardScheme getScheme() {
+ return new writeVLdata_argsStandardScheme();
+ }
+ }
+
+ private static class writeVLdata_argsStandardScheme extends StandardScheme<writeVLdata_args> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, writeVLdata_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: // 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 -2: // 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 -3: // 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 -4: // 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 -5: // 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 -6: // 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 -7: // 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 -8: // LICENSE
+ if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
+ struct.license = iprot.readBool();
+ struct.setLicenseIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -9: // INTERNET
+ if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
+ struct.internet = iprot.readBool();
+ struct.setInternetIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -10: // RAM
+ if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
+ struct.ram = iprot.readI64();
+ struct.setRamIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -11: // CPU
+ if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
+ struct.cpu = iprot.readI64();
+ struct.setCpuIsSet(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, writeVLdata_args struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ oprot.writeFieldBegin(CPU_FIELD_DESC);
+ oprot.writeI64(struct.cpu);
+ oprot.writeFieldEnd();
+ oprot.writeFieldBegin(RAM_FIELD_DESC);
+ oprot.writeI64(struct.ram);
+ oprot.writeFieldEnd();
+ oprot.writeFieldBegin(INTERNET_FIELD_DESC);
+ oprot.writeBool(struct.internet);
+ oprot.writeFieldEnd();
+ oprot.writeFieldBegin(LICENSE_FIELD_DESC);
+ oprot.writeBool(struct.license);
+ 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.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class writeVLdata_argsTupleSchemeFactory implements SchemeFactory {
+ public writeVLdata_argsTupleScheme getScheme() {
+ return new writeVLdata_argsTupleScheme();
+ }
+ }
+
+ private static class writeVLdata_argsTupleScheme extends TupleScheme<writeVLdata_args> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, writeVLdata_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetImagename()) {
+ optionals.set(0);
+ }
+ if (struct.isSetFirstname()) {
+ optionals.set(1);
+ }
+ if (struct.isSetLastname()) {
+ optionals.set(2);
+ }
+ if (struct.isSetUniversity()) {
+ optionals.set(3);
+ }
+ if (struct.isSetMail()) {
+ optionals.set(4);
+ }
+ if (struct.isSetTel()) {
+ optionals.set(5);
+ }
+ if (struct.isSetFak()) {
+ optionals.set(6);
+ }
+ if (struct.isSetLicense()) {
+ optionals.set(7);
+ }
+ if (struct.isSetInternet()) {
+ optionals.set(8);
+ }
+ if (struct.isSetRam()) {
+ optionals.set(9);
+ }
+ if (struct.isSetCpu()) {
+ optionals.set(10);
+ }
+ oprot.writeBitSet(optionals, 11);
+ 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.isSetLicense()) {
+ oprot.writeBool(struct.license);
+ }
+ if (struct.isSetInternet()) {
+ oprot.writeBool(struct.internet);
+ }
+ if (struct.isSetRam()) {
+ oprot.writeI64(struct.ram);
+ }
+ if (struct.isSetCpu()) {
+ oprot.writeI64(struct.cpu);
+ }
+ }
+
+ @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);
+ if (incoming.get(0)) {
+ struct.imagename = iprot.readString();
+ struct.setImagenameIsSet(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.university = iprot.readString();
+ struct.setUniversityIsSet(true);
+ }
+ if (incoming.get(4)) {
+ struct.Mail = iprot.readString();
+ struct.setMailIsSet(true);
+ }
+ if (incoming.get(5)) {
+ struct.Tel = iprot.readString();
+ struct.setTelIsSet(true);
+ }
+ if (incoming.get(6)) {
+ struct.Fak = iprot.readString();
+ struct.setFakIsSet(true);
+ }
+ if (incoming.get(7)) {
+ struct.license = iprot.readBool();
+ struct.setLicenseIsSet(true);
+ }
+ if (incoming.get(8)) {
+ struct.internet = iprot.readBool();
+ struct.setInternetIsSet(true);
+ }
+ if (incoming.get(9)) {
+ struct.ram = iprot.readI64();
+ struct.setRamIsSet(true);
+ }
+ if (incoming.get(10)) {
+ struct.cpu = iprot.readI64();
+ struct.setCpuIsSet(true);
+ }
+ }
+ }
+
+ }
+
+ public static class writeVLdata_result implements org.apache.thrift.TBase<writeVLdata_result, writeVLdata_result._Fields>, java.io.Serializable, Cloneable, Comparable<writeVLdata_result> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeVLdata_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 writeVLdata_resultStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new writeVLdata_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(writeVLdata_result.class, metaDataMap);
+ }
+
+ public writeVLdata_result() {
+ }
+
+ public writeVLdata_result(
+ boolean success)
+ {
+ this();
+ this.success = success;
+ setSuccessIsSet(true);
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public writeVLdata_result(writeVLdata_result other) {
+ __isset_bitfield = other.__isset_bitfield;
+ this.success = other.success;
+ }
+
+ public writeVLdata_result deepCopy() {
+ return new writeVLdata_result(this);
+ }
+
+ @Override
+ public void clear() {
+ setSuccessIsSet(false);
+ this.success = false;
+ }
+
+ public boolean isSuccess() {
+ return this.success;
+ }
+
+ public writeVLdata_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 writeVLdata_result)
+ return this.equals((writeVLdata_result)that);
+ return false;
+ }
+
+ public boolean equals(writeVLdata_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(writeVLdata_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("writeVLdata_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 writeVLdata_resultStandardSchemeFactory implements SchemeFactory {
+ public writeVLdata_resultStandardScheme getScheme() {
+ return new writeVLdata_resultStandardScheme();
+ }
+ }
+
+ private static class writeVLdata_resultStandardScheme extends StandardScheme<writeVLdata_result> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, writeVLdata_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, writeVLdata_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 writeVLdata_resultTupleSchemeFactory implements SchemeFactory {
+ public writeVLdata_resultTupleScheme getScheme() {
+ return new writeVLdata_resultTupleScheme();
+ }
+ }
+
+ private static class writeVLdata_resultTupleScheme extends TupleScheme<writeVLdata_result> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, writeVLdata_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, writeVLdata_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 getImageList_args implements org.apache.thrift.TBase<getImageList_args, getImageList_args._Fields>, java.io.Serializable, Cloneable, Comparable<getImageList_args> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageList_args");
+
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new getImageList_argsStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new getImageList_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(getImageList_args.class, metaDataMap);
+ }
+
+ public getImageList_args() {
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public getImageList_args(getImageList_args other) {
+ }
+
+ public getImageList_args deepCopy() {
+ return new getImageList_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 getImageList_args)
+ return this.equals((getImageList_args)that);
+ return false;
+ }
+
+ public boolean equals(getImageList_args that) {
+ if (that == null)
+ return false;
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return 0;
+ }
+
+ @Override
+ public int compareTo(getImageList_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("getImageList_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 getImageList_argsStandardSchemeFactory implements SchemeFactory {
+ public getImageList_argsStandardScheme getScheme() {
+ return new getImageList_argsStandardScheme();
+ }
+ }
+
+ private static class getImageList_argsStandardScheme extends StandardScheme<getImageList_args> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, getImageList_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, getImageList_args struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class getImageList_argsTupleSchemeFactory implements SchemeFactory {
+ public getImageList_argsTupleScheme getScheme() {
+ return new getImageList_argsTupleScheme();
+ }
+ }
+
+ private static class getImageList_argsTupleScheme extends TupleScheme<getImageList_args> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, getImageList_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, getImageList_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ }
+ }
+
+ }
+
+ public static class getImageList_result implements org.apache.thrift.TBase<getImageList_result, getImageList_result._Fields>, java.io.Serializable, Cloneable, Comparable<getImageList_result> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageList_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 getImageList_resultStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new getImageList_resultTupleSchemeFactory());
+ }
+
+ public List<Image> 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, Image.class))));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageList_result.class, metaDataMap);
+ }
+
+ public getImageList_result() {
+ }
+
+ public getImageList_result(
+ List<Image> success)
+ {
+ this();
+ this.success = success;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public getImageList_result(getImageList_result other) {
+ if (other.isSetSuccess()) {
+ List<Image> __this__success = new ArrayList<Image>(other.success.size());
+ for (Image other_element : other.success) {
+ __this__success.add(new Image(other_element));
+ }
+ this.success = __this__success;
+ }
+ }
+
+ public getImageList_result deepCopy() {
+ return new getImageList_result(this);
+ }
+
+ @Override
+ public void clear() {
+ this.success = null;
+ }
+
+ public int getSuccessSize() {
+ return (this.success == null) ? 0 : this.success.size();
+ }
+
+ public java.util.Iterator<Image> getSuccessIterator() {
+ return (this.success == null) ? null : this.success.iterator();
+ }
+
+ public void addToSuccess(Image elem) {
+ if (this.success == null) {
+ this.success = new ArrayList<Image>();
+ }
+ this.success.add(elem);
+ }
+
+ public List<Image> getSuccess() {
+ return this.success;
+ }
+
+ public getImageList_result setSuccess(List<Image> 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<Image>)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 getImageList_result)
+ return this.equals((getImageList_result)that);
+ return false;
+ }
+
+ public boolean equals(getImageList_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(getImageList_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("getImageList_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 getImageList_resultStandardSchemeFactory implements SchemeFactory {
+ public getImageList_resultStandardScheme getScheme() {
+ return new getImageList_resultStandardScheme();
+ }
+ }
+
+ private static class getImageList_resultStandardScheme extends StandardScheme<getImageList_result> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, getImageList_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<Image>(_list8.size);
+ for (int _i9 = 0; _i9 < _list8.size; ++_i9)
+ {
+ Image _elem10;
+ _elem10 = new Image();
+ _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, getImageList_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 (Image _iter11 : struct.success)
+ {
+ _iter11.write(oprot);
+ }
+ oprot.writeListEnd();
+ }
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class getImageList_resultTupleSchemeFactory implements SchemeFactory {
+ public getImageList_resultTupleScheme getScheme() {
+ return new getImageList_resultTupleScheme();
+ }
+ }
+
+ private static class getImageList_resultTupleScheme extends TupleScheme<getImageList_result> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, getImageList_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 (Image _iter12 : struct.success)
+ {
+ _iter12.write(oprot);
+ }
+ }
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, getImageList_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);
+ for (int _i14 = 0; _i14 < _list13.size; ++_i14)
+ {
+ Image _elem15;
+ _elem15 = new Image();
+ _elem15.read(iprot);
+ struct.success.add(_elem15);
+ }
+ }
+ struct.setSuccessIsSet(true);
+ }
+ }
+ }
+
+ }
+
+ public static class getAllOS_args implements org.apache.thrift.TBase<getAllOS_args, getAllOS_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAllOS_args> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllOS_args");
+
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new getAllOS_argsStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new getAllOS_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(getAllOS_args.class, metaDataMap);
+ }
+
+ public getAllOS_args() {
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public getAllOS_args(getAllOS_args other) {
+ }
+
+ public getAllOS_args deepCopy() {
+ return new getAllOS_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 getAllOS_args)
+ return this.equals((getAllOS_args)that);
+ return false;
+ }
+
+ public boolean equals(getAllOS_args that) {
+ if (that == null)
+ return false;
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return 0;
+ }
+
+ @Override
+ public int compareTo(getAllOS_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("getAllOS_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 getAllOS_argsStandardSchemeFactory implements SchemeFactory {
+ public getAllOS_argsStandardScheme getScheme() {
+ return new getAllOS_argsStandardScheme();
+ }
+ }
+
+ private static class getAllOS_argsStandardScheme extends StandardScheme<getAllOS_args> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOS_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, getAllOS_args struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class getAllOS_argsTupleSchemeFactory implements SchemeFactory {
+ public getAllOS_argsTupleScheme getScheme() {
+ return new getAllOS_argsTupleScheme();
+ }
+ }
+
+ private static class getAllOS_argsTupleScheme extends TupleScheme<getAllOS_args> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, getAllOS_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, getAllOS_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ }
+ }
+
+ }
+
+ public static class getAllOS_result implements org.apache.thrift.TBase<getAllOS_result, getAllOS_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAllOS_result> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllOS_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 getAllOS_resultStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new getAllOS_resultTupleSchemeFactory());
+ }
+
+ public List<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.ListMetaData(org.apache.thrift.protocol.TType.LIST,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOS_result.class, metaDataMap);
+ }
+
+ public getAllOS_result() {
+ }
+
+ public getAllOS_result(
+ List<String> success)
+ {
+ this();
+ this.success = success;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public getAllOS_result(getAllOS_result other) {
+ if (other.isSetSuccess()) {
+ List<String> __this__success = new ArrayList<String>(other.success);
+ this.success = __this__success;
+ }
+ }
+
+ public getAllOS_result deepCopy() {
+ return new getAllOS_result(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);
+ }
+
+ public List<String> getSuccess() {
+ return this.success;
+ }
+
+ public getAllOS_result setSuccess(List<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((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 getAllOS_result)
+ return this.equals((getAllOS_result)that);
+ return false;
+ }
+
+ public boolean equals(getAllOS_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(getAllOS_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("getAllOS_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 getAllOS_resultStandardSchemeFactory implements SchemeFactory {
+ public getAllOS_resultStandardScheme getScheme() {
+ return new getAllOS_resultStandardScheme();
+ }
+ }
+
+ private static class getAllOS_resultStandardScheme extends StandardScheme<getAllOS_result> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOS_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 _list16 = iprot.readListBegin();
+ struct.success = new ArrayList<String>(_list16.size);
+ for (int _i17 = 0; _i17 < _list16.size; ++_i17)
+ {
+ String _elem18;
+ _elem18 = iprot.readString();
+ struct.success.add(_elem18);
+ }
+ 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, getAllOS_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 _iter19 : struct.success)
+ {
+ oprot.writeString(_iter19);
+ }
+ oprot.writeListEnd();
+ }
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class getAllOS_resultTupleSchemeFactory implements SchemeFactory {
+ public getAllOS_resultTupleScheme getScheme() {
+ return new getAllOS_resultTupleScheme();
+ }
+ }
+
+ private static class getAllOS_resultTupleScheme extends TupleScheme<getAllOS_result> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, getAllOS_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 _iter20 : struct.success)
+ {
+ oprot.writeString(_iter20);
+ }
+ }
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, getAllOS_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 _list21 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.success = new ArrayList<String>(_list21.size);
+ for (int _i22 = 0; _i22 < _list21.size; ++_i22)
+ {
+ String _elem23;
+ _elem23 = iprot.readString();
+ struct.success.add(_elem23);
+ }
+ }
+ struct.setSuccessIsSet(true);
+ }
+ }
+ }
+
+ }
+
+ public static class getPersonData_args implements org.apache.thrift.TBase<getPersonData_args, getPersonData_args._Fields>, java.io.Serializable, Cloneable, Comparable<getPersonData_args> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPersonData_args");
+
+ private static final org.apache.thrift.protocol.TField VORNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("Vorname", org.apache.thrift.protocol.TType.STRING, (short)-1);
+ private static final org.apache.thrift.protocol.TField NACHNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("Nachname", 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 getPersonData_argsStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new getPersonData_argsTupleSchemeFactory());
+ }
+
+ public String Vorname; // required
+ public String Nachname; // 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 {
+ VORNAME((short)-1, "Vorname"),
+ NACHNAME((short)-2, "Nachname");
+
+ 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: // VORNAME
+ return VORNAME;
+ case -2: // NACHNAME
+ return NACHNAME;
+ 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.VORNAME, new org.apache.thrift.meta_data.FieldMetaData("Vorname", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.NACHNAME, new org.apache.thrift.meta_data.FieldMetaData("Nachname", 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(getPersonData_args.class, metaDataMap);
+ }
+
+ public getPersonData_args() {
+ }
+
+ public getPersonData_args(
+ String Vorname,
+ String Nachname)
+ {
+ this();
+ this.Vorname = Vorname;
+ this.Nachname = Nachname;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public getPersonData_args(getPersonData_args other) {
+ if (other.isSetVorname()) {
+ this.Vorname = other.Vorname;
+ }
+ if (other.isSetNachname()) {
+ this.Nachname = other.Nachname;
+ }
+ }
+
+ public getPersonData_args deepCopy() {
+ return new getPersonData_args(this);
+ }
+
+ @Override
+ public void clear() {
+ this.Vorname = null;
+ this.Nachname = null;
+ }
+
+ public String getVorname() {
+ return this.Vorname;
+ }
+
+ public getPersonData_args setVorname(String Vorname) {
+ this.Vorname = Vorname;
+ return this;
+ }
+
+ public void unsetVorname() {
+ this.Vorname = null;
+ }
+
+ /** Returns true if field Vorname is set (has been assigned a value) and false otherwise */
+ public boolean isSetVorname() {
+ return this.Vorname != null;
+ }
+
+ public void setVornameIsSet(boolean value) {
+ if (!value) {
+ this.Vorname = null;
+ }
+ }
+
+ public String getNachname() {
+ return this.Nachname;
+ }
+
+ public getPersonData_args setNachname(String Nachname) {
+ this.Nachname = Nachname;
+ return this;
+ }
+
+ public void unsetNachname() {
+ this.Nachname = null;
+ }
+
+ /** Returns true if field Nachname is set (has been assigned a value) and false otherwise */
+ public boolean isSetNachname() {
+ return this.Nachname != null;
+ }
+
+ public void setNachnameIsSet(boolean value) {
+ if (!value) {
+ this.Nachname = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case VORNAME:
+ if (value == null) {
+ unsetVorname();
+ } else {
+ setVorname((String)value);
+ }
+ break;
+
+ case NACHNAME:
+ if (value == null) {
+ unsetNachname();
+ } else {
+ setNachname((String)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case VORNAME:
+ return getVorname();
+
+ case NACHNAME:
+ return getNachname();
+
+ }
+ 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 VORNAME:
+ return isSetVorname();
+ case NACHNAME:
+ return isSetNachname();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof getPersonData_args)
+ return this.equals((getPersonData_args)that);
+ return false;
+ }
+
+ public boolean equals(getPersonData_args that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_Vorname = true && this.isSetVorname();
+ boolean that_present_Vorname = true && that.isSetVorname();
+ if (this_present_Vorname || that_present_Vorname) {
+ if (!(this_present_Vorname && that_present_Vorname))
+ return false;
+ if (!this.Vorname.equals(that.Vorname))
+ return false;
+ }
+
+ boolean this_present_Nachname = true && this.isSetNachname();
+ boolean that_present_Nachname = true && that.isSetNachname();
+ if (this_present_Nachname || that_present_Nachname) {
+ if (!(this_present_Nachname && that_present_Nachname))
+ return false;
+ if (!this.Nachname.equals(that.Nachname))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return 0;
+ }
+
+ @Override
+ public int compareTo(getPersonData_args other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(isSetVorname()).compareTo(other.isSetVorname());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetVorname()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Vorname, other.Vorname);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetNachname()).compareTo(other.isSetNachname());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetNachname()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Nachname, other.Nachname);
+ 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("getPersonData_args(");
+ boolean first = true;
+
+ sb.append("Vorname:");
+ if (this.Vorname == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.Vorname);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("Nachname:");
+ if (this.Nachname == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.Nachname);
+ }
+ 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 getPersonData_argsStandardSchemeFactory implements SchemeFactory {
+ public getPersonData_argsStandardScheme getScheme() {
+ return new getPersonData_argsStandardScheme();
+ }
+ }
+
+ private static class getPersonData_argsStandardScheme extends StandardScheme<getPersonData_args> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, getPersonData_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: // VORNAME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.Vorname = iprot.readString();
+ struct.setVornameIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -2: // NACHNAME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.Nachname = iprot.readString();
+ struct.setNachnameIsSet(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, getPersonData_args struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.Nachname != null) {
+ oprot.writeFieldBegin(NACHNAME_FIELD_DESC);
+ oprot.writeString(struct.Nachname);
+ oprot.writeFieldEnd();
+ }
+ if (struct.Vorname != null) {
+ oprot.writeFieldBegin(VORNAME_FIELD_DESC);
+ oprot.writeString(struct.Vorname);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class getPersonData_argsTupleSchemeFactory implements SchemeFactory {
+ public getPersonData_argsTupleScheme getScheme() {
+ return new getPersonData_argsTupleScheme();
+ }
+ }
+
+ private static class getPersonData_argsTupleScheme extends TupleScheme<getPersonData_args> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, getPersonData_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetVorname()) {
+ optionals.set(0);
+ }
+ if (struct.isSetNachname()) {
+ optionals.set(1);
+ }
+ oprot.writeBitSet(optionals, 2);
+ if (struct.isSetVorname()) {
+ oprot.writeString(struct.Vorname);
+ }
+ if (struct.isSetNachname()) {
+ oprot.writeString(struct.Nachname);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, getPersonData_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(2);
+ if (incoming.get(0)) {
+ struct.Vorname = iprot.readString();
+ struct.setVornameIsSet(true);
+ }
+ if (incoming.get(1)) {
+ struct.Nachname = iprot.readString();
+ struct.setNachnameIsSet(true);
+ }
+ }
+ }
+
+ }
+
+ public static class getPersonData_result implements org.apache.thrift.TBase<getPersonData_result, getPersonData_result._Fields>, java.io.Serializable, Cloneable, Comparable<getPersonData_result> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPersonData_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 getPersonData_resultStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new getPersonData_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(getPersonData_result.class, metaDataMap);
+ }
+
+ public getPersonData_result() {
+ }
+
+ public getPersonData_result(
+ Map<String,String> success)
+ {
+ this();
+ this.success = success;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public getPersonData_result(getPersonData_result other) {
+ if (other.isSetSuccess()) {
+ Map<String,String> __this__success = new HashMap<String,String>(other.success);
+ this.success = __this__success;
+ }
+ }
+
+ public getPersonData_result deepCopy() {
+ return new getPersonData_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 getPersonData_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 getPersonData_result)
+ return this.equals((getPersonData_result)that);
+ return false;
+ }
+
+ public boolean equals(getPersonData_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(getPersonData_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("getPersonData_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 getPersonData_resultStandardSchemeFactory implements SchemeFactory {
+ public getPersonData_resultStandardScheme getScheme() {
+ return new getPersonData_resultStandardScheme();
+ }
+ }
+
+ private static class getPersonData_resultStandardScheme extends StandardScheme<getPersonData_result> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, getPersonData_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 _map24 = iprot.readMapBegin();
+ struct.success = new HashMap<String,String>(2*_map24.size);
+ for (int _i25 = 0; _i25 < _map24.size; ++_i25)
+ {
+ String _key26;
+ String _val27;
+ _key26 = iprot.readString();
+ _val27 = iprot.readString();
+ struct.success.put(_key26, _val27);
+ }
+ 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, getPersonData_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> _iter28 : struct.success.entrySet())
+ {
+ oprot.writeString(_iter28.getKey());
+ oprot.writeString(_iter28.getValue());
+ }
+ oprot.writeMapEnd();
+ }
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class getPersonData_resultTupleSchemeFactory implements SchemeFactory {
+ public getPersonData_resultTupleScheme getScheme() {
+ return new getPersonData_resultTupleScheme();
+ }
+ }
+
+ private static class getPersonData_resultTupleScheme extends TupleScheme<getPersonData_result> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, getPersonData_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> _iter29 : struct.success.entrySet())
+ {
+ oprot.writeString(_iter29.getKey());
+ oprot.writeString(_iter29.getValue());
+ }
+ }
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, getPersonData_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 _map30 = 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*_map30.size);
+ for (int _i31 = 0; _i31 < _map30.size; ++_i31)
+ {
+ String _key32;
+ String _val33;
+ _key32 = iprot.readString();
+ _val33 = iprot.readString();
+ struct.success.put(_key32, _val33);
+ }
+ }
+ struct.setSuccessIsSet(true);
+ }
+ }
+ }
+
+ }
+
+ public static class writeLecturedata_args implements org.apache.thrift.TBase<writeLecturedata_args, writeLecturedata_args._Fields>, java.io.Serializable, Cloneable, Comparable<writeLecturedata_args> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeLecturedata_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 SHORTDESC_FIELD_DESC = new org.apache.thrift.protocol.TField("shortdesc", org.apache.thrift.protocol.TType.STRING, (short)-2);
+ 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)-3);
+ 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)-4);
+ 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)-5);
+ 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)-6);
+ 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)-7);
+ 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)-8);
+ 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)-9);
+ 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)-10);
+ 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)-11);
+ 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)-12);
+ 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)-13);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new writeLecturedata_argsStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new writeLecturedata_argsTupleSchemeFactory());
+ }
+
+ public String name; // 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
+
+ /** 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"),
+ SHORTDESC((short)-2, "shortdesc"),
+ DESC((short)-3, "desc"),
+ START_DATE((short)-4, "startDate"),
+ END_DATE((short)-5, "endDate"),
+ IS_ACTIVE((short)-6, "isActive"),
+ IMAGENAME((short)-7, "imagename"),
+ FIRSTNAME((short)-8, "firstname"),
+ LASTNAME((short)-9, "lastname"),
+ UNIVERSITY((short)-10, "university"),
+ MAIL((short)-11, "Mail"),
+ TEL((short)-12, "Tel"),
+ FAK((short)-13, "Fak");
+
+ 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: // SHORTDESC
+ return SHORTDESC;
+ case -3: // DESC
+ return DESC;
+ case -4: // START_DATE
+ return START_DATE;
+ case -5: // END_DATE
+ return END_DATE;
+ case -6: // IS_ACTIVE
+ return IS_ACTIVE;
+ case -7: // IMAGENAME
+ return IMAGENAME;
+ case -8: // FIRSTNAME
+ return FIRSTNAME;
+ case -9: // LASTNAME
+ return LASTNAME;
+ case -10: // UNIVERSITY
+ return UNIVERSITY;
+ case -11: // MAIL
+ return MAIL;
+ case -12: // TEL
+ return TEL;
+ case -13: // FAK
+ return FAK;
+ 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.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)));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeLecturedata_args.class, metaDataMap);
+ }
+
+ public writeLecturedata_args() {
+ }
+
+ public writeLecturedata_args(
+ String name,
+ String shortdesc,
+ String desc,
+ String startDate,
+ String endDate,
+ boolean isActive,
+ String imagename,
+ String firstname,
+ String lastname,
+ String university,
+ String Mail,
+ String Tel,
+ String Fak)
+ {
+ this();
+ this.name = name;
+ 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;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public writeLecturedata_args(writeLecturedata_args other) {
+ __isset_bitfield = other.__isset_bitfield;
+ if (other.isSetName()) {
+ this.name = other.name;
+ }
+ 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;
+ }
+ }
+
+ public writeLecturedata_args deepCopy() {
+ return new writeLecturedata_args(this);
+ }
+
+ @Override
+ public void clear() {
+ this.name = 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;
+ }
+
+ public String getName() {
+ return this.name;
+ }
+
+ public writeLecturedata_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 getShortdesc() {
+ return this.shortdesc;
+ }
+
+ public writeLecturedata_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 writeLecturedata_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 writeLecturedata_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 writeLecturedata_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 writeLecturedata_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 writeLecturedata_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 writeLecturedata_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 writeLecturedata_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 writeLecturedata_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 writeLecturedata_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 writeLecturedata_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 writeLecturedata_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 void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case NAME:
+ if (value == null) {
+ unsetName();
+ } else {
+ setName((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;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case NAME:
+ return getName();
+
+ 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();
+
+ }
+ 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 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();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof writeLecturedata_args)
+ return this.equals((writeLecturedata_args)that);
+ return false;
+ }
+
+ public boolean equals(writeLecturedata_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_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;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return 0;
+ }
+
+ @Override
+ public int compareTo(writeLecturedata_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(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;
+ }
+ }
+ 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("writeLecturedata_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("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;
+ 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 writeLecturedata_argsStandardSchemeFactory implements SchemeFactory {
+ public writeLecturedata_argsStandardScheme getScheme() {
+ return new writeLecturedata_argsStandardScheme();
+ }
+ }
+
+ private static class writeLecturedata_argsStandardScheme extends StandardScheme<writeLecturedata_args> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, writeLecturedata_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: // 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 -3: // 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 -4: // 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 -5: // 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 -6: // 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 -7: // 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 -8: // 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 -9: // 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 -10: // 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 -11: // 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 -12: // 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 -13: // 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;
+ 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, writeLecturedata_args struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ 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.name != null) {
+ oprot.writeFieldBegin(NAME_FIELD_DESC);
+ oprot.writeString(struct.name);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class writeLecturedata_argsTupleSchemeFactory implements SchemeFactory {
+ public writeLecturedata_argsTupleScheme getScheme() {
+ return new writeLecturedata_argsTupleScheme();
+ }
+ }
+
+ private static class writeLecturedata_argsTupleScheme extends TupleScheme<writeLecturedata_args> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, writeLecturedata_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetName()) {
+ optionals.set(0);
+ }
+ if (struct.isSetShortdesc()) {
+ optionals.set(1);
+ }
+ if (struct.isSetDesc()) {
+ optionals.set(2);
+ }
+ if (struct.isSetStartDate()) {
+ optionals.set(3);
+ }
+ if (struct.isSetEndDate()) {
+ optionals.set(4);
+ }
+ if (struct.isSetIsActive()) {
+ optionals.set(5);
+ }
+ if (struct.isSetImagename()) {
+ optionals.set(6);
+ }
+ if (struct.isSetFirstname()) {
+ optionals.set(7);
+ }
+ if (struct.isSetLastname()) {
+ optionals.set(8);
+ }
+ if (struct.isSetUniversity()) {
+ optionals.set(9);
+ }
+ if (struct.isSetMail()) {
+ optionals.set(10);
+ }
+ if (struct.isSetTel()) {
+ optionals.set(11);
+ }
+ if (struct.isSetFak()) {
+ optionals.set(12);
+ }
+ oprot.writeBitSet(optionals, 13);
+ if (struct.isSetName()) {
+ oprot.writeString(struct.name);
+ }
+ 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);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, writeLecturedata_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(13);
+ if (incoming.get(0)) {
+ struct.name = iprot.readString();
+ struct.setNameIsSet(true);
+ }
+ if (incoming.get(1)) {
+ struct.shortdesc = iprot.readString();
+ struct.setShortdescIsSet(true);
+ }
+ if (incoming.get(2)) {
+ struct.desc = iprot.readString();
+ struct.setDescIsSet(true);
+ }
+ if (incoming.get(3)) {
+ struct.startDate = iprot.readString();
+ struct.setStartDateIsSet(true);
+ }
+ if (incoming.get(4)) {
+ struct.endDate = iprot.readString();
+ struct.setEndDateIsSet(true);
+ }
+ if (incoming.get(5)) {
+ struct.isActive = iprot.readBool();
+ struct.setIsActiveIsSet(true);
+ }
+ if (incoming.get(6)) {
+ struct.imagename = iprot.readString();
+ struct.setImagenameIsSet(true);
+ }
+ if (incoming.get(7)) {
+ struct.firstname = iprot.readString();
+ struct.setFirstnameIsSet(true);
+ }
+ if (incoming.get(8)) {
+ struct.lastname = iprot.readString();
+ struct.setLastnameIsSet(true);
+ }
+ if (incoming.get(9)) {
+ struct.university = iprot.readString();
+ struct.setUniversityIsSet(true);
+ }
+ if (incoming.get(10)) {
+ struct.Mail = iprot.readString();
+ struct.setMailIsSet(true);
+ }
+ if (incoming.get(11)) {
+ struct.Tel = iprot.readString();
+ struct.setTelIsSet(true);
+ }
+ if (incoming.get(12)) {
+ struct.Fak = iprot.readString();
+ struct.setFakIsSet(true);
+ }
+ }
+ }
+
+ }
+
+ public static class writeLecturedata_result implements org.apache.thrift.TBase<writeLecturedata_result, writeLecturedata_result._Fields>, java.io.Serializable, Cloneable, Comparable<writeLecturedata_result> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeLecturedata_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 writeLecturedata_resultStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new writeLecturedata_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(writeLecturedata_result.class, metaDataMap);
+ }
+
+ public writeLecturedata_result() {
+ }
+
+ public writeLecturedata_result(
+ boolean success)
+ {
+ this();
+ this.success = success;
+ setSuccessIsSet(true);
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public writeLecturedata_result(writeLecturedata_result other) {
+ __isset_bitfield = other.__isset_bitfield;
+ this.success = other.success;
+ }
+
+ public writeLecturedata_result deepCopy() {
+ return new writeLecturedata_result(this);
+ }
+
+ @Override
+ public void clear() {
+ setSuccessIsSet(false);
+ this.success = false;
+ }
+
+ public boolean isSuccess() {
+ return this.success;
+ }
+
+ public writeLecturedata_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 writeLecturedata_result)
+ return this.equals((writeLecturedata_result)that);
+ return false;
+ }
+
+ public boolean equals(writeLecturedata_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(writeLecturedata_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("writeLecturedata_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 writeLecturedata_resultStandardSchemeFactory implements SchemeFactory {
+ public writeLecturedata_resultStandardScheme getScheme() {
+ return new writeLecturedata_resultStandardScheme();
+ }
+ }
+
+ private static class writeLecturedata_resultStandardScheme extends StandardScheme<writeLecturedata_result> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, writeLecturedata_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, writeLecturedata_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 writeLecturedata_resultTupleSchemeFactory implements SchemeFactory {
+ public writeLecturedata_resultTupleScheme getScheme() {
+ return new writeLecturedata_resultTupleScheme();
+ }
+ }
+
+ private static class writeLecturedata_resultTupleScheme extends TupleScheme<writeLecturedata_result> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, writeLecturedata_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, writeLecturedata_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
new file mode 100644
index 00000000..78e81464
--- /dev/null
+++ b/Dozentenmodulserver/src/server/ServerHandler.java
@@ -0,0 +1,204 @@
+package server;
+
+import java.math.BigInteger;
+import java.security.MessageDigest;
+import java.security.NoSuchAlgorithmException;
+import java.sql.Connection;
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.UUID;
+
+import org.apache.thrift.TException;
+
+import sql.SQL;
+
+
+public class ServerHandler implements Server.Iface {
+
+ SQL sql=new SQL();
+ Connection con=sql.getConnection();
+ /**
+ * @param args
+ */
+ /*public static void main(String[] args) {
+ // TODO Auto-generated method stub
+
+ }*/
+
+ @Override
+ public User getFtpUser() throws TException {
+ User user=new User();
+ user.setUserName(UUID.randomUUID().toString().substring(0, 8));
+ user.setPassword(getEncodedSha1Sum(UUID.randomUUID().toString().substring(0, 8)));
+ user.setPath("/srv/openslx/nfs/temp");
+ SQL sql=new SQL();
+ Connection con=sql.getConnection();
+ sql.writeFTPUser(con, user.getUserName(), user.getPassword());
+ return user;
+ }
+
+
+ public String getEncodedSha1Sum(String key) {
+ try {
+ MessageDigest md = MessageDigest.getInstance( "SHA1" );
+ md.update( key.getBytes() );
+ return new BigInteger(1, md.digest()).toString(16);
+ }
+ catch (NoSuchAlgorithmException e) {
+ // handle error case to taste
+ }
+ return null;
+ }
+
+ @Override
+ public long DeleteFtpUser(String user) throws TException {
+ int ret = sql.DeleteUser(con, user);
+ return ret;
+ }
+
+ @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
+ 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)
+ throws TException {
+ String login="tete";
+
+ int pk_institution=sql.setInstitution(con, university);
+
+ int pk_person=sql.setPerson(con, login, lastname, firstname, Mail, new Date(), pk_institution);
+
+ sql.setImageData(con, pk_person, license, internet, cpu, ram, imagename);
+
+ // TODO Auto-generated method stub
+ return true;
+ }
+
+ @Override
+ public List<Image> getImageList() throws TException {
+ ResultSet resWith=sql.getImageListWithLectures(con);
+ ResultSet resWithout=sql.getImageListWithoutLectures(con);
+ List<Image> listWith = new ArrayList<Image>();
+ List<Image> listWithout = new ArrayList<Image>();
+ try {
+
+ while(resWith.next())
+ {
+
+ listWith.add(new Image(resWith.getString("image_name"),resWith.getString("cond_hasLicenseRestriction"),resWith.getString("name"),resWith.getString("lecture"),resWith.getString("image_update_time"),resWith.getString("user")));
+
+ }
+
+ while(resWithout.next())
+ {
+ listWithout.add(new Image(resWithout.getString("image_name"),resWithout.getString("cond_hasLicenseRestriction"),resWithout.getString("name"),"''",resWithout.getString("image_update_time"),resWithout.getString("user")));
+
+ }
+
+ if(listWithout!=null)
+ {
+ listWith.addAll(listWith.size(), listWithout);
+ }
+
+ return listWith;
+ } catch (SQLException e1) {
+ // TODO Auto-generated catch block
+ e1.printStackTrace();
+ }
+
+ return null;
+ }
+
+
+ @Override
+ public List<String> getAllOS() throws TException {
+ List<String> list=new ArrayList<>();
+ ResultSet rs=sql.getAllOS(con);
+ try {
+ while(rs.next())
+ {
+ list.add(rs.getString("name"));
+ }
+ return list;
+ } catch (SQLException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ return null;
+ }
+
+ @Override
+ public Map<String, String> getPersonData(String Vorname, String Nachname)
+ throws TException {
+ Map<String,String> map=new HashMap<String, String>();
+
+ ResultSet rs=sql.getPersonData(con, Vorname, Nachname);
+ try {
+ while(rs.next())
+ {
+
+ map.put("mail", rs.getString("mail"));
+ map.put("Nachname", rs.getString("Nachname"));
+ map.put("Vorname", rs.getString("Vorname"));
+ map.put("Hochschule", rs.getString("name"));
+ map.put("tel", "009909");
+ map.put("fak", "E+I");
+
+ }
+ return map;
+ } catch (SQLException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ return null;
+ }
+
+ @Override
+ public boolean writeLecturedata(String name, String shortdesc, String desc,
+ String startDate, String endDate, boolean isActive,
+ String imagename, String firstname, String lastname,
+ String university, String Mail, String Tel, String Fak)
+ throws TException {
+ int pk_image = 0;
+ String login="tete";
+ int imageversion = 0;
+ int pk_institution=sql.setInstitution(con, university);
+ int pk_person=sql.setPerson(con, login, lastname, firstname, Mail, new Date(), pk_institution);
+
+ 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();
+ }
+
+
+ System.out.println(startDate);
+ sql.setLectureData(con, pk_person, pk_image, imageversion, name, desc, shortdesc, startDate, endDate, isActive);
+
+ return false;
+ }
+
+}
diff --git a/Dozentenmodulserver/src/server/ServerInterface.java b/Dozentenmodulserver/src/server/ServerInterface.java
deleted file mode 100644
index fffcb064..00000000
--- a/Dozentenmodulserver/src/server/ServerInterface.java
+++ /dev/null
@@ -1,24 +0,0 @@
-package server;
-import java.rmi.*;
-import java.sql.ResultSet;
-import java.util.ArrayList;
-import java.util.Date;
-import java.util.List;
-import java.util.Map;
-
-import Models.User;
-
-public interface ServerInterface extends Remote
-{
- public User getFtpUser() throws RemoteException;
- public int DeleteFtpUser(String user) throws RemoteException;
- public ArrayList<String> getImages() throws RemoteException;
- public String getPathOfImage(String name) throws RemoteException;
- public boolean writeVLdata(String imagename, String firstname, String lastname,String university, String Mail, String Tel, String Fak, boolean license, boolean internet, int ram, int cpu) throws RemoteException;
- public List<Object[]> getImageList() throws RemoteException;
- public List<String> getAllOS() throws RemoteException;
- public Map<String,String> getPersonData(String Vorname, String Nachname) throws RemoteException;
- public boolean writeLecturedata(String name, String shortdesc, String desc,Date start, Date end, boolean isActive, String imagename,String firstname,
- String lastname, String university, String Mail, String Tel,
- String Fak) throws RemoteException;
-}
diff --git a/Dozentenmodulserver/src/server/ServerMethod.java b/Dozentenmodulserver/src/server/ServerMethod.java
deleted file mode 100644
index aa4dcae8..00000000
--- a/Dozentenmodulserver/src/server/ServerMethod.java
+++ /dev/null
@@ -1,269 +0,0 @@
-package server;
-import java.math.BigInteger;
-import java.rmi.*;
-import java.rmi.registry.LocateRegistry;
-import java.rmi.server.UnicastRemoteObject;
-import java.security.MessageDigest;
-import java.security.NoSuchAlgorithmException;
-import java.sql.Connection;
-import java.sql.ResultSet;
-import java.sql.ResultSetMetaData;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.Date;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.UUID;
-
-import Models.User;
-
-import sql.SQL;
-
-@SuppressWarnings("serial")
-public class ServerMethod extends UnicastRemoteObject implements ServerInterface
-{
- protected static String m_strName;
- SQL sql=new SQL();
- Connection con=sql.getConnection();
-
- public ServerMethod() throws RemoteException
- {
- super(); // call base class constructor
- }
-
-
-
- public static void main(String argv[])
- {
- try
- {
- LocateRegistry.createRegistry(9999);
-
- m_strName = "TheRMIExample";
- System.out.println("Server: Registering RMIExampleImpl as \"" + m_strName +"\"");
- //System.setSecurityManager(new RMISecurityManager());
- ServerMethod Example = new ServerMethod();
- Naming.rebind("rmi://141.79.128.121:9999/"+m_strName, Example);
- System.out.println("Server: Ready...");
- }
- catch (Exception e)
- {
- System.out.println("Server: Failed to register RMIExampleImpl: " + e);
- }
- }
-
-
-
- @Override
- public User getFtpUser() throws RemoteException {
- User user=new User();
- user.setUsername(UUID.randomUUID().toString().substring(0, 8));
- user.setPass(getEncodedSha1Sum(UUID.randomUUID().toString().substring(0, 8)));
- user.setPath("/srv/openslx/nfs/temp");
- SQL sql=new SQL();
- Connection con=sql.getConnection();
- sql.writeFTPUser(con, user.getUsername(), user.getPass());
- return user;
- }
-
-
-
- @Override
- public int DeleteFtpUser(String user) throws RemoteException {
-
-
- int ret = sql.DeleteUser(con, user);
- return ret;
- }
-
- public String getEncodedSha1Sum(String key) {
- try {
- MessageDigest md = MessageDigest.getInstance( "SHA1" );
- md.update( key.getBytes() );
- return new BigInteger(1, md.digest()).toString(16);
- }
- catch (NoSuchAlgorithmException e) {
- // handle error case to taste
- }
- return null;
- }
-
-
-
- public ArrayList<String> getImages(){
-
-
-
- ResultSet rs= sql.getImage(con);
- ArrayList<String> al=new ArrayList<String>();
- try {
- while(rs.next())
- {
-
- al.add(rs.getString(1));
-
- }
- } catch (SQLException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- return al;
- }
-
- public String getPathOfImage(String name){
-
- String path = null;
-
- ResultSet rs= sql.getPathOfImage(con, name);
-
- try {
- while(rs.next())
- {
-
- path=rs.getString(1);
-
- }
- } catch (SQLException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- return path;
- }
-
- @Override
- public boolean writeVLdata(String imagename, String firstname,
- String lastname, String university, String Mail, String Tel,
- String Fak, boolean license, boolean internet, int ram, int cpu)
- throws RemoteException {
- String login="tete";
-
- int pk_institution=sql.setInstitution(con, university);
-
- int pk_person=sql.setPerson(con, login, lastname, firstname, Mail, new Date(), pk_institution);
-
- sql.setImageData(con, pk_person, license, internet, cpu, ram, imagename);
-
- // TODO Auto-generated method stub
- return true;
- }
-
-
-
-
- @Override
- public List<Object[]> getImageList() throws RemoteException {
-
- ResultSet resWith=sql.getImageListWithLectures(con);
- ResultSet resWithout=sql.getImageListWithoutLectures(con);
-
- try {
- List<Object[]> listWith = ResSetToObject(resWith);
- List<Object[]> listWithout=ResSetToObject(resWithout);
- listWith.addAll(listWith.size(), listWithout);
-
- return listWith;
- } catch (SQLException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- }
-
- return null;
- }
-
- public List<Object[]> ResSetToObject(ResultSet res) throws SQLException
- {
-
- ResultSetMetaData rsmd = res.getMetaData();
- List<Object[]> list=new ArrayList<>();
- while(res.next()){
- Object[] objects = new Object[rsmd.getColumnCount()];
- // tanks to umit ozkan for the bug fix!
- for(int i=0;i<rsmd.getColumnCount();i++){
- objects[i]=res.getObject(i+1);
- }
- list.add(objects);
-
- }
- return list;
- }
-
-
-
- @Override
- public List<String> getAllOS() throws RemoteException {
- List<String> list=new ArrayList<>();
- ResultSet rs=sql.getAllOS(con);
- try {
- while(rs.next())
- {
- list.add(rs.getString("name"));
- }
- return list;
- } catch (SQLException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- return null;
- }
-
-
-
- @Override
- public Map<String,String> getPersonData(String Vorname, String Nachname)
- throws RemoteException {
- Map<String,String> map=new HashMap<String, String>();
- System.out.println(Vorname+Nachname);
- ResultSet rs=sql.getPersonData(con, Vorname, Nachname);
- try {
- while(rs.next())
- {
-
- map.put("mail", rs.getString("mail"));
- map.put("Nachname", rs.getString("Nachname"));
- map.put("Vorname", rs.getString("Vorname"));
- map.put("Hochschule", rs.getString("name"));
- map.put("tel", "009909");
- map.put("fak", "E+I");
-
- }
- return map;
- } catch (SQLException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- return null;
- }
-
-
- @Override
- public boolean writeLecturedata(String name, String shortdesc, String desc,
- Date start, Date end, boolean isActive, String imagename,
- String firstname, String lastname, String university, String Mail,
- String Tel, String Fak) throws RemoteException {
- int pk_image = 0;
- String login="tete";
- int imageversion = 0;
- int pk_institution=sql.setInstitution(con, university);
- int pk_person=sql.setPerson(con, login, lastname, firstname, Mail, new Date(), pk_institution);
- System.out.println(imagename);
- 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.setLectureData(con, pk_person, pk_image, imageversion, name, desc, shortdesc, start, end, isActive);
-
- return false;
- }
-} \ No newline at end of file
diff --git a/Dozentenmodulserver/src/server/User.java b/Dozentenmodulserver/src/server/User.java
new file mode 100644
index 00000000..5fd2f983
--- /dev/null
+++ b/Dozentenmodulserver/src/server/User.java
@@ -0,0 +1,587 @@
+/**
+ * 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 User implements org.apache.thrift.TBase<User, User._Fields>, java.io.Serializable, Cloneable, Comparable<User> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("User");
+
+ private static final org.apache.thrift.protocol.TField USER_NAME_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 org.apache.thrift.protocol.TField PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("path", 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 UserStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new UserTupleSchemeFactory());
+ }
+
+ public String userName; // required
+ public String password; // required
+ public String path; // 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_NAME((short)-1, "userName"),
+ PASSWORD((short)-2, "password"),
+ PATH((short)-3, "path");
+
+ 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_NAME
+ return USER_NAME;
+ case -2: // PASSWORD
+ return PASSWORD;
+ case -3: // PATH
+ return PATH;
+ 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_NAME, 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)));
+ tmpMap.put(_Fields.PATH, new org.apache.thrift.meta_data.FieldMetaData("path", 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(User.class, metaDataMap);
+ }
+
+ public User() {
+ }
+
+ public User(
+ String userName,
+ String password,
+ String path)
+ {
+ this();
+ this.userName = userName;
+ this.password = password;
+ this.path = path;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public User(User other) {
+ if (other.isSetUserName()) {
+ this.userName = other.userName;
+ }
+ if (other.isSetPassword()) {
+ this.password = other.password;
+ }
+ if (other.isSetPath()) {
+ this.path = other.path;
+ }
+ }
+
+ public User deepCopy() {
+ return new User(this);
+ }
+
+ @Override
+ public void clear() {
+ this.userName = null;
+ this.password = null;
+ this.path = null;
+ }
+
+ public String getUserName() {
+ return this.userName;
+ }
+
+ public User 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 User 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 String getPath() {
+ return this.path;
+ }
+
+ public User setPath(String path) {
+ this.path = path;
+ return this;
+ }
+
+ public void unsetPath() {
+ this.path = null;
+ }
+
+ /** Returns true if field path is set (has been assigned a value) and false otherwise */
+ public boolean isSetPath() {
+ return this.path != null;
+ }
+
+ public void setPathIsSet(boolean value) {
+ if (!value) {
+ this.path = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case USER_NAME:
+ if (value == null) {
+ unsetUserName();
+ } else {
+ setUserName((String)value);
+ }
+ break;
+
+ case PASSWORD:
+ if (value == null) {
+ unsetPassword();
+ } else {
+ setPassword((String)value);
+ }
+ break;
+
+ case PATH:
+ if (value == null) {
+ unsetPath();
+ } else {
+ setPath((String)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case USER_NAME:
+ return getUserName();
+
+ case PASSWORD:
+ return getPassword();
+
+ case PATH:
+ return getPath();
+
+ }
+ 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_NAME:
+ return isSetUserName();
+ case PASSWORD:
+ return isSetPassword();
+ case PATH:
+ return isSetPath();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof User)
+ return this.equals((User)that);
+ return false;
+ }
+
+ public boolean equals(User 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;
+ }
+
+ boolean this_present_path = true && this.isSetPath();
+ boolean that_present_path = true && that.isSetPath();
+ if (this_present_path || that_present_path) {
+ if (!(this_present_path && that_present_path))
+ return false;
+ if (!this.path.equals(that.path))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return 0;
+ }
+
+ @Override
+ public int compareTo(User 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;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetPath()).compareTo(other.isSetPath());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetPath()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.path, other.path);
+ 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("User(");
+ 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;
+ if (!first) sb.append(", ");
+ sb.append("path:");
+ if (this.path == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.path);
+ }
+ 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 UserStandardSchemeFactory implements SchemeFactory {
+ public UserStandardScheme getScheme() {
+ return new UserStandardScheme();
+ }
+ }
+
+ private static class UserStandardScheme extends StandardScheme<User> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, User 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_NAME
+ 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;
+ case -3: // PATH
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.path = iprot.readString();
+ struct.setPathIsSet(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, User struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.path != null) {
+ oprot.writeFieldBegin(PATH_FIELD_DESC);
+ oprot.writeString(struct.path);
+ oprot.writeFieldEnd();
+ }
+ if (struct.password != null) {
+ oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
+ oprot.writeString(struct.password);
+ oprot.writeFieldEnd();
+ }
+ if (struct.userName != null) {
+ oprot.writeFieldBegin(USER_NAME_FIELD_DESC);
+ oprot.writeString(struct.userName);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class UserTupleSchemeFactory implements SchemeFactory {
+ public UserTupleScheme getScheme() {
+ return new UserTupleScheme();
+ }
+ }
+
+ private static class UserTupleScheme extends TupleScheme<User> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, User 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);
+ }
+ if (struct.isSetPath()) {
+ optionals.set(2);
+ }
+ oprot.writeBitSet(optionals, 3);
+ if (struct.isSetUserName()) {
+ oprot.writeString(struct.userName);
+ }
+ if (struct.isSetPassword()) {
+ oprot.writeString(struct.password);
+ }
+ if (struct.isSetPath()) {
+ oprot.writeString(struct.path);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, User struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(3);
+ if (incoming.get(0)) {
+ struct.userName = iprot.readString();
+ struct.setUserNameIsSet(true);
+ }
+ if (incoming.get(1)) {
+ struct.password = iprot.readString();
+ struct.setPasswordIsSet(true);
+ }
+ if (incoming.get(2)) {
+ struct.path = iprot.readString();
+ struct.setPathIsSet(true);
+ }
+ }
+ }
+
+}
+
diff --git a/Dozentenmodulserver/src/server/startServer.java b/Dozentenmodulserver/src/server/startServer.java
new file mode 100644
index 00000000..46b9a2f1
--- /dev/null
+++ b/Dozentenmodulserver/src/server/startServer.java
@@ -0,0 +1,48 @@
+package server;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.log4j.BasicConfigurator;
+import org.apache.log4j.Logger;
+
+
+import server.BinaryListener;
+
+public class startServer {
+
+ /**
+ * @param args
+ */
+
+ private static Logger log = Logger.getLogger( startServer.class );
+
+ private static List<Thread> servers = new ArrayList<>();
+
+
+ public static void main(String[] args) {
+ BasicConfigurator.configure();
+ log.info( "Starting Application" );
+ Thread t;
+ t = new Thread(new BinaryListener());
+ servers.add(t);
+ t.start();
+ // Run more servers
+ // ...
+ // Wait for all servers to die
+ for (Thread wait : servers) {
+ boolean success = false;
+ while (!success) {
+ try {
+ wait.join();
+ success = true;
+ } catch ( InterruptedException e ) {
+ // Do nothing...
+ }
+ }
+ }
+ log.info( "All Servers shut down, exiting..." );
+
+ }
+
+}
diff --git a/Dozentenmodulserver/src/sql/SQL.java b/Dozentenmodulserver/src/sql/SQL.java
index eb5021c4..b07de35b 100644
--- a/Dozentenmodulserver/src/sql/SQL.java
+++ b/Dozentenmodulserver/src/sql/SQL.java
@@ -160,7 +160,7 @@ public class SQL {
return -1;
}
- public int setImageData(Connection con, int pk_person, boolean license, boolean internet, int cpu, int ram, String imagename)
+ public boolean setImageData(Connection con, int pk_person, boolean license, boolean internet, long cpu, long ram, String imagename)
{
DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
@@ -187,7 +187,7 @@ public class SQL {
// TODO Auto-generated catch block
e.printStackTrace();
}
- return ram;
+ return true;
}
@@ -195,7 +195,7 @@ public class SQL {
try {
Statement stm=con.createStatement();
- return stm.executeQuery("SELECT distinct vl.image_name, vl.cond_hasLicenseRestriction, os.name, '',vl.image_update_time, Concat(u.Nachname,' ',u.Vorname) 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;");
+ return stm.executeQuery("SELECT distinct vl.image_name, vl.cond_hasLicenseRestriction, os.name, '',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;");
} catch (SQLException e) {
@@ -209,7 +209,7 @@ public class SQL {
try {
Statement stm=con.createStatement();
- return stm.executeQuery("SELECT vl.image_name, vl.cond_hasLicenseRestriction, os.name, lect.name, vl.image_update_time, Concat(u.Nachname,' ',u.Vorname) 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;");
+ return stm.executeQuery("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;");
} catch (SQLException e) {
@@ -249,11 +249,12 @@ public class SQL {
return null;
}
- public int setLectureData(Connection con, int pk_person, int pk_image,int imageversion, String name, String desc, String shortdesc,Date start, Date 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;
+
if(isactive==true)
{
active_bol=1;
@@ -262,7 +263,7 @@ public class SQL {
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+"','"+formatter.format(start)+"','"+formatter.format(end)+"','"+formatter.format(new Date())+"','"+shortdesc+"','"+desc+"','"+pk_image+"','"+imageversion+"','"+formatter.format(new Date())+"','"+formatter.format(new Date())+"','"+pk_person+"','"+pk_person+"');");
+ 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) {
diff --git a/Dozentenmodulserver/thrift/server.thrift b/Dozentenmodulserver/thrift/server.thrift
new file mode 100644
index 00000000..51b5fdce
--- /dev/null
+++ b/Dozentenmodulserver/thrift/server.thrift
@@ -0,0 +1,30 @@
+/**
+ * Define some namespace/package name for our stuff
+ */
+typedef i64 int
+
+struct User{
+ string userName,
+ string password,
+ string path,
+}
+
+struct Image{
+ string imageName,
+ string licenseRestriction,
+ string osName,
+ string lectureName,
+ string updateTime,
+ string userData,
+}
+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),
+ list<Image> getImageList(),
+ 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),
+} \ No newline at end of file