diff options
author | Simon Rettberg | 2014-07-14 20:58:42 +0200 |
---|---|---|
committer | Simon Rettberg | 2014-07-14 20:58:42 +0200 |
commit | 67511b8aad6c1162bbd8ba01e1d4cd9a0bb1e107 (patch) | |
tree | 82b1d287d0b7304d2c5b8bc4d958694fd8fd2b4d /Dozentenmodul | |
parent | Converted DMS to Maven project (1/2) (diff) | |
download | tutor-module-67511b8aad6c1162bbd8ba01e1d4cd9a0bb1e107.tar.gz tutor-module-67511b8aad6c1162bbd8ba01e1d4cd9a0bb1e107.tar.xz tutor-module-67511b8aad6c1162bbd8ba01e1d4cd9a0bb1e107.zip |
mavenization on its way...
Diffstat (limited to 'Dozentenmodul')
192 files changed, 221 insertions, 5556 deletions
diff --git a/Dozentenmodul/bin/Image_zu_Veranstaltung_HDD.png b/Dozentenmodul/bin/Image_zu_Veranstaltung_HDD.png Binary files differdeleted file mode 100644 index 39b3bac6..00000000 --- a/Dozentenmodul/bin/Image_zu_Veranstaltung_HDD.png +++ /dev/null diff --git a/Dozentenmodul/bin/Logo_bwLehrpool.png b/Dozentenmodul/bin/Logo_bwLehrpool.png Binary files differdeleted file mode 100644 index b897d9f1..00000000 --- a/Dozentenmodul/bin/Logo_bwLehrpool.png +++ /dev/null diff --git a/Dozentenmodul/bin/auth/Authentification.class b/Dozentenmodul/bin/auth/Authentification.class Binary files differdeleted file mode 100644 index 0d9b3144..00000000 --- a/Dozentenmodul/bin/auth/Authentification.class +++ /dev/null diff --git a/Dozentenmodul/bin/config/config_file.class b/Dozentenmodul/bin/config/config_file.class Binary files differdeleted file mode 100644 index 9e074954..00000000 --- a/Dozentenmodul/bin/config/config_file.class +++ /dev/null diff --git a/Dozentenmodul/bin/ftp/DownloadTask.class b/Dozentenmodul/bin/ftp/DownloadTask.class Binary files differdeleted file mode 100644 index 447a8eb4..00000000 --- a/Dozentenmodul/bin/ftp/DownloadTask.class +++ /dev/null diff --git a/Dozentenmodul/bin/ftp/FTPException.class b/Dozentenmodul/bin/ftp/FTPException.class Binary files differdeleted file mode 100644 index aa1d8638..00000000 --- a/Dozentenmodul/bin/ftp/FTPException.class +++ /dev/null diff --git a/Dozentenmodul/bin/ftp/FTPUtility.class b/Dozentenmodul/bin/ftp/FTPUtility.class Binary files differdeleted file mode 100644 index 95655233..00000000 --- a/Dozentenmodul/bin/ftp/FTPUtility.class +++ /dev/null diff --git a/Dozentenmodul/bin/ftp/UploadTask.class b/Dozentenmodul/bin/ftp/UploadTask.class Binary files differdeleted file mode 100644 index 101ff93b..00000000 --- a/Dozentenmodul/bin/ftp/UploadTask.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/image/CreateImageAllgemein_GUI.class b/Dozentenmodul/bin/gui/image/CreateImageAllgemein_GUI.class Binary files differdeleted file mode 100644 index 9e28bfa1..00000000 --- a/Dozentenmodul/bin/gui/image/CreateImageAllgemein_GUI.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/image/CreateImageTechnisch_GUI.class b/Dozentenmodul/bin/gui/image/CreateImageTechnisch_GUI.class Binary files differdeleted file mode 100644 index d03e7bba..00000000 --- a/Dozentenmodul/bin/gui/image/CreateImageTechnisch_GUI.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/image/DeleteImage_GUI.class b/Dozentenmodul/bin/gui/image/DeleteImage_GUI.class Binary files differdeleted file mode 100644 index 810a0bde..00000000 --- a/Dozentenmodul/bin/gui/image/DeleteImage_GUI.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/image/EditImageAllgemein_GUI.class b/Dozentenmodul/bin/gui/image/EditImageAllgemein_GUI.class Binary files differdeleted file mode 100644 index bb3de645..00000000 --- a/Dozentenmodul/bin/gui/image/EditImageAllgemein_GUI.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/image/EditImageTechnisch_GUI.class b/Dozentenmodul/bin/gui/image/EditImageTechnisch_GUI.class Binary files differdeleted file mode 100644 index 45e33268..00000000 --- a/Dozentenmodul/bin/gui/image/EditImageTechnisch_GUI.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI.class b/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI.class Binary files differdeleted file mode 100644 index f37a90df..00000000 --- a/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/image/FTPDownloader_GUI.class b/Dozentenmodul/bin/gui/image/FTPDownloader_GUI.class Binary files differdeleted file mode 100644 index 2cc03f7b..00000000 --- a/Dozentenmodul/bin/gui/image/FTPDownloader_GUI.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/image/FTPEditUploader_GUI.class b/Dozentenmodul/bin/gui/image/FTPEditUploader_GUI.class Binary files differdeleted file mode 100644 index 5f5bd3c0..00000000 --- a/Dozentenmodul/bin/gui/image/FTPEditUploader_GUI.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/image/SearchEditImage_GUI.class b/Dozentenmodul/bin/gui/image/SearchEditImage_GUI.class Binary files differdeleted file mode 100644 index c74231f4..00000000 --- a/Dozentenmodul/bin/gui/image/SearchEditImage_GUI.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/image/SearchImage_GUI.class b/Dozentenmodul/bin/gui/image/SearchImage_GUI.class Binary files differdeleted file mode 100644 index 76bf7853..00000000 --- a/Dozentenmodul/bin/gui/image/SearchImage_GUI.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/intro/BillOfRights_GUI$1.class b/Dozentenmodul/bin/gui/intro/BillOfRights_GUI$1.class Binary files differdeleted file mode 100644 index 2b4bf693..00000000 --- a/Dozentenmodul/bin/gui/intro/BillOfRights_GUI$1.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/intro/BillOfRights_GUI$2.class b/Dozentenmodul/bin/gui/intro/BillOfRights_GUI$2.class Binary files differdeleted file mode 100644 index 72c79ffe..00000000 --- a/Dozentenmodul/bin/gui/intro/BillOfRights_GUI$2.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/intro/BillOfRights_GUI$3.class b/Dozentenmodul/bin/gui/intro/BillOfRights_GUI$3.class Binary files differdeleted file mode 100644 index 32770f91..00000000 --- a/Dozentenmodul/bin/gui/intro/BillOfRights_GUI$3.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/intro/BillOfRights_GUI.class b/Dozentenmodul/bin/gui/intro/BillOfRights_GUI.class Binary files differdeleted file mode 100644 index 7118cb01..00000000 --- a/Dozentenmodul/bin/gui/intro/BillOfRights_GUI.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/intro/Login_GUI.class b/Dozentenmodul/bin/gui/intro/Login_GUI.class Binary files differdeleted file mode 100644 index aaa9ada0..00000000 --- a/Dozentenmodul/bin/gui/intro/Login_GUI.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$1.class b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$1.class Binary files differdeleted file mode 100644 index 8f2c2337..00000000 --- a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$1.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$10.class b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$10.class Binary files differdeleted file mode 100644 index 55965fd2..00000000 --- a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$10.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$2.class b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$2.class Binary files differdeleted file mode 100644 index d88ea420..00000000 --- a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$2.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$3.class b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$3.class Binary files differdeleted file mode 100644 index bb811f7a..00000000 --- a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$3.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$4.class b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$4.class Binary files differdeleted file mode 100644 index 1cf17778..00000000 --- a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$4.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$5.class b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$5.class Binary files differdeleted file mode 100644 index e4c4e858..00000000 --- a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$5.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$6.class b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$6.class Binary files differdeleted file mode 100644 index 715c30d8..00000000 --- a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$6.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$7.class b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$7.class Binary files differdeleted file mode 100644 index 10cac7e7..00000000 --- a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$7.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$8.class b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$8.class Binary files differdeleted file mode 100644 index c742cf3c..00000000 --- a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$8.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$9.class b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$9.class Binary files differdeleted file mode 100644 index 193a25de..00000000 --- a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$9.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/intro/MainMenue_GUI.class b/Dozentenmodul/bin/gui/intro/MainMenue_GUI.class Binary files differdeleted file mode 100644 index 1f61a168..00000000 --- a/Dozentenmodul/bin/gui/intro/MainMenue_GUI.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/intro/VmWareLink_GUI$1.class b/Dozentenmodul/bin/gui/intro/VmWareLink_GUI$1.class Binary files differdeleted file mode 100644 index 091931f8..00000000 --- a/Dozentenmodul/bin/gui/intro/VmWareLink_GUI$1.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/intro/VmWareLink_GUI.class b/Dozentenmodul/bin/gui/intro/VmWareLink_GUI.class Binary files differdeleted file mode 100644 index 27406089..00000000 --- a/Dozentenmodul/bin/gui/intro/VmWareLink_GUI.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI.class b/Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI.class Binary files differdeleted file mode 100644 index 45526d36..00000000 --- a/Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/lecture/EditLectureAllgemein_GUI.class b/Dozentenmodul/bin/gui/lecture/EditLectureAllgemein_GUI.class Binary files differdeleted file mode 100644 index 1ff0d787..00000000 --- a/Dozentenmodul/bin/gui/lecture/EditLectureAllgemein_GUI.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI$1.class b/Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI$1.class Binary files differdeleted file mode 100644 index 962df75f..00000000 --- a/Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI$1.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI$2.class b/Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI$2.class Binary files differdeleted file mode 100644 index 07e7e8cf..00000000 --- a/Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI$2.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI$3.class b/Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI$3.class Binary files differdeleted file mode 100644 index 173ab342..00000000 --- a/Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI$3.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI.class b/Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI.class Binary files differdeleted file mode 100644 index ed5b0b25..00000000 --- a/Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI.class +++ /dev/null diff --git a/Dozentenmodul/bin/models/SessionData.class b/Dozentenmodul/bin/models/SessionData.class Binary files differdeleted file mode 100644 index 0718956c..00000000 --- a/Dozentenmodul/bin/models/SessionData.class +++ /dev/null diff --git a/Dozentenmodul/bin/models/user.class b/Dozentenmodul/bin/models/user.class Binary files differdeleted file mode 100644 index cd274e48..00000000 --- a/Dozentenmodul/bin/models/user.class +++ /dev/null diff --git a/Dozentenmodul/bin/org.eclipse.core.resources.prefs b/Dozentenmodul/bin/org.eclipse.core.resources.prefs deleted file mode 100644 index 61583c81..00000000 --- a/Dozentenmodul/bin/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -encoding//src/gui/lecture/EditLectureAllgemein_GUI.java=UTF-8 diff --git a/Dozentenmodul/bin/org.eclipse.jdt.core.prefs b/Dozentenmodul/bin/org.eclipse.jdt.core.prefs deleted file mode 100644 index 838bd9d6..00000000 --- a/Dozentenmodul/bin/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,11 +0,0 @@ -eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.7
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.7
diff --git a/Dozentenmodul/bin/org/eclipse/wb/swt/SWTResourceManager.class b/Dozentenmodul/bin/org/eclipse/wb/swt/SWTResourceManager.class Binary files differdeleted file mode 100644 index 32758ea9..00000000 --- a/Dozentenmodul/bin/org/eclipse/wb/swt/SWTResourceManager.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/AuthenticationError.class b/Dozentenmodul/bin/thrift/AuthenticationError.class Binary files differdeleted file mode 100644 index 8f12237d..00000000 --- a/Dozentenmodul/bin/thrift/AuthenticationError.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/AuthenticationException$AuthenticationExceptionStandardScheme.class b/Dozentenmodul/bin/thrift/AuthenticationException$AuthenticationExceptionStandardScheme.class Binary files differdeleted file mode 100644 index 6108caf6..00000000 --- a/Dozentenmodul/bin/thrift/AuthenticationException$AuthenticationExceptionStandardScheme.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/AuthenticationException$AuthenticationExceptionStandardSchemeFactory.class b/Dozentenmodul/bin/thrift/AuthenticationException$AuthenticationExceptionStandardSchemeFactory.class Binary files differdeleted file mode 100644 index ed3b0b62..00000000 --- a/Dozentenmodul/bin/thrift/AuthenticationException$AuthenticationExceptionStandardSchemeFactory.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/AuthenticationException$AuthenticationExceptionTupleScheme.class b/Dozentenmodul/bin/thrift/AuthenticationException$AuthenticationExceptionTupleScheme.class Binary files differdeleted file mode 100644 index 2ae1e4f8..00000000 --- a/Dozentenmodul/bin/thrift/AuthenticationException$AuthenticationExceptionTupleScheme.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/AuthenticationException$AuthenticationExceptionTupleSchemeFactory.class b/Dozentenmodul/bin/thrift/AuthenticationException$AuthenticationExceptionTupleSchemeFactory.class Binary files differdeleted file mode 100644 index 662f2f37..00000000 --- a/Dozentenmodul/bin/thrift/AuthenticationException$AuthenticationExceptionTupleSchemeFactory.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/AuthenticationException$_Fields.class b/Dozentenmodul/bin/thrift/AuthenticationException$_Fields.class Binary files differdeleted file mode 100644 index 21b0acfc..00000000 --- a/Dozentenmodul/bin/thrift/AuthenticationException$_Fields.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/AuthenticationException.class b/Dozentenmodul/bin/thrift/AuthenticationException.class Binary files differdeleted file mode 100644 index de2ec118..00000000 --- a/Dozentenmodul/bin/thrift/AuthenticationException.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/AuthorizationError.class b/Dozentenmodul/bin/thrift/AuthorizationError.class Binary files differdeleted file mode 100644 index b05d13c5..00000000 --- a/Dozentenmodul/bin/thrift/AuthorizationError.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/AuthorizationException$AuthorizationExceptionStandardScheme.class b/Dozentenmodul/bin/thrift/AuthorizationException$AuthorizationExceptionStandardScheme.class Binary files differdeleted file mode 100644 index 978243e1..00000000 --- a/Dozentenmodul/bin/thrift/AuthorizationException$AuthorizationExceptionStandardScheme.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/AuthorizationException$AuthorizationExceptionStandardSchemeFactory.class b/Dozentenmodul/bin/thrift/AuthorizationException$AuthorizationExceptionStandardSchemeFactory.class Binary files differdeleted file mode 100644 index 9186486d..00000000 --- a/Dozentenmodul/bin/thrift/AuthorizationException$AuthorizationExceptionStandardSchemeFactory.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/AuthorizationException$AuthorizationExceptionTupleScheme.class b/Dozentenmodul/bin/thrift/AuthorizationException$AuthorizationExceptionTupleScheme.class Binary files differdeleted file mode 100644 index 7b0fcbe6..00000000 --- a/Dozentenmodul/bin/thrift/AuthorizationException$AuthorizationExceptionTupleScheme.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/AuthorizationException$AuthorizationExceptionTupleSchemeFactory.class b/Dozentenmodul/bin/thrift/AuthorizationException$AuthorizationExceptionTupleSchemeFactory.class Binary files differdeleted file mode 100644 index 40ca68dc..00000000 --- a/Dozentenmodul/bin/thrift/AuthorizationException$AuthorizationExceptionTupleSchemeFactory.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/AuthorizationException$_Fields.class b/Dozentenmodul/bin/thrift/AuthorizationException$_Fields.class Binary files differdeleted file mode 100644 index ff62ea72..00000000 --- a/Dozentenmodul/bin/thrift/AuthorizationException$_Fields.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/AuthorizationException.class b/Dozentenmodul/bin/thrift/AuthorizationException.class Binary files differdeleted file mode 100644 index 9ec46927..00000000 --- a/Dozentenmodul/bin/thrift/AuthorizationException.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$AsyncClient$Factory.class b/Dozentenmodul/bin/thrift/ImageServer$AsyncClient$Factory.class Binary files differdeleted file mode 100644 index c7f71131..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$AsyncClient$Factory.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$AsyncClient$authenticate_call.class b/Dozentenmodul/bin/thrift/ImageServer$AsyncClient$authenticate_call.class Binary files differdeleted file mode 100644 index fb117af1..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$AsyncClient$authenticate_call.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$AsyncClient$getUserFromToken_call.class b/Dozentenmodul/bin/thrift/ImageServer$AsyncClient$getUserFromToken_call.class Binary files differdeleted file mode 100644 index 43a434ad..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$AsyncClient$getUserFromToken_call.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$AsyncClient$ping_call.class b/Dozentenmodul/bin/thrift/ImageServer$AsyncClient$ping_call.class Binary files differdeleted file mode 100644 index 6ebc2ea3..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$AsyncClient$ping_call.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$AsyncClient.class b/Dozentenmodul/bin/thrift/ImageServer$AsyncClient.class Binary files differdeleted file mode 100644 index 1d34c1e2..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$AsyncClient.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$AsyncIface.class b/Dozentenmodul/bin/thrift/ImageServer$AsyncIface.class Binary files differdeleted file mode 100644 index e28e8f90..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$AsyncIface.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$authenticate$1.class b/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$authenticate$1.class Binary files differdeleted file mode 100644 index 3dadf0b7..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$authenticate$1.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$authenticate.class b/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$authenticate.class Binary files differdeleted file mode 100644 index a02237d2..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$authenticate.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$getUserFromToken$1.class b/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$getUserFromToken$1.class Binary files differdeleted file mode 100644 index 8bd8bacf..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$getUserFromToken$1.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$getUserFromToken.class b/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$getUserFromToken.class Binary files differdeleted file mode 100644 index 2b4fe03d..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$getUserFromToken.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$ping$1.class b/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$ping$1.class Binary files differdeleted file mode 100644 index 9dc81f2a..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$ping$1.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$ping.class b/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$ping.class Binary files differdeleted file mode 100644 index 4b4e0afe..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor$ping.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor.class b/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor.class Binary files differdeleted file mode 100644 index 9bd05794..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$AsyncProcessor.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$Client$Factory.class b/Dozentenmodul/bin/thrift/ImageServer$Client$Factory.class Binary files differdeleted file mode 100644 index 215621f5..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$Client$Factory.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$Client.class b/Dozentenmodul/bin/thrift/ImageServer$Client.class Binary files differdeleted file mode 100644 index d8ecb8b8..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$Client.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$Iface.class b/Dozentenmodul/bin/thrift/ImageServer$Iface.class Binary files differdeleted file mode 100644 index 18aec242..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$Iface.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$Processor$authenticate.class b/Dozentenmodul/bin/thrift/ImageServer$Processor$authenticate.class Binary files differdeleted file mode 100644 index 1a1f939e..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$Processor$authenticate.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$Processor$getUserFromToken.class b/Dozentenmodul/bin/thrift/ImageServer$Processor$getUserFromToken.class Binary files differdeleted file mode 100644 index eba9943e..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$Processor$getUserFromToken.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$Processor$ping.class b/Dozentenmodul/bin/thrift/ImageServer$Processor$ping.class Binary files differdeleted file mode 100644 index a3dd6c8f..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$Processor$ping.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$Processor.class b/Dozentenmodul/bin/thrift/ImageServer$Processor.class Binary files differdeleted file mode 100644 index 26f96272..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$Processor.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$authenticate_args$_Fields.class b/Dozentenmodul/bin/thrift/ImageServer$authenticate_args$_Fields.class Binary files differdeleted file mode 100644 index a8cd4f66..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$authenticate_args$_Fields.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$authenticate_args$authenticate_argsStandardScheme.class b/Dozentenmodul/bin/thrift/ImageServer$authenticate_args$authenticate_argsStandardScheme.class Binary files differdeleted file mode 100644 index 29e03256..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$authenticate_args$authenticate_argsStandardScheme.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$authenticate_args$authenticate_argsStandardSchemeFactory.class b/Dozentenmodul/bin/thrift/ImageServer$authenticate_args$authenticate_argsStandardSchemeFactory.class Binary files differdeleted file mode 100644 index d20ee8b2..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$authenticate_args$authenticate_argsStandardSchemeFactory.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$authenticate_args$authenticate_argsTupleScheme.class b/Dozentenmodul/bin/thrift/ImageServer$authenticate_args$authenticate_argsTupleScheme.class Binary files differdeleted file mode 100644 index 58d1374e..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$authenticate_args$authenticate_argsTupleScheme.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$authenticate_args$authenticate_argsTupleSchemeFactory.class b/Dozentenmodul/bin/thrift/ImageServer$authenticate_args$authenticate_argsTupleSchemeFactory.class Binary files differdeleted file mode 100644 index 4429e284..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$authenticate_args$authenticate_argsTupleSchemeFactory.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$authenticate_args.class b/Dozentenmodul/bin/thrift/ImageServer$authenticate_args.class Binary files differdeleted file mode 100644 index a92fb3e9..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$authenticate_args.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$authenticate_result$_Fields.class b/Dozentenmodul/bin/thrift/ImageServer$authenticate_result$_Fields.class Binary files differdeleted file mode 100644 index 9fcb0a6e..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$authenticate_result$_Fields.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$authenticate_result$authenticate_resultStandardScheme.class b/Dozentenmodul/bin/thrift/ImageServer$authenticate_result$authenticate_resultStandardScheme.class Binary files differdeleted file mode 100644 index b1243414..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$authenticate_result$authenticate_resultStandardScheme.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$authenticate_result$authenticate_resultStandardSchemeFactory.class b/Dozentenmodul/bin/thrift/ImageServer$authenticate_result$authenticate_resultStandardSchemeFactory.class Binary files differdeleted file mode 100644 index 1c507ea2..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$authenticate_result$authenticate_resultStandardSchemeFactory.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$authenticate_result$authenticate_resultTupleScheme.class b/Dozentenmodul/bin/thrift/ImageServer$authenticate_result$authenticate_resultTupleScheme.class Binary files differdeleted file mode 100644 index 4a3edda6..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$authenticate_result$authenticate_resultTupleScheme.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$authenticate_result$authenticate_resultTupleSchemeFactory.class b/Dozentenmodul/bin/thrift/ImageServer$authenticate_result$authenticate_resultTupleSchemeFactory.class Binary files differdeleted file mode 100644 index c82d6354..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$authenticate_result$authenticate_resultTupleSchemeFactory.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$authenticate_result.class b/Dozentenmodul/bin/thrift/ImageServer$authenticate_result.class Binary files differdeleted file mode 100644 index db12a9f8..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$authenticate_result.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args$_Fields.class b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args$_Fields.class Binary files differdeleted file mode 100644 index ad982267..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args$_Fields.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args$getUserFromToken_argsStandardScheme.class b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args$getUserFromToken_argsStandardScheme.class Binary files differdeleted file mode 100644 index 9b24fe8f..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args$getUserFromToken_argsStandardScheme.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args$getUserFromToken_argsStandardSchemeFactory.class b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args$getUserFromToken_argsStandardSchemeFactory.class Binary files differdeleted file mode 100644 index 8bac7772..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args$getUserFromToken_argsStandardSchemeFactory.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args$getUserFromToken_argsTupleScheme.class b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args$getUserFromToken_argsTupleScheme.class Binary files differdeleted file mode 100644 index 94eb7a5d..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args$getUserFromToken_argsTupleScheme.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args$getUserFromToken_argsTupleSchemeFactory.class b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args$getUserFromToken_argsTupleSchemeFactory.class Binary files differdeleted file mode 100644 index 13e77c2b..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args$getUserFromToken_argsTupleSchemeFactory.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args.class b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args.class Binary files differdeleted file mode 100644 index 90aa2fa1..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_args.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result$_Fields.class b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result$_Fields.class Binary files differdeleted file mode 100644 index f306cf9d..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result$_Fields.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result$getUserFromToken_resultStandardScheme.class b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result$getUserFromToken_resultStandardScheme.class Binary files differdeleted file mode 100644 index 8ce44766..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result$getUserFromToken_resultStandardScheme.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result$getUserFromToken_resultStandardSchemeFactory.class b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result$getUserFromToken_resultStandardSchemeFactory.class Binary files differdeleted file mode 100644 index 9cb117e7..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result$getUserFromToken_resultStandardSchemeFactory.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result$getUserFromToken_resultTupleScheme.class b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result$getUserFromToken_resultTupleScheme.class Binary files differdeleted file mode 100644 index e9186710..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result$getUserFromToken_resultTupleScheme.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result$getUserFromToken_resultTupleSchemeFactory.class b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result$getUserFromToken_resultTupleSchemeFactory.class Binary files differdeleted file mode 100644 index 1ba83391..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result$getUserFromToken_resultTupleSchemeFactory.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result.class b/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result.class Binary files differdeleted file mode 100644 index bc1a176b..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$getUserFromToken_result.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$ping_args$_Fields.class b/Dozentenmodul/bin/thrift/ImageServer$ping_args$_Fields.class Binary files differdeleted file mode 100644 index af0bbe88..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$ping_args$_Fields.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$ping_args$ping_argsStandardScheme.class b/Dozentenmodul/bin/thrift/ImageServer$ping_args$ping_argsStandardScheme.class Binary files differdeleted file mode 100644 index 2c2f59cf..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$ping_args$ping_argsStandardScheme.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$ping_args$ping_argsStandardSchemeFactory.class b/Dozentenmodul/bin/thrift/ImageServer$ping_args$ping_argsStandardSchemeFactory.class Binary files differdeleted file mode 100644 index 6fc626ef..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$ping_args$ping_argsStandardSchemeFactory.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$ping_args$ping_argsTupleScheme.class b/Dozentenmodul/bin/thrift/ImageServer$ping_args$ping_argsTupleScheme.class Binary files differdeleted file mode 100644 index 822afb2c..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$ping_args$ping_argsTupleScheme.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$ping_args$ping_argsTupleSchemeFactory.class b/Dozentenmodul/bin/thrift/ImageServer$ping_args$ping_argsTupleSchemeFactory.class Binary files differdeleted file mode 100644 index 7b2dc61c..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$ping_args$ping_argsTupleSchemeFactory.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$ping_args.class b/Dozentenmodul/bin/thrift/ImageServer$ping_args.class Binary files differdeleted file mode 100644 index 72a484fb..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$ping_args.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$ping_result$_Fields.class b/Dozentenmodul/bin/thrift/ImageServer$ping_result$_Fields.class Binary files differdeleted file mode 100644 index 6af85a25..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$ping_result$_Fields.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$ping_result$ping_resultStandardScheme.class b/Dozentenmodul/bin/thrift/ImageServer$ping_result$ping_resultStandardScheme.class Binary files differdeleted file mode 100644 index 311b5c76..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$ping_result$ping_resultStandardScheme.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$ping_result$ping_resultStandardSchemeFactory.class b/Dozentenmodul/bin/thrift/ImageServer$ping_result$ping_resultStandardSchemeFactory.class Binary files differdeleted file mode 100644 index 77ed53ce..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$ping_result$ping_resultStandardSchemeFactory.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$ping_result$ping_resultTupleScheme.class b/Dozentenmodul/bin/thrift/ImageServer$ping_result$ping_resultTupleScheme.class Binary files differdeleted file mode 100644 index eb11e143..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$ping_result$ping_resultTupleScheme.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$ping_result$ping_resultTupleSchemeFactory.class b/Dozentenmodul/bin/thrift/ImageServer$ping_result$ping_resultTupleSchemeFactory.class Binary files differdeleted file mode 100644 index 95803bc3..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$ping_result$ping_resultTupleSchemeFactory.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer$ping_result.class b/Dozentenmodul/bin/thrift/ImageServer$ping_result.class Binary files differdeleted file mode 100644 index eb20bac5..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer$ping_result.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ImageServer.class b/Dozentenmodul/bin/thrift/ImageServer.class Binary files differdeleted file mode 100644 index 414f9a34..00000000 --- a/Dozentenmodul/bin/thrift/ImageServer.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/InvalidTokenException$InvalidTokenExceptionStandardScheme.class b/Dozentenmodul/bin/thrift/InvalidTokenException$InvalidTokenExceptionStandardScheme.class Binary files differdeleted file mode 100644 index 8336b756..00000000 --- a/Dozentenmodul/bin/thrift/InvalidTokenException$InvalidTokenExceptionStandardScheme.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/InvalidTokenException$InvalidTokenExceptionStandardSchemeFactory.class b/Dozentenmodul/bin/thrift/InvalidTokenException$InvalidTokenExceptionStandardSchemeFactory.class Binary files differdeleted file mode 100644 index 603e663a..00000000 --- a/Dozentenmodul/bin/thrift/InvalidTokenException$InvalidTokenExceptionStandardSchemeFactory.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/InvalidTokenException$InvalidTokenExceptionTupleScheme.class b/Dozentenmodul/bin/thrift/InvalidTokenException$InvalidTokenExceptionTupleScheme.class Binary files differdeleted file mode 100644 index cbce816c..00000000 --- a/Dozentenmodul/bin/thrift/InvalidTokenException$InvalidTokenExceptionTupleScheme.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/InvalidTokenException$InvalidTokenExceptionTupleSchemeFactory.class b/Dozentenmodul/bin/thrift/InvalidTokenException$InvalidTokenExceptionTupleSchemeFactory.class Binary files differdeleted file mode 100644 index 0286db6c..00000000 --- a/Dozentenmodul/bin/thrift/InvalidTokenException$InvalidTokenExceptionTupleSchemeFactory.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/InvalidTokenException$_Fields.class b/Dozentenmodul/bin/thrift/InvalidTokenException$_Fields.class Binary files differdeleted file mode 100644 index a93a93a8..00000000 --- a/Dozentenmodul/bin/thrift/InvalidTokenException$_Fields.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/InvalidTokenException.class b/Dozentenmodul/bin/thrift/InvalidTokenException.class Binary files differdeleted file mode 100644 index 317b760c..00000000 --- a/Dozentenmodul/bin/thrift/InvalidTokenException.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/MasterThriftConnection.class b/Dozentenmodul/bin/thrift/MasterThriftConnection.class Binary files differdeleted file mode 100644 index 8229138f..00000000 --- a/Dozentenmodul/bin/thrift/MasterThriftConnection.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/SessionData$SessionDataStandardScheme.class b/Dozentenmodul/bin/thrift/SessionData$SessionDataStandardScheme.class Binary files differdeleted file mode 100644 index 06cd5a25..00000000 --- a/Dozentenmodul/bin/thrift/SessionData$SessionDataStandardScheme.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/SessionData$SessionDataStandardSchemeFactory.class b/Dozentenmodul/bin/thrift/SessionData$SessionDataStandardSchemeFactory.class Binary files differdeleted file mode 100644 index d41ac16a..00000000 --- a/Dozentenmodul/bin/thrift/SessionData$SessionDataStandardSchemeFactory.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/SessionData$SessionDataTupleScheme.class b/Dozentenmodul/bin/thrift/SessionData$SessionDataTupleScheme.class Binary files differdeleted file mode 100644 index f17400c1..00000000 --- a/Dozentenmodul/bin/thrift/SessionData$SessionDataTupleScheme.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/SessionData$SessionDataTupleSchemeFactory.class b/Dozentenmodul/bin/thrift/SessionData$SessionDataTupleSchemeFactory.class Binary files differdeleted file mode 100644 index f4f8424d..00000000 --- a/Dozentenmodul/bin/thrift/SessionData$SessionDataTupleSchemeFactory.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/SessionData$_Fields.class b/Dozentenmodul/bin/thrift/SessionData$_Fields.class Binary files differdeleted file mode 100644 index 56fd12f4..00000000 --- a/Dozentenmodul/bin/thrift/SessionData$_Fields.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/SessionData.class b/Dozentenmodul/bin/thrift/SessionData.class Binary files differdeleted file mode 100644 index c1156dff..00000000 --- a/Dozentenmodul/bin/thrift/SessionData.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/ThriftConnection.class b/Dozentenmodul/bin/thrift/ThriftConnection.class Binary files differdeleted file mode 100644 index 290acaad..00000000 --- a/Dozentenmodul/bin/thrift/ThriftConnection.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/UserInfo$UserInfoStandardScheme.class b/Dozentenmodul/bin/thrift/UserInfo$UserInfoStandardScheme.class Binary files differdeleted file mode 100644 index c4a055f7..00000000 --- a/Dozentenmodul/bin/thrift/UserInfo$UserInfoStandardScheme.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/UserInfo$UserInfoStandardSchemeFactory.class b/Dozentenmodul/bin/thrift/UserInfo$UserInfoStandardSchemeFactory.class Binary files differdeleted file mode 100644 index ff60ded1..00000000 --- a/Dozentenmodul/bin/thrift/UserInfo$UserInfoStandardSchemeFactory.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/UserInfo$UserInfoTupleScheme.class b/Dozentenmodul/bin/thrift/UserInfo$UserInfoTupleScheme.class Binary files differdeleted file mode 100644 index 1d717010..00000000 --- a/Dozentenmodul/bin/thrift/UserInfo$UserInfoTupleScheme.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/UserInfo$UserInfoTupleSchemeFactory.class b/Dozentenmodul/bin/thrift/UserInfo$UserInfoTupleSchemeFactory.class Binary files differdeleted file mode 100644 index adf2a51e..00000000 --- a/Dozentenmodul/bin/thrift/UserInfo$UserInfoTupleSchemeFactory.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/UserInfo$_Fields.class b/Dozentenmodul/bin/thrift/UserInfo$_Fields.class Binary files differdeleted file mode 100644 index 3bff9fe0..00000000 --- a/Dozentenmodul/bin/thrift/UserInfo$_Fields.class +++ /dev/null diff --git a/Dozentenmodul/bin/thrift/UserInfo.class b/Dozentenmodul/bin/thrift/UserInfo.class Binary files differdeleted file mode 100644 index ed7e6f12..00000000 --- a/Dozentenmodul/bin/thrift/UserInfo.class +++ /dev/null diff --git a/Dozentenmodul/pom.xml b/Dozentenmodul/pom.xml new file mode 100644 index 00000000..02ab3756 --- /dev/null +++ b/Dozentenmodul/pom.xml @@ -0,0 +1,183 @@ +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <groupId>bwlehrpool</groupId> + <artifactId>dmc</artifactId> + <version>1.0-SNAPSHOT</version> + <packaging>jar</packaging> + + <name>DozMod-Client</name> + <url>http://maven.apache.org</url> + + <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + </properties> + + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <version>3.1</version> + <configuration> + <source>1.7</source> + <target>1.7</target> + </configuration> + </plugin> + <plugin> + <artifactId>maven-assembly-plugin</artifactId> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>single</goal> + </goals> + </execution> + </executions> + <configuration> + <archive> + <manifest> + <mainClass>gui.intro.Login_GUI</mainClass> + </manifest> + </archive> + <descriptorRefs> + <descriptorRef>jar-with-dependencies</descriptorRef> + </descriptorRefs> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-shade-plugin</artifactId> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>shade</goal> + </goals> + <configuration> + <minimizeJar>true</minimizeJar> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + + <profiles> + <profile> + <id>mac</id> + <activation> + <os> + <name>mac os x</name> + </os> + </activation> + <properties> + <swt.groupId>org.eclipse.swt.carbon</swt.groupId> + <swt.artifactId>macosx</swt.artifactId> + </properties> + </profile> + <profile> + <id>windows</id> + <activation> + <os> + <family>windows</family> + </os> + </activation> + <properties> + <swt.groupId>org.eclipse.swt.win32.win32</swt.groupId> + <swt.artifactId>x86</swt.artifactId> + </properties> + </profile> + <profile> + <id>linux_64</id> + <activation> + <os> + <name>linux</name> + <arch>amd64</arch> + </os> + </activation> + <properties> + <swt.groupId>org.eclipse.swt.org.eclipse.swt.gtk.linux.x86_64.4.3.swt</swt.groupId> + <swt.artifactId>org.eclipse.swt.gtk.linux.x86_64</swt.artifactId> + <!--swt.groupId>org.eclipse.swt.gtk.linux</swt.groupId> + <swt.artifactId>x86_64</swt.artifactId--> + </properties> + </profile> + </profiles> + + <dependencies> + <dependency> + <groupId>org.apache.thrift</groupId> + <artifactId>libthrift</artifactId> + <version>0.9.1</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>commons-io</groupId> + <artifactId>commons-io</artifactId> + <version>2.4</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>commons-net</groupId> + <artifactId>commons-net</artifactId> + <version>3.3</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>com.toedter</groupId> + <artifactId>jcalendar</artifactId> + <version>1.4</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>net.sourceforge.jdatepicker</groupId> + <artifactId>jdatepicker</artifactId> + <version>1.3.2</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>${swt.groupId}</groupId> + <artifactId>${swt.artifactId}</artifactId> + <version>4.3</version> + <!--version>3.3.0-v3346</version--> + </dependency> + <dependency> + <groupId>log4j</groupId> + <artifactId>log4j</artifactId> + <version>1.2.17</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.ini4j</groupId> + <artifactId>ini4j</artifactId> + <version>0.5.2</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>slf4j-log4j12</artifactId> + <version>1.5.8</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.openslx.bwlp</groupId> + <artifactId>master-sync-shared</artifactId> + <version>1.0-SNAPSHOT</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>bwlehrpool</groupId> + <artifactId>dms</artifactId> + <version>1.0-SNAPSHOT</version> + </dependency> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.1</version> + <scope>test</scope> + </dependency> + </dependencies> +</project> + diff --git a/Dozentenmodul/src/auth/Authentification.java b/Dozentenmodul/src/main/java/auth/Authentification.java index 41f69502..41f69502 100644 --- a/Dozentenmodul/src/auth/Authentification.java +++ b/Dozentenmodul/src/main/java/auth/Authentification.java diff --git a/Dozentenmodul/src/config/config_file.java b/Dozentenmodul/src/main/java/config/config_file.java index 5d59e22a..5d59e22a 100644 --- a/Dozentenmodul/src/config/config_file.java +++ b/Dozentenmodul/src/main/java/config/config_file.java diff --git a/Dozentenmodul/src/ftp/DownloadTask.java b/Dozentenmodul/src/main/java/ftp/DownloadTask.java index 83ad2c15..83ad2c15 100644 --- a/Dozentenmodul/src/ftp/DownloadTask.java +++ b/Dozentenmodul/src/main/java/ftp/DownloadTask.java diff --git a/Dozentenmodul/src/ftp/FTPException.java b/Dozentenmodul/src/main/java/ftp/FTPException.java index bc3193e0..bc3193e0 100644 --- a/Dozentenmodul/src/ftp/FTPException.java +++ b/Dozentenmodul/src/main/java/ftp/FTPException.java diff --git a/Dozentenmodul/src/ftp/FTPUtility.java b/Dozentenmodul/src/main/java/ftp/FTPUtility.java index f2c51dfc..f2c51dfc 100644 --- a/Dozentenmodul/src/ftp/FTPUtility.java +++ b/Dozentenmodul/src/main/java/ftp/FTPUtility.java diff --git a/Dozentenmodul/src/ftp/UploadTask.java b/Dozentenmodul/src/main/java/ftp/UploadTask.java index 06d76dc8..06d76dc8 100644 --- a/Dozentenmodul/src/ftp/UploadTask.java +++ b/Dozentenmodul/src/main/java/ftp/UploadTask.java diff --git a/Dozentenmodul/src/gui/image/CreateImageAllgemein_GUI.java b/Dozentenmodul/src/main/java/gui/image/CreateImageAllgemein_GUI.java index 6231c6f2..6231c6f2 100644 --- a/Dozentenmodul/src/gui/image/CreateImageAllgemein_GUI.java +++ b/Dozentenmodul/src/main/java/gui/image/CreateImageAllgemein_GUI.java diff --git a/Dozentenmodul/src/gui/image/CreateImageFreigabe_GUI.java b/Dozentenmodul/src/main/java/gui/image/CreateImageFreigabe_GUI.java index ec50440f..ec50440f 100644 --- a/Dozentenmodul/src/gui/image/CreateImageFreigabe_GUI.java +++ b/Dozentenmodul/src/main/java/gui/image/CreateImageFreigabe_GUI.java diff --git a/Dozentenmodul/src/gui/image/CreateImageTechnisch_GUI.java b/Dozentenmodul/src/main/java/gui/image/CreateImageTechnisch_GUI.java index 34594f3d..34594f3d 100644 --- a/Dozentenmodul/src/gui/image/CreateImageTechnisch_GUI.java +++ b/Dozentenmodul/src/main/java/gui/image/CreateImageTechnisch_GUI.java diff --git a/Dozentenmodul/src/gui/image/DeleteImage_GUI.java b/Dozentenmodul/src/main/java/gui/image/DeleteImage_GUI.java index 67084a75..67084a75 100644 --- a/Dozentenmodul/src/gui/image/DeleteImage_GUI.java +++ b/Dozentenmodul/src/main/java/gui/image/DeleteImage_GUI.java diff --git a/Dozentenmodul/src/gui/image/EditImageAllgemein_GUI.java b/Dozentenmodul/src/main/java/gui/image/EditImageAllgemein_GUI.java index 47837c22..47837c22 100644 --- a/Dozentenmodul/src/gui/image/EditImageAllgemein_GUI.java +++ b/Dozentenmodul/src/main/java/gui/image/EditImageAllgemein_GUI.java diff --git a/Dozentenmodul/src/gui/image/EditImageFreigabe_GUI.java b/Dozentenmodul/src/main/java/gui/image/EditImageFreigabe_GUI.java index e28b774b..e28b774b 100644 --- a/Dozentenmodul/src/gui/image/EditImageFreigabe_GUI.java +++ b/Dozentenmodul/src/main/java/gui/image/EditImageFreigabe_GUI.java diff --git a/Dozentenmodul/src/gui/image/EditImageTechnisch_GUI.java b/Dozentenmodul/src/main/java/gui/image/EditImageTechnisch_GUI.java index 825292c2..825292c2 100644 --- a/Dozentenmodul/src/gui/image/EditImageTechnisch_GUI.java +++ b/Dozentenmodul/src/main/java/gui/image/EditImageTechnisch_GUI.java diff --git a/Dozentenmodul/src/gui/image/FTPCreateUploader_GUI.java b/Dozentenmodul/src/main/java/gui/image/FTPCreateUploader_GUI.java index b850ccb2..b850ccb2 100644 --- a/Dozentenmodul/src/gui/image/FTPCreateUploader_GUI.java +++ b/Dozentenmodul/src/main/java/gui/image/FTPCreateUploader_GUI.java diff --git a/Dozentenmodul/src/gui/image/FTPDownloader_GUI.java b/Dozentenmodul/src/main/java/gui/image/FTPDownloader_GUI.java index d21da67e..d21da67e 100644 --- a/Dozentenmodul/src/gui/image/FTPDownloader_GUI.java +++ b/Dozentenmodul/src/main/java/gui/image/FTPDownloader_GUI.java diff --git a/Dozentenmodul/src/gui/image/FTPEditUploader_GUI.java b/Dozentenmodul/src/main/java/gui/image/FTPEditUploader_GUI.java index a2123712..a2123712 100644 --- a/Dozentenmodul/src/gui/image/FTPEditUploader_GUI.java +++ b/Dozentenmodul/src/main/java/gui/image/FTPEditUploader_GUI.java diff --git a/Dozentenmodul/src/gui/image/SearchEditImage_GUI.java b/Dozentenmodul/src/main/java/gui/image/SearchEditImage_GUI.java index 58fba9e7..58fba9e7 100644 --- a/Dozentenmodul/src/gui/image/SearchEditImage_GUI.java +++ b/Dozentenmodul/src/main/java/gui/image/SearchEditImage_GUI.java diff --git a/Dozentenmodul/src/gui/image/SearchImage_GUI.java b/Dozentenmodul/src/main/java/gui/image/SearchImage_GUI.java index ef8b75bb..ef8b75bb 100644 --- a/Dozentenmodul/src/gui/image/SearchImage_GUI.java +++ b/Dozentenmodul/src/main/java/gui/image/SearchImage_GUI.java diff --git a/Dozentenmodul/src/gui/image/SearchMethodLecture_GUI.java b/Dozentenmodul/src/main/java/gui/image/SearchMethodLecture_GUI.java index 4eda36f0..4eda36f0 100644 --- a/Dozentenmodul/src/gui/image/SearchMethodLecture_GUI.java +++ b/Dozentenmodul/src/main/java/gui/image/SearchMethodLecture_GUI.java diff --git a/Dozentenmodul/src/gui/intro/About_GUI.java b/Dozentenmodul/src/main/java/gui/intro/About_GUI.java index 447f18ee..447f18ee 100644 --- a/Dozentenmodul/src/gui/intro/About_GUI.java +++ b/Dozentenmodul/src/main/java/gui/intro/About_GUI.java diff --git a/Dozentenmodul/src/gui/intro/BillOfRights_GUI.java b/Dozentenmodul/src/main/java/gui/intro/BillOfRights_GUI.java index 21d15d40..21d15d40 100644 --- a/Dozentenmodul/src/gui/intro/BillOfRights_GUI.java +++ b/Dozentenmodul/src/main/java/gui/intro/BillOfRights_GUI.java diff --git a/Dozentenmodul/src/gui/intro/Login_GUI.java b/Dozentenmodul/src/main/java/gui/intro/Login_GUI.java index 06a87307..06a87307 100644 --- a/Dozentenmodul/src/gui/intro/Login_GUI.java +++ b/Dozentenmodul/src/main/java/gui/intro/Login_GUI.java diff --git a/Dozentenmodul/src/gui/intro/MainMenue_GUI.java b/Dozentenmodul/src/main/java/gui/intro/MainMenue_GUI.java index 2954ca3b..2954ca3b 100644 --- a/Dozentenmodul/src/gui/intro/MainMenue_GUI.java +++ b/Dozentenmodul/src/main/java/gui/intro/MainMenue_GUI.java diff --git a/Dozentenmodul/src/gui/intro/VmWareLink_GUI.java b/Dozentenmodul/src/main/java/gui/intro/VmWareLink_GUI.java index 87c6b2a2..87c6b2a2 100644 --- a/Dozentenmodul/src/gui/intro/VmWareLink_GUI.java +++ b/Dozentenmodul/src/main/java/gui/intro/VmWareLink_GUI.java diff --git a/Dozentenmodul/src/gui/lecture/CreateLectureAllgemein_GUI.java b/Dozentenmodul/src/main/java/gui/lecture/CreateLectureAllgemein_GUI.java index 44e8bd50..44e8bd50 100644 --- a/Dozentenmodul/src/gui/lecture/CreateLectureAllgemein_GUI.java +++ b/Dozentenmodul/src/main/java/gui/lecture/CreateLectureAllgemein_GUI.java diff --git a/Dozentenmodul/src/gui/lecture/CreateLectureLink_GUI.java b/Dozentenmodul/src/main/java/gui/lecture/CreateLectureLink_GUI.java index 0a00e781..0a00e781 100644 --- a/Dozentenmodul/src/gui/lecture/CreateLectureLink_GUI.java +++ b/Dozentenmodul/src/main/java/gui/lecture/CreateLectureLink_GUI.java diff --git a/Dozentenmodul/src/gui/lecture/DeleteLecture_GUI.java b/Dozentenmodul/src/main/java/gui/lecture/DeleteLecture_GUI.java index c638e440..c638e440 100644 --- a/Dozentenmodul/src/gui/lecture/DeleteLecture_GUI.java +++ b/Dozentenmodul/src/main/java/gui/lecture/DeleteLecture_GUI.java diff --git a/Dozentenmodul/src/gui/lecture/EditLectureAllgemein_GUI.java b/Dozentenmodul/src/main/java/gui/lecture/EditLectureAllgemein_GUI.java index b72efce9..b72efce9 100644 --- a/Dozentenmodul/src/gui/lecture/EditLectureAllgemein_GUI.java +++ b/Dozentenmodul/src/main/java/gui/lecture/EditLectureAllgemein_GUI.java diff --git a/Dozentenmodul/src/gui/lecture/EditLectureLink_GUI.java b/Dozentenmodul/src/main/java/gui/lecture/EditLectureLink_GUI.java index f7b38b06..f7b38b06 100644 --- a/Dozentenmodul/src/gui/lecture/EditLectureLink_GUI.java +++ b/Dozentenmodul/src/main/java/gui/lecture/EditLectureLink_GUI.java diff --git a/Dozentenmodul/src/gui/lecture/EditLectureSearch_GUI.java b/Dozentenmodul/src/main/java/gui/lecture/EditLectureSearch_GUI.java index 58329ae2..58329ae2 100644 --- a/Dozentenmodul/src/gui/lecture/EditLectureSearch_GUI.java +++ b/Dozentenmodul/src/main/java/gui/lecture/EditLectureSearch_GUI.java diff --git a/Dozentenmodul/src/gui/lecture/ExtendedSearchForImages_GUI.java b/Dozentenmodul/src/main/java/gui/lecture/ExtendedSearchForImages_GUI.java index 579ea3bd..579ea3bd 100644 --- a/Dozentenmodul/src/gui/lecture/ExtendedSearchForImages_GUI.java +++ b/Dozentenmodul/src/main/java/gui/lecture/ExtendedSearchForImages_GUI.java diff --git a/Dozentenmodul/src/gui/lecture/SearchLecture_GUI.java b/Dozentenmodul/src/main/java/gui/lecture/SearchLecture_GUI.java index 6035ebf5..6035ebf5 100644 --- a/Dozentenmodul/src/gui/lecture/SearchLecture_GUI.java +++ b/Dozentenmodul/src/main/java/gui/lecture/SearchLecture_GUI.java diff --git a/Dozentenmodul/src/models/Client.java b/Dozentenmodul/src/main/java/models/Client.java index 42eccdec..42eccdec 100644 --- a/Dozentenmodul/src/models/Client.java +++ b/Dozentenmodul/src/main/java/models/Client.java diff --git a/Dozentenmodul/src/models/Image.java b/Dozentenmodul/src/main/java/models/Image.java index 86bc1e48..86bc1e48 100644 --- a/Dozentenmodul/src/models/Image.java +++ b/Dozentenmodul/src/main/java/models/Image.java diff --git a/Dozentenmodul/src/models/Lecture.java b/Dozentenmodul/src/main/java/models/Lecture.java index 8f67baba..8f67baba 100644 --- a/Dozentenmodul/src/models/Lecture.java +++ b/Dozentenmodul/src/main/java/models/Lecture.java diff --git a/Dozentenmodul/src/models/Links.java b/Dozentenmodul/src/main/java/models/Links.java index 693fbb3e..693fbb3e 100644 --- a/Dozentenmodul/src/models/Links.java +++ b/Dozentenmodul/src/main/java/models/Links.java diff --git a/Dozentenmodul/src/models/SessionData.java b/Dozentenmodul/src/main/java/models/SessionData.java index 187dc59f..187dc59f 100644 --- a/Dozentenmodul/src/models/SessionData.java +++ b/Dozentenmodul/src/main/java/models/SessionData.java diff --git a/Dozentenmodul/src/models/person.java b/Dozentenmodul/src/main/java/models/person.java index 6e066730..6e066730 100644 --- a/Dozentenmodul/src/models/person.java +++ b/Dozentenmodul/src/main/java/models/person.java diff --git a/Dozentenmodul/src/models/user.java b/Dozentenmodul/src/main/java/models/user.java index 9aa958a4..9aa958a4 100644 --- a/Dozentenmodul/src/models/user.java +++ b/Dozentenmodul/src/main/java/models/user.java diff --git a/Dozentenmodul/src/org/eclipse/wb/swt/SWTResourceManager.java b/Dozentenmodul/src/main/java/org/eclipse/wb/swt/SWTResourceManager.java index 8b6d4cc3..8b6d4cc3 100644 --- a/Dozentenmodul/src/org/eclipse/wb/swt/SWTResourceManager.java +++ b/Dozentenmodul/src/main/java/org/eclipse/wb/swt/SWTResourceManager.java diff --git a/Dozentenmodul/src/thrift/MasterThriftConnection.java b/Dozentenmodul/src/main/java/thrift/MasterThriftConnection.java index 11a27368..11a27368 100644 --- a/Dozentenmodul/src/thrift/MasterThriftConnection.java +++ b/Dozentenmodul/src/main/java/thrift/MasterThriftConnection.java diff --git a/Dozentenmodul/src/thrift/ThriftConnection.java b/Dozentenmodul/src/main/java/thrift/ThriftConnection.java index 3eec5d25..3eec5d25 100644 --- a/Dozentenmodul/src/thrift/ThriftConnection.java +++ b/Dozentenmodul/src/main/java/thrift/ThriftConnection.java diff --git a/Dozentenmodul/src/util/GuiOrganizer.java b/Dozentenmodul/src/main/java/util/GuiOrganizer.java index f03c3811..f03c3811 100644 --- a/Dozentenmodul/src/util/GuiOrganizer.java +++ b/Dozentenmodul/src/main/java/util/GuiOrganizer.java diff --git a/Dozentenmodul/src/util/OpenLinks.java b/Dozentenmodul/src/main/java/util/OpenLinks.java index a3968825..a3968825 100644 --- a/Dozentenmodul/src/util/OpenLinks.java +++ b/Dozentenmodul/src/main/java/util/OpenLinks.java diff --git a/Dozentenmodul/src/test/java/bwlehrpool/AppTest.java b/Dozentenmodul/src/test/java/bwlehrpool/AppTest.java new file mode 100644 index 00000000..ffcdcc2e --- /dev/null +++ b/Dozentenmodul/src/test/java/bwlehrpool/AppTest.java @@ -0,0 +1,38 @@ +package bwlehrpool; + +import junit.framework.Test; +import junit.framework.TestCase; +import junit.framework.TestSuite; + +/** + * Unit test for simple App. + */ +public class AppTest + extends TestCase +{ + /** + * Create the test case + * + * @param testName name of the test case + */ + public AppTest( String testName ) + { + super( testName ); + } + + /** + * @return the suite of tests being tested + */ + public static Test suite() + { + return new TestSuite( AppTest.class ); + } + + /** + * Rigourous Test :-) + */ + public void testApp() + { + assertTrue( true ); + } +} diff --git a/Dozentenmodul/src/thrift/AuthenticationError.java b/Dozentenmodul/src/thrift/AuthenticationError.java deleted file mode 100644 index 7d543832..00000000 --- a/Dozentenmodul/src/thrift/AuthenticationError.java +++ /dev/null @@ -1,51 +0,0 @@ -/** - * Autogenerated by Thrift Compiler (0.9.1) - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -package thrift; - - -import java.util.Map; -import java.util.HashMap; -import org.apache.thrift.TEnum; - -public enum AuthenticationError implements org.apache.thrift.TEnum { - GENERIC_ERROR(0), - INVALID_CREDENTIALS(1), - ACCOUNT_SUSPENDED(2), - BANNED_NETWORK(3); - - private final int value; - - private AuthenticationError(int value) { - this.value = value; - } - - /** - * Get the integer value of this enum value, as defined in the Thrift IDL. - */ - public int getValue() { - return value; - } - - /** - * Find a the enum type by its integer value, as defined in the Thrift IDL. - * @return null if the value is not found. - */ - public static AuthenticationError findByValue(int value) { - switch (value) { - case 0: - return GENERIC_ERROR; - case 1: - return INVALID_CREDENTIALS; - case 2: - return ACCOUNT_SUSPENDED; - case 3: - return BANNED_NETWORK; - default: - return null; - } - } -} diff --git a/Dozentenmodul/src/thrift/AuthenticationException.java b/Dozentenmodul/src/thrift/AuthenticationException.java deleted file mode 100644 index d416cacf..00000000 --- a/Dozentenmodul/src/thrift/AuthenticationException.java +++ /dev/null @@ -1,504 +0,0 @@ -/** - * Autogenerated by Thrift Compiler (0.9.1) - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -package thrift; - -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -public class AuthenticationException extends TException implements org.apache.thrift.TBase<AuthenticationException, AuthenticationException._Fields>, java.io.Serializable, Cloneable, Comparable<AuthenticationException> { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AuthenticationException"); - - private static final org.apache.thrift.protocol.TField NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("number", org.apache.thrift.protocol.TType.I32, (short)1); - private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)2); - - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new AuthenticationExceptionStandardSchemeFactory()); - schemes.put(TupleScheme.class, new AuthenticationExceptionTupleSchemeFactory()); - } - - /** - * - * @see AuthenticationError - */ - public AuthenticationError number; // required - public String message; // required - - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements org.apache.thrift.TFieldIdEnum { - /** - * - * @see AuthenticationError - */ - NUMBER((short)1, "number"), - MESSAGE((short)2, "message"); - - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); - - static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { - byName.put(field.getFieldName(), field); - } - } - - /** - * Find the _Fields constant that matches fieldId, or null if its not found. - */ - public static _Fields findByThriftId(int fieldId) { - switch(fieldId) { - case 1: // NUMBER - return NUMBER; - case 2: // MESSAGE - return MESSAGE; - default: - return null; - } - } - - /** - * Find the _Fields constant that matches fieldId, throwing an exception - * if it is not found. - */ - public static _Fields findByThriftIdOrThrow(int fieldId) { - _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); - return fields; - } - - /** - * Find the _Fields constant that matches name, or null if its not found. - */ - public static _Fields findByName(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.NUMBER, new org.apache.thrift.meta_data.FieldMetaData("number", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, AuthenticationError.class))); - tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AuthenticationException.class, metaDataMap); - } - - public AuthenticationException() { - } - - public AuthenticationException( - AuthenticationError number, - String message) - { - this(); - this.number = number; - this.message = message; - } - - /** - * Performs a deep copy on <i>other</i>. - */ - public AuthenticationException(AuthenticationException other) { - if (other.isSetNumber()) { - this.number = other.number; - } - if (other.isSetMessage()) { - this.message = other.message; - } - } - - public AuthenticationException deepCopy() { - return new AuthenticationException(this); - } - - @Override - public void clear() { - this.number = null; - this.message = null; - } - - /** - * - * @see AuthenticationError - */ - public AuthenticationError getNumber() { - return this.number; - } - - /** - * - * @see AuthenticationError - */ - public AuthenticationException setNumber(AuthenticationError number) { - this.number = number; - return this; - } - - public void unsetNumber() { - this.number = null; - } - - /** Returns true if field number is set (has been assigned a value) and false otherwise */ - public boolean isSetNumber() { - return this.number != null; - } - - public void setNumberIsSet(boolean value) { - if (!value) { - this.number = null; - } - } - - public String getMessage() { - return this.message; - } - - public AuthenticationException setMessage(String message) { - this.message = message; - return this; - } - - public void unsetMessage() { - this.message = null; - } - - /** Returns true if field message is set (has been assigned a value) and false otherwise */ - public boolean isSetMessage() { - return this.message != null; - } - - public void setMessageIsSet(boolean value) { - if (!value) { - this.message = null; - } - } - - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case NUMBER: - if (value == null) { - unsetNumber(); - } else { - setNumber((AuthenticationError)value); - } - break; - - case MESSAGE: - if (value == null) { - unsetMessage(); - } else { - setMessage((String)value); - } - break; - - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - case NUMBER: - return getNumber(); - - case MESSAGE: - return getMessage(); - - } - throw new IllegalStateException(); - } - - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ - public boolean isSet(_Fields field) { - if (field == null) { - throw new IllegalArgumentException(); - } - - switch (field) { - case NUMBER: - return isSetNumber(); - case MESSAGE: - return isSetMessage(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof AuthenticationException) - return this.equals((AuthenticationException)that); - return false; - } - - public boolean equals(AuthenticationException that) { - if (that == null) - return false; - - boolean this_present_number = true && this.isSetNumber(); - boolean that_present_number = true && that.isSetNumber(); - if (this_present_number || that_present_number) { - if (!(this_present_number && that_present_number)) - return false; - if (!this.number.equals(that.number)) - return false; - } - - boolean this_present_message = true && this.isSetMessage(); - boolean that_present_message = true && that.isSetMessage(); - if (this_present_message || that_present_message) { - if (!(this_present_message && that_present_message)) - return false; - if (!this.message.equals(that.message)) - return false; - } - - return true; - } - - @Override - public int hashCode() { - return 0; - } - - @Override - public int compareTo(AuthenticationException other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetNumber()).compareTo(other.isSetNumber()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetNumber()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.number, other.number); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); - if (lastComparison != 0) { - return lastComparison; - } - } - return 0; - } - - public _Fields fieldForId(int fieldId) { - return _Fields.findByThriftId(fieldId); - } - - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("AuthenticationException("); - boolean first = true; - - sb.append("number:"); - if (this.number == null) { - sb.append("null"); - } else { - sb.append(this.number); - } - first = false; - if (!first) sb.append(", "); - sb.append("message:"); - if (this.message == null) { - sb.append("null"); - } else { - sb.append(this.message); - } - first = false; - sb.append(")"); - return sb.toString(); - } - - public void validate() throws org.apache.thrift.TException { - // check for required fields - // check for sub-struct validity - } - - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { - try { - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } - } - - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { - try { - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } - } - - private static class AuthenticationExceptionStandardSchemeFactory implements SchemeFactory { - public AuthenticationExceptionStandardScheme getScheme() { - return new AuthenticationExceptionStandardScheme(); - } - } - - private static class AuthenticationExceptionStandardScheme extends StandardScheme<AuthenticationException> { - - public void read(org.apache.thrift.protocol.TProtocol iprot, AuthenticationException struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // NUMBER - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.number = AuthenticationError.findByValue(iprot.readI32()); - struct.setNumberIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // MESSAGE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.message = iprot.readString(); - struct.setMessageIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot, AuthenticationException struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (struct.number != null) { - oprot.writeFieldBegin(NUMBER_FIELD_DESC); - oprot.writeI32(struct.number.getValue()); - oprot.writeFieldEnd(); - } - if (struct.message != null) { - oprot.writeFieldBegin(MESSAGE_FIELD_DESC); - oprot.writeString(struct.message); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class AuthenticationExceptionTupleSchemeFactory implements SchemeFactory { - public AuthenticationExceptionTupleScheme getScheme() { - return new AuthenticationExceptionTupleScheme(); - } - } - - private static class AuthenticationExceptionTupleScheme extends TupleScheme<AuthenticationException> { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, AuthenticationException struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetNumber()) { - optionals.set(0); - } - if (struct.isSetMessage()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetNumber()) { - oprot.writeI32(struct.number.getValue()); - } - if (struct.isSetMessage()) { - oprot.writeString(struct.message); - } - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, AuthenticationException struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.number = AuthenticationError.findByValue(iprot.readI32()); - struct.setNumberIsSet(true); - } - if (incoming.get(1)) { - struct.message = iprot.readString(); - struct.setMessageIsSet(true); - } - } - } - -} - diff --git a/Dozentenmodul/src/thrift/AuthorizationError.java b/Dozentenmodul/src/thrift/AuthorizationError.java deleted file mode 100644 index 443be4f4..00000000 --- a/Dozentenmodul/src/thrift/AuthorizationError.java +++ /dev/null @@ -1,48 +0,0 @@ -/** - * Autogenerated by Thrift Compiler (0.9.1) - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -package thrift; - - -import java.util.Map; -import java.util.HashMap; -import org.apache.thrift.TEnum; - -public enum AuthorizationError implements org.apache.thrift.TEnum { - GENERIC_ERROR(0), - NOT_AUTHENTICATED(1), - NO_PERMISSION(2); - - private final int value; - - private AuthorizationError(int value) { - this.value = value; - } - - /** - * Get the integer value of this enum value, as defined in the Thrift IDL. - */ - public int getValue() { - return value; - } - - /** - * Find a the enum type by its integer value, as defined in the Thrift IDL. - * @return null if the value is not found. - */ - public static AuthorizationError findByValue(int value) { - switch (value) { - case 0: - return GENERIC_ERROR; - case 1: - return NOT_AUTHENTICATED; - case 2: - return NO_PERMISSION; - default: - return null; - } - } -} diff --git a/Dozentenmodul/src/thrift/AuthorizationException.java b/Dozentenmodul/src/thrift/AuthorizationException.java deleted file mode 100644 index 0d5320c2..00000000 --- a/Dozentenmodul/src/thrift/AuthorizationException.java +++ /dev/null @@ -1,504 +0,0 @@ -/** - * Autogenerated by Thrift Compiler (0.9.1) - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -package thrift; - -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -public class AuthorizationException extends TException implements org.apache.thrift.TBase<AuthorizationException, AuthorizationException._Fields>, java.io.Serializable, Cloneable, Comparable<AuthorizationException> { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AuthorizationException"); - - private static final org.apache.thrift.protocol.TField NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("number", org.apache.thrift.protocol.TType.I32, (short)1); - private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)2); - - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new AuthorizationExceptionStandardSchemeFactory()); - schemes.put(TupleScheme.class, new AuthorizationExceptionTupleSchemeFactory()); - } - - /** - * - * @see AuthorizationError - */ - public AuthorizationError number; // required - public String message; // required - - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements org.apache.thrift.TFieldIdEnum { - /** - * - * @see AuthorizationError - */ - NUMBER((short)1, "number"), - MESSAGE((short)2, "message"); - - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); - - static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { - byName.put(field.getFieldName(), field); - } - } - - /** - * Find the _Fields constant that matches fieldId, or null if its not found. - */ - public static _Fields findByThriftId(int fieldId) { - switch(fieldId) { - case 1: // NUMBER - return NUMBER; - case 2: // MESSAGE - return MESSAGE; - default: - return null; - } - } - - /** - * Find the _Fields constant that matches fieldId, throwing an exception - * if it is not found. - */ - public static _Fields findByThriftIdOrThrow(int fieldId) { - _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); - return fields; - } - - /** - * Find the _Fields constant that matches name, or null if its not found. - */ - public static _Fields findByName(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.NUMBER, new org.apache.thrift.meta_data.FieldMetaData("number", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, AuthorizationError.class))); - tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AuthorizationException.class, metaDataMap); - } - - public AuthorizationException() { - } - - public AuthorizationException( - AuthorizationError number, - String message) - { - this(); - this.number = number; - this.message = message; - } - - /** - * Performs a deep copy on <i>other</i>. - */ - public AuthorizationException(AuthorizationException other) { - if (other.isSetNumber()) { - this.number = other.number; - } - if (other.isSetMessage()) { - this.message = other.message; - } - } - - public AuthorizationException deepCopy() { - return new AuthorizationException(this); - } - - @Override - public void clear() { - this.number = null; - this.message = null; - } - - /** - * - * @see AuthorizationError - */ - public AuthorizationError getNumber() { - return this.number; - } - - /** - * - * @see AuthorizationError - */ - public AuthorizationException setNumber(AuthorizationError number) { - this.number = number; - return this; - } - - public void unsetNumber() { - this.number = null; - } - - /** Returns true if field number is set (has been assigned a value) and false otherwise */ - public boolean isSetNumber() { - return this.number != null; - } - - public void setNumberIsSet(boolean value) { - if (!value) { - this.number = null; - } - } - - public String getMessage() { - return this.message; - } - - public AuthorizationException setMessage(String message) { - this.message = message; - return this; - } - - public void unsetMessage() { - this.message = null; - } - - /** Returns true if field message is set (has been assigned a value) and false otherwise */ - public boolean isSetMessage() { - return this.message != null; - } - - public void setMessageIsSet(boolean value) { - if (!value) { - this.message = null; - } - } - - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case NUMBER: - if (value == null) { - unsetNumber(); - } else { - setNumber((AuthorizationError)value); - } - break; - - case MESSAGE: - if (value == null) { - unsetMessage(); - } else { - setMessage((String)value); - } - break; - - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - case NUMBER: - return getNumber(); - - case MESSAGE: - return getMessage(); - - } - throw new IllegalStateException(); - } - - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ - public boolean isSet(_Fields field) { - if (field == null) { - throw new IllegalArgumentException(); - } - - switch (field) { - case NUMBER: - return isSetNumber(); - case MESSAGE: - return isSetMessage(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof AuthorizationException) - return this.equals((AuthorizationException)that); - return false; - } - - public boolean equals(AuthorizationException that) { - if (that == null) - return false; - - boolean this_present_number = true && this.isSetNumber(); - boolean that_present_number = true && that.isSetNumber(); - if (this_present_number || that_present_number) { - if (!(this_present_number && that_present_number)) - return false; - if (!this.number.equals(that.number)) - return false; - } - - boolean this_present_message = true && this.isSetMessage(); - boolean that_present_message = true && that.isSetMessage(); - if (this_present_message || that_present_message) { - if (!(this_present_message && that_present_message)) - return false; - if (!this.message.equals(that.message)) - return false; - } - - return true; - } - - @Override - public int hashCode() { - return 0; - } - - @Override - public int compareTo(AuthorizationException other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetNumber()).compareTo(other.isSetNumber()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetNumber()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.number, other.number); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); - if (lastComparison != 0) { - return lastComparison; - } - } - return 0; - } - - public _Fields fieldForId(int fieldId) { - return _Fields.findByThriftId(fieldId); - } - - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("AuthorizationException("); - boolean first = true; - - sb.append("number:"); - if (this.number == null) { - sb.append("null"); - } else { - sb.append(this.number); - } - first = false; - if (!first) sb.append(", "); - sb.append("message:"); - if (this.message == null) { - sb.append("null"); - } else { - sb.append(this.message); - } - first = false; - sb.append(")"); - return sb.toString(); - } - - public void validate() throws org.apache.thrift.TException { - // check for required fields - // check for sub-struct validity - } - - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { - try { - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } - } - - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { - try { - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } - } - - private static class AuthorizationExceptionStandardSchemeFactory implements SchemeFactory { - public AuthorizationExceptionStandardScheme getScheme() { - return new AuthorizationExceptionStandardScheme(); - } - } - - private static class AuthorizationExceptionStandardScheme extends StandardScheme<AuthorizationException> { - - public void read(org.apache.thrift.protocol.TProtocol iprot, AuthorizationException struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // NUMBER - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.number = AuthorizationError.findByValue(iprot.readI32()); - struct.setNumberIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // MESSAGE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.message = iprot.readString(); - struct.setMessageIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot, AuthorizationException struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (struct.number != null) { - oprot.writeFieldBegin(NUMBER_FIELD_DESC); - oprot.writeI32(struct.number.getValue()); - oprot.writeFieldEnd(); - } - if (struct.message != null) { - oprot.writeFieldBegin(MESSAGE_FIELD_DESC); - oprot.writeString(struct.message); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class AuthorizationExceptionTupleSchemeFactory implements SchemeFactory { - public AuthorizationExceptionTupleScheme getScheme() { - return new AuthorizationExceptionTupleScheme(); - } - } - - private static class AuthorizationExceptionTupleScheme extends TupleScheme<AuthorizationException> { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, AuthorizationException struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetNumber()) { - optionals.set(0); - } - if (struct.isSetMessage()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetNumber()) { - oprot.writeI32(struct.number.getValue()); - } - if (struct.isSetMessage()) { - oprot.writeString(struct.message); - } - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, AuthorizationException struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.number = AuthorizationError.findByValue(iprot.readI32()); - struct.setNumberIsSet(true); - } - if (incoming.get(1)) { - struct.message = iprot.readString(); - struct.setMessageIsSet(true); - } - } - } - -} - diff --git a/Dozentenmodul/src/thrift/ImageServer.java b/Dozentenmodul/src/thrift/ImageServer.java deleted file mode 100644 index 410f437b..00000000 --- a/Dozentenmodul/src/thrift/ImageServer.java +++ /dev/null @@ -1,2871 +0,0 @@ -/** - * Autogenerated by Thrift Compiler (0.9.1) - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -package thrift; - -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -public class ImageServer { - - public interface Iface { - - public boolean ping() throws org.apache.thrift.TException; - - public SessionData authenticate(String username, String password) throws AuthenticationException, org.apache.thrift.TException; - - public UserInfo getUserFromToken(String token) throws InvalidTokenException, org.apache.thrift.TException; - - } - - public interface AsyncIface { - - public void ping(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - - public void authenticate(String username, String password, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - - public void getUserFromToken(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - - } - - public static class Client extends org.apache.thrift.TServiceClient implements Iface { - public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> { - public Factory() {} - public Client getClient(org.apache.thrift.protocol.TProtocol prot) { - return new Client(prot); - } - public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) { - return new Client(iprot, oprot); - } - } - - public Client(org.apache.thrift.protocol.TProtocol prot) - { - super(prot, prot); - } - - public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) { - super(iprot, oprot); - } - - public boolean ping() throws org.apache.thrift.TException - { - send_ping(); - return recv_ping(); - } - - public void send_ping() throws org.apache.thrift.TException - { - ping_args args = new ping_args(); - sendBase("ping", args); - } - - public boolean recv_ping() throws org.apache.thrift.TException - { - ping_result result = new ping_result(); - receiveBase(result, "ping"); - if (result.isSetSuccess()) { - return result.success; - } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "ping failed: unknown result"); - } - - public SessionData authenticate(String username, String password) throws AuthenticationException, org.apache.thrift.TException - { - send_authenticate(username, password); - return recv_authenticate(); - } - - public void send_authenticate(String username, String password) throws org.apache.thrift.TException - { - authenticate_args args = new authenticate_args(); - args.setUsername(username); - args.setPassword(password); - sendBase("authenticate", args); - } - - public SessionData recv_authenticate() throws AuthenticationException, org.apache.thrift.TException - { - authenticate_result result = new authenticate_result(); - receiveBase(result, "authenticate"); - if (result.isSetSuccess()) { - return result.success; - } - if (result.failure != null) { - throw result.failure; - } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticate failed: unknown result"); - } - - public UserInfo getUserFromToken(String token) throws InvalidTokenException, org.apache.thrift.TException - { - send_getUserFromToken(token); - return recv_getUserFromToken(); - } - - public void send_getUserFromToken(String token) throws org.apache.thrift.TException - { - getUserFromToken_args args = new getUserFromToken_args(); - args.setToken(token); - sendBase("getUserFromToken", args); - } - - public UserInfo recv_getUserFromToken() throws InvalidTokenException, org.apache.thrift.TException - { - getUserFromToken_result result = new getUserFromToken_result(); - receiveBase(result, "getUserFromToken"); - if (result.isSetSuccess()) { - return result.success; - } - if (result.failure != null) { - throw result.failure; - } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserFromToken failed: unknown result"); - } - - } - public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface { - public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> { - private org.apache.thrift.async.TAsyncClientManager clientManager; - private org.apache.thrift.protocol.TProtocolFactory protocolFactory; - public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) { - this.clientManager = clientManager; - this.protocolFactory = protocolFactory; - } - public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) { - return new AsyncClient(protocolFactory, clientManager, transport); - } - } - - public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) { - super(protocolFactory, clientManager, transport); - } - - public void ping(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { - checkReady(); - ping_call method_call = new ping_call(resultHandler, this, ___protocolFactory, ___transport); - this.___currentMethod = method_call; - ___manager.call(method_call); - } - - public static class ping_call extends org.apache.thrift.async.TAsyncMethodCall { - public ping_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { - super(client, protocolFactory, transport, resultHandler, false); - } - - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("ping", org.apache.thrift.protocol.TMessageType.CALL, 0)); - ping_args args = new ping_args(); - args.write(prot); - prot.writeMessageEnd(); - } - - public boolean getResult() throws org.apache.thrift.TException { - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); - } - org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); - org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); - return (new Client(prot)).recv_ping(); - } - } - - public void authenticate(String username, String password, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { - checkReady(); - authenticate_call method_call = new authenticate_call(username, password, resultHandler, this, ___protocolFactory, ___transport); - this.___currentMethod = method_call; - ___manager.call(method_call); - } - - public static class authenticate_call extends org.apache.thrift.async.TAsyncMethodCall { - private String username; - private String password; - public authenticate_call(String username, String password, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { - super(client, protocolFactory, transport, resultHandler, false); - this.username = username; - this.password = password; - } - - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticate", org.apache.thrift.protocol.TMessageType.CALL, 0)); - authenticate_args args = new authenticate_args(); - args.setUsername(username); - args.setPassword(password); - args.write(prot); - prot.writeMessageEnd(); - } - - public SessionData getResult() throws AuthenticationException, org.apache.thrift.TException { - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); - } - org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); - org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); - return (new Client(prot)).recv_authenticate(); - } - } - - public void getUserFromToken(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { - checkReady(); - getUserFromToken_call method_call = new getUserFromToken_call(token, resultHandler, this, ___protocolFactory, ___transport); - this.___currentMethod = method_call; - ___manager.call(method_call); - } - - public static class getUserFromToken_call extends org.apache.thrift.async.TAsyncMethodCall { - private String token; - public getUserFromToken_call(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { - super(client, protocolFactory, transport, resultHandler, false); - this.token = token; - } - - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserFromToken", org.apache.thrift.protocol.TMessageType.CALL, 0)); - getUserFromToken_args args = new getUserFromToken_args(); - args.setToken(token); - args.write(prot); - prot.writeMessageEnd(); - } - - public UserInfo getResult() throws InvalidTokenException, org.apache.thrift.TException { - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); - } - org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); - org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); - return (new Client(prot)).recv_getUserFromToken(); - } - } - - } - - public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor { - private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName()); - public Processor(I iface) { - super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>())); - } - - protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) { - super(iface, getProcessMap(processMap)); - } - - private static <I extends Iface> Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) { - processMap.put("ping", new ping()); - processMap.put("authenticate", new authenticate()); - processMap.put("getUserFromToken", new getUserFromToken()); - return processMap; - } - - public static class ping<I extends Iface> extends org.apache.thrift.ProcessFunction<I, ping_args> { - public ping() { - super("ping"); - } - - public ping_args getEmptyArgsInstance() { - return new ping_args(); - } - - protected boolean isOneway() { - return false; - } - - public ping_result getResult(I iface, ping_args args) throws org.apache.thrift.TException { - ping_result result = new ping_result(); - result.success = iface.ping(); - result.setSuccessIsSet(true); - return result; - } - } - - public static class authenticate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticate_args> { - public authenticate() { - super("authenticate"); - } - - public authenticate_args getEmptyArgsInstance() { - return new authenticate_args(); - } - - protected boolean isOneway() { - return false; - } - - public authenticate_result getResult(I iface, authenticate_args args) throws org.apache.thrift.TException { - authenticate_result result = new authenticate_result(); - try { - result.success = iface.authenticate(args.username, args.password); - } catch (AuthenticationException failure) { - result.failure = failure; - } - return result; - } - } - - public static class getUserFromToken<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserFromToken_args> { - public getUserFromToken() { - super("getUserFromToken"); - } - - public getUserFromToken_args getEmptyArgsInstance() { - return new getUserFromToken_args(); - } - - protected boolean isOneway() { - return false; - } - - public getUserFromToken_result getResult(I iface, getUserFromToken_args args) throws org.apache.thrift.TException { - getUserFromToken_result result = new getUserFromToken_result(); - try { - result.success = iface.getUserFromToken(args.token); - } catch (InvalidTokenException failure) { - result.failure = failure; - } - return result; - } - } - - } - - public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> { - private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName()); - public AsyncProcessor(I iface) { - super(iface, getProcessMap(new HashMap<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>())); - } - - protected AsyncProcessor(I iface, Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) { - super(iface, getProcessMap(processMap)); - } - - private static <I extends AsyncIface> Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase,?>> getProcessMap(Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) { - processMap.put("ping", new ping()); - processMap.put("authenticate", new authenticate()); - processMap.put("getUserFromToken", new getUserFromToken()); - return processMap; - } - - public static class ping<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, ping_args, Boolean> { - public ping() { - super("ping"); - } - - public ping_args getEmptyArgsInstance() { - return new ping_args(); - } - - public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback<Boolean>() { - public void onComplete(Boolean o) { - ping_result result = new ping_result(); - result.success = o; - result.setSuccessIsSet(true); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - ping_result result = new ping_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, ping_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException { - iface.ping(resultHandler); - } - } - - public static class authenticate<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, authenticate_args, SessionData> { - public authenticate() { - super("authenticate"); - } - - public authenticate_args getEmptyArgsInstance() { - return new authenticate_args(); - } - - public AsyncMethodCallback<SessionData> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback<SessionData>() { - public void onComplete(SessionData o) { - authenticate_result result = new authenticate_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - authenticate_result result = new authenticate_result(); - if (e instanceof AuthenticationException) { - result.failure = (AuthenticationException) e; - result.setFailureIsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, authenticate_args args, org.apache.thrift.async.AsyncMethodCallback<SessionData> resultHandler) throws TException { - iface.authenticate(args.username, args.password,resultHandler); - } - } - - public static class getUserFromToken<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getUserFromToken_args, UserInfo> { - public getUserFromToken() { - super("getUserFromToken"); - } - - public getUserFromToken_args getEmptyArgsInstance() { - return new getUserFromToken_args(); - } - - public AsyncMethodCallback<UserInfo> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback<UserInfo>() { - public void onComplete(UserInfo o) { - getUserFromToken_result result = new getUserFromToken_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - getUserFromToken_result result = new getUserFromToken_result(); - if (e instanceof InvalidTokenException) { - result.failure = (InvalidTokenException) e; - result.setFailureIsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, getUserFromToken_args args, org.apache.thrift.async.AsyncMethodCallback<UserInfo> resultHandler) throws TException { - iface.getUserFromToken(args.token,resultHandler); - } - } - - } - - public static class ping_args implements org.apache.thrift.TBase<ping_args, ping_args._Fields>, java.io.Serializable, Cloneable, Comparable<ping_args> { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ping_args"); - - - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new ping_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new ping_argsTupleSchemeFactory()); - } - - - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements org.apache.thrift.TFieldIdEnum { -; - - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); - - static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { - byName.put(field.getFieldName(), field); - } - } - - /** - * Find the _Fields constant that matches fieldId, or null if its not found. - */ - public static _Fields findByThriftId(int fieldId) { - switch(fieldId) { - default: - return null; - } - } - - /** - * Find the _Fields constant that matches fieldId, throwing an exception - * if it is not found. - */ - public static _Fields findByThriftIdOrThrow(int fieldId) { - _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); - return fields; - } - - /** - * Find the _Fields constant that matches name, or null if its not found. - */ - public static _Fields findByName(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ping_args.class, metaDataMap); - } - - public ping_args() { - } - - /** - * Performs a deep copy on <i>other</i>. - */ - public ping_args(ping_args other) { - } - - public ping_args deepCopy() { - return new ping_args(this); - } - - @Override - public void clear() { - } - - public void setFieldValue(_Fields field, Object value) { - switch (field) { - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - } - throw new IllegalStateException(); - } - - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ - public boolean isSet(_Fields field) { - if (field == null) { - throw new IllegalArgumentException(); - } - - switch (field) { - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof ping_args) - return this.equals((ping_args)that); - return false; - } - - public boolean equals(ping_args that) { - if (that == null) - return false; - - return true; - } - - @Override - public int hashCode() { - return 0; - } - - @Override - public int compareTo(ping_args other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - return 0; - } - - public _Fields fieldForId(int fieldId) { - return _Fields.findByThriftId(fieldId); - } - - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("ping_args("); - boolean first = true; - - sb.append(")"); - return sb.toString(); - } - - public void validate() throws org.apache.thrift.TException { - // check for required fields - // check for sub-struct validity - } - - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { - try { - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } - } - - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { - try { - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } - } - - private static class ping_argsStandardSchemeFactory implements SchemeFactory { - public ping_argsStandardScheme getScheme() { - return new ping_argsStandardScheme(); - } - } - - private static class ping_argsStandardScheme extends StandardScheme<ping_args> { - - public void read(org.apache.thrift.protocol.TProtocol iprot, ping_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot, ping_args struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class ping_argsTupleSchemeFactory implements SchemeFactory { - public ping_argsTupleScheme getScheme() { - return new ping_argsTupleScheme(); - } - } - - private static class ping_argsTupleScheme extends TupleScheme<ping_args> { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, ping_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, ping_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - } - } - - } - - public static class ping_result implements org.apache.thrift.TBase<ping_result, ping_result._Fields>, java.io.Serializable, Cloneable, Comparable<ping_result> { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ping_result"); - - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); - - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new ping_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new ping_resultTupleSchemeFactory()); - } - - public boolean success; // required - - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"); - - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); - - static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { - byName.put(field.getFieldName(), field); - } - } - - /** - * Find the _Fields constant that matches fieldId, or null if its not found. - */ - public static _Fields findByThriftId(int fieldId) { - switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; - default: - return null; - } - } - - /** - * Find the _Fields constant that matches fieldId, throwing an exception - * if it is not found. - */ - public static _Fields findByThriftIdOrThrow(int fieldId) { - _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); - return fields; - } - - /** - * Find the _Fields constant that matches name, or null if its not found. - */ - public static _Fields findByName(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ping_result.class, metaDataMap); - } - - public ping_result() { - } - - public ping_result( - boolean success) - { - this(); - this.success = success; - setSuccessIsSet(true); - } - - /** - * Performs a deep copy on <i>other</i>. - */ - public ping_result(ping_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; - } - - public ping_result deepCopy() { - return new ping_result(this); - } - - @Override - public void clear() { - setSuccessIsSet(false); - this.success = false; - } - - public boolean isSuccess() { - return this.success; - } - - public ping_result setSuccess(boolean success) { - this.success = success; - setSuccessIsSet(true); - return this; - } - - public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); - } - - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); - } - - public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); - } - - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((Boolean)value); - } - break; - - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - case SUCCESS: - return Boolean.valueOf(isSuccess()); - - } - throw new IllegalStateException(); - } - - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ - public boolean isSet(_Fields field) { - if (field == null) { - throw new IllegalArgumentException(); - } - - switch (field) { - case SUCCESS: - return isSetSuccess(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof ping_result) - return this.equals((ping_result)that); - return false; - } - - public boolean equals(ping_result that) { - if (that == null) - return false; - - boolean this_present_success = true; - boolean that_present_success = true; - if (this_present_success || that_present_success) { - if (!(this_present_success && that_present_success)) - return false; - if (this.success != that.success) - return false; - } - - return true; - } - - @Override - public int hashCode() { - return 0; - } - - @Override - public int compareTo(ping_result other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); - if (lastComparison != 0) { - return lastComparison; - } - } - return 0; - } - - public _Fields fieldForId(int fieldId) { - return _Fields.findByThriftId(fieldId); - } - - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("ping_result("); - boolean first = true; - - sb.append("success:"); - sb.append(this.success); - first = false; - sb.append(")"); - return sb.toString(); - } - - public void validate() throws org.apache.thrift.TException { - // check for required fields - // check for sub-struct validity - } - - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { - try { - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } - } - - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { - try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } - } - - private static class ping_resultStandardSchemeFactory implements SchemeFactory { - public ping_resultStandardScheme getScheme() { - return new ping_resultStandardScheme(); - } - } - - private static class ping_resultStandardScheme extends StandardScheme<ping_result> { - - public void read(org.apache.thrift.protocol.TProtocol iprot, ping_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot, ping_result struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBool(struct.success); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class ping_resultTupleSchemeFactory implements SchemeFactory { - public ping_resultTupleScheme getScheme() { - return new ping_resultTupleScheme(); - } - } - - private static class ping_resultTupleScheme extends TupleScheme<ping_result> { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, ping_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { - optionals.set(0); - } - oprot.writeBitSet(optionals, 1); - if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); - } - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, ping_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } - } - } - - } - - public static class authenticate_args implements org.apache.thrift.TBase<authenticate_args, authenticate_args._Fields>, java.io.Serializable, Cloneable, Comparable<authenticate_args> { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticate_args"); - - private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)2); - - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new authenticate_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new authenticate_argsTupleSchemeFactory()); - } - - public String username; // required - public String password; // required - - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements org.apache.thrift.TFieldIdEnum { - USERNAME((short)1, "username"), - PASSWORD((short)2, "password"); - - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); - - static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { - byName.put(field.getFieldName(), field); - } - } - - /** - * Find the _Fields constant that matches fieldId, or null if its not found. - */ - public static _Fields findByThriftId(int fieldId) { - switch(fieldId) { - case 1: // USERNAME - return USERNAME; - case 2: // PASSWORD - return PASSWORD; - default: - return null; - } - } - - /** - * Find the _Fields constant that matches fieldId, throwing an exception - * if it is not found. - */ - public static _Fields findByThriftIdOrThrow(int fieldId) { - _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); - return fields; - } - - /** - * Find the _Fields constant that matches name, or null if its not found. - */ - public static _Fields findByName(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticate_args.class, metaDataMap); - } - - public authenticate_args() { - } - - public authenticate_args( - String username, - String password) - { - this(); - this.username = username; - this.password = password; - } - - /** - * Performs a deep copy on <i>other</i>. - */ - public authenticate_args(authenticate_args other) { - if (other.isSetUsername()) { - this.username = other.username; - } - if (other.isSetPassword()) { - this.password = other.password; - } - } - - public authenticate_args deepCopy() { - return new authenticate_args(this); - } - - @Override - public void clear() { - this.username = null; - this.password = null; - } - - public String getUsername() { - return this.username; - } - - public authenticate_args setUsername(String username) { - this.username = username; - return this; - } - - public void unsetUsername() { - this.username = null; - } - - /** Returns true if field username is set (has been assigned a value) and false otherwise */ - public boolean isSetUsername() { - return this.username != null; - } - - public void setUsernameIsSet(boolean value) { - if (!value) { - this.username = null; - } - } - - public String getPassword() { - return this.password; - } - - public authenticate_args setPassword(String password) { - this.password = password; - return this; - } - - public void unsetPassword() { - this.password = null; - } - - /** Returns true if field password is set (has been assigned a value) and false otherwise */ - public boolean isSetPassword() { - return this.password != null; - } - - public void setPasswordIsSet(boolean value) { - if (!value) { - this.password = null; - } - } - - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case USERNAME: - if (value == null) { - unsetUsername(); - } else { - setUsername((String)value); - } - break; - - case PASSWORD: - if (value == null) { - unsetPassword(); - } else { - setPassword((String)value); - } - break; - - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - case USERNAME: - return getUsername(); - - case PASSWORD: - return getPassword(); - - } - throw new IllegalStateException(); - } - - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ - public boolean isSet(_Fields field) { - if (field == null) { - throw new IllegalArgumentException(); - } - - switch (field) { - case USERNAME: - return isSetUsername(); - case PASSWORD: - return isSetPassword(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof authenticate_args) - return this.equals((authenticate_args)that); - return false; - } - - public boolean equals(authenticate_args that) { - if (that == null) - return false; - - boolean this_present_username = true && this.isSetUsername(); - boolean that_present_username = true && that.isSetUsername(); - if (this_present_username || that_present_username) { - if (!(this_present_username && that_present_username)) - return false; - if (!this.username.equals(that.username)) - return false; - } - - boolean this_present_password = true && this.isSetPassword(); - boolean that_present_password = true && that.isSetPassword(); - if (this_present_password || that_present_password) { - if (!(this_present_password && that_present_password)) - return false; - if (!this.password.equals(that.password)) - return false; - } - - return true; - } - - @Override - public int hashCode() { - return 0; - } - - @Override - public int compareTo(authenticate_args other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetUsername()).compareTo(other.isSetUsername()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetUsername()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, other.username); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetPassword()).compareTo(other.isSetPassword()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetPassword()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, other.password); - if (lastComparison != 0) { - return lastComparison; - } - } - return 0; - } - - public _Fields fieldForId(int fieldId) { - return _Fields.findByThriftId(fieldId); - } - - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("authenticate_args("); - boolean first = true; - - sb.append("username:"); - if (this.username == null) { - sb.append("null"); - } else { - sb.append(this.username); - } - first = false; - if (!first) sb.append(", "); - sb.append("password:"); - if (this.password == null) { - sb.append("null"); - } else { - sb.append(this.password); - } - first = false; - sb.append(")"); - return sb.toString(); - } - - public void validate() throws org.apache.thrift.TException { - // check for required fields - // check for sub-struct validity - } - - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { - try { - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } - } - - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { - try { - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } - } - - private static class authenticate_argsStandardSchemeFactory implements SchemeFactory { - public authenticate_argsStandardScheme getScheme() { - return new authenticate_argsStandardScheme(); - } - } - - private static class authenticate_argsStandardScheme extends StandardScheme<authenticate_args> { - - public void read(org.apache.thrift.protocol.TProtocol iprot, authenticate_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // USERNAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.username = iprot.readString(); - struct.setUsernameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // PASSWORD - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.password = iprot.readString(); - struct.setPasswordIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot, authenticate_args struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (struct.username != null) { - oprot.writeFieldBegin(USERNAME_FIELD_DESC); - oprot.writeString(struct.username); - oprot.writeFieldEnd(); - } - if (struct.password != null) { - oprot.writeFieldBegin(PASSWORD_FIELD_DESC); - oprot.writeString(struct.password); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class authenticate_argsTupleSchemeFactory implements SchemeFactory { - public authenticate_argsTupleScheme getScheme() { - return new authenticate_argsTupleScheme(); - } - } - - private static class authenticate_argsTupleScheme extends TupleScheme<authenticate_args> { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, authenticate_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetUsername()) { - optionals.set(0); - } - if (struct.isSetPassword()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetUsername()) { - oprot.writeString(struct.username); - } - if (struct.isSetPassword()) { - oprot.writeString(struct.password); - } - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, authenticate_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.username = iprot.readString(); - struct.setUsernameIsSet(true); - } - if (incoming.get(1)) { - struct.password = iprot.readString(); - struct.setPasswordIsSet(true); - } - } - } - - } - - public static class authenticate_result implements org.apache.thrift.TBase<authenticate_result, authenticate_result._Fields>, java.io.Serializable, Cloneable, Comparable<authenticate_result> { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticate_result"); - - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); - private static final org.apache.thrift.protocol.TField FAILURE_FIELD_DESC = new org.apache.thrift.protocol.TField("failure", org.apache.thrift.protocol.TType.STRUCT, (short)1); - - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new authenticate_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new authenticate_resultTupleSchemeFactory()); - } - - public SessionData success; // required - public AuthenticationException failure; // required - - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"), - FAILURE((short)1, "failure"); - - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); - - static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { - byName.put(field.getFieldName(), field); - } - } - - /** - * Find the _Fields constant that matches fieldId, or null if its not found. - */ - public static _Fields findByThriftId(int fieldId) { - switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; - case 1: // FAILURE - return FAILURE; - default: - return null; - } - } - - /** - * Find the _Fields constant that matches fieldId, throwing an exception - * if it is not found. - */ - public static _Fields findByThriftIdOrThrow(int fieldId) { - _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); - return fields; - } - - /** - * Find the _Fields constant that matches name, or null if its not found. - */ - public static _Fields findByName(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SessionData.class))); - tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticate_result.class, metaDataMap); - } - - public authenticate_result() { - } - - public authenticate_result( - SessionData success, - AuthenticationException failure) - { - this(); - this.success = success; - this.failure = failure; - } - - /** - * Performs a deep copy on <i>other</i>. - */ - public authenticate_result(authenticate_result other) { - if (other.isSetSuccess()) { - this.success = new SessionData(other.success); - } - if (other.isSetFailure()) { - this.failure = new AuthenticationException(other.failure); - } - } - - public authenticate_result deepCopy() { - return new authenticate_result(this); - } - - @Override - public void clear() { - this.success = null; - this.failure = null; - } - - public SessionData getSuccess() { - return this.success; - } - - public authenticate_result setSuccess(SessionData success) { - this.success = success; - return this; - } - - public void unsetSuccess() { - this.success = null; - } - - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return this.success != null; - } - - public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } - } - - public AuthenticationException getFailure() { - return this.failure; - } - - public authenticate_result setFailure(AuthenticationException failure) { - this.failure = failure; - return this; - } - - public void unsetFailure() { - this.failure = null; - } - - /** Returns true if field failure is set (has been assigned a value) and false otherwise */ - public boolean isSetFailure() { - return this.failure != null; - } - - public void setFailureIsSet(boolean value) { - if (!value) { - this.failure = null; - } - } - - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((SessionData)value); - } - break; - - case FAILURE: - if (value == null) { - unsetFailure(); - } else { - setFailure((AuthenticationException)value); - } - break; - - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - case SUCCESS: - return getSuccess(); - - case FAILURE: - return getFailure(); - - } - throw new IllegalStateException(); - } - - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ - public boolean isSet(_Fields field) { - if (field == null) { - throw new IllegalArgumentException(); - } - - switch (field) { - case SUCCESS: - return isSetSuccess(); - case FAILURE: - return isSetFailure(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof authenticate_result) - return this.equals((authenticate_result)that); - return false; - } - - public boolean equals(authenticate_result that) { - if (that == null) - return false; - - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); - if (this_present_success || that_present_success) { - if (!(this_present_success && that_present_success)) - return false; - if (!this.success.equals(that.success)) - return false; - } - - boolean this_present_failure = true && this.isSetFailure(); - boolean that_present_failure = true && that.isSetFailure(); - if (this_present_failure || that_present_failure) { - if (!(this_present_failure && that_present_failure)) - return false; - if (!this.failure.equals(that.failure)) - return false; - } - - return true; - } - - @Override - public int hashCode() { - return 0; - } - - @Override - public int compareTo(authenticate_result other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetFailure()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure, other.failure); - if (lastComparison != 0) { - return lastComparison; - } - } - return 0; - } - - public _Fields fieldForId(int fieldId) { - return _Fields.findByThriftId(fieldId); - } - - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("authenticate_result("); - boolean first = true; - - sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } - first = false; - if (!first) sb.append(", "); - sb.append("failure:"); - if (this.failure == null) { - sb.append("null"); - } else { - sb.append(this.failure); - } - first = false; - sb.append(")"); - return sb.toString(); - } - - public void validate() throws org.apache.thrift.TException { - // check for required fields - // check for sub-struct validity - if (success != null) { - success.validate(); - } - } - - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { - try { - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } - } - - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { - try { - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } - } - - private static class authenticate_resultStandardSchemeFactory implements SchemeFactory { - public authenticate_resultStandardScheme getScheme() { - return new authenticate_resultStandardScheme(); - } - } - - private static class authenticate_resultStandardScheme extends StandardScheme<authenticate_result> { - - public void read(org.apache.thrift.protocol.TProtocol iprot, authenticate_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new SessionData(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // FAILURE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.failure = new AuthenticationException(); - struct.failure.read(iprot); - struct.setFailureIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot, authenticate_result struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.failure != null) { - oprot.writeFieldBegin(FAILURE_FIELD_DESC); - struct.failure.write(oprot); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class authenticate_resultTupleSchemeFactory implements SchemeFactory { - public authenticate_resultTupleScheme getScheme() { - return new authenticate_resultTupleScheme(); - } - } - - private static class authenticate_resultTupleScheme extends TupleScheme<authenticate_result> { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, authenticate_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { - optionals.set(0); - } - if (struct.isSetFailure()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetSuccess()) { - struct.success.write(oprot); - } - if (struct.isSetFailure()) { - struct.failure.write(oprot); - } - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, authenticate_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.success = new SessionData(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.failure = new AuthenticationException(); - struct.failure.read(iprot); - struct.setFailureIsSet(true); - } - } - } - - } - - public static class getUserFromToken_args implements org.apache.thrift.TBase<getUserFromToken_args, getUserFromToken_args._Fields>, java.io.Serializable, Cloneable, Comparable<getUserFromToken_args> { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserFromToken_args"); - - private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)1); - - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getUserFromToken_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getUserFromToken_argsTupleSchemeFactory()); - } - - public String token; // required - - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements org.apache.thrift.TFieldIdEnum { - TOKEN((short)1, "token"); - - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); - - static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { - byName.put(field.getFieldName(), field); - } - } - - /** - * Find the _Fields constant that matches fieldId, or null if its not found. - */ - public static _Fields findByThriftId(int fieldId) { - switch(fieldId) { - case 1: // TOKEN - return TOKEN; - default: - return null; - } - } - - /** - * Find the _Fields constant that matches fieldId, throwing an exception - * if it is not found. - */ - public static _Fields findByThriftIdOrThrow(int fieldId) { - _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); - return fields; - } - - /** - * Find the _Fields constant that matches name, or null if its not found. - */ - public static _Fields findByName(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserFromToken_args.class, metaDataMap); - } - - public getUserFromToken_args() { - } - - public getUserFromToken_args( - String token) - { - this(); - this.token = token; - } - - /** - * Performs a deep copy on <i>other</i>. - */ - public getUserFromToken_args(getUserFromToken_args other) { - if (other.isSetToken()) { - this.token = other.token; - } - } - - public getUserFromToken_args deepCopy() { - return new getUserFromToken_args(this); - } - - @Override - public void clear() { - this.token = null; - } - - public String getToken() { - return this.token; - } - - public getUserFromToken_args setToken(String token) { - this.token = token; - return this; - } - - public void unsetToken() { - this.token = null; - } - - /** Returns true if field token is set (has been assigned a value) and false otherwise */ - public boolean isSetToken() { - return this.token != null; - } - - public void setTokenIsSet(boolean value) { - if (!value) { - this.token = null; - } - } - - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case TOKEN: - if (value == null) { - unsetToken(); - } else { - setToken((String)value); - } - break; - - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - case TOKEN: - return getToken(); - - } - throw new IllegalStateException(); - } - - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ - public boolean isSet(_Fields field) { - if (field == null) { - throw new IllegalArgumentException(); - } - - switch (field) { - case TOKEN: - return isSetToken(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof getUserFromToken_args) - return this.equals((getUserFromToken_args)that); - return false; - } - - public boolean equals(getUserFromToken_args that) { - if (that == null) - return false; - - boolean this_present_token = true && this.isSetToken(); - boolean that_present_token = true && that.isSetToken(); - if (this_present_token || that_present_token) { - if (!(this_present_token && that_present_token)) - return false; - if (!this.token.equals(that.token)) - return false; - } - - return true; - } - - @Override - public int hashCode() { - return 0; - } - - @Override - public int compareTo(getUserFromToken_args other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetToken()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); - if (lastComparison != 0) { - return lastComparison; - } - } - return 0; - } - - public _Fields fieldForId(int fieldId) { - return _Fields.findByThriftId(fieldId); - } - - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("getUserFromToken_args("); - boolean first = true; - - sb.append("token:"); - if (this.token == null) { - sb.append("null"); - } else { - sb.append(this.token); - } - first = false; - sb.append(")"); - return sb.toString(); - } - - public void validate() throws org.apache.thrift.TException { - // check for required fields - // check for sub-struct validity - } - - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { - try { - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } - } - - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { - try { - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } - } - - private static class getUserFromToken_argsStandardSchemeFactory implements SchemeFactory { - public getUserFromToken_argsStandardScheme getScheme() { - return new getUserFromToken_argsStandardScheme(); - } - } - - private static class getUserFromToken_argsStandardScheme extends StandardScheme<getUserFromToken_args> { - - public void read(org.apache.thrift.protocol.TProtocol iprot, getUserFromToken_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TOKEN - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.token = iprot.readString(); - struct.setTokenIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot, getUserFromToken_args struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (struct.token != null) { - oprot.writeFieldBegin(TOKEN_FIELD_DESC); - oprot.writeString(struct.token); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class getUserFromToken_argsTupleSchemeFactory implements SchemeFactory { - public getUserFromToken_argsTupleScheme getScheme() { - return new getUserFromToken_argsTupleScheme(); - } - } - - private static class getUserFromToken_argsTupleScheme extends TupleScheme<getUserFromToken_args> { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getUserFromToken_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetToken()) { - optionals.set(0); - } - oprot.writeBitSet(optionals, 1); - if (struct.isSetToken()) { - oprot.writeString(struct.token); - } - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getUserFromToken_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.token = iprot.readString(); - struct.setTokenIsSet(true); - } - } - } - - } - - public static class getUserFromToken_result implements org.apache.thrift.TBase<getUserFromToken_result, getUserFromToken_result._Fields>, java.io.Serializable, Cloneable, Comparable<getUserFromToken_result> { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserFromToken_result"); - - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); - private static final org.apache.thrift.protocol.TField FAILURE_FIELD_DESC = new org.apache.thrift.protocol.TField("failure", org.apache.thrift.protocol.TType.STRUCT, (short)1); - - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getUserFromToken_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getUserFromToken_resultTupleSchemeFactory()); - } - - public UserInfo success; // required - public InvalidTokenException failure; // required - - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"), - FAILURE((short)1, "failure"); - - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); - - static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { - byName.put(field.getFieldName(), field); - } - } - - /** - * Find the _Fields constant that matches fieldId, or null if its not found. - */ - public static _Fields findByThriftId(int fieldId) { - switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; - case 1: // FAILURE - return FAILURE; - default: - return null; - } - } - - /** - * Find the _Fields constant that matches fieldId, throwing an exception - * if it is not found. - */ - public static _Fields findByThriftIdOrThrow(int fieldId) { - _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); - return fields; - } - - /** - * Find the _Fields constant that matches name, or null if its not found. - */ - public static _Fields findByName(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserInfo.class))); - tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserFromToken_result.class, metaDataMap); - } - - public getUserFromToken_result() { - } - - public getUserFromToken_result( - UserInfo success, - InvalidTokenException failure) - { - this(); - this.success = success; - this.failure = failure; - } - - /** - * Performs a deep copy on <i>other</i>. - */ - public getUserFromToken_result(getUserFromToken_result other) { - if (other.isSetSuccess()) { - this.success = new UserInfo(other.success); - } - if (other.isSetFailure()) { - this.failure = new InvalidTokenException(other.failure); - } - } - - public getUserFromToken_result deepCopy() { - return new getUserFromToken_result(this); - } - - @Override - public void clear() { - this.success = null; - this.failure = null; - } - - public UserInfo getSuccess() { - return this.success; - } - - public getUserFromToken_result setSuccess(UserInfo success) { - this.success = success; - return this; - } - - public void unsetSuccess() { - this.success = null; - } - - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return this.success != null; - } - - public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } - } - - public InvalidTokenException getFailure() { - return this.failure; - } - - public getUserFromToken_result setFailure(InvalidTokenException failure) { - this.failure = failure; - return this; - } - - public void unsetFailure() { - this.failure = null; - } - - /** Returns true if field failure is set (has been assigned a value) and false otherwise */ - public boolean isSetFailure() { - return this.failure != null; - } - - public void setFailureIsSet(boolean value) { - if (!value) { - this.failure = null; - } - } - - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((UserInfo)value); - } - break; - - case FAILURE: - if (value == null) { - unsetFailure(); - } else { - setFailure((InvalidTokenException)value); - } - break; - - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - case SUCCESS: - return getSuccess(); - - case FAILURE: - return getFailure(); - - } - throw new IllegalStateException(); - } - - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ - public boolean isSet(_Fields field) { - if (field == null) { - throw new IllegalArgumentException(); - } - - switch (field) { - case SUCCESS: - return isSetSuccess(); - case FAILURE: - return isSetFailure(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof getUserFromToken_result) - return this.equals((getUserFromToken_result)that); - return false; - } - - public boolean equals(getUserFromToken_result that) { - if (that == null) - return false; - - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); - if (this_present_success || that_present_success) { - if (!(this_present_success && that_present_success)) - return false; - if (!this.success.equals(that.success)) - return false; - } - - boolean this_present_failure = true && this.isSetFailure(); - boolean that_present_failure = true && that.isSetFailure(); - if (this_present_failure || that_present_failure) { - if (!(this_present_failure && that_present_failure)) - return false; - if (!this.failure.equals(that.failure)) - return false; - } - - return true; - } - - @Override - public int hashCode() { - return 0; - } - - @Override - public int compareTo(getUserFromToken_result other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetFailure()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure, other.failure); - if (lastComparison != 0) { - return lastComparison; - } - } - return 0; - } - - public _Fields fieldForId(int fieldId) { - return _Fields.findByThriftId(fieldId); - } - - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("getUserFromToken_result("); - boolean first = true; - - sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } - first = false; - if (!first) sb.append(", "); - sb.append("failure:"); - if (this.failure == null) { - sb.append("null"); - } else { - sb.append(this.failure); - } - first = false; - sb.append(")"); - return sb.toString(); - } - - public void validate() throws org.apache.thrift.TException { - // check for required fields - // check for sub-struct validity - if (success != null) { - success.validate(); - } - } - - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { - try { - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } - } - - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { - try { - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } - } - - private static class getUserFromToken_resultStandardSchemeFactory implements SchemeFactory { - public getUserFromToken_resultStandardScheme getScheme() { - return new getUserFromToken_resultStandardScheme(); - } - } - - private static class getUserFromToken_resultStandardScheme extends StandardScheme<getUserFromToken_result> { - - public void read(org.apache.thrift.protocol.TProtocol iprot, getUserFromToken_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new UserInfo(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // FAILURE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.failure = new InvalidTokenException(); - struct.failure.read(iprot); - struct.setFailureIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot, getUserFromToken_result struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.failure != null) { - oprot.writeFieldBegin(FAILURE_FIELD_DESC); - struct.failure.write(oprot); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class getUserFromToken_resultTupleSchemeFactory implements SchemeFactory { - public getUserFromToken_resultTupleScheme getScheme() { - return new getUserFromToken_resultTupleScheme(); - } - } - - private static class getUserFromToken_resultTupleScheme extends TupleScheme<getUserFromToken_result> { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getUserFromToken_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { - optionals.set(0); - } - if (struct.isSetFailure()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetSuccess()) { - struct.success.write(oprot); - } - if (struct.isSetFailure()) { - struct.failure.write(oprot); - } - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getUserFromToken_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.success = new UserInfo(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.failure = new InvalidTokenException(); - struct.failure.read(iprot); - struct.setFailureIsSet(true); - } - } - } - - } - -} diff --git a/Dozentenmodul/src/thrift/InvalidTokenException.java b/Dozentenmodul/src/thrift/InvalidTokenException.java deleted file mode 100644 index 914199b5..00000000 --- a/Dozentenmodul/src/thrift/InvalidTokenException.java +++ /dev/null @@ -1,280 +0,0 @@ -/** - * Autogenerated by Thrift Compiler (0.9.1) - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -package thrift; - -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -public class InvalidTokenException extends TException implements org.apache.thrift.TBase<InvalidTokenException, InvalidTokenException._Fields>, java.io.Serializable, Cloneable, Comparable<InvalidTokenException> { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InvalidTokenException"); - - - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new InvalidTokenExceptionStandardSchemeFactory()); - schemes.put(TupleScheme.class, new InvalidTokenExceptionTupleSchemeFactory()); - } - - - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements org.apache.thrift.TFieldIdEnum { -; - - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); - - static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { - byName.put(field.getFieldName(), field); - } - } - - /** - * Find the _Fields constant that matches fieldId, or null if its not found. - */ - public static _Fields findByThriftId(int fieldId) { - switch(fieldId) { - default: - return null; - } - } - - /** - * Find the _Fields constant that matches fieldId, throwing an exception - * if it is not found. - */ - public static _Fields findByThriftIdOrThrow(int fieldId) { - _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); - return fields; - } - - /** - * Find the _Fields constant that matches name, or null if its not found. - */ - public static _Fields findByName(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(InvalidTokenException.class, metaDataMap); - } - - public InvalidTokenException() { - } - - /** - * Performs a deep copy on <i>other</i>. - */ - public InvalidTokenException(InvalidTokenException other) { - } - - public InvalidTokenException deepCopy() { - return new InvalidTokenException(this); - } - - @Override - public void clear() { - } - - public void setFieldValue(_Fields field, Object value) { - switch (field) { - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - } - throw new IllegalStateException(); - } - - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ - public boolean isSet(_Fields field) { - if (field == null) { - throw new IllegalArgumentException(); - } - - switch (field) { - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof InvalidTokenException) - return this.equals((InvalidTokenException)that); - return false; - } - - public boolean equals(InvalidTokenException that) { - if (that == null) - return false; - - return true; - } - - @Override - public int hashCode() { - return 0; - } - - @Override - public int compareTo(InvalidTokenException other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - return 0; - } - - public _Fields fieldForId(int fieldId) { - return _Fields.findByThriftId(fieldId); - } - - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("InvalidTokenException("); - boolean first = true; - - sb.append(")"); - return sb.toString(); - } - - public void validate() throws org.apache.thrift.TException { - // check for required fields - // check for sub-struct validity - } - - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { - try { - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } - } - - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { - try { - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } - } - - private static class InvalidTokenExceptionStandardSchemeFactory implements SchemeFactory { - public InvalidTokenExceptionStandardScheme getScheme() { - return new InvalidTokenExceptionStandardScheme(); - } - } - - private static class InvalidTokenExceptionStandardScheme extends StandardScheme<InvalidTokenException> { - - public void read(org.apache.thrift.protocol.TProtocol iprot, InvalidTokenException struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot, InvalidTokenException struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class InvalidTokenExceptionTupleSchemeFactory implements SchemeFactory { - public InvalidTokenExceptionTupleScheme getScheme() { - return new InvalidTokenExceptionTupleScheme(); - } - } - - private static class InvalidTokenExceptionTupleScheme extends TupleScheme<InvalidTokenException> { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, InvalidTokenException struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, InvalidTokenException struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - } - } - -} - diff --git a/Dozentenmodul/src/thrift/SessionData.java b/Dozentenmodul/src/thrift/SessionData.java deleted file mode 100644 index f754ecb3..00000000 --- a/Dozentenmodul/src/thrift/SessionData.java +++ /dev/null @@ -1,597 +0,0 @@ -/** - * Autogenerated by Thrift Compiler (0.9.1) - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -package thrift; - -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; - -import javax.swing.JOptionPane; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -public class SessionData implements org.apache.thrift.TBase<SessionData, SessionData._Fields>, java.io.Serializable, Cloneable, Comparable<SessionData> { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SessionData"); - - private static final org.apache.thrift.protocol.TField SESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionId", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField AUTH_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("authToken", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField SERVER_ADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("serverAddress", org.apache.thrift.protocol.TType.STRING, (short)3); - - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new SessionDataStandardSchemeFactory()); - schemes.put(TupleScheme.class, new SessionDataTupleSchemeFactory()); - } - - public String sessionId; // required - public String authToken; // required - public String serverAddress; // required - - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SESSION_ID((short)1, "sessionId"), - AUTH_TOKEN((short)2, "authToken"), - SERVER_ADDRESS((short)3, "serverAddress"); - - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); - - static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { - byName.put(field.getFieldName(), field); - } - } - - /** - * Find the _Fields constant that matches fieldId, or null if its not found. - */ - public static _Fields findByThriftId(int fieldId) { - switch(fieldId) { - case 1: // SESSION_ID - return SESSION_ID; - case 2: // AUTH_TOKEN - return AUTH_TOKEN; - case 3: // SERVER_ADDRESS - return SERVER_ADDRESS; - default: - return null; - } - } - - /** - * Find the _Fields constant that matches fieldId, throwing an exception - * if it is not found. - */ - public static _Fields findByThriftIdOrThrow(int fieldId) { - _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); - return fields; - } - - /** - * Find the _Fields constant that matches name, or null if its not found. - */ - public static _Fields findByName(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("sessionId", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "ID"))); - tmpMap.put(_Fields.AUTH_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("authToken", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); - tmpMap.put(_Fields.SERVER_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("serverAddress", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(SessionData.class, metaDataMap); - } - - public SessionData() { - } - - public SessionData( - String sessionId, - String authToken, - String serverAddress) - { - this(); - this.sessionId = sessionId; - this.authToken = authToken; - this.serverAddress = serverAddress; - } - - /** - * Performs a deep copy on <i>other</i>. - */ - public SessionData(SessionData other) { - if (other.isSetSessionId()) { - this.sessionId = other.sessionId; - } - if (other.isSetAuthToken()) { - this.authToken = other.authToken; - } - if (other.isSetServerAddress()) { - this.serverAddress = other.serverAddress; - } - } - - public SessionData deepCopy() { - return new SessionData(this); - } - - @Override - public void clear() { - this.sessionId = null; - this.authToken = null; - this.serverAddress = null; - } - - public String getSessionId() { - return this.sessionId; - } - - public SessionData setSessionId(String sessionId) { - this.sessionId = sessionId; - return this; - } - - public void unsetSessionId() { - this.sessionId = null; - } - - /** Returns true if field sessionId is set (has been assigned a value) and false otherwise */ - public boolean isSetSessionId() { - return this.sessionId != null; - } - - public void setSessionIdIsSet(boolean value) { - if (!value) { - this.sessionId = null; - } - } - - public String getAuthToken() { - return this.authToken; - } - - public SessionData setAuthToken(String authToken) { - this.authToken = authToken; - return this; - } - - public void unsetAuthToken() { - this.authToken = null; - } - - /** Returns true if field authToken is set (has been assigned a value) and false otherwise */ - public boolean isSetAuthToken() { - return this.authToken != null; - } - - public void setAuthTokenIsSet(boolean value) { - if (!value) { - this.authToken = null; - } - } - - public String getServerAddress() { - return this.serverAddress; - } - - public SessionData setServerAddress(String serverAddress) { - this.serverAddress = serverAddress; - return this; - } - - public void unsetServerAddress() { - this.serverAddress = null; - } - - /** Returns true if field serverAddress is set (has been assigned a value) and false otherwise */ - public boolean isSetServerAddress() { - return this.serverAddress != null; - } - - public void setServerAddressIsSet(boolean value) { - if (!value) { - this.serverAddress = null; - } - } - - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case SESSION_ID: - if (value == null) { - unsetSessionId(); - } else { - setSessionId((String)value); - } - break; - - case AUTH_TOKEN: - if (value == null) { - unsetAuthToken(); - } else { - setAuthToken((String)value); - } - break; - - case SERVER_ADDRESS: - if (value == null) { - unsetServerAddress(); - } else { - setServerAddress((String)value); - } - break; - - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - case SESSION_ID: - return getSessionId(); - - case AUTH_TOKEN: - return getAuthToken(); - - case SERVER_ADDRESS: - return getServerAddress(); - - } - throw new IllegalStateException(); - } - - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ - public boolean isSet(_Fields field) { - if (field == null) { - throw new IllegalArgumentException(); - } - - switch (field) { - case SESSION_ID: - return isSetSessionId(); - case AUTH_TOKEN: - return isSetAuthToken(); - case SERVER_ADDRESS: - return isSetServerAddress(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof SessionData) - return this.equals((SessionData)that); - return false; - } - - public boolean equals(SessionData that) { - if (that == null) - return false; - - boolean this_present_sessionId = true && this.isSetSessionId(); - boolean that_present_sessionId = true && that.isSetSessionId(); - if (this_present_sessionId || that_present_sessionId) { - if (!(this_present_sessionId && that_present_sessionId)) - return false; - if (!this.sessionId.equals(that.sessionId)) - return false; - } - - boolean this_present_authToken = true && this.isSetAuthToken(); - boolean that_present_authToken = true && that.isSetAuthToken(); - if (this_present_authToken || that_present_authToken) { - if (!(this_present_authToken && that_present_authToken)) - return false; - if (!this.authToken.equals(that.authToken)) - return false; - } - - boolean this_present_serverAddress = true && this.isSetServerAddress(); - boolean that_present_serverAddress = true && that.isSetServerAddress(); - if (this_present_serverAddress || that_present_serverAddress) { - if (!(this_present_serverAddress && that_present_serverAddress)) - return false; - if (!this.serverAddress.equals(that.serverAddress)) - return false; - } - - return true; - } - - @Override - public int hashCode() { - return 0; - } - - @Override - public int compareTo(SessionData other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(other.isSetSessionId()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetSessionId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionId, other.sessionId); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetAuthToken()).compareTo(other.isSetAuthToken()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetAuthToken()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authToken, other.authToken); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetServerAddress()).compareTo(other.isSetServerAddress()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetServerAddress()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverAddress, other.serverAddress); - if (lastComparison != 0) { - return lastComparison; - } - } - return 0; - } - - public _Fields fieldForId(int fieldId) { - return _Fields.findByThriftId(fieldId); - } - - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("SessionData("); - boolean first = true; - - sb.append("sessionId:"); - if (this.sessionId == null) { - sb.append("null"); - } else { - sb.append(this.sessionId); - } - first = false; - if (!first) sb.append(", "); - sb.append("authToken:"); - if (this.authToken == null) { - sb.append("null"); - } else { - sb.append(this.authToken); - } - first = false; - if (!first) sb.append(", "); - sb.append("serverAddress:"); - if (this.serverAddress == null) { - sb.append("null"); - } else { - sb.append(this.serverAddress); - } - first = false; - sb.append(")"); - return sb.toString(); - } - - public void validate() throws org.apache.thrift.TException { - // check for required fields - // check for sub-struct validity - } - - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { - try { - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); - } catch (org.apache.thrift.TException te) { - JOptionPane.showMessageDialog(null, - te.getCause()+"\n"+te.getMessage(), - "Debug-Message", JOptionPane.ERROR_MESSAGE); - 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) { - JOptionPane.showMessageDialog(null, - te.getCause()+"\n"+te.getMessage(), - "Debug-Message", JOptionPane.ERROR_MESSAGE); - throw new java.io.IOException(te); - } - } - - private static class SessionDataStandardSchemeFactory implements SchemeFactory { - public SessionDataStandardScheme getScheme() { - return new SessionDataStandardScheme(); - } - } - - private static class SessionDataStandardScheme extends StandardScheme<SessionData> { - - public void read(org.apache.thrift.protocol.TProtocol iprot, SessionData struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SESSION_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.sessionId = iprot.readString(); - struct.setSessionIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // AUTH_TOKEN - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.authToken = iprot.readString(); - struct.setAuthTokenIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // SERVER_ADDRESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.serverAddress = iprot.readString(); - struct.setServerAddressIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot, SessionData struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (struct.sessionId != null) { - oprot.writeFieldBegin(SESSION_ID_FIELD_DESC); - oprot.writeString(struct.sessionId); - oprot.writeFieldEnd(); - } - if (struct.authToken != null) { - oprot.writeFieldBegin(AUTH_TOKEN_FIELD_DESC); - oprot.writeString(struct.authToken); - oprot.writeFieldEnd(); - } - if (struct.serverAddress != null) { - oprot.writeFieldBegin(SERVER_ADDRESS_FIELD_DESC); - oprot.writeString(struct.serverAddress); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class SessionDataTupleSchemeFactory implements SchemeFactory { - public SessionDataTupleScheme getScheme() { - return new SessionDataTupleScheme(); - } - } - - private static class SessionDataTupleScheme extends TupleScheme<SessionData> { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, SessionData struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetSessionId()) { - optionals.set(0); - } - if (struct.isSetAuthToken()) { - optionals.set(1); - } - if (struct.isSetServerAddress()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); - if (struct.isSetSessionId()) { - oprot.writeString(struct.sessionId); - } - if (struct.isSetAuthToken()) { - oprot.writeString(struct.authToken); - } - if (struct.isSetServerAddress()) { - oprot.writeString(struct.serverAddress); - } - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, SessionData struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.sessionId = iprot.readString(); - struct.setSessionIdIsSet(true); - } - if (incoming.get(1)) { - struct.authToken = iprot.readString(); - struct.setAuthTokenIsSet(true); - } - if (incoming.get(2)) { - struct.serverAddress = iprot.readString(); - struct.setServerAddressIsSet(true); - } - } - } - -} - diff --git a/Dozentenmodul/src/thrift/UserInfo.java b/Dozentenmodul/src/thrift/UserInfo.java deleted file mode 100644 index 56678646..00000000 --- a/Dozentenmodul/src/thrift/UserInfo.java +++ /dev/null @@ -1,688 +0,0 @@ -/** - * Autogenerated by Thrift Compiler (0.9.1) - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -package thrift; - -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -public class UserInfo implements org.apache.thrift.TBase<UserInfo, UserInfo._Fields>, java.io.Serializable, Cloneable, Comparable<UserInfo> { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UserInfo"); - - private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField FIRST_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("firstName", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField LAST_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lastName", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final org.apache.thrift.protocol.TField E_MAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("eMail", org.apache.thrift.protocol.TType.STRING, (short)4); - - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new UserInfoStandardSchemeFactory()); - schemes.put(TupleScheme.class, new UserInfoTupleSchemeFactory()); - } - - public String userId; // required - public String firstName; // required - public String lastName; // required - public String eMail; // required - - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements org.apache.thrift.TFieldIdEnum { - USER_ID((short)1, "userId"), - FIRST_NAME((short)2, "firstName"), - LAST_NAME((short)3, "lastName"), - E_MAIL((short)4, "eMail"); - - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); - - static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { - byName.put(field.getFieldName(), field); - } - } - - /** - * Find the _Fields constant that matches fieldId, or null if its not found. - */ - public static _Fields findByThriftId(int fieldId) { - switch(fieldId) { - case 1: // USER_ID - return USER_ID; - case 2: // FIRST_NAME - return FIRST_NAME; - case 3: // LAST_NAME - return LAST_NAME; - case 4: // E_MAIL - return E_MAIL; - default: - return null; - } - } - - /** - * Find the _Fields constant that matches fieldId, throwing an exception - * if it is not found. - */ - public static _Fields findByThriftIdOrThrow(int fieldId) { - _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); - return fields; - } - - /** - * Find the _Fields constant that matches name, or null if its not found. - */ - public static _Fields findByName(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.FIRST_NAME, new org.apache.thrift.meta_data.FieldMetaData("firstName", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.LAST_NAME, new org.apache.thrift.meta_data.FieldMetaData("lastName", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.E_MAIL, new org.apache.thrift.meta_data.FieldMetaData("eMail", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(UserInfo.class, metaDataMap); - } - - public UserInfo() { - } - - public UserInfo( - String userId, - String firstName, - String lastName, - String eMail) - { - this(); - this.userId = userId; - this.firstName = firstName; - this.lastName = lastName; - this.eMail = eMail; - } - - /** - * Performs a deep copy on <i>other</i>. - */ - public UserInfo(UserInfo other) { - if (other.isSetUserId()) { - this.userId = other.userId; - } - if (other.isSetFirstName()) { - this.firstName = other.firstName; - } - if (other.isSetLastName()) { - this.lastName = other.lastName; - } - if (other.isSetEMail()) { - this.eMail = other.eMail; - } - } - - public UserInfo deepCopy() { - return new UserInfo(this); - } - - @Override - public void clear() { - this.userId = null; - this.firstName = null; - this.lastName = null; - this.eMail = null; - } - - public String getUserId() { - return this.userId; - } - - public UserInfo setUserId(String userId) { - this.userId = userId; - return this; - } - - public void unsetUserId() { - this.userId = null; - } - - /** Returns true if field userId is set (has been assigned a value) and false otherwise */ - public boolean isSetUserId() { - return this.userId != null; - } - - public void setUserIdIsSet(boolean value) { - if (!value) { - this.userId = null; - } - } - - public String getFirstName() { - return this.firstName; - } - - public UserInfo setFirstName(String firstName) { - this.firstName = firstName; - return this; - } - - public void unsetFirstName() { - this.firstName = null; - } - - /** Returns true if field firstName is set (has been assigned a value) and false otherwise */ - public boolean isSetFirstName() { - return this.firstName != null; - } - - public void setFirstNameIsSet(boolean value) { - if (!value) { - this.firstName = null; - } - } - - public String getLastName() { - return this.lastName; - } - - public UserInfo setLastName(String lastName) { - this.lastName = lastName; - return this; - } - - public void unsetLastName() { - this.lastName = null; - } - - /** Returns true if field lastName is set (has been assigned a value) and false otherwise */ - public boolean isSetLastName() { - return this.lastName != null; - } - - public void setLastNameIsSet(boolean value) { - if (!value) { - this.lastName = null; - } - } - - public String getEMail() { - return this.eMail; - } - - public UserInfo setEMail(String eMail) { - this.eMail = eMail; - return this; - } - - public void unsetEMail() { - this.eMail = null; - } - - /** Returns true if field eMail is set (has been assigned a value) and false otherwise */ - public boolean isSetEMail() { - return this.eMail != null; - } - - public void setEMailIsSet(boolean value) { - if (!value) { - this.eMail = null; - } - } - - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case USER_ID: - if (value == null) { - unsetUserId(); - } else { - setUserId((String)value); - } - break; - - case FIRST_NAME: - if (value == null) { - unsetFirstName(); - } else { - setFirstName((String)value); - } - break; - - case LAST_NAME: - if (value == null) { - unsetLastName(); - } else { - setLastName((String)value); - } - break; - - case E_MAIL: - if (value == null) { - unsetEMail(); - } else { - setEMail((String)value); - } - break; - - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - case USER_ID: - return getUserId(); - - case FIRST_NAME: - return getFirstName(); - - case LAST_NAME: - return getLastName(); - - case E_MAIL: - return getEMail(); - - } - throw new IllegalStateException(); - } - - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ - public boolean isSet(_Fields field) { - if (field == null) { - throw new IllegalArgumentException(); - } - - switch (field) { - case USER_ID: - return isSetUserId(); - case FIRST_NAME: - return isSetFirstName(); - case LAST_NAME: - return isSetLastName(); - case E_MAIL: - return isSetEMail(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof UserInfo) - return this.equals((UserInfo)that); - return false; - } - - public boolean equals(UserInfo that) { - if (that == null) - return false; - - boolean this_present_userId = true && this.isSetUserId(); - boolean that_present_userId = true && that.isSetUserId(); - if (this_present_userId || that_present_userId) { - if (!(this_present_userId && that_present_userId)) - return false; - if (!this.userId.equals(that.userId)) - return false; - } - - boolean this_present_firstName = true && this.isSetFirstName(); - boolean that_present_firstName = true && that.isSetFirstName(); - if (this_present_firstName || that_present_firstName) { - if (!(this_present_firstName && that_present_firstName)) - return false; - if (!this.firstName.equals(that.firstName)) - return false; - } - - boolean this_present_lastName = true && this.isSetLastName(); - boolean that_present_lastName = true && that.isSetLastName(); - if (this_present_lastName || that_present_lastName) { - if (!(this_present_lastName && that_present_lastName)) - return false; - if (!this.lastName.equals(that.lastName)) - return false; - } - - boolean this_present_eMail = true && this.isSetEMail(); - boolean that_present_eMail = true && that.isSetEMail(); - if (this_present_eMail || that_present_eMail) { - if (!(this_present_eMail && that_present_eMail)) - return false; - if (!this.eMail.equals(that.eMail)) - return false; - } - - return true; - } - - @Override - public int hashCode() { - return 0; - } - - @Override - public int compareTo(UserInfo other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetUserId()).compareTo(other.isSetUserId()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetUserId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, other.userId); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetFirstName()).compareTo(other.isSetFirstName()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetFirstName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.firstName, other.firstName); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetLastName()).compareTo(other.isSetLastName()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetLastName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastName, other.lastName); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetEMail()).compareTo(other.isSetEMail()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetEMail()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eMail, other.eMail); - if (lastComparison != 0) { - return lastComparison; - } - } - return 0; - } - - public _Fields fieldForId(int fieldId) { - return _Fields.findByThriftId(fieldId); - } - - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("UserInfo("); - boolean first = true; - - sb.append("userId:"); - if (this.userId == null) { - sb.append("null"); - } else { - sb.append(this.userId); - } - first = false; - if (!first) sb.append(", "); - sb.append("firstName:"); - if (this.firstName == null) { - sb.append("null"); - } else { - sb.append(this.firstName); - } - first = false; - if (!first) sb.append(", "); - sb.append("lastName:"); - if (this.lastName == null) { - sb.append("null"); - } else { - sb.append(this.lastName); - } - first = false; - if (!first) sb.append(", "); - sb.append("eMail:"); - if (this.eMail == null) { - sb.append("null"); - } else { - sb.append(this.eMail); - } - first = false; - sb.append(")"); - return sb.toString(); - } - - public void validate() throws org.apache.thrift.TException { - // check for required fields - // check for sub-struct validity - } - - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { - try { - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } - } - - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { - try { - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } - } - - private static class UserInfoStandardSchemeFactory implements SchemeFactory { - public UserInfoStandardScheme getScheme() { - return new UserInfoStandardScheme(); - } - } - - private static class UserInfoStandardScheme extends StandardScheme<UserInfo> { - - public void read(org.apache.thrift.protocol.TProtocol iprot, UserInfo struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // USER_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.userId = iprot.readString(); - struct.setUserIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // FIRST_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.firstName = iprot.readString(); - struct.setFirstNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // LAST_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.lastName = iprot.readString(); - struct.setLastNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // E_MAIL - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.eMail = iprot.readString(); - struct.setEMailIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot, UserInfo struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (struct.userId != null) { - oprot.writeFieldBegin(USER_ID_FIELD_DESC); - oprot.writeString(struct.userId); - oprot.writeFieldEnd(); - } - if (struct.firstName != null) { - oprot.writeFieldBegin(FIRST_NAME_FIELD_DESC); - oprot.writeString(struct.firstName); - oprot.writeFieldEnd(); - } - if (struct.lastName != null) { - oprot.writeFieldBegin(LAST_NAME_FIELD_DESC); - oprot.writeString(struct.lastName); - oprot.writeFieldEnd(); - } - if (struct.eMail != null) { - oprot.writeFieldBegin(E_MAIL_FIELD_DESC); - oprot.writeString(struct.eMail); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class UserInfoTupleSchemeFactory implements SchemeFactory { - public UserInfoTupleScheme getScheme() { - return new UserInfoTupleScheme(); - } - } - - private static class UserInfoTupleScheme extends TupleScheme<UserInfo> { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, UserInfo struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetUserId()) { - optionals.set(0); - } - if (struct.isSetFirstName()) { - optionals.set(1); - } - if (struct.isSetLastName()) { - optionals.set(2); - } - if (struct.isSetEMail()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); - if (struct.isSetUserId()) { - oprot.writeString(struct.userId); - } - if (struct.isSetFirstName()) { - oprot.writeString(struct.firstName); - } - if (struct.isSetLastName()) { - oprot.writeString(struct.lastName); - } - if (struct.isSetEMail()) { - oprot.writeString(struct.eMail); - } - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, UserInfo struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.userId = iprot.readString(); - struct.setUserIdIsSet(true); - } - if (incoming.get(1)) { - struct.firstName = iprot.readString(); - struct.setFirstNameIsSet(true); - } - if (incoming.get(2)) { - struct.lastName = iprot.readString(); - struct.setLastNameIsSet(true); - } - if (incoming.get(3)) { - struct.eMail = iprot.readString(); - struct.setEMailIsSet(true); - } - } - } - -} - |