summaryrefslogtreecommitdiffstats
path: root/Dozentenmodulserver/src/server
diff options
context:
space:
mode:
authorunknown2014-04-04 09:30:30 +0200
committerunknown2014-04-04 09:30:30 +0200
commit7b8534417cc4cf7d2e6d6dcb0988ad688fc7999c (patch)
treea99584b0a8b42c59d1121f51d187e33ecba6b370 /Dozentenmodulserver/src/server
parentBearbeiten von Images funktioniert nun vollständig (diff)
downloadtutor-module-7b8534417cc4cf7d2e6d6dcb0988ad688fc7999c.tar.gz
tutor-module-7b8534417cc4cf7d2e6d6dcb0988ad688fc7999c.tar.xz
tutor-module-7b8534417cc4cf7d2e6d6dcb0988ad688fc7999c.zip
neue Version
Diffstat (limited to 'Dozentenmodulserver/src/server')
-rw-r--r--Dozentenmodulserver/src/server/Lecture.java1188
-rw-r--r--Dozentenmodulserver/src/server/Server.java946
-rw-r--r--Dozentenmodulserver/src/server/ServerHandler.java26
3 files changed, 2078 insertions, 82 deletions
diff --git a/Dozentenmodulserver/src/server/Lecture.java b/Dozentenmodulserver/src/server/Lecture.java
new file mode 100644
index 00000000..0c61ad84
--- /dev/null
+++ b/Dozentenmodulserver/src/server/Lecture.java
@@ -0,0 +1,1188 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.1)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+package server;
+
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class Lecture implements org.apache.thrift.TBase<Lecture, Lecture._Fields>, java.io.Serializable, Cloneable, Comparable<Lecture> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Lecture");
+
+ private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.STRING, (short)-1);
+ private static final org.apache.thrift.protocol.TField LECTURENAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lecturename", org.apache.thrift.protocol.TType.STRING, (short)-2);
+ private static final org.apache.thrift.protocol.TField IS_ACTIVE_FIELD_DESC = new org.apache.thrift.protocol.TField("isActive", org.apache.thrift.protocol.TType.STRING, (short)-3);
+ private static final org.apache.thrift.protocol.TField STARTTIME_FIELD_DESC = new org.apache.thrift.protocol.TField("starttime", org.apache.thrift.protocol.TType.STRING, (short)-4);
+ private static final org.apache.thrift.protocol.TField ENDTIME_FIELD_DESC = new org.apache.thrift.protocol.TField("endtime", org.apache.thrift.protocol.TType.STRING, (short)-5);
+ private static final org.apache.thrift.protocol.TField LASTUSED_FIELD_DESC = new org.apache.thrift.protocol.TField("lastused", org.apache.thrift.protocol.TType.STRING, (short)-6);
+ private static final org.apache.thrift.protocol.TField DESC_FIELD_DESC = new org.apache.thrift.protocol.TField("desc", org.apache.thrift.protocol.TType.STRING, (short)-7);
+ private static final org.apache.thrift.protocol.TField IMAGENAME_FIELD_DESC = new org.apache.thrift.protocol.TField("imagename", org.apache.thrift.protocol.TType.STRING, (short)-8);
+ private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)-9);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new LectureStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new LectureTupleSchemeFactory());
+ }
+
+ public String id; // required
+ public String lecturename; // required
+ public String isActive; // required
+ public String starttime; // required
+ public String endtime; // required
+ public String lastused; // required
+ public String desc; // required
+ public String imagename; // required
+ public String username; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ ID((short)-1, "id"),
+ LECTURENAME((short)-2, "lecturename"),
+ IS_ACTIVE((short)-3, "isActive"),
+ STARTTIME((short)-4, "starttime"),
+ ENDTIME((short)-5, "endtime"),
+ LASTUSED((short)-6, "lastused"),
+ DESC((short)-7, "desc"),
+ IMAGENAME((short)-8, "imagename"),
+ USERNAME((short)-9, "username");
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case -1: // ID
+ return ID;
+ case -2: // LECTURENAME
+ return LECTURENAME;
+ case -3: // IS_ACTIVE
+ return IS_ACTIVE;
+ case -4: // STARTTIME
+ return STARTTIME;
+ case -5: // ENDTIME
+ return ENDTIME;
+ case -6: // LASTUSED
+ return LASTUSED;
+ case -7: // DESC
+ return DESC;
+ case -8: // IMAGENAME
+ return IMAGENAME;
+ case -9: // USERNAME
+ return USERNAME;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.LECTURENAME, new org.apache.thrift.meta_data.FieldMetaData("lecturename", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.IS_ACTIVE, new org.apache.thrift.meta_data.FieldMetaData("isActive", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.STARTTIME, new org.apache.thrift.meta_data.FieldMetaData("starttime", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.ENDTIME, new org.apache.thrift.meta_data.FieldMetaData("endtime", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.LASTUSED, new org.apache.thrift.meta_data.FieldMetaData("lastused", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.DESC, new org.apache.thrift.meta_data.FieldMetaData("desc", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.IMAGENAME, new org.apache.thrift.meta_data.FieldMetaData("imagename", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Lecture.class, metaDataMap);
+ }
+
+ public Lecture() {
+ }
+
+ public Lecture(
+ String id,
+ String lecturename,
+ String isActive,
+ String starttime,
+ String endtime,
+ String lastused,
+ String desc,
+ String imagename,
+ String username)
+ {
+ this();
+ this.id = id;
+ this.lecturename = lecturename;
+ this.isActive = isActive;
+ this.starttime = starttime;
+ this.endtime = endtime;
+ this.lastused = lastused;
+ this.desc = desc;
+ this.imagename = imagename;
+ this.username = username;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public Lecture(Lecture other) {
+ if (other.isSetId()) {
+ this.id = other.id;
+ }
+ if (other.isSetLecturename()) {
+ this.lecturename = other.lecturename;
+ }
+ if (other.isSetIsActive()) {
+ this.isActive = other.isActive;
+ }
+ if (other.isSetStarttime()) {
+ this.starttime = other.starttime;
+ }
+ if (other.isSetEndtime()) {
+ this.endtime = other.endtime;
+ }
+ if (other.isSetLastused()) {
+ this.lastused = other.lastused;
+ }
+ if (other.isSetDesc()) {
+ this.desc = other.desc;
+ }
+ if (other.isSetImagename()) {
+ this.imagename = other.imagename;
+ }
+ if (other.isSetUsername()) {
+ this.username = other.username;
+ }
+ }
+
+ public Lecture deepCopy() {
+ return new Lecture(this);
+ }
+
+ @Override
+ public void clear() {
+ this.id = null;
+ this.lecturename = null;
+ this.isActive = null;
+ this.starttime = null;
+ this.endtime = null;
+ this.lastused = null;
+ this.desc = null;
+ this.imagename = null;
+ this.username = null;
+ }
+
+ public String getId() {
+ return this.id;
+ }
+
+ public Lecture setId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ public void unsetId() {
+ this.id = null;
+ }
+
+ /** Returns true if field id is set (has been assigned a value) and false otherwise */
+ public boolean isSetId() {
+ return this.id != null;
+ }
+
+ public void setIdIsSet(boolean value) {
+ if (!value) {
+ this.id = null;
+ }
+ }
+
+ public String getLecturename() {
+ return this.lecturename;
+ }
+
+ public Lecture setLecturename(String lecturename) {
+ this.lecturename = lecturename;
+ return this;
+ }
+
+ public void unsetLecturename() {
+ this.lecturename = null;
+ }
+
+ /** Returns true if field lecturename is set (has been assigned a value) and false otherwise */
+ public boolean isSetLecturename() {
+ return this.lecturename != null;
+ }
+
+ public void setLecturenameIsSet(boolean value) {
+ if (!value) {
+ this.lecturename = null;
+ }
+ }
+
+ public String getIsActive() {
+ return this.isActive;
+ }
+
+ public Lecture setIsActive(String isActive) {
+ this.isActive = isActive;
+ return this;
+ }
+
+ public void unsetIsActive() {
+ this.isActive = null;
+ }
+
+ /** Returns true if field isActive is set (has been assigned a value) and false otherwise */
+ public boolean isSetIsActive() {
+ return this.isActive != null;
+ }
+
+ public void setIsActiveIsSet(boolean value) {
+ if (!value) {
+ this.isActive = null;
+ }
+ }
+
+ public String getStarttime() {
+ return this.starttime;
+ }
+
+ public Lecture setStarttime(String starttime) {
+ this.starttime = starttime;
+ return this;
+ }
+
+ public void unsetStarttime() {
+ this.starttime = null;
+ }
+
+ /** Returns true if field starttime is set (has been assigned a value) and false otherwise */
+ public boolean isSetStarttime() {
+ return this.starttime != null;
+ }
+
+ public void setStarttimeIsSet(boolean value) {
+ if (!value) {
+ this.starttime = null;
+ }
+ }
+
+ public String getEndtime() {
+ return this.endtime;
+ }
+
+ public Lecture setEndtime(String endtime) {
+ this.endtime = endtime;
+ return this;
+ }
+
+ public void unsetEndtime() {
+ this.endtime = null;
+ }
+
+ /** Returns true if field endtime is set (has been assigned a value) and false otherwise */
+ public boolean isSetEndtime() {
+ return this.endtime != null;
+ }
+
+ public void setEndtimeIsSet(boolean value) {
+ if (!value) {
+ this.endtime = null;
+ }
+ }
+
+ public String getLastused() {
+ return this.lastused;
+ }
+
+ public Lecture setLastused(String lastused) {
+ this.lastused = lastused;
+ return this;
+ }
+
+ public void unsetLastused() {
+ this.lastused = null;
+ }
+
+ /** Returns true if field lastused is set (has been assigned a value) and false otherwise */
+ public boolean isSetLastused() {
+ return this.lastused != null;
+ }
+
+ public void setLastusedIsSet(boolean value) {
+ if (!value) {
+ this.lastused = null;
+ }
+ }
+
+ public String getDesc() {
+ return this.desc;
+ }
+
+ public Lecture setDesc(String desc) {
+ this.desc = desc;
+ return this;
+ }
+
+ public void unsetDesc() {
+ this.desc = null;
+ }
+
+ /** Returns true if field desc is set (has been assigned a value) and false otherwise */
+ public boolean isSetDesc() {
+ return this.desc != null;
+ }
+
+ public void setDescIsSet(boolean value) {
+ if (!value) {
+ this.desc = null;
+ }
+ }
+
+ public String getImagename() {
+ return this.imagename;
+ }
+
+ public Lecture setImagename(String imagename) {
+ this.imagename = imagename;
+ return this;
+ }
+
+ public void unsetImagename() {
+ this.imagename = null;
+ }
+
+ /** Returns true if field imagename is set (has been assigned a value) and false otherwise */
+ public boolean isSetImagename() {
+ return this.imagename != null;
+ }
+
+ public void setImagenameIsSet(boolean value) {
+ if (!value) {
+ this.imagename = null;
+ }
+ }
+
+ public String getUsername() {
+ return this.username;
+ }
+
+ public Lecture setUsername(String username) {
+ this.username = username;
+ return this;
+ }
+
+ public void unsetUsername() {
+ this.username = null;
+ }
+
+ /** Returns true if field username is set (has been assigned a value) and false otherwise */
+ public boolean isSetUsername() {
+ return this.username != null;
+ }
+
+ public void setUsernameIsSet(boolean value) {
+ if (!value) {
+ this.username = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case ID:
+ if (value == null) {
+ unsetId();
+ } else {
+ setId((String)value);
+ }
+ break;
+
+ case LECTURENAME:
+ if (value == null) {
+ unsetLecturename();
+ } else {
+ setLecturename((String)value);
+ }
+ break;
+
+ case IS_ACTIVE:
+ if (value == null) {
+ unsetIsActive();
+ } else {
+ setIsActive((String)value);
+ }
+ break;
+
+ case STARTTIME:
+ if (value == null) {
+ unsetStarttime();
+ } else {
+ setStarttime((String)value);
+ }
+ break;
+
+ case ENDTIME:
+ if (value == null) {
+ unsetEndtime();
+ } else {
+ setEndtime((String)value);
+ }
+ break;
+
+ case LASTUSED:
+ if (value == null) {
+ unsetLastused();
+ } else {
+ setLastused((String)value);
+ }
+ break;
+
+ case DESC:
+ if (value == null) {
+ unsetDesc();
+ } else {
+ setDesc((String)value);
+ }
+ break;
+
+ case IMAGENAME:
+ if (value == null) {
+ unsetImagename();
+ } else {
+ setImagename((String)value);
+ }
+ break;
+
+ case USERNAME:
+ if (value == null) {
+ unsetUsername();
+ } else {
+ setUsername((String)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case ID:
+ return getId();
+
+ case LECTURENAME:
+ return getLecturename();
+
+ case IS_ACTIVE:
+ return getIsActive();
+
+ case STARTTIME:
+ return getStarttime();
+
+ case ENDTIME:
+ return getEndtime();
+
+ case LASTUSED:
+ return getLastused();
+
+ case DESC:
+ return getDesc();
+
+ case IMAGENAME:
+ return getImagename();
+
+ case USERNAME:
+ return getUsername();
+
+ }
+ throw new IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
+ switch (field) {
+ case ID:
+ return isSetId();
+ case LECTURENAME:
+ return isSetLecturename();
+ case IS_ACTIVE:
+ return isSetIsActive();
+ case STARTTIME:
+ return isSetStarttime();
+ case ENDTIME:
+ return isSetEndtime();
+ case LASTUSED:
+ return isSetLastused();
+ case DESC:
+ return isSetDesc();
+ case IMAGENAME:
+ return isSetImagename();
+ case USERNAME:
+ return isSetUsername();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof Lecture)
+ return this.equals((Lecture)that);
+ return false;
+ }
+
+ public boolean equals(Lecture that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_id = true && this.isSetId();
+ boolean that_present_id = true && that.isSetId();
+ if (this_present_id || that_present_id) {
+ if (!(this_present_id && that_present_id))
+ return false;
+ if (!this.id.equals(that.id))
+ return false;
+ }
+
+ boolean this_present_lecturename = true && this.isSetLecturename();
+ boolean that_present_lecturename = true && that.isSetLecturename();
+ if (this_present_lecturename || that_present_lecturename) {
+ if (!(this_present_lecturename && that_present_lecturename))
+ return false;
+ if (!this.lecturename.equals(that.lecturename))
+ return false;
+ }
+
+ boolean this_present_isActive = true && this.isSetIsActive();
+ boolean that_present_isActive = true && that.isSetIsActive();
+ if (this_present_isActive || that_present_isActive) {
+ if (!(this_present_isActive && that_present_isActive))
+ return false;
+ if (!this.isActive.equals(that.isActive))
+ return false;
+ }
+
+ boolean this_present_starttime = true && this.isSetStarttime();
+ boolean that_present_starttime = true && that.isSetStarttime();
+ if (this_present_starttime || that_present_starttime) {
+ if (!(this_present_starttime && that_present_starttime))
+ return false;
+ if (!this.starttime.equals(that.starttime))
+ return false;
+ }
+
+ boolean this_present_endtime = true && this.isSetEndtime();
+ boolean that_present_endtime = true && that.isSetEndtime();
+ if (this_present_endtime || that_present_endtime) {
+ if (!(this_present_endtime && that_present_endtime))
+ return false;
+ if (!this.endtime.equals(that.endtime))
+ return false;
+ }
+
+ boolean this_present_lastused = true && this.isSetLastused();
+ boolean that_present_lastused = true && that.isSetLastused();
+ if (this_present_lastused || that_present_lastused) {
+ if (!(this_present_lastused && that_present_lastused))
+ return false;
+ if (!this.lastused.equals(that.lastused))
+ return false;
+ }
+
+ boolean this_present_desc = true && this.isSetDesc();
+ boolean that_present_desc = true && that.isSetDesc();
+ if (this_present_desc || that_present_desc) {
+ if (!(this_present_desc && that_present_desc))
+ return false;
+ if (!this.desc.equals(that.desc))
+ return false;
+ }
+
+ boolean this_present_imagename = true && this.isSetImagename();
+ boolean that_present_imagename = true && that.isSetImagename();
+ if (this_present_imagename || that_present_imagename) {
+ if (!(this_present_imagename && that_present_imagename))
+ return false;
+ if (!this.imagename.equals(that.imagename))
+ return false;
+ }
+
+ boolean this_present_username = true && this.isSetUsername();
+ boolean that_present_username = true && that.isSetUsername();
+ if (this_present_username || that_present_username) {
+ if (!(this_present_username && that_present_username))
+ return false;
+ if (!this.username.equals(that.username))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return 0;
+ }
+
+ @Override
+ public int compareTo(Lecture other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetId()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetLecturename()).compareTo(other.isSetLecturename());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetLecturename()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lecturename, other.lecturename);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetIsActive()).compareTo(other.isSetIsActive());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetIsActive()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isActive, other.isActive);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetStarttime()).compareTo(other.isSetStarttime());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetStarttime()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.starttime, other.starttime);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetEndtime()).compareTo(other.isSetEndtime());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetEndtime()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endtime, other.endtime);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetLastused()).compareTo(other.isSetLastused());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetLastused()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastused, other.lastused);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetDesc()).compareTo(other.isSetDesc());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetDesc()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.desc, other.desc);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetImagename()).compareTo(other.isSetImagename());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetImagename()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imagename, other.imagename);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetUsername()).compareTo(other.isSetUsername());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetUsername()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, other.username);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("Lecture(");
+ boolean first = true;
+
+ sb.append("id:");
+ if (this.id == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.id);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("lecturename:");
+ if (this.lecturename == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.lecturename);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("isActive:");
+ if (this.isActive == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.isActive);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("starttime:");
+ if (this.starttime == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.starttime);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("endtime:");
+ if (this.endtime == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.endtime);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("lastused:");
+ if (this.lastused == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.lastused);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("desc:");
+ if (this.desc == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.desc);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("imagename:");
+ if (this.imagename == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.imagename);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("username:");
+ if (this.username == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.username);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class LectureStandardSchemeFactory implements SchemeFactory {
+ public LectureStandardScheme getScheme() {
+ return new LectureStandardScheme();
+ }
+ }
+
+ private static class LectureStandardScheme extends StandardScheme<Lecture> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, Lecture struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case -1: // ID
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.id = iprot.readString();
+ struct.setIdIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -2: // LECTURENAME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.lecturename = iprot.readString();
+ struct.setLecturenameIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -3: // IS_ACTIVE
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.isActive = iprot.readString();
+ struct.setIsActiveIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -4: // STARTTIME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.starttime = iprot.readString();
+ struct.setStarttimeIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -5: // ENDTIME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.endtime = iprot.readString();
+ struct.setEndtimeIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -6: // LASTUSED
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.lastused = iprot.readString();
+ struct.setLastusedIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -7: // DESC
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.desc = iprot.readString();
+ struct.setDescIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -8: // IMAGENAME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.imagename = iprot.readString();
+ struct.setImagenameIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case -9: // USERNAME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.username = iprot.readString();
+ struct.setUsernameIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+
+ // check for required fields of primitive type, which can't be checked in the validate method
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, Lecture struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.username != null) {
+ oprot.writeFieldBegin(USERNAME_FIELD_DESC);
+ oprot.writeString(struct.username);
+ oprot.writeFieldEnd();
+ }
+ if (struct.imagename != null) {
+ oprot.writeFieldBegin(IMAGENAME_FIELD_DESC);
+ oprot.writeString(struct.imagename);
+ oprot.writeFieldEnd();
+ }
+ if (struct.desc != null) {
+ oprot.writeFieldBegin(DESC_FIELD_DESC);
+ oprot.writeString(struct.desc);
+ oprot.writeFieldEnd();
+ }
+ if (struct.lastused != null) {
+ oprot.writeFieldBegin(LASTUSED_FIELD_DESC);
+ oprot.writeString(struct.lastused);
+ oprot.writeFieldEnd();
+ }
+ if (struct.endtime != null) {
+ oprot.writeFieldBegin(ENDTIME_FIELD_DESC);
+ oprot.writeString(struct.endtime);
+ oprot.writeFieldEnd();
+ }
+ if (struct.starttime != null) {
+ oprot.writeFieldBegin(STARTTIME_FIELD_DESC);
+ oprot.writeString(struct.starttime);
+ oprot.writeFieldEnd();
+ }
+ if (struct.isActive != null) {
+ oprot.writeFieldBegin(IS_ACTIVE_FIELD_DESC);
+ oprot.writeString(struct.isActive);
+ oprot.writeFieldEnd();
+ }
+ if (struct.lecturename != null) {
+ oprot.writeFieldBegin(LECTURENAME_FIELD_DESC);
+ oprot.writeString(struct.lecturename);
+ oprot.writeFieldEnd();
+ }
+ if (struct.id != null) {
+ oprot.writeFieldBegin(ID_FIELD_DESC);
+ oprot.writeString(struct.id);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class LectureTupleSchemeFactory implements SchemeFactory {
+ public LectureTupleScheme getScheme() {
+ return new LectureTupleScheme();
+ }
+ }
+
+ private static class LectureTupleScheme extends TupleScheme<Lecture> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, Lecture struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetId()) {
+ optionals.set(0);
+ }
+ if (struct.isSetLecturename()) {
+ optionals.set(1);
+ }
+ if (struct.isSetIsActive()) {
+ optionals.set(2);
+ }
+ if (struct.isSetStarttime()) {
+ optionals.set(3);
+ }
+ if (struct.isSetEndtime()) {
+ optionals.set(4);
+ }
+ if (struct.isSetLastused()) {
+ optionals.set(5);
+ }
+ if (struct.isSetDesc()) {
+ optionals.set(6);
+ }
+ if (struct.isSetImagename()) {
+ optionals.set(7);
+ }
+ if (struct.isSetUsername()) {
+ optionals.set(8);
+ }
+ oprot.writeBitSet(optionals, 9);
+ if (struct.isSetId()) {
+ oprot.writeString(struct.id);
+ }
+ if (struct.isSetLecturename()) {
+ oprot.writeString(struct.lecturename);
+ }
+ if (struct.isSetIsActive()) {
+ oprot.writeString(struct.isActive);
+ }
+ if (struct.isSetStarttime()) {
+ oprot.writeString(struct.starttime);
+ }
+ if (struct.isSetEndtime()) {
+ oprot.writeString(struct.endtime);
+ }
+ if (struct.isSetLastused()) {
+ oprot.writeString(struct.lastused);
+ }
+ if (struct.isSetDesc()) {
+ oprot.writeString(struct.desc);
+ }
+ if (struct.isSetImagename()) {
+ oprot.writeString(struct.imagename);
+ }
+ if (struct.isSetUsername()) {
+ oprot.writeString(struct.username);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, Lecture struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(9);
+ if (incoming.get(0)) {
+ struct.id = iprot.readString();
+ struct.setIdIsSet(true);
+ }
+ if (incoming.get(1)) {
+ struct.lecturename = iprot.readString();
+ struct.setLecturenameIsSet(true);
+ }
+ if (incoming.get(2)) {
+ struct.isActive = iprot.readString();
+ struct.setIsActiveIsSet(true);
+ }
+ if (incoming.get(3)) {
+ struct.starttime = iprot.readString();
+ struct.setStarttimeIsSet(true);
+ }
+ if (incoming.get(4)) {
+ struct.endtime = iprot.readString();
+ struct.setEndtimeIsSet(true);
+ }
+ if (incoming.get(5)) {
+ struct.lastused = iprot.readString();
+ struct.setLastusedIsSet(true);
+ }
+ if (incoming.get(6)) {
+ struct.desc = iprot.readString();
+ struct.setDescIsSet(true);
+ }
+ if (incoming.get(7)) {
+ struct.imagename = iprot.readString();
+ struct.setImagenameIsSet(true);
+ }
+ if (incoming.get(8)) {
+ struct.username = iprot.readString();
+ struct.setUsernameIsSet(true);
+ }
+ }
+ }
+
+}
+
diff --git a/Dozentenmodulserver/src/server/Server.java b/Dozentenmodulserver/src/server/Server.java
index 558729d1..6e630387 100644
--- a/Dozentenmodulserver/src/server/Server.java
+++ b/Dozentenmodulserver/src/server/Server.java
@@ -46,6 +46,8 @@ public class Server {
public List<Image> getImageList() throws org.apache.thrift.TException;
+ public List<Lecture> getLectureList() throws org.apache.thrift.TException;
+
public List<String> getAllOS() throws org.apache.thrift.TException;
public Map<String,String> getPersonData(String Vorname, String Nachname) throws org.apache.thrift.TException;
@@ -74,6 +76,8 @@ public class Server {
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;
@@ -235,6 +239,28 @@ public class Server {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImageList failed: unknown result");
}
+ public List<Lecture> getLectureList() throws org.apache.thrift.TException
+ {
+ send_getLectureList();
+ return recv_getLectureList();
+ }
+
+ public void send_getLectureList() throws org.apache.thrift.TException
+ {
+ getLectureList_args args = new getLectureList_args();
+ sendBase("getLectureList", args);
+ }
+
+ public List<Lecture> recv_getLectureList() throws org.apache.thrift.TException
+ {
+ getLectureList_result result = new getLectureList_result();
+ receiveBase(result, "getLectureList");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLectureList failed: unknown result");
+ }
+
public List<String> getAllOS() throws org.apache.thrift.TException
{
send_getAllOS();
@@ -624,6 +650,35 @@ public class Server {
}
}
+ public void getLectureList(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getLectureList_call method_call = new getLectureList_call(resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getLectureList_call extends org.apache.thrift.async.TAsyncMethodCall {
+ public getLectureList_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLectureList", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getLectureList_args args = new getLectureList_args();
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public List<Lecture> getResult() throws org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_getLectureList();
+ }
+ }
+
public void getAllOS(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
getAllOS_call method_call = new getAllOS_call(resultHandler, this, ___protocolFactory, ___transport);
@@ -926,6 +981,7 @@ public class Server {
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());
@@ -1038,6 +1094,26 @@ public class Server {
}
}
+ public static class getLectureList<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLectureList_args> {
+ public getLectureList() {
+ super("getLectureList");
+ }
+
+ public getLectureList_args getEmptyArgsInstance() {
+ return new getLectureList_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public getLectureList_result getResult(I iface, getLectureList_args args) throws org.apache.thrift.TException {
+ getLectureList_result result = new getLectureList_result();
+ result.success = iface.getLectureList();
+ return result;
+ }
+ }
+
public static class getAllOS<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllOS_args> {
public getAllOS() {
super("getAllOS");
@@ -1199,6 +1275,7 @@ public class Server {
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());
@@ -1466,6 +1543,57 @@ public class Server {
}
}
+ public static class getLectureList<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getLectureList_args, List<Lecture>> {
+ public getLectureList() {
+ super("getLectureList");
+ }
+
+ public getLectureList_args getEmptyArgsInstance() {
+ return new getLectureList_args();
+ }
+
+ public AsyncMethodCallback<List<Lecture>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new AsyncMethodCallback<List<Lecture>>() {
+ public void onComplete(List<Lecture> o) {
+ getLectureList_result result = new getLectureList_result();
+ result.success = o;
+ try {
+ fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ 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<List<Lecture>> resultHandler) throws TException {
+ iface.getLectureList(resultHandler);
+ }
+ }
+
public static class getAllOS<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getAllOS_args, List<String>> {
public getAllOS() {
super("getAllOS");
@@ -6391,6 +6519,660 @@ public class Server {
}
+ public static class getLectureList_args implements org.apache.thrift.TBase<getLectureList_args, getLectureList_args._Fields>, java.io.Serializable, Cloneable, Comparable<getLectureList_args> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLectureList_args");
+
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new getLectureList_argsStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new getLectureList_argsTupleSchemeFactory());
+ }
+
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+;
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureList_args.class, metaDataMap);
+ }
+
+ public getLectureList_args() {
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public getLectureList_args(getLectureList_args other) {
+ }
+
+ public getLectureList_args deepCopy() {
+ return new getLectureList_args(this);
+ }
+
+ @Override
+ public void clear() {
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ }
+ throw new IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
+ switch (field) {
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof getLectureList_args)
+ return this.equals((getLectureList_args)that);
+ return false;
+ }
+
+ public boolean equals(getLectureList_args that) {
+ if (that == null)
+ return false;
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return 0;
+ }
+
+ @Override
+ public int compareTo(getLectureList_args other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("getLectureList_args(");
+ boolean first = true;
+
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class getLectureList_argsStandardSchemeFactory implements SchemeFactory {
+ public getLectureList_argsStandardScheme getScheme() {
+ return new getLectureList_argsStandardScheme();
+ }
+ }
+
+ private static class getLectureList_argsStandardScheme extends StandardScheme<getLectureList_args> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureList_args struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+
+ // check for required fields of primitive type, which can't be checked in the validate method
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureList_args struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class getLectureList_argsTupleSchemeFactory implements SchemeFactory {
+ public getLectureList_argsTupleScheme getScheme() {
+ return new getLectureList_argsTupleScheme();
+ }
+ }
+
+ private static class getLectureList_argsTupleScheme extends TupleScheme<getLectureList_args> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, getLectureList_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, getLectureList_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ }
+ }
+
+ }
+
+ public static class getLectureList_result implements org.apache.thrift.TBase<getLectureList_result, getLectureList_result._Fields>, java.io.Serializable, Cloneable, Comparable<getLectureList_result> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLectureList_result");
+
+ private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new getLectureList_resultStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new getLectureList_resultTupleSchemeFactory());
+ }
+
+ public List<Lecture> success; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ SUCCESS((short)0, "success");
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 0: // SUCCESS
+ return SUCCESS;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Lecture.class))));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureList_result.class, metaDataMap);
+ }
+
+ public getLectureList_result() {
+ }
+
+ public getLectureList_result(
+ List<Lecture> success)
+ {
+ this();
+ this.success = success;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public getLectureList_result(getLectureList_result other) {
+ if (other.isSetSuccess()) {
+ List<Lecture> __this__success = new ArrayList<Lecture>(other.success.size());
+ for (Lecture other_element : other.success) {
+ __this__success.add(new Lecture(other_element));
+ }
+ this.success = __this__success;
+ }
+ }
+
+ public getLectureList_result deepCopy() {
+ return new getLectureList_result(this);
+ }
+
+ @Override
+ public void clear() {
+ this.success = null;
+ }
+
+ public int getSuccessSize() {
+ return (this.success == null) ? 0 : this.success.size();
+ }
+
+ public java.util.Iterator<Lecture> getSuccessIterator() {
+ return (this.success == null) ? null : this.success.iterator();
+ }
+
+ public void addToSuccess(Lecture elem) {
+ if (this.success == null) {
+ this.success = new ArrayList<Lecture>();
+ }
+ this.success.add(elem);
+ }
+
+ public List<Lecture> getSuccess() {
+ return this.success;
+ }
+
+ public getLectureList_result setSuccess(List<Lecture> success) {
+ this.success = success;
+ return this;
+ }
+
+ public void unsetSuccess() {
+ this.success = null;
+ }
+
+ /** Returns true if field success is set (has been assigned a value) and false otherwise */
+ public boolean isSetSuccess() {
+ return this.success != null;
+ }
+
+ public void setSuccessIsSet(boolean value) {
+ if (!value) {
+ this.success = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case SUCCESS:
+ if (value == null) {
+ unsetSuccess();
+ } else {
+ setSuccess((List<Lecture>)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case SUCCESS:
+ return getSuccess();
+
+ }
+ throw new IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
+ switch (field) {
+ case SUCCESS:
+ return isSetSuccess();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof getLectureList_result)
+ return this.equals((getLectureList_result)that);
+ return false;
+ }
+
+ public boolean equals(getLectureList_result that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_success = true && this.isSetSuccess();
+ boolean that_present_success = true && that.isSetSuccess();
+ if (this_present_success || that_present_success) {
+ if (!(this_present_success && that_present_success))
+ return false;
+ if (!this.success.equals(that.success))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return 0;
+ }
+
+ @Override
+ public int compareTo(getLectureList_result other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetSuccess()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("getLectureList_result(");
+ boolean first = true;
+
+ sb.append("success:");
+ if (this.success == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.success);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class getLectureList_resultStandardSchemeFactory implements SchemeFactory {
+ public getLectureList_resultStandardScheme getScheme() {
+ return new getLectureList_resultStandardScheme();
+ }
+ }
+
+ private static class getLectureList_resultStandardScheme extends StandardScheme<getLectureList_result> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureList_result struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 0: // SUCCESS
+ if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
+ {
+ org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
+ struct.success = new ArrayList<Lecture>(_list8.size);
+ for (int _i9 = 0; _i9 < _list8.size; ++_i9)
+ {
+ Lecture _elem10;
+ _elem10 = new Lecture();
+ _elem10.read(iprot);
+ struct.success.add(_elem10);
+ }
+ iprot.readListEnd();
+ }
+ struct.setSuccessIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+
+ // check for required fields of primitive type, which can't be checked in the validate method
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureList_result struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.success != null) {
+ oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
+ {
+ oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
+ for (Lecture _iter11 : struct.success)
+ {
+ _iter11.write(oprot);
+ }
+ oprot.writeListEnd();
+ }
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class getLectureList_resultTupleSchemeFactory implements SchemeFactory {
+ public getLectureList_resultTupleScheme getScheme() {
+ return new getLectureList_resultTupleScheme();
+ }
+ }
+
+ private static class getLectureList_resultTupleScheme extends TupleScheme<getLectureList_result> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, getLectureList_result struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetSuccess()) {
+ optionals.set(0);
+ }
+ oprot.writeBitSet(optionals, 1);
+ if (struct.isSetSuccess()) {
+ {
+ oprot.writeI32(struct.success.size());
+ for (Lecture _iter12 : struct.success)
+ {
+ _iter12.write(oprot);
+ }
+ }
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, getLectureList_result struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(1);
+ if (incoming.get(0)) {
+ {
+ org.apache.thrift.protocol.TList _list13 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.success = new ArrayList<Lecture>(_list13.size);
+ for (int _i14 = 0; _i14 < _list13.size; ++_i14)
+ {
+ Lecture _elem15;
+ _elem15 = new Lecture();
+ _elem15.read(iprot);
+ struct.success.add(_elem15);
+ }
+ }
+ struct.setSuccessIsSet(true);
+ }
+ }
+ }
+
+ }
+
public static class getAllOS_args implements org.apache.thrift.TBase<getAllOS_args, getAllOS_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAllOS_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllOS_args");
@@ -6943,13 +7725,13 @@ public class Server {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
- struct.success = new ArrayList<String>(_list8.size);
- for (int _i9 = 0; _i9 < _list8.size; ++_i9)
+ org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
+ struct.success = new ArrayList<String>(_list16.size);
+ for (int _i17 = 0; _i17 < _list16.size; ++_i17)
{
- String _elem10;
- _elem10 = iprot.readString();
- struct.success.add(_elem10);
+ String _elem18;
+ _elem18 = iprot.readString();
+ struct.success.add(_elem18);
}
iprot.readListEnd();
}
@@ -6977,9 +7759,9 @@ public class Server {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size()));
- for (String _iter11 : struct.success)
+ for (String _iter19 : struct.success)
{
- oprot.writeString(_iter11);
+ oprot.writeString(_iter19);
}
oprot.writeListEnd();
}
@@ -7010,9 +7792,9 @@ public class Server {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (String _iter12 : struct.success)
+ for (String _iter20 : struct.success)
{
- oprot.writeString(_iter12);
+ oprot.writeString(_iter20);
}
}
}
@@ -7024,13 +7806,13 @@ public class Server {
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list13 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.success = new ArrayList<String>(_list13.size);
- for (int _i14 = 0; _i14 < _list13.size; ++_i14)
+ org.apache.thrift.protocol.TList _list21 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.success = new ArrayList<String>(_list21.size);
+ for (int _i22 = 0; _i22 < _list21.size; ++_i22)
{
- String _elem15;
- _elem15 = iprot.readString();
- struct.success.add(_elem15);
+ String _elem23;
+ _elem23 = iprot.readString();
+ struct.success.add(_elem23);
}
}
struct.setSuccessIsSet(true);
@@ -7797,15 +8579,15 @@ public class Server {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
- org.apache.thrift.protocol.TMap _map16 = iprot.readMapBegin();
- struct.success = new HashMap<String,String>(2*_map16.size);
- for (int _i17 = 0; _i17 < _map16.size; ++_i17)
+ org.apache.thrift.protocol.TMap _map24 = iprot.readMapBegin();
+ struct.success = new HashMap<String,String>(2*_map24.size);
+ for (int _i25 = 0; _i25 < _map24.size; ++_i25)
{
- String _key18;
- String _val19;
- _key18 = iprot.readString();
- _val19 = iprot.readString();
- struct.success.put(_key18, _val19);
+ String _key26;
+ String _val27;
+ _key26 = iprot.readString();
+ _val27 = iprot.readString();
+ struct.success.put(_key26, _val27);
}
iprot.readMapEnd();
}
@@ -7833,10 +8615,10 @@ public class Server {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size()));
- for (Map.Entry<String, String> _iter20 : struct.success.entrySet())
+ for (Map.Entry<String, String> _iter28 : struct.success.entrySet())
{
- oprot.writeString(_iter20.getKey());
- oprot.writeString(_iter20.getValue());
+ oprot.writeString(_iter28.getKey());
+ oprot.writeString(_iter28.getValue());
}
oprot.writeMapEnd();
}
@@ -7867,10 +8649,10 @@ public class Server {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (Map.Entry<String, String> _iter21 : struct.success.entrySet())
+ for (Map.Entry<String, String> _iter29 : struct.success.entrySet())
{
- oprot.writeString(_iter21.getKey());
- oprot.writeString(_iter21.getValue());
+ oprot.writeString(_iter29.getKey());
+ oprot.writeString(_iter29.getValue());
}
}
}
@@ -7882,15 +8664,15 @@ public class Server {
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TMap _map22 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.success = new HashMap<String,String>(2*_map22.size);
- for (int _i23 = 0; _i23 < _map22.size; ++_i23)
+ org.apache.thrift.protocol.TMap _map30 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.success = new HashMap<String,String>(2*_map30.size);
+ for (int _i31 = 0; _i31 < _map30.size; ++_i31)
{
- String _key24;
- String _val25;
- _key24 = iprot.readString();
- _val25 = iprot.readString();
- struct.success.put(_key24, _val25);
+ String _key32;
+ String _val33;
+ _key32 = iprot.readString();
+ _val33 = iprot.readString();
+ struct.success.put(_key32, _val33);
}
}
struct.setSuccessIsSet(true);
@@ -11271,15 +12053,15 @@ public class Server {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
- org.apache.thrift.protocol.TMap _map26 = iprot.readMapBegin();
- struct.success = new HashMap<String,String>(2*_map26.size);
- for (int _i27 = 0; _i27 < _map26.size; ++_i27)
+ org.apache.thrift.protocol.TMap _map34 = iprot.readMapBegin();
+ struct.success = new HashMap<String,String>(2*_map34.size);
+ for (int _i35 = 0; _i35 < _map34.size; ++_i35)
{
- String _key28;
- String _val29;
- _key28 = iprot.readString();
- _val29 = iprot.readString();
- struct.success.put(_key28, _val29);
+ String _key36;
+ String _val37;
+ _key36 = iprot.readString();
+ _val37 = iprot.readString();
+ struct.success.put(_key36, _val37);
}
iprot.readMapEnd();
}
@@ -11307,10 +12089,10 @@ public class Server {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size()));
- for (Map.Entry<String, String> _iter30 : struct.success.entrySet())
+ for (Map.Entry<String, String> _iter38 : struct.success.entrySet())
{
- oprot.writeString(_iter30.getKey());
- oprot.writeString(_iter30.getValue());
+ oprot.writeString(_iter38.getKey());
+ oprot.writeString(_iter38.getValue());
}
oprot.writeMapEnd();
}
@@ -11341,10 +12123,10 @@ public class Server {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (Map.Entry<String, String> _iter31 : struct.success.entrySet())
+ for (Map.Entry<String, String> _iter39 : struct.success.entrySet())
{
- oprot.writeString(_iter31.getKey());
- oprot.writeString(_iter31.getValue());
+ oprot.writeString(_iter39.getKey());
+ oprot.writeString(_iter39.getValue());
}
}
}
@@ -11356,15 +12138,15 @@ public class Server {
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TMap _map32 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.success = new HashMap<String,String>(2*_map32.size);
- for (int _i33 = 0; _i33 < _map32.size; ++_i33)
+ org.apache.thrift.protocol.TMap _map40 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.success = new HashMap<String,String>(2*_map40.size);
+ for (int _i41 = 0; _i41 < _map40.size; ++_i41)
{
- String _key34;
- String _val35;
- _key34 = iprot.readString();
- _val35 = iprot.readString();
- struct.success.put(_key34, _val35);
+ String _key42;
+ String _val43;
+ _key42 = iprot.readString();
+ _val43 = iprot.readString();
+ struct.success.put(_key42, _val43);
}
}
struct.setSuccessIsSet(true);
@@ -13419,15 +14201,15 @@ public class Server {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
- org.apache.thrift.protocol.TMap _map36 = iprot.readMapBegin();
- struct.success = new HashMap<String,String>(2*_map36.size);
- for (int _i37 = 0; _i37 < _map36.size; ++_i37)
+ org.apache.thrift.protocol.TMap _map44 = iprot.readMapBegin();
+ struct.success = new HashMap<String,String>(2*_map44.size);
+ for (int _i45 = 0; _i45 < _map44.size; ++_i45)
{
- String _key38;
- String _val39;
- _key38 = iprot.readString();
- _val39 = iprot.readString();
- struct.success.put(_key38, _val39);
+ String _key46;
+ String _val47;
+ _key46 = iprot.readString();
+ _val47 = iprot.readString();
+ struct.success.put(_key46, _val47);
}
iprot.readMapEnd();
}
@@ -13455,10 +14237,10 @@ public class Server {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size()));
- for (Map.Entry<String, String> _iter40 : struct.success.entrySet())
+ for (Map.Entry<String, String> _iter48 : struct.success.entrySet())
{
- oprot.writeString(_iter40.getKey());
- oprot.writeString(_iter40.getValue());
+ oprot.writeString(_iter48.getKey());
+ oprot.writeString(_iter48.getValue());
}
oprot.writeMapEnd();
}
@@ -13489,10 +14271,10 @@ public class Server {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (Map.Entry<String, String> _iter41 : struct.success.entrySet())
+ for (Map.Entry<String, String> _iter49 : struct.success.entrySet())
{
- oprot.writeString(_iter41.getKey());
- oprot.writeString(_iter41.getValue());
+ oprot.writeString(_iter49.getKey());
+ oprot.writeString(_iter49.getValue());
}
}
}
@@ -13504,15 +14286,15 @@ public class Server {
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TMap _map42 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.success = new HashMap<String,String>(2*_map42.size);
- for (int _i43 = 0; _i43 < _map42.size; ++_i43)
+ org.apache.thrift.protocol.TMap _map50 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.success = new HashMap<String,String>(2*_map50.size);
+ for (int _i51 = 0; _i51 < _map50.size; ++_i51)
{
- String _key44;
- String _val45;
- _key44 = iprot.readString();
- _val45 = iprot.readString();
- struct.success.put(_key44, _val45);
+ String _key52;
+ String _val53;
+ _key52 = iprot.readString();
+ _val53 = iprot.readString();
+ struct.success.put(_key52, _val53);
}
}
struct.setSuccessIsSet(true);
diff --git a/Dozentenmodulserver/src/server/ServerHandler.java b/Dozentenmodulserver/src/server/ServerHandler.java
index 26a1967b..d50c65a9 100644
--- a/Dozentenmodulserver/src/server/ServerHandler.java
+++ b/Dozentenmodulserver/src/server/ServerHandler.java
@@ -278,4 +278,30 @@ public class ServerHandler implements Server.Iface {
return null;
}
+
+ @Override
+ public List<Lecture> getLectureList() throws TException {
+ ResultSet res=sql.getLectureList(con);
+
+ List<Lecture> list = new ArrayList<Lecture>();
+
+ try {
+
+ while(res.next())
+ {
+
+ list.add(new Lecture(res.getString("lectureID"), res.getString("name"), res.getString("isActive"), res.getString("startTime"), res.getString("endTime"), res.getString("lastUsed"), res.getString("description"), res.getString("image_name"), res.getString("user")));
+
+ }
+
+
+ return list;
+ } catch (SQLException e1) {
+ // TODO Auto-generated catch block
+ e1.printStackTrace();
+ }
+
+ return null;
+ }
+
}