From ccf5fac0905fc2535c9a5a2e5f01a35b31c606d4 Mon Sep 17 00:00:00 2001
From: Simon Rettberg
Date: Mon, 14 Jul 2014 18:54:00 +0200
Subject: Converted DMS to Maven project (1/2)
---
.gitignore | 5 +
Dozentenmodulserver/.classpath | 13 -
Dozentenmodulserver/.project | 17 -
.../.settings/org.eclipse.jdt.core.prefs | 11 -
...eData_args$getLectureData_argsTupleScheme.class | Bin 2145 -> 0 bytes
.../Server$getLectureData_result$_Fields.class | Bin 3040 -> 0 bytes
.../server/Server$getPersonData_args$_Fields.class | Bin 3096 -> 0 bytes
.../Server$getPersonData_result$_Fields.class | Bin 3030 -> 0 bytes
...args$startFileCopy_argsTupleSchemeFactory.class | Bin 1138 -> 0 bytes
.../bin/server/Server$startFileCopy_args.class | Bin 9460 -> 0 bytes
.../Server$startFileCopy_result$_Fields.class | Bin 3030 -> 0 bytes
.../bin/server/Server$updateImageData_args.class | Bin 23421 -> 0 bytes
.../Server$updateImageData_result$_Fields.class | Bin 3050 -> 0 bytes
.../bin/server/Server$updateImageData_result.class | Bin 9798 -> 0 bytes
...s$writeLecturedata_argsTupleSchemeFactory.class | Bin 1186 -> 0 bytes
.../bin/server/Server$writeLecturedata_args.class | Bin 25807 -> 0 bytes
.../Server$writeLecturedata_result$_Fields.class | Bin 3060 -> 0 bytes
.../bin/server/Server$writeVLdata_args.class | Bin 28202 -> 0 bytes
Dozentenmodulserver/bin/sql/SQL.class | Bin 22570 -> 0 bytes
Dozentenmodulserver/bin/util/XMLCreator.class | Bin 7557 -> 0 bytes
Dozentenmodulserver/lib/commons-io-2.4.jar | Bin 185140 -> 0 bytes
Dozentenmodulserver/lib/ini4j-0.5.2-SNAPSHOT.jar | Bin 101592 -> 0 bytes
Dozentenmodulserver/lib/libthrift-0.9.1.jar | Bin 217053 -> 0 bytes
Dozentenmodulserver/lib/log4j-1.2.17.jar | Bin 489884 -> 0 bytes
.../lib/mysql-connector-java-5.1.25-bin.jar | Bin 848401 -> 0 bytes
Dozentenmodulserver/lib/slf4j-api-1.7.5.jar | Bin 26084 -> 0 bytes
Dozentenmodulserver/lib/slf4j-simple-1.7.5.jar | Bin 10680 -> 0 bytes
Dozentenmodulserver/pom.xml | 107 +
.../src/main/java/models/Configuration.java | 39 +
.../src/main/java/server/BinaryListener.java | 48 +
.../src/main/java/server/Image.java | 1088 +
.../src/main/java/server/Lecture.java | 1188 +
.../src/main/java/server/Server.java | 21391 +++++++++++++++++++
.../src/main/java/server/ServerHandler.java | 401 +
.../src/main/java/server/StartServer.java | 101 +
.../src/main/java/server/TBinaryProtocolSafe.java | 123 +
Dozentenmodulserver/src/main/java/server/User.java | 588 +
Dozentenmodulserver/src/main/java/sql/SQL.java | 753 +
.../src/main/java/util/XMLCreator.java | 225 +
Dozentenmodulserver/src/models/Configuration.java | 39 -
Dozentenmodulserver/src/server/BinaryListener.java | 48 -
Dozentenmodulserver/src/server/Image.java | 1088 -
Dozentenmodulserver/src/server/Lecture.java | 1188 -
Dozentenmodulserver/src/server/Server.java | 21391 -------------------
Dozentenmodulserver/src/server/ServerHandler.java | 401 -
.../src/server/TBinaryProtocolSafe.java | 123 -
Dozentenmodulserver/src/server/User.java | 588 -
Dozentenmodulserver/src/server/startServer.java | 101 -
Dozentenmodulserver/src/sql/SQL.java | 753 -
.../src/test/java/bwlehrpool/AppTest.java | 38 +
Dozentenmodulserver/src/util/XMLCreator.java | 225 -
51 files changed, 26095 insertions(+), 25986 deletions(-)
delete mode 100644 Dozentenmodulserver/.classpath
delete mode 100644 Dozentenmodulserver/.project
delete mode 100644 Dozentenmodulserver/.settings/org.eclipse.jdt.core.prefs
delete mode 100644 Dozentenmodulserver/bin/server/Server$getLectureData_args$getLectureData_argsTupleScheme.class
delete mode 100644 Dozentenmodulserver/bin/server/Server$getLectureData_result$_Fields.class
delete mode 100644 Dozentenmodulserver/bin/server/Server$getPersonData_args$_Fields.class
delete mode 100644 Dozentenmodulserver/bin/server/Server$getPersonData_result$_Fields.class
delete mode 100644 Dozentenmodulserver/bin/server/Server$startFileCopy_args$startFileCopy_argsTupleSchemeFactory.class
delete mode 100644 Dozentenmodulserver/bin/server/Server$startFileCopy_args.class
delete mode 100644 Dozentenmodulserver/bin/server/Server$startFileCopy_result$_Fields.class
delete mode 100644 Dozentenmodulserver/bin/server/Server$updateImageData_args.class
delete mode 100644 Dozentenmodulserver/bin/server/Server$updateImageData_result$_Fields.class
delete mode 100644 Dozentenmodulserver/bin/server/Server$updateImageData_result.class
delete mode 100644 Dozentenmodulserver/bin/server/Server$writeLecturedata_args$writeLecturedata_argsTupleSchemeFactory.class
delete mode 100644 Dozentenmodulserver/bin/server/Server$writeLecturedata_args.class
delete mode 100644 Dozentenmodulserver/bin/server/Server$writeLecturedata_result$_Fields.class
delete mode 100644 Dozentenmodulserver/bin/server/Server$writeVLdata_args.class
delete mode 100644 Dozentenmodulserver/bin/sql/SQL.class
delete mode 100644 Dozentenmodulserver/bin/util/XMLCreator.class
delete mode 100644 Dozentenmodulserver/lib/commons-io-2.4.jar
delete mode 100644 Dozentenmodulserver/lib/ini4j-0.5.2-SNAPSHOT.jar
delete mode 100644 Dozentenmodulserver/lib/libthrift-0.9.1.jar
delete mode 100644 Dozentenmodulserver/lib/log4j-1.2.17.jar
delete mode 100644 Dozentenmodulserver/lib/mysql-connector-java-5.1.25-bin.jar
delete mode 100644 Dozentenmodulserver/lib/slf4j-api-1.7.5.jar
delete mode 100644 Dozentenmodulserver/lib/slf4j-simple-1.7.5.jar
create mode 100644 Dozentenmodulserver/pom.xml
create mode 100644 Dozentenmodulserver/src/main/java/models/Configuration.java
create mode 100644 Dozentenmodulserver/src/main/java/server/BinaryListener.java
create mode 100644 Dozentenmodulserver/src/main/java/server/Image.java
create mode 100644 Dozentenmodulserver/src/main/java/server/Lecture.java
create mode 100644 Dozentenmodulserver/src/main/java/server/Server.java
create mode 100644 Dozentenmodulserver/src/main/java/server/ServerHandler.java
create mode 100644 Dozentenmodulserver/src/main/java/server/StartServer.java
create mode 100644 Dozentenmodulserver/src/main/java/server/TBinaryProtocolSafe.java
create mode 100644 Dozentenmodulserver/src/main/java/server/User.java
create mode 100644 Dozentenmodulserver/src/main/java/sql/SQL.java
create mode 100644 Dozentenmodulserver/src/main/java/util/XMLCreator.java
delete mode 100644 Dozentenmodulserver/src/models/Configuration.java
delete mode 100644 Dozentenmodulserver/src/server/BinaryListener.java
delete mode 100644 Dozentenmodulserver/src/server/Image.java
delete mode 100644 Dozentenmodulserver/src/server/Lecture.java
delete mode 100644 Dozentenmodulserver/src/server/Server.java
delete mode 100644 Dozentenmodulserver/src/server/ServerHandler.java
delete mode 100644 Dozentenmodulserver/src/server/TBinaryProtocolSafe.java
delete mode 100644 Dozentenmodulserver/src/server/User.java
delete mode 100644 Dozentenmodulserver/src/server/startServer.java
delete mode 100644 Dozentenmodulserver/src/sql/SQL.java
create mode 100644 Dozentenmodulserver/src/test/java/bwlehrpool/AppTest.java
delete mode 100644 Dozentenmodulserver/src/util/XMLCreator.java
diff --git a/.gitignore b/.gitignore
index 6b468b62..edd3cec5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,6 @@
*.class
+.project
+.classpath
+.settings/
+target/
+bin/
diff --git a/Dozentenmodulserver/.classpath b/Dozentenmodulserver/.classpath
deleted file mode 100644
index 7c84817e..00000000
--- a/Dozentenmodulserver/.classpath
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Dozentenmodulserver/.project b/Dozentenmodulserver/.project
deleted file mode 100644
index 713974ca..00000000
--- a/Dozentenmodulserver/.project
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
- bwLehrpoolSuite_Server
-
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
-
- org.eclipse.jdt.core.javanature
-
-
diff --git a/Dozentenmodulserver/.settings/org.eclipse.jdt.core.prefs b/Dozentenmodulserver/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 838bd9d6..00000000
--- a/Dozentenmodulserver/.settings/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/Dozentenmodulserver/bin/server/Server$getLectureData_args$getLectureData_argsTupleScheme.class b/Dozentenmodulserver/bin/server/Server$getLectureData_args$getLectureData_argsTupleScheme.class
deleted file mode 100644
index 4c38d18d..00000000
Binary files a/Dozentenmodulserver/bin/server/Server$getLectureData_args$getLectureData_argsTupleScheme.class and /dev/null differ
diff --git a/Dozentenmodulserver/bin/server/Server$getLectureData_result$_Fields.class b/Dozentenmodulserver/bin/server/Server$getLectureData_result$_Fields.class
deleted file mode 100644
index 4125b7ed..00000000
Binary files a/Dozentenmodulserver/bin/server/Server$getLectureData_result$_Fields.class and /dev/null differ
diff --git a/Dozentenmodulserver/bin/server/Server$getPersonData_args$_Fields.class b/Dozentenmodulserver/bin/server/Server$getPersonData_args$_Fields.class
deleted file mode 100644
index 23fdf07e..00000000
Binary files a/Dozentenmodulserver/bin/server/Server$getPersonData_args$_Fields.class and /dev/null differ
diff --git a/Dozentenmodulserver/bin/server/Server$getPersonData_result$_Fields.class b/Dozentenmodulserver/bin/server/Server$getPersonData_result$_Fields.class
deleted file mode 100644
index a0551a3c..00000000
Binary files a/Dozentenmodulserver/bin/server/Server$getPersonData_result$_Fields.class and /dev/null differ
diff --git a/Dozentenmodulserver/bin/server/Server$startFileCopy_args$startFileCopy_argsTupleSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$startFileCopy_args$startFileCopy_argsTupleSchemeFactory.class
deleted file mode 100644
index e8adfd24..00000000
Binary files a/Dozentenmodulserver/bin/server/Server$startFileCopy_args$startFileCopy_argsTupleSchemeFactory.class and /dev/null differ
diff --git a/Dozentenmodulserver/bin/server/Server$startFileCopy_args.class b/Dozentenmodulserver/bin/server/Server$startFileCopy_args.class
deleted file mode 100644
index c6b7ce8d..00000000
Binary files a/Dozentenmodulserver/bin/server/Server$startFileCopy_args.class and /dev/null differ
diff --git a/Dozentenmodulserver/bin/server/Server$startFileCopy_result$_Fields.class b/Dozentenmodulserver/bin/server/Server$startFileCopy_result$_Fields.class
deleted file mode 100644
index 0fd71044..00000000
Binary files a/Dozentenmodulserver/bin/server/Server$startFileCopy_result$_Fields.class and /dev/null differ
diff --git a/Dozentenmodulserver/bin/server/Server$updateImageData_args.class b/Dozentenmodulserver/bin/server/Server$updateImageData_args.class
deleted file mode 100644
index cbbf2577..00000000
Binary files a/Dozentenmodulserver/bin/server/Server$updateImageData_args.class and /dev/null differ
diff --git a/Dozentenmodulserver/bin/server/Server$updateImageData_result$_Fields.class b/Dozentenmodulserver/bin/server/Server$updateImageData_result$_Fields.class
deleted file mode 100644
index e15b535c..00000000
Binary files a/Dozentenmodulserver/bin/server/Server$updateImageData_result$_Fields.class and /dev/null differ
diff --git a/Dozentenmodulserver/bin/server/Server$updateImageData_result.class b/Dozentenmodulserver/bin/server/Server$updateImageData_result.class
deleted file mode 100644
index 244244ab..00000000
Binary files a/Dozentenmodulserver/bin/server/Server$updateImageData_result.class and /dev/null differ
diff --git a/Dozentenmodulserver/bin/server/Server$writeLecturedata_args$writeLecturedata_argsTupleSchemeFactory.class b/Dozentenmodulserver/bin/server/Server$writeLecturedata_args$writeLecturedata_argsTupleSchemeFactory.class
deleted file mode 100644
index d3767956..00000000
Binary files a/Dozentenmodulserver/bin/server/Server$writeLecturedata_args$writeLecturedata_argsTupleSchemeFactory.class and /dev/null differ
diff --git a/Dozentenmodulserver/bin/server/Server$writeLecturedata_args.class b/Dozentenmodulserver/bin/server/Server$writeLecturedata_args.class
deleted file mode 100644
index 20d475b0..00000000
Binary files a/Dozentenmodulserver/bin/server/Server$writeLecturedata_args.class and /dev/null differ
diff --git a/Dozentenmodulserver/bin/server/Server$writeLecturedata_result$_Fields.class b/Dozentenmodulserver/bin/server/Server$writeLecturedata_result$_Fields.class
deleted file mode 100644
index 96d62007..00000000
Binary files a/Dozentenmodulserver/bin/server/Server$writeLecturedata_result$_Fields.class and /dev/null differ
diff --git a/Dozentenmodulserver/bin/server/Server$writeVLdata_args.class b/Dozentenmodulserver/bin/server/Server$writeVLdata_args.class
deleted file mode 100644
index c55a82b1..00000000
Binary files a/Dozentenmodulserver/bin/server/Server$writeVLdata_args.class and /dev/null differ
diff --git a/Dozentenmodulserver/bin/sql/SQL.class b/Dozentenmodulserver/bin/sql/SQL.class
deleted file mode 100644
index f12de705..00000000
Binary files a/Dozentenmodulserver/bin/sql/SQL.class and /dev/null differ
diff --git a/Dozentenmodulserver/bin/util/XMLCreator.class b/Dozentenmodulserver/bin/util/XMLCreator.class
deleted file mode 100644
index cfdf6004..00000000
Binary files a/Dozentenmodulserver/bin/util/XMLCreator.class and /dev/null differ
diff --git a/Dozentenmodulserver/lib/commons-io-2.4.jar b/Dozentenmodulserver/lib/commons-io-2.4.jar
deleted file mode 100644
index 90035a4f..00000000
Binary files a/Dozentenmodulserver/lib/commons-io-2.4.jar and /dev/null differ
diff --git a/Dozentenmodulserver/lib/ini4j-0.5.2-SNAPSHOT.jar b/Dozentenmodulserver/lib/ini4j-0.5.2-SNAPSHOT.jar
deleted file mode 100644
index 6f6877c5..00000000
Binary files a/Dozentenmodulserver/lib/ini4j-0.5.2-SNAPSHOT.jar and /dev/null differ
diff --git a/Dozentenmodulserver/lib/libthrift-0.9.1.jar b/Dozentenmodulserver/lib/libthrift-0.9.1.jar
deleted file mode 100644
index ec8ab1d9..00000000
Binary files a/Dozentenmodulserver/lib/libthrift-0.9.1.jar and /dev/null differ
diff --git a/Dozentenmodulserver/lib/log4j-1.2.17.jar b/Dozentenmodulserver/lib/log4j-1.2.17.jar
deleted file mode 100644
index 1d425cf7..00000000
Binary files a/Dozentenmodulserver/lib/log4j-1.2.17.jar and /dev/null differ
diff --git a/Dozentenmodulserver/lib/mysql-connector-java-5.1.25-bin.jar b/Dozentenmodulserver/lib/mysql-connector-java-5.1.25-bin.jar
deleted file mode 100644
index 207232df..00000000
Binary files a/Dozentenmodulserver/lib/mysql-connector-java-5.1.25-bin.jar and /dev/null differ
diff --git a/Dozentenmodulserver/lib/slf4j-api-1.7.5.jar b/Dozentenmodulserver/lib/slf4j-api-1.7.5.jar
deleted file mode 100644
index 8f004d39..00000000
Binary files a/Dozentenmodulserver/lib/slf4j-api-1.7.5.jar and /dev/null differ
diff --git a/Dozentenmodulserver/lib/slf4j-simple-1.7.5.jar b/Dozentenmodulserver/lib/slf4j-simple-1.7.5.jar
deleted file mode 100644
index 9dece319..00000000
Binary files a/Dozentenmodulserver/lib/slf4j-simple-1.7.5.jar and /dev/null differ
diff --git a/Dozentenmodulserver/pom.xml b/Dozentenmodulserver/pom.xml
new file mode 100644
index 00000000..dc578ff8
--- /dev/null
+++ b/Dozentenmodulserver/pom.xml
@@ -0,0 +1,107 @@
+
+ 4.0.0
+
+ bwlehrpool
+ dms
+ 1.0-SNAPSHOT
+ jar
+
+ dms
+ http://maven.apache.org
+
+
+ UTF-8
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.1
+
+
+ 1.7
+
+
+
+ maven-assembly-plugin
+
+
+ package
+
+ single
+
+
+
+
+
+
+ server.StartServer
+
+
+
+ jar-with-dependencies
+
+
+
+
+ maven-assembly-plugin
+
+
+ package
+
+ single
+
+
+
+
+
+
+
+
+
+ org.apache.thrift
+ libthrift
+ 0.9.1
+ compile
+
+
+ mysql
+ mysql-connector-java
+ 5.1.28
+ compile
+
+
+ commons-io
+ commons-io
+ 2.4
+ compile
+
+
+ log4j
+ log4j
+ 1.2.17
+ compile
+
+
+ org.ini4j
+ ini4j
+ 0.5.2
+
+
+ org.slf4j
+ slf4j-log4j12
+ 1.5.8
+ compile
+
+
+ junit
+ junit
+ 3.8.1
+ test
+
+
+
+
diff --git a/Dozentenmodulserver/src/main/java/models/Configuration.java b/Dozentenmodulserver/src/main/java/models/Configuration.java
new file mode 100644
index 00000000..1e616466
--- /dev/null
+++ b/Dozentenmodulserver/src/main/java/models/Configuration.java
@@ -0,0 +1,39 @@
+package models;
+
+public class Configuration {
+
+ private String absolute_path;
+ private String sql_connection;
+ private String sql_user;
+ private String sql_pass;
+
+ public static Configuration config =new Configuration();
+
+ public String getAbsolute_path() {
+ return absolute_path;
+ }
+ public void setAbsolute_path(String absolute_path) {
+ this.absolute_path = absolute_path;
+ }
+ public String getSql_connection() {
+ return sql_connection;
+ }
+ public void setSql_connection(String sql_connection) {
+ this.sql_connection = sql_connection;
+ }
+ public String getSql_user() {
+ return sql_user;
+ }
+ public void setSql_user(String sql_user) {
+ this.sql_user = sql_user;
+ }
+ public String getSql_pass() {
+ return sql_pass;
+ }
+ public void setSql_pass(String sql_pass) {
+ this.sql_pass = sql_pass;
+ }
+
+
+
+}
diff --git a/Dozentenmodulserver/src/main/java/server/BinaryListener.java b/Dozentenmodulserver/src/main/java/server/BinaryListener.java
new file mode 100644
index 00000000..ffeb9bd5
--- /dev/null
+++ b/Dozentenmodulserver/src/main/java/server/BinaryListener.java
@@ -0,0 +1,48 @@
+package server;
+
+import java.util.Date;
+
+import org.apache.log4j.Logger;
+import org.apache.thrift.protocol.TProtocolFactory;
+import org.apache.thrift.server.TServer;
+import org.apache.thrift.server.TThreadPoolServer.Args;
+import org.apache.thrift.server.TThreadPoolServer;
+import org.apache.thrift.transport.TServerSocket;
+import org.apache.thrift.transport.TServerTransport;
+import org.apache.thrift.transport.TTransportException;
+
+public class BinaryListener implements Runnable {
+ private static Logger log = Logger.getLogger(BinaryListener.class);
+
+ private final int MINWORKERTHREADS = 20; // keine ahnung ob das passt...
+ private final int MAXWORKERTHREADS = 80; // ebenso
+
+ @Override
+ public void run() {
+ final ServerHandler handler = new ServerHandler();
+ final Server.Processor processor = new Server.Processor(
+ handler);
+ final TServerTransport transport;
+ final TProtocolFactory protFactory = new TBinaryProtocolSafe.Factory(
+ true, true);
+ try {
+ transport = new TServerSocket(9090);
+ log.info(new Date() + " - Connected to Port 9090");
+
+ } catch (TTransportException e) {
+ log.fatal(new Date() + " - Could not listen on port 9090");
+ return;
+ }
+ TServer server = new TThreadPoolServer(new Args(transport)
+ .protocolFactory(protFactory).processor(processor)
+ .minWorkerThreads(MINWORKERTHREADS)
+ .maxWorkerThreads(MAXWORKERTHREADS));
+
+ log.info(new Date() + " - Started running BinaryListener");
+ log.info(new Date() + " - MINWORKERTHREADS=" + MINWORKERTHREADS
+ + " and MAXWORKERTHREADS=" + MAXWORKERTHREADS + "\n");
+ server.serve();
+
+ }
+
+}
diff --git a/Dozentenmodulserver/src/main/java/server/Image.java b/Dozentenmodulserver/src/main/java/server/Image.java
new file mode 100644
index 00000000..34c2b45c
--- /dev/null
+++ b/Dozentenmodulserver/src/main/java/server/Image.java
@@ -0,0 +1,1088 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.1)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+package server;
+
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class Image implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Image");
+
+ private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.STRING, (short)-1);
+ private static final org.apache.thrift.protocol.TField VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("version", org.apache.thrift.protocol.TType.STRING, (short)-2);
+ private static final org.apache.thrift.protocol.TField IMAGE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("imageName", org.apache.thrift.protocol.TType.STRING, (short)-3);
+ private static final org.apache.thrift.protocol.TField LICENSE_RESTRICTION_FIELD_DESC = new org.apache.thrift.protocol.TField("licenseRestriction", org.apache.thrift.protocol.TType.STRING, (short)-4);
+ private static final org.apache.thrift.protocol.TField OS_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("osName", org.apache.thrift.protocol.TType.STRING, (short)-5);
+ private static final org.apache.thrift.protocol.TField LECTURE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureName", org.apache.thrift.protocol.TType.STRING, (short)-6);
+ private static final org.apache.thrift.protocol.TField UPDATE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("updateTime", org.apache.thrift.protocol.TType.STRING, (short)-7);
+ private static final org.apache.thrift.protocol.TField USER_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("userData", org.apache.thrift.protocol.TType.STRING, (short)-8);
+
+ private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new ImageStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new ImageTupleSchemeFactory());
+ }
+
+ public String id; // required
+ public String version; // required
+ public String imageName; // required
+ public String licenseRestriction; // required
+ public String osName; // required
+ public String lectureName; // required
+ public String updateTime; // required
+ public String userData; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ ID((short)-1, "id"),
+ VERSION((short)-2, "version"),
+ IMAGE_NAME((short)-3, "imageName"),
+ LICENSE_RESTRICTION((short)-4, "licenseRestriction"),
+ OS_NAME((short)-5, "osName"),
+ LECTURE_NAME((short)-6, "lectureName"),
+ UPDATE_TIME((short)-7, "updateTime"),
+ USER_DATA((short)-8, "userData");
+
+ private static final Map byName = new HashMap();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case -1: // ID
+ return ID;
+ case -2: // VERSION
+ return VERSION;
+ case -3: // IMAGE_NAME
+ return IMAGE_NAME;
+ case -4: // LICENSE_RESTRICTION
+ return LICENSE_RESTRICTION;
+ case -5: // OS_NAME
+ return OS_NAME;
+ case -6: // LECTURE_NAME
+ return LECTURE_NAME;
+ case -7: // UPDATE_TIME
+ return UPDATE_TIME;
+ case -8: // USER_DATA
+ return USER_DATA;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.VERSION, new org.apache.thrift.meta_data.FieldMetaData("version", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.IMAGE_NAME, new org.apache.thrift.meta_data.FieldMetaData("imageName", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.LICENSE_RESTRICTION, new org.apache.thrift.meta_data.FieldMetaData("licenseRestriction", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.OS_NAME, new org.apache.thrift.meta_data.FieldMetaData("osName", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.LECTURE_NAME, new org.apache.thrift.meta_data.FieldMetaData("lectureName", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.UPDATE_TIME, new org.apache.thrift.meta_data.FieldMetaData("updateTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.USER_DATA, new org.apache.thrift.meta_data.FieldMetaData("userData", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Image.class, metaDataMap);
+ }
+
+ public Image() {
+ }
+
+ public Image(
+ String id,
+ String version,
+ String imageName,
+ String licenseRestriction,
+ String osName,
+ String lectureName,
+ String updateTime,
+ String userData)
+ {
+ this();
+ this.id = id;
+ this.version = version;
+ this.imageName = imageName;
+ this.licenseRestriction = licenseRestriction;
+ this.osName = osName;
+ this.lectureName = lectureName;
+ this.updateTime = updateTime;
+ this.userData = userData;
+ }
+
+ /**
+ * Performs a deep copy on other.
+ */
+ public Image(Image other) {
+ if (other.isSetId()) {
+ this.id = other.id;
+ }
+ if (other.isSetVersion()) {
+ this.version = other.version;
+ }
+ if (other.isSetImageName()) {
+ this.imageName = other.imageName;
+ }
+ if (other.isSetLicenseRestriction()) {
+ this.licenseRestriction = other.licenseRestriction;
+ }
+ if (other.isSetOsName()) {
+ this.osName = other.osName;
+ }
+ if (other.isSetLectureName()) {
+ this.lectureName = other.lectureName;
+ }
+ if (other.isSetUpdateTime()) {
+ this.updateTime = other.updateTime;
+ }
+ if (other.isSetUserData()) {
+ this.userData = other.userData;
+ }
+ }
+
+ public Image deepCopy() {
+ return new Image(this);
+ }
+
+ @Override
+ public void clear() {
+ this.id = null;
+ this.version = null;
+ this.imageName = null;
+ this.licenseRestriction = null;
+ this.osName = null;
+ this.lectureName = null;
+ this.updateTime = null;
+ this.userData = null;
+ }
+
+ public String getId() {
+ return this.id;
+ }
+
+ public Image setId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ public void unsetId() {
+ this.id = null;
+ }
+
+ /** Returns true if field id is set (has been assigned a value) and false otherwise */
+ public boolean isSetId() {
+ return this.id != null;
+ }
+
+ public void setIdIsSet(boolean value) {
+ if (!value) {
+ this.id = null;
+ }
+ }
+
+ public String getVersion() {
+ return this.version;
+ }
+
+ public Image setVersion(String version) {
+ this.version = version;
+ return this;
+ }
+
+ public void unsetVersion() {
+ this.version = null;
+ }
+
+ /** Returns true if field version is set (has been assigned a value) and false otherwise */
+ public boolean isSetVersion() {
+ return this.version != null;
+ }
+
+ public void setVersionIsSet(boolean value) {
+ if (!value) {
+ this.version = null;
+ }
+ }
+
+ public String getImageName() {
+ return this.imageName;
+ }
+
+ public Image setImageName(String imageName) {
+ this.imageName = imageName;
+ return this;
+ }
+
+ public void unsetImageName() {
+ this.imageName = null;
+ }
+
+ /** Returns true if field imageName is set (has been assigned a value) and false otherwise */
+ public boolean isSetImageName() {
+ return this.imageName != null;
+ }
+
+ public void setImageNameIsSet(boolean value) {
+ if (!value) {
+ this.imageName = null;
+ }
+ }
+
+ public String getLicenseRestriction() {
+ return this.licenseRestriction;
+ }
+
+ public Image setLicenseRestriction(String licenseRestriction) {
+ this.licenseRestriction = licenseRestriction;
+ return this;
+ }
+
+ public void unsetLicenseRestriction() {
+ this.licenseRestriction = null;
+ }
+
+ /** Returns true if field licenseRestriction is set (has been assigned a value) and false otherwise */
+ public boolean isSetLicenseRestriction() {
+ return this.licenseRestriction != null;
+ }
+
+ public void setLicenseRestrictionIsSet(boolean value) {
+ if (!value) {
+ this.licenseRestriction = null;
+ }
+ }
+
+ public String getOsName() {
+ return this.osName;
+ }
+
+ public Image setOsName(String osName) {
+ this.osName = osName;
+ return this;
+ }
+
+ public void unsetOsName() {
+ this.osName = null;
+ }
+
+ /** Returns true if field osName is set (has been assigned a value) and false otherwise */
+ public boolean isSetOsName() {
+ return this.osName != null;
+ }
+
+ public void setOsNameIsSet(boolean value) {
+ if (!value) {
+ this.osName = null;
+ }
+ }
+
+ public String getLectureName() {
+ return this.lectureName;
+ }
+
+ public Image setLectureName(String lectureName) {
+ this.lectureName = lectureName;
+ return this;
+ }
+
+ public void unsetLectureName() {
+ this.lectureName = null;
+ }
+
+ /** Returns true if field lectureName is set (has been assigned a value) and false otherwise */
+ public boolean isSetLectureName() {
+ return this.lectureName != null;
+ }
+
+ public void setLectureNameIsSet(boolean value) {
+ if (!value) {
+ this.lectureName = null;
+ }
+ }
+
+ public String getUpdateTime() {
+ return this.updateTime;
+ }
+
+ public Image setUpdateTime(String updateTime) {
+ this.updateTime = updateTime;
+ return this;
+ }
+
+ public void unsetUpdateTime() {
+ this.updateTime = null;
+ }
+
+ /** Returns true if field updateTime is set (has been assigned a value) and false otherwise */
+ public boolean isSetUpdateTime() {
+ return this.updateTime != null;
+ }
+
+ public void setUpdateTimeIsSet(boolean value) {
+ if (!value) {
+ this.updateTime = null;
+ }
+ }
+
+ public String getUserData() {
+ return this.userData;
+ }
+
+ public Image setUserData(String userData) {
+ this.userData = userData;
+ return this;
+ }
+
+ public void unsetUserData() {
+ this.userData = null;
+ }
+
+ /** Returns true if field userData is set (has been assigned a value) and false otherwise */
+ public boolean isSetUserData() {
+ return this.userData != null;
+ }
+
+ public void setUserDataIsSet(boolean value) {
+ if (!value) {
+ this.userData = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case ID:
+ if (value == null) {
+ unsetId();
+ } else {
+ setId((String)value);
+ }
+ break;
+
+ case VERSION:
+ if (value == null) {
+ unsetVersion();
+ } else {
+ setVersion((String)value);
+ }
+ break;
+
+ case IMAGE_NAME:
+ if (value == null) {
+ unsetImageName();
+ } else {
+ setImageName((String)value);
+ }
+ break;
+
+ case LICENSE_RESTRICTION:
+ if (value == null) {
+ unsetLicenseRestriction();
+ } else {
+ setLicenseRestriction((String)value);
+ }
+ break;
+
+ case OS_NAME:
+ if (value == null) {
+ unsetOsName();
+ } else {
+ setOsName((String)value);
+ }
+ break;
+
+ case LECTURE_NAME:
+ if (value == null) {
+ unsetLectureName();
+ } else {
+ setLectureName((String)value);
+ }
+ break;
+
+ case UPDATE_TIME:
+ if (value == null) {
+ unsetUpdateTime();
+ } else {
+ setUpdateTime((String)value);
+ }
+ break;
+
+ case USER_DATA:
+ if (value == null) {
+ unsetUserData();
+ } else {
+ setUserData((String)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case ID:
+ return getId();
+
+ case VERSION:
+ return getVersion();
+
+ case IMAGE_NAME:
+ return getImageName();
+
+ case LICENSE_RESTRICTION:
+ return getLicenseRestriction();
+
+ case OS_NAME:
+ return getOsName();
+
+ case LECTURE_NAME:
+ return getLectureName();
+
+ case UPDATE_TIME:
+ return getUpdateTime();
+
+ case USER_DATA:
+ return getUserData();
+
+ }
+ throw new IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
+ switch (field) {
+ case ID:
+ return isSetId();
+ case VERSION:
+ return isSetVersion();
+ case IMAGE_NAME:
+ return isSetImageName();
+ case LICENSE_RESTRICTION:
+ return isSetLicenseRestriction();
+ case OS_NAME:
+ return isSetOsName();
+ case LECTURE_NAME:
+ return isSetLectureName();
+ case UPDATE_TIME:
+ return isSetUpdateTime();
+ case USER_DATA:
+ return isSetUserData();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof Image)
+ return this.equals((Image)that);
+ return false;
+ }
+
+ public boolean equals(Image that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_id = true && this.isSetId();
+ boolean that_present_id = true && that.isSetId();
+ if (this_present_id || that_present_id) {
+ if (!(this_present_id && that_present_id))
+ return false;
+ if (!this.id.equals(that.id))
+ return false;
+ }
+
+ boolean this_present_version = true && this.isSetVersion();
+ boolean that_present_version = true && that.isSetVersion();
+ if (this_present_version || that_present_version) {
+ if (!(this_present_version && that_present_version))
+ return false;
+ if (!this.version.equals(that.version))
+ return false;
+ }
+
+ boolean this_present_imageName = true && this.isSetImageName();
+ boolean that_present_imageName = true && that.isSetImageName();
+ if (this_present_imageName || that_present_imageName) {
+ if (!(this_present_imageName && that_present_imageName))
+ return false;
+ if (!this.imageName.equals(that.imageName))
+ return false;
+ }
+
+ boolean this_present_licenseRestriction = true && this.isSetLicenseRestriction();
+ boolean that_present_licenseRestriction = true && that.isSetLicenseRestriction();
+ if (this_present_licenseRestriction || that_present_licenseRestriction) {
+ if (!(this_present_licenseRestriction && that_present_licenseRestriction))
+ return false;
+ if (!this.licenseRestriction.equals(that.licenseRestriction))
+ return false;
+ }
+
+ boolean this_present_osName = true && this.isSetOsName();
+ boolean that_present_osName = true && that.isSetOsName();
+ if (this_present_osName || that_present_osName) {
+ if (!(this_present_osName && that_present_osName))
+ return false;
+ if (!this.osName.equals(that.osName))
+ return false;
+ }
+
+ boolean this_present_lectureName = true && this.isSetLectureName();
+ boolean that_present_lectureName = true && that.isSetLectureName();
+ if (this_present_lectureName || that_present_lectureName) {
+ if (!(this_present_lectureName && that_present_lectureName))
+ return false;
+ if (!this.lectureName.equals(that.lectureName))
+ return false;
+ }
+
+ boolean this_present_updateTime = true && this.isSetUpdateTime();
+ boolean that_present_updateTime = true && that.isSetUpdateTime();
+ if (this_present_updateTime || that_present_updateTime) {
+ if (!(this_present_updateTime && that_present_updateTime))
+ return false;
+ if (!this.updateTime.equals(that.updateTime))
+ return false;
+ }
+
+ boolean this_present_userData = true && this.isSetUserData();
+ boolean that_present_userData = true && that.isSetUserData();
+ if (this_present_userData || that_present_userData) {
+ if (!(this_present_userData && that_present_userData))
+ return false;
+ if (!this.userData.equals(that.userData))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return 0;
+ }
+
+ @Override
+ public int compareTo(Image other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetId()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetVersion()).compareTo(other.isSetVersion());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetVersion()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.version, other.version);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetImageName()).compareTo(other.isSetImageName());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetImageName()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageName, other.imageName);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetLicenseRestriction()).compareTo(other.isSetLicenseRestriction());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetLicenseRestriction()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.licenseRestriction, other.licenseRestriction);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetOsName()).compareTo(other.isSetOsName());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetOsName()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.osName, other.osName);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetLectureName()).compareTo(other.isSetLectureName());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetLectureName()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lectureName, other.lectureName);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetUpdateTime()).compareTo(other.isSetUpdateTime());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetUpdateTime()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.updateTime, other.updateTime);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetUserData()).compareTo(other.isSetUserData());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetUserData()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userData, other.userData);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ 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("Image(");
+ boolean first = true;
+
+ sb.append("id:");
+ if (this.id == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.id);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("version:");
+ if (this.version == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.version);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("imageName:");
+ if (this.imageName == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.imageName);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("licenseRestriction:");
+ if (this.licenseRestriction == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.licenseRestriction);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("osName:");
+ if (this.osName == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.osName);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("lectureName:");
+ if (this.lectureName == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.lectureName);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("updateTime:");
+ if (this.updateTime == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.updateTime);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("userData:");
+ if (this.userData == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.userData);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class ImageStandardSchemeFactory implements SchemeFactory {
+ public ImageStandardScheme getScheme() {
+ return new ImageStandardScheme();
+ }
+ }
+
+ private static class ImageStandardScheme extends StandardScheme {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, Image struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case -1: // ID
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.id = iprot.readString();
+ struct.setIdIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -2: // VERSION
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.version = iprot.readString();
+ struct.setVersionIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -3: // IMAGE_NAME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.imageName = iprot.readString();
+ struct.setImageNameIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -4: // LICENSE_RESTRICTION
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.licenseRestriction = iprot.readString();
+ struct.setLicenseRestrictionIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -5: // OS_NAME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.osName = iprot.readString();
+ struct.setOsNameIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -6: // LECTURE_NAME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.lectureName = iprot.readString();
+ struct.setLectureNameIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -7: // UPDATE_TIME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.updateTime = iprot.readString();
+ struct.setUpdateTimeIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -8: // USER_DATA
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.userData = iprot.readString();
+ struct.setUserDataIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+
+ // check for required fields of primitive type, which can't be checked in the validate method
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, Image struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.userData != null) {
+ oprot.writeFieldBegin(USER_DATA_FIELD_DESC);
+ oprot.writeString(struct.userData);
+ oprot.writeFieldEnd();
+ }
+ if (struct.updateTime != null) {
+ oprot.writeFieldBegin(UPDATE_TIME_FIELD_DESC);
+ oprot.writeString(struct.updateTime);
+ oprot.writeFieldEnd();
+ }
+ if (struct.lectureName != null) {
+ oprot.writeFieldBegin(LECTURE_NAME_FIELD_DESC);
+ oprot.writeString(struct.lectureName);
+ oprot.writeFieldEnd();
+ }
+ if (struct.osName != null) {
+ oprot.writeFieldBegin(OS_NAME_FIELD_DESC);
+ oprot.writeString(struct.osName);
+ oprot.writeFieldEnd();
+ }
+ if (struct.licenseRestriction != null) {
+ oprot.writeFieldBegin(LICENSE_RESTRICTION_FIELD_DESC);
+ oprot.writeString(struct.licenseRestriction);
+ oprot.writeFieldEnd();
+ }
+ if (struct.imageName != null) {
+ oprot.writeFieldBegin(IMAGE_NAME_FIELD_DESC);
+ oprot.writeString(struct.imageName);
+ oprot.writeFieldEnd();
+ }
+ if (struct.version != null) {
+ oprot.writeFieldBegin(VERSION_FIELD_DESC);
+ oprot.writeString(struct.version);
+ oprot.writeFieldEnd();
+ }
+ if (struct.id != null) {
+ oprot.writeFieldBegin(ID_FIELD_DESC);
+ oprot.writeString(struct.id);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class ImageTupleSchemeFactory implements SchemeFactory {
+ public ImageTupleScheme getScheme() {
+ return new ImageTupleScheme();
+ }
+ }
+
+ private static class ImageTupleScheme extends TupleScheme {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, Image struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetId()) {
+ optionals.set(0);
+ }
+ if (struct.isSetVersion()) {
+ optionals.set(1);
+ }
+ if (struct.isSetImageName()) {
+ optionals.set(2);
+ }
+ if (struct.isSetLicenseRestriction()) {
+ optionals.set(3);
+ }
+ if (struct.isSetOsName()) {
+ optionals.set(4);
+ }
+ if (struct.isSetLectureName()) {
+ optionals.set(5);
+ }
+ if (struct.isSetUpdateTime()) {
+ optionals.set(6);
+ }
+ if (struct.isSetUserData()) {
+ optionals.set(7);
+ }
+ oprot.writeBitSet(optionals, 8);
+ if (struct.isSetId()) {
+ oprot.writeString(struct.id);
+ }
+ if (struct.isSetVersion()) {
+ oprot.writeString(struct.version);
+ }
+ if (struct.isSetImageName()) {
+ oprot.writeString(struct.imageName);
+ }
+ if (struct.isSetLicenseRestriction()) {
+ oprot.writeString(struct.licenseRestriction);
+ }
+ if (struct.isSetOsName()) {
+ oprot.writeString(struct.osName);
+ }
+ if (struct.isSetLectureName()) {
+ oprot.writeString(struct.lectureName);
+ }
+ if (struct.isSetUpdateTime()) {
+ oprot.writeString(struct.updateTime);
+ }
+ if (struct.isSetUserData()) {
+ oprot.writeString(struct.userData);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, Image struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(8);
+ if (incoming.get(0)) {
+ struct.id = iprot.readString();
+ struct.setIdIsSet(true);
+ }
+ if (incoming.get(1)) {
+ struct.version = iprot.readString();
+ struct.setVersionIsSet(true);
+ }
+ if (incoming.get(2)) {
+ struct.imageName = iprot.readString();
+ struct.setImageNameIsSet(true);
+ }
+ if (incoming.get(3)) {
+ struct.licenseRestriction = iprot.readString();
+ struct.setLicenseRestrictionIsSet(true);
+ }
+ if (incoming.get(4)) {
+ struct.osName = iprot.readString();
+ struct.setOsNameIsSet(true);
+ }
+ if (incoming.get(5)) {
+ struct.lectureName = iprot.readString();
+ struct.setLectureNameIsSet(true);
+ }
+ if (incoming.get(6)) {
+ struct.updateTime = iprot.readString();
+ struct.setUpdateTimeIsSet(true);
+ }
+ if (incoming.get(7)) {
+ struct.userData = iprot.readString();
+ struct.setUserDataIsSet(true);
+ }
+ }
+ }
+
+}
+
diff --git a/Dozentenmodulserver/src/main/java/server/Lecture.java b/Dozentenmodulserver/src/main/java/server/Lecture.java
new file mode 100644
index 00000000..0c61ad84
--- /dev/null
+++ b/Dozentenmodulserver/src/main/java/server/Lecture.java
@@ -0,0 +1,1188 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.1)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+package server;
+
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class Lecture implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Lecture");
+
+ private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.STRING, (short)-1);
+ private static final org.apache.thrift.protocol.TField LECTURENAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lecturename", org.apache.thrift.protocol.TType.STRING, (short)-2);
+ private static final org.apache.thrift.protocol.TField IS_ACTIVE_FIELD_DESC = new org.apache.thrift.protocol.TField("isActive", org.apache.thrift.protocol.TType.STRING, (short)-3);
+ private static final org.apache.thrift.protocol.TField STARTTIME_FIELD_DESC = new org.apache.thrift.protocol.TField("starttime", org.apache.thrift.protocol.TType.STRING, (short)-4);
+ private static final org.apache.thrift.protocol.TField ENDTIME_FIELD_DESC = new org.apache.thrift.protocol.TField("endtime", org.apache.thrift.protocol.TType.STRING, (short)-5);
+ private static final org.apache.thrift.protocol.TField LASTUSED_FIELD_DESC = new org.apache.thrift.protocol.TField("lastused", org.apache.thrift.protocol.TType.STRING, (short)-6);
+ private static final org.apache.thrift.protocol.TField DESC_FIELD_DESC = new org.apache.thrift.protocol.TField("desc", org.apache.thrift.protocol.TType.STRING, (short)-7);
+ private static final org.apache.thrift.protocol.TField IMAGENAME_FIELD_DESC = new org.apache.thrift.protocol.TField("imagename", org.apache.thrift.protocol.TType.STRING, (short)-8);
+ private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)-9);
+
+ private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new LectureStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new LectureTupleSchemeFactory());
+ }
+
+ public String id; // required
+ public String lecturename; // required
+ public String isActive; // required
+ public String starttime; // required
+ public String endtime; // required
+ public String lastused; // required
+ public String desc; // required
+ public String imagename; // required
+ public String username; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ ID((short)-1, "id"),
+ LECTURENAME((short)-2, "lecturename"),
+ IS_ACTIVE((short)-3, "isActive"),
+ STARTTIME((short)-4, "starttime"),
+ ENDTIME((short)-5, "endtime"),
+ LASTUSED((short)-6, "lastused"),
+ DESC((short)-7, "desc"),
+ IMAGENAME((short)-8, "imagename"),
+ USERNAME((short)-9, "username");
+
+ private static final Map byName = new HashMap();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case -1: // ID
+ return ID;
+ case -2: // LECTURENAME
+ return LECTURENAME;
+ case -3: // IS_ACTIVE
+ return IS_ACTIVE;
+ case -4: // STARTTIME
+ return STARTTIME;
+ case -5: // ENDTIME
+ return ENDTIME;
+ case -6: // LASTUSED
+ return LASTUSED;
+ case -7: // DESC
+ return DESC;
+ case -8: // IMAGENAME
+ return IMAGENAME;
+ case -9: // USERNAME
+ return USERNAME;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.LECTURENAME, new org.apache.thrift.meta_data.FieldMetaData("lecturename", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.IS_ACTIVE, new org.apache.thrift.meta_data.FieldMetaData("isActive", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.STARTTIME, new org.apache.thrift.meta_data.FieldMetaData("starttime", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.ENDTIME, new org.apache.thrift.meta_data.FieldMetaData("endtime", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.LASTUSED, new org.apache.thrift.meta_data.FieldMetaData("lastused", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.DESC, new org.apache.thrift.meta_data.FieldMetaData("desc", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.IMAGENAME, new org.apache.thrift.meta_data.FieldMetaData("imagename", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Lecture.class, metaDataMap);
+ }
+
+ public Lecture() {
+ }
+
+ public Lecture(
+ String id,
+ String lecturename,
+ String isActive,
+ String starttime,
+ String endtime,
+ String lastused,
+ String desc,
+ String imagename,
+ String username)
+ {
+ this();
+ this.id = id;
+ this.lecturename = lecturename;
+ this.isActive = isActive;
+ this.starttime = starttime;
+ this.endtime = endtime;
+ this.lastused = lastused;
+ this.desc = desc;
+ this.imagename = imagename;
+ this.username = username;
+ }
+
+ /**
+ * Performs a deep copy on other.
+ */
+ public Lecture(Lecture other) {
+ if (other.isSetId()) {
+ this.id = other.id;
+ }
+ if (other.isSetLecturename()) {
+ this.lecturename = other.lecturename;
+ }
+ if (other.isSetIsActive()) {
+ this.isActive = other.isActive;
+ }
+ if (other.isSetStarttime()) {
+ this.starttime = other.starttime;
+ }
+ if (other.isSetEndtime()) {
+ this.endtime = other.endtime;
+ }
+ if (other.isSetLastused()) {
+ this.lastused = other.lastused;
+ }
+ if (other.isSetDesc()) {
+ this.desc = other.desc;
+ }
+ if (other.isSetImagename()) {
+ this.imagename = other.imagename;
+ }
+ if (other.isSetUsername()) {
+ this.username = other.username;
+ }
+ }
+
+ public Lecture deepCopy() {
+ return new Lecture(this);
+ }
+
+ @Override
+ public void clear() {
+ this.id = null;
+ this.lecturename = null;
+ this.isActive = null;
+ this.starttime = null;
+ this.endtime = null;
+ this.lastused = null;
+ this.desc = null;
+ this.imagename = null;
+ this.username = null;
+ }
+
+ public String getId() {
+ return this.id;
+ }
+
+ public Lecture setId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ public void unsetId() {
+ this.id = null;
+ }
+
+ /** Returns true if field id is set (has been assigned a value) and false otherwise */
+ public boolean isSetId() {
+ return this.id != null;
+ }
+
+ public void setIdIsSet(boolean value) {
+ if (!value) {
+ this.id = null;
+ }
+ }
+
+ public String getLecturename() {
+ return this.lecturename;
+ }
+
+ public Lecture setLecturename(String lecturename) {
+ this.lecturename = lecturename;
+ return this;
+ }
+
+ public void unsetLecturename() {
+ this.lecturename = null;
+ }
+
+ /** Returns true if field lecturename is set (has been assigned a value) and false otherwise */
+ public boolean isSetLecturename() {
+ return this.lecturename != null;
+ }
+
+ public void setLecturenameIsSet(boolean value) {
+ if (!value) {
+ this.lecturename = null;
+ }
+ }
+
+ public String getIsActive() {
+ return this.isActive;
+ }
+
+ public Lecture setIsActive(String isActive) {
+ this.isActive = isActive;
+ return this;
+ }
+
+ public void unsetIsActive() {
+ this.isActive = null;
+ }
+
+ /** Returns true if field isActive is set (has been assigned a value) and false otherwise */
+ public boolean isSetIsActive() {
+ return this.isActive != null;
+ }
+
+ public void setIsActiveIsSet(boolean value) {
+ if (!value) {
+ this.isActive = null;
+ }
+ }
+
+ public String getStarttime() {
+ return this.starttime;
+ }
+
+ public Lecture setStarttime(String starttime) {
+ this.starttime = starttime;
+ return this;
+ }
+
+ public void unsetStarttime() {
+ this.starttime = null;
+ }
+
+ /** Returns true if field starttime is set (has been assigned a value) and false otherwise */
+ public boolean isSetStarttime() {
+ return this.starttime != null;
+ }
+
+ public void setStarttimeIsSet(boolean value) {
+ if (!value) {
+ this.starttime = null;
+ }
+ }
+
+ public String getEndtime() {
+ return this.endtime;
+ }
+
+ public Lecture setEndtime(String endtime) {
+ this.endtime = endtime;
+ return this;
+ }
+
+ public void unsetEndtime() {
+ this.endtime = null;
+ }
+
+ /** Returns true if field endtime is set (has been assigned a value) and false otherwise */
+ public boolean isSetEndtime() {
+ return this.endtime != null;
+ }
+
+ public void setEndtimeIsSet(boolean value) {
+ if (!value) {
+ this.endtime = null;
+ }
+ }
+
+ public String getLastused() {
+ return this.lastused;
+ }
+
+ public Lecture setLastused(String lastused) {
+ this.lastused = lastused;
+ return this;
+ }
+
+ public void unsetLastused() {
+ this.lastused = null;
+ }
+
+ /** Returns true if field lastused is set (has been assigned a value) and false otherwise */
+ public boolean isSetLastused() {
+ return this.lastused != null;
+ }
+
+ public void setLastusedIsSet(boolean value) {
+ if (!value) {
+ this.lastused = null;
+ }
+ }
+
+ public String getDesc() {
+ return this.desc;
+ }
+
+ public Lecture setDesc(String desc) {
+ this.desc = desc;
+ return this;
+ }
+
+ public void unsetDesc() {
+ this.desc = null;
+ }
+
+ /** Returns true if field desc is set (has been assigned a value) and false otherwise */
+ public boolean isSetDesc() {
+ return this.desc != null;
+ }
+
+ public void setDescIsSet(boolean value) {
+ if (!value) {
+ this.desc = null;
+ }
+ }
+
+ public String getImagename() {
+ return this.imagename;
+ }
+
+ public Lecture setImagename(String imagename) {
+ this.imagename = imagename;
+ return this;
+ }
+
+ public void unsetImagename() {
+ this.imagename = null;
+ }
+
+ /** Returns true if field imagename is set (has been assigned a value) and false otherwise */
+ public boolean isSetImagename() {
+ return this.imagename != null;
+ }
+
+ public void setImagenameIsSet(boolean value) {
+ if (!value) {
+ this.imagename = null;
+ }
+ }
+
+ public String getUsername() {
+ return this.username;
+ }
+
+ public Lecture setUsername(String username) {
+ this.username = username;
+ return this;
+ }
+
+ public void unsetUsername() {
+ this.username = null;
+ }
+
+ /** Returns true if field username is set (has been assigned a value) and false otherwise */
+ public boolean isSetUsername() {
+ return this.username != null;
+ }
+
+ public void setUsernameIsSet(boolean value) {
+ if (!value) {
+ this.username = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case ID:
+ if (value == null) {
+ unsetId();
+ } else {
+ setId((String)value);
+ }
+ break;
+
+ case LECTURENAME:
+ if (value == null) {
+ unsetLecturename();
+ } else {
+ setLecturename((String)value);
+ }
+ break;
+
+ case IS_ACTIVE:
+ if (value == null) {
+ unsetIsActive();
+ } else {
+ setIsActive((String)value);
+ }
+ break;
+
+ case STARTTIME:
+ if (value == null) {
+ unsetStarttime();
+ } else {
+ setStarttime((String)value);
+ }
+ break;
+
+ case ENDTIME:
+ if (value == null) {
+ unsetEndtime();
+ } else {
+ setEndtime((String)value);
+ }
+ break;
+
+ case LASTUSED:
+ if (value == null) {
+ unsetLastused();
+ } else {
+ setLastused((String)value);
+ }
+ break;
+
+ case DESC:
+ if (value == null) {
+ unsetDesc();
+ } else {
+ setDesc((String)value);
+ }
+ break;
+
+ case IMAGENAME:
+ if (value == null) {
+ unsetImagename();
+ } else {
+ setImagename((String)value);
+ }
+ break;
+
+ case USERNAME:
+ if (value == null) {
+ unsetUsername();
+ } else {
+ setUsername((String)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case ID:
+ return getId();
+
+ case LECTURENAME:
+ return getLecturename();
+
+ case IS_ACTIVE:
+ return getIsActive();
+
+ case STARTTIME:
+ return getStarttime();
+
+ case ENDTIME:
+ return getEndtime();
+
+ case LASTUSED:
+ return getLastused();
+
+ case DESC:
+ return getDesc();
+
+ case IMAGENAME:
+ return getImagename();
+
+ case USERNAME:
+ return getUsername();
+
+ }
+ throw new IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
+ switch (field) {
+ case ID:
+ return isSetId();
+ case LECTURENAME:
+ return isSetLecturename();
+ case IS_ACTIVE:
+ return isSetIsActive();
+ case STARTTIME:
+ return isSetStarttime();
+ case ENDTIME:
+ return isSetEndtime();
+ case LASTUSED:
+ return isSetLastused();
+ case DESC:
+ return isSetDesc();
+ case IMAGENAME:
+ return isSetImagename();
+ case USERNAME:
+ return isSetUsername();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof Lecture)
+ return this.equals((Lecture)that);
+ return false;
+ }
+
+ public boolean equals(Lecture that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_id = true && this.isSetId();
+ boolean that_present_id = true && that.isSetId();
+ if (this_present_id || that_present_id) {
+ if (!(this_present_id && that_present_id))
+ return false;
+ if (!this.id.equals(that.id))
+ return false;
+ }
+
+ boolean this_present_lecturename = true && this.isSetLecturename();
+ boolean that_present_lecturename = true && that.isSetLecturename();
+ if (this_present_lecturename || that_present_lecturename) {
+ if (!(this_present_lecturename && that_present_lecturename))
+ return false;
+ if (!this.lecturename.equals(that.lecturename))
+ return false;
+ }
+
+ boolean this_present_isActive = true && this.isSetIsActive();
+ boolean that_present_isActive = true && that.isSetIsActive();
+ if (this_present_isActive || that_present_isActive) {
+ if (!(this_present_isActive && that_present_isActive))
+ return false;
+ if (!this.isActive.equals(that.isActive))
+ return false;
+ }
+
+ boolean this_present_starttime = true && this.isSetStarttime();
+ boolean that_present_starttime = true && that.isSetStarttime();
+ if (this_present_starttime || that_present_starttime) {
+ if (!(this_present_starttime && that_present_starttime))
+ return false;
+ if (!this.starttime.equals(that.starttime))
+ return false;
+ }
+
+ boolean this_present_endtime = true && this.isSetEndtime();
+ boolean that_present_endtime = true && that.isSetEndtime();
+ if (this_present_endtime || that_present_endtime) {
+ if (!(this_present_endtime && that_present_endtime))
+ return false;
+ if (!this.endtime.equals(that.endtime))
+ return false;
+ }
+
+ boolean this_present_lastused = true && this.isSetLastused();
+ boolean that_present_lastused = true && that.isSetLastused();
+ if (this_present_lastused || that_present_lastused) {
+ if (!(this_present_lastused && that_present_lastused))
+ return false;
+ if (!this.lastused.equals(that.lastused))
+ return false;
+ }
+
+ boolean this_present_desc = true && this.isSetDesc();
+ boolean that_present_desc = true && that.isSetDesc();
+ if (this_present_desc || that_present_desc) {
+ if (!(this_present_desc && that_present_desc))
+ return false;
+ if (!this.desc.equals(that.desc))
+ return false;
+ }
+
+ boolean this_present_imagename = true && this.isSetImagename();
+ boolean that_present_imagename = true && that.isSetImagename();
+ if (this_present_imagename || that_present_imagename) {
+ if (!(this_present_imagename && that_present_imagename))
+ return false;
+ if (!this.imagename.equals(that.imagename))
+ return false;
+ }
+
+ boolean this_present_username = true && this.isSetUsername();
+ boolean that_present_username = true && that.isSetUsername();
+ if (this_present_username || that_present_username) {
+ if (!(this_present_username && that_present_username))
+ return false;
+ if (!this.username.equals(that.username))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return 0;
+ }
+
+ @Override
+ public int compareTo(Lecture other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetId()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetLecturename()).compareTo(other.isSetLecturename());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetLecturename()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lecturename, other.lecturename);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetIsActive()).compareTo(other.isSetIsActive());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetIsActive()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isActive, other.isActive);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetStarttime()).compareTo(other.isSetStarttime());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetStarttime()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.starttime, other.starttime);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetEndtime()).compareTo(other.isSetEndtime());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetEndtime()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endtime, other.endtime);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetLastused()).compareTo(other.isSetLastused());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetLastused()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastused, other.lastused);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetDesc()).compareTo(other.isSetDesc());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetDesc()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.desc, other.desc);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetImagename()).compareTo(other.isSetImagename());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetImagename()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imagename, other.imagename);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetUsername()).compareTo(other.isSetUsername());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetUsername()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, other.username);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("Lecture(");
+ boolean first = true;
+
+ sb.append("id:");
+ if (this.id == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.id);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("lecturename:");
+ if (this.lecturename == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.lecturename);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("isActive:");
+ if (this.isActive == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.isActive);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("starttime:");
+ if (this.starttime == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.starttime);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("endtime:");
+ if (this.endtime == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.endtime);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("lastused:");
+ if (this.lastused == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.lastused);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("desc:");
+ if (this.desc == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.desc);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("imagename:");
+ if (this.imagename == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.imagename);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("username:");
+ if (this.username == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.username);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class LectureStandardSchemeFactory implements SchemeFactory {
+ public LectureStandardScheme getScheme() {
+ return new LectureStandardScheme();
+ }
+ }
+
+ private static class LectureStandardScheme extends StandardScheme {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, Lecture struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case -1: // ID
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.id = iprot.readString();
+ struct.setIdIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -2: // LECTURENAME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.lecturename = iprot.readString();
+ struct.setLecturenameIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -3: // IS_ACTIVE
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.isActive = iprot.readString();
+ struct.setIsActiveIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -4: // STARTTIME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.starttime = iprot.readString();
+ struct.setStarttimeIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -5: // ENDTIME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.endtime = iprot.readString();
+ struct.setEndtimeIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -6: // LASTUSED
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.lastused = iprot.readString();
+ struct.setLastusedIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -7: // DESC
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.desc = iprot.readString();
+ struct.setDescIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -8: // IMAGENAME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.imagename = iprot.readString();
+ struct.setImagenameIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -9: // USERNAME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.username = iprot.readString();
+ struct.setUsernameIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+
+ // check for required fields of primitive type, which can't be checked in the validate method
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, Lecture struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.username != null) {
+ oprot.writeFieldBegin(USERNAME_FIELD_DESC);
+ oprot.writeString(struct.username);
+ oprot.writeFieldEnd();
+ }
+ if (struct.imagename != null) {
+ oprot.writeFieldBegin(IMAGENAME_FIELD_DESC);
+ oprot.writeString(struct.imagename);
+ oprot.writeFieldEnd();
+ }
+ if (struct.desc != null) {
+ oprot.writeFieldBegin(DESC_FIELD_DESC);
+ oprot.writeString(struct.desc);
+ oprot.writeFieldEnd();
+ }
+ if (struct.lastused != null) {
+ oprot.writeFieldBegin(LASTUSED_FIELD_DESC);
+ oprot.writeString(struct.lastused);
+ oprot.writeFieldEnd();
+ }
+ if (struct.endtime != null) {
+ oprot.writeFieldBegin(ENDTIME_FIELD_DESC);
+ oprot.writeString(struct.endtime);
+ oprot.writeFieldEnd();
+ }
+ if (struct.starttime != null) {
+ oprot.writeFieldBegin(STARTTIME_FIELD_DESC);
+ oprot.writeString(struct.starttime);
+ oprot.writeFieldEnd();
+ }
+ if (struct.isActive != null) {
+ oprot.writeFieldBegin(IS_ACTIVE_FIELD_DESC);
+ oprot.writeString(struct.isActive);
+ oprot.writeFieldEnd();
+ }
+ if (struct.lecturename != null) {
+ oprot.writeFieldBegin(LECTURENAME_FIELD_DESC);
+ oprot.writeString(struct.lecturename);
+ oprot.writeFieldEnd();
+ }
+ if (struct.id != null) {
+ oprot.writeFieldBegin(ID_FIELD_DESC);
+ oprot.writeString(struct.id);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class LectureTupleSchemeFactory implements SchemeFactory {
+ public LectureTupleScheme getScheme() {
+ return new LectureTupleScheme();
+ }
+ }
+
+ private static class LectureTupleScheme extends TupleScheme {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, Lecture struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetId()) {
+ optionals.set(0);
+ }
+ if (struct.isSetLecturename()) {
+ optionals.set(1);
+ }
+ if (struct.isSetIsActive()) {
+ optionals.set(2);
+ }
+ if (struct.isSetStarttime()) {
+ optionals.set(3);
+ }
+ if (struct.isSetEndtime()) {
+ optionals.set(4);
+ }
+ if (struct.isSetLastused()) {
+ optionals.set(5);
+ }
+ if (struct.isSetDesc()) {
+ optionals.set(6);
+ }
+ if (struct.isSetImagename()) {
+ optionals.set(7);
+ }
+ if (struct.isSetUsername()) {
+ optionals.set(8);
+ }
+ oprot.writeBitSet(optionals, 9);
+ if (struct.isSetId()) {
+ oprot.writeString(struct.id);
+ }
+ if (struct.isSetLecturename()) {
+ oprot.writeString(struct.lecturename);
+ }
+ if (struct.isSetIsActive()) {
+ oprot.writeString(struct.isActive);
+ }
+ if (struct.isSetStarttime()) {
+ oprot.writeString(struct.starttime);
+ }
+ if (struct.isSetEndtime()) {
+ oprot.writeString(struct.endtime);
+ }
+ if (struct.isSetLastused()) {
+ oprot.writeString(struct.lastused);
+ }
+ if (struct.isSetDesc()) {
+ oprot.writeString(struct.desc);
+ }
+ if (struct.isSetImagename()) {
+ oprot.writeString(struct.imagename);
+ }
+ if (struct.isSetUsername()) {
+ oprot.writeString(struct.username);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, Lecture struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(9);
+ if (incoming.get(0)) {
+ struct.id = iprot.readString();
+ struct.setIdIsSet(true);
+ }
+ if (incoming.get(1)) {
+ struct.lecturename = iprot.readString();
+ struct.setLecturenameIsSet(true);
+ }
+ if (incoming.get(2)) {
+ struct.isActive = iprot.readString();
+ struct.setIsActiveIsSet(true);
+ }
+ if (incoming.get(3)) {
+ struct.starttime = iprot.readString();
+ struct.setStarttimeIsSet(true);
+ }
+ if (incoming.get(4)) {
+ struct.endtime = iprot.readString();
+ struct.setEndtimeIsSet(true);
+ }
+ if (incoming.get(5)) {
+ struct.lastused = iprot.readString();
+ struct.setLastusedIsSet(true);
+ }
+ if (incoming.get(6)) {
+ struct.desc = iprot.readString();
+ struct.setDescIsSet(true);
+ }
+ if (incoming.get(7)) {
+ struct.imagename = iprot.readString();
+ struct.setImagenameIsSet(true);
+ }
+ if (incoming.get(8)) {
+ struct.username = iprot.readString();
+ struct.setUsernameIsSet(true);
+ }
+ }
+ }
+
+}
+
diff --git a/Dozentenmodulserver/src/main/java/server/Server.java b/Dozentenmodulserver/src/main/java/server/Server.java
new file mode 100644
index 00000000..b652bf7a
--- /dev/null
+++ b/Dozentenmodulserver/src/main/java/server/Server.java
@@ -0,0 +1,21391 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.1)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+package server;
+
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class Server {
+
+ public interface Iface {
+
+ public User getFtpUser() throws org.apache.thrift.TException;
+
+ public long DeleteFtpUser(String user) throws org.apache.thrift.TException;
+
+ public String getPathOfImage(String image_id, String version) throws org.apache.thrift.TException;
+
+ public boolean writeVLdata(String imagename, String login, String firstname, String lastname, String university, String Mail, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu, String imagePath, boolean isTemplate, long filesize, long shareMode) throws org.apache.thrift.TException;
+
+ public List getImageList() throws org.apache.thrift.TException;
+
+ public List getLectureList() throws org.apache.thrift.TException;
+
+ public List getAllOS() throws org.apache.thrift.TException;
+
+ public Map getPersonData(String Vorname, String Nachname) throws org.apache.thrift.TException;
+
+ public boolean writeLecturedata(String name, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String login, String firstname, String lastname, String university, String Mail, String Tel, String Fak) throws org.apache.thrift.TException;
+
+ public boolean startFileCopy(String file) throws org.apache.thrift.TException;
+
+ public Map getImageData(String imageid, String imageversion) throws org.apache.thrift.TException;
+
+ public boolean updateImageData(String name, String newName, String image_path, boolean license, boolean internet, long ram, long cpu, String id, String version, boolean isTemplate, long filesize, long shareMode) throws org.apache.thrift.TException;
+
+ public Map getLectureData(String lecturename) throws org.apache.thrift.TException;
+
+ public boolean deleteImageData(String id, String version) throws org.apache.thrift.TException;
+
+ public boolean updateLecturedata(String name, String newName, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, String id) throws org.apache.thrift.TException;
+
+ public boolean deleteImageServer(String id, String version) throws org.apache.thrift.TException;
+
+ public boolean connectedToLecture(String id, String version) throws org.apache.thrift.TException;
+
+ public boolean deleteLecture(String id, String hs, String user) throws org.apache.thrift.TException;
+
+ }
+
+ public interface AsyncIface {
+
+ public void getFtpUser(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+ public void DeleteFtpUser(String user, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+ public void getPathOfImage(String image_id, String version, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+ public void writeVLdata(String imagename, String login, String firstname, String lastname, String university, String Mail, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu, String imagePath, boolean isTemplate, long filesize, long shareMode, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+ public void getImageList(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+ public void getLectureList(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+ public void getAllOS(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+ public void getPersonData(String Vorname, String Nachname, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+ public void writeLecturedata(String name, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String login, String firstname, String lastname, String university, String Mail, String Tel, String Fak, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+ public void startFileCopy(String file, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+ public void getImageData(String imageid, String imageversion, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+ public void updateImageData(String name, String newName, String image_path, boolean license, boolean internet, long ram, long cpu, String id, String version, boolean isTemplate, long filesize, long shareMode, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+ public void getLectureData(String lecturename, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+ public void deleteImageData(String id, String version, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+ public void updateLecturedata(String name, String newName, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, String id, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+ public void deleteImageServer(String id, String version, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+ public void connectedToLecture(String id, String version, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+ public void deleteLecture(String id, String hs, String user, 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 {
+ public Factory() {}
+ public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
+ return new Client(prot);
+ }
+ public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
+ return new Client(iprot, oprot);
+ }
+ }
+
+ public Client(org.apache.thrift.protocol.TProtocol prot)
+ {
+ super(prot, prot);
+ }
+
+ public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
+ super(iprot, oprot);
+ }
+
+ public User getFtpUser() throws org.apache.thrift.TException
+ {
+ send_getFtpUser();
+ return recv_getFtpUser();
+ }
+
+ public void send_getFtpUser() throws org.apache.thrift.TException
+ {
+ getFtpUser_args args = new getFtpUser_args();
+ sendBase("getFtpUser", args);
+ }
+
+ public User recv_getFtpUser() throws org.apache.thrift.TException
+ {
+ getFtpUser_result result = new getFtpUser_result();
+ receiveBase(result, "getFtpUser");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFtpUser failed: unknown result");
+ }
+
+ public long DeleteFtpUser(String user) throws org.apache.thrift.TException
+ {
+ send_DeleteFtpUser(user);
+ return recv_DeleteFtpUser();
+ }
+
+ public void send_DeleteFtpUser(String user) throws org.apache.thrift.TException
+ {
+ DeleteFtpUser_args args = new DeleteFtpUser_args();
+ args.setUser(user);
+ sendBase("DeleteFtpUser", args);
+ }
+
+ public long recv_DeleteFtpUser() throws org.apache.thrift.TException
+ {
+ DeleteFtpUser_result result = new DeleteFtpUser_result();
+ receiveBase(result, "DeleteFtpUser");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "DeleteFtpUser failed: unknown result");
+ }
+
+ public String getPathOfImage(String image_id, String version) throws org.apache.thrift.TException
+ {
+ send_getPathOfImage(image_id, version);
+ return recv_getPathOfImage();
+ }
+
+ public void send_getPathOfImage(String image_id, String version) throws org.apache.thrift.TException
+ {
+ getPathOfImage_args args = new getPathOfImage_args();
+ args.setImage_id(image_id);
+ args.setVersion(version);
+ sendBase("getPathOfImage", args);
+ }
+
+ public String recv_getPathOfImage() throws org.apache.thrift.TException
+ {
+ getPathOfImage_result result = new getPathOfImage_result();
+ receiveBase(result, "getPathOfImage");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPathOfImage failed: unknown result");
+ }
+
+ public boolean writeVLdata(String imagename, String login, String firstname, String lastname, String university, String Mail, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu, String imagePath, boolean isTemplate, long filesize, long shareMode) throws org.apache.thrift.TException
+ {
+ send_writeVLdata(imagename, login, firstname, lastname, university, Mail, Tel, Fak, license, internet, ram, cpu, imagePath, isTemplate, filesize, shareMode);
+ return recv_writeVLdata();
+ }
+
+ public void send_writeVLdata(String imagename, String login, String firstname, String lastname, String university, String Mail, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu, String imagePath, boolean isTemplate, long filesize, long shareMode) throws org.apache.thrift.TException
+ {
+ writeVLdata_args args = new writeVLdata_args();
+ args.setImagename(imagename);
+ args.setLogin(login);
+ args.setFirstname(firstname);
+ args.setLastname(lastname);
+ args.setUniversity(university);
+ args.setMail(Mail);
+ args.setTel(Tel);
+ args.setFak(Fak);
+ args.setLicense(license);
+ args.setInternet(internet);
+ args.setRam(ram);
+ args.setCpu(cpu);
+ args.setImagePath(imagePath);
+ args.setIsTemplate(isTemplate);
+ args.setFilesize(filesize);
+ args.setShareMode(shareMode);
+ sendBase("writeVLdata", args);
+ }
+
+ public boolean recv_writeVLdata() throws org.apache.thrift.TException
+ {
+ writeVLdata_result result = new writeVLdata_result();
+ receiveBase(result, "writeVLdata");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "writeVLdata failed: unknown result");
+ }
+
+ public List getImageList() throws org.apache.thrift.TException
+ {
+ send_getImageList();
+ return recv_getImageList();
+ }
+
+ public void send_getImageList() throws org.apache.thrift.TException
+ {
+ getImageList_args args = new getImageList_args();
+ sendBase("getImageList", args);
+ }
+
+ public List recv_getImageList() throws org.apache.thrift.TException
+ {
+ getImageList_result result = new getImageList_result();
+ receiveBase(result, "getImageList");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImageList failed: unknown result");
+ }
+
+ public List getLectureList() throws org.apache.thrift.TException
+ {
+ send_getLectureList();
+ return recv_getLectureList();
+ }
+
+ public void send_getLectureList() throws org.apache.thrift.TException
+ {
+ getLectureList_args args = new getLectureList_args();
+ sendBase("getLectureList", args);
+ }
+
+ public List recv_getLectureList() throws org.apache.thrift.TException
+ {
+ getLectureList_result result = new getLectureList_result();
+ receiveBase(result, "getLectureList");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLectureList failed: unknown result");
+ }
+
+ public List getAllOS() throws org.apache.thrift.TException
+ {
+ send_getAllOS();
+ return recv_getAllOS();
+ }
+
+ public void send_getAllOS() throws org.apache.thrift.TException
+ {
+ getAllOS_args args = new getAllOS_args();
+ sendBase("getAllOS", args);
+ }
+
+ public List recv_getAllOS() throws org.apache.thrift.TException
+ {
+ getAllOS_result result = new getAllOS_result();
+ receiveBase(result, "getAllOS");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllOS failed: unknown result");
+ }
+
+ public Map getPersonData(String Vorname, String Nachname) throws org.apache.thrift.TException
+ {
+ send_getPersonData(Vorname, Nachname);
+ return recv_getPersonData();
+ }
+
+ public void send_getPersonData(String Vorname, String Nachname) throws org.apache.thrift.TException
+ {
+ getPersonData_args args = new getPersonData_args();
+ args.setVorname(Vorname);
+ args.setNachname(Nachname);
+ sendBase("getPersonData", args);
+ }
+
+ public Map recv_getPersonData() throws org.apache.thrift.TException
+ {
+ getPersonData_result result = new getPersonData_result();
+ receiveBase(result, "getPersonData");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPersonData failed: unknown result");
+ }
+
+ public boolean writeLecturedata(String name, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String login, String firstname, String lastname, String university, String Mail, String Tel, String Fak) throws org.apache.thrift.TException
+ {
+ send_writeLecturedata(name, shortdesc, desc, startDate, endDate, isActive, imagename, login, firstname, lastname, university, Mail, Tel, Fak);
+ return recv_writeLecturedata();
+ }
+
+ public void send_writeLecturedata(String name, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String login, String firstname, String lastname, String university, String Mail, String Tel, String Fak) throws org.apache.thrift.TException
+ {
+ writeLecturedata_args args = new writeLecturedata_args();
+ args.setName(name);
+ args.setShortdesc(shortdesc);
+ args.setDesc(desc);
+ args.setStartDate(startDate);
+ args.setEndDate(endDate);
+ args.setIsActive(isActive);
+ args.setImagename(imagename);
+ args.setLogin(login);
+ args.setFirstname(firstname);
+ args.setLastname(lastname);
+ args.setUniversity(university);
+ args.setMail(Mail);
+ args.setTel(Tel);
+ args.setFak(Fak);
+ sendBase("writeLecturedata", args);
+ }
+
+ public boolean recv_writeLecturedata() throws org.apache.thrift.TException
+ {
+ writeLecturedata_result result = new writeLecturedata_result();
+ receiveBase(result, "writeLecturedata");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "writeLecturedata failed: unknown result");
+ }
+
+ public boolean startFileCopy(String file) throws org.apache.thrift.TException
+ {
+ send_startFileCopy(file);
+ return recv_startFileCopy();
+ }
+
+ public void send_startFileCopy(String file) throws org.apache.thrift.TException
+ {
+ startFileCopy_args args = new startFileCopy_args();
+ args.setFile(file);
+ sendBase("startFileCopy", args);
+ }
+
+ public boolean recv_startFileCopy() throws org.apache.thrift.TException
+ {
+ startFileCopy_result result = new startFileCopy_result();
+ receiveBase(result, "startFileCopy");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "startFileCopy failed: unknown result");
+ }
+
+ public Map getImageData(String imageid, String imageversion) throws org.apache.thrift.TException
+ {
+ send_getImageData(imageid, imageversion);
+ return recv_getImageData();
+ }
+
+ public void send_getImageData(String imageid, String imageversion) throws org.apache.thrift.TException
+ {
+ getImageData_args args = new getImageData_args();
+ args.setImageid(imageid);
+ args.setImageversion(imageversion);
+ sendBase("getImageData", args);
+ }
+
+ public Map recv_getImageData() throws org.apache.thrift.TException
+ {
+ getImageData_result result = new getImageData_result();
+ receiveBase(result, "getImageData");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImageData failed: unknown result");
+ }
+
+ public boolean updateImageData(String name, String newName, String image_path, boolean license, boolean internet, long ram, long cpu, String id, String version, boolean isTemplate, long filesize, long shareMode) throws org.apache.thrift.TException
+ {
+ send_updateImageData(name, newName, image_path, license, internet, ram, cpu, id, version, isTemplate, filesize, shareMode);
+ return recv_updateImageData();
+ }
+
+ public void send_updateImageData(String name, String newName, String image_path, boolean license, boolean internet, long ram, long cpu, String id, String version, boolean isTemplate, long filesize, long shareMode) throws org.apache.thrift.TException
+ {
+ updateImageData_args args = new updateImageData_args();
+ args.setName(name);
+ args.setNewName(newName);
+ args.setImage_path(image_path);
+ args.setLicense(license);
+ args.setInternet(internet);
+ args.setRam(ram);
+ args.setCpu(cpu);
+ args.setId(id);
+ args.setVersion(version);
+ args.setIsTemplate(isTemplate);
+ args.setFilesize(filesize);
+ args.setShareMode(shareMode);
+ sendBase("updateImageData", args);
+ }
+
+ public boolean recv_updateImageData() throws org.apache.thrift.TException
+ {
+ updateImageData_result result = new updateImageData_result();
+ receiveBase(result, "updateImageData");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateImageData failed: unknown result");
+ }
+
+ public Map getLectureData(String lecturename) throws org.apache.thrift.TException
+ {
+ send_getLectureData(lecturename);
+ return recv_getLectureData();
+ }
+
+ public void send_getLectureData(String lecturename) throws org.apache.thrift.TException
+ {
+ getLectureData_args args = new getLectureData_args();
+ args.setLecturename(lecturename);
+ sendBase("getLectureData", args);
+ }
+
+ public Map recv_getLectureData() throws org.apache.thrift.TException
+ {
+ getLectureData_result result = new getLectureData_result();
+ receiveBase(result, "getLectureData");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLectureData failed: unknown result");
+ }
+
+ public boolean deleteImageData(String id, String version) throws org.apache.thrift.TException
+ {
+ send_deleteImageData(id, version);
+ return recv_deleteImageData();
+ }
+
+ public void send_deleteImageData(String id, String version) throws org.apache.thrift.TException
+ {
+ deleteImageData_args args = new deleteImageData_args();
+ args.setId(id);
+ args.setVersion(version);
+ sendBase("deleteImageData", args);
+ }
+
+ public boolean recv_deleteImageData() throws org.apache.thrift.TException
+ {
+ deleteImageData_result result = new deleteImageData_result();
+ receiveBase(result, "deleteImageData");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteImageData failed: unknown result");
+ }
+
+ public boolean updateLecturedata(String name, String newName, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, String id) throws org.apache.thrift.TException
+ {
+ send_updateLecturedata(name, newName, shortdesc, desc, startDate, endDate, isActive, imagename, firstname, lastname, university, Mail, Tel, Fak, id);
+ return recv_updateLecturedata();
+ }
+
+ public void send_updateLecturedata(String name, String newName, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, String id) throws org.apache.thrift.TException
+ {
+ updateLecturedata_args args = new updateLecturedata_args();
+ args.setName(name);
+ args.setNewName(newName);
+ args.setShortdesc(shortdesc);
+ args.setDesc(desc);
+ args.setStartDate(startDate);
+ args.setEndDate(endDate);
+ args.setIsActive(isActive);
+ args.setImagename(imagename);
+ args.setFirstname(firstname);
+ args.setLastname(lastname);
+ args.setUniversity(university);
+ args.setMail(Mail);
+ args.setTel(Tel);
+ args.setFak(Fak);
+ args.setId(id);
+ sendBase("updateLecturedata", args);
+ }
+
+ public boolean recv_updateLecturedata() throws org.apache.thrift.TException
+ {
+ updateLecturedata_result result = new updateLecturedata_result();
+ receiveBase(result, "updateLecturedata");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateLecturedata failed: unknown result");
+ }
+
+ public boolean deleteImageServer(String id, String version) throws org.apache.thrift.TException
+ {
+ send_deleteImageServer(id, version);
+ return recv_deleteImageServer();
+ }
+
+ public void send_deleteImageServer(String id, String version) throws org.apache.thrift.TException
+ {
+ deleteImageServer_args args = new deleteImageServer_args();
+ args.setId(id);
+ args.setVersion(version);
+ sendBase("deleteImageServer", args);
+ }
+
+ public boolean recv_deleteImageServer() throws org.apache.thrift.TException
+ {
+ deleteImageServer_result result = new deleteImageServer_result();
+ receiveBase(result, "deleteImageServer");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteImageServer failed: unknown result");
+ }
+
+ public boolean connectedToLecture(String id, String version) throws org.apache.thrift.TException
+ {
+ send_connectedToLecture(id, version);
+ return recv_connectedToLecture();
+ }
+
+ public void send_connectedToLecture(String id, String version) throws org.apache.thrift.TException
+ {
+ connectedToLecture_args args = new connectedToLecture_args();
+ args.setId(id);
+ args.setVersion(version);
+ sendBase("connectedToLecture", args);
+ }
+
+ public boolean recv_connectedToLecture() throws org.apache.thrift.TException
+ {
+ connectedToLecture_result result = new connectedToLecture_result();
+ receiveBase(result, "connectedToLecture");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "connectedToLecture failed: unknown result");
+ }
+
+ public boolean deleteLecture(String id, String hs, String user) throws org.apache.thrift.TException
+ {
+ send_deleteLecture(id, hs, user);
+ return recv_deleteLecture();
+ }
+
+ public void send_deleteLecture(String id, String hs, String user) throws org.apache.thrift.TException
+ {
+ deleteLecture_args args = new deleteLecture_args();
+ args.setId(id);
+ args.setHs(hs);
+ args.setUser(user);
+ sendBase("deleteLecture", args);
+ }
+
+ public boolean recv_deleteLecture() throws org.apache.thrift.TException
+ {
+ deleteLecture_result result = new deleteLecture_result();
+ receiveBase(result, "deleteLecture");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteLecture 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 {
+ private org.apache.thrift.async.TAsyncClientManager clientManager;
+ private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
+ public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
+ this.clientManager = clientManager;
+ this.protocolFactory = protocolFactory;
+ }
+ public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
+ return new AsyncClient(protocolFactory, clientManager, transport);
+ }
+ }
+
+ public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
+ super(protocolFactory, clientManager, transport);
+ }
+
+ public void getFtpUser(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getFtpUser_call method_call = new getFtpUser_call(resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getFtpUser_call extends org.apache.thrift.async.TAsyncMethodCall {
+ public getFtpUser_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFtpUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getFtpUser_args args = new getFtpUser_args();
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public User getResult() throws org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_getFtpUser();
+ }
+ }
+
+ public void DeleteFtpUser(String user, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ DeleteFtpUser_call method_call = new DeleteFtpUser_call(user, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class DeleteFtpUser_call extends org.apache.thrift.async.TAsyncMethodCall {
+ private String user;
+ public DeleteFtpUser_call(String user, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.user = user;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("DeleteFtpUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ DeleteFtpUser_args args = new DeleteFtpUser_args();
+ args.setUser(user);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public long getResult() throws org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_DeleteFtpUser();
+ }
+ }
+
+ public void getPathOfImage(String image_id, String version, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getPathOfImage_call method_call = new getPathOfImage_call(image_id, version, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getPathOfImage_call extends org.apache.thrift.async.TAsyncMethodCall {
+ private String image_id;
+ private String version;
+ public getPathOfImage_call(String image_id, String version, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.image_id = image_id;
+ this.version = version;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPathOfImage", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getPathOfImage_args args = new getPathOfImage_args();
+ args.setImage_id(image_id);
+ args.setVersion(version);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public String getResult() throws org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_getPathOfImage();
+ }
+ }
+
+ public void writeVLdata(String imagename, String login, String firstname, String lastname, String university, String Mail, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu, String imagePath, boolean isTemplate, long filesize, long shareMode, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ writeVLdata_call method_call = new writeVLdata_call(imagename, login, firstname, lastname, university, Mail, Tel, Fak, license, internet, ram, cpu, imagePath, isTemplate, filesize, shareMode, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class writeVLdata_call extends org.apache.thrift.async.TAsyncMethodCall {
+ private String imagename;
+ private String login;
+ private String firstname;
+ private String lastname;
+ private String university;
+ private String Mail;
+ private String Tel;
+ private String Fak;
+ private boolean license;
+ private boolean internet;
+ private long ram;
+ private long cpu;
+ private String imagePath;
+ private boolean isTemplate;
+ private long filesize;
+ private long shareMode;
+ public writeVLdata_call(String imagename, String login, String firstname, String lastname, String university, String Mail, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu, String imagePath, boolean isTemplate, long filesize, long shareMode, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.imagename = imagename;
+ this.login = login;
+ this.firstname = firstname;
+ this.lastname = lastname;
+ this.university = university;
+ this.Mail = Mail;
+ this.Tel = Tel;
+ this.Fak = Fak;
+ this.license = license;
+ this.internet = internet;
+ this.ram = ram;
+ this.cpu = cpu;
+ this.imagePath = imagePath;
+ this.isTemplate = isTemplate;
+ this.filesize = filesize;
+ this.shareMode = shareMode;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("writeVLdata", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ writeVLdata_args args = new writeVLdata_args();
+ args.setImagename(imagename);
+ args.setLogin(login);
+ args.setFirstname(firstname);
+ args.setLastname(lastname);
+ args.setUniversity(university);
+ args.setMail(Mail);
+ args.setTel(Tel);
+ args.setFak(Fak);
+ args.setLicense(license);
+ args.setInternet(internet);
+ args.setRam(ram);
+ args.setCpu(cpu);
+ args.setImagePath(imagePath);
+ args.setIsTemplate(isTemplate);
+ args.setFilesize(filesize);
+ args.setShareMode(shareMode);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public boolean getResult() throws org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_writeVLdata();
+ }
+ }
+
+ public void getImageList(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getImageList_call method_call = new getImageList_call(resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getImageList_call extends org.apache.thrift.async.TAsyncMethodCall {
+ public getImageList_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getImageList", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getImageList_args args = new getImageList_args();
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public List getResult() throws org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_getImageList();
+ }
+ }
+
+ public void getLectureList(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getLectureList_call method_call = new getLectureList_call(resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getLectureList_call extends org.apache.thrift.async.TAsyncMethodCall {
+ public getLectureList_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLectureList", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getLectureList_args args = new getLectureList_args();
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public List getResult() throws org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_getLectureList();
+ }
+ }
+
+ public void getAllOS(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getAllOS_call method_call = new getAllOS_call(resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getAllOS_call extends org.apache.thrift.async.TAsyncMethodCall {
+ public getAllOS_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllOS", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getAllOS_args args = new getAllOS_args();
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public List getResult() throws org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_getAllOS();
+ }
+ }
+
+ public void getPersonData(String Vorname, String Nachname, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getPersonData_call method_call = new getPersonData_call(Vorname, Nachname, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getPersonData_call extends org.apache.thrift.async.TAsyncMethodCall {
+ private String Vorname;
+ private String Nachname;
+ public getPersonData_call(String Vorname, String Nachname, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.Vorname = Vorname;
+ this.Nachname = Nachname;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPersonData", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getPersonData_args args = new getPersonData_args();
+ args.setVorname(Vorname);
+ args.setNachname(Nachname);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public Map getResult() throws org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_getPersonData();
+ }
+ }
+
+ public void writeLecturedata(String name, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String login, String firstname, String lastname, String university, String Mail, String Tel, String Fak, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ writeLecturedata_call method_call = new writeLecturedata_call(name, shortdesc, desc, startDate, endDate, isActive, imagename, login, firstname, lastname, university, Mail, Tel, Fak, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class writeLecturedata_call extends org.apache.thrift.async.TAsyncMethodCall {
+ private String name;
+ private String shortdesc;
+ private String desc;
+ private String startDate;
+ private String endDate;
+ private boolean isActive;
+ private String imagename;
+ private String login;
+ private String firstname;
+ private String lastname;
+ private String university;
+ private String Mail;
+ private String Tel;
+ private String Fak;
+ public writeLecturedata_call(String name, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String login, String firstname, String lastname, String university, String Mail, String Tel, String Fak, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.name = name;
+ this.shortdesc = shortdesc;
+ this.desc = desc;
+ this.startDate = startDate;
+ this.endDate = endDate;
+ this.isActive = isActive;
+ this.imagename = imagename;
+ this.login = login;
+ this.firstname = firstname;
+ this.lastname = lastname;
+ this.university = university;
+ this.Mail = Mail;
+ this.Tel = Tel;
+ this.Fak = Fak;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("writeLecturedata", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ writeLecturedata_args args = new writeLecturedata_args();
+ args.setName(name);
+ args.setShortdesc(shortdesc);
+ args.setDesc(desc);
+ args.setStartDate(startDate);
+ args.setEndDate(endDate);
+ args.setIsActive(isActive);
+ args.setImagename(imagename);
+ args.setLogin(login);
+ args.setFirstname(firstname);
+ args.setLastname(lastname);
+ args.setUniversity(university);
+ args.setMail(Mail);
+ args.setTel(Tel);
+ args.setFak(Fak);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public boolean getResult() throws org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_writeLecturedata();
+ }
+ }
+
+ public void startFileCopy(String file, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ startFileCopy_call method_call = new startFileCopy_call(file, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class startFileCopy_call extends org.apache.thrift.async.TAsyncMethodCall {
+ private String file;
+ public startFileCopy_call(String file, 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.file = file;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("startFileCopy", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ startFileCopy_args args = new startFileCopy_args();
+ args.setFile(file);
+ 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_startFileCopy();
+ }
+ }
+
+ public void getImageData(String imageid, String imageversion, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getImageData_call method_call = new getImageData_call(imageid, imageversion, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getImageData_call extends org.apache.thrift.async.TAsyncMethodCall {
+ private String imageid;
+ private String imageversion;
+ public getImageData_call(String imageid, String imageversion, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.imageid = imageid;
+ this.imageversion = imageversion;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getImageData", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getImageData_args args = new getImageData_args();
+ args.setImageid(imageid);
+ args.setImageversion(imageversion);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public Map 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_getImageData();
+ }
+ }
+
+ public void updateImageData(String name, String newName, String image_path, boolean license, boolean internet, long ram, long cpu, String id, String version, boolean isTemplate, long filesize, long shareMode, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ updateImageData_call method_call = new updateImageData_call(name, newName, image_path, license, internet, ram, cpu, id, version, isTemplate, filesize, shareMode, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class updateImageData_call extends org.apache.thrift.async.TAsyncMethodCall {
+ private String name;
+ private String newName;
+ private String image_path;
+ private boolean license;
+ private boolean internet;
+ private long ram;
+ private long cpu;
+ private String id;
+ private String version;
+ private boolean isTemplate;
+ private long filesize;
+ private long shareMode;
+ public updateImageData_call(String name, String newName, String image_path, boolean license, boolean internet, long ram, long cpu, String id, String version, boolean isTemplate, long filesize, long shareMode, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.name = name;
+ this.newName = newName;
+ this.image_path = image_path;
+ this.license = license;
+ this.internet = internet;
+ this.ram = ram;
+ this.cpu = cpu;
+ this.id = id;
+ this.version = version;
+ this.isTemplate = isTemplate;
+ this.filesize = filesize;
+ this.shareMode = shareMode;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateImageData", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ updateImageData_args args = new updateImageData_args();
+ args.setName(name);
+ args.setNewName(newName);
+ args.setImage_path(image_path);
+ args.setLicense(license);
+ args.setInternet(internet);
+ args.setRam(ram);
+ args.setCpu(cpu);
+ args.setId(id);
+ args.setVersion(version);
+ args.setIsTemplate(isTemplate);
+ args.setFilesize(filesize);
+ args.setShareMode(shareMode);
+ 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_updateImageData();
+ }
+ }
+
+ public void getLectureData(String lecturename, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getLectureData_call method_call = new getLectureData_call(lecturename, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getLectureData_call extends org.apache.thrift.async.TAsyncMethodCall {
+ private String lecturename;
+ public getLectureData_call(String lecturename, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.lecturename = lecturename;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLectureData", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getLectureData_args args = new getLectureData_args();
+ args.setLecturename(lecturename);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public Map getResult() throws org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_getLectureData();
+ }
+ }
+
+ public void deleteImageData(String id, String version, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ deleteImageData_call method_call = new deleteImageData_call(id, version, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class deleteImageData_call extends org.apache.thrift.async.TAsyncMethodCall {
+ private String id;
+ private String version;
+ public deleteImageData_call(String id, String version, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.id = id;
+ this.version = version;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteImageData", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ deleteImageData_args args = new deleteImageData_args();
+ args.setId(id);
+ args.setVersion(version);
+ 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_deleteImageData();
+ }
+ }
+
+ public void updateLecturedata(String name, String newName, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, String id, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ updateLecturedata_call method_call = new updateLecturedata_call(name, newName, shortdesc, desc, startDate, endDate, isActive, imagename, firstname, lastname, university, Mail, Tel, Fak, id, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class updateLecturedata_call extends org.apache.thrift.async.TAsyncMethodCall {
+ private String name;
+ private String newName;
+ private String shortdesc;
+ private String desc;
+ private String startDate;
+ private String endDate;
+ private boolean isActive;
+ private String imagename;
+ private String firstname;
+ private String lastname;
+ private String university;
+ private String Mail;
+ private String Tel;
+ private String Fak;
+ private String id;
+ public updateLecturedata_call(String name, String newName, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, String id, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.name = name;
+ this.newName = newName;
+ this.shortdesc = shortdesc;
+ this.desc = desc;
+ this.startDate = startDate;
+ this.endDate = endDate;
+ this.isActive = isActive;
+ this.imagename = imagename;
+ this.firstname = firstname;
+ this.lastname = lastname;
+ this.university = university;
+ this.Mail = Mail;
+ this.Tel = Tel;
+ this.Fak = Fak;
+ this.id = id;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateLecturedata", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ updateLecturedata_args args = new updateLecturedata_args();
+ args.setName(name);
+ args.setNewName(newName);
+ args.setShortdesc(shortdesc);
+ args.setDesc(desc);
+ args.setStartDate(startDate);
+ args.setEndDate(endDate);
+ args.setIsActive(isActive);
+ args.setImagename(imagename);
+ args.setFirstname(firstname);
+ args.setLastname(lastname);
+ args.setUniversity(university);
+ args.setMail(Mail);
+ args.setTel(Tel);
+ args.setFak(Fak);
+ args.setId(id);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public boolean getResult() throws org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_updateLecturedata();
+ }
+ }
+
+ public void deleteImageServer(String id, String version, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ deleteImageServer_call method_call = new deleteImageServer_call(id, version, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class deleteImageServer_call extends org.apache.thrift.async.TAsyncMethodCall {
+ private String id;
+ private String version;
+ public deleteImageServer_call(String id, String version, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.id = id;
+ this.version = version;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteImageServer", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ deleteImageServer_args args = new deleteImageServer_args();
+ args.setId(id);
+ args.setVersion(version);
+ 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_deleteImageServer();
+ }
+ }
+
+ public void connectedToLecture(String id, String version, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ connectedToLecture_call method_call = new connectedToLecture_call(id, version, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class connectedToLecture_call extends org.apache.thrift.async.TAsyncMethodCall {
+ private String id;
+ private String version;
+ public connectedToLecture_call(String id, String version, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.id = id;
+ this.version = version;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("connectedToLecture", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ connectedToLecture_args args = new connectedToLecture_args();
+ args.setId(id);
+ args.setVersion(version);
+ 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_connectedToLecture();
+ }
+ }
+
+ public void deleteLecture(String id, String hs, String user, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ deleteLecture_call method_call = new deleteLecture_call(id, hs, user, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class deleteLecture_call extends org.apache.thrift.async.TAsyncMethodCall {
+ private String id;
+ private String hs;
+ private String user;
+ public deleteLecture_call(String id, String hs, String user, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.id = id;
+ this.hs = hs;
+ this.user = user;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteLecture", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ deleteLecture_args args = new deleteLecture_args();
+ args.setId(id);
+ args.setHs(hs);
+ args.setUser(user);
+ 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_deleteLecture();
+ }
+ }
+
+ }
+
+ public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor {
+ private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
+ public Processor(I iface) {
+ super(iface, getProcessMap(new HashMap>()));
+ }
+
+ protected Processor(I iface, Map> processMap) {
+ super(iface, getProcessMap(processMap));
+ }
+
+ private static Map> getProcessMap(Map> processMap) {
+ processMap.put("getFtpUser", new getFtpUser());
+ processMap.put("DeleteFtpUser", new DeleteFtpUser());
+ processMap.put("getPathOfImage", new getPathOfImage());
+ processMap.put("writeVLdata", new writeVLdata());
+ processMap.put("getImageList", new getImageList());
+ processMap.put("getLectureList", new getLectureList());
+ processMap.put("getAllOS", new getAllOS());
+ processMap.put("getPersonData", new getPersonData());
+ processMap.put("writeLecturedata", new writeLecturedata());
+ processMap.put("startFileCopy", new startFileCopy());
+ processMap.put("getImageData", new getImageData());
+ processMap.put("updateImageData", new updateImageData());
+ processMap.put("getLectureData", new getLectureData());
+ processMap.put("deleteImageData", new deleteImageData());
+ processMap.put("updateLecturedata", new updateLecturedata());
+ processMap.put("deleteImageServer", new deleteImageServer());
+ processMap.put("connectedToLecture", new connectedToLecture());
+ processMap.put("deleteLecture", new deleteLecture());
+ return processMap;
+ }
+
+ public static class getFtpUser extends org.apache.thrift.ProcessFunction {
+ public getFtpUser() {
+ super("getFtpUser");
+ }
+
+ public getFtpUser_args getEmptyArgsInstance() {
+ return new getFtpUser_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public getFtpUser_result getResult(I iface, getFtpUser_args args) throws org.apache.thrift.TException {
+ getFtpUser_result result = new getFtpUser_result();
+ result.success = iface.getFtpUser();
+ return result;
+ }
+ }
+
+ public static class DeleteFtpUser extends org.apache.thrift.ProcessFunction {
+ public DeleteFtpUser() {
+ super("DeleteFtpUser");
+ }
+
+ public DeleteFtpUser_args getEmptyArgsInstance() {
+ return new DeleteFtpUser_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public DeleteFtpUser_result getResult(I iface, DeleteFtpUser_args args) throws org.apache.thrift.TException {
+ DeleteFtpUser_result result = new DeleteFtpUser_result();
+ result.success = iface.DeleteFtpUser(args.user);
+ result.setSuccessIsSet(true);
+ return result;
+ }
+ }
+
+ public static class getPathOfImage extends org.apache.thrift.ProcessFunction {
+ public getPathOfImage() {
+ super("getPathOfImage");
+ }
+
+ public getPathOfImage_args getEmptyArgsInstance() {
+ return new getPathOfImage_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public getPathOfImage_result getResult(I iface, getPathOfImage_args args) throws org.apache.thrift.TException {
+ getPathOfImage_result result = new getPathOfImage_result();
+ result.success = iface.getPathOfImage(args.image_id, args.version);
+ return result;
+ }
+ }
+
+ public static class writeVLdata extends org.apache.thrift.ProcessFunction {
+ public writeVLdata() {
+ super("writeVLdata");
+ }
+
+ public writeVLdata_args getEmptyArgsInstance() {
+ return new writeVLdata_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public writeVLdata_result getResult(I iface, writeVLdata_args args) throws org.apache.thrift.TException {
+ writeVLdata_result result = new writeVLdata_result();
+ result.success = iface.writeVLdata(args.imagename, args.login, args.firstname, args.lastname, args.university, args.Mail, args.Tel, args.Fak, args.license, args.internet, args.ram, args.cpu, args.imagePath, args.isTemplate, args.filesize, args.shareMode);
+ result.setSuccessIsSet(true);
+ return result;
+ }
+ }
+
+ public static class getImageList extends org.apache.thrift.ProcessFunction {
+ public getImageList() {
+ super("getImageList");
+ }
+
+ public getImageList_args getEmptyArgsInstance() {
+ return new getImageList_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public getImageList_result getResult(I iface, getImageList_args args) throws org.apache.thrift.TException {
+ getImageList_result result = new getImageList_result();
+ result.success = iface.getImageList();
+ return result;
+ }
+ }
+
+ public static class getLectureList extends org.apache.thrift.ProcessFunction {
+ public getLectureList() {
+ super("getLectureList");
+ }
+
+ public getLectureList_args getEmptyArgsInstance() {
+ return new getLectureList_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public getLectureList_result getResult(I iface, getLectureList_args args) throws org.apache.thrift.TException {
+ getLectureList_result result = new getLectureList_result();
+ result.success = iface.getLectureList();
+ return result;
+ }
+ }
+
+ public static class getAllOS extends org.apache.thrift.ProcessFunction {
+ public getAllOS() {
+ super("getAllOS");
+ }
+
+ public getAllOS_args getEmptyArgsInstance() {
+ return new getAllOS_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public getAllOS_result getResult(I iface, getAllOS_args args) throws org.apache.thrift.TException {
+ getAllOS_result result = new getAllOS_result();
+ result.success = iface.getAllOS();
+ return result;
+ }
+ }
+
+ public static class getPersonData extends org.apache.thrift.ProcessFunction {
+ public getPersonData() {
+ super("getPersonData");
+ }
+
+ public getPersonData_args getEmptyArgsInstance() {
+ return new getPersonData_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public getPersonData_result getResult(I iface, getPersonData_args args) throws org.apache.thrift.TException {
+ getPersonData_result result = new getPersonData_result();
+ result.success = iface.getPersonData(args.Vorname, args.Nachname);
+ return result;
+ }
+ }
+
+ public static class writeLecturedata extends org.apache.thrift.ProcessFunction {
+ public writeLecturedata() {
+ super("writeLecturedata");
+ }
+
+ public writeLecturedata_args getEmptyArgsInstance() {
+ return new writeLecturedata_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public writeLecturedata_result getResult(I iface, writeLecturedata_args args) throws org.apache.thrift.TException {
+ writeLecturedata_result result = new writeLecturedata_result();
+ result.success = iface.writeLecturedata(args.name, args.shortdesc, args.desc, args.startDate, args.endDate, args.isActive, args.imagename, args.login, args.firstname, args.lastname, args.university, args.Mail, args.Tel, args.Fak);
+ result.setSuccessIsSet(true);
+ return result;
+ }
+ }
+
+ public static class startFileCopy extends org.apache.thrift.ProcessFunction {
+ public startFileCopy() {
+ super("startFileCopy");
+ }
+
+ public startFileCopy_args getEmptyArgsInstance() {
+ return new startFileCopy_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public startFileCopy_result getResult(I iface, startFileCopy_args args) throws org.apache.thrift.TException {
+ startFileCopy_result result = new startFileCopy_result();
+ result.success = iface.startFileCopy(args.file);
+ result.setSuccessIsSet(true);
+ return result;
+ }
+ }
+
+ public static class getImageData extends org.apache.thrift.ProcessFunction {
+ public getImageData() {
+ super("getImageData");
+ }
+
+ public getImageData_args getEmptyArgsInstance() {
+ return new getImageData_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public getImageData_result getResult(I iface, getImageData_args args) throws org.apache.thrift.TException {
+ getImageData_result result = new getImageData_result();
+ result.success = iface.getImageData(args.imageid, args.imageversion);
+ return result;
+ }
+ }
+
+ public static class updateImageData extends org.apache.thrift.ProcessFunction {
+ public updateImageData() {
+ super("updateImageData");
+ }
+
+ public updateImageData_args getEmptyArgsInstance() {
+ return new updateImageData_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public updateImageData_result getResult(I iface, updateImageData_args args) throws org.apache.thrift.TException {
+ updateImageData_result result = new updateImageData_result();
+ result.success = iface.updateImageData(args.name, args.newName, args.image_path, args.license, args.internet, args.ram, args.cpu, args.id, args.version, args.isTemplate, args.filesize, args.shareMode);
+ result.setSuccessIsSet(true);
+ return result;
+ }
+ }
+
+ public static class getLectureData extends org.apache.thrift.ProcessFunction {
+ public getLectureData() {
+ super("getLectureData");
+ }
+
+ public getLectureData_args getEmptyArgsInstance() {
+ return new getLectureData_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public getLectureData_result getResult(I iface, getLectureData_args args) throws org.apache.thrift.TException {
+ getLectureData_result result = new getLectureData_result();
+ result.success = iface.getLectureData(args.lecturename);
+ return result;
+ }
+ }
+
+ public static class deleteImageData extends org.apache.thrift.ProcessFunction {
+ public deleteImageData() {
+ super("deleteImageData");
+ }
+
+ public deleteImageData_args getEmptyArgsInstance() {
+ return new deleteImageData_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public deleteImageData_result getResult(I iface, deleteImageData_args args) throws org.apache.thrift.TException {
+ deleteImageData_result result = new deleteImageData_result();
+ result.success = iface.deleteImageData(args.id, args.version);
+ result.setSuccessIsSet(true);
+ return result;
+ }
+ }
+
+ public static class updateLecturedata extends org.apache.thrift.ProcessFunction {
+ public updateLecturedata() {
+ super("updateLecturedata");
+ }
+
+ public updateLecturedata_args getEmptyArgsInstance() {
+ return new updateLecturedata_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public updateLecturedata_result getResult(I iface, updateLecturedata_args args) throws org.apache.thrift.TException {
+ updateLecturedata_result result = new updateLecturedata_result();
+ result.success = iface.updateLecturedata(args.name, args.newName, args.shortdesc, args.desc, args.startDate, args.endDate, args.isActive, args.imagename, args.firstname, args.lastname, args.university, args.Mail, args.Tel, args.Fak, args.id);
+ result.setSuccessIsSet(true);
+ return result;
+ }
+ }
+
+ public static class deleteImageServer extends org.apache.thrift.ProcessFunction {
+ public deleteImageServer() {
+ super("deleteImageServer");
+ }
+
+ public deleteImageServer_args getEmptyArgsInstance() {
+ return new deleteImageServer_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public deleteImageServer_result getResult(I iface, deleteImageServer_args args) throws org.apache.thrift.TException {
+ deleteImageServer_result result = new deleteImageServer_result();
+ result.success = iface.deleteImageServer(args.id, args.version);
+ result.setSuccessIsSet(true);
+ return result;
+ }
+ }
+
+ public static class connectedToLecture extends org.apache.thrift.ProcessFunction {
+ public connectedToLecture() {
+ super("connectedToLecture");
+ }
+
+ public connectedToLecture_args getEmptyArgsInstance() {
+ return new connectedToLecture_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public connectedToLecture_result getResult(I iface, connectedToLecture_args args) throws org.apache.thrift.TException {
+ connectedToLecture_result result = new connectedToLecture_result();
+ result.success = iface.connectedToLecture(args.id, args.version);
+ result.setSuccessIsSet(true);
+ return result;
+ }
+ }
+
+ public static class deleteLecture extends org.apache.thrift.ProcessFunction {
+ public deleteLecture() {
+ super("deleteLecture");
+ }
+
+ public deleteLecture_args getEmptyArgsInstance() {
+ return new deleteLecture_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public deleteLecture_result getResult(I iface, deleteLecture_args args) throws org.apache.thrift.TException {
+ deleteLecture_result result = new deleteLecture_result();
+ result.success = iface.deleteLecture(args.id, args.hs, args.user);
+ result.setSuccessIsSet(true);
+ return result;
+ }
+ }
+
+ }
+
+ public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor {
+ private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName());
+ public AsyncProcessor(I iface) {
+ super(iface, getProcessMap(new HashMap>()));
+ }
+
+ protected AsyncProcessor(I iface, Map> processMap) {
+ super(iface, getProcessMap(processMap));
+ }
+
+ private static Map> getProcessMap(Map> processMap) {
+ processMap.put("getFtpUser", new getFtpUser());
+ processMap.put("DeleteFtpUser", new DeleteFtpUser());
+ processMap.put("getPathOfImage", new getPathOfImage());
+ processMap.put("writeVLdata", new writeVLdata());
+ processMap.put("getImageList", new getImageList());
+ processMap.put("getLectureList", new getLectureList());
+ processMap.put("getAllOS", new getAllOS());
+ processMap.put("getPersonData", new getPersonData());
+ processMap.put("writeLecturedata", new writeLecturedata());
+ processMap.put("startFileCopy", new startFileCopy());
+ processMap.put("getImageData", new getImageData());
+ processMap.put("updateImageData", new updateImageData());
+ processMap.put("getLectureData", new getLectureData());
+ processMap.put("deleteImageData", new deleteImageData());
+ processMap.put("updateLecturedata", new updateLecturedata());
+ processMap.put("deleteImageServer", new deleteImageServer());
+ processMap.put("connectedToLecture", new connectedToLecture());
+ processMap.put("deleteLecture", new deleteLecture());
+ return processMap;
+ }
+
+ public static class getFtpUser extends org.apache.thrift.AsyncProcessFunction {
+ public getFtpUser() {
+ super("getFtpUser");
+ }
+
+ public getFtpUser_args getEmptyArgsInstance() {
+ return new getFtpUser_args();
+ }
+
+ public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new AsyncMethodCallback() {
+ public void onComplete(User o) {
+ getFtpUser_result result = new getFtpUser_result();
+ result.success = o;
+ try {
+ fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ return;
+ } catch (Exception e) {
+ LOGGER.error("Exception writing to internal frame buffer", e);
+ }
+ fb.close();
+ }
+ public void onError(Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TBase msg;
+ getFtpUser_result result = new getFtpUser_result();
+ {
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ return;
+ } catch (Exception ex) {
+ LOGGER.error("Exception writing to internal frame buffer", ex);
+ }
+ fb.close();
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, getFtpUser_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException {
+ iface.getFtpUser(resultHandler);
+ }
+ }
+
+ public static class DeleteFtpUser extends org.apache.thrift.AsyncProcessFunction {
+ public DeleteFtpUser() {
+ super("DeleteFtpUser");
+ }
+
+ public DeleteFtpUser_args getEmptyArgsInstance() {
+ return new DeleteFtpUser_args();
+ }
+
+ public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new AsyncMethodCallback() {
+ public void onComplete(Long o) {
+ DeleteFtpUser_result result = new DeleteFtpUser_result();
+ result.success = o;
+ result.setSuccessIsSet(true);
+ try {
+ fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ return;
+ } catch (Exception e) {
+ LOGGER.error("Exception writing to internal frame buffer", e);
+ }
+ fb.close();
+ }
+ public void onError(Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TBase msg;
+ DeleteFtpUser_result result = new DeleteFtpUser_result();
+ {
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ return;
+ } catch (Exception ex) {
+ LOGGER.error("Exception writing to internal frame buffer", ex);
+ }
+ fb.close();
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, DeleteFtpUser_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException {
+ iface.DeleteFtpUser(args.user,resultHandler);
+ }
+ }
+
+ public static class getPathOfImage extends org.apache.thrift.AsyncProcessFunction {
+ public getPathOfImage() {
+ super("getPathOfImage");
+ }
+
+ public getPathOfImage_args getEmptyArgsInstance() {
+ return new getPathOfImage_args();
+ }
+
+ public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new AsyncMethodCallback() {
+ public void onComplete(String o) {
+ getPathOfImage_result result = new getPathOfImage_result();
+ result.success = o;
+ try {
+ fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ return;
+ } catch (Exception e) {
+ LOGGER.error("Exception writing to internal frame buffer", e);
+ }
+ fb.close();
+ }
+ public void onError(Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TBase msg;
+ getPathOfImage_result result = new getPathOfImage_result();
+ {
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ return;
+ } catch (Exception ex) {
+ LOGGER.error("Exception writing to internal frame buffer", ex);
+ }
+ fb.close();
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, getPathOfImage_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException {
+ iface.getPathOfImage(args.image_id, args.version,resultHandler);
+ }
+ }
+
+ public static class writeVLdata extends org.apache.thrift.AsyncProcessFunction {
+ public writeVLdata() {
+ super("writeVLdata");
+ }
+
+ public writeVLdata_args getEmptyArgsInstance() {
+ return new writeVLdata_args();
+ }
+
+ public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new AsyncMethodCallback() {
+ public void onComplete(Boolean o) {
+ writeVLdata_result result = new writeVLdata_result();
+ result.success = o;
+ result.setSuccessIsSet(true);
+ try {
+ fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ return;
+ } catch (Exception e) {
+ LOGGER.error("Exception writing to internal frame buffer", e);
+ }
+ fb.close();
+ }
+ public void onError(Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TBase msg;
+ writeVLdata_result result = new writeVLdata_result();
+ {
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ return;
+ } catch (Exception ex) {
+ LOGGER.error("Exception writing to internal frame buffer", ex);
+ }
+ fb.close();
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, writeVLdata_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException {
+ iface.writeVLdata(args.imagename, args.login, args.firstname, args.lastname, args.university, args.Mail, args.Tel, args.Fak, args.license, args.internet, args.ram, args.cpu, args.imagePath, args.isTemplate, args.filesize, args.shareMode,resultHandler);
+ }
+ }
+
+ public static class getImageList extends org.apache.thrift.AsyncProcessFunction> {
+ public getImageList() {
+ super("getImageList");
+ }
+
+ public getImageList_args getEmptyArgsInstance() {
+ return new getImageList_args();
+ }
+
+ public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new AsyncMethodCallback>() {
+ public void onComplete(List o) {
+ getImageList_result result = new getImageList_result();
+ result.success = o;
+ try {
+ fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ return;
+ } catch (Exception e) {
+ LOGGER.error("Exception writing to internal frame buffer", e);
+ }
+ fb.close();
+ }
+ public void onError(Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TBase msg;
+ getImageList_result result = new getImageList_result();
+ {
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ return;
+ } catch (Exception ex) {
+ LOGGER.error("Exception writing to internal frame buffer", ex);
+ }
+ fb.close();
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, getImageList_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException {
+ iface.getImageList(resultHandler);
+ }
+ }
+
+ public static class getLectureList extends org.apache.thrift.AsyncProcessFunction> {
+ public getLectureList() {
+ super("getLectureList");
+ }
+
+ public getLectureList_args getEmptyArgsInstance() {
+ return new getLectureList_args();
+ }
+
+ public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new AsyncMethodCallback>() {
+ public void onComplete(List o) {
+ getLectureList_result result = new getLectureList_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;
+ getLectureList_result result = new getLectureList_result();
+ {
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ 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, getLectureList_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException {
+ iface.getLectureList(resultHandler);
+ }
+ }
+
+ public static class getAllOS extends org.apache.thrift.AsyncProcessFunction> {
+ public getAllOS() {
+ super("getAllOS");
+ }
+
+ public getAllOS_args getEmptyArgsInstance() {
+ return new getAllOS_args();
+ }
+
+ public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new AsyncMethodCallback>() {
+ public void onComplete(List o) {
+ getAllOS_result result = new getAllOS_result();
+ result.success = o;
+ try {
+ fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ return;
+ } catch (Exception e) {
+ LOGGER.error("Exception writing to internal frame buffer", e);
+ }
+ fb.close();
+ }
+ public void onError(Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TBase msg;
+ getAllOS_result result = new getAllOS_result();
+ {
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ return;
+ } catch (Exception ex) {
+ LOGGER.error("Exception writing to internal frame buffer", ex);
+ }
+ fb.close();
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, getAllOS_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException {
+ iface.getAllOS(resultHandler);
+ }
+ }
+
+ public static class getPersonData extends org.apache.thrift.AsyncProcessFunction> {
+ public getPersonData() {
+ super("getPersonData");
+ }
+
+ public getPersonData_args getEmptyArgsInstance() {
+ return new getPersonData_args();
+ }
+
+ public AsyncMethodCallback