From 61e8e600dd1c9d6066711dfb9874e0117b87baf6 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Wed, 10 Sep 2014 14:54:40 +0200 Subject: mavenization v2 --- .../src/main/java/server/Image.java | 108 +- .../src/main/java/server/Server.java | 14446 +++++++++++++------ .../src/main/java/server/ServerHandler.java | 190 +- .../src/main/java/server/StartServer.java | 70 +- Dozentenmodulserver/src/main/java/sql/SQL.java | 279 +- .../src/main/java/util/XMLCreator.java | 19 +- 6 files changed, 10612 insertions(+), 4500 deletions(-) (limited to 'Dozentenmodulserver/src/main/java') diff --git a/Dozentenmodulserver/src/main/java/server/Image.java b/Dozentenmodulserver/src/main/java/server/Image.java index 34c2b45c..16fc1ef5 100644 --- a/Dozentenmodulserver/src/main/java/server/Image.java +++ b/Dozentenmodulserver/src/main/java/server/Image.java @@ -43,6 +43,7 @@ public class Image implements org.apache.thrift.TBase, jav 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 org.apache.thrift.protocol.TField IS_TEMPLATE_FIELD_DESC = new org.apache.thrift.protocol.TField("isTemplate", org.apache.thrift.protocol.TType.STRING, (short)-9); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -58,6 +59,7 @@ public class Image implements org.apache.thrift.TBase, jav public String lectureName; // required public String updateTime; // required public String userData; // required + public String isTemplate; // 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 { @@ -68,7 +70,8 @@ public class Image implements org.apache.thrift.TBase, jav OS_NAME((short)-5, "osName"), LECTURE_NAME((short)-6, "lectureName"), UPDATE_TIME((short)-7, "updateTime"), - USER_DATA((short)-8, "userData"); + USER_DATA((short)-8, "userData"), + IS_TEMPLATE((short)-9, "isTemplate"); private static final Map byName = new HashMap(); @@ -99,6 +102,8 @@ public class Image implements org.apache.thrift.TBase, jav return UPDATE_TIME; case -8: // USER_DATA return USER_DATA; + case -9: // IS_TEMPLATE + return IS_TEMPLATE; default: return null; } @@ -158,6 +163,8 @@ public class Image implements org.apache.thrift.TBase, jav 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))); + tmpMap.put(_Fields.IS_TEMPLATE, new org.apache.thrift.meta_data.FieldMetaData("isTemplate", 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); } @@ -173,7 +180,8 @@ public class Image implements org.apache.thrift.TBase, jav String osName, String lectureName, String updateTime, - String userData) + String userData, + String isTemplate) { this(); this.id = id; @@ -184,6 +192,7 @@ public class Image implements org.apache.thrift.TBase, jav this.lectureName = lectureName; this.updateTime = updateTime; this.userData = userData; + this.isTemplate = isTemplate; } /** @@ -214,6 +223,9 @@ public class Image implements org.apache.thrift.TBase, jav if (other.isSetUserData()) { this.userData = other.userData; } + if (other.isSetIsTemplate()) { + this.isTemplate = other.isTemplate; + } } public Image deepCopy() { @@ -230,6 +242,7 @@ public class Image implements org.apache.thrift.TBase, jav this.lectureName = null; this.updateTime = null; this.userData = null; + this.isTemplate = null; } public String getId() { @@ -424,6 +437,30 @@ public class Image implements org.apache.thrift.TBase, jav } } + public String getIsTemplate() { + return this.isTemplate; + } + + public Image setIsTemplate(String isTemplate) { + this.isTemplate = isTemplate; + return this; + } + + public void unsetIsTemplate() { + this.isTemplate = null; + } + + /** Returns true if field isTemplate is set (has been assigned a value) and false otherwise */ + public boolean isSetIsTemplate() { + return this.isTemplate != null; + } + + public void setIsTemplateIsSet(boolean value) { + if (!value) { + this.isTemplate = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case ID: @@ -490,6 +527,14 @@ public class Image implements org.apache.thrift.TBase, jav } break; + case IS_TEMPLATE: + if (value == null) { + unsetIsTemplate(); + } else { + setIsTemplate((String)value); + } + break; + } } @@ -519,6 +564,9 @@ public class Image implements org.apache.thrift.TBase, jav case USER_DATA: return getUserData(); + case IS_TEMPLATE: + return getIsTemplate(); + } throw new IllegalStateException(); } @@ -546,6 +594,8 @@ public class Image implements org.apache.thrift.TBase, jav return isSetUpdateTime(); case USER_DATA: return isSetUserData(); + case IS_TEMPLATE: + return isSetIsTemplate(); } throw new IllegalStateException(); } @@ -635,6 +685,15 @@ public class Image implements org.apache.thrift.TBase, jav return false; } + boolean this_present_isTemplate = true && this.isSetIsTemplate(); + boolean that_present_isTemplate = true && that.isSetIsTemplate(); + if (this_present_isTemplate || that_present_isTemplate) { + if (!(this_present_isTemplate && that_present_isTemplate)) + return false; + if (!this.isTemplate.equals(that.isTemplate)) + return false; + } + return true; } @@ -731,6 +790,16 @@ public class Image implements org.apache.thrift.TBase, jav return lastComparison; } } + lastComparison = Boolean.valueOf(isSetIsTemplate()).compareTo(other.isSetIsTemplate()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIsTemplate()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isTemplate, other.isTemplate); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -814,6 +883,14 @@ public class Image implements org.apache.thrift.TBase, jav sb.append(this.userData); } first = false; + if (!first) sb.append(", "); + sb.append("isTemplate:"); + if (this.isTemplate == null) { + sb.append("null"); + } else { + sb.append(this.isTemplate); + } + first = false; sb.append(")"); return sb.toString(); } @@ -921,6 +998,14 @@ public class Image implements org.apache.thrift.TBase, jav org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case -9: // IS_TEMPLATE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.isTemplate = iprot.readString(); + struct.setIsTemplateIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -936,6 +1021,11 @@ public class Image implements org.apache.thrift.TBase, jav struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.isTemplate != null) { + oprot.writeFieldBegin(IS_TEMPLATE_FIELD_DESC); + oprot.writeString(struct.isTemplate); + oprot.writeFieldEnd(); + } if (struct.userData != null) { oprot.writeFieldBegin(USER_DATA_FIELD_DESC); oprot.writeString(struct.userData); @@ -1018,7 +1108,10 @@ public class Image implements org.apache.thrift.TBase, jav if (struct.isSetUserData()) { optionals.set(7); } - oprot.writeBitSet(optionals, 8); + if (struct.isSetIsTemplate()) { + optionals.set(8); + } + oprot.writeBitSet(optionals, 9); if (struct.isSetId()) { oprot.writeString(struct.id); } @@ -1043,12 +1136,15 @@ public class Image implements org.apache.thrift.TBase, jav if (struct.isSetUserData()) { oprot.writeString(struct.userData); } + if (struct.isSetIsTemplate()) { + oprot.writeString(struct.isTemplate); + } } @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); + BitSet incoming = iprot.readBitSet(9); if (incoming.get(0)) { struct.id = iprot.readString(); struct.setIdIsSet(true); @@ -1081,6 +1177,10 @@ public class Image implements org.apache.thrift.TBase, jav struct.userData = iprot.readString(); struct.setUserDataIsSet(true); } + if (incoming.get(8)) { + struct.isTemplate = iprot.readString(); + struct.setIsTemplateIsSet(true); + } } } diff --git a/Dozentenmodulserver/src/main/java/server/Server.java b/Dozentenmodulserver/src/main/java/server/Server.java index 8e36bd49..ab527168 100644 --- a/Dozentenmodulserver/src/main/java/server/Server.java +++ b/Dozentenmodulserver/src/main/java/server/Server.java @@ -42,7 +42,7 @@ public class Server { 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 boolean writeVLdata(String imagename, String desc, 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, String os) throws org.apache.thrift.TException; public List getImageList() throws org.apache.thrift.TException; @@ -60,13 +60,13 @@ public class Server { 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 lectureid) throws org.apache.thrift.TException; - public Map getLectureData(String lecturename) throws org.apache.thrift.TException; + public boolean updateImageData(String name, String newName, String desc, String image_path, boolean license, boolean internet, long ram, long cpu, String id, String version, boolean isTemplate, long filesize, long shareMode, String os) 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 updateLecturedata(String name, String newName, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imageid, String imageversion, String user, 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; @@ -74,6 +74,14 @@ public class Server { public boolean deleteLecture(String id, String hs, String user) throws org.apache.thrift.TException; + public boolean checkUser(String username) throws org.apache.thrift.TException; + + public boolean createUser(String loginName, String lastName, String firstName, String mail, String university) throws org.apache.thrift.TException; + + public boolean writeImageRights(String imagename, String username, String lastName, String firstName, String mail, String university, String role) throws org.apache.thrift.TException; + + public boolean writeLectureRights(String lecturename, String username, String lastName, String firstName, String mail, String university, String role) throws org.apache.thrift.TException; + } public interface AsyncIface { @@ -84,7 +92,7 @@ public class Server { 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 writeVLdata(String imagename, String desc, 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, String os, 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; @@ -102,13 +110,13 @@ public class Server { 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 lectureid, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getLectureData(String lecturename, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void updateImageData(String name, String newName, String desc, String image_path, boolean license, boolean internet, long ram, long cpu, String id, String version, boolean isTemplate, long filesize, long shareMode, String os, 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 updateLecturedata(String name, String newName, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imageid, String imageversion, String user, 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; @@ -116,6 +124,14 @@ public class Server { public void deleteLecture(String id, String hs, String user, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void checkUser(String username, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + + public void createUser(String loginName, String lastName, String firstName, String mail, String university, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + + public void writeImageRights(String imagename, String username, String lastName, String firstName, String mail, String university, String role, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + + public void writeLectureRights(String lecturename, String username, String lastName, String firstName, String mail, String university, String role, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + } public static class Client extends org.apache.thrift.TServiceClient implements Iface { @@ -207,16 +223,17 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPathOfImage failed: unknown result"); } - public boolean writeVLdata(String imagename, String 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 boolean writeVLdata(String imagename, String desc, 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, String os) throws org.apache.thrift.TException { - send_writeVLdata(imagename, login, firstname, lastname, university, Mail, Tel, Fak, license, internet, ram, cpu, imagePath, isTemplate, filesize, shareMode); + send_writeVLdata(imagename, desc, login, firstname, lastname, university, Mail, Tel, Fak, license, internet, ram, cpu, imagePath, isTemplate, filesize, shareMode, os); 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 + public void send_writeVLdata(String imagename, String desc, 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, String os) throws org.apache.thrift.TException { writeVLdata_args args = new writeVLdata_args(); args.setImagename(imagename); + args.setDesc(desc); args.setLogin(login); args.setFirstname(firstname); args.setLastname(lastname); @@ -232,6 +249,7 @@ public class Server { args.setIsTemplate(isTemplate); args.setFilesize(filesize); args.setShareMode(shareMode); + args.setOs(os); sendBase("writeVLdata", args); } @@ -440,17 +458,41 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImageData failed: unknown result"); } - public boolean updateImageData(String name, String newName, 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 lectureid) throws org.apache.thrift.TException + { + send_getLectureData(lectureid); + return recv_getLectureData(); + } + + public void send_getLectureData(String lectureid) throws org.apache.thrift.TException + { + getLectureData_args args = new getLectureData_args(); + args.setLectureid(lectureid); + 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 updateImageData(String name, String newName, String desc, String image_path, boolean license, boolean internet, long ram, long cpu, String id, String version, boolean isTemplate, long filesize, long shareMode, String os) throws org.apache.thrift.TException { - send_updateImageData(name, newName, image_path, license, internet, ram, cpu, id, version, isTemplate, filesize, shareMode); + send_updateImageData(name, newName, desc, image_path, license, internet, ram, cpu, id, version, isTemplate, filesize, shareMode, os); 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 + public void send_updateImageData(String name, String newName, String desc, String image_path, boolean license, boolean internet, long ram, long cpu, String id, String version, boolean isTemplate, long filesize, long shareMode, String os) throws org.apache.thrift.TException { updateImageData_args args = new updateImageData_args(); args.setName(name); args.setNewName(newName); + args.setDesc(desc); args.setImage_path(image_path); args.setLicense(license); args.setInternet(internet); @@ -461,6 +503,7 @@ public class Server { args.setIsTemplate(isTemplate); args.setFilesize(filesize); args.setShareMode(shareMode); + args.setOs(os); sendBase("updateImageData", args); } @@ -474,29 +517,6 @@ public class Server { 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); @@ -521,13 +541,13 @@ public class Server { 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 + public boolean updateLecturedata(String name, String newName, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imageid, String imageversion, String user, 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); + send_updateLecturedata(name, newName, shortdesc, desc, startDate, endDate, isActive, imageid, imageversion, user, 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 + public void send_updateLecturedata(String name, String newName, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imageid, String imageversion, String user, 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); @@ -537,7 +557,9 @@ public class Server { args.setStartDate(startDate); args.setEndDate(endDate); args.setIsActive(isActive); - args.setImagename(imagename); + args.setImageid(imageid); + args.setImageversion(imageversion); + args.setUser(user); args.setFirstname(firstname); args.setLastname(lastname); args.setUniversity(university); @@ -631,6 +653,114 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteLecture failed: unknown result"); } + public boolean checkUser(String username) throws org.apache.thrift.TException + { + send_checkUser(username); + return recv_checkUser(); + } + + public void send_checkUser(String username) throws org.apache.thrift.TException + { + checkUser_args args = new checkUser_args(); + args.setUsername(username); + sendBase("checkUser", args); + } + + public boolean recv_checkUser() throws org.apache.thrift.TException + { + checkUser_result result = new checkUser_result(); + receiveBase(result, "checkUser"); + if (result.isSetSuccess()) { + return result.success; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "checkUser failed: unknown result"); + } + + public boolean createUser(String loginName, String lastName, String firstName, String mail, String university) throws org.apache.thrift.TException + { + send_createUser(loginName, lastName, firstName, mail, university); + return recv_createUser(); + } + + public void send_createUser(String loginName, String lastName, String firstName, String mail, String university) throws org.apache.thrift.TException + { + createUser_args args = new createUser_args(); + args.setLoginName(loginName); + args.setLastName(lastName); + args.setFirstName(firstName); + args.setMail(mail); + args.setUniversity(university); + sendBase("createUser", args); + } + + public boolean recv_createUser() throws org.apache.thrift.TException + { + createUser_result result = new createUser_result(); + receiveBase(result, "createUser"); + if (result.isSetSuccess()) { + return result.success; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createUser failed: unknown result"); + } + + public boolean writeImageRights(String imagename, String username, String lastName, String firstName, String mail, String university, String role) throws org.apache.thrift.TException + { + send_writeImageRights(imagename, username, lastName, firstName, mail, university, role); + return recv_writeImageRights(); + } + + public void send_writeImageRights(String imagename, String username, String lastName, String firstName, String mail, String university, String role) throws org.apache.thrift.TException + { + writeImageRights_args args = new writeImageRights_args(); + args.setImagename(imagename); + args.setUsername(username); + args.setLastName(lastName); + args.setFirstName(firstName); + args.setMail(mail); + args.setUniversity(university); + args.setRole(role); + sendBase("writeImageRights", args); + } + + public boolean recv_writeImageRights() throws org.apache.thrift.TException + { + writeImageRights_result result = new writeImageRights_result(); + receiveBase(result, "writeImageRights"); + if (result.isSetSuccess()) { + return result.success; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "writeImageRights failed: unknown result"); + } + + public boolean writeLectureRights(String lecturename, String username, String lastName, String firstName, String mail, String university, String role) throws org.apache.thrift.TException + { + send_writeLectureRights(lecturename, username, lastName, firstName, mail, university, role); + return recv_writeLectureRights(); + } + + public void send_writeLectureRights(String lecturename, String username, String lastName, String firstName, String mail, String university, String role) throws org.apache.thrift.TException + { + writeLectureRights_args args = new writeLectureRights_args(); + args.setLecturename(lecturename); + args.setUsername(username); + args.setLastName(lastName); + args.setFirstName(firstName); + args.setMail(mail); + args.setUniversity(university); + args.setRole(role); + sendBase("writeLectureRights", args); + } + + public boolean recv_writeLectureRights() throws org.apache.thrift.TException + { + writeLectureRights_result result = new writeLectureRights_result(); + receiveBase(result, "writeLectureRights"); + if (result.isSetSuccess()) { + return result.success; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "writeLectureRights 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 { @@ -745,15 +875,16 @@ public class Server { } } - 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 writeVLdata(String imagename, String desc, 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, String os, 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); + writeVLdata_call method_call = new writeVLdata_call(imagename, desc, login, firstname, lastname, university, Mail, Tel, Fak, license, internet, ram, cpu, imagePath, isTemplate, filesize, shareMode, os, 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 desc; private String login; private String firstname; private String lastname; @@ -769,9 +900,11 @@ public class Server { 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 { + private String os; + public writeVLdata_call(String imagename, String desc, 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, String os, 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.desc = desc; this.login = login; this.firstname = firstname; this.lastname = lastname; @@ -787,12 +920,14 @@ public class Server { this.isTemplate = isTemplate; this.filesize = filesize; this.shareMode = shareMode; + this.os = os; } 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.setDesc(desc); args.setLogin(login); args.setFirstname(firstname); args.setLastname(lastname); @@ -808,6 +943,7 @@ public class Server { args.setIsTemplate(isTemplate); args.setFilesize(filesize); args.setShareMode(shareMode); + args.setOs(os); args.write(prot); prot.writeMessageEnd(); } @@ -1111,9 +1247,41 @@ public class Server { } } - 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 lectureid, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + getLectureData_call method_call = new getLectureData_call(lectureid, 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 lectureid; + public getLectureData_call(String lectureid, 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.lectureid = lectureid; + } + + 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.setLectureid(lectureid); + 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 updateImageData(String name, String newName, String desc, String image_path, boolean license, boolean internet, long ram, long cpu, String id, String version, boolean isTemplate, long filesize, long shareMode, String os, 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); + updateImageData_call method_call = new updateImageData_call(name, newName, desc, image_path, license, internet, ram, cpu, id, version, isTemplate, filesize, shareMode, os, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } @@ -1121,6 +1289,7 @@ public class Server { public static class updateImageData_call extends org.apache.thrift.async.TAsyncMethodCall { private String name; private String newName; + private String desc; private String image_path; private boolean license; private boolean internet; @@ -1131,10 +1300,12 @@ public class Server { 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 { + private String os; + public updateImageData_call(String name, String newName, String desc, String image_path, boolean license, boolean internet, long ram, long cpu, String id, String version, boolean isTemplate, long filesize, long shareMode, String os, 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.desc = desc; this.image_path = image_path; this.license = license; this.internet = internet; @@ -1145,6 +1316,7 @@ public class Server { this.isTemplate = isTemplate; this.filesize = filesize; this.shareMode = shareMode; + this.os = os; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { @@ -1152,6 +1324,7 @@ public class Server { updateImageData_args args = new updateImageData_args(); args.setName(name); args.setNewName(newName); + args.setDesc(desc); args.setImage_path(image_path); args.setLicense(license); args.setInternet(internet); @@ -1162,6 +1335,7 @@ public class Server { args.setIsTemplate(isTemplate); args.setFilesize(filesize); args.setShareMode(shareMode); + args.setOs(os); args.write(prot); prot.writeMessageEnd(); } @@ -1176,38 +1350,6 @@ public class Server { } } - public void getLectureData(String lecturename, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { - checkReady(); - getLectureData_call method_call = new getLectureData_call(lecturename, resultHandler, this, ___protocolFactory, ___transport); - this.___currentMethod = method_call; - ___manager.call(method_call); - } - - public static class getLectureData_call extends org.apache.thrift.async.TAsyncMethodCall { - private String lecturename; - public getLectureData_call(String lecturename, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { - super(client, protocolFactory, transport, resultHandler, false); - this.lecturename = lecturename; - } - - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLectureData", org.apache.thrift.protocol.TMessageType.CALL, 0)); - getLectureData_args args = new getLectureData_args(); - args.setLecturename(lecturename); - args.write(prot); - prot.writeMessageEnd(); - } - - public Map 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); @@ -1243,9 +1385,9 @@ public class Server { } } - 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 updateLecturedata(String name, String newName, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imageid, String imageversion, String user, 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); + updateLecturedata_call method_call = new updateLecturedata_call(name, newName, shortdesc, desc, startDate, endDate, isActive, imageid, imageversion, user, firstname, lastname, university, Mail, Tel, Fak, id, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } @@ -1258,7 +1400,9 @@ public class Server { private String startDate; private String endDate; private boolean isActive; - private String imagename; + private String imageid; + private String imageversion; + private String user; private String firstname; private String lastname; private String university; @@ -1266,7 +1410,7 @@ public class Server { 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 { + public updateLecturedata_call(String name, String newName, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imageid, String imageversion, String user, 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; @@ -1275,7 +1419,9 @@ public class Server { this.startDate = startDate; this.endDate = endDate; this.isActive = isActive; - this.imagename = imagename; + this.imageid = imageid; + this.imageversion = imageversion; + this.user = user; this.firstname = firstname; this.lastname = lastname; this.university = university; @@ -1295,7 +1441,9 @@ public class Server { args.setStartDate(startDate); args.setEndDate(endDate); args.setIsActive(isActive); - args.setImagename(imagename); + args.setImageid(imageid); + args.setImageversion(imageversion); + args.setUser(user); args.setFirstname(firstname); args.setLastname(lastname); args.setUniversity(university); @@ -1425,73 +1573,253 @@ public class Server { } } - } - - 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("getAllUniversities", new getAllUniversities()); - 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 void checkUser(String username, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + checkUser_call method_call = new checkUser_call(username, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class getFtpUser extends org.apache.thrift.ProcessFunction { - public getFtpUser() { - super("getFtpUser"); + public static class checkUser_call extends org.apache.thrift.async.TAsyncMethodCall { + private String username; + public checkUser_call(String username, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.username = username; } - public getFtpUser_args getEmptyArgsInstance() { - return new getFtpUser_args(); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("checkUser", org.apache.thrift.protocol.TMessageType.CALL, 0)); + checkUser_args args = new checkUser_args(); + args.setUsername(username); + args.write(prot); + prot.writeMessageEnd(); } - protected boolean isOneway() { - return false; + 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_checkUser(); } + } - 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 void createUser(String loginName, String lastName, String firstName, String mail, String university, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + createUser_call method_call = new createUser_call(loginName, lastName, firstName, mail, university, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class DeleteFtpUser extends org.apache.thrift.ProcessFunction { - public DeleteFtpUser() { - super("DeleteFtpUser"); + public static class createUser_call extends org.apache.thrift.async.TAsyncMethodCall { + private String loginName; + private String lastName; + private String firstName; + private String mail; + private String university; + public createUser_call(String loginName, String lastName, String firstName, String mail, String university, 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.loginName = loginName; + this.lastName = lastName; + this.firstName = firstName; + this.mail = mail; + this.university = university; } - public DeleteFtpUser_args getEmptyArgsInstance() { - return new DeleteFtpUser_args(); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createUser", org.apache.thrift.protocol.TMessageType.CALL, 0)); + createUser_args args = new createUser_args(); + args.setLoginName(loginName); + args.setLastName(lastName); + args.setFirstName(firstName); + args.setMail(mail); + args.setUniversity(university); + args.write(prot); + prot.writeMessageEnd(); } - protected boolean isOneway() { - return false; - } + 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_createUser(); + } + } + + public void writeImageRights(String imagename, String username, String lastName, String firstName, String mail, String university, String role, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + writeImageRights_call method_call = new writeImageRights_call(imagename, username, lastName, firstName, mail, university, role, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class writeImageRights_call extends org.apache.thrift.async.TAsyncMethodCall { + private String imagename; + private String username; + private String lastName; + private String firstName; + private String mail; + private String university; + private String role; + public writeImageRights_call(String imagename, String username, String lastName, String firstName, String mail, String university, String role, 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.username = username; + this.lastName = lastName; + this.firstName = firstName; + this.mail = mail; + this.university = university; + this.role = role; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("writeImageRights", org.apache.thrift.protocol.TMessageType.CALL, 0)); + writeImageRights_args args = new writeImageRights_args(); + args.setImagename(imagename); + args.setUsername(username); + args.setLastName(lastName); + args.setFirstName(firstName); + args.setMail(mail); + args.setUniversity(university); + args.setRole(role); + 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_writeImageRights(); + } + } + + public void writeLectureRights(String lecturename, String username, String lastName, String firstName, String mail, String university, String role, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + writeLectureRights_call method_call = new writeLectureRights_call(lecturename, username, lastName, firstName, mail, university, role, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class writeLectureRights_call extends org.apache.thrift.async.TAsyncMethodCall { + private String lecturename; + private String username; + private String lastName; + private String firstName; + private String mail; + private String university; + private String role; + public writeLectureRights_call(String lecturename, String username, String lastName, String firstName, String mail, String university, String role, 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; + this.username = username; + this.lastName = lastName; + this.firstName = firstName; + this.mail = mail; + this.university = university; + this.role = role; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("writeLectureRights", org.apache.thrift.protocol.TMessageType.CALL, 0)); + writeLectureRights_args args = new writeLectureRights_args(); + args.setLecturename(lecturename); + args.setUsername(username); + args.setLastName(lastName); + args.setFirstName(firstName); + args.setMail(mail); + args.setUniversity(university); + args.setRole(role); + 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_writeLectureRights(); + } + } + + } + + 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("getAllUniversities", new getAllUniversities()); + processMap.put("getPersonData", new getPersonData()); + processMap.put("writeLecturedata", new writeLecturedata()); + processMap.put("startFileCopy", new startFileCopy()); + processMap.put("getImageData", new getImageData()); + processMap.put("getLectureData", new getLectureData()); + processMap.put("updateImageData", new updateImageData()); + 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()); + processMap.put("checkUser", new checkUser()); + processMap.put("createUser", new createUser()); + processMap.put("writeImageRights", new writeImageRights()); + processMap.put("writeLectureRights", new writeLectureRights()); + 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(); @@ -1536,7 +1864,7 @@ public class Server { public writeVLdata_result getResult(I iface, writeVLdata_args args) throws org.apache.thrift.TException { writeVLdata_result result = new writeVLdata_result(); - result.success = iface.writeVLdata(args.imagename, args.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.success = iface.writeVLdata(args.imagename, args.desc, 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, args.os); result.setSuccessIsSet(true); return result; } @@ -1704,43 +2032,43 @@ public class Server { } } - public static class updateImageData extends org.apache.thrift.ProcessFunction { - public updateImageData() { - super("updateImageData"); + public static class getLectureData extends org.apache.thrift.ProcessFunction { + public getLectureData() { + super("getLectureData"); } - public updateImageData_args getEmptyArgsInstance() { - return new updateImageData_args(); + public getLectureData_args getEmptyArgsInstance() { + return new getLectureData_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); + 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.lectureid); return result; } } - public static class getLectureData extends org.apache.thrift.ProcessFunction { - public getLectureData() { - super("getLectureData"); + public static class updateImageData extends org.apache.thrift.ProcessFunction { + public updateImageData() { + super("updateImageData"); } - public getLectureData_args getEmptyArgsInstance() { - return new getLectureData_args(); + public updateImageData_args getEmptyArgsInstance() { + return new updateImageData_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); + 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.desc, args.image_path, args.license, args.internet, args.ram, args.cpu, args.id, args.version, args.isTemplate, args.filesize, args.shareMode, args.os); + result.setSuccessIsSet(true); return result; } } @@ -1781,7 +2109,7 @@ public class Server { 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.success = iface.updateLecturedata(args.name, args.newName, args.shortdesc, args.desc, args.startDate, args.endDate, args.isActive, args.imageid, args.imageversion, args.user, args.firstname, args.lastname, args.university, args.Mail, args.Tel, args.Fak, args.id); result.setSuccessIsSet(true); return result; } @@ -1850,6 +2178,90 @@ public class Server { } } + public static class checkUser extends org.apache.thrift.ProcessFunction { + public checkUser() { + super("checkUser"); + } + + public checkUser_args getEmptyArgsInstance() { + return new checkUser_args(); + } + + protected boolean isOneway() { + return false; + } + + public checkUser_result getResult(I iface, checkUser_args args) throws org.apache.thrift.TException { + checkUser_result result = new checkUser_result(); + result.success = iface.checkUser(args.username); + result.setSuccessIsSet(true); + return result; + } + } + + public static class createUser extends org.apache.thrift.ProcessFunction { + public createUser() { + super("createUser"); + } + + public createUser_args getEmptyArgsInstance() { + return new createUser_args(); + } + + protected boolean isOneway() { + return false; + } + + public createUser_result getResult(I iface, createUser_args args) throws org.apache.thrift.TException { + createUser_result result = new createUser_result(); + result.success = iface.createUser(args.loginName, args.lastName, args.firstName, args.mail, args.university); + result.setSuccessIsSet(true); + return result; + } + } + + public static class writeImageRights extends org.apache.thrift.ProcessFunction { + public writeImageRights() { + super("writeImageRights"); + } + + public writeImageRights_args getEmptyArgsInstance() { + return new writeImageRights_args(); + } + + protected boolean isOneway() { + return false; + } + + public writeImageRights_result getResult(I iface, writeImageRights_args args) throws org.apache.thrift.TException { + writeImageRights_result result = new writeImageRights_result(); + result.success = iface.writeImageRights(args.imagename, args.username, args.lastName, args.firstName, args.mail, args.university, args.role); + result.setSuccessIsSet(true); + return result; + } + } + + public static class writeLectureRights extends org.apache.thrift.ProcessFunction { + public writeLectureRights() { + super("writeLectureRights"); + } + + public writeLectureRights_args getEmptyArgsInstance() { + return new writeLectureRights_args(); + } + + protected boolean isOneway() { + return false; + } + + public writeLectureRights_result getResult(I iface, writeLectureRights_args args) throws org.apache.thrift.TException { + writeLectureRights_result result = new writeLectureRights_result(); + result.success = iface.writeLectureRights(args.lecturename, args.username, args.lastName, args.firstName, args.mail, args.university, args.role); + result.setSuccessIsSet(true); + return result; + } + } + } public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor { @@ -1875,13 +2287,17 @@ public class Server { 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("updateImageData", new updateImageData()); 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()); + processMap.put("checkUser", new checkUser()); + processMap.put("createUser", new createUser()); + processMap.put("writeImageRights", new writeImageRights()); + processMap.put("writeLectureRights", new writeLectureRights()); return processMap; } @@ -2087,7 +2503,7 @@ public class Server { } 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); + iface.writeVLdata(args.imagename, args.desc, 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, args.os,resultHandler); } } @@ -2501,22 +2917,21 @@ public class Server { } } - public static class updateImageData extends org.apache.thrift.AsyncProcessFunction { - public updateImageData() { - super("updateImageData"); + public static class getLectureData extends org.apache.thrift.AsyncProcessFunction> { + public getLectureData() { + super("getLectureData"); } - public updateImageData_args getEmptyArgsInstance() { - return new updateImageData_args(); + public getLectureData_args getEmptyArgsInstance() { + return new getLectureData_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - updateImageData_result result = new updateImageData_result(); + return new AsyncMethodCallback>() { + public void onComplete(Map o) { + getLectureData_result result = new getLectureData_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -2528,7 +2943,7 @@ public class Server { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateImageData_result result = new updateImageData_result(); + getLectureData_result result = new getLectureData_result(); { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); @@ -2548,27 +2963,28 @@ public class Server { return false; } - public void start(I iface, updateImageData_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - 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,resultHandler); + public void start(I iface, getLectureData_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getLectureData(args.lectureid,resultHandler); } } - public static class getLectureData extends org.apache.thrift.AsyncProcessFunction> { - public getLectureData() { - super("getLectureData"); + public static class updateImageData extends org.apache.thrift.AsyncProcessFunction { + public updateImageData() { + super("updateImageData"); } - public getLectureData_args getEmptyArgsInstance() { - return new getLectureData_args(); + public updateImageData_args getEmptyArgsInstance() { + return new updateImageData_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(Map o) { - getLectureData_result result = new getLectureData_result(); - result.success = o; - try { + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + updateImageData_result result = new updateImageData_result(); + result.success = o; + result.setSuccessIsSet(true); + try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; } catch (Exception e) { @@ -2579,7 +2995,7 @@ public class Server { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getLectureData_result result = new getLectureData_result(); + updateImageData_result result = new updateImageData_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()); @@ -2599,8 +3015,8 @@ public class Server { return false; } - public void start(I iface, getLectureData_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getLectureData(args.lecturename,resultHandler); + public void start(I iface, updateImageData_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateImageData(args.name, args.newName, args.desc, args.image_path, args.license, args.internet, args.ram, args.cpu, args.id, args.version, args.isTemplate, args.filesize, args.shareMode, args.os,resultHandler); } } @@ -2704,7 +3120,7 @@ public class Server { } public void start(I iface, updateLecturedata_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateLecturedata(args.name, args.newName, args.shortdesc, args.desc, args.startDate, args.endDate, args.isActive, args.imagename, args.firstname, args.lastname, args.university, args.Mail, args.Tel, args.Fak, args.id,resultHandler); + iface.updateLecturedata(args.name, args.newName, args.shortdesc, args.desc, args.startDate, args.endDate, args.isActive, args.imageid, args.imageversion, args.user, args.firstname, args.lastname, args.university, args.Mail, args.Tel, args.Fak, args.id,resultHandler); } } @@ -2864,6 +3280,214 @@ public class Server { } } + public static class checkUser extends org.apache.thrift.AsyncProcessFunction { + public checkUser() { + super("checkUser"); + } + + public checkUser_args getEmptyArgsInstance() { + return new checkUser_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) { + checkUser_result result = new checkUser_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; + checkUser_result result = new checkUser_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, checkUser_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.checkUser(args.username,resultHandler); + } + } + + public static class createUser extends org.apache.thrift.AsyncProcessFunction { + public createUser() { + super("createUser"); + } + + public createUser_args getEmptyArgsInstance() { + return new createUser_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) { + createUser_result result = new createUser_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; + createUser_result result = new createUser_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, createUser_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.createUser(args.loginName, args.lastName, args.firstName, args.mail, args.university,resultHandler); + } + } + + public static class writeImageRights extends org.apache.thrift.AsyncProcessFunction { + public writeImageRights() { + super("writeImageRights"); + } + + public writeImageRights_args getEmptyArgsInstance() { + return new writeImageRights_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) { + writeImageRights_result result = new writeImageRights_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; + writeImageRights_result result = new writeImageRights_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, writeImageRights_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.writeImageRights(args.imagename, args.username, args.lastName, args.firstName, args.mail, args.university, args.role,resultHandler); + } + } + + public static class writeLectureRights extends org.apache.thrift.AsyncProcessFunction { + public writeLectureRights() { + super("writeLectureRights"); + } + + public writeLectureRights_args getEmptyArgsInstance() { + return new writeLectureRights_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) { + writeLectureRights_result result = new writeLectureRights_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; + writeLectureRights_result result = new writeLectureRights_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, writeLectureRights_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.writeLectureRights(args.lecturename, args.username, args.lastName, args.firstName, args.mail, args.university, args.role,resultHandler); + } + } + } public static class getFtpUser_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -4991,21 +5615,23 @@ public class Server { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeVLdata_args"); private static final org.apache.thrift.protocol.TField IMAGENAME_FIELD_DESC = new org.apache.thrift.protocol.TField("imagename", org.apache.thrift.protocol.TType.STRING, (short)-1); - private static final org.apache.thrift.protocol.TField LOGIN_FIELD_DESC = new org.apache.thrift.protocol.TField("login", org.apache.thrift.protocol.TType.STRING, (short)-2); - private static final org.apache.thrift.protocol.TField FIRSTNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("firstname", org.apache.thrift.protocol.TType.STRING, (short)-3); - private static final org.apache.thrift.protocol.TField LASTNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lastname", org.apache.thrift.protocol.TType.STRING, (short)-4); - private static final org.apache.thrift.protocol.TField UNIVERSITY_FIELD_DESC = new org.apache.thrift.protocol.TField("university", org.apache.thrift.protocol.TType.STRING, (short)-5); - private static final org.apache.thrift.protocol.TField MAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("Mail", org.apache.thrift.protocol.TType.STRING, (short)-6); - private static final org.apache.thrift.protocol.TField TEL_FIELD_DESC = new org.apache.thrift.protocol.TField("Tel", org.apache.thrift.protocol.TType.STRING, (short)-7); - private static final org.apache.thrift.protocol.TField FAK_FIELD_DESC = new org.apache.thrift.protocol.TField("Fak", org.apache.thrift.protocol.TType.STRING, (short)-8); - private static final org.apache.thrift.protocol.TField LICENSE_FIELD_DESC = new org.apache.thrift.protocol.TField("license", org.apache.thrift.protocol.TType.BOOL, (short)-9); - private static final org.apache.thrift.protocol.TField INTERNET_FIELD_DESC = new org.apache.thrift.protocol.TField("internet", org.apache.thrift.protocol.TType.BOOL, (short)-10); - private static final org.apache.thrift.protocol.TField RAM_FIELD_DESC = new org.apache.thrift.protocol.TField("ram", org.apache.thrift.protocol.TType.I64, (short)-11); - private static final org.apache.thrift.protocol.TField CPU_FIELD_DESC = new org.apache.thrift.protocol.TField("cpu", org.apache.thrift.protocol.TType.I64, (short)-12); - private static final org.apache.thrift.protocol.TField IMAGE_PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("imagePath", org.apache.thrift.protocol.TType.STRING, (short)-13); - private static final org.apache.thrift.protocol.TField IS_TEMPLATE_FIELD_DESC = new org.apache.thrift.protocol.TField("isTemplate", org.apache.thrift.protocol.TType.BOOL, (short)-14); - private static final org.apache.thrift.protocol.TField FILESIZE_FIELD_DESC = new org.apache.thrift.protocol.TField("filesize", org.apache.thrift.protocol.TType.I64, (short)-15); - private static final org.apache.thrift.protocol.TField SHARE_MODE_FIELD_DESC = new org.apache.thrift.protocol.TField("shareMode", org.apache.thrift.protocol.TType.I64, (short)-16); + 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)-2); + private static final org.apache.thrift.protocol.TField LOGIN_FIELD_DESC = new org.apache.thrift.protocol.TField("login", org.apache.thrift.protocol.TType.STRING, (short)-3); + private static final org.apache.thrift.protocol.TField FIRSTNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("firstname", org.apache.thrift.protocol.TType.STRING, (short)-4); + private static final org.apache.thrift.protocol.TField LASTNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lastname", org.apache.thrift.protocol.TType.STRING, (short)-5); + private static final org.apache.thrift.protocol.TField UNIVERSITY_FIELD_DESC = new org.apache.thrift.protocol.TField("university", org.apache.thrift.protocol.TType.STRING, (short)-6); + private static final org.apache.thrift.protocol.TField MAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("Mail", org.apache.thrift.protocol.TType.STRING, (short)-7); + private static final org.apache.thrift.protocol.TField TEL_FIELD_DESC = new org.apache.thrift.protocol.TField("Tel", org.apache.thrift.protocol.TType.STRING, (short)-8); + private static final org.apache.thrift.protocol.TField FAK_FIELD_DESC = new org.apache.thrift.protocol.TField("Fak", org.apache.thrift.protocol.TType.STRING, (short)-9); + private static final org.apache.thrift.protocol.TField LICENSE_FIELD_DESC = new org.apache.thrift.protocol.TField("license", org.apache.thrift.protocol.TType.BOOL, (short)-10); + private static final org.apache.thrift.protocol.TField INTERNET_FIELD_DESC = new org.apache.thrift.protocol.TField("internet", org.apache.thrift.protocol.TType.BOOL, (short)-11); + private static final org.apache.thrift.protocol.TField RAM_FIELD_DESC = new org.apache.thrift.protocol.TField("ram", org.apache.thrift.protocol.TType.I64, (short)-12); + private static final org.apache.thrift.protocol.TField CPU_FIELD_DESC = new org.apache.thrift.protocol.TField("cpu", org.apache.thrift.protocol.TType.I64, (short)-13); + private static final org.apache.thrift.protocol.TField IMAGE_PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("imagePath", org.apache.thrift.protocol.TType.STRING, (short)-14); + private static final org.apache.thrift.protocol.TField IS_TEMPLATE_FIELD_DESC = new org.apache.thrift.protocol.TField("isTemplate", org.apache.thrift.protocol.TType.BOOL, (short)-15); + private static final org.apache.thrift.protocol.TField FILESIZE_FIELD_DESC = new org.apache.thrift.protocol.TField("filesize", org.apache.thrift.protocol.TType.I64, (short)-16); + private static final org.apache.thrift.protocol.TField SHARE_MODE_FIELD_DESC = new org.apache.thrift.protocol.TField("shareMode", org.apache.thrift.protocol.TType.I64, (short)-17); + private static final org.apache.thrift.protocol.TField OS_FIELD_DESC = new org.apache.thrift.protocol.TField("os", org.apache.thrift.protocol.TType.STRING, (short)-18); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -5014,6 +5640,7 @@ public class Server { } public String imagename; // required + public String desc; // required public String login; // required public String firstname; // required public String lastname; // required @@ -5029,25 +5656,28 @@ public class Server { public boolean isTemplate; // required public long filesize; // required public long shareMode; // required + public String os; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { IMAGENAME((short)-1, "imagename"), - LOGIN((short)-2, "login"), - FIRSTNAME((short)-3, "firstname"), - LASTNAME((short)-4, "lastname"), - UNIVERSITY((short)-5, "university"), - MAIL((short)-6, "Mail"), - TEL((short)-7, "Tel"), - FAK((short)-8, "Fak"), - LICENSE((short)-9, "license"), - INTERNET((short)-10, "internet"), - RAM((short)-11, "ram"), - CPU((short)-12, "cpu"), - IMAGE_PATH((short)-13, "imagePath"), - IS_TEMPLATE((short)-14, "isTemplate"), - FILESIZE((short)-15, "filesize"), - SHARE_MODE((short)-16, "shareMode"); + DESC((short)-2, "desc"), + LOGIN((short)-3, "login"), + FIRSTNAME((short)-4, "firstname"), + LASTNAME((short)-5, "lastname"), + UNIVERSITY((short)-6, "university"), + MAIL((short)-7, "Mail"), + TEL((short)-8, "Tel"), + FAK((short)-9, "Fak"), + LICENSE((short)-10, "license"), + INTERNET((short)-11, "internet"), + RAM((short)-12, "ram"), + CPU((short)-13, "cpu"), + IMAGE_PATH((short)-14, "imagePath"), + IS_TEMPLATE((short)-15, "isTemplate"), + FILESIZE((short)-16, "filesize"), + SHARE_MODE((short)-17, "shareMode"), + OS((short)-18, "os"); private static final Map byName = new HashMap(); @@ -5064,36 +5694,40 @@ public class Server { switch(fieldId) { case -1: // IMAGENAME return IMAGENAME; - case -2: // LOGIN + case -2: // DESC + return DESC; + case -3: // LOGIN return LOGIN; - case -3: // FIRSTNAME + case -4: // FIRSTNAME return FIRSTNAME; - case -4: // LASTNAME + case -5: // LASTNAME return LASTNAME; - case -5: // UNIVERSITY + case -6: // UNIVERSITY return UNIVERSITY; - case -6: // MAIL + case -7: // MAIL return MAIL; - case -7: // TEL + case -8: // TEL return TEL; - case -8: // FAK + case -9: // FAK return FAK; - case -9: // LICENSE + case -10: // LICENSE return LICENSE; - case -10: // INTERNET + case -11: // INTERNET return INTERNET; - case -11: // RAM + case -12: // RAM return RAM; - case -12: // CPU + case -13: // CPU return CPU; - case -13: // IMAGE_PATH + case -14: // IMAGE_PATH return IMAGE_PATH; - case -14: // IS_TEMPLATE + case -15: // IS_TEMPLATE return IS_TEMPLATE; - case -15: // FILESIZE + case -16: // FILESIZE return FILESIZE; - case -16: // SHARE_MODE + case -17: // SHARE_MODE return SHARE_MODE; + case -18: // OS + return OS; default: return null; } @@ -5147,6 +5781,8 @@ public class Server { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.IMAGENAME, new org.apache.thrift.meta_data.FieldMetaData("imagename", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.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.LOGIN, new org.apache.thrift.meta_data.FieldMetaData("login", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.FIRSTNAME, new org.apache.thrift.meta_data.FieldMetaData("firstname", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -5177,6 +5813,8 @@ public class Server { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.SHARE_MODE, new org.apache.thrift.meta_data.FieldMetaData("shareMode", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "int"))); + tmpMap.put(_Fields.OS, new org.apache.thrift.meta_data.FieldMetaData("os", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeVLdata_args.class, metaDataMap); } @@ -5186,6 +5824,7 @@ public class Server { public writeVLdata_args( String imagename, + String desc, String login, String firstname, String lastname, @@ -5200,10 +5839,12 @@ public class Server { String imagePath, boolean isTemplate, long filesize, - long shareMode) + long shareMode, + String os) { this(); this.imagename = imagename; + this.desc = desc; this.login = login; this.firstname = firstname; this.lastname = lastname; @@ -5226,6 +5867,7 @@ public class Server { setFilesizeIsSet(true); this.shareMode = shareMode; setShareModeIsSet(true); + this.os = os; } /** @@ -5236,6 +5878,9 @@ public class Server { if (other.isSetImagename()) { this.imagename = other.imagename; } + if (other.isSetDesc()) { + this.desc = other.desc; + } if (other.isSetLogin()) { this.login = other.login; } @@ -5267,6 +5912,9 @@ public class Server { this.isTemplate = other.isTemplate; this.filesize = other.filesize; this.shareMode = other.shareMode; + if (other.isSetOs()) { + this.os = other.os; + } } public writeVLdata_args deepCopy() { @@ -5276,6 +5924,7 @@ public class Server { @Override public void clear() { this.imagename = null; + this.desc = null; this.login = null; this.firstname = null; this.lastname = null; @@ -5298,6 +5947,7 @@ public class Server { this.filesize = 0; setShareModeIsSet(false); this.shareMode = 0; + this.os = null; } public String getImagename() { @@ -5324,6 +5974,30 @@ public class Server { } } + public String getDesc() { + return this.desc; + } + + public writeVLdata_args setDesc(String desc) { + this.desc = desc; + return this; + } + + public void unsetDesc() { + this.desc = null; + } + + /** Returns true if field desc is set (has been assigned a value) and false otherwise */ + public boolean isSetDesc() { + return this.desc != null; + } + + public void setDescIsSet(boolean value) { + if (!value) { + this.desc = null; + } + } + public String getLogin() { return this.login; } @@ -5677,6 +6351,30 @@ public class Server { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SHAREMODE_ISSET_ID, value); } + public String getOs() { + return this.os; + } + + public writeVLdata_args setOs(String os) { + this.os = os; + return this; + } + + public void unsetOs() { + this.os = null; + } + + /** Returns true if field os is set (has been assigned a value) and false otherwise */ + public boolean isSetOs() { + return this.os != null; + } + + public void setOsIsSet(boolean value) { + if (!value) { + this.os = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case IMAGENAME: @@ -5687,6 +6385,14 @@ public class Server { } break; + case DESC: + if (value == null) { + unsetDesc(); + } else { + setDesc((String)value); + } + break; + case LOGIN: if (value == null) { unsetLogin(); @@ -5807,6 +6513,14 @@ public class Server { } break; + case OS: + if (value == null) { + unsetOs(); + } else { + setOs((String)value); + } + break; + } } @@ -5815,6 +6529,9 @@ public class Server { case IMAGENAME: return getImagename(); + case DESC: + return getDesc(); + case LOGIN: return getLogin(); @@ -5860,6 +6577,9 @@ public class Server { case SHARE_MODE: return Long.valueOf(getShareMode()); + case OS: + return getOs(); + } throw new IllegalStateException(); } @@ -5873,6 +6593,8 @@ public class Server { switch (field) { case IMAGENAME: return isSetImagename(); + case DESC: + return isSetDesc(); case LOGIN: return isSetLogin(); case FIRSTNAME: @@ -5903,6 +6625,8 @@ public class Server { return isSetFilesize(); case SHARE_MODE: return isSetShareMode(); + case OS: + return isSetOs(); } throw new IllegalStateException(); } @@ -5929,11 +6653,20 @@ public class Server { return false; } - boolean this_present_login = true && this.isSetLogin(); - boolean that_present_login = true && that.isSetLogin(); - if (this_present_login || that_present_login) { - if (!(this_present_login && that_present_login)) - 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_login = true && this.isSetLogin(); + boolean that_present_login = true && that.isSetLogin(); + if (this_present_login || that_present_login) { + if (!(this_present_login && that_present_login)) + return false; if (!this.login.equals(that.login)) return false; } @@ -6064,6 +6797,15 @@ public class Server { return false; } + boolean this_present_os = true && this.isSetOs(); + boolean that_present_os = true && that.isSetOs(); + if (this_present_os || that_present_os) { + if (!(this_present_os && that_present_os)) + return false; + if (!this.os.equals(that.os)) + return false; + } + return true; } @@ -6090,6 +6832,16 @@ public class Server { 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(isSetLogin()).compareTo(other.isSetLogin()); if (lastComparison != 0) { return lastComparison; @@ -6240,6 +6992,16 @@ public class Server { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetOs()).compareTo(other.isSetOs()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetOs()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.os, other.os); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -6268,6 +7030,14 @@ public class Server { } 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("login:"); if (this.login == null) { sb.append("null"); @@ -6359,6 +7129,14 @@ public class Server { sb.append("shareMode:"); sb.append(this.shareMode); first = false; + if (!first) sb.append(", "); + sb.append("os:"); + if (this.os == null) { + sb.append("null"); + } else { + sb.append(this.os); + } + first = false; sb.append(")"); return sb.toString(); } @@ -6412,7 +7190,15 @@ public class Server { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case -2: // LOGIN + case -2: // 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 -3: // LOGIN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.login = iprot.readString(); struct.setLoginIsSet(true); @@ -6420,7 +7206,7 @@ public class Server { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case -3: // FIRSTNAME + case -4: // FIRSTNAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.firstname = iprot.readString(); struct.setFirstnameIsSet(true); @@ -6428,7 +7214,7 @@ public class Server { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case -4: // LASTNAME + case -5: // LASTNAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.lastname = iprot.readString(); struct.setLastnameIsSet(true); @@ -6436,7 +7222,7 @@ public class Server { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case -5: // UNIVERSITY + case -6: // UNIVERSITY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.university = iprot.readString(); struct.setUniversityIsSet(true); @@ -6444,7 +7230,7 @@ public class Server { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case -6: // MAIL + case -7: // MAIL if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.Mail = iprot.readString(); struct.setMailIsSet(true); @@ -6452,7 +7238,7 @@ public class Server { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case -7: // TEL + case -8: // TEL if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.Tel = iprot.readString(); struct.setTelIsSet(true); @@ -6460,7 +7246,7 @@ public class Server { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case -8: // FAK + case -9: // FAK if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.Fak = iprot.readString(); struct.setFakIsSet(true); @@ -6468,7 +7254,7 @@ public class Server { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case -9: // LICENSE + case -10: // LICENSE if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.license = iprot.readBool(); struct.setLicenseIsSet(true); @@ -6476,7 +7262,7 @@ public class Server { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case -10: // INTERNET + case -11: // INTERNET if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.internet = iprot.readBool(); struct.setInternetIsSet(true); @@ -6484,7 +7270,7 @@ public class Server { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case -11: // RAM + case -12: // RAM if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.ram = iprot.readI64(); struct.setRamIsSet(true); @@ -6492,7 +7278,7 @@ public class Server { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case -12: // CPU + case -13: // CPU if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.cpu = iprot.readI64(); struct.setCpuIsSet(true); @@ -6500,7 +7286,7 @@ public class Server { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case -13: // IMAGE_PATH + case -14: // IMAGE_PATH if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.imagePath = iprot.readString(); struct.setImagePathIsSet(true); @@ -6508,7 +7294,7 @@ public class Server { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case -14: // IS_TEMPLATE + case -15: // IS_TEMPLATE if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.isTemplate = iprot.readBool(); struct.setIsTemplateIsSet(true); @@ -6516,7 +7302,7 @@ public class Server { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case -15: // FILESIZE + case -16: // FILESIZE if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.filesize = iprot.readI64(); struct.setFilesizeIsSet(true); @@ -6524,7 +7310,7 @@ public class Server { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case -16: // SHARE_MODE + case -17: // SHARE_MODE if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.shareMode = iprot.readI64(); struct.setShareModeIsSet(true); @@ -6532,6 +7318,14 @@ public class Server { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case -18: // OS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.os = iprot.readString(); + struct.setOsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -6547,6 +7341,11 @@ public class Server { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.os != null) { + oprot.writeFieldBegin(OS_FIELD_DESC); + oprot.writeString(struct.os); + oprot.writeFieldEnd(); + } oprot.writeFieldBegin(SHARE_MODE_FIELD_DESC); oprot.writeI64(struct.shareMode); oprot.writeFieldEnd(); @@ -6608,6 +7407,11 @@ public class Server { oprot.writeString(struct.login); oprot.writeFieldEnd(); } + if (struct.desc != null) { + oprot.writeFieldBegin(DESC_FIELD_DESC); + oprot.writeString(struct.desc); + oprot.writeFieldEnd(); + } if (struct.imagename != null) { oprot.writeFieldBegin(IMAGENAME_FIELD_DESC); oprot.writeString(struct.imagename); @@ -6634,55 +7438,64 @@ public class Server { if (struct.isSetImagename()) { optionals.set(0); } - if (struct.isSetLogin()) { + if (struct.isSetDesc()) { optionals.set(1); } - if (struct.isSetFirstname()) { + if (struct.isSetLogin()) { optionals.set(2); } - if (struct.isSetLastname()) { + if (struct.isSetFirstname()) { optionals.set(3); } - if (struct.isSetUniversity()) { + if (struct.isSetLastname()) { optionals.set(4); } - if (struct.isSetMail()) { + if (struct.isSetUniversity()) { optionals.set(5); } - if (struct.isSetTel()) { + if (struct.isSetMail()) { optionals.set(6); } - if (struct.isSetFak()) { + if (struct.isSetTel()) { optionals.set(7); } - if (struct.isSetLicense()) { + if (struct.isSetFak()) { optionals.set(8); } - if (struct.isSetInternet()) { + if (struct.isSetLicense()) { optionals.set(9); } - if (struct.isSetRam()) { + if (struct.isSetInternet()) { optionals.set(10); } - if (struct.isSetCpu()) { + if (struct.isSetRam()) { optionals.set(11); } - if (struct.isSetImagePath()) { + if (struct.isSetCpu()) { optionals.set(12); } - if (struct.isSetIsTemplate()) { + if (struct.isSetImagePath()) { optionals.set(13); } - if (struct.isSetFilesize()) { + if (struct.isSetIsTemplate()) { optionals.set(14); } - if (struct.isSetShareMode()) { + if (struct.isSetFilesize()) { optionals.set(15); } - oprot.writeBitSet(optionals, 16); + if (struct.isSetShareMode()) { + optionals.set(16); + } + if (struct.isSetOs()) { + optionals.set(17); + } + oprot.writeBitSet(optionals, 18); if (struct.isSetImagename()) { oprot.writeString(struct.imagename); } + if (struct.isSetDesc()) { + oprot.writeString(struct.desc); + } if (struct.isSetLogin()) { oprot.writeString(struct.login); } @@ -6728,76 +7541,87 @@ public class Server { if (struct.isSetShareMode()) { oprot.writeI64(struct.shareMode); } + if (struct.isSetOs()) { + oprot.writeString(struct.os); + } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, writeVLdata_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(16); + BitSet incoming = iprot.readBitSet(18); if (incoming.get(0)) { struct.imagename = iprot.readString(); struct.setImagenameIsSet(true); } if (incoming.get(1)) { + struct.desc = iprot.readString(); + struct.setDescIsSet(true); + } + if (incoming.get(2)) { struct.login = iprot.readString(); struct.setLoginIsSet(true); } - if (incoming.get(2)) { + if (incoming.get(3)) { struct.firstname = iprot.readString(); struct.setFirstnameIsSet(true); } - if (incoming.get(3)) { + if (incoming.get(4)) { struct.lastname = iprot.readString(); struct.setLastnameIsSet(true); } - if (incoming.get(4)) { + if (incoming.get(5)) { struct.university = iprot.readString(); struct.setUniversityIsSet(true); } - if (incoming.get(5)) { + if (incoming.get(6)) { struct.Mail = iprot.readString(); struct.setMailIsSet(true); } - if (incoming.get(6)) { + if (incoming.get(7)) { struct.Tel = iprot.readString(); struct.setTelIsSet(true); } - if (incoming.get(7)) { + if (incoming.get(8)) { struct.Fak = iprot.readString(); struct.setFakIsSet(true); } - if (incoming.get(8)) { + if (incoming.get(9)) { struct.license = iprot.readBool(); struct.setLicenseIsSet(true); } - if (incoming.get(9)) { + if (incoming.get(10)) { struct.internet = iprot.readBool(); struct.setInternetIsSet(true); } - if (incoming.get(10)) { + if (incoming.get(11)) { struct.ram = iprot.readI64(); struct.setRamIsSet(true); } - if (incoming.get(11)) { + if (incoming.get(12)) { struct.cpu = iprot.readI64(); struct.setCpuIsSet(true); } - if (incoming.get(12)) { + if (incoming.get(13)) { struct.imagePath = iprot.readString(); struct.setImagePathIsSet(true); } - if (incoming.get(13)) { + if (incoming.get(14)) { struct.isTemplate = iprot.readBool(); struct.setIsTemplateIsSet(true); } - if (incoming.get(14)) { + if (incoming.get(15)) { struct.filesize = iprot.readI64(); struct.setFilesizeIsSet(true); } - if (incoming.get(15)) { + if (incoming.get(16)) { struct.shareMode = iprot.readI64(); struct.setShareModeIsSet(true); } + if (incoming.get(17)) { + struct.os = iprot.readString(); + struct.setOsIsSet(true); + } } } @@ -14197,55 +15021,22 @@ public class Server { } - public static class updateImageData_args 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("updateImageData_args"); + public static class getLectureData_args 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("getLectureData_args"); - private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)-1); - private static final org.apache.thrift.protocol.TField NEW_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("newName", org.apache.thrift.protocol.TType.STRING, (short)-2); - private static final org.apache.thrift.protocol.TField IMAGE_PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("image_path", org.apache.thrift.protocol.TType.STRING, (short)-3); - private static final org.apache.thrift.protocol.TField LICENSE_FIELD_DESC = new org.apache.thrift.protocol.TField("license", org.apache.thrift.protocol.TType.BOOL, (short)-4); - private static final org.apache.thrift.protocol.TField INTERNET_FIELD_DESC = new org.apache.thrift.protocol.TField("internet", org.apache.thrift.protocol.TType.BOOL, (short)-5); - private static final org.apache.thrift.protocol.TField RAM_FIELD_DESC = new org.apache.thrift.protocol.TField("ram", org.apache.thrift.protocol.TType.I64, (short)-6); - private static final org.apache.thrift.protocol.TField CPU_FIELD_DESC = new org.apache.thrift.protocol.TField("cpu", org.apache.thrift.protocol.TType.I64, (short)-7); - 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)-8); - 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)-9); - private static final org.apache.thrift.protocol.TField IS_TEMPLATE_FIELD_DESC = new org.apache.thrift.protocol.TField("isTemplate", org.apache.thrift.protocol.TType.BOOL, (short)-10); - private static final org.apache.thrift.protocol.TField FILESIZE_FIELD_DESC = new org.apache.thrift.protocol.TField("filesize", org.apache.thrift.protocol.TType.I64, (short)-11); - private static final org.apache.thrift.protocol.TField SHARE_MODE_FIELD_DESC = new org.apache.thrift.protocol.TField("shareMode", org.apache.thrift.protocol.TType.I64, (short)-12); + private static final org.apache.thrift.protocol.TField LECTUREID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureid", org.apache.thrift.protocol.TType.STRING, (short)-1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new updateImageData_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new updateImageData_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getLectureData_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureData_argsTupleSchemeFactory()); } - public String name; // required - public String newName; // required - public String image_path; // required - public boolean license; // required - public boolean internet; // required - public long ram; // required - public long cpu; // required - public String id; // required - public String version; // required - public boolean isTemplate; // required - public long filesize; // required - public long shareMode; // required + public String lectureid; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - NAME((short)-1, "name"), - NEW_NAME((short)-2, "newName"), - IMAGE_PATH((short)-3, "image_path"), - LICENSE((short)-4, "license"), - INTERNET((short)-5, "internet"), - RAM((short)-6, "ram"), - CPU((short)-7, "cpu"), - ID((short)-8, "id"), - VERSION((short)-9, "version"), - IS_TEMPLATE((short)-10, "isTemplate"), - FILESIZE((short)-11, "filesize"), - SHARE_MODE((short)-12, "shareMode"); + LECTUREID((short)-1, "lectureid"); private static final Map byName = new HashMap(); @@ -14260,30 +15051,8 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case -1: // NAME - return NAME; - case -2: // NEW_NAME - return NEW_NAME; - case -3: // IMAGE_PATH - return IMAGE_PATH; - case -4: // LICENSE - return LICENSE; - case -5: // INTERNET - return INTERNET; - case -6: // RAM - return RAM; - case -7: // CPU - return CPU; - case -8: // ID - return ID; - case -9: // VERSION - return VERSION; - case -10: // IS_TEMPLATE - return IS_TEMPLATE; - case -11: // FILESIZE - return FILESIZE; - case -12: // SHARE_MODE - return SHARE_MODE; + case -1: // LECTUREID + return LECTUREID; default: return null; } @@ -14324,595 +15093,466 @@ public class Server { } // isset id assignments - private static final int __LICENSE_ISSET_ID = 0; - private static final int __INTERNET_ISSET_ID = 1; - private static final int __RAM_ISSET_ID = 2; - private static final int __CPU_ISSET_ID = 3; - private static final int __ISTEMPLATE_ISSET_ID = 4; - private static final int __FILESIZE_ISSET_ID = 5; - private static final int __SHAREMODE_ISSET_ID = 6; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.NEW_NAME, new org.apache.thrift.meta_data.FieldMetaData("newName", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.IMAGE_PATH, new org.apache.thrift.meta_data.FieldMetaData("image_path", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.LICENSE, new org.apache.thrift.meta_data.FieldMetaData("license", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - tmpMap.put(_Fields.INTERNET, new org.apache.thrift.meta_data.FieldMetaData("internet", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - tmpMap.put(_Fields.RAM, new org.apache.thrift.meta_data.FieldMetaData("ram", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "int"))); - tmpMap.put(_Fields.CPU, new org.apache.thrift.meta_data.FieldMetaData("cpu", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "int"))); - 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, + tmpMap.put(_Fields.LECTUREID, new org.apache.thrift.meta_data.FieldMetaData("lectureid", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.IS_TEMPLATE, new org.apache.thrift.meta_data.FieldMetaData("isTemplate", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - tmpMap.put(_Fields.FILESIZE, new org.apache.thrift.meta_data.FieldMetaData("filesize", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); - tmpMap.put(_Fields.SHARE_MODE, new org.apache.thrift.meta_data.FieldMetaData("shareMode", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "int"))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageData_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureData_args.class, metaDataMap); } - public updateImageData_args() { + public getLectureData_args() { } - public updateImageData_args( - 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) + public getLectureData_args( + String lectureid) { this(); - this.name = name; - this.newName = newName; - this.image_path = image_path; - this.license = license; - setLicenseIsSet(true); - this.internet = internet; - setInternetIsSet(true); - this.ram = ram; - setRamIsSet(true); - this.cpu = cpu; - setCpuIsSet(true); - this.id = id; - this.version = version; - this.isTemplate = isTemplate; - setIsTemplateIsSet(true); - this.filesize = filesize; - setFilesizeIsSet(true); - this.shareMode = shareMode; - setShareModeIsSet(true); + this.lectureid = lectureid; } /** * Performs a deep copy on other. */ - public updateImageData_args(updateImageData_args other) { - __isset_bitfield = other.__isset_bitfield; - if (other.isSetName()) { - this.name = other.name; - } - if (other.isSetNewName()) { - this.newName = other.newName; - } - if (other.isSetImage_path()) { - this.image_path = other.image_path; + public getLectureData_args(getLectureData_args other) { + if (other.isSetLectureid()) { + this.lectureid = other.lectureid; } - this.license = other.license; - this.internet = other.internet; - this.ram = other.ram; - this.cpu = other.cpu; - if (other.isSetId()) { - this.id = other.id; - } - if (other.isSetVersion()) { - this.version = other.version; - } - this.isTemplate = other.isTemplate; - this.filesize = other.filesize; - this.shareMode = other.shareMode; } - public updateImageData_args deepCopy() { - return new updateImageData_args(this); + public getLectureData_args deepCopy() { + return new getLectureData_args(this); } @Override public void clear() { - this.name = null; - this.newName = null; - this.image_path = null; - setLicenseIsSet(false); - this.license = false; - setInternetIsSet(false); - this.internet = false; - setRamIsSet(false); - this.ram = 0; - setCpuIsSet(false); - this.cpu = 0; - this.id = null; - this.version = null; - setIsTemplateIsSet(false); - this.isTemplate = false; - setFilesizeIsSet(false); - this.filesize = 0; - setShareModeIsSet(false); - this.shareMode = 0; + this.lectureid = null; } - public String getName() { - return this.name; + public String getLectureid() { + return this.lectureid; } - public updateImageData_args setName(String name) { - this.name = name; + public getLectureData_args setLectureid(String lectureid) { + this.lectureid = lectureid; return this; } - public void unsetName() { - this.name = null; + public void unsetLectureid() { + this.lectureid = null; } - /** Returns true if field name is set (has been assigned a value) and false otherwise */ - public boolean isSetName() { - return this.name != null; + /** Returns true if field lectureid is set (has been assigned a value) and false otherwise */ + public boolean isSetLectureid() { + return this.lectureid != null; } - public void setNameIsSet(boolean value) { + public void setLectureidIsSet(boolean value) { if (!value) { - this.name = null; + this.lectureid = null; } } - public String getNewName() { - return this.newName; - } + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case LECTUREID: + if (value == null) { + unsetLectureid(); + } else { + setLectureid((String)value); + } + break; - public updateImageData_args setNewName(String newName) { - this.newName = newName; - return this; + } } - public void unsetNewName() { - this.newName = null; - } + public Object getFieldValue(_Fields field) { + switch (field) { + case LECTUREID: + return getLectureid(); - /** Returns true if field newName is set (has been assigned a value) and false otherwise */ - public boolean isSetNewName() { - return this.newName != null; + } + throw new IllegalStateException(); } - public void setNewNameIsSet(boolean value) { - if (!value) { - this.newName = null; + /** 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(); } - } - public String getImage_path() { - return this.image_path; + switch (field) { + case LECTUREID: + return isSetLectureid(); + } + throw new IllegalStateException(); } - public updateImageData_args setImage_path(String image_path) { - this.image_path = image_path; - return this; + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getLectureData_args) + return this.equals((getLectureData_args)that); + return false; } - public void unsetImage_path() { - this.image_path = null; + public boolean equals(getLectureData_args that) { + if (that == null) + return false; + + boolean this_present_lectureid = true && this.isSetLectureid(); + boolean that_present_lectureid = true && that.isSetLectureid(); + if (this_present_lectureid || that_present_lectureid) { + if (!(this_present_lectureid && that_present_lectureid)) + return false; + if (!this.lectureid.equals(that.lectureid)) + return false; + } + + return true; } - /** Returns true if field image_path is set (has been assigned a value) and false otherwise */ - public boolean isSetImage_path() { - return this.image_path != null; + @Override + public int hashCode() { + return 0; } - public void setImage_pathIsSet(boolean value) { - if (!value) { - this.image_path = null; + @Override + public int compareTo(getLectureData_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); } - } - public boolean isLicense() { - return this.license; - } + int lastComparison = 0; - public updateImageData_args setLicense(boolean license) { - this.license = license; - setLicenseIsSet(true); - return this; + lastComparison = Boolean.valueOf(isSetLectureid()).compareTo(other.isSetLectureid()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetLectureid()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lectureid, other.lectureid); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; } - public void unsetLicense() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LICENSE_ISSET_ID); + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); } - /** Returns true if field license is set (has been assigned a value) and false otherwise */ - public boolean isSetLicense() { - return EncodingUtils.testBit(__isset_bitfield, __LICENSE_ISSET_ID); + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } - public void setLicenseIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LICENSE_ISSET_ID, value); + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } - public boolean isInternet() { - return this.internet; - } + @Override + public String toString() { + StringBuilder sb = new StringBuilder("getLectureData_args("); + boolean first = true; - public updateImageData_args setInternet(boolean internet) { - this.internet = internet; - setInternetIsSet(true); - return this; + sb.append("lectureid:"); + if (this.lectureid == null) { + sb.append("null"); + } else { + sb.append(this.lectureid); + } + first = false; + sb.append(")"); + return sb.toString(); } - public void unsetInternet() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __INTERNET_ISSET_ID); + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity } - /** Returns true if field internet is set (has been assigned a value) and false otherwise */ - public boolean isSetInternet() { - return EncodingUtils.testBit(__isset_bitfield, __INTERNET_ISSET_ID); + 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); + } } - public void setInternetIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __INTERNET_ISSET_ID, value); + 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); + } } - public long getRam() { - return this.ram; + private static class getLectureData_argsStandardSchemeFactory implements SchemeFactory { + public getLectureData_argsStandardScheme getScheme() { + return new getLectureData_argsStandardScheme(); + } } - public updateImageData_args setRam(long ram) { - this.ram = ram; - setRamIsSet(true); - return this; - } + private static class getLectureData_argsStandardScheme extends StandardScheme { - public void unsetRam() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RAM_ISSET_ID); - } + public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureData_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case -1: // LECTUREID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.lectureid = iprot.readString(); + struct.setLectureidIsSet(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(); - /** Returns true if field ram is set (has been assigned a value) and false otherwise */ - public boolean isSetRam() { - return EncodingUtils.testBit(__isset_bitfield, __RAM_ISSET_ID); - } + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } - public void setRamIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RAM_ISSET_ID, value); - } + public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureData_args struct) throws org.apache.thrift.TException { + struct.validate(); - public long getCpu() { - return this.cpu; - } + oprot.writeStructBegin(STRUCT_DESC); + if (struct.lectureid != null) { + oprot.writeFieldBegin(LECTUREID_FIELD_DESC); + oprot.writeString(struct.lectureid); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } - public updateImageData_args setCpu(long cpu) { - this.cpu = cpu; - setCpuIsSet(true); - return this; } - public void unsetCpu() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __CPU_ISSET_ID); + private static class getLectureData_argsTupleSchemeFactory implements SchemeFactory { + public getLectureData_argsTupleScheme getScheme() { + return new getLectureData_argsTupleScheme(); + } } - /** Returns true if field cpu is set (has been assigned a value) and false otherwise */ - public boolean isSetCpu() { - return EncodingUtils.testBit(__isset_bitfield, __CPU_ISSET_ID); - } + private static class getLectureData_argsTupleScheme extends TupleScheme { - public void setCpuIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CPU_ISSET_ID, value); - } + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, getLectureData_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetLectureid()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetLectureid()) { + oprot.writeString(struct.lectureid); + } + } - public String getId() { - return this.id; + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, getLectureData_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.lectureid = iprot.readString(); + struct.setLectureidIsSet(true); + } + } } - public updateImageData_args setId(String id) { - this.id = id; - return this; - } + } - public void unsetId() { - this.id = null; - } + public static class getLectureData_result 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("getLectureData_result"); - /** Returns true if field id is set (has been assigned a value) and false otherwise */ - public boolean isSetId() { - return this.id != null; + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new getLectureData_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureData_resultTupleSchemeFactory()); } - public void setIdIsSet(boolean value) { - if (!value) { - this.id = null; + public Map 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 byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } } - } - public String getVersion() { - return this.version; - } + /** + * 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; + } + } - public updateImageData_args setVersion(String version) { - this.version = version; - return this; - } + /** + * 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; + } - public void unsetVersion() { - this.version = null; - } + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } - /** Returns true if field version is set (has been assigned a value) and false otherwise */ - public boolean isSetVersion() { - return this.version != null; - } + private final short _thriftId; + private final String _fieldName; - public void setVersionIsSet(boolean value) { - if (!value) { - this.version = null; + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; } - } - public boolean isIsTemplate() { - return this.isTemplate; - } + public short getThriftFieldId() { + return _thriftId; + } - public updateImageData_args setIsTemplate(boolean isTemplate) { - this.isTemplate = isTemplate; - setIsTemplateIsSet(true); - return this; + public String getFieldName() { + return _fieldName; + } } - public void unsetIsTemplate() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISTEMPLATE_ISSET_ID); + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureData_result.class, metaDataMap); } - /** Returns true if field isTemplate is set (has been assigned a value) and false otherwise */ - public boolean isSetIsTemplate() { - return EncodingUtils.testBit(__isset_bitfield, __ISTEMPLATE_ISSET_ID); + public getLectureData_result() { } - public void setIsTemplateIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISTEMPLATE_ISSET_ID, value); + public getLectureData_result( + Map success) + { + this(); + this.success = success; } - public long getFilesize() { - return this.filesize; + /** + * Performs a deep copy on other. + */ + public getLectureData_result(getLectureData_result other) { + if (other.isSetSuccess()) { + Map __this__success = new HashMap(other.success); + this.success = __this__success; + } } - public updateImageData_args setFilesize(long filesize) { - this.filesize = filesize; - setFilesizeIsSet(true); - return this; + public getLectureData_result deepCopy() { + return new getLectureData_result(this); } - public void unsetFilesize() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FILESIZE_ISSET_ID); + @Override + public void clear() { + this.success = null; } - /** Returns true if field filesize is set (has been assigned a value) and false otherwise */ - public boolean isSetFilesize() { - return EncodingUtils.testBit(__isset_bitfield, __FILESIZE_ISSET_ID); + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); } - public void setFilesizeIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FILESIZE_ISSET_ID, value); + public void putToSuccess(String key, String val) { + if (this.success == null) { + this.success = new HashMap(); + } + this.success.put(key, val); } - public long getShareMode() { - return this.shareMode; + public Map getSuccess() { + return this.success; } - public updateImageData_args setShareMode(long shareMode) { - this.shareMode = shareMode; - setShareModeIsSet(true); + public getLectureData_result setSuccess(Map success) { + this.success = success; return this; } - public void unsetShareMode() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SHAREMODE_ISSET_ID); + public void unsetSuccess() { + this.success = null; } - /** Returns true if field shareMode is set (has been assigned a value) and false otherwise */ - public boolean isSetShareMode() { - return EncodingUtils.testBit(__isset_bitfield, __SHAREMODE_ISSET_ID); + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; } - public void setShareModeIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SHAREMODE_ISSET_ID, value); + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case NAME: - if (value == null) { - unsetName(); - } else { - setName((String)value); - } - break; - - case NEW_NAME: + case SUCCESS: if (value == null) { - unsetNewName(); + unsetSuccess(); } else { - setNewName((String)value); + setSuccess((Map)value); } break; - case IMAGE_PATH: - if (value == null) { - unsetImage_path(); - } else { - setImage_path((String)value); - } - break; + } + } - case LICENSE: - if (value == null) { - unsetLicense(); - } else { - setLicense((Boolean)value); - } - break; + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); - case INTERNET: - if (value == null) { - unsetInternet(); - } else { - setInternet((Boolean)value); - } - break; + } + throw new IllegalStateException(); + } - case RAM: - if (value == null) { - unsetRam(); - } else { - setRam((Long)value); - } - break; - - case CPU: - if (value == null) { - unsetCpu(); - } else { - setCpu((Long)value); - } - break; - - case ID: - if (value == null) { - unsetId(); - } else { - setId((String)value); - } - break; - - case VERSION: - if (value == null) { - unsetVersion(); - } else { - setVersion((String)value); - } - break; - - case IS_TEMPLATE: - if (value == null) { - unsetIsTemplate(); - } else { - setIsTemplate((Boolean)value); - } - break; - - case FILESIZE: - if (value == null) { - unsetFilesize(); - } else { - setFilesize((Long)value); - } - break; - - case SHARE_MODE: - if (value == null) { - unsetShareMode(); - } else { - setShareMode((Long)value); - } - break; - - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - case NAME: - return getName(); - - case NEW_NAME: - return getNewName(); - - case IMAGE_PATH: - return getImage_path(); - - case LICENSE: - return Boolean.valueOf(isLicense()); - - case INTERNET: - return Boolean.valueOf(isInternet()); - - case RAM: - return Long.valueOf(getRam()); - - case CPU: - return Long.valueOf(getCpu()); - - case ID: - return getId(); - - case VERSION: - return getVersion(); - - case IS_TEMPLATE: - return Boolean.valueOf(isIsTemplate()); - - case FILESIZE: - return Long.valueOf(getFilesize()); - - case SHARE_MODE: - return Long.valueOf(getShareMode()); - - } - 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(); - } + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } switch (field) { - case NAME: - return isSetName(); - case NEW_NAME: - return isSetNewName(); - case IMAGE_PATH: - return isSetImage_path(); - case LICENSE: - return isSetLicense(); - case INTERNET: - return isSetInternet(); - case RAM: - return isSetRam(); - case CPU: - return isSetCpu(); - case ID: - return isSetId(); - case VERSION: - return isSetVersion(); - case IS_TEMPLATE: - return isSetIsTemplate(); - case FILESIZE: - return isSetFilesize(); - case SHARE_MODE: - return isSetShareMode(); + case SUCCESS: + return isSetSuccess(); } throw new IllegalStateException(); } @@ -14921,120 +15561,21 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof updateImageData_args) - return this.equals((updateImageData_args)that); + if (that instanceof getLectureData_result) + return this.equals((getLectureData_result)that); return false; } - public boolean equals(updateImageData_args that) { + public boolean equals(getLectureData_result that) { if (that == null) return false; - boolean this_present_name = true && this.isSetName(); - boolean that_present_name = true && that.isSetName(); - if (this_present_name || that_present_name) { - if (!(this_present_name && that_present_name)) - return false; - if (!this.name.equals(that.name)) - return false; - } - - boolean this_present_newName = true && this.isSetNewName(); - boolean that_present_newName = true && that.isSetNewName(); - if (this_present_newName || that_present_newName) { - if (!(this_present_newName && that_present_newName)) - return false; - if (!this.newName.equals(that.newName)) - return false; - } - - boolean this_present_image_path = true && this.isSetImage_path(); - boolean that_present_image_path = true && that.isSetImage_path(); - if (this_present_image_path || that_present_image_path) { - if (!(this_present_image_path && that_present_image_path)) - return false; - if (!this.image_path.equals(that.image_path)) - return false; - } - - boolean this_present_license = true; - boolean that_present_license = true; - if (this_present_license || that_present_license) { - if (!(this_present_license && that_present_license)) - return false; - if (this.license != that.license) - return false; - } - - boolean this_present_internet = true; - boolean that_present_internet = true; - if (this_present_internet || that_present_internet) { - if (!(this_present_internet && that_present_internet)) - return false; - if (this.internet != that.internet) - return false; - } - - boolean this_present_ram = true; - boolean that_present_ram = true; - if (this_present_ram || that_present_ram) { - if (!(this_present_ram && that_present_ram)) - return false; - if (this.ram != that.ram) - return false; - } - - boolean this_present_cpu = true; - boolean that_present_cpu = true; - if (this_present_cpu || that_present_cpu) { - if (!(this_present_cpu && that_present_cpu)) - return false; - if (this.cpu != that.cpu) - return false; - } - - 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_isTemplate = true; - boolean that_present_isTemplate = true; - if (this_present_isTemplate || that_present_isTemplate) { - if (!(this_present_isTemplate && that_present_isTemplate)) - return false; - if (this.isTemplate != that.isTemplate) - return false; - } - - boolean this_present_filesize = true; - boolean that_present_filesize = true; - if (this_present_filesize || that_present_filesize) { - if (!(this_present_filesize && that_present_filesize)) - return false; - if (this.filesize != that.filesize) - return false; - } - - boolean this_present_shareMode = true; - boolean that_present_shareMode = true; - if (this_present_shareMode || that_present_shareMode) { - if (!(this_present_shareMode && that_present_shareMode)) + 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.shareMode != that.shareMode) + if (!this.success.equals(that.success)) return false; } @@ -15047,129 +15588,19 @@ public class Server { } @Override - public int compareTo(updateImageData_args other) { + public int compareTo(getLectureData_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetNewName()).compareTo(other.isSetNewName()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } - if (isSetNewName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newName, other.newName); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetImage_path()).compareTo(other.isSetImage_path()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetImage_path()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.image_path, other.image_path); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetLicense()).compareTo(other.isSetLicense()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetLicense()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.license, other.license); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetInternet()).compareTo(other.isSetInternet()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetInternet()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.internet, other.internet); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetRam()).compareTo(other.isSetRam()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetRam()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ram, other.ram); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetCpu()).compareTo(other.isSetCpu()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetCpu()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cpu, other.cpu); - if (lastComparison != 0) { - return lastComparison; - } - } - 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(isSetIsTemplate()).compareTo(other.isSetIsTemplate()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetIsTemplate()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isTemplate, other.isTemplate); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetFilesize()).compareTo(other.isSetFilesize()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetFilesize()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filesize, other.filesize); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetShareMode()).compareTo(other.isSetShareMode()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetShareMode()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shareMode, other.shareMode); + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } @@ -15187,80 +15618,20 @@ public class Server { 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("updateImageData_args("); + StringBuilder sb = new StringBuilder("getLectureData_result("); boolean first = true; - sb.append("name:"); - if (this.name == null) { - sb.append("null"); - } else { - sb.append(this.name); - } - first = false; - if (!first) sb.append(", "); - sb.append("newName:"); - if (this.newName == null) { - sb.append("null"); - } else { - sb.append(this.newName); - } - first = false; - if (!first) sb.append(", "); - sb.append("image_path:"); - if (this.image_path == null) { - sb.append("null"); - } else { - sb.append(this.image_path); - } - first = false; - if (!first) sb.append(", "); - sb.append("license:"); - sb.append(this.license); - first = false; - if (!first) sb.append(", "); - sb.append("internet:"); - sb.append(this.internet); - first = false; - if (!first) sb.append(", "); - sb.append("ram:"); - sb.append(this.ram); - first = false; - if (!first) sb.append(", "); - sb.append("cpu:"); - sb.append(this.cpu); - first = false; - if (!first) sb.append(", "); - sb.append("id:"); - if (this.id == null) { - sb.append("null"); - } else { - sb.append(this.id); - } - first = false; - if (!first) sb.append(", "); - sb.append("version:"); - if (this.version == null) { + sb.append("success:"); + if (this.success == null) { sb.append("null"); } else { - sb.append(this.version); + sb.append(this.success); } first = false; - if (!first) sb.append(", "); - sb.append("isTemplate:"); - sb.append(this.isTemplate); - first = false; - if (!first) sb.append(", "); - sb.append("filesize:"); - sb.append(this.filesize); - first = false; - if (!first) sb.append(", "); - sb.append("shareMode:"); - sb.append(this.shareMode); - first = false; sb.append(")"); return sb.toString(); } @@ -15280,23 +15651,21 @@ public class Server { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class updateImageData_argsStandardSchemeFactory implements SchemeFactory { - public updateImageData_argsStandardScheme getScheme() { - return new updateImageData_argsStandardScheme(); + private static class getLectureData_resultStandardSchemeFactory implements SchemeFactory { + public getLectureData_resultStandardScheme getScheme() { + return new getLectureData_resultStandardScheme(); } } - private static class updateImageData_argsStandardScheme extends StandardScheme { + private static class getLectureData_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageData_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureData_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -15306,98 +15675,22 @@ public class Server { break; } switch (schemeField.id) { - case -1: // NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.name = iprot.readString(); - struct.setNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case -2: // NEW_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.newName = iprot.readString(); - struct.setNewNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case -3: // IMAGE_PATH - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.image_path = iprot.readString(); - struct.setImage_pathIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case -4: // LICENSE - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.license = iprot.readBool(); - struct.setLicenseIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case -5: // INTERNET - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.internet = iprot.readBool(); - struct.setInternetIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case -6: // RAM - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.ram = iprot.readI64(); - struct.setRamIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case -7: // CPU - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.cpu = iprot.readI64(); - struct.setCpuIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case -8: // 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 -9: // 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 -10: // IS_TEMPLATE - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.isTemplate = iprot.readBool(); - struct.setIsTemplateIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case -11: // FILESIZE - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.filesize = iprot.readI64(); - struct.setFilesizeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case -12: // SHARE_MODE - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.shareMode = iprot.readI64(); - struct.setShareModeIsSet(true); + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { + { + org.apache.thrift.protocol.TMap _map52 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map52.size); + for (int _i53 = 0; _i53 < _map52.size; ++_i53) + { + String _key54; + String _val55; + _key54 = iprot.readString(); + _val55 = iprot.readString(); + struct.success.put(_key54, _val55); + } + iprot.readMapEnd(); + } + struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -15413,54 +15706,21 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, updateImageData_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureData_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - oprot.writeFieldBegin(SHARE_MODE_FIELD_DESC); - oprot.writeI64(struct.shareMode); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(FILESIZE_FIELD_DESC); - oprot.writeI64(struct.filesize); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(IS_TEMPLATE_FIELD_DESC); - oprot.writeBool(struct.isTemplate); - 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.writeFieldBegin(CPU_FIELD_DESC); - oprot.writeI64(struct.cpu); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(RAM_FIELD_DESC); - oprot.writeI64(struct.ram); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(INTERNET_FIELD_DESC); - oprot.writeBool(struct.internet); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(LICENSE_FIELD_DESC); - oprot.writeBool(struct.license); - oprot.writeFieldEnd(); - if (struct.image_path != null) { - oprot.writeFieldBegin(IMAGE_PATH_FIELD_DESC); - oprot.writeString(struct.image_path); - oprot.writeFieldEnd(); - } - if (struct.newName != null) { - oprot.writeFieldBegin(NEW_NAME_FIELD_DESC); - oprot.writeString(struct.newName); - oprot.writeFieldEnd(); - } - if (struct.name != null) { - oprot.writeFieldBegin(NAME_FIELD_DESC); - oprot.writeString(struct.name); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (Map.Entry _iter56 : struct.success.entrySet()) + { + oprot.writeString(_iter56.getKey()); + oprot.writeString(_iter56.getValue()); + } + oprot.writeMapEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -15469,172 +15729,119 @@ public class Server { } - private static class updateImageData_argsTupleSchemeFactory implements SchemeFactory { - public updateImageData_argsTupleScheme getScheme() { - return new updateImageData_argsTupleScheme(); + private static class getLectureData_resultTupleSchemeFactory implements SchemeFactory { + public getLectureData_resultTupleScheme getScheme() { + return new getLectureData_resultTupleScheme(); } } - private static class updateImageData_argsTupleScheme extends TupleScheme { + private static class getLectureData_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, updateImageData_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getLectureData_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetName()) { + if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetNewName()) { - optionals.set(1); - } - if (struct.isSetImage_path()) { - optionals.set(2); - } - if (struct.isSetLicense()) { - optionals.set(3); - } - if (struct.isSetInternet()) { - optionals.set(4); - } - if (struct.isSetRam()) { - optionals.set(5); - } - if (struct.isSetCpu()) { - optionals.set(6); - } - if (struct.isSetId()) { - optionals.set(7); - } - if (struct.isSetVersion()) { - optionals.set(8); - } - if (struct.isSetIsTemplate()) { - optionals.set(9); - } - if (struct.isSetFilesize()) { - optionals.set(10); - } - if (struct.isSetShareMode()) { - optionals.set(11); - } - oprot.writeBitSet(optionals, 12); - if (struct.isSetName()) { - oprot.writeString(struct.name); - } - if (struct.isSetNewName()) { - oprot.writeString(struct.newName); - } - if (struct.isSetImage_path()) { - oprot.writeString(struct.image_path); - } - if (struct.isSetLicense()) { - oprot.writeBool(struct.license); - } - if (struct.isSetInternet()) { - oprot.writeBool(struct.internet); - } - if (struct.isSetRam()) { - oprot.writeI64(struct.ram); - } - if (struct.isSetCpu()) { - oprot.writeI64(struct.cpu); - } - if (struct.isSetId()) { - oprot.writeString(struct.id); - } - if (struct.isSetVersion()) { - oprot.writeString(struct.version); - } - if (struct.isSetIsTemplate()) { - oprot.writeBool(struct.isTemplate); - } - if (struct.isSetFilesize()) { - oprot.writeI64(struct.filesize); - } - if (struct.isSetShareMode()) { - oprot.writeI64(struct.shareMode); + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (Map.Entry _iter57 : struct.success.entrySet()) + { + oprot.writeString(_iter57.getKey()); + oprot.writeString(_iter57.getValue()); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, updateImageData_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getLectureData_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(12); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.name = iprot.readString(); - struct.setNameIsSet(true); - } - if (incoming.get(1)) { - struct.newName = iprot.readString(); - struct.setNewNameIsSet(true); - } - if (incoming.get(2)) { - struct.image_path = iprot.readString(); - struct.setImage_pathIsSet(true); - } - if (incoming.get(3)) { - struct.license = iprot.readBool(); - struct.setLicenseIsSet(true); - } - if (incoming.get(4)) { - struct.internet = iprot.readBool(); - struct.setInternetIsSet(true); - } - if (incoming.get(5)) { - struct.ram = iprot.readI64(); - struct.setRamIsSet(true); - } - if (incoming.get(6)) { - struct.cpu = iprot.readI64(); - struct.setCpuIsSet(true); - } - if (incoming.get(7)) { - struct.id = iprot.readString(); - struct.setIdIsSet(true); - } - if (incoming.get(8)) { - struct.version = iprot.readString(); - struct.setVersionIsSet(true); - } - if (incoming.get(9)) { - struct.isTemplate = iprot.readBool(); - struct.setIsTemplateIsSet(true); - } - if (incoming.get(10)) { - struct.filesize = iprot.readI64(); - struct.setFilesizeIsSet(true); - } - if (incoming.get(11)) { - struct.shareMode = iprot.readI64(); - struct.setShareModeIsSet(true); + { + org.apache.thrift.protocol.TMap _map58 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new HashMap(2*_map58.size); + for (int _i59 = 0; _i59 < _map58.size; ++_i59) + { + String _key60; + String _val61; + _key60 = iprot.readString(); + _val61 = iprot.readString(); + struct.success.put(_key60, _val61); + } + } + struct.setSuccessIsSet(true); } } } } - public static class updateImageData_result 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("updateImageData_result"); + public static class updateImageData_args 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("updateImageData_args"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)-1); + private static final org.apache.thrift.protocol.TField NEW_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("newName", org.apache.thrift.protocol.TType.STRING, (short)-2); + private static final org.apache.thrift.protocol.TField DESC_FIELD_DESC = new org.apache.thrift.protocol.TField("desc", org.apache.thrift.protocol.TType.STRING, (short)-3); + private static final org.apache.thrift.protocol.TField IMAGE_PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("image_path", org.apache.thrift.protocol.TType.STRING, (short)-4); + private static final org.apache.thrift.protocol.TField LICENSE_FIELD_DESC = new org.apache.thrift.protocol.TField("license", org.apache.thrift.protocol.TType.BOOL, (short)-5); + private static final org.apache.thrift.protocol.TField INTERNET_FIELD_DESC = new org.apache.thrift.protocol.TField("internet", org.apache.thrift.protocol.TType.BOOL, (short)-6); + private static final org.apache.thrift.protocol.TField RAM_FIELD_DESC = new org.apache.thrift.protocol.TField("ram", org.apache.thrift.protocol.TType.I64, (short)-7); + private static final org.apache.thrift.protocol.TField CPU_FIELD_DESC = new org.apache.thrift.protocol.TField("cpu", org.apache.thrift.protocol.TType.I64, (short)-8); + 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)-9); + 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)-10); + private static final org.apache.thrift.protocol.TField IS_TEMPLATE_FIELD_DESC = new org.apache.thrift.protocol.TField("isTemplate", org.apache.thrift.protocol.TType.BOOL, (short)-11); + private static final org.apache.thrift.protocol.TField FILESIZE_FIELD_DESC = new org.apache.thrift.protocol.TField("filesize", org.apache.thrift.protocol.TType.I64, (short)-12); + private static final org.apache.thrift.protocol.TField SHARE_MODE_FIELD_DESC = new org.apache.thrift.protocol.TField("shareMode", org.apache.thrift.protocol.TType.I64, (short)-13); + private static final org.apache.thrift.protocol.TField OS_FIELD_DESC = new org.apache.thrift.protocol.TField("os", org.apache.thrift.protocol.TType.STRING, (short)-14); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new updateImageData_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new updateImageData_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new updateImageData_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new updateImageData_argsTupleSchemeFactory()); } - public boolean success; // required - - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"); - - private static final Map byName = new HashMap(); - - static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { - byName.put(field.getFieldName(), field); + public String name; // required + public String newName; // required + public String desc; // required + public String image_path; // required + public boolean license; // required + public boolean internet; // required + public long ram; // required + public long cpu; // required + public String id; // required + public String version; // required + public boolean isTemplate; // required + public long filesize; // required + public long shareMode; // required + public String os; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + NAME((short)-1, "name"), + NEW_NAME((short)-2, "newName"), + DESC((short)-3, "desc"), + IMAGE_PATH((short)-4, "image_path"), + LICENSE((short)-5, "license"), + INTERNET((short)-6, "internet"), + RAM((short)-7, "ram"), + CPU((short)-8, "cpu"), + ID((short)-9, "id"), + VERSION((short)-10, "version"), + IS_TEMPLATE((short)-11, "isTemplate"), + FILESIZE((short)-12, "filesize"), + SHARE_MODE((short)-13, "shareMode"), + OS((short)-14, "os"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); } } @@ -15643,8 +15850,34 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; + case -1: // NAME + return NAME; + case -2: // NEW_NAME + return NEW_NAME; + case -3: // DESC + return DESC; + case -4: // IMAGE_PATH + return IMAGE_PATH; + case -5: // LICENSE + return LICENSE; + case -6: // INTERNET + return INTERNET; + case -7: // RAM + return RAM; + case -8: // CPU + return CPU; + case -9: // ID + return ID; + case -10: // VERSION + return VERSION; + case -11: // IS_TEMPLATE + return IS_TEMPLATE; + case -12: // FILESIZE + return FILESIZE; + case -13: // SHARE_MODE + return SHARE_MODE; + case -14: // OS + return OS; default: return null; } @@ -15685,843 +15918,825 @@ public class Server { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; + private static final int __LICENSE_ISSET_ID = 0; + private static final int __INTERNET_ISSET_ID = 1; + private static final int __RAM_ISSET_ID = 2; + private static final int __CPU_ISSET_ID = 3; + private static final int __ISTEMPLATE_ISSET_ID = 4; + private static final int __FILESIZE_ISSET_ID = 5; + private static final int __SHAREMODE_ISSET_ID = 6; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.NEW_NAME, new org.apache.thrift.meta_data.FieldMetaData("newName", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.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.IMAGE_PATH, new org.apache.thrift.meta_data.FieldMetaData("image_path", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.LICENSE, new org.apache.thrift.meta_data.FieldMetaData("license", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.INTERNET, new org.apache.thrift.meta_data.FieldMetaData("internet", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.RAM, new org.apache.thrift.meta_data.FieldMetaData("ram", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "int"))); + tmpMap.put(_Fields.CPU, new org.apache.thrift.meta_data.FieldMetaData("cpu", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "int"))); + 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.IS_TEMPLATE, new org.apache.thrift.meta_data.FieldMetaData("isTemplate", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.FILESIZE, new org.apache.thrift.meta_data.FieldMetaData("filesize", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.SHARE_MODE, new org.apache.thrift.meta_data.FieldMetaData("shareMode", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "int"))); + tmpMap.put(_Fields.OS, new org.apache.thrift.meta_data.FieldMetaData("os", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageData_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageData_args.class, metaDataMap); } - public updateImageData_result() { + public updateImageData_args() { } - public updateImageData_result( - boolean success) + public updateImageData_args( + String name, + String newName, + String desc, + String image_path, + boolean license, + boolean internet, + long ram, + long cpu, + String id, + String version, + boolean isTemplate, + long filesize, + long shareMode, + String os) { this(); - this.success = success; - setSuccessIsSet(true); + this.name = name; + this.newName = newName; + this.desc = desc; + this.image_path = image_path; + this.license = license; + setLicenseIsSet(true); + this.internet = internet; + setInternetIsSet(true); + this.ram = ram; + setRamIsSet(true); + this.cpu = cpu; + setCpuIsSet(true); + this.id = id; + this.version = version; + this.isTemplate = isTemplate; + setIsTemplateIsSet(true); + this.filesize = filesize; + setFilesizeIsSet(true); + this.shareMode = shareMode; + setShareModeIsSet(true); + this.os = os; } /** * Performs a deep copy on other. */ - public updateImageData_result(updateImageData_result other) { + public updateImageData_args(updateImageData_args other) { __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + if (other.isSetName()) { + this.name = other.name; + } + if (other.isSetNewName()) { + this.newName = other.newName; + } + if (other.isSetDesc()) { + this.desc = other.desc; + } + if (other.isSetImage_path()) { + this.image_path = other.image_path; + } + this.license = other.license; + this.internet = other.internet; + this.ram = other.ram; + this.cpu = other.cpu; + if (other.isSetId()) { + this.id = other.id; + } + if (other.isSetVersion()) { + this.version = other.version; + } + this.isTemplate = other.isTemplate; + this.filesize = other.filesize; + this.shareMode = other.shareMode; + if (other.isSetOs()) { + this.os = other.os; + } } - public updateImageData_result deepCopy() { - return new updateImageData_result(this); + public updateImageData_args deepCopy() { + return new updateImageData_args(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; + this.name = null; + this.newName = null; + this.desc = null; + this.image_path = null; + setLicenseIsSet(false); + this.license = false; + setInternetIsSet(false); + this.internet = false; + setRamIsSet(false); + this.ram = 0; + setCpuIsSet(false); + this.cpu = 0; + this.id = null; + this.version = null; + setIsTemplateIsSet(false); + this.isTemplate = false; + setFilesizeIsSet(false); + this.filesize = 0; + setShareModeIsSet(false); + this.shareMode = 0; + this.os = null; } - public boolean isSuccess() { - return this.success; + public String getName() { + return this.name; } - public updateImageData_result setSuccess(boolean success) { - this.success = success; - setSuccessIsSet(true); + public updateImageData_args setName(String name) { + this.name = name; return this; } - public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + public void unsetName() { + this.name = null; } - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + /** Returns true if field name is set (has been assigned a value) and false otherwise */ + public boolean isSetName() { + return this.name != null; } - public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + public void setNameIsSet(boolean value) { + if (!value) { + this.name = null; + } } - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((Boolean)value); - } - break; - - } + public String getNewName() { + return this.newName; } - public Object getFieldValue(_Fields field) { - switch (field) { - case SUCCESS: - return Boolean.valueOf(isSuccess()); + public updateImageData_args setNewName(String newName) { + this.newName = newName; + return this; + } - } - throw new IllegalStateException(); + public void unsetNewName() { + this.newName = null; } - /** 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(); - } + /** Returns true if field newName is set (has been assigned a value) and false otherwise */ + public boolean isSetNewName() { + return this.newName != null; + } - switch (field) { - case SUCCESS: - return isSetSuccess(); + public void setNewNameIsSet(boolean value) { + if (!value) { + this.newName = null; } - throw new IllegalStateException(); } - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof updateImageData_result) - return this.equals((updateImageData_result)that); - return false; + public String getDesc() { + return this.desc; } - public boolean equals(updateImageData_result that) { - if (that == null) - return false; + public updateImageData_args setDesc(String desc) { + this.desc = desc; + return this; + } - boolean this_present_success = true; - boolean that_present_success = true; - if (this_present_success || that_present_success) { - if (!(this_present_success && that_present_success)) - return false; - if (this.success != that.success) - return false; - } - - return true; + public void unsetDesc() { + this.desc = null; } - @Override - public int hashCode() { - return 0; + /** Returns true if field desc is set (has been assigned a value) and false otherwise */ + public boolean isSetDesc() { + return this.desc != null; } - @Override - public int compareTo(updateImageData_result other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); + public void setDescIsSet(boolean value) { + if (!value) { + this.desc = null; } + } - int lastComparison = 0; + public String getImage_path() { + return this.image_path; + } - 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 updateImageData_args setImage_path(String image_path) { + this.image_path = image_path; + return this; } - public _Fields fieldForId(int fieldId) { - return _Fields.findByThriftId(fieldId); + public void unsetImage_path() { + this.image_path = null; } - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + /** Returns true if field image_path is set (has been assigned a value) and false otherwise */ + public boolean isSetImage_path() { + return this.image_path != null; } - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + public void setImage_pathIsSet(boolean value) { + if (!value) { + this.image_path = null; } + } - @Override - public String toString() { - StringBuilder sb = new StringBuilder("updateImageData_result("); - boolean first = true; + public boolean isLicense() { + return this.license; + } - sb.append("success:"); - sb.append(this.success); - first = false; - sb.append(")"); - return sb.toString(); + public updateImageData_args setLicense(boolean license) { + this.license = license; + setLicenseIsSet(true); + return this; } - public void validate() throws org.apache.thrift.TException { - // check for required fields - // check for sub-struct validity + public void unsetLicense() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LICENSE_ISSET_ID); } - 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); - } + /** Returns true if field license is set (has been assigned a value) and false otherwise */ + public boolean isSetLicense() { + return EncodingUtils.testBit(__isset_bitfield, __LICENSE_ISSET_ID); } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { - try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } + public void setLicenseIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LICENSE_ISSET_ID, value); } - private static class updateImageData_resultStandardSchemeFactory implements SchemeFactory { - public updateImageData_resultStandardScheme getScheme() { - return new updateImageData_resultStandardScheme(); - } + public boolean isInternet() { + return this.internet; } - private static class updateImageData_resultStandardScheme extends StandardScheme { + public updateImageData_args setInternet(boolean internet) { + this.internet = internet; + setInternetIsSet(true); + return this; + } - public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageData_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + public void unsetInternet() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __INTERNET_ISSET_ID); + } - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); - } + /** Returns true if field internet is set (has been assigned a value) and false otherwise */ + public boolean isSetInternet() { + return EncodingUtils.testBit(__isset_bitfield, __INTERNET_ISSET_ID); + } - public void write(org.apache.thrift.protocol.TProtocol oprot, updateImageData_result struct) throws org.apache.thrift.TException { - struct.validate(); + public void setInternetIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __INTERNET_ISSET_ID, value); + } - oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBool(struct.success); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } + public long getRam() { + return this.ram; + } + public updateImageData_args setRam(long ram) { + this.ram = ram; + setRamIsSet(true); + return this; } - private static class updateImageData_resultTupleSchemeFactory implements SchemeFactory { - public updateImageData_resultTupleScheme getScheme() { - return new updateImageData_resultTupleScheme(); - } + public void unsetRam() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RAM_ISSET_ID); } - private static class updateImageData_resultTupleScheme extends TupleScheme { + /** Returns true if field ram is set (has been assigned a value) and false otherwise */ + public boolean isSetRam() { + return EncodingUtils.testBit(__isset_bitfield, __RAM_ISSET_ID); + } - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, updateImageData_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { - optionals.set(0); - } - oprot.writeBitSet(optionals, 1); - if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); - } - } + public void setRamIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RAM_ISSET_ID, value); + } - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, updateImageData_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } - } + public long getCpu() { + return this.cpu; } - } + public updateImageData_args setCpu(long cpu) { + this.cpu = cpu; + setCpuIsSet(true); + return this; + } - public static class getLectureData_args 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("getLectureData_args"); + public void unsetCpu() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __CPU_ISSET_ID); + } - private static final org.apache.thrift.protocol.TField LECTURENAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lecturename", org.apache.thrift.protocol.TType.STRING, (short)-1); + /** Returns true if field cpu is set (has been assigned a value) and false otherwise */ + public boolean isSetCpu() { + return EncodingUtils.testBit(__isset_bitfield, __CPU_ISSET_ID); + } - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getLectureData_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLectureData_argsTupleSchemeFactory()); + public void setCpuIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CPU_ISSET_ID, value); } - public String lecturename; // required + public String getId() { + return this.id; + } - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements org.apache.thrift.TFieldIdEnum { - LECTURENAME((short)-1, "lecturename"); + public updateImageData_args setId(String id) { + this.id = id; + return this; + } - private static final Map byName = new HashMap(); + public void unsetId() { + this.id = null; + } - static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { - byName.put(field.getFieldName(), field); - } + /** 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; } + } - /** - * Find the _Fields constant that matches fieldId, or null if its not found. - */ - public static _Fields findByThriftId(int fieldId) { - switch(fieldId) { - case -1: // LECTURENAME - return LECTURENAME; - default: - return null; - } - } - - /** - * Find the _Fields constant that matches fieldId, throwing an exception - * if it is not found. - */ - public static _Fields findByThriftIdOrThrow(int fieldId) { - _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); - return fields; - } - - /** - * Find the _Fields constant that matches name, or null if its not found. - */ - public static _Fields findByName(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } + public String getVersion() { + return this.version; } - // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.LECTURENAME, new org.apache.thrift.meta_data.FieldMetaData("lecturename", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureData_args.class, metaDataMap); + public updateImageData_args setVersion(String version) { + this.version = version; + return this; } - public getLectureData_args() { + public void unsetVersion() { + this.version = null; } - public getLectureData_args( - String lecturename) - { - this(); - this.lecturename = lecturename; + /** Returns true if field version is set (has been assigned a value) and false otherwise */ + public boolean isSetVersion() { + return this.version != null; } - /** - * Performs a deep copy on other. - */ - public getLectureData_args(getLectureData_args other) { - if (other.isSetLecturename()) { - this.lecturename = other.lecturename; + public void setVersionIsSet(boolean value) { + if (!value) { + this.version = null; } } - public getLectureData_args deepCopy() { - return new getLectureData_args(this); - } - - @Override - public void clear() { - this.lecturename = null; - } - - public String getLecturename() { - return this.lecturename; + public boolean isIsTemplate() { + return this.isTemplate; } - public getLectureData_args setLecturename(String lecturename) { - this.lecturename = lecturename; + public updateImageData_args setIsTemplate(boolean isTemplate) { + this.isTemplate = isTemplate; + setIsTemplateIsSet(true); return this; } - public void unsetLecturename() { - this.lecturename = null; + public void unsetIsTemplate() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISTEMPLATE_ISSET_ID); } - /** Returns true if field lecturename is set (has been assigned a value) and false otherwise */ - public boolean isSetLecturename() { - return this.lecturename != null; + /** Returns true if field isTemplate is set (has been assigned a value) and false otherwise */ + public boolean isSetIsTemplate() { + return EncodingUtils.testBit(__isset_bitfield, __ISTEMPLATE_ISSET_ID); } - public void setLecturenameIsSet(boolean value) { - if (!value) { - this.lecturename = null; - } + public void setIsTemplateIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISTEMPLATE_ISSET_ID, value); } - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case LECTURENAME: - if (value == null) { - unsetLecturename(); - } else { - setLecturename((String)value); - } - break; - - } + public long getFilesize() { + return this.filesize; } - public Object getFieldValue(_Fields field) { - switch (field) { - case LECTURENAME: - return getLecturename(); - - } - throw new IllegalStateException(); + public updateImageData_args setFilesize(long filesize) { + this.filesize = filesize; + setFilesizeIsSet(true); + return this; } - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ - public boolean isSet(_Fields field) { - if (field == null) { - throw new IllegalArgumentException(); - } - - switch (field) { - case LECTURENAME: - return isSetLecturename(); - } - throw new IllegalStateException(); + public void unsetFilesize() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FILESIZE_ISSET_ID); } - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof getLectureData_args) - return this.equals((getLectureData_args)that); - return false; + /** Returns true if field filesize is set (has been assigned a value) and false otherwise */ + public boolean isSetFilesize() { + return EncodingUtils.testBit(__isset_bitfield, __FILESIZE_ISSET_ID); } - public boolean equals(getLectureData_args that) { - if (that == null) - return false; - - boolean this_present_lecturename = true && this.isSetLecturename(); - boolean that_present_lecturename = true && that.isSetLecturename(); - if (this_present_lecturename || that_present_lecturename) { - if (!(this_present_lecturename && that_present_lecturename)) - return false; - if (!this.lecturename.equals(that.lecturename)) - return false; - } - - return true; + public void setFilesizeIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FILESIZE_ISSET_ID, value); } - @Override - public int hashCode() { - return 0; + public long getShareMode() { + return this.shareMode; } - @Override - public int compareTo(getLectureData_args other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetLecturename()).compareTo(other.isSetLecturename()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetLecturename()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lecturename, other.lecturename); - if (lastComparison != 0) { - return lastComparison; - } - } - return 0; + public updateImageData_args setShareMode(long shareMode) { + this.shareMode = shareMode; + setShareModeIsSet(true); + return this; } - public _Fields fieldForId(int fieldId) { - return _Fields.findByThriftId(fieldId); + public void unsetShareMode() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SHAREMODE_ISSET_ID); } - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + /** Returns true if field shareMode is set (has been assigned a value) and false otherwise */ + public boolean isSetShareMode() { + return EncodingUtils.testBit(__isset_bitfield, __SHAREMODE_ISSET_ID); } - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + public void setShareModeIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SHAREMODE_ISSET_ID, value); } - @Override - public String toString() { - StringBuilder sb = new StringBuilder("getLectureData_args("); - boolean first = true; - - sb.append("lecturename:"); - if (this.lecturename == null) { - sb.append("null"); - } else { - sb.append(this.lecturename); - } - first = false; - sb.append(")"); - return sb.toString(); + public String getOs() { + return this.os; } - public void validate() throws org.apache.thrift.TException { - // check for required fields - // check for sub-struct validity + public updateImageData_args setOs(String os) { + this.os = os; + return this; } - 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); - } + public void unsetOs() { + this.os = null; } - 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); - } + /** Returns true if field os is set (has been assigned a value) and false otherwise */ + public boolean isSetOs() { + return this.os != null; } - private static class getLectureData_argsStandardSchemeFactory implements SchemeFactory { - public getLectureData_argsStandardScheme getScheme() { - return new getLectureData_argsStandardScheme(); + public void setOsIsSet(boolean value) { + if (!value) { + this.os = null; } } - private static class getLectureData_argsStandardScheme extends StandardScheme { + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case NAME: + if (value == null) { + unsetName(); + } else { + setName((String)value); + } + break; - public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureData_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case -1: // LECTURENAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.lecturename = iprot.readString(); - struct.setLecturenameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - iprot.readFieldEnd(); + case NEW_NAME: + if (value == null) { + unsetNewName(); + } else { + setNewName((String)value); } - iprot.readStructEnd(); + break; - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); - } + case DESC: + if (value == null) { + unsetDesc(); + } else { + setDesc((String)value); + } + break; - public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureData_args struct) throws org.apache.thrift.TException { - struct.validate(); + case IMAGE_PATH: + if (value == null) { + unsetImage_path(); + } else { + setImage_path((String)value); + } + break; - oprot.writeStructBegin(STRUCT_DESC); - if (struct.lecturename != null) { - oprot.writeFieldBegin(LECTURENAME_FIELD_DESC); - oprot.writeString(struct.lecturename); - oprot.writeFieldEnd(); + case LICENSE: + if (value == null) { + unsetLicense(); + } else { + setLicense((Boolean)value); } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } + break; - } + case INTERNET: + if (value == null) { + unsetInternet(); + } else { + setInternet((Boolean)value); + } + break; - private static class getLectureData_argsTupleSchemeFactory implements SchemeFactory { - public getLectureData_argsTupleScheme getScheme() { - return new getLectureData_argsTupleScheme(); - } - } + case RAM: + if (value == null) { + unsetRam(); + } else { + setRam((Long)value); + } + break; - private static class getLectureData_argsTupleScheme extends TupleScheme { + case CPU: + if (value == null) { + unsetCpu(); + } else { + setCpu((Long)value); + } + break; - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getLectureData_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetLecturename()) { - optionals.set(0); + case ID: + if (value == null) { + unsetId(); + } else { + setId((String)value); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetLecturename()) { - oprot.writeString(struct.lecturename); + break; + + case VERSION: + if (value == null) { + unsetVersion(); + } else { + setVersion((String)value); } - } + break; - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getLectureData_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.lecturename = iprot.readString(); - struct.setLecturenameIsSet(true); + case IS_TEMPLATE: + if (value == null) { + unsetIsTemplate(); + } else { + setIsTemplate((Boolean)value); } - } - } + break; - } + case FILESIZE: + if (value == null) { + unsetFilesize(); + } else { + setFilesize((Long)value); + } + break; - public static class getLectureData_result 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("getLectureData_result"); + case SHARE_MODE: + if (value == null) { + unsetShareMode(); + } else { + setShareMode((Long)value); + } + break; - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); + case OS: + if (value == null) { + unsetOs(); + } else { + setOs((String)value); + } + break; - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getLectureData_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLectureData_resultTupleSchemeFactory()); + } } - public Map success; // required + public Object getFieldValue(_Fields field) { + switch (field) { + case NAME: + return getName(); - /** 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"); + case NEW_NAME: + return getNewName(); - private static final Map byName = new HashMap(); + case DESC: + return getDesc(); - static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { - byName.put(field.getFieldName(), field); - } - } + case IMAGE_PATH: + return getImage_path(); - /** - * 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; - } - } + case LICENSE: + return Boolean.valueOf(isLicense()); - /** - * 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; - } + case INTERNET: + return Boolean.valueOf(isInternet()); - /** - * Find the _Fields constant that matches name, or null if its not found. - */ - public static _Fields findByName(String name) { - return byName.get(name); - } + case RAM: + return Long.valueOf(getRam()); - private final short _thriftId; - private final String _fieldName; + case CPU: + return Long.valueOf(getCpu()); - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } + case ID: + return getId(); - public short getThriftFieldId() { - return _thriftId; - } + case VERSION: + return getVersion(); - public String getFieldName() { - return _fieldName; - } - } + case IS_TEMPLATE: + return Boolean.valueOf(isIsTemplate()); - // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureData_result.class, metaDataMap); - } + case FILESIZE: + return Long.valueOf(getFilesize()); - public getLectureData_result() { - } + case SHARE_MODE: + return Long.valueOf(getShareMode()); - public getLectureData_result( - Map success) - { - this(); - this.success = success; - } + case OS: + return getOs(); - /** - * Performs a deep copy on other. - */ - public getLectureData_result(getLectureData_result other) { - if (other.isSetSuccess()) { - Map __this__success = new HashMap(other.success); - this.success = __this__success; } + throw new IllegalStateException(); } - public getLectureData_result deepCopy() { - return new getLectureData_result(this); + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case NAME: + return isSetName(); + case NEW_NAME: + return isSetNewName(); + case DESC: + return isSetDesc(); + case IMAGE_PATH: + return isSetImage_path(); + case LICENSE: + return isSetLicense(); + case INTERNET: + return isSetInternet(); + case RAM: + return isSetRam(); + case CPU: + return isSetCpu(); + case ID: + return isSetId(); + case VERSION: + return isSetVersion(); + case IS_TEMPLATE: + return isSetIsTemplate(); + case FILESIZE: + return isSetFilesize(); + case SHARE_MODE: + return isSetShareMode(); + case OS: + return isSetOs(); + } + throw new IllegalStateException(); } @Override - public void clear() { - this.success = null; + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof updateImageData_args) + return this.equals((updateImageData_args)that); + return false; } - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } + public boolean equals(updateImageData_args that) { + if (that == null) + return false; - public void putToSuccess(String key, String val) { - if (this.success == null) { - this.success = new HashMap(); + boolean this_present_name = true && this.isSetName(); + boolean that_present_name = true && that.isSetName(); + if (this_present_name || that_present_name) { + if (!(this_present_name && that_present_name)) + return false; + if (!this.name.equals(that.name)) + return false; } - this.success.put(key, val); - } - - public Map getSuccess() { - return this.success; - } - public getLectureData_result setSuccess(Map success) { - this.success = success; - return this; - } + boolean this_present_newName = true && this.isSetNewName(); + boolean that_present_newName = true && that.isSetNewName(); + if (this_present_newName || that_present_newName) { + if (!(this_present_newName && that_present_newName)) + return false; + if (!this.newName.equals(that.newName)) + return false; + } - public void unsetSuccess() { - this.success = null; - } + 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; + } - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return this.success != null; - } + boolean this_present_image_path = true && this.isSetImage_path(); + boolean that_present_image_path = true && that.isSetImage_path(); + if (this_present_image_path || that_present_image_path) { + if (!(this_present_image_path && that_present_image_path)) + return false; + if (!this.image_path.equals(that.image_path)) + return false; + } - public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; + boolean this_present_license = true; + boolean that_present_license = true; + if (this_present_license || that_present_license) { + if (!(this_present_license && that_present_license)) + return false; + if (this.license != that.license) + return false; } - } - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((Map)value); - } - break; + boolean this_present_internet = true; + boolean that_present_internet = true; + if (this_present_internet || that_present_internet) { + if (!(this_present_internet && that_present_internet)) + return false; + if (this.internet != that.internet) + return false; + } + boolean this_present_ram = true; + boolean that_present_ram = true; + if (this_present_ram || that_present_ram) { + if (!(this_present_ram && that_present_ram)) + return false; + if (this.ram != that.ram) + return false; } - } - public Object getFieldValue(_Fields field) { - switch (field) { - case SUCCESS: - return getSuccess(); + boolean this_present_cpu = true; + boolean that_present_cpu = true; + if (this_present_cpu || that_present_cpu) { + if (!(this_present_cpu && that_present_cpu)) + return false; + if (this.cpu != that.cpu) + return false; + } + 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; } - 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(); + 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; } - switch (field) { - case SUCCESS: - return isSetSuccess(); + boolean this_present_isTemplate = true; + boolean that_present_isTemplate = true; + if (this_present_isTemplate || that_present_isTemplate) { + if (!(this_present_isTemplate && that_present_isTemplate)) + return false; + if (this.isTemplate != that.isTemplate) + return false; } - throw new IllegalStateException(); - } - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof getLectureData_result) - return this.equals((getLectureData_result)that); - return false; - } + boolean this_present_filesize = true; + boolean that_present_filesize = true; + if (this_present_filesize || that_present_filesize) { + if (!(this_present_filesize && that_present_filesize)) + return false; + if (this.filesize != that.filesize) + return false; + } - public boolean equals(getLectureData_result that) { - if (that == null) - return false; + boolean this_present_shareMode = true; + boolean that_present_shareMode = true; + if (this_present_shareMode || that_present_shareMode) { + if (!(this_present_shareMode && that_present_shareMode)) + return false; + if (this.shareMode != that.shareMode) + 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)) + boolean this_present_os = true && this.isSetOs(); + boolean that_present_os = true && that.isSetOs(); + if (this_present_os || that_present_os) { + if (!(this_present_os && that_present_os)) return false; - if (!this.success.equals(that.success)) + if (!this.os.equals(that.os)) return false; } @@ -16534,52 +16749,258 @@ public class Server { } @Override - public int compareTo(getLectureData_result other) { + public int compareTo(updateImageData_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); if (lastComparison != 0) { return lastComparison; } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (isSetName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); if (lastComparison != 0) { return lastComparison; } } - return 0; - } - - public _Fields fieldForId(int fieldId) { - return _Fields.findByThriftId(fieldId); - } - - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + lastComparison = Boolean.valueOf(isSetNewName()).compareTo(other.isSetNewName()); + if (lastComparison != 0) { + return lastComparison; } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("getLectureData_result("); - boolean first = true; - - sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); + if (isSetNewName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newName, other.newName); + if (lastComparison != 0) { + return lastComparison; + } } - first = false; - sb.append(")"); - return sb.toString(); + 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(isSetImage_path()).compareTo(other.isSetImage_path()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetImage_path()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.image_path, other.image_path); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetLicense()).compareTo(other.isSetLicense()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetLicense()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.license, other.license); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetInternet()).compareTo(other.isSetInternet()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetInternet()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.internet, other.internet); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetRam()).compareTo(other.isSetRam()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetRam()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ram, other.ram); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetCpu()).compareTo(other.isSetCpu()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetCpu()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cpu, other.cpu); + if (lastComparison != 0) { + return lastComparison; + } + } + 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(isSetIsTemplate()).compareTo(other.isSetIsTemplate()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIsTemplate()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isTemplate, other.isTemplate); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetFilesize()).compareTo(other.isSetFilesize()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFilesize()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filesize, other.filesize); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetShareMode()).compareTo(other.isSetShareMode()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetShareMode()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shareMode, other.shareMode); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetOs()).compareTo(other.isSetOs()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetOs()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.os, other.os); + 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("updateImageData_args("); + boolean first = true; + + sb.append("name:"); + if (this.name == null) { + sb.append("null"); + } else { + sb.append(this.name); + } + first = false; + if (!first) sb.append(", "); + sb.append("newName:"); + if (this.newName == null) { + sb.append("null"); + } else { + sb.append(this.newName); + } + first = false; + if (!first) sb.append(", "); + sb.append("desc:"); + if (this.desc == null) { + sb.append("null"); + } else { + sb.append(this.desc); + } + first = false; + if (!first) sb.append(", "); + sb.append("image_path:"); + if (this.image_path == null) { + sb.append("null"); + } else { + sb.append(this.image_path); + } + first = false; + if (!first) sb.append(", "); + sb.append("license:"); + sb.append(this.license); + first = false; + if (!first) sb.append(", "); + sb.append("internet:"); + sb.append(this.internet); + first = false; + if (!first) sb.append(", "); + sb.append("ram:"); + sb.append(this.ram); + first = false; + if (!first) sb.append(", "); + sb.append("cpu:"); + sb.append(this.cpu); + first = false; + if (!first) sb.append(", "); + sb.append("id:"); + if (this.id == null) { + sb.append("null"); + } else { + sb.append(this.id); + } + first = false; + if (!first) sb.append(", "); + sb.append("version:"); + if (this.version == null) { + sb.append("null"); + } else { + sb.append(this.version); + } + first = false; + if (!first) sb.append(", "); + sb.append("isTemplate:"); + sb.append(this.isTemplate); + first = false; + if (!first) sb.append(", "); + sb.append("filesize:"); + sb.append(this.filesize); + first = false; + if (!first) sb.append(", "); + sb.append("shareMode:"); + sb.append(this.shareMode); + first = false; + if (!first) sb.append(", "); + sb.append("os:"); + if (this.os == null) { + sb.append("null"); + } else { + sb.append(this.os); + } + first = false; + sb.append(")"); + return sb.toString(); } public void validate() throws org.apache.thrift.TException { @@ -16597,21 +17018,23 @@ public class Server { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class getLectureData_resultStandardSchemeFactory implements SchemeFactory { - public getLectureData_resultStandardScheme getScheme() { - return new getLectureData_resultStandardScheme(); + private static class updateImageData_argsStandardSchemeFactory implements SchemeFactory { + public updateImageData_argsStandardScheme getScheme() { + return new updateImageData_argsStandardScheme(); } } - private static class getLectureData_resultStandardScheme extends StandardScheme { + private static class updateImageData_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureData_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageData_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -16621,52 +17044,187 @@ public class Server { break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map52 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map52.size); - for (int _i53 = 0; _i53 < _map52.size; ++_i53) - { - String _key54; - String _val55; - _key54 = iprot.readString(); - _val55 = iprot.readString(); - struct.success.put(_key54, _val55); - } - iprot.readMapEnd(); - } - struct.setSuccessIsSet(true); + case -1: // NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.name = iprot.readString(); + struct.setNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - iprot.readFieldEnd(); - } + case -2: // NEW_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.newName = iprot.readString(); + struct.setNewNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -3: // DESC + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.desc = iprot.readString(); + struct.setDescIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -4: // IMAGE_PATH + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.image_path = iprot.readString(); + struct.setImage_pathIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -5: // LICENSE + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.license = iprot.readBool(); + struct.setLicenseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -6: // INTERNET + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.internet = iprot.readBool(); + struct.setInternetIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -7: // RAM + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.ram = iprot.readI64(); + struct.setRamIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -8: // CPU + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.cpu = iprot.readI64(); + struct.setCpuIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -9: // 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 -10: // 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 -11: // IS_TEMPLATE + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.isTemplate = iprot.readBool(); + struct.setIsTemplateIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -12: // FILESIZE + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.filesize = iprot.readI64(); + struct.setFilesizeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -13: // SHARE_MODE + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.shareMode = iprot.readI64(); + struct.setShareModeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -14: // OS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.os = iprot.readString(); + struct.setOsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureData_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, updateImageData_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (Map.Entry _iter56 : struct.success.entrySet()) - { - oprot.writeString(_iter56.getKey()); - oprot.writeString(_iter56.getValue()); - } - oprot.writeMapEnd(); - } + if (struct.os != null) { + oprot.writeFieldBegin(OS_FIELD_DESC); + oprot.writeString(struct.os); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(SHARE_MODE_FIELD_DESC); + oprot.writeI64(struct.shareMode); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(FILESIZE_FIELD_DESC); + oprot.writeI64(struct.filesize); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(IS_TEMPLATE_FIELD_DESC); + oprot.writeBool(struct.isTemplate); + 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.writeFieldBegin(CPU_FIELD_DESC); + oprot.writeI64(struct.cpu); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(RAM_FIELD_DESC); + oprot.writeI64(struct.ram); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(INTERNET_FIELD_DESC); + oprot.writeBool(struct.internet); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(LICENSE_FIELD_DESC); + oprot.writeBool(struct.license); + oprot.writeFieldEnd(); + if (struct.image_path != null) { + oprot.writeFieldBegin(IMAGE_PATH_FIELD_DESC); + oprot.writeString(struct.image_path); + oprot.writeFieldEnd(); + } + if (struct.desc != null) { + oprot.writeFieldBegin(DESC_FIELD_DESC); + oprot.writeString(struct.desc); + oprot.writeFieldEnd(); + } + if (struct.newName != null) { + oprot.writeFieldBegin(NEW_NAME_FIELD_DESC); + oprot.writeString(struct.newName); + oprot.writeFieldEnd(); + } + if (struct.name != null) { + oprot.writeFieldBegin(NAME_FIELD_DESC); + oprot.writeString(struct.name); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -16675,101 +17233,208 @@ public class Server { } - private static class getLectureData_resultTupleSchemeFactory implements SchemeFactory { - public getLectureData_resultTupleScheme getScheme() { - return new getLectureData_resultTupleScheme(); + private static class updateImageData_argsTupleSchemeFactory implements SchemeFactory { + public updateImageData_argsTupleScheme getScheme() { + return new updateImageData_argsTupleScheme(); } } - private static class getLectureData_resultTupleScheme extends TupleScheme { + private static class updateImageData_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getLectureData_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, updateImageData_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { + if (struct.isSetName()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (Map.Entry _iter57 : struct.success.entrySet()) - { - oprot.writeString(_iter57.getKey()); - oprot.writeString(_iter57.getValue()); - } - } + if (struct.isSetNewName()) { + optionals.set(1); } - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getLectureData_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TMap _map58 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new HashMap(2*_map58.size); - for (int _i59 = 0; _i59 < _map58.size; ++_i59) - { - String _key60; - String _val61; - _key60 = iprot.readString(); - _val61 = iprot.readString(); - struct.success.put(_key60, _val61); - } - } - struct.setSuccessIsSet(true); + if (struct.isSetDesc()) { + optionals.set(2); } - } - } - - } - - public static class deleteImageData_args 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("deleteImageData_args"); - - 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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new deleteImageData_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteImageData_argsTupleSchemeFactory()); - } - - public String id; // required - public String version; // required - - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements org.apache.thrift.TFieldIdEnum { - ID((short)-1, "id"), - VERSION((short)-2, "version"); - - private static final Map byName = new HashMap(); - - static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { - byName.put(field.getFieldName(), field); + if (struct.isSetImage_path()) { + optionals.set(3); } - } - - /** - * 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; - default: - return null; + if (struct.isSetLicense()) { + optionals.set(4); } - } - - /** + if (struct.isSetInternet()) { + optionals.set(5); + } + if (struct.isSetRam()) { + optionals.set(6); + } + if (struct.isSetCpu()) { + optionals.set(7); + } + if (struct.isSetId()) { + optionals.set(8); + } + if (struct.isSetVersion()) { + optionals.set(9); + } + if (struct.isSetIsTemplate()) { + optionals.set(10); + } + if (struct.isSetFilesize()) { + optionals.set(11); + } + if (struct.isSetShareMode()) { + optionals.set(12); + } + if (struct.isSetOs()) { + optionals.set(13); + } + oprot.writeBitSet(optionals, 14); + if (struct.isSetName()) { + oprot.writeString(struct.name); + } + if (struct.isSetNewName()) { + oprot.writeString(struct.newName); + } + if (struct.isSetDesc()) { + oprot.writeString(struct.desc); + } + if (struct.isSetImage_path()) { + oprot.writeString(struct.image_path); + } + if (struct.isSetLicense()) { + oprot.writeBool(struct.license); + } + if (struct.isSetInternet()) { + oprot.writeBool(struct.internet); + } + if (struct.isSetRam()) { + oprot.writeI64(struct.ram); + } + if (struct.isSetCpu()) { + oprot.writeI64(struct.cpu); + } + if (struct.isSetId()) { + oprot.writeString(struct.id); + } + if (struct.isSetVersion()) { + oprot.writeString(struct.version); + } + if (struct.isSetIsTemplate()) { + oprot.writeBool(struct.isTemplate); + } + if (struct.isSetFilesize()) { + oprot.writeI64(struct.filesize); + } + if (struct.isSetShareMode()) { + oprot.writeI64(struct.shareMode); + } + if (struct.isSetOs()) { + oprot.writeString(struct.os); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, updateImageData_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(14); + if (incoming.get(0)) { + struct.name = iprot.readString(); + struct.setNameIsSet(true); + } + if (incoming.get(1)) { + struct.newName = iprot.readString(); + struct.setNewNameIsSet(true); + } + if (incoming.get(2)) { + struct.desc = iprot.readString(); + struct.setDescIsSet(true); + } + if (incoming.get(3)) { + struct.image_path = iprot.readString(); + struct.setImage_pathIsSet(true); + } + if (incoming.get(4)) { + struct.license = iprot.readBool(); + struct.setLicenseIsSet(true); + } + if (incoming.get(5)) { + struct.internet = iprot.readBool(); + struct.setInternetIsSet(true); + } + if (incoming.get(6)) { + struct.ram = iprot.readI64(); + struct.setRamIsSet(true); + } + if (incoming.get(7)) { + struct.cpu = iprot.readI64(); + struct.setCpuIsSet(true); + } + if (incoming.get(8)) { + struct.id = iprot.readString(); + struct.setIdIsSet(true); + } + if (incoming.get(9)) { + struct.version = iprot.readString(); + struct.setVersionIsSet(true); + } + if (incoming.get(10)) { + struct.isTemplate = iprot.readBool(); + struct.setIsTemplateIsSet(true); + } + if (incoming.get(11)) { + struct.filesize = iprot.readI64(); + struct.setFilesizeIsSet(true); + } + if (incoming.get(12)) { + struct.shareMode = iprot.readI64(); + struct.setShareModeIsSet(true); + } + if (incoming.get(13)) { + struct.os = iprot.readString(); + struct.setOsIsSet(true); + } + } + } + + } + + public static class updateImageData_result 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("updateImageData_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new updateImageData_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new updateImageData_resultTupleSchemeFactory()); + } + + public boolean success; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"); + + private static final Map 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 0: // SUCCESS + return SUCCESS; + default: + return null; + } + } + + /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ @@ -16804,127 +17469,86 @@ public class Server { } // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.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.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageData_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageData_result.class, metaDataMap); } - public deleteImageData_args() { + public updateImageData_result() { } - public deleteImageData_args( - String id, - String version) + public updateImageData_result( + boolean success) { this(); - this.id = id; - this.version = version; + this.success = success; + setSuccessIsSet(true); } /** * Performs a deep copy on other. */ - public deleteImageData_args(deleteImageData_args other) { - if (other.isSetId()) { - this.id = other.id; - } - if (other.isSetVersion()) { - this.version = other.version; - } + public updateImageData_result(updateImageData_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; } - public deleteImageData_args deepCopy() { - return new deleteImageData_args(this); + public updateImageData_result deepCopy() { + return new updateImageData_result(this); } @Override public void clear() { - this.id = null; - this.version = null; + setSuccessIsSet(false); + this.success = false; } - public String getId() { - return this.id; + public boolean isSuccess() { + return this.success; } - public deleteImageData_args setId(String id) { - this.id = id; + public updateImageData_result setSuccess(boolean success) { + this.success = success; + setSuccessIsSet(true); 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 unsetSuccess() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } - public void setIdIsSet(boolean value) { - if (!value) { - this.id = null; - } + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } - public String getVersion() { - return this.version; + public void setSuccessIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } - public deleteImageData_args setVersion(String version) { - this.version = version; - return this; - } + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Boolean)value); + } + break; - public void unsetVersion() { - this.version = null; - } - - /** Returns true if field version is set (has been assigned a value) and false otherwise */ - public boolean isSetVersion() { - return this.version != null; - } - - public void setVersionIsSet(boolean value) { - if (!value) { - this.version = null; - } - } - - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case ID: - if (value == null) { - unsetId(); - } else { - setId((String)value); - } - break; - - case VERSION: - if (value == null) { - unsetVersion(); - } else { - setVersion((String)value); - } - break; - - } + } } public Object getFieldValue(_Fields field) { switch (field) { - case ID: - return getId(); - - case VERSION: - return getVersion(); + case SUCCESS: + return Boolean.valueOf(isSuccess()); } throw new IllegalStateException(); @@ -16937,10 +17561,8 @@ public class Server { } switch (field) { - case ID: - return isSetId(); - case VERSION: - return isSetVersion(); + case SUCCESS: + return isSetSuccess(); } throw new IllegalStateException(); } @@ -16949,30 +17571,21 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof deleteImageData_args) - return this.equals((deleteImageData_args)that); + if (that instanceof updateImageData_result) + return this.equals((updateImageData_result)that); return false; } - public boolean equals(deleteImageData_args that) { + public boolean equals(updateImageData_result 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)) + boolean this_present_success = true; + boolean that_present_success = true; + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) return false; - if (!this.version.equals(that.version)) + if (this.success != that.success) return false; } @@ -16985,29 +17598,19 @@ public class Server { } @Override - public int compareTo(deleteImageData_args other) { + public int compareTo(updateImageData_result 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()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } - if (isSetVersion()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.version, other.version); + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } @@ -17025,27 +17628,15 @@ public class Server { 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("deleteImageData_args("); + StringBuilder sb = new StringBuilder("updateImageData_result("); 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); - } + sb.append("success:"); + sb.append(this.success); first = false; sb.append(")"); return sb.toString(); @@ -17066,21 +17657,23 @@ public class Server { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class deleteImageData_argsStandardSchemeFactory implements SchemeFactory { - public deleteImageData_argsStandardScheme getScheme() { - return new deleteImageData_argsStandardScheme(); + private static class updateImageData_resultStandardSchemeFactory implements SchemeFactory { + public updateImageData_resultStandardScheme getScheme() { + return new updateImageData_resultStandardScheme(); } } - private static class deleteImageData_argsStandardScheme extends StandardScheme { + private static class updateImageData_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageData_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageData_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -17090,18 +17683,10 @@ public class Server { 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); + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -17117,18 +17702,13 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteImageData_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, updateImageData_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.version != null) { - oprot.writeFieldBegin(VERSION_FIELD_DESC); - oprot.writeString(struct.version); - oprot.writeFieldEnd(); - } - if (struct.id != null) { - oprot.writeFieldBegin(ID_FIELD_DESC); - oprot.writeString(struct.id); + if (struct.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeBool(struct.success); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -17137,66 +17717,59 @@ public class Server { } - private static class deleteImageData_argsTupleSchemeFactory implements SchemeFactory { - public deleteImageData_argsTupleScheme getScheme() { - return new deleteImageData_argsTupleScheme(); + private static class updateImageData_resultTupleSchemeFactory implements SchemeFactory { + public updateImageData_resultTupleScheme getScheme() { + return new updateImageData_resultTupleScheme(); } } - private static class deleteImageData_argsTupleScheme extends TupleScheme { + private static class updateImageData_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteImageData_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, updateImageData_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetId()) { + if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetVersion()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetId()) { - oprot.writeString(struct.id); - } - if (struct.isSetVersion()) { - oprot.writeString(struct.version); + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + oprot.writeBool(struct.success); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteImageData_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, updateImageData_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.id = iprot.readString(); - struct.setIdIsSet(true); - } - if (incoming.get(1)) { - struct.version = iprot.readString(); - struct.setVersionIsSet(true); + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); } } } } - public static class deleteImageData_result 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("deleteImageData_result"); + public static class deleteImageData_args 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("deleteImageData_args"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + private static final 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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new deleteImageData_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteImageData_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new deleteImageData_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteImageData_argsTupleSchemeFactory()); } - public boolean success; // required + public String id; // required + public String version; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"); + ID((short)-1, "id"), + VERSION((short)-2, "version"); private static final Map byName = new HashMap(); @@ -17211,8 +17784,10 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; + case -1: // ID + return ID; + case -2: // VERSION + return VERSION; default: return null; } @@ -17253,76 +17828,114 @@ public class Server { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.VERSION, new org.apache.thrift.meta_data.FieldMetaData("version", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageData_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageData_args.class, metaDataMap); } - public deleteImageData_result() { + public deleteImageData_args() { } - public deleteImageData_result( - boolean success) + public deleteImageData_args( + String id, + String version) { this(); - this.success = success; - setSuccessIsSet(true); + this.id = id; + this.version = version; } /** * Performs a deep copy on other. */ - public deleteImageData_result(deleteImageData_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public deleteImageData_args(deleteImageData_args other) { + if (other.isSetId()) { + this.id = other.id; + } + if (other.isSetVersion()) { + this.version = other.version; + } } - public deleteImageData_result deepCopy() { - return new deleteImageData_result(this); + public deleteImageData_args deepCopy() { + return new deleteImageData_args(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; + this.id = null; + this.version = null; } - public boolean isSuccess() { - return this.success; + public String getId() { + return this.id; } - public deleteImageData_result setSuccess(boolean success) { - this.success = success; - setSuccessIsSet(true); + public deleteImageData_args setId(String id) { + this.id = id; return this; } - public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + public void unsetId() { + this.id = null; } - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + /** Returns true if field id is set (has been assigned a value) and false otherwise */ + public boolean isSetId() { + return this.id != null; } - public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + public void setIdIsSet(boolean value) { + if (!value) { + this.id = null; + } + } + + public String getVersion() { + return this.version; + } + + public deleteImageData_args setVersion(String version) { + this.version = version; + return this; + } + + public void unsetVersion() { + this.version = null; + } + + /** Returns true if field version is set (has been assigned a value) and false otherwise */ + public boolean isSetVersion() { + return this.version != null; + } + + public void setVersionIsSet(boolean value) { + if (!value) { + this.version = null; + } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: + case ID: if (value == null) { - unsetSuccess(); + unsetId(); } else { - setSuccess((Boolean)value); + setId((String)value); + } + break; + + case VERSION: + if (value == null) { + unsetVersion(); + } else { + setVersion((String)value); } break; @@ -17331,8 +17944,11 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return Boolean.valueOf(isSuccess()); + case ID: + return getId(); + + case VERSION: + return getVersion(); } throw new IllegalStateException(); @@ -17345,8 +17961,10 @@ public class Server { } switch (field) { - case SUCCESS: - return isSetSuccess(); + case ID: + return isSetId(); + case VERSION: + return isSetVersion(); } throw new IllegalStateException(); } @@ -17355,21 +17973,30 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof deleteImageData_result) - return this.equals((deleteImageData_result)that); + if (that instanceof deleteImageData_args) + return this.equals((deleteImageData_args)that); return false; } - public boolean equals(deleteImageData_result that) { + public boolean equals(deleteImageData_args that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; - if (this_present_success || that_present_success) { - if (!(this_present_success && that_present_success)) + 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.success != that.success) + 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; } @@ -17382,19 +18009,29 @@ public class Server { } @Override - public int compareTo(deleteImageData_result other) { + public int compareTo(deleteImageData_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId()); if (lastComparison != 0) { return lastComparison; } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + 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; } @@ -17412,15 +18049,27 @@ public class Server { 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("deleteImageData_result("); + StringBuilder sb = new StringBuilder("deleteImageData_args("); boolean first = true; - sb.append("success:"); - sb.append(this.success); + sb.append("id:"); + if (this.id == null) { + sb.append("null"); + } else { + sb.append(this.id); + } + first = false; + if (!first) sb.append(", "); + sb.append("version:"); + if (this.version == null) { + sb.append("null"); + } else { + sb.append(this.version); + } first = false; sb.append(")"); return sb.toString(); @@ -17441,23 +18090,21 @@ public class Server { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class deleteImageData_resultStandardSchemeFactory implements SchemeFactory { - public deleteImageData_resultStandardScheme getScheme() { - return new deleteImageData_resultStandardScheme(); + private static class deleteImageData_argsStandardSchemeFactory implements SchemeFactory { + public deleteImageData_argsStandardScheme getScheme() { + return new deleteImageData_argsStandardScheme(); } } - private static class deleteImageData_resultStandardScheme extends StandardScheme { + private static class deleteImageData_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageData_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageData_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -17467,10 +18114,18 @@ public class Server { break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); + 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); } @@ -17486,13 +18141,18 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteImageData_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteImageData_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBool(struct.success); + 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(); @@ -17501,98 +18161,66 @@ public class Server { } - private static class deleteImageData_resultTupleSchemeFactory implements SchemeFactory { - public deleteImageData_resultTupleScheme getScheme() { - return new deleteImageData_resultTupleScheme(); + private static class deleteImageData_argsTupleSchemeFactory implements SchemeFactory { + public deleteImageData_argsTupleScheme getScheme() { + return new deleteImageData_argsTupleScheme(); } } - private static class deleteImageData_resultTupleScheme extends TupleScheme { + private static class deleteImageData_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteImageData_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, deleteImageData_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { + if (struct.isSetId()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + if (struct.isSetVersion()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetId()) { + oprot.writeString(struct.id); + } + if (struct.isSetVersion()) { + oprot.writeString(struct.version); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteImageData_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, deleteImageData_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); + struct.id = iprot.readString(); + struct.setIdIsSet(true); + } + if (incoming.get(1)) { + struct.version = iprot.readString(); + struct.setVersionIsSet(true); } } } } - public static class updateLecturedata_args 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("updateLecturedata_args"); + public static class deleteImageData_result 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("deleteImageData_result"); - private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)-1); - private static final org.apache.thrift.protocol.TField NEW_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("newName", org.apache.thrift.protocol.TType.STRING, (short)-2); - private static final org.apache.thrift.protocol.TField SHORTDESC_FIELD_DESC = new org.apache.thrift.protocol.TField("shortdesc", org.apache.thrift.protocol.TType.STRING, (short)-3); - private static final org.apache.thrift.protocol.TField DESC_FIELD_DESC = new org.apache.thrift.protocol.TField("desc", org.apache.thrift.protocol.TType.STRING, (short)-4); - private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.STRING, (short)-5); - private static final org.apache.thrift.protocol.TField END_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("endDate", org.apache.thrift.protocol.TType.STRING, (short)-6); - private static final org.apache.thrift.protocol.TField IS_ACTIVE_FIELD_DESC = new org.apache.thrift.protocol.TField("isActive", org.apache.thrift.protocol.TType.BOOL, (short)-7); - private static final org.apache.thrift.protocol.TField IMAGENAME_FIELD_DESC = new org.apache.thrift.protocol.TField("imagename", org.apache.thrift.protocol.TType.STRING, (short)-8); - private static final org.apache.thrift.protocol.TField FIRSTNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("firstname", org.apache.thrift.protocol.TType.STRING, (short)-9); - private static final org.apache.thrift.protocol.TField LASTNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lastname", org.apache.thrift.protocol.TType.STRING, (short)-10); - private static final org.apache.thrift.protocol.TField UNIVERSITY_FIELD_DESC = new org.apache.thrift.protocol.TField("university", org.apache.thrift.protocol.TType.STRING, (short)-11); - private static final org.apache.thrift.protocol.TField MAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("Mail", org.apache.thrift.protocol.TType.STRING, (short)-12); - private static final org.apache.thrift.protocol.TField TEL_FIELD_DESC = new org.apache.thrift.protocol.TField("Tel", org.apache.thrift.protocol.TType.STRING, (short)-13); - private static final org.apache.thrift.protocol.TField FAK_FIELD_DESC = new org.apache.thrift.protocol.TField("Fak", org.apache.thrift.protocol.TType.STRING, (short)-14); - private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.STRING, (short)-15); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new updateLecturedata_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new updateLecturedata_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new deleteImageData_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteImageData_resultTupleSchemeFactory()); } - public String name; // required - public String newName; // required - public String shortdesc; // required - public String desc; // required - public String startDate; // required - public String endDate; // required - public boolean isActive; // required - public String imagename; // required - public String firstname; // required - public String lastname; // required - public String university; // required - public String Mail; // required - public String Tel; // required - public String Fak; // required - public String id; // required + public boolean success; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - NAME((short)-1, "name"), - NEW_NAME((short)-2, "newName"), - SHORTDESC((short)-3, "shortdesc"), - DESC((short)-4, "desc"), - START_DATE((short)-5, "startDate"), - END_DATE((short)-6, "endDate"), - IS_ACTIVE((short)-7, "isActive"), - IMAGENAME((short)-8, "imagename"), - FIRSTNAME((short)-9, "firstname"), - LASTNAME((short)-10, "lastname"), - UNIVERSITY((short)-11, "university"), - MAIL((short)-12, "Mail"), - TEL((short)-13, "Tel"), - FAK((short)-14, "Fak"), - ID((short)-15, "id"); + SUCCESS((short)0, "success"); private static final Map byName = new HashMap(); @@ -17607,36 +18235,8 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case -1: // NAME - return NAME; - case -2: // NEW_NAME - return NEW_NAME; - case -3: // SHORTDESC - return SHORTDESC; - case -4: // DESC - return DESC; - case -5: // START_DATE - return START_DATE; - case -6: // END_DATE - return END_DATE; - case -7: // IS_ACTIVE - return IS_ACTIVE; - case -8: // IMAGENAME - return IMAGENAME; - case -9: // FIRSTNAME - return FIRSTNAME; - case -10: // LASTNAME - return LASTNAME; - case -11: // UNIVERSITY - return UNIVERSITY; - case -12: // MAIL - return MAIL; - case -13: // TEL - return TEL; - case -14: // FAK - return FAK; - case -15: // ID - return ID; + case 0: // SUCCESS + return SUCCESS; default: return null; } @@ -17677,1344 +18277,5054 @@ public class Server { } // isset id assignments - private static final int __ISACTIVE_ISSET_ID = 0; + private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.NEW_NAME, new org.apache.thrift.meta_data.FieldMetaData("newName", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.SHORTDESC, new org.apache.thrift.meta_data.FieldMetaData("shortdesc", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.DESC, new org.apache.thrift.meta_data.FieldMetaData("desc", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.IS_ACTIVE, new org.apache.thrift.meta_data.FieldMetaData("isActive", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - tmpMap.put(_Fields.IMAGENAME, new org.apache.thrift.meta_data.FieldMetaData("imagename", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.FIRSTNAME, new org.apache.thrift.meta_data.FieldMetaData("firstname", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.LASTNAME, new org.apache.thrift.meta_data.FieldMetaData("lastname", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.UNIVERSITY, new org.apache.thrift.meta_data.FieldMetaData("university", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("Mail", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TEL, new org.apache.thrift.meta_data.FieldMetaData("Tel", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.FAK, new org.apache.thrift.meta_data.FieldMetaData("Fak", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateLecturedata_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageData_result.class, metaDataMap); } - public updateLecturedata_args() { + public deleteImageData_result() { } - public updateLecturedata_args( - String name, - String newName, - String shortdesc, - String desc, - String startDate, - String endDate, - boolean isActive, - String imagename, - String firstname, - String lastname, - String university, - String Mail, - String Tel, - String Fak, - String id) + public deleteImageData_result( + boolean success) { this(); - this.name = name; - this.newName = newName; - this.shortdesc = shortdesc; - this.desc = desc; - this.startDate = startDate; - this.endDate = endDate; - this.isActive = isActive; - setIsActiveIsSet(true); - this.imagename = imagename; - this.firstname = firstname; - this.lastname = lastname; - this.university = university; - this.Mail = Mail; - this.Tel = Tel; - this.Fak = Fak; - this.id = id; + this.success = success; + setSuccessIsSet(true); } /** * Performs a deep copy on other. */ - public updateLecturedata_args(updateLecturedata_args other) { + public deleteImageData_result(deleteImageData_result other) { __isset_bitfield = other.__isset_bitfield; - if (other.isSetName()) { - this.name = other.name; - } - if (other.isSetNewName()) { - this.newName = other.newName; - } - if (other.isSetShortdesc()) { - this.shortdesc = other.shortdesc; - } - if (other.isSetDesc()) { - this.desc = other.desc; - } - if (other.isSetStartDate()) { - this.startDate = other.startDate; - } - if (other.isSetEndDate()) { - this.endDate = other.endDate; - } - this.isActive = other.isActive; - if (other.isSetImagename()) { - this.imagename = other.imagename; - } - if (other.isSetFirstname()) { - this.firstname = other.firstname; - } - if (other.isSetLastname()) { - this.lastname = other.lastname; - } - if (other.isSetUniversity()) { - this.university = other.university; - } - if (other.isSetMail()) { - this.Mail = other.Mail; - } - if (other.isSetTel()) { - this.Tel = other.Tel; - } - if (other.isSetFak()) { - this.Fak = other.Fak; - } - if (other.isSetId()) { - this.id = other.id; - } + this.success = other.success; } - public updateLecturedata_args deepCopy() { - return new updateLecturedata_args(this); + public deleteImageData_result deepCopy() { + return new deleteImageData_result(this); } @Override public void clear() { - this.name = null; - this.newName = null; - this.shortdesc = null; - this.desc = null; - this.startDate = null; - this.endDate = null; - setIsActiveIsSet(false); - this.isActive = false; - this.imagename = null; - this.firstname = null; - this.lastname = null; - this.university = null; - this.Mail = null; - this.Tel = null; - this.Fak = null; - this.id = null; + setSuccessIsSet(false); + this.success = false; } - public String getName() { - return this.name; + public boolean isSuccess() { + return this.success; } - public updateLecturedata_args setName(String name) { - this.name = name; + public deleteImageData_result setSuccess(boolean success) { + this.success = success; + setSuccessIsSet(true); return this; } - public void unsetName() { - this.name = null; + public void unsetSuccess() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } - /** Returns true if field name is set (has been assigned a value) and false otherwise */ - public boolean isSetName() { - return this.name != null; + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } - public void setNameIsSet(boolean value) { - if (!value) { - this.name = null; - } + public void setSuccessIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } - public String getNewName() { - return this.newName; - } + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Boolean)value); + } + break; - public updateLecturedata_args setNewName(String newName) { - this.newName = newName; - return this; + } } - public void unsetNewName() { - this.newName = null; - } + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return Boolean.valueOf(isSuccess()); - /** Returns true if field newName is set (has been assigned a value) and false otherwise */ - public boolean isSetNewName() { - return this.newName != null; + } + throw new IllegalStateException(); } - public void setNewNameIsSet(boolean value) { - if (!value) { - this.newName = null; + /** 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(); } - } - public String getShortdesc() { - return this.shortdesc; + switch (field) { + case SUCCESS: + return isSetSuccess(); + } + throw new IllegalStateException(); } - public updateLecturedata_args setShortdesc(String shortdesc) { - this.shortdesc = shortdesc; - return this; + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof deleteImageData_result) + return this.equals((deleteImageData_result)that); + return false; } - public void unsetShortdesc() { - this.shortdesc = null; - } + public boolean equals(deleteImageData_result that) { + if (that == null) + return false; - /** Returns true if field shortdesc is set (has been assigned a value) and false otherwise */ - public boolean isSetShortdesc() { - return this.shortdesc != null; - } - - public void setShortdescIsSet(boolean value) { - if (!value) { - this.shortdesc = null; + boolean this_present_success = true; + boolean that_present_success = true; + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (this.success != that.success) + return false; } - } - - public String getDesc() { - return this.desc; - } - - public updateLecturedata_args setDesc(String desc) { - this.desc = desc; - return this; - } - public void unsetDesc() { - this.desc = null; + return true; } - /** Returns true if field desc is set (has been assigned a value) and false otherwise */ - public boolean isSetDesc() { - return this.desc != null; + @Override + public int hashCode() { + return 0; } - public void setDescIsSet(boolean value) { - if (!value) { - this.desc = null; + @Override + public int compareTo(deleteImageData_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); } - } - public String getStartDate() { - return this.startDate; - } + int lastComparison = 0; - public updateLecturedata_args setStartDate(String startDate) { - this.startDate = startDate; - return this; + 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 void unsetStartDate() { - this.startDate = null; + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); } - /** Returns true if field startDate is set (has been assigned a value) and false otherwise */ - public boolean isSetStartDate() { - return this.startDate != null; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } - public void setStartDateIsSet(boolean value) { - if (!value) { - this.startDate = null; + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } - } - - public String getEndDate() { - return this.endDate; - } - public updateLecturedata_args setEndDate(String endDate) { - this.endDate = endDate; - return this; - } + @Override + public String toString() { + StringBuilder sb = new StringBuilder("deleteImageData_result("); + boolean first = true; - public void unsetEndDate() { - this.endDate = null; + sb.append("success:"); + sb.append(this.success); + first = false; + sb.append(")"); + return sb.toString(); } - /** Returns true if field endDate is set (has been assigned a value) and false otherwise */ - public boolean isSetEndDate() { - return this.endDate != null; + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity } - public void setEndDateIsSet(boolean value) { - if (!value) { - this.endDate = null; + 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); } } - public boolean isIsActive() { - return this.isActive; - } - - public updateLecturedata_args setIsActive(boolean isActive) { - this.isActive = isActive; - setIsActiveIsSet(true); - return this; - } - - public void unsetIsActive() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISACTIVE_ISSET_ID); - } - - /** Returns true if field isActive is set (has been assigned a value) and false otherwise */ - public boolean isSetIsActive() { - return EncodingUtils.testBit(__isset_bitfield, __ISACTIVE_ISSET_ID); + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } } - public void setIsActiveIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISACTIVE_ISSET_ID, value); + private static class deleteImageData_resultStandardSchemeFactory implements SchemeFactory { + public deleteImageData_resultStandardScheme getScheme() { + return new deleteImageData_resultStandardScheme(); + } } - public String getImagename() { - return this.imagename; - } + private static class deleteImageData_resultStandardScheme extends StandardScheme { - public updateLecturedata_args setImagename(String imagename) { - this.imagename = imagename; - return this; - } + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageData_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); - public void unsetImagename() { - this.imagename = null; - } + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } - /** Returns true if field imagename is set (has been assigned a value) and false otherwise */ - public boolean isSetImagename() { - return this.imagename != null; - } + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteImageData_result struct) throws org.apache.thrift.TException { + struct.validate(); - public void setImagenameIsSet(boolean value) { - if (!value) { - this.imagename = null; + oprot.writeStructBegin(STRUCT_DESC); + if (struct.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeBool(struct.success); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); } - } - public String getFirstname() { - return this.firstname; } - public updateLecturedata_args setFirstname(String firstname) { - this.firstname = firstname; - return this; + private static class deleteImageData_resultTupleSchemeFactory implements SchemeFactory { + public deleteImageData_resultTupleScheme getScheme() { + return new deleteImageData_resultTupleScheme(); + } } - public void unsetFirstname() { - this.firstname = null; - } + private static class deleteImageData_resultTupleScheme extends TupleScheme { - /** Returns true if field firstname is set (has been assigned a value) and false otherwise */ - public boolean isSetFirstname() { - return this.firstname != null; - } + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, deleteImageData_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + oprot.writeBool(struct.success); + } + } - public void setFirstnameIsSet(boolean value) { - if (!value) { - this.firstname = null; + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, deleteImageData_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } } } - public String getLastname() { - return this.lastname; - } + } - public updateLecturedata_args setLastname(String lastname) { - this.lastname = lastname; - return this; - } + public static class updateLecturedata_args 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("updateLecturedata_args"); - public void unsetLastname() { - this.lastname = null; + private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)-1); + private static final org.apache.thrift.protocol.TField NEW_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("newName", org.apache.thrift.protocol.TType.STRING, (short)-2); + private static final org.apache.thrift.protocol.TField SHORTDESC_FIELD_DESC = new org.apache.thrift.protocol.TField("shortdesc", org.apache.thrift.protocol.TType.STRING, (short)-3); + private static final org.apache.thrift.protocol.TField DESC_FIELD_DESC = new org.apache.thrift.protocol.TField("desc", org.apache.thrift.protocol.TType.STRING, (short)-4); + private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.STRING, (short)-5); + private static final org.apache.thrift.protocol.TField END_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("endDate", org.apache.thrift.protocol.TType.STRING, (short)-6); + private static final org.apache.thrift.protocol.TField IS_ACTIVE_FIELD_DESC = new org.apache.thrift.protocol.TField("isActive", org.apache.thrift.protocol.TType.BOOL, (short)-7); + private static final org.apache.thrift.protocol.TField IMAGEID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageid", org.apache.thrift.protocol.TType.STRING, (short)-8); + private static final org.apache.thrift.protocol.TField IMAGEVERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("imageversion", org.apache.thrift.protocol.TType.STRING, (short)-9); + private static final org.apache.thrift.protocol.TField USER_FIELD_DESC = new org.apache.thrift.protocol.TField("user", org.apache.thrift.protocol.TType.STRING, (short)-10); + private static final org.apache.thrift.protocol.TField FIRSTNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("firstname", org.apache.thrift.protocol.TType.STRING, (short)-11); + private static final org.apache.thrift.protocol.TField LASTNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lastname", org.apache.thrift.protocol.TType.STRING, (short)-12); + private static final org.apache.thrift.protocol.TField UNIVERSITY_FIELD_DESC = new org.apache.thrift.protocol.TField("university", org.apache.thrift.protocol.TType.STRING, (short)-13); + private static final org.apache.thrift.protocol.TField MAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("Mail", org.apache.thrift.protocol.TType.STRING, (short)-14); + private static final org.apache.thrift.protocol.TField TEL_FIELD_DESC = new org.apache.thrift.protocol.TField("Tel", org.apache.thrift.protocol.TType.STRING, (short)-15); + private static final org.apache.thrift.protocol.TField FAK_FIELD_DESC = new org.apache.thrift.protocol.TField("Fak", org.apache.thrift.protocol.TType.STRING, (short)-16); + 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)-17); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new updateLecturedata_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new updateLecturedata_argsTupleSchemeFactory()); } - /** Returns true if field lastname is set (has been assigned a value) and false otherwise */ - public boolean isSetLastname() { - return this.lastname != null; - } - - public void setLastnameIsSet(boolean value) { - if (!value) { - this.lastname = null; - } - } - - public String getUniversity() { - return this.university; - } - - public updateLecturedata_args setUniversity(String university) { - this.university = university; - return this; - } + public String name; // required + public String newName; // required + public String shortdesc; // required + public String desc; // required + public String startDate; // required + public String endDate; // required + public boolean isActive; // required + public String imageid; // required + public String imageversion; // required + public String user; // required + public String firstname; // required + public String lastname; // required + public String university; // required + public String Mail; // required + public String Tel; // required + public String Fak; // required + public String id; // required - public void unsetUniversity() { - this.university = null; - } + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + NAME((short)-1, "name"), + NEW_NAME((short)-2, "newName"), + SHORTDESC((short)-3, "shortdesc"), + DESC((short)-4, "desc"), + START_DATE((short)-5, "startDate"), + END_DATE((short)-6, "endDate"), + IS_ACTIVE((short)-7, "isActive"), + IMAGEID((short)-8, "imageid"), + IMAGEVERSION((short)-9, "imageversion"), + USER((short)-10, "user"), + FIRSTNAME((short)-11, "firstname"), + LASTNAME((short)-12, "lastname"), + UNIVERSITY((short)-13, "university"), + MAIL((short)-14, "Mail"), + TEL((short)-15, "Tel"), + FAK((short)-16, "Fak"), + ID((short)-17, "id"); - /** Returns true if field university is set (has been assigned a value) and false otherwise */ - public boolean isSetUniversity() { - return this.university != null; - } + private static final Map byName = new HashMap(); - public void setUniversityIsSet(boolean value) { - if (!value) { - this.university = null; + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } } - } - - public String getMail() { - return this.Mail; - } - - public updateLecturedata_args setMail(String Mail) { - this.Mail = Mail; - return this; - } - - public void unsetMail() { - this.Mail = null; - } - - /** Returns true if field Mail is set (has been assigned a value) and false otherwise */ - public boolean isSetMail() { - return this.Mail != null; - } - public void setMailIsSet(boolean value) { - if (!value) { - this.Mail = null; + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case -1: // NAME + return NAME; + case -2: // NEW_NAME + return NEW_NAME; + case -3: // SHORTDESC + return SHORTDESC; + case -4: // DESC + return DESC; + case -5: // START_DATE + return START_DATE; + case -6: // END_DATE + return END_DATE; + case -7: // IS_ACTIVE + return IS_ACTIVE; + case -8: // IMAGEID + return IMAGEID; + case -9: // IMAGEVERSION + return IMAGEVERSION; + case -10: // USER + return USER; + case -11: // FIRSTNAME + return FIRSTNAME; + case -12: // LASTNAME + return LASTNAME; + case -13: // UNIVERSITY + return UNIVERSITY; + case -14: // MAIL + return MAIL; + case -15: // TEL + return TEL; + case -16: // FAK + return FAK; + case -17: // ID + return ID; + default: + return null; + } } - } - - public String getTel() { - return this.Tel; - } - public updateLecturedata_args setTel(String Tel) { - this.Tel = Tel; - return this; - } + /** + * 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; + } - public void unsetTel() { - this.Tel = null; - } + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } - /** Returns true if field Tel is set (has been assigned a value) and false otherwise */ - public boolean isSetTel() { - return this.Tel != null; - } + private final short _thriftId; + private final String _fieldName; - public void setTelIsSet(boolean value) { - if (!value) { - this.Tel = null; + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; } - } - public String getFak() { - return this.Fak; - } + public short getThriftFieldId() { + return _thriftId; + } - public updateLecturedata_args setFak(String Fak) { - this.Fak = Fak; - return this; + public String getFieldName() { + return _fieldName; + } } - public void unsetFak() { - this.Fak = null; + // isset id assignments + private static final int __ISACTIVE_ISSET_ID = 0; + private byte __isset_bitfield = 0; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.NEW_NAME, new org.apache.thrift.meta_data.FieldMetaData("newName", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.SHORTDESC, new org.apache.thrift.meta_data.FieldMetaData("shortdesc", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DESC, new org.apache.thrift.meta_data.FieldMetaData("desc", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.IS_ACTIVE, new org.apache.thrift.meta_data.FieldMetaData("isActive", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.IMAGEID, new org.apache.thrift.meta_data.FieldMetaData("imageid", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.IMAGEVERSION, new org.apache.thrift.meta_data.FieldMetaData("imageversion", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.USER, new org.apache.thrift.meta_data.FieldMetaData("user", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.FIRSTNAME, new org.apache.thrift.meta_data.FieldMetaData("firstname", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.LASTNAME, new org.apache.thrift.meta_data.FieldMetaData("lastname", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.UNIVERSITY, new org.apache.thrift.meta_data.FieldMetaData("university", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("Mail", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TEL, new org.apache.thrift.meta_data.FieldMetaData("Tel", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.FAK, new org.apache.thrift.meta_data.FieldMetaData("Fak", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateLecturedata_args.class, metaDataMap); } - /** Returns true if field Fak is set (has been assigned a value) and false otherwise */ - public boolean isSetFak() { - return this.Fak != null; + public updateLecturedata_args() { } - public void setFakIsSet(boolean value) { - if (!value) { - this.Fak = null; - } + public updateLecturedata_args( + String name, + String newName, + String shortdesc, + String desc, + String startDate, + String endDate, + boolean isActive, + String imageid, + String imageversion, + String user, + String firstname, + String lastname, + String university, + String Mail, + String Tel, + String Fak, + String id) + { + this(); + this.name = name; + this.newName = newName; + this.shortdesc = shortdesc; + this.desc = desc; + this.startDate = startDate; + this.endDate = endDate; + this.isActive = isActive; + setIsActiveIsSet(true); + this.imageid = imageid; + this.imageversion = imageversion; + this.user = user; + this.firstname = firstname; + this.lastname = lastname; + this.university = university; + this.Mail = Mail; + this.Tel = Tel; + this.Fak = Fak; + this.id = id; } - public String getId() { - return this.id; + /** + * Performs a deep copy on other. + */ + public updateLecturedata_args(updateLecturedata_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetName()) { + this.name = other.name; + } + if (other.isSetNewName()) { + this.newName = other.newName; + } + if (other.isSetShortdesc()) { + this.shortdesc = other.shortdesc; + } + if (other.isSetDesc()) { + this.desc = other.desc; + } + if (other.isSetStartDate()) { + this.startDate = other.startDate; + } + if (other.isSetEndDate()) { + this.endDate = other.endDate; + } + this.isActive = other.isActive; + if (other.isSetImageid()) { + this.imageid = other.imageid; + } + if (other.isSetImageversion()) { + this.imageversion = other.imageversion; + } + if (other.isSetUser()) { + this.user = other.user; + } + if (other.isSetFirstname()) { + this.firstname = other.firstname; + } + if (other.isSetLastname()) { + this.lastname = other.lastname; + } + if (other.isSetUniversity()) { + this.university = other.university; + } + if (other.isSetMail()) { + this.Mail = other.Mail; + } + if (other.isSetTel()) { + this.Tel = other.Tel; + } + if (other.isSetFak()) { + this.Fak = other.Fak; + } + if (other.isSetId()) { + this.id = other.id; + } } - public updateLecturedata_args setId(String id) { - this.id = id; - return this; + public updateLecturedata_args deepCopy() { + return new updateLecturedata_args(this); } - public void unsetId() { + @Override + public void clear() { + this.name = null; + this.newName = null; + this.shortdesc = null; + this.desc = null; + this.startDate = null; + this.endDate = null; + setIsActiveIsSet(false); + this.isActive = false; + this.imageid = null; + this.imageversion = null; + this.user = null; + this.firstname = null; + this.lastname = null; + this.university = null; + this.Mail = null; + this.Tel = null; + this.Fak = null; 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 String getName() { + return this.name; } - public void setIdIsSet(boolean value) { - if (!value) { - this.id = null; - } + public updateLecturedata_args setName(String name) { + this.name = name; + return this; } - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case NAME: - if (value == null) { - unsetName(); - } else { - setName((String)value); - } - break; - - case NEW_NAME: - if (value == null) { - unsetNewName(); - } else { - setNewName((String)value); - } - break; - - case SHORTDESC: - if (value == null) { - unsetShortdesc(); - } else { - setShortdesc((String)value); - } - break; - - case DESC: - if (value == null) { - unsetDesc(); - } else { - setDesc((String)value); - } - break; + public void unsetName() { + this.name = null; + } - case START_DATE: - if (value == null) { - unsetStartDate(); - } else { - setStartDate((String)value); - } - break; + /** Returns true if field name is set (has been assigned a value) and false otherwise */ + public boolean isSetName() { + return this.name != null; + } - case END_DATE: - if (value == null) { - unsetEndDate(); - } else { - setEndDate((String)value); - } - break; + public void setNameIsSet(boolean value) { + if (!value) { + this.name = null; + } + } - case IS_ACTIVE: - if (value == null) { - unsetIsActive(); - } else { - setIsActive((Boolean)value); - } - break; + public String getNewName() { + return this.newName; + } - case IMAGENAME: - if (value == null) { - unsetImagename(); - } else { - setImagename((String)value); - } - break; + public updateLecturedata_args setNewName(String newName) { + this.newName = newName; + return this; + } - case FIRSTNAME: - if (value == null) { - unsetFirstname(); - } else { - setFirstname((String)value); - } - break; + public void unsetNewName() { + this.newName = null; + } - case LASTNAME: - if (value == null) { - unsetLastname(); - } else { - setLastname((String)value); - } - break; + /** Returns true if field newName is set (has been assigned a value) and false otherwise */ + public boolean isSetNewName() { + return this.newName != null; + } - case UNIVERSITY: - if (value == null) { - unsetUniversity(); - } else { - setUniversity((String)value); - } - break; + public void setNewNameIsSet(boolean value) { + if (!value) { + this.newName = null; + } + } - case MAIL: - if (value == null) { - unsetMail(); - } else { - setMail((String)value); - } - break; + public String getShortdesc() { + return this.shortdesc; + } - case TEL: - if (value == null) { - unsetTel(); - } else { - setTel((String)value); - } - break; + public updateLecturedata_args setShortdesc(String shortdesc) { + this.shortdesc = shortdesc; + return this; + } - case FAK: - if (value == null) { - unsetFak(); - } else { - setFak((String)value); - } - break; + public void unsetShortdesc() { + this.shortdesc = null; + } - case ID: - if (value == null) { - unsetId(); - } else { - setId((String)value); - } - break; + /** Returns true if field shortdesc is set (has been assigned a value) and false otherwise */ + public boolean isSetShortdesc() { + return this.shortdesc != null; + } + public void setShortdescIsSet(boolean value) { + if (!value) { + this.shortdesc = null; } } - public Object getFieldValue(_Fields field) { - switch (field) { - case NAME: - return getName(); + public String getDesc() { + return this.desc; + } - case NEW_NAME: - return getNewName(); - - case SHORTDESC: - return getShortdesc(); + public updateLecturedata_args setDesc(String desc) { + this.desc = desc; + return this; + } - case DESC: - return getDesc(); + public void unsetDesc() { + this.desc = null; + } - case START_DATE: - return getStartDate(); + /** Returns true if field desc is set (has been assigned a value) and false otherwise */ + public boolean isSetDesc() { + return this.desc != null; + } - case END_DATE: - return getEndDate(); + public void setDescIsSet(boolean value) { + if (!value) { + this.desc = null; + } + } - case IS_ACTIVE: - return Boolean.valueOf(isIsActive()); + public String getStartDate() { + return this.startDate; + } - case IMAGENAME: - return getImagename(); + public updateLecturedata_args setStartDate(String startDate) { + this.startDate = startDate; + return this; + } - case FIRSTNAME: - return getFirstname(); + public void unsetStartDate() { + this.startDate = null; + } - case LASTNAME: - return getLastname(); + /** Returns true if field startDate is set (has been assigned a value) and false otherwise */ + public boolean isSetStartDate() { + return this.startDate != null; + } - case UNIVERSITY: - return getUniversity(); + public void setStartDateIsSet(boolean value) { + if (!value) { + this.startDate = null; + } + } - case MAIL: - return getMail(); + public String getEndDate() { + return this.endDate; + } - case TEL: - return getTel(); + public updateLecturedata_args setEndDate(String endDate) { + this.endDate = endDate; + return this; + } - case FAK: - return getFak(); + public void unsetEndDate() { + this.endDate = null; + } - case ID: - return getId(); + /** Returns true if field endDate is set (has been assigned a value) and false otherwise */ + public boolean isSetEndDate() { + return this.endDate != null; + } + public void setEndDateIsSet(boolean value) { + if (!value) { + this.endDate = null; } - 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(); - } + public boolean isIsActive() { + return this.isActive; + } - switch (field) { - case NAME: - return isSetName(); - case NEW_NAME: - return isSetNewName(); - case SHORTDESC: - return isSetShortdesc(); - case DESC: - return isSetDesc(); - case START_DATE: - return isSetStartDate(); - case END_DATE: - return isSetEndDate(); - case IS_ACTIVE: - return isSetIsActive(); - case IMAGENAME: - return isSetImagename(); - case FIRSTNAME: - return isSetFirstname(); - case LASTNAME: - return isSetLastname(); - case UNIVERSITY: - return isSetUniversity(); - case MAIL: - return isSetMail(); - case TEL: - return isSetTel(); - case FAK: - return isSetFak(); - case ID: - return isSetId(); - } - throw new IllegalStateException(); + public updateLecturedata_args setIsActive(boolean isActive) { + this.isActive = isActive; + setIsActiveIsSet(true); + return this; } - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof updateLecturedata_args) - return this.equals((updateLecturedata_args)that); - return false; + public void unsetIsActive() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISACTIVE_ISSET_ID); } - public boolean equals(updateLecturedata_args that) { - if (that == null) - return false; + /** Returns true if field isActive is set (has been assigned a value) and false otherwise */ + public boolean isSetIsActive() { + return EncodingUtils.testBit(__isset_bitfield, __ISACTIVE_ISSET_ID); + } - boolean this_present_name = true && this.isSetName(); - boolean that_present_name = true && that.isSetName(); - if (this_present_name || that_present_name) { - if (!(this_present_name && that_present_name)) - return false; - if (!this.name.equals(that.name)) - return false; - } + public void setIsActiveIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISACTIVE_ISSET_ID, value); + } - boolean this_present_newName = true && this.isSetNewName(); - boolean that_present_newName = true && that.isSetNewName(); - if (this_present_newName || that_present_newName) { - if (!(this_present_newName && that_present_newName)) - return false; - if (!this.newName.equals(that.newName)) - return false; - } + public String getImageid() { + return this.imageid; + } - boolean this_present_shortdesc = true && this.isSetShortdesc(); - boolean that_present_shortdesc = true && that.isSetShortdesc(); - if (this_present_shortdesc || that_present_shortdesc) { - if (!(this_present_shortdesc && that_present_shortdesc)) - return false; - if (!this.shortdesc.equals(that.shortdesc)) - return false; - } + public updateLecturedata_args setImageid(String imageid) { + this.imageid = imageid; + return this; + } - 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; - } + public void unsetImageid() { + this.imageid = null; + } - boolean this_present_startDate = true && this.isSetStartDate(); - boolean that_present_startDate = true && that.isSetStartDate(); - if (this_present_startDate || that_present_startDate) { - if (!(this_present_startDate && that_present_startDate)) - return false; - if (!this.startDate.equals(that.startDate)) - return false; - } + /** Returns true if field imageid is set (has been assigned a value) and false otherwise */ + public boolean isSetImageid() { + return this.imageid != null; + } - boolean this_present_endDate = true && this.isSetEndDate(); - boolean that_present_endDate = true && that.isSetEndDate(); - if (this_present_endDate || that_present_endDate) { - if (!(this_present_endDate && that_present_endDate)) - return false; - if (!this.endDate.equals(that.endDate)) - return false; + public void setImageidIsSet(boolean value) { + if (!value) { + this.imageid = null; } + } - boolean this_present_isActive = true; - boolean that_present_isActive = true; - if (this_present_isActive || that_present_isActive) { - if (!(this_present_isActive && that_present_isActive)) - return false; - if (this.isActive != that.isActive) - return false; - } + public String getImageversion() { + return this.imageversion; + } - 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; - } + public updateLecturedata_args setImageversion(String imageversion) { + this.imageversion = imageversion; + return this; + } - boolean this_present_firstname = true && this.isSetFirstname(); - boolean that_present_firstname = true && that.isSetFirstname(); - if (this_present_firstname || that_present_firstname) { - if (!(this_present_firstname && that_present_firstname)) - return false; - if (!this.firstname.equals(that.firstname)) - return false; - } + public void unsetImageversion() { + this.imageversion = null; + } - boolean this_present_lastname = true && this.isSetLastname(); - boolean that_present_lastname = true && that.isSetLastname(); - if (this_present_lastname || that_present_lastname) { - if (!(this_present_lastname && that_present_lastname)) - return false; - if (!this.lastname.equals(that.lastname)) - return false; - } + /** Returns true if field imageversion is set (has been assigned a value) and false otherwise */ + public boolean isSetImageversion() { + return this.imageversion != null; + } - boolean this_present_university = true && this.isSetUniversity(); - boolean that_present_university = true && that.isSetUniversity(); - if (this_present_university || that_present_university) { - if (!(this_present_university && that_present_university)) - return false; - if (!this.university.equals(that.university)) - return false; + public void setImageversionIsSet(boolean value) { + if (!value) { + this.imageversion = null; } + } - boolean this_present_Mail = true && this.isSetMail(); - boolean that_present_Mail = true && that.isSetMail(); - if (this_present_Mail || that_present_Mail) { - if (!(this_present_Mail && that_present_Mail)) - return false; - if (!this.Mail.equals(that.Mail)) - return false; - } + public String getUser() { + return this.user; + } - boolean this_present_Tel = true && this.isSetTel(); - boolean that_present_Tel = true && that.isSetTel(); - if (this_present_Tel || that_present_Tel) { - if (!(this_present_Tel && that_present_Tel)) - return false; - if (!this.Tel.equals(that.Tel)) - return false; - } + public updateLecturedata_args setUser(String user) { + this.user = user; + return this; + } - boolean this_present_Fak = true && this.isSetFak(); - boolean that_present_Fak = true && that.isSetFak(); - if (this_present_Fak || that_present_Fak) { - if (!(this_present_Fak && that_present_Fak)) - return false; - if (!this.Fak.equals(that.Fak)) - return false; - } + public void unsetUser() { + this.user = null; + } - 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; + /** Returns true if field user is set (has been assigned a value) and false otherwise */ + public boolean isSetUser() { + return this.user != null; + } + + public void setUserIsSet(boolean value) { + if (!value) { + this.user = null; } + } - return true; + public String getFirstname() { + return this.firstname; } - @Override - public int hashCode() { - return 0; + public updateLecturedata_args setFirstname(String firstname) { + this.firstname = firstname; + return this; } - @Override - public int compareTo(updateLecturedata_args other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } + public void unsetFirstname() { + this.firstname = null; + } - int lastComparison = 0; + /** Returns true if field firstname is set (has been assigned a value) and false otherwise */ + public boolean isSetFirstname() { + return this.firstname != null; + } - lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetNewName()).compareTo(other.isSetNewName()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetNewName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newName, other.newName); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetShortdesc()).compareTo(other.isSetShortdesc()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetShortdesc()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shortdesc, other.shortdesc); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetDesc()).compareTo(other.isSetDesc()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDesc()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.desc, other.desc); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(other.isSetStartDate()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetStartDate()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, other.startDate); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(other.isSetEndDate()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetEndDate()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, other.endDate); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetIsActive()).compareTo(other.isSetIsActive()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetIsActive()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isActive, other.isActive); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetImagename()).compareTo(other.isSetImagename()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetImagename()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imagename, other.imagename); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetFirstname()).compareTo(other.isSetFirstname()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetFirstname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.firstname, other.firstname); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetLastname()).compareTo(other.isSetLastname()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetLastname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastname, other.lastname); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetUniversity()).compareTo(other.isSetUniversity()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetUniversity()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.university, other.university); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetMail()).compareTo(other.isSetMail()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetMail()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Mail, other.Mail); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetTel()).compareTo(other.isSetTel()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetTel()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Tel, other.Tel); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetFak()).compareTo(other.isSetFak()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetFak()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Fak, other.Fak); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id); - if (lastComparison != 0) { - return lastComparison; - } + public void setFirstnameIsSet(boolean value) { + if (!value) { + this.firstname = null; } - return 0; } - public _Fields fieldForId(int fieldId) { - return _Fields.findByThriftId(fieldId); + public String getLastname() { + return this.lastname; } - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + public updateLecturedata_args setLastname(String lastname) { + this.lastname = lastname; + return this; } - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + public void unsetLastname() { + this.lastname = null; } - @Override - public String toString() { - StringBuilder sb = new StringBuilder("updateLecturedata_args("); - boolean first = true; + /** Returns true if field lastname is set (has been assigned a value) and false otherwise */ + public boolean isSetLastname() { + return this.lastname != null; + } - sb.append("name:"); - if (this.name == null) { - sb.append("null"); - } else { - sb.append(this.name); - } - first = false; - if (!first) sb.append(", "); - sb.append("newName:"); - if (this.newName == null) { - sb.append("null"); - } else { - sb.append(this.newName); - } - first = false; - if (!first) sb.append(", "); - sb.append("shortdesc:"); - if (this.shortdesc == null) { - sb.append("null"); - } else { - sb.append(this.shortdesc); - } - first = false; - if (!first) sb.append(", "); - sb.append("desc:"); - if (this.desc == null) { - sb.append("null"); - } else { - sb.append(this.desc); - } - first = false; - if (!first) sb.append(", "); - sb.append("startDate:"); - if (this.startDate == null) { - sb.append("null"); - } else { - sb.append(this.startDate); - } - first = false; - if (!first) sb.append(", "); - sb.append("endDate:"); - if (this.endDate == null) { - sb.append("null"); - } else { - sb.append(this.endDate); - } - first = false; - if (!first) sb.append(", "); - sb.append("isActive:"); - sb.append(this.isActive); - first = false; - if (!first) sb.append(", "); - sb.append("imagename:"); - if (this.imagename == null) { - sb.append("null"); - } else { - sb.append(this.imagename); - } - first = false; - if (!first) sb.append(", "); - sb.append("firstname:"); - if (this.firstname == null) { - sb.append("null"); - } else { - sb.append(this.firstname); - } - first = false; - if (!first) sb.append(", "); - sb.append("lastname:"); - if (this.lastname == null) { - sb.append("null"); - } else { - sb.append(this.lastname); - } - first = false; - if (!first) sb.append(", "); - sb.append("university:"); - if (this.university == null) { - sb.append("null"); - } else { - sb.append(this.university); - } - first = false; - if (!first) sb.append(", "); - sb.append("Mail:"); - if (this.Mail == null) { - sb.append("null"); - } else { - sb.append(this.Mail); - } - first = false; - if (!first) sb.append(", "); - sb.append("Tel:"); - if (this.Tel == null) { - sb.append("null"); - } else { - sb.append(this.Tel); + public void setLastnameIsSet(boolean value) { + if (!value) { + this.lastname = null; } - first = false; - if (!first) sb.append(", "); - sb.append("Fak:"); - if (this.Fak == null) { - sb.append("null"); - } else { - sb.append(this.Fak); + } + + public String getUniversity() { + return this.university; + } + + public updateLecturedata_args setUniversity(String university) { + this.university = university; + return this; + } + + public void unsetUniversity() { + this.university = null; + } + + /** Returns true if field university is set (has been assigned a value) and false otherwise */ + public boolean isSetUniversity() { + return this.university != null; + } + + public void setUniversityIsSet(boolean value) { + if (!value) { + this.university = null; } - first = false; - if (!first) sb.append(", "); - sb.append("id:"); - if (this.id == null) { - sb.append("null"); - } else { - sb.append(this.id); + } + + public String getMail() { + return this.Mail; + } + + public updateLecturedata_args setMail(String Mail) { + this.Mail = Mail; + return this; + } + + public void unsetMail() { + this.Mail = null; + } + + /** Returns true if field Mail is set (has been assigned a value) and false otherwise */ + public boolean isSetMail() { + return this.Mail != null; + } + + public void setMailIsSet(boolean value) { + if (!value) { + this.Mail = null; } - first = false; - sb.append(")"); - return sb.toString(); } - public void validate() throws org.apache.thrift.TException { - // check for required fields - // check for sub-struct validity + public String getTel() { + return this.Tel; } - 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); + public updateLecturedata_args setTel(String Tel) { + this.Tel = Tel; + return this; + } + + public void unsetTel() { + this.Tel = null; + } + + /** Returns true if field Tel is set (has been assigned a value) and false otherwise */ + public boolean isSetTel() { + return this.Tel != null; + } + + public void setTelIsSet(boolean value) { + if (!value) { + this.Tel = null; } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { - try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); + public String getFak() { + return this.Fak; + } + + public updateLecturedata_args setFak(String Fak) { + this.Fak = Fak; + return this; + } + + public void unsetFak() { + this.Fak = null; + } + + /** Returns true if field Fak is set (has been assigned a value) and false otherwise */ + public boolean isSetFak() { + return this.Fak != null; + } + + public void setFakIsSet(boolean value) { + if (!value) { + this.Fak = null; } } - private static class updateLecturedata_argsStandardSchemeFactory implements SchemeFactory { - public updateLecturedata_argsStandardScheme getScheme() { - return new updateLecturedata_argsStandardScheme(); + public String getId() { + return this.id; + } + + public updateLecturedata_args setId(String id) { + this.id = id; + return this; + } + + public void unsetId() { + this.id = null; + } + + /** Returns true if field id is set (has been assigned a value) and false otherwise */ + public boolean isSetId() { + return this.id != null; + } + + public void setIdIsSet(boolean value) { + if (!value) { + this.id = null; } } - private static class updateLecturedata_argsStandardScheme extends StandardScheme { + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case NAME: + if (value == null) { + unsetName(); + } else { + setName((String)value); + } + break; - public void read(org.apache.thrift.protocol.TProtocol iprot, updateLecturedata_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { + case NEW_NAME: + if (value == null) { + unsetNewName(); + } else { + setNewName((String)value); + } + break; + + case SHORTDESC: + if (value == null) { + unsetShortdesc(); + } else { + setShortdesc((String)value); + } + break; + + case DESC: + if (value == null) { + unsetDesc(); + } else { + setDesc((String)value); + } + break; + + case START_DATE: + if (value == null) { + unsetStartDate(); + } else { + setStartDate((String)value); + } + break; + + case END_DATE: + if (value == null) { + unsetEndDate(); + } else { + setEndDate((String)value); + } + break; + + case IS_ACTIVE: + if (value == null) { + unsetIsActive(); + } else { + setIsActive((Boolean)value); + } + break; + + case IMAGEID: + if (value == null) { + unsetImageid(); + } else { + setImageid((String)value); + } + break; + + case IMAGEVERSION: + if (value == null) { + unsetImageversion(); + } else { + setImageversion((String)value); + } + break; + + case USER: + if (value == null) { + unsetUser(); + } else { + setUser((String)value); + } + break; + + case FIRSTNAME: + if (value == null) { + unsetFirstname(); + } else { + setFirstname((String)value); + } + break; + + case LASTNAME: + if (value == null) { + unsetLastname(); + } else { + setLastname((String)value); + } + break; + + case UNIVERSITY: + if (value == null) { + unsetUniversity(); + } else { + setUniversity((String)value); + } + break; + + case MAIL: + if (value == null) { + unsetMail(); + } else { + setMail((String)value); + } + break; + + case TEL: + if (value == null) { + unsetTel(); + } else { + setTel((String)value); + } + break; + + case FAK: + if (value == null) { + unsetFak(); + } else { + setFak((String)value); + } + break; + + case ID: + if (value == null) { + unsetId(); + } else { + setId((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case NAME: + return getName(); + + case NEW_NAME: + return getNewName(); + + case SHORTDESC: + return getShortdesc(); + + case DESC: + return getDesc(); + + case START_DATE: + return getStartDate(); + + case END_DATE: + return getEndDate(); + + case IS_ACTIVE: + return Boolean.valueOf(isIsActive()); + + case IMAGEID: + return getImageid(); + + case IMAGEVERSION: + return getImageversion(); + + case USER: + return getUser(); + + case FIRSTNAME: + return getFirstname(); + + case LASTNAME: + return getLastname(); + + case UNIVERSITY: + return getUniversity(); + + case MAIL: + return getMail(); + + case TEL: + return getTel(); + + case FAK: + return getFak(); + + case ID: + return getId(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case NAME: + return isSetName(); + case NEW_NAME: + return isSetNewName(); + case SHORTDESC: + return isSetShortdesc(); + case DESC: + return isSetDesc(); + case START_DATE: + return isSetStartDate(); + case END_DATE: + return isSetEndDate(); + case IS_ACTIVE: + return isSetIsActive(); + case IMAGEID: + return isSetImageid(); + case IMAGEVERSION: + return isSetImageversion(); + case USER: + return isSetUser(); + case FIRSTNAME: + return isSetFirstname(); + case LASTNAME: + return isSetLastname(); + case UNIVERSITY: + return isSetUniversity(); + case MAIL: + return isSetMail(); + case TEL: + return isSetTel(); + case FAK: + return isSetFak(); + case ID: + return isSetId(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof updateLecturedata_args) + return this.equals((updateLecturedata_args)that); + return false; + } + + public boolean equals(updateLecturedata_args that) { + if (that == null) + return false; + + boolean this_present_name = true && this.isSetName(); + boolean that_present_name = true && that.isSetName(); + if (this_present_name || that_present_name) { + if (!(this_present_name && that_present_name)) + return false; + if (!this.name.equals(that.name)) + return false; + } + + boolean this_present_newName = true && this.isSetNewName(); + boolean that_present_newName = true && that.isSetNewName(); + if (this_present_newName || that_present_newName) { + if (!(this_present_newName && that_present_newName)) + return false; + if (!this.newName.equals(that.newName)) + return false; + } + + boolean this_present_shortdesc = true && this.isSetShortdesc(); + boolean that_present_shortdesc = true && that.isSetShortdesc(); + if (this_present_shortdesc || that_present_shortdesc) { + if (!(this_present_shortdesc && that_present_shortdesc)) + return false; + if (!this.shortdesc.equals(that.shortdesc)) + return false; + } + + boolean this_present_desc = true && this.isSetDesc(); + boolean that_present_desc = true && that.isSetDesc(); + if (this_present_desc || that_present_desc) { + if (!(this_present_desc && that_present_desc)) + return false; + if (!this.desc.equals(that.desc)) + return false; + } + + boolean this_present_startDate = true && this.isSetStartDate(); + boolean that_present_startDate = true && that.isSetStartDate(); + if (this_present_startDate || that_present_startDate) { + if (!(this_present_startDate && that_present_startDate)) + return false; + if (!this.startDate.equals(that.startDate)) + return false; + } + + boolean this_present_endDate = true && this.isSetEndDate(); + boolean that_present_endDate = true && that.isSetEndDate(); + if (this_present_endDate || that_present_endDate) { + if (!(this_present_endDate && that_present_endDate)) + return false; + if (!this.endDate.equals(that.endDate)) + return false; + } + + boolean this_present_isActive = true; + boolean that_present_isActive = true; + if (this_present_isActive || that_present_isActive) { + if (!(this_present_isActive && that_present_isActive)) + return false; + if (this.isActive != that.isActive) + return false; + } + + boolean this_present_imageid = true && this.isSetImageid(); + boolean that_present_imageid = true && that.isSetImageid(); + if (this_present_imageid || that_present_imageid) { + if (!(this_present_imageid && that_present_imageid)) + return false; + if (!this.imageid.equals(that.imageid)) + return false; + } + + boolean this_present_imageversion = true && this.isSetImageversion(); + boolean that_present_imageversion = true && that.isSetImageversion(); + if (this_present_imageversion || that_present_imageversion) { + if (!(this_present_imageversion && that_present_imageversion)) + return false; + if (!this.imageversion.equals(that.imageversion)) + return false; + } + + boolean this_present_user = true && this.isSetUser(); + boolean that_present_user = true && that.isSetUser(); + if (this_present_user || that_present_user) { + if (!(this_present_user && that_present_user)) + return false; + if (!this.user.equals(that.user)) + return false; + } + + boolean this_present_firstname = true && this.isSetFirstname(); + boolean that_present_firstname = true && that.isSetFirstname(); + if (this_present_firstname || that_present_firstname) { + if (!(this_present_firstname && that_present_firstname)) + return false; + if (!this.firstname.equals(that.firstname)) + return false; + } + + boolean this_present_lastname = true && this.isSetLastname(); + boolean that_present_lastname = true && that.isSetLastname(); + if (this_present_lastname || that_present_lastname) { + if (!(this_present_lastname && that_present_lastname)) + return false; + if (!this.lastname.equals(that.lastname)) + return false; + } + + boolean this_present_university = true && this.isSetUniversity(); + boolean that_present_university = true && that.isSetUniversity(); + if (this_present_university || that_present_university) { + if (!(this_present_university && that_present_university)) + return false; + if (!this.university.equals(that.university)) + return false; + } + + boolean this_present_Mail = true && this.isSetMail(); + boolean that_present_Mail = true && that.isSetMail(); + if (this_present_Mail || that_present_Mail) { + if (!(this_present_Mail && that_present_Mail)) + return false; + if (!this.Mail.equals(that.Mail)) + return false; + } + + boolean this_present_Tel = true && this.isSetTel(); + boolean that_present_Tel = true && that.isSetTel(); + if (this_present_Tel || that_present_Tel) { + if (!(this_present_Tel && that_present_Tel)) + return false; + if (!this.Tel.equals(that.Tel)) + return false; + } + + boolean this_present_Fak = true && this.isSetFak(); + boolean that_present_Fak = true && that.isSetFak(); + if (this_present_Fak || that_present_Fak) { + if (!(this_present_Fak && that_present_Fak)) + return false; + if (!this.Fak.equals(that.Fak)) + return false; + } + + boolean this_present_id = true && this.isSetId(); + boolean that_present_id = true && that.isSetId(); + if (this_present_id || that_present_id) { + if (!(this_present_id && that_present_id)) + return false; + if (!this.id.equals(that.id)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(updateLecturedata_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetNewName()).compareTo(other.isSetNewName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetNewName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newName, other.newName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetShortdesc()).compareTo(other.isSetShortdesc()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetShortdesc()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shortdesc, other.shortdesc); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDesc()).compareTo(other.isSetDesc()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDesc()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.desc, other.desc); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(other.isSetStartDate()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetStartDate()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, other.startDate); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(other.isSetEndDate()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetEndDate()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, other.endDate); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetIsActive()).compareTo(other.isSetIsActive()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIsActive()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isActive, other.isActive); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetImageid()).compareTo(other.isSetImageid()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetImageid()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageid, other.imageid); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetImageversion()).compareTo(other.isSetImageversion()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetImageversion()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageversion, other.imageversion); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUser()).compareTo(other.isSetUser()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUser()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, other.user); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetFirstname()).compareTo(other.isSetFirstname()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFirstname()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.firstname, other.firstname); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetLastname()).compareTo(other.isSetLastname()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetLastname()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastname, other.lastname); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUniversity()).compareTo(other.isSetUniversity()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUniversity()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.university, other.university); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetMail()).compareTo(other.isSetMail()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetMail()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Mail, other.Mail); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTel()).compareTo(other.isSetTel()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTel()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Tel, other.Tel); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetFak()).compareTo(other.isSetFak()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFak()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Fak, other.Fak); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("updateLecturedata_args("); + boolean first = true; + + sb.append("name:"); + if (this.name == null) { + sb.append("null"); + } else { + sb.append(this.name); + } + first = false; + if (!first) sb.append(", "); + sb.append("newName:"); + if (this.newName == null) { + sb.append("null"); + } else { + sb.append(this.newName); + } + first = false; + if (!first) sb.append(", "); + sb.append("shortdesc:"); + if (this.shortdesc == null) { + sb.append("null"); + } else { + sb.append(this.shortdesc); + } + first = false; + if (!first) sb.append(", "); + sb.append("desc:"); + if (this.desc == null) { + sb.append("null"); + } else { + sb.append(this.desc); + } + first = false; + if (!first) sb.append(", "); + sb.append("startDate:"); + if (this.startDate == null) { + sb.append("null"); + } else { + sb.append(this.startDate); + } + first = false; + if (!first) sb.append(", "); + sb.append("endDate:"); + if (this.endDate == null) { + sb.append("null"); + } else { + sb.append(this.endDate); + } + first = false; + if (!first) sb.append(", "); + sb.append("isActive:"); + sb.append(this.isActive); + first = false; + if (!first) sb.append(", "); + sb.append("imageid:"); + if (this.imageid == null) { + sb.append("null"); + } else { + sb.append(this.imageid); + } + first = false; + if (!first) sb.append(", "); + sb.append("imageversion:"); + if (this.imageversion == null) { + sb.append("null"); + } else { + sb.append(this.imageversion); + } + first = false; + if (!first) sb.append(", "); + sb.append("user:"); + if (this.user == null) { + sb.append("null"); + } else { + sb.append(this.user); + } + first = false; + if (!first) sb.append(", "); + sb.append("firstname:"); + if (this.firstname == null) { + sb.append("null"); + } else { + sb.append(this.firstname); + } + first = false; + if (!first) sb.append(", "); + sb.append("lastname:"); + if (this.lastname == null) { + sb.append("null"); + } else { + sb.append(this.lastname); + } + first = false; + if (!first) sb.append(", "); + sb.append("university:"); + if (this.university == null) { + sb.append("null"); + } else { + sb.append(this.university); + } + first = false; + if (!first) sb.append(", "); + sb.append("Mail:"); + if (this.Mail == null) { + sb.append("null"); + } else { + sb.append(this.Mail); + } + first = false; + if (!first) sb.append(", "); + sb.append("Tel:"); + if (this.Tel == null) { + sb.append("null"); + } else { + sb.append(this.Tel); + } + first = false; + if (!first) sb.append(", "); + sb.append("Fak:"); + if (this.Fak == null) { + sb.append("null"); + } else { + sb.append(this.Fak); + } + first = false; + if (!first) sb.append(", "); + sb.append("id:"); + if (this.id == null) { + sb.append("null"); + } else { + sb.append(this.id); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class updateLecturedata_argsStandardSchemeFactory implements SchemeFactory { + public updateLecturedata_argsStandardScheme getScheme() { + return new updateLecturedata_argsStandardScheme(); + } + } + + private static class updateLecturedata_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, updateLecturedata_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case -1: // NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.name = iprot.readString(); + struct.setNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -2: // NEW_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.newName = iprot.readString(); + struct.setNewNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -3: // SHORTDESC + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.shortdesc = iprot.readString(); + struct.setShortdescIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -4: // DESC + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.desc = iprot.readString(); + struct.setDescIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -5: // START_DATE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.startDate = iprot.readString(); + struct.setStartDateIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -6: // END_DATE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.endDate = iprot.readString(); + struct.setEndDateIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -7: // IS_ACTIVE + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.isActive = iprot.readBool(); + struct.setIsActiveIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -8: // IMAGEID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.imageid = iprot.readString(); + struct.setImageidIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -9: // IMAGEVERSION + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.imageversion = iprot.readString(); + struct.setImageversionIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -10: // USER + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.user = iprot.readString(); + struct.setUserIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -11: // FIRSTNAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.firstname = iprot.readString(); + struct.setFirstnameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -12: // LASTNAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.lastname = iprot.readString(); + struct.setLastnameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -13: // UNIVERSITY + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.university = iprot.readString(); + struct.setUniversityIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -14: // MAIL + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.Mail = iprot.readString(); + struct.setMailIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -15: // TEL + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.Tel = iprot.readString(); + struct.setTelIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -16: // FAK + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.Fak = iprot.readString(); + struct.setFakIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -17: // ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.id = iprot.readString(); + struct.setIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, updateLecturedata_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.id != null) { + oprot.writeFieldBegin(ID_FIELD_DESC); + oprot.writeString(struct.id); + oprot.writeFieldEnd(); + } + if (struct.Fak != null) { + oprot.writeFieldBegin(FAK_FIELD_DESC); + oprot.writeString(struct.Fak); + oprot.writeFieldEnd(); + } + if (struct.Tel != null) { + oprot.writeFieldBegin(TEL_FIELD_DESC); + oprot.writeString(struct.Tel); + oprot.writeFieldEnd(); + } + if (struct.Mail != null) { + oprot.writeFieldBegin(MAIL_FIELD_DESC); + oprot.writeString(struct.Mail); + oprot.writeFieldEnd(); + } + if (struct.university != null) { + oprot.writeFieldBegin(UNIVERSITY_FIELD_DESC); + oprot.writeString(struct.university); + oprot.writeFieldEnd(); + } + if (struct.lastname != null) { + oprot.writeFieldBegin(LASTNAME_FIELD_DESC); + oprot.writeString(struct.lastname); + oprot.writeFieldEnd(); + } + if (struct.firstname != null) { + oprot.writeFieldBegin(FIRSTNAME_FIELD_DESC); + oprot.writeString(struct.firstname); + oprot.writeFieldEnd(); + } + if (struct.user != null) { + oprot.writeFieldBegin(USER_FIELD_DESC); + oprot.writeString(struct.user); + oprot.writeFieldEnd(); + } + if (struct.imageversion != null) { + oprot.writeFieldBegin(IMAGEVERSION_FIELD_DESC); + oprot.writeString(struct.imageversion); + oprot.writeFieldEnd(); + } + if (struct.imageid != null) { + oprot.writeFieldBegin(IMAGEID_FIELD_DESC); + oprot.writeString(struct.imageid); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(IS_ACTIVE_FIELD_DESC); + oprot.writeBool(struct.isActive); + oprot.writeFieldEnd(); + if (struct.endDate != null) { + oprot.writeFieldBegin(END_DATE_FIELD_DESC); + oprot.writeString(struct.endDate); + oprot.writeFieldEnd(); + } + if (struct.startDate != null) { + oprot.writeFieldBegin(START_DATE_FIELD_DESC); + oprot.writeString(struct.startDate); + oprot.writeFieldEnd(); + } + if (struct.desc != null) { + oprot.writeFieldBegin(DESC_FIELD_DESC); + oprot.writeString(struct.desc); + oprot.writeFieldEnd(); + } + if (struct.shortdesc != null) { + oprot.writeFieldBegin(SHORTDESC_FIELD_DESC); + oprot.writeString(struct.shortdesc); + oprot.writeFieldEnd(); + } + if (struct.newName != null) { + oprot.writeFieldBegin(NEW_NAME_FIELD_DESC); + oprot.writeString(struct.newName); + oprot.writeFieldEnd(); + } + if (struct.name != null) { + oprot.writeFieldBegin(NAME_FIELD_DESC); + oprot.writeString(struct.name); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class updateLecturedata_argsTupleSchemeFactory implements SchemeFactory { + public updateLecturedata_argsTupleScheme getScheme() { + return new updateLecturedata_argsTupleScheme(); + } + } + + private static class updateLecturedata_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, updateLecturedata_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetName()) { + optionals.set(0); + } + if (struct.isSetNewName()) { + optionals.set(1); + } + if (struct.isSetShortdesc()) { + optionals.set(2); + } + if (struct.isSetDesc()) { + optionals.set(3); + } + if (struct.isSetStartDate()) { + optionals.set(4); + } + if (struct.isSetEndDate()) { + optionals.set(5); + } + if (struct.isSetIsActive()) { + optionals.set(6); + } + if (struct.isSetImageid()) { + optionals.set(7); + } + if (struct.isSetImageversion()) { + optionals.set(8); + } + if (struct.isSetUser()) { + optionals.set(9); + } + if (struct.isSetFirstname()) { + optionals.set(10); + } + if (struct.isSetLastname()) { + optionals.set(11); + } + if (struct.isSetUniversity()) { + optionals.set(12); + } + if (struct.isSetMail()) { + optionals.set(13); + } + if (struct.isSetTel()) { + optionals.set(14); + } + if (struct.isSetFak()) { + optionals.set(15); + } + if (struct.isSetId()) { + optionals.set(16); + } + oprot.writeBitSet(optionals, 17); + if (struct.isSetName()) { + oprot.writeString(struct.name); + } + if (struct.isSetNewName()) { + oprot.writeString(struct.newName); + } + if (struct.isSetShortdesc()) { + oprot.writeString(struct.shortdesc); + } + if (struct.isSetDesc()) { + oprot.writeString(struct.desc); + } + if (struct.isSetStartDate()) { + oprot.writeString(struct.startDate); + } + if (struct.isSetEndDate()) { + oprot.writeString(struct.endDate); + } + if (struct.isSetIsActive()) { + oprot.writeBool(struct.isActive); + } + if (struct.isSetImageid()) { + oprot.writeString(struct.imageid); + } + if (struct.isSetImageversion()) { + oprot.writeString(struct.imageversion); + } + if (struct.isSetUser()) { + oprot.writeString(struct.user); + } + if (struct.isSetFirstname()) { + oprot.writeString(struct.firstname); + } + if (struct.isSetLastname()) { + oprot.writeString(struct.lastname); + } + if (struct.isSetUniversity()) { + oprot.writeString(struct.university); + } + if (struct.isSetMail()) { + oprot.writeString(struct.Mail); + } + if (struct.isSetTel()) { + oprot.writeString(struct.Tel); + } + if (struct.isSetFak()) { + oprot.writeString(struct.Fak); + } + if (struct.isSetId()) { + oprot.writeString(struct.id); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, updateLecturedata_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(17); + if (incoming.get(0)) { + struct.name = iprot.readString(); + struct.setNameIsSet(true); + } + if (incoming.get(1)) { + struct.newName = iprot.readString(); + struct.setNewNameIsSet(true); + } + if (incoming.get(2)) { + struct.shortdesc = iprot.readString(); + struct.setShortdescIsSet(true); + } + if (incoming.get(3)) { + struct.desc = iprot.readString(); + struct.setDescIsSet(true); + } + if (incoming.get(4)) { + struct.startDate = iprot.readString(); + struct.setStartDateIsSet(true); + } + if (incoming.get(5)) { + struct.endDate = iprot.readString(); + struct.setEndDateIsSet(true); + } + if (incoming.get(6)) { + struct.isActive = iprot.readBool(); + struct.setIsActiveIsSet(true); + } + if (incoming.get(7)) { + struct.imageid = iprot.readString(); + struct.setImageidIsSet(true); + } + if (incoming.get(8)) { + struct.imageversion = iprot.readString(); + struct.setImageversionIsSet(true); + } + if (incoming.get(9)) { + struct.user = iprot.readString(); + struct.setUserIsSet(true); + } + if (incoming.get(10)) { + struct.firstname = iprot.readString(); + struct.setFirstnameIsSet(true); + } + if (incoming.get(11)) { + struct.lastname = iprot.readString(); + struct.setLastnameIsSet(true); + } + if (incoming.get(12)) { + struct.university = iprot.readString(); + struct.setUniversityIsSet(true); + } + if (incoming.get(13)) { + struct.Mail = iprot.readString(); + struct.setMailIsSet(true); + } + if (incoming.get(14)) { + struct.Tel = iprot.readString(); + struct.setTelIsSet(true); + } + if (incoming.get(15)) { + struct.Fak = iprot.readString(); + struct.setFakIsSet(true); + } + if (incoming.get(16)) { + struct.id = iprot.readString(); + struct.setIdIsSet(true); + } + } + } + + } + + public static class updateLecturedata_result 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("updateLecturedata_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new updateLecturedata_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new updateLecturedata_resultTupleSchemeFactory()); + } + + public boolean success; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"); + + private static final Map 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 0: // SUCCESS + return SUCCESS; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateLecturedata_result.class, metaDataMap); + } + + public updateLecturedata_result() { + } + + public updateLecturedata_result( + boolean success) + { + this(); + this.success = success; + setSuccessIsSet(true); + } + + /** + * Performs a deep copy on other. + */ + public updateLecturedata_result(updateLecturedata_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; + } + + public updateLecturedata_result deepCopy() { + return new updateLecturedata_result(this); + } + + @Override + public void clear() { + setSuccessIsSet(false); + this.success = false; + } + + public boolean isSuccess() { + return this.success; + } + + public updateLecturedata_result setSuccess(boolean success) { + this.success = success; + setSuccessIsSet(true); + return this; + } + + public void unsetSuccess() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + public void setSuccessIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Boolean)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return Boolean.valueOf(isSuccess()); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof updateLecturedata_result) + return this.equals((updateLecturedata_result)that); + return false; + } + + public boolean equals(updateLecturedata_result that) { + if (that == null) + return false; + + boolean this_present_success = true; + boolean that_present_success = true; + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (this.success != that.success) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(updateLecturedata_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("updateLecturedata_result("); + boolean first = true; + + sb.append("success:"); + sb.append(this.success); + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class updateLecturedata_resultStandardSchemeFactory implements SchemeFactory { + public updateLecturedata_resultStandardScheme getScheme() { + return new updateLecturedata_resultStandardScheme(); + } + } + + private static class updateLecturedata_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, updateLecturedata_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, updateLecturedata_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeBool(struct.success); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class updateLecturedata_resultTupleSchemeFactory implements SchemeFactory { + public updateLecturedata_resultTupleScheme getScheme() { + return new updateLecturedata_resultTupleScheme(); + } + } + + private static class updateLecturedata_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, updateLecturedata_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + oprot.writeBool(struct.success); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, updateLecturedata_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } + } + } + + } + + public static class deleteImageServer_args 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("deleteImageServer_args"); + + 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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new deleteImageServer_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteImageServer_argsTupleSchemeFactory()); + } + + public String id; // required + public String version; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + ID((short)-1, "id"), + VERSION((short)-2, "version"); + + 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; + 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))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageServer_args.class, metaDataMap); + } + + public deleteImageServer_args() { + } + + public deleteImageServer_args( + String id, + String version) + { + this(); + this.id = id; + this.version = version; + } + + /** + * Performs a deep copy on other. + */ + public deleteImageServer_args(deleteImageServer_args other) { + if (other.isSetId()) { + this.id = other.id; + } + if (other.isSetVersion()) { + this.version = other.version; + } + } + + public deleteImageServer_args deepCopy() { + return new deleteImageServer_args(this); + } + + @Override + public void clear() { + this.id = null; + this.version = null; + } + + public String getId() { + return this.id; + } + + public deleteImageServer_args setId(String id) { + this.id = id; + return this; + } + + public void unsetId() { + this.id = null; + } + + /** Returns true if field id is set (has been assigned a value) and false otherwise */ + public boolean isSetId() { + return this.id != null; + } + + public void setIdIsSet(boolean value) { + if (!value) { + this.id = null; + } + } + + public String getVersion() { + return this.version; + } + + public deleteImageServer_args setVersion(String version) { + this.version = version; + return this; + } + + public void unsetVersion() { + this.version = null; + } + + /** Returns true if field version is set (has been assigned a value) and false otherwise */ + public boolean isSetVersion() { + return this.version != null; + } + + public void setVersionIsSet(boolean value) { + if (!value) { + this.version = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case ID: + if (value == null) { + unsetId(); + } else { + setId((String)value); + } + break; + + case VERSION: + if (value == null) { + unsetVersion(); + } else { + setVersion((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case ID: + return getId(); + + case VERSION: + return getVersion(); + + } + 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(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof deleteImageServer_args) + return this.equals((deleteImageServer_args)that); + return false; + } + + public boolean equals(deleteImageServer_args 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; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(deleteImageServer_args 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; + } + } + 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("deleteImageServer_args("); + 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; + 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 deleteImageServer_argsStandardSchemeFactory implements SchemeFactory { + public deleteImageServer_argsStandardScheme getScheme() { + return new deleteImageServer_argsStandardScheme(); + } + } + + private static class deleteImageServer_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageServer_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case -1: // 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; + 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, deleteImageServer_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.version != null) { + oprot.writeFieldBegin(VERSION_FIELD_DESC); + oprot.writeString(struct.version); + oprot.writeFieldEnd(); + } + if (struct.id != null) { + oprot.writeFieldBegin(ID_FIELD_DESC); + oprot.writeString(struct.id); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class deleteImageServer_argsTupleSchemeFactory implements SchemeFactory { + public deleteImageServer_argsTupleScheme getScheme() { + return new deleteImageServer_argsTupleScheme(); + } + } + + private static class deleteImageServer_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, deleteImageServer_args 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); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetId()) { + oprot.writeString(struct.id); + } + if (struct.isSetVersion()) { + oprot.writeString(struct.version); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, deleteImageServer_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.id = iprot.readString(); + struct.setIdIsSet(true); + } + if (incoming.get(1)) { + struct.version = iprot.readString(); + struct.setVersionIsSet(true); + } + } + } + + } + + public static class deleteImageServer_result 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("deleteImageServer_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new deleteImageServer_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteImageServer_resultTupleSchemeFactory()); + } + + public boolean success; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"); + + private static final Map 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 0: // SUCCESS + return SUCCESS; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageServer_result.class, metaDataMap); + } + + public deleteImageServer_result() { + } + + public deleteImageServer_result( + boolean success) + { + this(); + this.success = success; + setSuccessIsSet(true); + } + + /** + * Performs a deep copy on other. + */ + public deleteImageServer_result(deleteImageServer_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; + } + + public deleteImageServer_result deepCopy() { + return new deleteImageServer_result(this); + } + + @Override + public void clear() { + setSuccessIsSet(false); + this.success = false; + } + + public boolean isSuccess() { + return this.success; + } + + public deleteImageServer_result setSuccess(boolean success) { + this.success = success; + setSuccessIsSet(true); + return this; + } + + public void unsetSuccess() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + public void setSuccessIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Boolean)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return Boolean.valueOf(isSuccess()); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof deleteImageServer_result) + return this.equals((deleteImageServer_result)that); + return false; + } + + public boolean equals(deleteImageServer_result that) { + if (that == null) + return false; + + boolean this_present_success = true; + boolean that_present_success = true; + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (this.success != that.success) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(deleteImageServer_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("deleteImageServer_result("); + boolean first = true; + + sb.append("success:"); + sb.append(this.success); + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class deleteImageServer_resultStandardSchemeFactory implements SchemeFactory { + public deleteImageServer_resultStandardScheme getScheme() { + return new deleteImageServer_resultStandardScheme(); + } + } + + private static class deleteImageServer_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageServer_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteImageServer_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeBool(struct.success); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class deleteImageServer_resultTupleSchemeFactory implements SchemeFactory { + public deleteImageServer_resultTupleScheme getScheme() { + return new deleteImageServer_resultTupleScheme(); + } + } + + private static class deleteImageServer_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, deleteImageServer_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + oprot.writeBool(struct.success); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, deleteImageServer_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } + } + } + + } + + public static class connectedToLecture_args 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("connectedToLecture_args"); + + 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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new connectedToLecture_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new connectedToLecture_argsTupleSchemeFactory()); + } + + public String id; // required + public String version; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + ID((short)-1, "id"), + VERSION((short)-2, "version"); + + 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; + 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))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(connectedToLecture_args.class, metaDataMap); + } + + public connectedToLecture_args() { + } + + public connectedToLecture_args( + String id, + String version) + { + this(); + this.id = id; + this.version = version; + } + + /** + * Performs a deep copy on other. + */ + public connectedToLecture_args(connectedToLecture_args other) { + if (other.isSetId()) { + this.id = other.id; + } + if (other.isSetVersion()) { + this.version = other.version; + } + } + + public connectedToLecture_args deepCopy() { + return new connectedToLecture_args(this); + } + + @Override + public void clear() { + this.id = null; + this.version = null; + } + + public String getId() { + return this.id; + } + + public connectedToLecture_args setId(String id) { + this.id = id; + return this; + } + + public void unsetId() { + this.id = null; + } + + /** Returns true if field id is set (has been assigned a value) and false otherwise */ + public boolean isSetId() { + return this.id != null; + } + + public void setIdIsSet(boolean value) { + if (!value) { + this.id = null; + } + } + + public String getVersion() { + return this.version; + } + + public connectedToLecture_args setVersion(String version) { + this.version = version; + return this; + } + + public void unsetVersion() { + this.version = null; + } + + /** Returns true if field version is set (has been assigned a value) and false otherwise */ + public boolean isSetVersion() { + return this.version != null; + } + + public void setVersionIsSet(boolean value) { + if (!value) { + this.version = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case ID: + if (value == null) { + unsetId(); + } else { + setId((String)value); + } + break; + + case VERSION: + if (value == null) { + unsetVersion(); + } else { + setVersion((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case ID: + return getId(); + + case VERSION: + return getVersion(); + + } + 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(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof connectedToLecture_args) + return this.equals((connectedToLecture_args)that); + return false; + } + + public boolean equals(connectedToLecture_args 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; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(connectedToLecture_args 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; + } + } + 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("connectedToLecture_args("); + 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; + 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 connectedToLecture_argsStandardSchemeFactory implements SchemeFactory { + public connectedToLecture_argsStandardScheme getScheme() { + return new connectedToLecture_argsStandardScheme(); + } + } + + private static class connectedToLecture_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, connectedToLecture_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case -1: // 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; + 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, connectedToLecture_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.version != null) { + oprot.writeFieldBegin(VERSION_FIELD_DESC); + oprot.writeString(struct.version); + oprot.writeFieldEnd(); + } + if (struct.id != null) { + oprot.writeFieldBegin(ID_FIELD_DESC); + oprot.writeString(struct.id); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class connectedToLecture_argsTupleSchemeFactory implements SchemeFactory { + public connectedToLecture_argsTupleScheme getScheme() { + return new connectedToLecture_argsTupleScheme(); + } + } + + private static class connectedToLecture_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, connectedToLecture_args 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); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetId()) { + oprot.writeString(struct.id); + } + if (struct.isSetVersion()) { + oprot.writeString(struct.version); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, connectedToLecture_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.id = iprot.readString(); + struct.setIdIsSet(true); + } + if (incoming.get(1)) { + struct.version = iprot.readString(); + struct.setVersionIsSet(true); + } + } + } + + } + + public static class connectedToLecture_result 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("connectedToLecture_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new connectedToLecture_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new connectedToLecture_resultTupleSchemeFactory()); + } + + public boolean success; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"); + + private static final Map 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 0: // SUCCESS + return SUCCESS; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(connectedToLecture_result.class, metaDataMap); + } + + public connectedToLecture_result() { + } + + public connectedToLecture_result( + boolean success) + { + this(); + this.success = success; + setSuccessIsSet(true); + } + + /** + * Performs a deep copy on other. + */ + public connectedToLecture_result(connectedToLecture_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; + } + + public connectedToLecture_result deepCopy() { + return new connectedToLecture_result(this); + } + + @Override + public void clear() { + setSuccessIsSet(false); + this.success = false; + } + + public boolean isSuccess() { + return this.success; + } + + public connectedToLecture_result setSuccess(boolean success) { + this.success = success; + setSuccessIsSet(true); + return this; + } + + public void unsetSuccess() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + public void setSuccessIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Boolean)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return Boolean.valueOf(isSuccess()); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof connectedToLecture_result) + return this.equals((connectedToLecture_result)that); + return false; + } + + public boolean equals(connectedToLecture_result that) { + if (that == null) + return false; + + boolean this_present_success = true; + boolean that_present_success = true; + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (this.success != that.success) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(connectedToLecture_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("connectedToLecture_result("); + boolean first = true; + + sb.append("success:"); + sb.append(this.success); + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class connectedToLecture_resultStandardSchemeFactory implements SchemeFactory { + public connectedToLecture_resultStandardScheme getScheme() { + return new connectedToLecture_resultStandardScheme(); + } + } + + private static class connectedToLecture_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, connectedToLecture_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, connectedToLecture_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeBool(struct.success); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class connectedToLecture_resultTupleSchemeFactory implements SchemeFactory { + public connectedToLecture_resultTupleScheme getScheme() { + return new connectedToLecture_resultTupleScheme(); + } + } + + private static class connectedToLecture_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, connectedToLecture_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + oprot.writeBool(struct.success); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, connectedToLecture_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } + } + } + + } + + public static class deleteLecture_args 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("deleteLecture_args"); + + 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 HS_FIELD_DESC = new org.apache.thrift.protocol.TField("hs", org.apache.thrift.protocol.TType.STRING, (short)-2); + private static final org.apache.thrift.protocol.TField USER_FIELD_DESC = new org.apache.thrift.protocol.TField("user", org.apache.thrift.protocol.TType.STRING, (short)-3); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new deleteLecture_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteLecture_argsTupleSchemeFactory()); + } + + public String id; // required + public String hs; // required + public String user; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + ID((short)-1, "id"), + HS((short)-2, "hs"), + USER((short)-3, "user"); + + 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: // HS + return HS; + case -3: // USER + return USER; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.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.HS, new org.apache.thrift.meta_data.FieldMetaData("hs", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.USER, new org.apache.thrift.meta_data.FieldMetaData("user", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteLecture_args.class, metaDataMap); + } + + public deleteLecture_args() { + } + + public deleteLecture_args( + String id, + String hs, + String user) + { + this(); + this.id = id; + this.hs = hs; + this.user = user; + } + + /** + * Performs a deep copy on other. + */ + public deleteLecture_args(deleteLecture_args other) { + if (other.isSetId()) { + this.id = other.id; + } + if (other.isSetHs()) { + this.hs = other.hs; + } + if (other.isSetUser()) { + this.user = other.user; + } + } + + public deleteLecture_args deepCopy() { + return new deleteLecture_args(this); + } + + @Override + public void clear() { + this.id = null; + this.hs = null; + this.user = null; + } + + public String getId() { + return this.id; + } + + public deleteLecture_args setId(String id) { + this.id = id; + return this; + } + + public void unsetId() { + this.id = null; + } + + /** Returns true if field id is set (has been assigned a value) and false otherwise */ + public boolean isSetId() { + return this.id != null; + } + + public void setIdIsSet(boolean value) { + if (!value) { + this.id = null; + } + } + + public String getHs() { + return this.hs; + } + + public deleteLecture_args setHs(String hs) { + this.hs = hs; + return this; + } + + public void unsetHs() { + this.hs = null; + } + + /** Returns true if field hs is set (has been assigned a value) and false otherwise */ + public boolean isSetHs() { + return this.hs != null; + } + + public void setHsIsSet(boolean value) { + if (!value) { + this.hs = null; + } + } + + public String getUser() { + return this.user; + } + + public deleteLecture_args setUser(String user) { + this.user = user; + return this; + } + + public void unsetUser() { + this.user = null; + } + + /** Returns true if field user is set (has been assigned a value) and false otherwise */ + public boolean isSetUser() { + return this.user != null; + } + + public void setUserIsSet(boolean value) { + if (!value) { + this.user = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case ID: + if (value == null) { + unsetId(); + } else { + setId((String)value); + } + break; + + case HS: + if (value == null) { + unsetHs(); + } else { + setHs((String)value); + } + break; + + case USER: + if (value == null) { + unsetUser(); + } else { + setUser((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case ID: + return getId(); + + case HS: + return getHs(); + + case USER: + return getUser(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case ID: + return isSetId(); + case HS: + return isSetHs(); + case USER: + return isSetUser(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof deleteLecture_args) + return this.equals((deleteLecture_args)that); + return false; + } + + public boolean equals(deleteLecture_args 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_hs = true && this.isSetHs(); + boolean that_present_hs = true && that.isSetHs(); + if (this_present_hs || that_present_hs) { + if (!(this_present_hs && that_present_hs)) + return false; + if (!this.hs.equals(that.hs)) + return false; + } + + boolean this_present_user = true && this.isSetUser(); + boolean that_present_user = true && that.isSetUser(); + if (this_present_user || that_present_user) { + if (!(this_present_user && that_present_user)) + return false; + if (!this.user.equals(that.user)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(deleteLecture_args 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(isSetHs()).compareTo(other.isSetHs()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetHs()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hs, other.hs); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUser()).compareTo(other.isSetUser()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUser()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, other.user); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("deleteLecture_args("); + 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("hs:"); + if (this.hs == null) { + sb.append("null"); + } else { + sb.append(this.hs); + } + first = false; + if (!first) sb.append(", "); + sb.append("user:"); + if (this.user == null) { + sb.append("null"); + } else { + sb.append(this.user); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class deleteLecture_argsStandardSchemeFactory implements SchemeFactory { + public deleteLecture_argsStandardScheme getScheme() { + return new deleteLecture_argsStandardScheme(); + } + } + + private static class deleteLecture_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteLecture_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case -1: // 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: // HS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.hs = iprot.readString(); + struct.setHsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -3: // USER + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.user = iprot.readString(); + struct.setUserIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteLecture_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.user != null) { + oprot.writeFieldBegin(USER_FIELD_DESC); + oprot.writeString(struct.user); + oprot.writeFieldEnd(); + } + if (struct.hs != null) { + oprot.writeFieldBegin(HS_FIELD_DESC); + oprot.writeString(struct.hs); + oprot.writeFieldEnd(); + } + if (struct.id != null) { + oprot.writeFieldBegin(ID_FIELD_DESC); + oprot.writeString(struct.id); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class deleteLecture_argsTupleSchemeFactory implements SchemeFactory { + public deleteLecture_argsTupleScheme getScheme() { + return new deleteLecture_argsTupleScheme(); + } + } + + private static class deleteLecture_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, deleteLecture_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetId()) { + optionals.set(0); + } + if (struct.isSetHs()) { + optionals.set(1); + } + if (struct.isSetUser()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetId()) { + oprot.writeString(struct.id); + } + if (struct.isSetHs()) { + oprot.writeString(struct.hs); + } + if (struct.isSetUser()) { + oprot.writeString(struct.user); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, deleteLecture_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.id = iprot.readString(); + struct.setIdIsSet(true); + } + if (incoming.get(1)) { + struct.hs = iprot.readString(); + struct.setHsIsSet(true); + } + if (incoming.get(2)) { + struct.user = iprot.readString(); + struct.setUserIsSet(true); + } + } + } + + } + + public static class deleteLecture_result 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("deleteLecture_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new deleteLecture_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteLecture_resultTupleSchemeFactory()); + } + + public boolean success; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"); + + private static final Map 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 0: // SUCCESS + return SUCCESS; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteLecture_result.class, metaDataMap); + } + + public deleteLecture_result() { + } + + public deleteLecture_result( + boolean success) + { + this(); + this.success = success; + setSuccessIsSet(true); + } + + /** + * Performs a deep copy on other. + */ + public deleteLecture_result(deleteLecture_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; + } + + public deleteLecture_result deepCopy() { + return new deleteLecture_result(this); + } + + @Override + public void clear() { + setSuccessIsSet(false); + this.success = false; + } + + public boolean isSuccess() { + return this.success; + } + + public deleteLecture_result setSuccess(boolean success) { + this.success = success; + setSuccessIsSet(true); + return this; + } + + public void unsetSuccess() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + public void setSuccessIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Boolean)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return Boolean.valueOf(isSuccess()); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof deleteLecture_result) + return this.equals((deleteLecture_result)that); + return false; + } + + public boolean equals(deleteLecture_result that) { + if (that == null) + return false; + + boolean this_present_success = true; + boolean that_present_success = true; + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (this.success != that.success) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(deleteLecture_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("deleteLecture_result("); + boolean first = true; + + sb.append("success:"); + sb.append(this.success); + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class deleteLecture_resultStandardSchemeFactory implements SchemeFactory { + public deleteLecture_resultStandardScheme getScheme() { + return new deleteLecture_resultStandardScheme(); + } + } + + private static class deleteLecture_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteLecture_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 -1: // NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.name = iprot.readString(); - struct.setNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case -2: // NEW_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.newName = iprot.readString(); - struct.setNewNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case -3: // SHORTDESC - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.shortdesc = iprot.readString(); - struct.setShortdescIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case -4: // DESC - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.desc = iprot.readString(); - struct.setDescIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case -5: // START_DATE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.startDate = iprot.readString(); - struct.setStartDateIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case -6: // END_DATE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.endDate = iprot.readString(); - struct.setEndDateIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case -7: // IS_ACTIVE + case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.isActive = iprot.readBool(); - struct.setIsActiveIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case -8: // IMAGENAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imagename = iprot.readString(); - struct.setImagenameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case -9: // FIRSTNAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.firstname = iprot.readString(); - struct.setFirstnameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case -10: // LASTNAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.lastname = iprot.readString(); - struct.setLastnameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case -11: // UNIVERSITY - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.university = iprot.readString(); - struct.setUniversityIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case -12: // MAIL - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.Mail = iprot.readString(); - struct.setMailIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case -13: // TEL - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.Tel = iprot.readString(); - struct.setTelIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case -14: // FAK - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.Fak = iprot.readString(); - struct.setFakIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case -15: // ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.id = iprot.readString(); - struct.setIdIsSet(true); + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -19026,276 +23336,422 @@ public class Server { } iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // 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, deleteLecture_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeBool(struct.success); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class deleteLecture_resultTupleSchemeFactory implements SchemeFactory { + public deleteLecture_resultTupleScheme getScheme() { + return new deleteLecture_resultTupleScheme(); + } + } + + private static class deleteLecture_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, deleteLecture_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + oprot.writeBool(struct.success); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, deleteLecture_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } + } + } + + } + + public static class checkUser_args 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("checkUser_args"); + + private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)-1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new checkUser_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new checkUser_argsTupleSchemeFactory()); + } + + 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 { + USERNAME((short)-1, "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: // 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.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(checkUser_args.class, metaDataMap); + } + + public checkUser_args() { + } + + public checkUser_args( + String username) + { + this(); + this.username = username; + } + + /** + * Performs a deep copy on other. + */ + public checkUser_args(checkUser_args other) { + if (other.isSetUsername()) { + this.username = other.username; + } + } + + public checkUser_args deepCopy() { + return new checkUser_args(this); + } + + @Override + public void clear() { + this.username = null; + } + + public String getUsername() { + return this.username; + } + + public checkUser_args setUsername(String username) { + this.username = username; + return this; + } + + public void unsetUsername() { + this.username = null; + } + + /** Returns true if field username is set (has been assigned a value) and false otherwise */ + public boolean isSetUsername() { + return this.username != null; + } + + public void setUsernameIsSet(boolean value) { + if (!value) { + this.username = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case USERNAME: + if (value == null) { + unsetUsername(); + } else { + setUsername((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + 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 USERNAME: + return isSetUsername(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof checkUser_args) + return this.equals((checkUser_args)that); + return false; + } + + public boolean equals(checkUser_args that) { + if (that == null) + return false; + + boolean this_present_username = true && this.isSetUsername(); + boolean that_present_username = true && that.isSetUsername(); + if (this_present_username || that_present_username) { + if (!(this_present_username && that_present_username)) + return false; + if (!this.username.equals(that.username)) + return false; } - public void write(org.apache.thrift.protocol.TProtocol oprot, updateLecturedata_args struct) throws org.apache.thrift.TException { - struct.validate(); + return true; + } - oprot.writeStructBegin(STRUCT_DESC); - if (struct.id != null) { - oprot.writeFieldBegin(ID_FIELD_DESC); - oprot.writeString(struct.id); - oprot.writeFieldEnd(); - } - if (struct.Fak != null) { - oprot.writeFieldBegin(FAK_FIELD_DESC); - oprot.writeString(struct.Fak); - oprot.writeFieldEnd(); - } - if (struct.Tel != null) { - oprot.writeFieldBegin(TEL_FIELD_DESC); - oprot.writeString(struct.Tel); - oprot.writeFieldEnd(); - } - if (struct.Mail != null) { - oprot.writeFieldBegin(MAIL_FIELD_DESC); - oprot.writeString(struct.Mail); - oprot.writeFieldEnd(); - } - if (struct.university != null) { - oprot.writeFieldBegin(UNIVERSITY_FIELD_DESC); - oprot.writeString(struct.university); - oprot.writeFieldEnd(); - } - if (struct.lastname != null) { - oprot.writeFieldBegin(LASTNAME_FIELD_DESC); - oprot.writeString(struct.lastname); - oprot.writeFieldEnd(); - } - if (struct.firstname != null) { - oprot.writeFieldBegin(FIRSTNAME_FIELD_DESC); - oprot.writeString(struct.firstname); - oprot.writeFieldEnd(); - } - if (struct.imagename != null) { - oprot.writeFieldBegin(IMAGENAME_FIELD_DESC); - oprot.writeString(struct.imagename); - oprot.writeFieldEnd(); - } - oprot.writeFieldBegin(IS_ACTIVE_FIELD_DESC); - oprot.writeBool(struct.isActive); - oprot.writeFieldEnd(); - if (struct.endDate != null) { - oprot.writeFieldBegin(END_DATE_FIELD_DESC); - oprot.writeString(struct.endDate); - oprot.writeFieldEnd(); - } - if (struct.startDate != null) { - oprot.writeFieldBegin(START_DATE_FIELD_DESC); - oprot.writeString(struct.startDate); - oprot.writeFieldEnd(); - } - if (struct.desc != null) { - oprot.writeFieldBegin(DESC_FIELD_DESC); - oprot.writeString(struct.desc); - oprot.writeFieldEnd(); - } - if (struct.shortdesc != null) { - oprot.writeFieldBegin(SHORTDESC_FIELD_DESC); - oprot.writeString(struct.shortdesc); - oprot.writeFieldEnd(); - } - if (struct.newName != null) { - oprot.writeFieldBegin(NEW_NAME_FIELD_DESC); - oprot.writeString(struct.newName); - oprot.writeFieldEnd(); - } - if (struct.name != null) { - oprot.writeFieldBegin(NAME_FIELD_DESC); - oprot.writeString(struct.name); - oprot.writeFieldEnd(); + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(checkUser_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetUsername()).compareTo(other.isSetUsername()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUsername()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, other.username); + if (lastComparison != 0) { + return lastComparison; } - oprot.writeFieldStop(); - oprot.writeStructEnd(); } + return 0; + } + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); } - private static class updateLecturedata_argsTupleSchemeFactory implements SchemeFactory { - public updateLecturedata_argsTupleScheme getScheme() { - return new updateLecturedata_argsTupleScheme(); + 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("checkUser_args("); + boolean first = true; + + sb.append("username:"); + if (this.username == null) { + sb.append("null"); + } else { + sb.append(this.username); } + first = false; + sb.append(")"); + return sb.toString(); } - private static class updateLecturedata_argsTupleScheme extends TupleScheme { + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, updateLecturedata_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetName()) { - optionals.set(0); - } - if (struct.isSetNewName()) { - optionals.set(1); - } - if (struct.isSetShortdesc()) { - optionals.set(2); - } - if (struct.isSetDesc()) { - optionals.set(3); - } - if (struct.isSetStartDate()) { - optionals.set(4); - } - if (struct.isSetEndDate()) { - optionals.set(5); - } - if (struct.isSetIsActive()) { - optionals.set(6); - } - if (struct.isSetImagename()) { - optionals.set(7); - } - if (struct.isSetFirstname()) { - optionals.set(8); - } - if (struct.isSetLastname()) { - optionals.set(9); - } - if (struct.isSetUniversity()) { - optionals.set(10); - } - if (struct.isSetMail()) { - optionals.set(11); - } - if (struct.isSetTel()) { - optionals.set(12); - } - if (struct.isSetFak()) { - optionals.set(13); - } - if (struct.isSetId()) { - optionals.set(14); - } - oprot.writeBitSet(optionals, 15); - if (struct.isSetName()) { - oprot.writeString(struct.name); - } - if (struct.isSetNewName()) { - oprot.writeString(struct.newName); - } - if (struct.isSetShortdesc()) { - oprot.writeString(struct.shortdesc); - } - if (struct.isSetDesc()) { - oprot.writeString(struct.desc); - } - if (struct.isSetStartDate()) { - oprot.writeString(struct.startDate); - } - if (struct.isSetEndDate()) { - oprot.writeString(struct.endDate); - } - if (struct.isSetIsActive()) { - oprot.writeBool(struct.isActive); - } - if (struct.isSetImagename()) { - oprot.writeString(struct.imagename); - } - if (struct.isSetFirstname()) { - oprot.writeString(struct.firstname); - } - if (struct.isSetLastname()) { - oprot.writeString(struct.lastname); - } - if (struct.isSetUniversity()) { - oprot.writeString(struct.university); - } - if (struct.isSetMail()) { - oprot.writeString(struct.Mail); - } - if (struct.isSetTel()) { - oprot.writeString(struct.Tel); + 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 checkUser_argsStandardSchemeFactory implements SchemeFactory { + public checkUser_argsStandardScheme getScheme() { + return new checkUser_argsStandardScheme(); + } + } + + private static class checkUser_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, checkUser_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case -1: // USERNAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.username = iprot.readString(); + struct.setUsernameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - if (struct.isSetFak()) { - oprot.writeString(struct.Fak); + 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, checkUser_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.username != null) { + oprot.writeFieldBegin(USERNAME_FIELD_DESC); + oprot.writeString(struct.username); + oprot.writeFieldEnd(); } - if (struct.isSetId()) { - oprot.writeString(struct.id); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class checkUser_argsTupleSchemeFactory implements SchemeFactory { + public checkUser_argsTupleScheme getScheme() { + return new checkUser_argsTupleScheme(); + } + } + + private static class checkUser_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, checkUser_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetUsername()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetUsername()) { + oprot.writeString(struct.username); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, updateLecturedata_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, checkUser_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(15); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.name = iprot.readString(); - struct.setNameIsSet(true); - } - if (incoming.get(1)) { - struct.newName = iprot.readString(); - struct.setNewNameIsSet(true); - } - if (incoming.get(2)) { - struct.shortdesc = iprot.readString(); - struct.setShortdescIsSet(true); - } - if (incoming.get(3)) { - struct.desc = iprot.readString(); - struct.setDescIsSet(true); - } - if (incoming.get(4)) { - struct.startDate = iprot.readString(); - struct.setStartDateIsSet(true); - } - if (incoming.get(5)) { - struct.endDate = iprot.readString(); - struct.setEndDateIsSet(true); - } - if (incoming.get(6)) { - struct.isActive = iprot.readBool(); - struct.setIsActiveIsSet(true); - } - if (incoming.get(7)) { - struct.imagename = iprot.readString(); - struct.setImagenameIsSet(true); - } - if (incoming.get(8)) { - struct.firstname = iprot.readString(); - struct.setFirstnameIsSet(true); - } - if (incoming.get(9)) { - struct.lastname = iprot.readString(); - struct.setLastnameIsSet(true); - } - if (incoming.get(10)) { - struct.university = iprot.readString(); - struct.setUniversityIsSet(true); - } - if (incoming.get(11)) { - struct.Mail = iprot.readString(); - struct.setMailIsSet(true); - } - if (incoming.get(12)) { - struct.Tel = iprot.readString(); - struct.setTelIsSet(true); - } - if (incoming.get(13)) { - struct.Fak = iprot.readString(); - struct.setFakIsSet(true); - } - if (incoming.get(14)) { - struct.id = iprot.readString(); - struct.setIdIsSet(true); + struct.username = iprot.readString(); + struct.setUsernameIsSet(true); } } } } - public static class updateLecturedata_result 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("updateLecturedata_result"); + public static class checkUser_result 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("checkUser_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new updateLecturedata_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new updateLecturedata_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new checkUser_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new checkUser_resultTupleSchemeFactory()); } public boolean success; // required @@ -19367,13 +23823,13 @@ public class Server { tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateLecturedata_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkUser_result.class, metaDataMap); } - public updateLecturedata_result() { + public checkUser_result() { } - public updateLecturedata_result( + public checkUser_result( boolean success) { this(); @@ -19384,13 +23840,13 @@ public class Server { /** * Performs a deep copy on other. */ - public updateLecturedata_result(updateLecturedata_result other) { + public checkUser_result(checkUser_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; } - public updateLecturedata_result deepCopy() { - return new updateLecturedata_result(this); + public checkUser_result deepCopy() { + return new checkUser_result(this); } @Override @@ -19403,7 +23859,7 @@ public class Server { return this.success; } - public updateLecturedata_result setSuccess(boolean success) { + public checkUser_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; @@ -19461,12 +23917,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof updateLecturedata_result) - return this.equals((updateLecturedata_result)that); + if (that instanceof checkUser_result) + return this.equals((checkUser_result)that); return false; } - public boolean equals(updateLecturedata_result that) { + public boolean equals(checkUser_result that) { if (that == null) return false; @@ -19488,7 +23944,7 @@ public class Server { } @Override - public int compareTo(updateLecturedata_result other) { + public int compareTo(checkUser_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -19522,7 +23978,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("updateLecturedata_result("); + StringBuilder sb = new StringBuilder("checkUser_result("); boolean first = true; sb.append("success:"); @@ -19555,15 +24011,15 @@ public class Server { } } - private static class updateLecturedata_resultStandardSchemeFactory implements SchemeFactory { - public updateLecturedata_resultStandardScheme getScheme() { - return new updateLecturedata_resultStandardScheme(); + private static class checkUser_resultStandardSchemeFactory implements SchemeFactory { + public checkUser_resultStandardScheme getScheme() { + return new checkUser_resultStandardScheme(); } } - private static class updateLecturedata_resultStandardScheme extends StandardScheme { + private static class checkUser_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, updateLecturedata_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, checkUser_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -19592,7 +24048,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, updateLecturedata_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, checkUser_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -19607,16 +24063,16 @@ public class Server { } - private static class updateLecturedata_resultTupleSchemeFactory implements SchemeFactory { - public updateLecturedata_resultTupleScheme getScheme() { - return new updateLecturedata_resultTupleScheme(); + private static class checkUser_resultTupleSchemeFactory implements SchemeFactory { + public checkUser_resultTupleScheme getScheme() { + return new checkUser_resultTupleScheme(); } } - private static class updateLecturedata_resultTupleScheme extends TupleScheme { + private static class checkUser_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, updateLecturedata_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, checkUser_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -19629,7 +24085,7 @@ public class Server { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, updateLecturedata_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, checkUser_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -19641,25 +24097,34 @@ public class Server { } - public static class deleteImageServer_args 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("deleteImageServer_args"); + public static class createUser_args 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("createUser_args"); - 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 LOGIN_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("loginName", org.apache.thrift.protocol.TType.STRING, (short)-1); + private static final org.apache.thrift.protocol.TField LAST_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lastName", org.apache.thrift.protocol.TType.STRING, (short)-2); + private static final org.apache.thrift.protocol.TField FIRST_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("firstName", org.apache.thrift.protocol.TType.STRING, (short)-3); + private static final org.apache.thrift.protocol.TField MAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("mail", org.apache.thrift.protocol.TType.STRING, (short)-4); + private static final org.apache.thrift.protocol.TField UNIVERSITY_FIELD_DESC = new org.apache.thrift.protocol.TField("university", org.apache.thrift.protocol.TType.STRING, (short)-5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new deleteImageServer_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteImageServer_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new createUser_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new createUser_argsTupleSchemeFactory()); } - public String id; // required - public String version; // required + public String loginName; // required + public String lastName; // required + public String firstName; // required + public String mail; // required + public String university; // 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"); + LOGIN_NAME((short)-1, "loginName"), + LAST_NAME((short)-2, "lastName"), + FIRST_NAME((short)-3, "firstName"), + MAIL((short)-4, "mail"), + UNIVERSITY((short)-5, "university"); private static final Map byName = new HashMap(); @@ -19674,10 +24139,16 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case -1: // ID - return ID; - case -2: // VERSION - return VERSION; + case -1: // LOGIN_NAME + return LOGIN_NAME; + case -2: // LAST_NAME + return LAST_NAME; + case -3: // FIRST_NAME + return FIRST_NAME; + case -4: // MAIL + return MAIL; + case -5: // UNIVERSITY + return UNIVERSITY; default: return null; } @@ -19721,111 +24192,231 @@ public class Server { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.LOGIN_NAME, new org.apache.thrift.meta_data.FieldMetaData("loginName", 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, + tmpMap.put(_Fields.LAST_NAME, new org.apache.thrift.meta_data.FieldMetaData("lastName", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.FIRST_NAME, new org.apache.thrift.meta_data.FieldMetaData("firstName", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("mail", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.UNIVERSITY, new org.apache.thrift.meta_data.FieldMetaData("university", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageServer_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createUser_args.class, metaDataMap); } - public deleteImageServer_args() { + public createUser_args() { } - public deleteImageServer_args( - String id, - String version) + public createUser_args( + String loginName, + String lastName, + String firstName, + String mail, + String university) { this(); - this.id = id; - this.version = version; + this.loginName = loginName; + this.lastName = lastName; + this.firstName = firstName; + this.mail = mail; + this.university = university; } /** * Performs a deep copy on other. */ - public deleteImageServer_args(deleteImageServer_args other) { - if (other.isSetId()) { - this.id = other.id; + public createUser_args(createUser_args other) { + if (other.isSetLoginName()) { + this.loginName = other.loginName; } - if (other.isSetVersion()) { - this.version = other.version; + if (other.isSetLastName()) { + this.lastName = other.lastName; + } + if (other.isSetFirstName()) { + this.firstName = other.firstName; + } + if (other.isSetMail()) { + this.mail = other.mail; + } + if (other.isSetUniversity()) { + this.university = other.university; } } - public deleteImageServer_args deepCopy() { - return new deleteImageServer_args(this); + public createUser_args deepCopy() { + return new createUser_args(this); } @Override public void clear() { - this.id = null; - this.version = null; + this.loginName = null; + this.lastName = null; + this.firstName = null; + this.mail = null; + this.university = null; } - public String getId() { - return this.id; + public String getLoginName() { + return this.loginName; } - public deleteImageServer_args setId(String id) { - this.id = id; + public createUser_args setLoginName(String loginName) { + this.loginName = loginName; return this; } - public void unsetId() { - this.id = null; + public void unsetLoginName() { + this.loginName = null; } - /** Returns true if field id is set (has been assigned a value) and false otherwise */ - public boolean isSetId() { - return this.id != null; + /** Returns true if field loginName is set (has been assigned a value) and false otherwise */ + public boolean isSetLoginName() { + return this.loginName != null; } - public void setIdIsSet(boolean value) { + public void setLoginNameIsSet(boolean value) { if (!value) { - this.id = null; + this.loginName = null; } } - public String getVersion() { - return this.version; + public String getLastName() { + return this.lastName; } - public deleteImageServer_args setVersion(String version) { - this.version = version; + public createUser_args setLastName(String lastName) { + this.lastName = lastName; return this; } - public void unsetVersion() { - this.version = null; + public void unsetLastName() { + this.lastName = null; } - /** Returns true if field version is set (has been assigned a value) and false otherwise */ - public boolean isSetVersion() { - return this.version != null; + /** Returns true if field lastName is set (has been assigned a value) and false otherwise */ + public boolean isSetLastName() { + return this.lastName != null; } - public void setVersionIsSet(boolean value) { + public void setLastNameIsSet(boolean value) { if (!value) { - this.version = null; + this.lastName = null; + } + } + + public String getFirstName() { + return this.firstName; + } + + public createUser_args setFirstName(String firstName) { + this.firstName = firstName; + return this; + } + + public void unsetFirstName() { + this.firstName = null; + } + + /** Returns true if field firstName is set (has been assigned a value) and false otherwise */ + public boolean isSetFirstName() { + return this.firstName != null; + } + + public void setFirstNameIsSet(boolean value) { + if (!value) { + this.firstName = null; + } + } + + public String getMail() { + return this.mail; + } + + public createUser_args setMail(String mail) { + this.mail = mail; + return this; + } + + public void unsetMail() { + this.mail = null; + } + + /** Returns true if field mail is set (has been assigned a value) and false otherwise */ + public boolean isSetMail() { + return this.mail != null; + } + + public void setMailIsSet(boolean value) { + if (!value) { + this.mail = null; + } + } + + public String getUniversity() { + return this.university; + } + + public createUser_args setUniversity(String university) { + this.university = university; + return this; + } + + public void unsetUniversity() { + this.university = null; + } + + /** Returns true if field university is set (has been assigned a value) and false otherwise */ + public boolean isSetUniversity() { + return this.university != null; + } + + public void setUniversityIsSet(boolean value) { + if (!value) { + this.university = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case ID: + case LOGIN_NAME: + if (value == null) { + unsetLoginName(); + } else { + setLoginName((String)value); + } + break; + + case LAST_NAME: + if (value == null) { + unsetLastName(); + } else { + setLastName((String)value); + } + break; + + case FIRST_NAME: + if (value == null) { + unsetFirstName(); + } else { + setFirstName((String)value); + } + break; + + case MAIL: if (value == null) { - unsetId(); + unsetMail(); } else { - setId((String)value); + setMail((String)value); } break; - case VERSION: + case UNIVERSITY: if (value == null) { - unsetVersion(); + unsetUniversity(); } else { - setVersion((String)value); + setUniversity((String)value); } break; @@ -19834,11 +24425,20 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case ID: - return getId(); + case LOGIN_NAME: + return getLoginName(); - case VERSION: - return getVersion(); + case LAST_NAME: + return getLastName(); + + case FIRST_NAME: + return getFirstName(); + + case MAIL: + return getMail(); + + case UNIVERSITY: + return getUniversity(); } throw new IllegalStateException(); @@ -19851,10 +24451,16 @@ public class Server { } switch (field) { - case ID: - return isSetId(); - case VERSION: - return isSetVersion(); + case LOGIN_NAME: + return isSetLoginName(); + case LAST_NAME: + return isSetLastName(); + case FIRST_NAME: + return isSetFirstName(); + case MAIL: + return isSetMail(); + case UNIVERSITY: + return isSetUniversity(); } throw new IllegalStateException(); } @@ -19863,30 +24469,57 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof deleteImageServer_args) - return this.equals((deleteImageServer_args)that); + if (that instanceof createUser_args) + return this.equals((createUser_args)that); return false; } - public boolean equals(deleteImageServer_args that) { + public boolean equals(createUser_args 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)) + boolean this_present_loginName = true && this.isSetLoginName(); + boolean that_present_loginName = true && that.isSetLoginName(); + if (this_present_loginName || that_present_loginName) { + if (!(this_present_loginName && that_present_loginName)) return false; - if (!this.id.equals(that.id)) + if (!this.loginName.equals(that.loginName)) 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)) + boolean this_present_lastName = true && this.isSetLastName(); + boolean that_present_lastName = true && that.isSetLastName(); + if (this_present_lastName || that_present_lastName) { + if (!(this_present_lastName && that_present_lastName)) return false; - if (!this.version.equals(that.version)) + if (!this.lastName.equals(that.lastName)) + return false; + } + + boolean this_present_firstName = true && this.isSetFirstName(); + boolean that_present_firstName = true && that.isSetFirstName(); + if (this_present_firstName || that_present_firstName) { + if (!(this_present_firstName && that_present_firstName)) + return false; + if (!this.firstName.equals(that.firstName)) + return false; + } + + boolean this_present_mail = true && this.isSetMail(); + boolean that_present_mail = true && that.isSetMail(); + if (this_present_mail || that_present_mail) { + if (!(this_present_mail && that_present_mail)) + return false; + if (!this.mail.equals(that.mail)) + return false; + } + + boolean this_present_university = true && this.isSetUniversity(); + boolean that_present_university = true && that.isSetUniversity(); + if (this_present_university || that_present_university) { + if (!(this_present_university && that_present_university)) + return false; + if (!this.university.equals(that.university)) return false; } @@ -19899,29 +24532,59 @@ public class Server { } @Override - public int compareTo(deleteImageServer_args other) { + public int compareTo(createUser_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId()); + lastComparison = Boolean.valueOf(isSetLoginName()).compareTo(other.isSetLoginName()); if (lastComparison != 0) { return lastComparison; } - if (isSetId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id); + if (isSetLoginName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.loginName, other.loginName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetVersion()).compareTo(other.isSetVersion()); + lastComparison = Boolean.valueOf(isSetLastName()).compareTo(other.isSetLastName()); if (lastComparison != 0) { return lastComparison; } - if (isSetVersion()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.version, other.version); + if (isSetLastName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastName, other.lastName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetFirstName()).compareTo(other.isSetFirstName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFirstName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.firstName, other.firstName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetMail()).compareTo(other.isSetMail()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetMail()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mail, other.mail); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUniversity()).compareTo(other.isSetUniversity()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUniversity()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.university, other.university); if (lastComparison != 0) { return lastComparison; } @@ -19943,22 +24606,46 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteImageServer_args("); + StringBuilder sb = new StringBuilder("createUser_args("); boolean first = true; - sb.append("id:"); - if (this.id == null) { + sb.append("loginName:"); + if (this.loginName == null) { sb.append("null"); } else { - sb.append(this.id); + sb.append(this.loginName); } first = false; if (!first) sb.append(", "); - sb.append("version:"); - if (this.version == null) { + sb.append("lastName:"); + if (this.lastName == null) { sb.append("null"); } else { - sb.append(this.version); + sb.append(this.lastName); + } + first = false; + if (!first) sb.append(", "); + sb.append("firstName:"); + if (this.firstName == null) { + sb.append("null"); + } else { + sb.append(this.firstName); + } + first = false; + if (!first) sb.append(", "); + sb.append("mail:"); + if (this.mail == null) { + sb.append("null"); + } else { + sb.append(this.mail); + } + first = false; + if (!first) sb.append(", "); + sb.append("university:"); + if (this.university == null) { + sb.append("null"); + } else { + sb.append(this.university); } first = false; sb.append(")"); @@ -19986,15 +24673,15 @@ public class Server { } } - private static class deleteImageServer_argsStandardSchemeFactory implements SchemeFactory { - public deleteImageServer_argsStandardScheme getScheme() { - return new deleteImageServer_argsStandardScheme(); + private static class createUser_argsStandardSchemeFactory implements SchemeFactory { + public createUser_argsStandardScheme getScheme() { + return new createUser_argsStandardScheme(); } } - private static class deleteImageServer_argsStandardScheme extends StandardScheme { + private static class createUser_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageServer_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, createUser_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -20004,18 +24691,42 @@ public class Server { break; } switch (schemeField.id) { - case -1: // ID + case -1: // LOGIN_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.id = iprot.readString(); - struct.setIdIsSet(true); + struct.loginName = iprot.readString(); + struct.setLoginNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case -2: // VERSION + case -2: // LAST_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.version = iprot.readString(); - struct.setVersionIsSet(true); + struct.lastName = iprot.readString(); + struct.setLastNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -3: // FIRST_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.firstName = iprot.readString(); + struct.setFirstNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -4: // MAIL + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.mail = iprot.readString(); + struct.setMailIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -5: // UNIVERSITY + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.university = iprot.readString(); + struct.setUniversityIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -20031,18 +24742,33 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteImageServer_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, createUser_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.version != null) { - oprot.writeFieldBegin(VERSION_FIELD_DESC); - oprot.writeString(struct.version); + if (struct.university != null) { + oprot.writeFieldBegin(UNIVERSITY_FIELD_DESC); + oprot.writeString(struct.university); oprot.writeFieldEnd(); } - if (struct.id != null) { - oprot.writeFieldBegin(ID_FIELD_DESC); - oprot.writeString(struct.id); + if (struct.mail != null) { + oprot.writeFieldBegin(MAIL_FIELD_DESC); + oprot.writeString(struct.mail); + oprot.writeFieldEnd(); + } + if (struct.firstName != null) { + oprot.writeFieldBegin(FIRST_NAME_FIELD_DESC); + oprot.writeString(struct.firstName); + oprot.writeFieldEnd(); + } + if (struct.lastName != null) { + oprot.writeFieldBegin(LAST_NAME_FIELD_DESC); + oprot.writeString(struct.lastName); + oprot.writeFieldEnd(); + } + if (struct.loginName != null) { + oprot.writeFieldBegin(LOGIN_NAME_FIELD_DESC); + oprot.writeString(struct.loginName); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -20051,59 +24777,89 @@ public class Server { } - private static class deleteImageServer_argsTupleSchemeFactory implements SchemeFactory { - public deleteImageServer_argsTupleScheme getScheme() { - return new deleteImageServer_argsTupleScheme(); + private static class createUser_argsTupleSchemeFactory implements SchemeFactory { + public createUser_argsTupleScheme getScheme() { + return new createUser_argsTupleScheme(); } } - private static class deleteImageServer_argsTupleScheme extends TupleScheme { + private static class createUser_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteImageServer_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, createUser_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetId()) { + if (struct.isSetLoginName()) { optionals.set(0); } - if (struct.isSetVersion()) { + if (struct.isSetLastName()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); - if (struct.isSetId()) { - oprot.writeString(struct.id); + if (struct.isSetFirstName()) { + optionals.set(2); } - if (struct.isSetVersion()) { - oprot.writeString(struct.version); + if (struct.isSetMail()) { + optionals.set(3); + } + if (struct.isSetUniversity()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); + if (struct.isSetLoginName()) { + oprot.writeString(struct.loginName); + } + if (struct.isSetLastName()) { + oprot.writeString(struct.lastName); + } + if (struct.isSetFirstName()) { + oprot.writeString(struct.firstName); + } + if (struct.isSetMail()) { + oprot.writeString(struct.mail); + } + if (struct.isSetUniversity()) { + oprot.writeString(struct.university); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteImageServer_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, createUser_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { - struct.id = iprot.readString(); - struct.setIdIsSet(true); + struct.loginName = iprot.readString(); + struct.setLoginNameIsSet(true); } if (incoming.get(1)) { - struct.version = iprot.readString(); - struct.setVersionIsSet(true); + struct.lastName = iprot.readString(); + struct.setLastNameIsSet(true); + } + if (incoming.get(2)) { + struct.firstName = iprot.readString(); + struct.setFirstNameIsSet(true); + } + if (incoming.get(3)) { + struct.mail = iprot.readString(); + struct.setMailIsSet(true); + } + if (incoming.get(4)) { + struct.university = iprot.readString(); + struct.setUniversityIsSet(true); } } } } - public static class deleteImageServer_result 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("deleteImageServer_result"); + public static class createUser_result 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("createUser_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new deleteImageServer_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteImageServer_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new createUser_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new createUser_resultTupleSchemeFactory()); } public boolean success; // required @@ -20175,13 +24931,13 @@ public class Server { tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageServer_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createUser_result.class, metaDataMap); } - public deleteImageServer_result() { + public createUser_result() { } - public deleteImageServer_result( + public createUser_result( boolean success) { this(); @@ -20192,13 +24948,13 @@ public class Server { /** * Performs a deep copy on other. */ - public deleteImageServer_result(deleteImageServer_result other) { + public createUser_result(createUser_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; } - public deleteImageServer_result deepCopy() { - return new deleteImageServer_result(this); + public createUser_result deepCopy() { + return new createUser_result(this); } @Override @@ -20211,7 +24967,7 @@ public class Server { return this.success; } - public deleteImageServer_result setSuccess(boolean success) { + public createUser_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; @@ -20269,12 +25025,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof deleteImageServer_result) - return this.equals((deleteImageServer_result)that); + if (that instanceof createUser_result) + return this.equals((createUser_result)that); return false; } - public boolean equals(deleteImageServer_result that) { + public boolean equals(createUser_result that) { if (that == null) return false; @@ -20296,7 +25052,7 @@ public class Server { } @Override - public int compareTo(deleteImageServer_result other) { + public int compareTo(createUser_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -20330,7 +25086,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteImageServer_result("); + StringBuilder sb = new StringBuilder("createUser_result("); boolean first = true; sb.append("success:"); @@ -20363,15 +25119,15 @@ public class Server { } } - private static class deleteImageServer_resultStandardSchemeFactory implements SchemeFactory { - public deleteImageServer_resultStandardScheme getScheme() { - return new deleteImageServer_resultStandardScheme(); + private static class createUser_resultStandardSchemeFactory implements SchemeFactory { + public createUser_resultStandardScheme getScheme() { + return new createUser_resultStandardScheme(); } } - private static class deleteImageServer_resultStandardScheme extends StandardScheme { + private static class createUser_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageServer_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, createUser_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -20400,7 +25156,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteImageServer_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, createUser_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -20415,16 +25171,16 @@ public class Server { } - private static class deleteImageServer_resultTupleSchemeFactory implements SchemeFactory { - public deleteImageServer_resultTupleScheme getScheme() { - return new deleteImageServer_resultTupleScheme(); + private static class createUser_resultTupleSchemeFactory implements SchemeFactory { + public createUser_resultTupleScheme getScheme() { + return new createUser_resultTupleScheme(); } } - private static class deleteImageServer_resultTupleScheme extends TupleScheme { + private static class createUser_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteImageServer_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, createUser_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -20437,7 +25193,7 @@ public class Server { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteImageServer_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, createUser_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -20449,25 +25205,40 @@ public class Server { } - public static class connectedToLecture_args 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("connectedToLecture_args"); + public static class writeImageRights_args 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("writeImageRights_args"); - 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 IMAGENAME_FIELD_DESC = new org.apache.thrift.protocol.TField("imagename", org.apache.thrift.protocol.TType.STRING, (short)-1); + private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)-2); + private static final org.apache.thrift.protocol.TField LAST_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lastName", org.apache.thrift.protocol.TType.STRING, (short)-3); + private static final org.apache.thrift.protocol.TField FIRST_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("firstName", org.apache.thrift.protocol.TType.STRING, (short)-4); + private static final org.apache.thrift.protocol.TField MAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("mail", org.apache.thrift.protocol.TType.STRING, (short)-5); + private static final org.apache.thrift.protocol.TField UNIVERSITY_FIELD_DESC = new org.apache.thrift.protocol.TField("university", org.apache.thrift.protocol.TType.STRING, (short)-6); + private static final org.apache.thrift.protocol.TField ROLE_FIELD_DESC = new org.apache.thrift.protocol.TField("role", org.apache.thrift.protocol.TType.STRING, (short)-7); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new connectedToLecture_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new connectedToLecture_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new writeImageRights_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeImageRights_argsTupleSchemeFactory()); } - public String id; // required - public String version; // required + public String imagename; // required + public String username; // required + public String lastName; // required + public String firstName; // required + public String mail; // required + public String university; // required + public String role; // 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"); + IMAGENAME((short)-1, "imagename"), + USERNAME((short)-2, "username"), + LAST_NAME((short)-3, "lastName"), + FIRST_NAME((short)-4, "firstName"), + MAIL((short)-5, "mail"), + UNIVERSITY((short)-6, "university"), + ROLE((short)-7, "role"); private static final Map byName = new HashMap(); @@ -20480,12 +25251,22 @@ public class Server { /** * 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; + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case -1: // IMAGENAME + return IMAGENAME; + case -2: // USERNAME + return USERNAME; + case -3: // LAST_NAME + return LAST_NAME; + case -4: // FIRST_NAME + return FIRST_NAME; + case -5: // MAIL + return MAIL; + case -6: // UNIVERSITY + return UNIVERSITY; + case -7: // ROLE + return ROLE; default: return null; } @@ -20529,111 +25310,311 @@ public class Server { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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.VERSION, new org.apache.thrift.meta_data.FieldMetaData("version", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.LAST_NAME, new org.apache.thrift.meta_data.FieldMetaData("lastName", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.FIRST_NAME, new org.apache.thrift.meta_data.FieldMetaData("firstName", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("mail", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.UNIVERSITY, new org.apache.thrift.meta_data.FieldMetaData("university", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", 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(connectedToLecture_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeImageRights_args.class, metaDataMap); } - public connectedToLecture_args() { + public writeImageRights_args() { } - public connectedToLecture_args( - String id, - String version) + public writeImageRights_args( + String imagename, + String username, + String lastName, + String firstName, + String mail, + String university, + String role) { this(); - this.id = id; - this.version = version; + this.imagename = imagename; + this.username = username; + this.lastName = lastName; + this.firstName = firstName; + this.mail = mail; + this.university = university; + this.role = role; } /** * Performs a deep copy on other. */ - public connectedToLecture_args(connectedToLecture_args other) { - if (other.isSetId()) { - this.id = other.id; + public writeImageRights_args(writeImageRights_args other) { + if (other.isSetImagename()) { + this.imagename = other.imagename; } - if (other.isSetVersion()) { - this.version = other.version; + if (other.isSetUsername()) { + this.username = other.username; + } + if (other.isSetLastName()) { + this.lastName = other.lastName; + } + if (other.isSetFirstName()) { + this.firstName = other.firstName; + } + if (other.isSetMail()) { + this.mail = other.mail; + } + if (other.isSetUniversity()) { + this.university = other.university; + } + if (other.isSetRole()) { + this.role = other.role; } } - public connectedToLecture_args deepCopy() { - return new connectedToLecture_args(this); + public writeImageRights_args deepCopy() { + return new writeImageRights_args(this); } @Override public void clear() { - this.id = null; - this.version = null; + this.imagename = null; + this.username = null; + this.lastName = null; + this.firstName = null; + this.mail = null; + this.university = null; + this.role = null; } - public String getId() { - return this.id; + public String getImagename() { + return this.imagename; } - public connectedToLecture_args setId(String id) { - this.id = id; + public writeImageRights_args setImagename(String imagename) { + this.imagename = imagename; return this; } - public void unsetId() { - this.id = null; + public void unsetImagename() { + this.imagename = null; } - /** Returns true if field id is set (has been assigned a value) and false otherwise */ - public boolean isSetId() { - return this.id != 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 setIdIsSet(boolean value) { + public void setImagenameIsSet(boolean value) { if (!value) { - this.id = null; + this.imagename = null; } } - public String getVersion() { - return this.version; + public String getUsername() { + return this.username; } - public connectedToLecture_args setVersion(String version) { - this.version = version; + public writeImageRights_args setUsername(String username) { + this.username = username; return this; } - public void unsetVersion() { - this.version = null; + public void unsetUsername() { + this.username = null; } - /** Returns true if field version is set (has been assigned a value) and false otherwise */ - public boolean isSetVersion() { - return this.version != 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 setVersionIsSet(boolean value) { + public void setUsernameIsSet(boolean value) { if (!value) { - this.version = null; + this.username = null; + } + } + + public String getLastName() { + return this.lastName; + } + + public writeImageRights_args setLastName(String lastName) { + this.lastName = lastName; + return this; + } + + public void unsetLastName() { + this.lastName = null; + } + + /** Returns true if field lastName is set (has been assigned a value) and false otherwise */ + public boolean isSetLastName() { + return this.lastName != null; + } + + public void setLastNameIsSet(boolean value) { + if (!value) { + this.lastName = null; + } + } + + public String getFirstName() { + return this.firstName; + } + + public writeImageRights_args setFirstName(String firstName) { + this.firstName = firstName; + return this; + } + + public void unsetFirstName() { + this.firstName = null; + } + + /** Returns true if field firstName is set (has been assigned a value) and false otherwise */ + public boolean isSetFirstName() { + return this.firstName != null; + } + + public void setFirstNameIsSet(boolean value) { + if (!value) { + this.firstName = null; + } + } + + public String getMail() { + return this.mail; + } + + public writeImageRights_args setMail(String mail) { + this.mail = mail; + return this; + } + + public void unsetMail() { + this.mail = null; + } + + /** Returns true if field mail is set (has been assigned a value) and false otherwise */ + public boolean isSetMail() { + return this.mail != null; + } + + public void setMailIsSet(boolean value) { + if (!value) { + this.mail = null; + } + } + + public String getUniversity() { + return this.university; + } + + public writeImageRights_args setUniversity(String university) { + this.university = university; + return this; + } + + public void unsetUniversity() { + this.university = null; + } + + /** Returns true if field university is set (has been assigned a value) and false otherwise */ + public boolean isSetUniversity() { + return this.university != null; + } + + public void setUniversityIsSet(boolean value) { + if (!value) { + this.university = null; + } + } + + public String getRole() { + return this.role; + } + + public writeImageRights_args setRole(String role) { + this.role = role; + return this; + } + + public void unsetRole() { + this.role = null; + } + + /** Returns true if field role is set (has been assigned a value) and false otherwise */ + public boolean isSetRole() { + return this.role != null; + } + + public void setRoleIsSet(boolean value) { + if (!value) { + this.role = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case ID: + case IMAGENAME: if (value == null) { - unsetId(); + unsetImagename(); } else { - setId((String)value); + setImagename((String)value); } break; - case VERSION: + case USERNAME: if (value == null) { - unsetVersion(); + unsetUsername(); } else { - setVersion((String)value); + setUsername((String)value); + } + break; + + case LAST_NAME: + if (value == null) { + unsetLastName(); + } else { + setLastName((String)value); + } + break; + + case FIRST_NAME: + if (value == null) { + unsetFirstName(); + } else { + setFirstName((String)value); + } + break; + + case MAIL: + if (value == null) { + unsetMail(); + } else { + setMail((String)value); + } + break; + + case UNIVERSITY: + if (value == null) { + unsetUniversity(); + } else { + setUniversity((String)value); + } + break; + + case ROLE: + if (value == null) { + unsetRole(); + } else { + setRole((String)value); } break; @@ -20642,11 +25623,26 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case ID: - return getId(); + case IMAGENAME: + return getImagename(); - case VERSION: - return getVersion(); + case USERNAME: + return getUsername(); + + case LAST_NAME: + return getLastName(); + + case FIRST_NAME: + return getFirstName(); + + case MAIL: + return getMail(); + + case UNIVERSITY: + return getUniversity(); + + case ROLE: + return getRole(); } throw new IllegalStateException(); @@ -20659,10 +25655,20 @@ public class Server { } switch (field) { - case ID: - return isSetId(); - case VERSION: - return isSetVersion(); + case IMAGENAME: + return isSetImagename(); + case USERNAME: + return isSetUsername(); + case LAST_NAME: + return isSetLastName(); + case FIRST_NAME: + return isSetFirstName(); + case MAIL: + return isSetMail(); + case UNIVERSITY: + return isSetUniversity(); + case ROLE: + return isSetRole(); } throw new IllegalStateException(); } @@ -20671,30 +25677,75 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof connectedToLecture_args) - return this.equals((connectedToLecture_args)that); + if (that instanceof writeImageRights_args) + return this.equals((writeImageRights_args)that); return false; } - public boolean equals(connectedToLecture_args that) { + public boolean equals(writeImageRights_args 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)) + 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; + } + + boolean this_present_lastName = true && this.isSetLastName(); + boolean that_present_lastName = true && that.isSetLastName(); + if (this_present_lastName || that_present_lastName) { + if (!(this_present_lastName && that_present_lastName)) + return false; + if (!this.lastName.equals(that.lastName)) + return false; + } + + boolean this_present_firstName = true && this.isSetFirstName(); + boolean that_present_firstName = true && that.isSetFirstName(); + if (this_present_firstName || that_present_firstName) { + if (!(this_present_firstName && that_present_firstName)) + return false; + if (!this.firstName.equals(that.firstName)) + return false; + } + + boolean this_present_mail = true && this.isSetMail(); + boolean that_present_mail = true && that.isSetMail(); + if (this_present_mail || that_present_mail) { + if (!(this_present_mail && that_present_mail)) + return false; + if (!this.mail.equals(that.mail)) + return false; + } + + boolean this_present_university = true && this.isSetUniversity(); + boolean that_present_university = true && that.isSetUniversity(); + if (this_present_university || that_present_university) { + if (!(this_present_university && that_present_university)) return false; - if (!this.id.equals(that.id)) + if (!this.university.equals(that.university)) 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)) + boolean this_present_role = true && this.isSetRole(); + boolean that_present_role = true && that.isSetRole(); + if (this_present_role || that_present_role) { + if (!(this_present_role && that_present_role)) return false; - if (!this.version.equals(that.version)) + if (!this.role.equals(that.role)) return false; } @@ -20707,29 +25758,79 @@ public class Server { } @Override - public int compareTo(connectedToLecture_args other) { + public int compareTo(writeImageRights_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId()); + lastComparison = Boolean.valueOf(isSetImagename()).compareTo(other.isSetImagename()); if (lastComparison != 0) { return lastComparison; } - if (isSetId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id); + if (isSetImagename()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imagename, other.imagename); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetVersion()).compareTo(other.isSetVersion()); + lastComparison = Boolean.valueOf(isSetUsername()).compareTo(other.isSetUsername()); if (lastComparison != 0) { return lastComparison; } - if (isSetVersion()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.version, other.version); + if (isSetUsername()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, other.username); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetLastName()).compareTo(other.isSetLastName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetLastName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastName, other.lastName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetFirstName()).compareTo(other.isSetFirstName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFirstName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.firstName, other.firstName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetMail()).compareTo(other.isSetMail()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetMail()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mail, other.mail); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUniversity()).compareTo(other.isSetUniversity()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUniversity()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.university, other.university); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetRole()).compareTo(other.isSetRole()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetRole()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, other.role); if (lastComparison != 0) { return lastComparison; } @@ -20751,22 +25852,62 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("connectedToLecture_args("); + StringBuilder sb = new StringBuilder("writeImageRights_args("); boolean first = true; - sb.append("id:"); - if (this.id == null) { + sb.append("imagename:"); + if (this.imagename == null) { sb.append("null"); } else { - sb.append(this.id); + sb.append(this.imagename); } first = false; if (!first) sb.append(", "); - sb.append("version:"); - if (this.version == null) { + sb.append("username:"); + if (this.username == null) { sb.append("null"); } else { - sb.append(this.version); + sb.append(this.username); + } + first = false; + if (!first) sb.append(", "); + sb.append("lastName:"); + if (this.lastName == null) { + sb.append("null"); + } else { + sb.append(this.lastName); + } + first = false; + if (!first) sb.append(", "); + sb.append("firstName:"); + if (this.firstName == null) { + sb.append("null"); + } else { + sb.append(this.firstName); + } + first = false; + if (!first) sb.append(", "); + sb.append("mail:"); + if (this.mail == null) { + sb.append("null"); + } else { + sb.append(this.mail); + } + first = false; + if (!first) sb.append(", "); + sb.append("university:"); + if (this.university == null) { + sb.append("null"); + } else { + sb.append(this.university); + } + first = false; + if (!first) sb.append(", "); + sb.append("role:"); + if (this.role == null) { + sb.append("null"); + } else { + sb.append(this.role); } first = false; sb.append(")"); @@ -20794,15 +25935,15 @@ public class Server { } } - private static class connectedToLecture_argsStandardSchemeFactory implements SchemeFactory { - public connectedToLecture_argsStandardScheme getScheme() { - return new connectedToLecture_argsStandardScheme(); + private static class writeImageRights_argsStandardSchemeFactory implements SchemeFactory { + public writeImageRights_argsStandardScheme getScheme() { + return new writeImageRights_argsStandardScheme(); } } - private static class connectedToLecture_argsStandardScheme extends StandardScheme { + private static class writeImageRights_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, connectedToLecture_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, writeImageRights_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -20812,18 +25953,58 @@ public class Server { break; } switch (schemeField.id) { - case -1: // ID + case -1: // IMAGENAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.id = iprot.readString(); - struct.setIdIsSet(true); + struct.imagename = iprot.readString(); + struct.setImagenameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case -2: // VERSION + case -2: // USERNAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.version = iprot.readString(); - struct.setVersionIsSet(true); + struct.username = iprot.readString(); + struct.setUsernameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -3: // LAST_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.lastName = iprot.readString(); + struct.setLastNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -4: // FIRST_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.firstName = iprot.readString(); + struct.setFirstNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -5: // MAIL + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.mail = iprot.readString(); + struct.setMailIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -6: // UNIVERSITY + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.university = iprot.readString(); + struct.setUniversityIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -7: // ROLE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.role = iprot.readString(); + struct.setRoleIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -20839,18 +26020,43 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, connectedToLecture_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, writeImageRights_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.version != null) { - oprot.writeFieldBegin(VERSION_FIELD_DESC); - oprot.writeString(struct.version); + if (struct.role != null) { + oprot.writeFieldBegin(ROLE_FIELD_DESC); + oprot.writeString(struct.role); oprot.writeFieldEnd(); } - if (struct.id != null) { - oprot.writeFieldBegin(ID_FIELD_DESC); - oprot.writeString(struct.id); + if (struct.university != null) { + oprot.writeFieldBegin(UNIVERSITY_FIELD_DESC); + oprot.writeString(struct.university); + oprot.writeFieldEnd(); + } + if (struct.mail != null) { + oprot.writeFieldBegin(MAIL_FIELD_DESC); + oprot.writeString(struct.mail); + oprot.writeFieldEnd(); + } + if (struct.firstName != null) { + oprot.writeFieldBegin(FIRST_NAME_FIELD_DESC); + oprot.writeString(struct.firstName); + oprot.writeFieldEnd(); + } + if (struct.lastName != null) { + oprot.writeFieldBegin(LAST_NAME_FIELD_DESC); + oprot.writeString(struct.lastName); + oprot.writeFieldEnd(); + } + if (struct.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(); } oprot.writeFieldStop(); @@ -20859,59 +26065,109 @@ public class Server { } - private static class connectedToLecture_argsTupleSchemeFactory implements SchemeFactory { - public connectedToLecture_argsTupleScheme getScheme() { - return new connectedToLecture_argsTupleScheme(); + private static class writeImageRights_argsTupleSchemeFactory implements SchemeFactory { + public writeImageRights_argsTupleScheme getScheme() { + return new writeImageRights_argsTupleScheme(); } } - private static class connectedToLecture_argsTupleScheme extends TupleScheme { + private static class writeImageRights_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, connectedToLecture_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, writeImageRights_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetId()) { + if (struct.isSetImagename()) { optionals.set(0); } - if (struct.isSetVersion()) { + if (struct.isSetUsername()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); - if (struct.isSetId()) { - oprot.writeString(struct.id); + if (struct.isSetLastName()) { + optionals.set(2); } - if (struct.isSetVersion()) { - oprot.writeString(struct.version); + if (struct.isSetFirstName()) { + optionals.set(3); + } + if (struct.isSetMail()) { + optionals.set(4); + } + if (struct.isSetUniversity()) { + optionals.set(5); + } + if (struct.isSetRole()) { + optionals.set(6); + } + oprot.writeBitSet(optionals, 7); + if (struct.isSetImagename()) { + oprot.writeString(struct.imagename); + } + if (struct.isSetUsername()) { + oprot.writeString(struct.username); + } + if (struct.isSetLastName()) { + oprot.writeString(struct.lastName); + } + if (struct.isSetFirstName()) { + oprot.writeString(struct.firstName); + } + if (struct.isSetMail()) { + oprot.writeString(struct.mail); + } + if (struct.isSetUniversity()) { + oprot.writeString(struct.university); + } + if (struct.isSetRole()) { + oprot.writeString(struct.role); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, connectedToLecture_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, writeImageRights_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(7); if (incoming.get(0)) { - struct.id = iprot.readString(); - struct.setIdIsSet(true); + struct.imagename = iprot.readString(); + struct.setImagenameIsSet(true); } if (incoming.get(1)) { - struct.version = iprot.readString(); - struct.setVersionIsSet(true); + struct.username = iprot.readString(); + struct.setUsernameIsSet(true); + } + if (incoming.get(2)) { + struct.lastName = iprot.readString(); + struct.setLastNameIsSet(true); + } + if (incoming.get(3)) { + struct.firstName = iprot.readString(); + struct.setFirstNameIsSet(true); + } + if (incoming.get(4)) { + struct.mail = iprot.readString(); + struct.setMailIsSet(true); + } + if (incoming.get(5)) { + struct.university = iprot.readString(); + struct.setUniversityIsSet(true); + } + if (incoming.get(6)) { + struct.role = iprot.readString(); + struct.setRoleIsSet(true); } } } } - public static class connectedToLecture_result 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("connectedToLecture_result"); + public static class writeImageRights_result 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("writeImageRights_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new connectedToLecture_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new connectedToLecture_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new writeImageRights_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeImageRights_resultTupleSchemeFactory()); } public boolean success; // required @@ -20983,13 +26239,13 @@ public class Server { tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(connectedToLecture_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeImageRights_result.class, metaDataMap); } - public connectedToLecture_result() { + public writeImageRights_result() { } - public connectedToLecture_result( + public writeImageRights_result( boolean success) { this(); @@ -21000,13 +26256,13 @@ public class Server { /** * Performs a deep copy on other. */ - public connectedToLecture_result(connectedToLecture_result other) { + public writeImageRights_result(writeImageRights_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; } - public connectedToLecture_result deepCopy() { - return new connectedToLecture_result(this); + public writeImageRights_result deepCopy() { + return new writeImageRights_result(this); } @Override @@ -21019,7 +26275,7 @@ public class Server { return this.success; } - public connectedToLecture_result setSuccess(boolean success) { + public writeImageRights_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; @@ -21077,12 +26333,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof connectedToLecture_result) - return this.equals((connectedToLecture_result)that); + if (that instanceof writeImageRights_result) + return this.equals((writeImageRights_result)that); return false; } - public boolean equals(connectedToLecture_result that) { + public boolean equals(writeImageRights_result that) { if (that == null) return false; @@ -21104,7 +26360,7 @@ public class Server { } @Override - public int compareTo(connectedToLecture_result other) { + public int compareTo(writeImageRights_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -21138,7 +26394,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("connectedToLecture_result("); + StringBuilder sb = new StringBuilder("writeImageRights_result("); boolean first = true; sb.append("success:"); @@ -21171,15 +26427,15 @@ public class Server { } } - private static class connectedToLecture_resultStandardSchemeFactory implements SchemeFactory { - public connectedToLecture_resultStandardScheme getScheme() { - return new connectedToLecture_resultStandardScheme(); + private static class writeImageRights_resultStandardSchemeFactory implements SchemeFactory { + public writeImageRights_resultStandardScheme getScheme() { + return new writeImageRights_resultStandardScheme(); } } - private static class connectedToLecture_resultStandardScheme extends StandardScheme { + private static class writeImageRights_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, connectedToLecture_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, writeImageRights_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -21208,7 +26464,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, connectedToLecture_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, writeImageRights_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -21223,16 +26479,16 @@ public class Server { } - private static class connectedToLecture_resultTupleSchemeFactory implements SchemeFactory { - public connectedToLecture_resultTupleScheme getScheme() { - return new connectedToLecture_resultTupleScheme(); + private static class writeImageRights_resultTupleSchemeFactory implements SchemeFactory { + public writeImageRights_resultTupleScheme getScheme() { + return new writeImageRights_resultTupleScheme(); } } - private static class connectedToLecture_resultTupleScheme extends TupleScheme { + private static class writeImageRights_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, connectedToLecture_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, writeImageRights_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -21245,7 +26501,7 @@ public class Server { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, connectedToLecture_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, writeImageRights_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -21257,28 +26513,40 @@ public class Server { } - public static class deleteLecture_args 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("deleteLecture_args"); + public static class writeLectureRights_args 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("writeLectureRights_args"); - 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 HS_FIELD_DESC = new org.apache.thrift.protocol.TField("hs", org.apache.thrift.protocol.TType.STRING, (short)-2); - private static final org.apache.thrift.protocol.TField USER_FIELD_DESC = new org.apache.thrift.protocol.TField("user", org.apache.thrift.protocol.TType.STRING, (short)-3); + private static final org.apache.thrift.protocol.TField LECTURENAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lecturename", org.apache.thrift.protocol.TType.STRING, (short)-1); + private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)-2); + private static final org.apache.thrift.protocol.TField LAST_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lastName", org.apache.thrift.protocol.TType.STRING, (short)-3); + private static final org.apache.thrift.protocol.TField FIRST_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("firstName", org.apache.thrift.protocol.TType.STRING, (short)-4); + private static final org.apache.thrift.protocol.TField MAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("mail", org.apache.thrift.protocol.TType.STRING, (short)-5); + private static final org.apache.thrift.protocol.TField UNIVERSITY_FIELD_DESC = new org.apache.thrift.protocol.TField("university", org.apache.thrift.protocol.TType.STRING, (short)-6); + private static final org.apache.thrift.protocol.TField ROLE_FIELD_DESC = new org.apache.thrift.protocol.TField("role", org.apache.thrift.protocol.TType.STRING, (short)-7); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new deleteLecture_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteLecture_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new writeLectureRights_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeLectureRights_argsTupleSchemeFactory()); } - public String id; // required - public String hs; // required - public String user; // required + public String lecturename; // required + public String username; // required + public String lastName; // required + public String firstName; // required + public String mail; // required + public String university; // required + public String role; // 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"), - HS((short)-2, "hs"), - USER((short)-3, "user"); + LECTURENAME((short)-1, "lecturename"), + USERNAME((short)-2, "username"), + LAST_NAME((short)-3, "lastName"), + FIRST_NAME((short)-4, "firstName"), + MAIL((short)-5, "mail"), + UNIVERSITY((short)-6, "university"), + ROLE((short)-7, "role"); private static final Map byName = new HashMap(); @@ -21293,12 +26561,20 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case -1: // ID - return ID; - case -2: // HS - return HS; - case -3: // USER - return USER; + case -1: // LECTURENAME + return LECTURENAME; + case -2: // USERNAME + return USERNAME; + case -3: // LAST_NAME + return LAST_NAME; + case -4: // FIRST_NAME + return FIRST_NAME; + case -5: // MAIL + return MAIL; + case -6: // UNIVERSITY + return UNIVERSITY; + case -7: // ROLE + return ROLE; default: return null; } @@ -21342,151 +26618,311 @@ public class Server { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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.HS, new org.apache.thrift.meta_data.FieldMetaData("hs", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.USER, new org.apache.thrift.meta_data.FieldMetaData("user", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.LAST_NAME, new org.apache.thrift.meta_data.FieldMetaData("lastName", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.FIRST_NAME, new org.apache.thrift.meta_data.FieldMetaData("firstName", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("mail", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.UNIVERSITY, new org.apache.thrift.meta_data.FieldMetaData("university", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", 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(deleteLecture_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeLectureRights_args.class, metaDataMap); } - public deleteLecture_args() { + public writeLectureRights_args() { } - public deleteLecture_args( - String id, - String hs, - String user) + public writeLectureRights_args( + String lecturename, + String username, + String lastName, + String firstName, + String mail, + String university, + String role) { this(); - this.id = id; - this.hs = hs; - this.user = user; + this.lecturename = lecturename; + this.username = username; + this.lastName = lastName; + this.firstName = firstName; + this.mail = mail; + this.university = university; + this.role = role; } /** * Performs a deep copy on other. */ - public deleteLecture_args(deleteLecture_args other) { - if (other.isSetId()) { - this.id = other.id; + public writeLectureRights_args(writeLectureRights_args other) { + if (other.isSetLecturename()) { + this.lecturename = other.lecturename; } - if (other.isSetHs()) { - this.hs = other.hs; + if (other.isSetUsername()) { + this.username = other.username; } - if (other.isSetUser()) { - this.user = other.user; + if (other.isSetLastName()) { + this.lastName = other.lastName; + } + if (other.isSetFirstName()) { + this.firstName = other.firstName; + } + if (other.isSetMail()) { + this.mail = other.mail; + } + if (other.isSetUniversity()) { + this.university = other.university; + } + if (other.isSetRole()) { + this.role = other.role; } } - public deleteLecture_args deepCopy() { - return new deleteLecture_args(this); + public writeLectureRights_args deepCopy() { + return new writeLectureRights_args(this); } @Override public void clear() { - this.id = null; - this.hs = null; - this.user = null; + this.lecturename = null; + this.username = null; + this.lastName = null; + this.firstName = null; + this.mail = null; + this.university = null; + this.role = null; } - public String getId() { - return this.id; + public String getLecturename() { + return this.lecturename; } - public deleteLecture_args setId(String id) { - this.id = id; + public writeLectureRights_args setLecturename(String lecturename) { + this.lecturename = lecturename; return this; } - public void unsetId() { - this.id = null; + public void unsetLecturename() { + this.lecturename = null; } - /** Returns true if field id is set (has been assigned a value) and false otherwise */ - public boolean isSetId() { - return this.id != 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 setIdIsSet(boolean value) { + public void setLecturenameIsSet(boolean value) { if (!value) { - this.id = null; + this.lecturename = null; } } - public String getHs() { - return this.hs; + public String getUsername() { + return this.username; } - public deleteLecture_args setHs(String hs) { - this.hs = hs; + public writeLectureRights_args setUsername(String username) { + this.username = username; return this; } - public void unsetHs() { - this.hs = null; + public void unsetUsername() { + this.username = null; } - /** Returns true if field hs is set (has been assigned a value) and false otherwise */ - public boolean isSetHs() { - return this.hs != 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 setHsIsSet(boolean value) { + public void setUsernameIsSet(boolean value) { if (!value) { - this.hs = null; + this.username = null; } } - public String getUser() { - return this.user; + public String getLastName() { + return this.lastName; } - public deleteLecture_args setUser(String user) { - this.user = user; + public writeLectureRights_args setLastName(String lastName) { + this.lastName = lastName; return this; } - public void unsetUser() { - this.user = null; + public void unsetLastName() { + this.lastName = null; } - /** Returns true if field user is set (has been assigned a value) and false otherwise */ - public boolean isSetUser() { - return this.user != null; + /** Returns true if field lastName is set (has been assigned a value) and false otherwise */ + public boolean isSetLastName() { + return this.lastName != null; } - public void setUserIsSet(boolean value) { + public void setLastNameIsSet(boolean value) { if (!value) { - this.user = null; + this.lastName = null; + } + } + + public String getFirstName() { + return this.firstName; + } + + public writeLectureRights_args setFirstName(String firstName) { + this.firstName = firstName; + return this; + } + + public void unsetFirstName() { + this.firstName = null; + } + + /** Returns true if field firstName is set (has been assigned a value) and false otherwise */ + public boolean isSetFirstName() { + return this.firstName != null; + } + + public void setFirstNameIsSet(boolean value) { + if (!value) { + this.firstName = null; + } + } + + public String getMail() { + return this.mail; + } + + public writeLectureRights_args setMail(String mail) { + this.mail = mail; + return this; + } + + public void unsetMail() { + this.mail = null; + } + + /** Returns true if field mail is set (has been assigned a value) and false otherwise */ + public boolean isSetMail() { + return this.mail != null; + } + + public void setMailIsSet(boolean value) { + if (!value) { + this.mail = null; + } + } + + public String getUniversity() { + return this.university; + } + + public writeLectureRights_args setUniversity(String university) { + this.university = university; + return this; + } + + public void unsetUniversity() { + this.university = null; + } + + /** Returns true if field university is set (has been assigned a value) and false otherwise */ + public boolean isSetUniversity() { + return this.university != null; + } + + public void setUniversityIsSet(boolean value) { + if (!value) { + this.university = null; + } + } + + public String getRole() { + return this.role; + } + + public writeLectureRights_args setRole(String role) { + this.role = role; + return this; + } + + public void unsetRole() { + this.role = null; + } + + /** Returns true if field role is set (has been assigned a value) and false otherwise */ + public boolean isSetRole() { + return this.role != null; + } + + public void setRoleIsSet(boolean value) { + if (!value) { + this.role = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case ID: + case LECTURENAME: if (value == null) { - unsetId(); + unsetLecturename(); } else { - setId((String)value); + setLecturename((String)value); } break; - case HS: + case USERNAME: if (value == null) { - unsetHs(); + unsetUsername(); } else { - setHs((String)value); + setUsername((String)value); } break; - case USER: + case LAST_NAME: if (value == null) { - unsetUser(); + unsetLastName(); } else { - setUser((String)value); + setLastName((String)value); + } + break; + + case FIRST_NAME: + if (value == null) { + unsetFirstName(); + } else { + setFirstName((String)value); + } + break; + + case MAIL: + if (value == null) { + unsetMail(); + } else { + setMail((String)value); + } + break; + + case UNIVERSITY: + if (value == null) { + unsetUniversity(); + } else { + setUniversity((String)value); + } + break; + + case ROLE: + if (value == null) { + unsetRole(); + } else { + setRole((String)value); } break; @@ -21495,14 +26931,26 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case ID: - return getId(); + case LECTURENAME: + return getLecturename(); - case HS: - return getHs(); + case USERNAME: + return getUsername(); - case USER: - return getUser(); + case LAST_NAME: + return getLastName(); + + case FIRST_NAME: + return getFirstName(); + + case MAIL: + return getMail(); + + case UNIVERSITY: + return getUniversity(); + + case ROLE: + return getRole(); } throw new IllegalStateException(); @@ -21515,12 +26963,20 @@ public class Server { } switch (field) { - case ID: - return isSetId(); - case HS: - return isSetHs(); - case USER: - return isSetUser(); + case LECTURENAME: + return isSetLecturename(); + case USERNAME: + return isSetUsername(); + case LAST_NAME: + return isSetLastName(); + case FIRST_NAME: + return isSetFirstName(); + case MAIL: + return isSetMail(); + case UNIVERSITY: + return isSetUniversity(); + case ROLE: + return isSetRole(); } throw new IllegalStateException(); } @@ -21529,39 +26985,75 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof deleteLecture_args) - return this.equals((deleteLecture_args)that); + if (that instanceof writeLectureRights_args) + return this.equals((writeLectureRights_args)that); return false; } - public boolean equals(deleteLecture_args that) { + public boolean equals(writeLectureRights_args 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)) + 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_username = true && this.isSetUsername(); + boolean that_present_username = true && that.isSetUsername(); + if (this_present_username || that_present_username) { + if (!(this_present_username && that_present_username)) + return false; + if (!this.username.equals(that.username)) + return false; + } + + boolean this_present_lastName = true && this.isSetLastName(); + boolean that_present_lastName = true && that.isSetLastName(); + if (this_present_lastName || that_present_lastName) { + if (!(this_present_lastName && that_present_lastName)) + return false; + if (!this.lastName.equals(that.lastName)) + return false; + } + + boolean this_present_firstName = true && this.isSetFirstName(); + boolean that_present_firstName = true && that.isSetFirstName(); + if (this_present_firstName || that_present_firstName) { + if (!(this_present_firstName && that_present_firstName)) return false; - if (!this.id.equals(that.id)) + if (!this.firstName.equals(that.firstName)) return false; } - boolean this_present_hs = true && this.isSetHs(); - boolean that_present_hs = true && that.isSetHs(); - if (this_present_hs || that_present_hs) { - if (!(this_present_hs && that_present_hs)) + boolean this_present_mail = true && this.isSetMail(); + boolean that_present_mail = true && that.isSetMail(); + if (this_present_mail || that_present_mail) { + if (!(this_present_mail && that_present_mail)) return false; - if (!this.hs.equals(that.hs)) + if (!this.mail.equals(that.mail)) return false; } - boolean this_present_user = true && this.isSetUser(); - boolean that_present_user = true && that.isSetUser(); - if (this_present_user || that_present_user) { - if (!(this_present_user && that_present_user)) + boolean this_present_university = true && this.isSetUniversity(); + boolean that_present_university = true && that.isSetUniversity(); + if (this_present_university || that_present_university) { + if (!(this_present_university && that_present_university)) return false; - if (!this.user.equals(that.user)) + if (!this.university.equals(that.university)) + return false; + } + + boolean this_present_role = true && this.isSetRole(); + boolean that_present_role = true && that.isSetRole(); + if (this_present_role || that_present_role) { + if (!(this_present_role && that_present_role)) + return false; + if (!this.role.equals(that.role)) return false; } @@ -21574,39 +27066,79 @@ public class Server { } @Override - public int compareTo(deleteLecture_args other) { + public int compareTo(writeLectureRights_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId()); + lastComparison = Boolean.valueOf(isSetLecturename()).compareTo(other.isSetLecturename()); if (lastComparison != 0) { return lastComparison; } - if (isSetId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id); + if (isSetLecturename()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lecturename, other.lecturename); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetHs()).compareTo(other.isSetHs()); + lastComparison = Boolean.valueOf(isSetUsername()).compareTo(other.isSetUsername()); if (lastComparison != 0) { return lastComparison; } - if (isSetHs()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hs, other.hs); + if (isSetUsername()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, other.username); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUser()).compareTo(other.isSetUser()); + lastComparison = Boolean.valueOf(isSetLastName()).compareTo(other.isSetLastName()); if (lastComparison != 0) { return lastComparison; } - if (isSetUser()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, other.user); + if (isSetLastName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastName, other.lastName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetFirstName()).compareTo(other.isSetFirstName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFirstName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.firstName, other.firstName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetMail()).compareTo(other.isSetMail()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetMail()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mail, other.mail); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUniversity()).compareTo(other.isSetUniversity()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUniversity()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.university, other.university); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetRole()).compareTo(other.isSetRole()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetRole()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, other.role); if (lastComparison != 0) { return lastComparison; } @@ -21628,30 +27160,62 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteLecture_args("); + StringBuilder sb = new StringBuilder("writeLectureRights_args("); boolean first = true; - sb.append("id:"); - if (this.id == null) { + sb.append("lecturename:"); + if (this.lecturename == null) { sb.append("null"); } else { - sb.append(this.id); + sb.append(this.lecturename); } first = false; if (!first) sb.append(", "); - sb.append("hs:"); - if (this.hs == null) { + sb.append("username:"); + if (this.username == null) { sb.append("null"); } else { - sb.append(this.hs); + sb.append(this.username); } first = false; if (!first) sb.append(", "); - sb.append("user:"); - if (this.user == null) { + sb.append("lastName:"); + if (this.lastName == null) { sb.append("null"); } else { - sb.append(this.user); + sb.append(this.lastName); + } + first = false; + if (!first) sb.append(", "); + sb.append("firstName:"); + if (this.firstName == null) { + sb.append("null"); + } else { + sb.append(this.firstName); + } + first = false; + if (!first) sb.append(", "); + sb.append("mail:"); + if (this.mail == null) { + sb.append("null"); + } else { + sb.append(this.mail); + } + first = false; + if (!first) sb.append(", "); + sb.append("university:"); + if (this.university == null) { + sb.append("null"); + } else { + sb.append(this.university); + } + first = false; + if (!first) sb.append(", "); + sb.append("role:"); + if (this.role == null) { + sb.append("null"); + } else { + sb.append(this.role); } first = false; sb.append(")"); @@ -21679,15 +27243,15 @@ public class Server { } } - private static class deleteLecture_argsStandardSchemeFactory implements SchemeFactory { - public deleteLecture_argsStandardScheme getScheme() { - return new deleteLecture_argsStandardScheme(); + private static class writeLectureRights_argsStandardSchemeFactory implements SchemeFactory { + public writeLectureRights_argsStandardScheme getScheme() { + return new writeLectureRights_argsStandardScheme(); } } - private static class deleteLecture_argsStandardScheme extends StandardScheme { + private static class writeLectureRights_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteLecture_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, writeLectureRights_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -21697,26 +27261,58 @@ public class Server { break; } switch (schemeField.id) { - case -1: // ID + case -1: // LECTURENAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.id = iprot.readString(); - struct.setIdIsSet(true); + struct.lecturename = iprot.readString(); + struct.setLecturenameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case -2: // HS + case -2: // USERNAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.hs = iprot.readString(); - struct.setHsIsSet(true); + struct.username = iprot.readString(); + struct.setUsernameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case -3: // USER + case -3: // LAST_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.user = iprot.readString(); - struct.setUserIsSet(true); + struct.lastName = iprot.readString(); + struct.setLastNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -4: // FIRST_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.firstName = iprot.readString(); + struct.setFirstNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -5: // MAIL + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.mail = iprot.readString(); + struct.setMailIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -6: // UNIVERSITY + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.university = iprot.readString(); + struct.setUniversityIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case -7: // ROLE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.role = iprot.readString(); + struct.setRoleIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -21732,23 +27328,43 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteLecture_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, writeLectureRights_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.user != null) { - oprot.writeFieldBegin(USER_FIELD_DESC); - oprot.writeString(struct.user); + if (struct.role != null) { + oprot.writeFieldBegin(ROLE_FIELD_DESC); + oprot.writeString(struct.role); oprot.writeFieldEnd(); } - if (struct.hs != null) { - oprot.writeFieldBegin(HS_FIELD_DESC); - oprot.writeString(struct.hs); + if (struct.university != null) { + oprot.writeFieldBegin(UNIVERSITY_FIELD_DESC); + oprot.writeString(struct.university); oprot.writeFieldEnd(); } - if (struct.id != null) { - oprot.writeFieldBegin(ID_FIELD_DESC); - oprot.writeString(struct.id); + if (struct.mail != null) { + oprot.writeFieldBegin(MAIL_FIELD_DESC); + oprot.writeString(struct.mail); + oprot.writeFieldEnd(); + } + if (struct.firstName != null) { + oprot.writeFieldBegin(FIRST_NAME_FIELD_DESC); + oprot.writeString(struct.firstName); + oprot.writeFieldEnd(); + } + if (struct.lastName != null) { + oprot.writeFieldBegin(LAST_NAME_FIELD_DESC); + oprot.writeString(struct.lastName); + oprot.writeFieldEnd(); + } + if (struct.username != null) { + oprot.writeFieldBegin(USERNAME_FIELD_DESC); + oprot.writeString(struct.username); + oprot.writeFieldEnd(); + } + if (struct.lecturename != null) { + oprot.writeFieldBegin(LECTURENAME_FIELD_DESC); + oprot.writeString(struct.lecturename); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -21757,69 +27373,109 @@ public class Server { } - private static class deleteLecture_argsTupleSchemeFactory implements SchemeFactory { - public deleteLecture_argsTupleScheme getScheme() { - return new deleteLecture_argsTupleScheme(); + private static class writeLectureRights_argsTupleSchemeFactory implements SchemeFactory { + public writeLectureRights_argsTupleScheme getScheme() { + return new writeLectureRights_argsTupleScheme(); } } - private static class deleteLecture_argsTupleScheme extends TupleScheme { + private static class writeLectureRights_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteLecture_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, writeLectureRights_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetId()) { + if (struct.isSetLecturename()) { optionals.set(0); } - if (struct.isSetHs()) { + if (struct.isSetUsername()) { optionals.set(1); } - if (struct.isSetUser()) { + if (struct.isSetLastName()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); - if (struct.isSetId()) { - oprot.writeString(struct.id); + if (struct.isSetFirstName()) { + optionals.set(3); } - if (struct.isSetHs()) { - oprot.writeString(struct.hs); + if (struct.isSetMail()) { + optionals.set(4); } - if (struct.isSetUser()) { - oprot.writeString(struct.user); + if (struct.isSetUniversity()) { + optionals.set(5); + } + if (struct.isSetRole()) { + optionals.set(6); + } + oprot.writeBitSet(optionals, 7); + if (struct.isSetLecturename()) { + oprot.writeString(struct.lecturename); + } + if (struct.isSetUsername()) { + oprot.writeString(struct.username); + } + if (struct.isSetLastName()) { + oprot.writeString(struct.lastName); + } + if (struct.isSetFirstName()) { + oprot.writeString(struct.firstName); + } + if (struct.isSetMail()) { + oprot.writeString(struct.mail); + } + if (struct.isSetUniversity()) { + oprot.writeString(struct.university); + } + if (struct.isSetRole()) { + oprot.writeString(struct.role); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteLecture_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, writeLectureRights_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(7); if (incoming.get(0)) { - struct.id = iprot.readString(); - struct.setIdIsSet(true); + struct.lecturename = iprot.readString(); + struct.setLecturenameIsSet(true); } if (incoming.get(1)) { - struct.hs = iprot.readString(); - struct.setHsIsSet(true); + struct.username = iprot.readString(); + struct.setUsernameIsSet(true); } if (incoming.get(2)) { - struct.user = iprot.readString(); - struct.setUserIsSet(true); + struct.lastName = iprot.readString(); + struct.setLastNameIsSet(true); + } + if (incoming.get(3)) { + struct.firstName = iprot.readString(); + struct.setFirstNameIsSet(true); + } + if (incoming.get(4)) { + struct.mail = iprot.readString(); + struct.setMailIsSet(true); + } + if (incoming.get(5)) { + struct.university = iprot.readString(); + struct.setUniversityIsSet(true); + } + if (incoming.get(6)) { + struct.role = iprot.readString(); + struct.setRoleIsSet(true); } } } } - public static class deleteLecture_result 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("deleteLecture_result"); + public static class writeLectureRights_result 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("writeLectureRights_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new deleteLecture_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteLecture_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new writeLectureRights_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeLectureRights_resultTupleSchemeFactory()); } public boolean success; // required @@ -21891,13 +27547,13 @@ public class Server { tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteLecture_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeLectureRights_result.class, metaDataMap); } - public deleteLecture_result() { + public writeLectureRights_result() { } - public deleteLecture_result( + public writeLectureRights_result( boolean success) { this(); @@ -21908,13 +27564,13 @@ public class Server { /** * Performs a deep copy on other. */ - public deleteLecture_result(deleteLecture_result other) { + public writeLectureRights_result(writeLectureRights_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; } - public deleteLecture_result deepCopy() { - return new deleteLecture_result(this); + public writeLectureRights_result deepCopy() { + return new writeLectureRights_result(this); } @Override @@ -21927,7 +27583,7 @@ public class Server { return this.success; } - public deleteLecture_result setSuccess(boolean success) { + public writeLectureRights_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; @@ -21985,12 +27641,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof deleteLecture_result) - return this.equals((deleteLecture_result)that); + if (that instanceof writeLectureRights_result) + return this.equals((writeLectureRights_result)that); return false; } - public boolean equals(deleteLecture_result that) { + public boolean equals(writeLectureRights_result that) { if (that == null) return false; @@ -22012,7 +27668,7 @@ public class Server { } @Override - public int compareTo(deleteLecture_result other) { + public int compareTo(writeLectureRights_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -22046,7 +27702,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteLecture_result("); + StringBuilder sb = new StringBuilder("writeLectureRights_result("); boolean first = true; sb.append("success:"); @@ -22079,15 +27735,15 @@ public class Server { } } - private static class deleteLecture_resultStandardSchemeFactory implements SchemeFactory { - public deleteLecture_resultStandardScheme getScheme() { - return new deleteLecture_resultStandardScheme(); + private static class writeLectureRights_resultStandardSchemeFactory implements SchemeFactory { + public writeLectureRights_resultStandardScheme getScheme() { + return new writeLectureRights_resultStandardScheme(); } } - private static class deleteLecture_resultStandardScheme extends StandardScheme { + private static class writeLectureRights_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteLecture_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, writeLectureRights_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -22116,7 +27772,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteLecture_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, writeLectureRights_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -22131,16 +27787,16 @@ public class Server { } - private static class deleteLecture_resultTupleSchemeFactory implements SchemeFactory { - public deleteLecture_resultTupleScheme getScheme() { - return new deleteLecture_resultTupleScheme(); + private static class writeLectureRights_resultTupleSchemeFactory implements SchemeFactory { + public writeLectureRights_resultTupleScheme getScheme() { + return new writeLectureRights_resultTupleScheme(); } } - private static class deleteLecture_resultTupleScheme extends TupleScheme { + private static class writeLectureRights_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteLecture_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, writeLectureRights_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -22153,7 +27809,7 @@ public class Server { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteLecture_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, writeLectureRights_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { diff --git a/Dozentenmodulserver/src/main/java/server/ServerHandler.java b/Dozentenmodulserver/src/main/java/server/ServerHandler.java index 6534ca3d..35b9579a 100644 --- a/Dozentenmodulserver/src/main/java/server/ServerHandler.java +++ b/Dozentenmodulserver/src/main/java/server/ServerHandler.java @@ -20,6 +20,9 @@ import models.Configuration; import org.apache.commons.io.FileUtils; import org.apache.log4j.Logger; import org.apache.thrift.TException; + +import com.mysql.jdbc.StringUtils; + import sql.SQL; import util.XMLCreator; @@ -156,11 +159,11 @@ public class ServerHandler implements Server.Iface { } @Override - public boolean writeVLdata(String imagename, String login, + public boolean writeVLdata(String imagename, String desc ,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 TException { + long filesize, long shareMode, String os) throws TException { String mode=null; @@ -177,8 +180,12 @@ public class ServerHandler implements Server.Iface { String pk_person = sql.setPerson(login, lastname, firstname, Mail, new Date(), pk_institution); - sql.setImageData(pk_person, license, internet, cpu, ram, imagename, - imagePath, isTemplate, filesize,mode); + //OS impl Select and write + //ACHTUNG: Anzahl der Leerzeichen muss eingehalten werden: 'Windows 7 32 bit" + String pk_os=sql.getOSpk(os.substring(0, nthIndexOf(os, " ", 2)),os.substring(nthIndexOf(os," ", 2), os.lastIndexOf(" ")).replace(" ", "")); + + sql.setImageData(pk_person, license, internet, cpu, ram, imagename,desc, + imagePath, isTemplate, filesize,mode,pk_os); log.info(new Date() + " - written VLdata"); // TODO Auto-generated method stub @@ -276,10 +283,10 @@ public class ServerHandler implements Server.Iface { } @Override - public boolean updateImageData(String name, String newName, + public boolean updateImageData(String name, String newName,String desc, String image_path, boolean license, boolean internet, long ram, long cpu, String id, String version, boolean isTemplate, - long filesize, long shareMode) throws TException { + long filesize, long shareMode, String os) throws TException { String mode=null; if(shareMode==0) @@ -289,17 +296,14 @@ public class ServerHandler implements Server.Iface { else{ mode="to_be_published"; } - sql.UpdateImageData(name, newName, image_path, license, internet, cpu, - ram, id, version, isTemplate, filesize,mode); + String pk_os=sql.getOSpk(os.substring(0, nthIndexOf(os, " ", 2)),os.substring(nthIndexOf(os," ", 2), os.lastIndexOf(" ")).replace(" ", "")); + sql.UpdateImageData(name, newName,desc ,image_path, license, internet, cpu, + ram, id, version, isTemplate, filesize,mode,pk_os); return false; } - @Override - public Map getLectureData(String lecturename) - throws TException { - // TODO Auto-generated method stub - return null; - } + + @Override public List getLectureList() throws TException { @@ -315,18 +319,26 @@ public class ServerHandler implements Server.Iface { @Override public boolean updateLecturedata(String name, String newName, String shortdesc, String desc, String startDate, String endDate, - boolean isActive, String imagename, String firstname, + boolean isActive, String imageid,String imageversion,String user ,String firstname, String lastname, String university, String Mail, String Tel, String Fak, String id) throws TException { - String pk_image = ""; - int imageversion = 0; - Map image = sql.getImageIDandVersion(imagename); - - pk_image = image.get("GUID"); - imageversion = Integer.parseInt(image.get("version")); - sql.updateLectureData(pk_image, imageversion, lastname, newName, desc, + Map map = new HashMap(); + map = sql.getDeleteXMLData(id); + sql.updateLectureData(imageid, imageversion, lastname, newName, desc, shortdesc, startDate, endDate, isActive, id); + String path = Configuration.config.getAbsolute_path() + + "prod/" + + map.get("date") + .substring(0, map.get("date").length() - 2) + "_" + + university + "_" + user + "_" + map.get("name") + ".xml"; + File tmpFile=new File(path); + try { + FileUtils.forceDelete(tmpFile); + } catch (IOException e1) { + // TODO Auto-generated catch block + e1.printStackTrace(); + } XMLCreator xml = new XMLCreator(sql.getConnection(), newName); try { xml.create(newName); @@ -336,8 +348,6 @@ public class ServerHandler implements Server.Iface { e.printStackTrace(); } - // sql.updateLectureData(con, pk_image, imageversion, lastname, newName, - // desc, shortdesc, startDate, endDate, isActive, id); return false; } @@ -384,7 +394,7 @@ public class ServerHandler implements Server.Iface { try { String path = Configuration.config.getAbsolute_path() - + "temp/" + + "prod/" + map.get("date") .substring(0, map.get("date").length() - 2) + "_" + hs + "_" + user + "_" + map.get("name") + ".xml"; @@ -403,5 +413,135 @@ public class ServerHandler implements Server.Iface { return sql.getAllUniversities(); } + + @Override + public Map getLectureData(String lectureid) + throws TException { + log.info(new Date() + " - returning LectureData: " + + sql.getLectureData(lectureid).size() + "items."); + return sql.getLectureData(lectureid); + } + + + + + public static int nthIndexOf(final String string, final String token, + final int index) + { + int j = 0; + + for (int i = 0; i < index; i++) + { + j = string.indexOf(token, j + 1); + if (j == -1) break; + } + + return j; + } + + @Override + public boolean checkUser(String username) throws TException { + return sql.checkUser(username); + + } + + @Override + public boolean createUser(String loginName, String lastName, + String firstName, String mail, String university) throws TException { + String pk_institution = sql.setInstitution(university); + String pk_person = sql.setPerson(loginName, lastName, firstName, mail, + new Date(), pk_institution); + return true; + } + + @Override + public boolean writeImageRights(String imagename, String username, String lastName, String firstName, String mail, String university, String role) + throws TException { + String pk_image = null; + Map map = new HashMap(); + int imageversion = 0; + String pk_institution = sql.setInstitution(university); + String pk_person = sql.setPerson(username, lastName, firstName, mail, + new Date(), pk_institution); + map = sql.getImageIDandVersion(imagename); + pk_image = map.get("GUID"); + imageversion = Integer.parseInt(map.get("version")); + + if(role.equals("Dozent")) { + int read=1; + int write=1; + int changePermission=0; + int admin=0; + int linkallowed=1; + int roleID=sql.getRoleID(role); + + sql.setImageRights(pk_person, pk_image, roleID, read, write, changePermission, admin, linkallowed); + + }else if(role.equals("Admin")){ + int read=1; + int write=1; + int changePermission=1; + int admin=1; + int linkallowed=1; + int roleID=sql.getRoleID(role); + + sql.setImageRights(pk_person, pk_image, roleID, read, write, changePermission, admin, linkallowed); + } + else{ + int read=1; + int write=0; + int changePermission=0; + int admin=0; + int linkallowed=0; + int roleID=sql.getRoleID(role); + + sql.setImageRights(pk_person, pk_image, roleID, read, write, changePermission, admin, linkallowed); + } + + return true; + } + + @Override + public boolean writeLectureRights(String lecturename, String username, + String lastName, String firstName, String mail, String university, + String role) throws TException { + String pk_lecture = null; + + String pk_institution = sql.setInstitution(university); + String pk_person = sql.setPerson(username, lastName, firstName, mail, + new Date(), pk_institution); + pk_lecture=sql.getLectureID(lecturename); + + if(role.equals("Dozent")) { + int read=1; + int write=1; + int changePermission=0; + int admin=0; + int roleID=sql.getRoleID(role); + + sql.setLectureRights(pk_person, pk_lecture, roleID, read, write, changePermission, admin); + + }else if(role.equals("Admin")){ + int read=1; + int write=1; + int changePermission=1; + int admin=1; + int roleID=sql.getRoleID(role); + + sql.setLectureRights(pk_person, pk_lecture, roleID, read, write, changePermission, admin); + } + else{ + int read=0; + int write=0; + int changePermission=0; + int admin=0; + int roleID=sql.getRoleID(role); + + sql.setLectureRights(pk_person, pk_lecture, roleID, read, write, changePermission, admin); + } + + return true; + } + } diff --git a/Dozentenmodulserver/src/main/java/server/StartServer.java b/Dozentenmodulserver/src/main/java/server/StartServer.java index 4d5019e6..7280ee99 100644 --- a/Dozentenmodulserver/src/main/java/server/StartServer.java +++ b/Dozentenmodulserver/src/main/java/server/StartServer.java @@ -5,62 +5,44 @@ import java.io.IOException; import java.util.ArrayList; import java.util.Date; import java.util.List; - import models.Configuration; - import org.apache.log4j.BasicConfigurator; import org.apache.log4j.Logger; import org.ini4j.InvalidFileFormatException; import org.ini4j.Wini; - - import server.BinaryListener; -import org.apache.thrift.protocol.TProtocolFactory; -import org.apache.thrift.server.TServer; -import org.apache.thrift.server.TThreadPoolServer; -import org.apache.thrift.transport.TServerSocket; -import org.apache.thrift.transport.TServerTransport; -import org.apache.thrift.transport.TTransportException; -import org.apache.thrift.server.TThreadPoolServer.Args; + public class StartServer { /** * @param args */ - - private static Logger log = Logger.getLogger( StartServer.class ); + + private static Logger log = Logger.getLogger(StartServer.class); private static List servers = new ArrayList<>(); - - + public static void main(String[] args) { - - - //final ImageServerHandler handler = new ImageServerHandler(); - //final ImageServer.Processor processor = new ImageServer.Processor(handler); - - /* - try{ - TServerTransport serverTransport = new TServerSocket(9090); - //TServer server = new TSimpleServer(new Args(serverTransport).processor(processor)); - TServer server = new TThreadPoolServer(new TThreadPoolServer.Args(serverTransport).processor(processor)); - server.serve(); - } catch (Exception e){ - e.printStackTrace(); - } - */ - - //deprecated + String version = "Version: 1.03"; + String buildDate = "Build Date: 09.09.2014"; + + //get going and show basic information in logfile + BasicConfigurator.configure(); + log.info("***** " + new Date() + " - starting Application *****"); + log.info(new Date() + " - "+version+" , "+buildDate); - //get Configuration + // get Configuration try { - Wini ini=new Wini(new File("Server_Config.ini")); - Configuration.config.setAbsolute_path(ini.get("ftp", "path_absolute")); - Configuration.config.setSql_connection(ini.get("sql", "connection")); + log.info(new Date() + " - Getting config from .ini-file"); + Wini ini = new Wini(new File("Server_Config.ini")); + Configuration.config.setAbsolute_path(ini.get("ftp", + "path_absolute")); + Configuration.config + .setSql_connection(ini.get("sql", "connection")); Configuration.config.setSql_pass(ini.get("sql", "pass")); Configuration.config.setSql_user(ini.get("sql", "user")); } catch (InvalidFileFormatException e1) { @@ -70,32 +52,24 @@ public class StartServer { // TODO Auto-generated catch block e1.printStackTrace(); } - //Start Server - - BasicConfigurator.configure(); - log.info("***** "+ new Date() + " - starting Application *****" ); + // Start Server Thread t; t = new Thread(new BinaryListener()); servers.add(t); t.start(); - //information - //log.info( new Date()+" - new thread created. Now "+servers.size()+" thread(s).\n" ); - // Run more servers - // ... - // Wait for all servers to die for (Thread wait : servers) { boolean success = false; while (!success) { try { wait.join(); success = true; - } catch ( InterruptedException e ) { + } catch (InterruptedException e) { // Do nothing... } } } - log.info( new Date()+" - all Servers shut down, exiting...\n" ); - + log.info(new Date() + " - all Servers shut down, exiting...\n"); + } } diff --git a/Dozentenmodulserver/src/main/java/sql/SQL.java b/Dozentenmodulserver/src/main/java/sql/SQL.java index ec768a40..9a115f09 100644 --- a/Dozentenmodulserver/src/main/java/sql/SQL.java +++ b/Dozentenmodulserver/src/main/java/sql/SQL.java @@ -3,8 +3,10 @@ package sql; import java.sql.*; import java.text.DateFormat; +import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; +import java.util.Calendar; import java.util.Date; import java.util.HashMap; import java.util.List; @@ -230,8 +232,8 @@ public class SQL { } public boolean setImageData(String pk_person, boolean license, - boolean internet, long cpu, long ram, String imagename, - String imagePath, boolean isTemplate, long filesize, String shareMode) { + boolean internet, long cpu, long ram, String imagename,String desc, + String imagePath, boolean isTemplate, long filesize, String shareMode, String pk_os) { DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); @@ -249,10 +251,11 @@ public class SQL { Statement stm = con.createStatement(); String uid = UUID.randomUUID().toString(); - stm.executeUpdate("INSERT INTO `bwLehrpool`.`m_VLData_imageInfo`(`GUID_imageID`,`imageVersion`,`image_name`,`image_path`,`image_lastCall`,`image_create_time`,`image_update_time`,`image_owner`,`image_change_by`,`rec_create_time`,`rec_change_time`,`rec_owner`,`rec_change_by`,`content_operatingSystem`,`status_isCompressed`,`status_isSecure`,`status_isOptimzed`,`status_isValid`,`status_isReady`,`status_isDeleted`,`status_isLastOfficialVersion`,`cond_hasLicenseRestriction`,`cond_hasInternetRestriction`,`cond_minRAM`,`cond_minCPUs`,`image_isTemplate`,`image_filesize`,`image_syncMode`)VALUES('" + stm.executeUpdate("INSERT INTO `bwLehrpool`.`m_VLData_imageInfo`(`GUID_imageID`,`imageVersion`,`image_name`,`image_description`,`image_path`,`image_lastCall`,`image_create_time`,`image_update_time`,`image_owner`,`image_change_by`,`rec_create_time`,`rec_change_time`,`rec_owner`,`rec_change_by`,`content_operatingSystem`,`status_isCompressed`,`status_isSecure`,`status_isOptimzed`,`status_isValid`,`status_isReady`,`status_isDeleted`,`status_isLastOfficialVersion`,`cond_hasLicenseRestriction`,`cond_hasInternetRestriction`,`cond_minRAM`,`cond_minCPUs`,`image_isTemplate`,`image_filesize`,`image_syncMode`)VALUES('" + uid // GUID_imageID + "',1,'" // imageVersion + imagename // image_name + + "','" +desc //image_description + "','" + imagePath // image_path + "','" + formatter.format(new Date()) // image_lastCall + "','" + formatter.format(new Date()) // image_create_time @@ -263,8 +266,8 @@ public class SQL { + "','" + formatter.format(new Date()) // rec_change_time + "','" + pk_person // rec_owner + "','" + pk_person // rec_change_by - + "',0" // content_operatingSystem - + ",1" // status_isCompressed + + "','" + pk_os // content_operatingSystem + + "',1" // status_isCompressed + ",1" // status_isSecure + ",1" // status_isOptimzed + ",1" // status_isValid @@ -296,22 +299,23 @@ public class SQL { Statement stm; List list = new ArrayList(); try { + stm = con.createStatement(); ResultSet res=stm - .executeQuery("SELECT vl.GUID_imageID, vl.imageVersion,vl.image_name, vl.cond_hasLicenseRestriction, os.name, '' as lecture,vl.image_update_time, Concat(u.Nachname,' ',u.Vorname) as user FROM bwLehrpool.m_VLData_imageInfo vl, bwLehrpool.m_operatingSystem os, bwLehrpool.m_user u Where vl.content_operatingSystem=os.operatingSystemID and vl.image_owner=u.userID and vl.image_name not in (SELECT vl.image_name FROM bwLehrpool.m_VLData_imageInfo vl, bwLehrpool.m_operatingSystem os, bwLehrpool.m_VLData_lecture lect, bwLehrpool.m_user u Where vl.content_operatingSystem=os.operatingSystemID and lect.imageID=vl.GUID_imageID and vl.image_owner=u.userID) union SELECT vl.GUID_imageID, vl.imageVersion,vl.image_name, vl.cond_hasLicenseRestriction, os.name, lect.name as lecture, vl.image_update_time, Concat(u.Nachname,' ',u.Vorname) as user FROM bwLehrpool.m_VLData_imageInfo vl, bwLehrpool.m_operatingSystem os, bwLehrpool.m_VLData_lecture lect, bwLehrpool.m_user u Where vl.content_operatingSystem=os.operatingSystemID and lect.imageID=vl.GUID_imageID and vl.image_owner=u.userID;"); + .executeQuery("SELECT vl.GUID_imageID, vl.imageVersion,vl.image_name, vl.cond_hasLicenseRestriction, os.name,os.architecture, '' as lecture,vl.image_update_time, Concat(u.Nachname,' ',u.Vorname) as user, vl.image_isTemplate FROM bwLehrpool.m_VLData_imageInfo vl, bwLehrpool.m_operatingSystem os, bwLehrpool.m_user u Where vl.content_operatingSystem=os.operatingSystemID and vl.image_owner=u.userID and vl.image_name not in (SELECT vl.image_name FROM bwLehrpool.m_VLData_imageInfo vl, bwLehrpool.m_operatingSystem os, bwLehrpool.m_VLData_lecture lect, bwLehrpool.m_user u Where vl.content_operatingSystem=os.operatingSystemID and lect.imageID=vl.GUID_imageID and vl.image_owner=u.userID) union SELECT vl.GUID_imageID, vl.imageVersion,vl.image_name, vl.cond_hasLicenseRestriction, os.name,os.architecture, lect.name as lecture, vl.image_update_time, Concat(u.Nachname,' ',u.Vorname) as user, vl.image_isTemplate FROM bwLehrpool.m_VLData_imageInfo vl, bwLehrpool.m_operatingSystem os, bwLehrpool.m_VLData_lecture lect, bwLehrpool.m_user u Where vl.content_operatingSystem=os.operatingSystemID and lect.imageID=vl.GUID_imageID and vl.image_owner=u.userID;"); + - - while (res.next()) { - + + list.add(new Image(res.getString("GUID_imageID"), res .getString("imageVersion"), res.getString("image_name"), res .getString("cond_hasLicenseRestriction"), res - .getString("name"), res.getString("lecture"), + .getString("name")+" "+res.getString("architecture")+" bit", res.getString("lecture"), res.getString("image_update_time"), res - .getString("user"))); + .getString("user"), res.getString("image_isTemplate"))); } @@ -319,7 +323,7 @@ public class SQL { } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); - } + } return list; @@ -358,9 +362,9 @@ public class SQL { Connection con=getConnection(); Statement stm = con.createStatement(); ResultSet rs=stm - .executeQuery("SELECT name FROM bwLehrpool.m_operatingSystem;"); + .executeQuery("SELECT name, architecture FROM bwLehrpool.m_operatingSystem;"); while (rs.next()) { - list.add(rs.getString("name")); + list.add(rs.getString("name")+" "+rs.getString("architecture")+" bit"); } return list; @@ -487,8 +491,7 @@ public class SQL { Connection con=getConnection(); Statement stm = con.createStatement(); ResultSet data=stm - .executeQuery("SELECT image_name,cond_hasInternetRestriction,cond_hasLicenseRestriction, cond_minCPUs, cond_minRAM, image_syncMode,image_filesize,image_path, image_isTemplate FROM bwLehrpool.m_VLData_imageInfo where GUID_imageID = '" - + id + "' and imageVersion = '" + version + "' ;"); + .executeQuery("SELECT u.mail, i.GUID_imageID, i.imageVersion, i.image_name,i.image_description,i.image_update_time,i.cond_hasInternetRestriction,i.cond_hasLicenseRestriction, i.cond_minCPUs,i.cond_minRAM, i.image_syncMode,i.image_filesize,i.image_path, i.image_isTemplate,os.GuestOS, concat(u.Nachname,' ',u.Vorname) as Owner FROM bwLehrpool.m_VLData_imageInfo i,bwLehrpool.m_user u,bwLehrpool.m_operatingSystem os where i.image_owner=u.userID and i.content_operatingSystem=os.operatingSystemID and GUID_imageID = '" + id + "' and imageVersion = '" + version + "' ;"); while (data.next()) { map.put("name", data.getString("image_name")); map.put("internet", @@ -500,6 +503,14 @@ public class SQL { map.put("filesize", data.getString("image_filesize")); map.put("path", data.getString("image_path")); map.put("template", data.getString("image_isTemplate")); + map.put("os",data.getString("GuestOS")); + map.put("owner", data.getString("Owner")); + map.put("lastupdate", data.getString("image_update_time")); + map.put("desc", data.getString("image_description")); + map.put("id", data.getString("GUID_imageID")); + map.put("version", data.getString("imageVersion")); + map.put("mail", data.getString("mail")); + } con.close(); return map; @@ -511,9 +522,9 @@ public class SQL { return null; } - public int UpdateImageData(String name, String newName,String image_path, + public int UpdateImageData(String name, String newName,String desc,String image_path, boolean license, boolean internet, long cpu, long ram, String id, - String version, boolean isTemplate, long filesize, String shareMode) { + String version, boolean isTemplate, long filesize, String shareMode,String ospk) { try { Connection con=getConnection(); DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); @@ -534,6 +545,8 @@ public class SQL { + newVersion + "',`image_name` = '" + newName + + "',`image_description` = '" + + desc + "',`image_path` = '" + image_path + "',`image_update_time` = '" @@ -550,6 +563,8 @@ public class SQL { + cpu + "',`image_isTemplate` = '" + isTemplate + + "',`content_operatingSystem` = '" + + ospk + "',`image_filesize` = '" + filesize + "',`image_syncMode` = '" @@ -591,7 +606,7 @@ public class SQL { } public int updateLectureData(String pk_image, - int imageversion, String name, String newName, String desc, + String imageversion, String name, String newName, String desc, String shortdesc, String start, String end, boolean isactive, String id) { @@ -644,8 +659,9 @@ public class SQL { ResultSet rs = stm.executeQuery("SELECT lectureID FROM " + "bwLehrpool.m_VLData_lecture WHERE imageID = '" + id + "' AND imageVersion = '" + version + "';"); + boolean ret=rs.first(); con.close(); - return rs.first(); + return ret; } catch (SQLException e) { // TODO Auto-generated catch block @@ -746,7 +762,7 @@ public class SQL { return 0; } catch (SQLException e) { // TODO Auto-generated catch block - log.info(new Date() + " - Failed to UpdateImageData."); + log.info(new Date() + " - Failed to UpdateImagePath."); e.printStackTrace(); } return -1; @@ -773,4 +789,225 @@ public class SQL { return null; } + + public String getOSpk(String os, + String architecture) { + try { + Connection con=getConnection(); + Statement stm = con.createStatement(); + log.info(new Date() + " - Getting PrimaryKey for OS: "+os+" architecture: "+architecture); + ResultSet rs=stm + .executeQuery("SELECT operatingSystemID FROM bwLehrpool.m_operatingSystem where name like '" + + os + + "' and architecture like '" + + architecture + + "';"); + rs.first(); + String pkos=rs.getString("operatingSystemID"); + log.info(new Date() + " - Key is "+pkos); + con.close(); + return pkos; + + } catch (SQLException e) { + // TODO Auto-generated catch block + log.info(new Date() + " - Failed to getOSpk."); + e.printStackTrace(); + } + + return null; + } + + public String getOS(String pk) { + try { + Connection con=getConnection(); + Statement stm = con.createStatement(); + //log.info(new Date() + " - OS: "+os+" architecture: "+architecture); + ResultSet rs=stm + .executeQuery("SELECT name,architecture FROM bwLehrpool.m_operatingSystem where operatingSystemID = '" + + pk + + "';"); + rs.first(); + String os=rs.getString("name")+" "+rs.getString("architecture"); + con.close(); + return os; + + } catch (SQLException e) { + // TODO Auto-generated catch block + log.info(new Date() + " - Failed to getOS."); + e.printStackTrace(); + } + + return null; + } + + public Map getLectureData(String id) { + Map map = new HashMap(); + try { + Connection con=getConnection(); + Statement stm = con.createStatement(); + ResultSet data=stm + .executeQuery("select l.name, l.isActive, l.startTime, l.endTime, l.lastUsed, l.description, i.image_path, l.imageVersion, concat(u.Nachname,' ',u.Vorname) as owner from m_VLData_lecture l, m_user u, m_VLData_imageInfo i where l.admin_owner=u.userID and l.imageID=i.GUID_imageID and lectureID= '" + id + "' ;"); + while (data.next()) { + map.put("name", data.getString("name")); + map.put("isActive", + data.getString("isActive")); + map.put("startTime", data.getString("startTime")); + map.put("endTime", data.getString("endTime")); + map.put("lastUsed", data.getString("lastUsed")); + map.put("desc", data.getString("description")); + map.put("imagepath", data.getString("image_path")); + map.put("imageversion", data.getString("imageVersion")); + map.put("owner", data.getString("Owner")); + + } + con.close(); + return map; + } catch (SQLException e) { + // TODO Auto-generated catch block + log.info(new Date() + " - Failed to getLectureData."); + e.printStackTrace(); + } + return null; + } + + public boolean checkUser(String username) { + Statement stm; + boolean ret=false; + try { + Connection con=getConnection(); + stm = con.createStatement(); + ResultSet rs=stm.executeQuery("Select * from m_user where loginName like '"+username+"'"); + if(rs.next()) + { + ret=true; + log.info(new Date() + " - User " + rs.getString("loginName") + " exist."); + } + else{ + ret=false; + log.info(new Date() + " - User " + rs.getString("loginName") + " not exist."); + } + con.close(); + + + } catch (SQLException e) { + // TODO Auto-generated catch block + + e.printStackTrace(); + } + return ret; + } + + public int setImageRights(String pk_person, String pk_image,int role ,int read, int write, int changePermission, int admin,int linkallowed) { + + + + try { + Connection con=getConnection(); + Statement stm = con.createStatement(); + + String uid = UUID.randomUUID().toString(); + stm.executeUpdate("INSERT INTO `bwLehrpool`.`pm_VLData_image`(`GUID`,`GUID_imageID`,`roleID`,`userID`,`image_read`,`image_write`,`image_admin`,`image_changePermission`,`link_allowed`)VALUES('" + + uid + + "','" + + pk_image + + "','" + + role + + "','" + + pk_person + + "','" + + read + + "','" + + write + + "','" + + admin + + "','" + + changePermission + + "','" + + linkallowed+ "');"); + con.commit(); + con.close(); + } catch (SQLException e) { + // TODO Auto-generated catch block + log.info(new Date() + " - Failed to setImageRights."); + e.printStackTrace(); + } + return 0; + + } + public int getRoleID(String role) { + + + try { + Connection con=getConnection(); + Statement stm = con.createStatement(); + + ResultSet rs=stm + .executeQuery("SELECT roleID FROM bwLehrpool.m_role where name like '"+ role+ "';"); + rs.first(); + + return rs.getInt("roleID"); + + } catch (SQLException e) { + // TODO Auto-generated catch block + log.info(new Date() + " - Failed to getRoleID."); + e.printStackTrace(); + } + return -1; + } + public int setLectureRights(String pk_person, String pk_lecture,int role ,int read, int write, int changePermission, int admin) { + + + + try { + Connection con=getConnection(); + Statement stm = con.createStatement(); + + String uid = UUID.randomUUID().toString(); + stm.executeUpdate("INSERT INTO `bwLehrpool`.`pm_VLData_lecture`(`GUID`,`lectureID`,`roleID`,`userID`,`rec_read`,`rec_write`,`rec_admin`,`rec_changePermission`)VALUES('" + + uid + + "','" + + pk_lecture + + "','" + + role + + "','" + + pk_person + + "','" + + read + + "','" + + write + + "','" + + admin + + "','" + + changePermission+ "');"); + con.commit(); + con.close(); + } catch (SQLException e) { + // TODO Auto-generated catch block + log.info(new Date() + " - Failed to setLectureRights."); + e.printStackTrace(); + } + return 0; + + } + public String getLectureID(String name) { + String id=null; + try { + Connection con=getConnection(); + Statement stm = con.createStatement(); + ResultSet lecture= stm + .executeQuery("SELECT lectureID FROM bwLehrpool.m_VLData_lecture where name like '" + + name + "';"); + while (lecture.next()) { + id=lecture.getString("lectureID"); + + } + con.close(); + return id; + } catch (SQLException e) { + // TODO Auto-generated catch block + log.info(new Date() + " - Failed to LectureID."); + e.printStackTrace(); + } + return id; + } } diff --git a/Dozentenmodulserver/src/main/java/util/XMLCreator.java b/Dozentenmodulserver/src/main/java/util/XMLCreator.java index 564543fa..46cdef5d 100644 --- a/Dozentenmodulserver/src/main/java/util/XMLCreator.java +++ b/Dozentenmodulserver/src/main/java/util/XMLCreator.java @@ -46,7 +46,7 @@ public class XMLCreator { // phone param not existing - private String query = "SELECT m_VLData_imageInfo.image_path ,vorname, nachname, mail, shortdescription, description, m_operatingSystem.name as os, m_VLData_lecture.admin_changeTime as time, m_VLData_lecture.name as lectureName, m_user.institution as userInstitution, m_user.loginName as loginName, m_institution.name as institutionName " + private String query = "SELECT m_VLData_imageInfo.image_path ,vorname, nachname, mail, shortdescription, description, m_operatingSystem.guestOS as os,m_VLData_lecture.admin_createTime as createtime ,m_VLData_lecture.admin_changeTime as time, m_VLData_lecture.name as lectureName, m_user.institution as userInstitution, m_user.loginName as loginName, m_VLData_lecture.isActive, m_institution.name as institutionName " + "FROM bwLehrpool.m_VLData_lecture, bwLehrpool.m_VLData_imageInfo, bwLehrpool.m_user, bwLehrpool.m_operatingSystem, bwLehrpool.m_institution " + "WHERE m_user.userID = m_VLData_lecture.admin_owner " + "AND m_VLData_imageInfo.GUID_imageID = m_VLData_lecture.imageID " @@ -127,13 +127,13 @@ public class XMLCreator { entry.appendChild(prio); prio.setAttribute("param", "0"); - Comment fComment = doc.createComment("Diesen Abschnitt ergänzen"); + Comment fComment = doc.createComment("Diesen Abschnitt erg�nzen"); entry.appendChild(fComment); Element imgName = doc.createElement("image_name"); entry.appendChild(imgName); imageName = rs.getString("image_path").substring( - rs.getString("image_path").lastIndexOf("/")+1); //+1 um das führende "/" los zu werden + rs.getString("image_path").lastIndexOf("/")+1); //+1 um das f�hrende "/" los zu werden imgName.setAttribute("param", imageName); @@ -165,7 +165,7 @@ public class XMLCreator { entry.appendChild(os); os.setAttribute("param", rs.getString("os")); - Comment sComment = doc.createComment("Diesen Abschnitt ergänzen"); + Comment sComment = doc.createComment("Diesen Abschnitt erg�nzen"); entry.appendChild(sComment); // static content following - second part of xml descriptor @@ -189,7 +189,13 @@ public class XMLCreator { Element active = doc.createElement("active"); entry.appendChild(active); - active.setAttribute("param", "true"); + + //set activity + if(rs.getString("isActive").equals("1")){ + active.setAttribute("param", "true"); + } else if(rs.getString("isActive").equals("0")){ + active.setAttribute("param", "false"); + } Element pools = doc.createElement("pools"); entry.appendChild(pools); @@ -206,8 +212,7 @@ public class XMLCreator { DOMSource source = new DOMSource(doc); //Set XML-filename - DateFormat formatter = new SimpleDateFormat("yyyMMddhhmmss"); - xmlName=formatter.format(new Date()) + "_" + rs.getString("institutionName") + "_" + rs.getString("loginName") + "_" + rs.getString("lectureName") + ".xml"; + xmlName=rs.getString("createtime").substring(0, rs.getString("createtime").length() - 2).replace("-", "").replace(" ", "").replace(":", "") + "_" + rs.getString("institutionName") + "_" + rs.getString("loginName") + "_" + rs.getString("lectureName") + ".xml"; //Write file StreamResult result = new StreamResult(new File(filePath+ xmlName)); // see filepath at top of class -- cgit v1.2.3-55-g7522