From 664164ce9bd94f363aff220a1a8b696989438b66 Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Fri, 31 Oct 2014 10:01:06 +0100 Subject: -image templates are now listed a such, independently of the logged in user -Lectures can now be connected to image templates --- .../src/main/java/gui/image/SearchImage_GUI.java | 49 +- .../java/gui/lecture/CreateLectureLink_GUI.java | 2 +- .../src/main/java/server/ServerHandler.java | 8 +- .../src/main/java/server/generated/Server.java | 2358 +++++++++++++------- dozentenmodulserver/src/main/java/sql/SQL.java | 60 +- dozentenmodulserver/thrift/server.thrift | 1 + 6 files changed, 1677 insertions(+), 801 deletions(-) diff --git a/dozentenmodul/src/main/java/gui/image/SearchImage_GUI.java b/dozentenmodul/src/main/java/gui/image/SearchImage_GUI.java index afbbbab2..aaa6f9e8 100644 --- a/dozentenmodul/src/main/java/gui/image/SearchImage_GUI.java +++ b/dozentenmodul/src/main/java/gui/image/SearchImage_GUI.java @@ -168,7 +168,7 @@ public class SearchImage_GUI extends JFrame { public void windowOpened(WindowEvent arg0) { initTableModel(modelAll); initTableModel(modelMyImages); - initTableModel(modelPublicVorlagen); + initTableModelTemplates(modelPublicVorlagen); // auszublendende Angaben // 1=Lizenzpflichtig @@ -971,6 +971,53 @@ public class SearchImage_GUI extends JFrame { } return model; } + + + // Initiale Beffuelung eines Table models + public DefaultTableModel initTableModelTemplates(DefaultTableModel model) { + List images; + try { + // Hole eine Liste der Images + images = client.getImageListAllTemplates(); + + Iterator i = images.iterator(); + SimpleDateFormat in = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + SimpleDateFormat out = new SimpleDateFormat("dd.MM.yyyy HH:mm:ss"); + int x = 0; + + while (i.hasNext()) { + // erzeuge Objekte fuer die Tabelle + Object[] obj = { images.get(x).getImageName(), + images.get(x).getLicenseRestriction(), + images.get(x).getOsName(), + images.get(x).getLectureName(), + images.get(x).getUserData(), + out.format(in.parse(images.get(x).updateTime)), + images.get(x).id, images.get(x).getVersion(), + images.get(x).getIsTemplate(), + images.get(x).getDescription()}; + // Fuege diese Objekte der Tabelle hinzu + model.addRow(obj); + x++; + i.next(); + + } + + return model; + } catch (TException | ParseException e1) { + // TODO Auto-generated catch block + e1.printStackTrace(); + JOptionPane.showMessageDialog(c, + e1.getCause() + "\n" + e1.getStackTrace(), "Debug-Message", + JOptionPane.ERROR_MESSAGE); + } + return model; + }// end initTableModelTemplates + + + + + private void resetImageInfo() { diff --git a/dozentenmodul/src/main/java/gui/lecture/CreateLectureLink_GUI.java b/dozentenmodul/src/main/java/gui/lecture/CreateLectureLink_GUI.java index f2377585..25c59fa7 100644 --- a/dozentenmodul/src/main/java/gui/lecture/CreateLectureLink_GUI.java +++ b/dozentenmodul/src/main/java/gui/lecture/CreateLectureLink_GUI.java @@ -765,7 +765,7 @@ public class CreateLectureLink_GUI extends JFrame { i.next(); } - + return model; } diff --git a/dozentenmodulserver/src/main/java/server/ServerHandler.java b/dozentenmodulserver/src/main/java/server/ServerHandler.java index a6412e24..054ab706 100644 --- a/dozentenmodulserver/src/main/java/server/ServerHandler.java +++ b/dozentenmodulserver/src/main/java/server/ServerHandler.java @@ -213,7 +213,7 @@ public class ServerHandler implements Server.Iface { @Override public List getImageListPermissionLink(String userID) throws TException { - return sql.getImageListPermissionRead(userID); + return sql.getImageListPermissionLink(userID); } @Override @@ -222,6 +222,12 @@ public class ServerHandler implements Server.Iface { return sql.getImageListPermissionAdmin(userID); } + @Override + public List getImageListAllTemplates() + throws TException { + return sql.getImageListAllTemplates(); + } + @Override public List getAllOS() throws TException { diff --git a/dozentenmodulserver/src/main/java/server/generated/Server.java b/dozentenmodulserver/src/main/java/server/generated/Server.java index c87659ae..088b4293 100644 --- a/dozentenmodulserver/src/main/java/server/generated/Server.java +++ b/dozentenmodulserver/src/main/java/server/generated/Server.java @@ -54,6 +54,8 @@ public class Server { public List getImageListPermissionAdmin(String userID) throws org.apache.thrift.TException; + public List getImageListAllTemplates() throws org.apache.thrift.TException; + public List getLectureList() throws org.apache.thrift.TException; public List getLectureListPermissionRead(String userID) throws org.apache.thrift.TException; @@ -134,6 +136,8 @@ public class Server { public void getImageListPermissionAdmin(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getImageListAllTemplates(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getLectureList(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getLectureListPermissionRead(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -438,6 +442,28 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImageListPermissionAdmin failed: unknown result"); } + public List getImageListAllTemplates() throws org.apache.thrift.TException + { + send_getImageListAllTemplates(); + return recv_getImageListAllTemplates(); + } + + public void send_getImageListAllTemplates() throws org.apache.thrift.TException + { + getImageListAllTemplates_args args = new getImageListAllTemplates_args(); + sendBase("getImageListAllTemplates", args); + } + + public List recv_getImageListAllTemplates() throws org.apache.thrift.TException + { + getImageListAllTemplates_result result = new getImageListAllTemplates_result(); + receiveBase(result, "getImageListAllTemplates"); + if (result.isSetSuccess()) { + return result.success; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImageListAllTemplates failed: unknown result"); + } + public List getLectureList() throws org.apache.thrift.TException { send_getLectureList(); @@ -1532,6 +1558,35 @@ public class Server { } } + public void getImageListAllTemplates(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + getImageListAllTemplates_call method_call = new getImageListAllTemplates_call(resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class getImageListAllTemplates_call extends org.apache.thrift.async.TAsyncMethodCall { + public getImageListAllTemplates_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getImageListAllTemplates", org.apache.thrift.protocol.TMessageType.CALL, 0)); + getImageListAllTemplates_args args = new getImageListAllTemplates_args(); + args.write(prot); + prot.writeMessageEnd(); + } + + public List getResult() throws org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_getImageListAllTemplates(); + } + } + public void getLectureList(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getLectureList_call method_call = new getLectureList_call(resultHandler, this, ___protocolFactory, ___transport); @@ -2719,6 +2774,7 @@ public class Server { processMap.put("getImageListPermissionRead", new getImageListPermissionRead()); processMap.put("getImageListPermissionLink", new getImageListPermissionLink()); processMap.put("getImageListPermissionAdmin", new getImageListPermissionAdmin()); + processMap.put("getImageListAllTemplates", new getImageListAllTemplates()); processMap.put("getLectureList", new getLectureList()); processMap.put("getLectureListPermissionRead", new getLectureListPermissionRead()); processMap.put("getLectureListPermissionWrite", new getLectureListPermissionWrite()); @@ -2933,6 +2989,26 @@ public class Server { } } + public static class getImageListAllTemplates extends org.apache.thrift.ProcessFunction { + public getImageListAllTemplates() { + super("getImageListAllTemplates"); + } + + public getImageListAllTemplates_args getEmptyArgsInstance() { + return new getImageListAllTemplates_args(); + } + + protected boolean isOneway() { + return false; + } + + public getImageListAllTemplates_result getResult(I iface, getImageListAllTemplates_args args) throws org.apache.thrift.TException { + getImageListAllTemplates_result result = new getImageListAllTemplates_result(); + result.success = iface.getImageListAllTemplates(); + return result; + } + } + public static class getLectureList extends org.apache.thrift.ProcessFunction { public getLectureList() { super("getLectureList"); @@ -3549,6 +3625,7 @@ public class Server { processMap.put("getImageListPermissionRead", new getImageListPermissionRead()); processMap.put("getImageListPermissionLink", new getImageListPermissionLink()); processMap.put("getImageListPermissionAdmin", new getImageListPermissionAdmin()); + processMap.put("getImageListAllTemplates", new getImageListAllTemplates()); processMap.put("getLectureList", new getLectureList()); processMap.put("getLectureListPermissionRead", new getLectureListPermissionRead()); processMap.put("getLectureListPermissionWrite", new getLectureListPermissionWrite()); @@ -4042,6 +4119,57 @@ public class Server { } } + public static class getImageListAllTemplates extends org.apache.thrift.AsyncProcessFunction> { + public getImageListAllTemplates() { + super("getImageListAllTemplates"); + } + + public getImageListAllTemplates_args getEmptyArgsInstance() { + return new getImageListAllTemplates_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getImageListAllTemplates_result result = new getImageListAllTemplates_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getImageListAllTemplates_result result = new getImageListAllTemplates_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, getImageListAllTemplates_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getImageListAllTemplates(resultHandler); + } + } + public static class getLectureList extends org.apache.thrift.AsyncProcessFunction> { public getLectureList() { super("getLectureList"); @@ -13781,14 +13909,14 @@ public class Server { } - public static class getLectureList_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("getLectureList_args"); + public static class getImageListAllTemplates_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("getImageListAllTemplates_args"); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getLectureList_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLectureList_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageListAllTemplates_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageListAllTemplates_argsTupleSchemeFactory()); } @@ -13851,20 +13979,20 @@ public class Server { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureList_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListAllTemplates_args.class, metaDataMap); } - public getLectureList_args() { + public getImageListAllTemplates_args() { } /** * Performs a deep copy on other. */ - public getLectureList_args(getLectureList_args other) { + public getImageListAllTemplates_args(getImageListAllTemplates_args other) { } - public getLectureList_args deepCopy() { - return new getLectureList_args(this); + public getImageListAllTemplates_args deepCopy() { + return new getImageListAllTemplates_args(this); } @Override @@ -13897,12 +14025,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getLectureList_args) - return this.equals((getLectureList_args)that); + if (that instanceof getImageListAllTemplates_args) + return this.equals((getImageListAllTemplates_args)that); return false; } - public boolean equals(getLectureList_args that) { + public boolean equals(getImageListAllTemplates_args that) { if (that == null) return false; @@ -13915,7 +14043,7 @@ public class Server { } @Override - public int compareTo(getLectureList_args other) { + public int compareTo(getImageListAllTemplates_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -13939,7 +14067,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLectureList_args("); + StringBuilder sb = new StringBuilder("getImageListAllTemplates_args("); boolean first = true; sb.append(")"); @@ -13967,15 +14095,15 @@ public class Server { } } - private static class getLectureList_argsStandardSchemeFactory implements SchemeFactory { - public getLectureList_argsStandardScheme getScheme() { - return new getLectureList_argsStandardScheme(); + private static class getImageListAllTemplates_argsStandardSchemeFactory implements SchemeFactory { + public getImageListAllTemplates_argsStandardScheme getScheme() { + return new getImageListAllTemplates_argsStandardScheme(); } } - private static class getLectureList_argsStandardScheme extends StandardScheme { + private static class getImageListAllTemplates_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureList_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListAllTemplates_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -13996,7 +14124,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureList_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListAllTemplates_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -14006,39 +14134,39 @@ public class Server { } - private static class getLectureList_argsTupleSchemeFactory implements SchemeFactory { - public getLectureList_argsTupleScheme getScheme() { - return new getLectureList_argsTupleScheme(); + private static class getImageListAllTemplates_argsTupleSchemeFactory implements SchemeFactory { + public getImageListAllTemplates_argsTupleScheme getScheme() { + return new getImageListAllTemplates_argsTupleScheme(); } } - private static class getLectureList_argsTupleScheme extends TupleScheme { + private static class getImageListAllTemplates_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getLectureList_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImageListAllTemplates_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getLectureList_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImageListAllTemplates_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; } } } - public static class getLectureList_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("getLectureList_result"); + public static class getImageListAllTemplates_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("getImageListAllTemplates_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getLectureList_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLectureList_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageListAllTemplates_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageListAllTemplates_resultTupleSchemeFactory()); } - public List success; // required + public List 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 { @@ -14104,16 +14232,16 @@ 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.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Lecture.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Image.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureList_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListAllTemplates_result.class, metaDataMap); } - public getLectureList_result() { + public getImageListAllTemplates_result() { } - public getLectureList_result( - List success) + public getImageListAllTemplates_result( + List success) { this(); this.success = success; @@ -14122,18 +14250,18 @@ public class Server { /** * Performs a deep copy on other. */ - public getLectureList_result(getLectureList_result other) { + public getImageListAllTemplates_result(getImageListAllTemplates_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (Lecture other_element : other.success) { - __this__success.add(new Lecture(other_element)); + List __this__success = new ArrayList(other.success.size()); + for (Image other_element : other.success) { + __this__success.add(new Image(other_element)); } this.success = __this__success; } } - public getLectureList_result deepCopy() { - return new getLectureList_result(this); + public getImageListAllTemplates_result deepCopy() { + return new getImageListAllTemplates_result(this); } @Override @@ -14145,22 +14273,22 @@ public class Server { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(Lecture elem) { + public void addToSuccess(Image elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public getLectureList_result setSuccess(List success) { + public getImageListAllTemplates_result setSuccess(List success) { this.success = success; return this; } @@ -14186,7 +14314,7 @@ public class Server { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -14219,12 +14347,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getLectureList_result) - return this.equals((getLectureList_result)that); + if (that instanceof getImageListAllTemplates_result) + return this.equals((getImageListAllTemplates_result)that); return false; } - public boolean equals(getLectureList_result that) { + public boolean equals(getImageListAllTemplates_result that) { if (that == null) return false; @@ -14246,7 +14374,7 @@ public class Server { } @Override - public int compareTo(getLectureList_result other) { + public int compareTo(getImageListAllTemplates_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -14280,7 +14408,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLectureList_result("); + StringBuilder sb = new StringBuilder("getImageListAllTemplates_result("); boolean first = true; sb.append("success:"); @@ -14315,15 +14443,15 @@ public class Server { } } - private static class getLectureList_resultStandardSchemeFactory implements SchemeFactory { - public getLectureList_resultStandardScheme getScheme() { - return new getLectureList_resultStandardScheme(); + private static class getImageListAllTemplates_resultStandardSchemeFactory implements SchemeFactory { + public getImageListAllTemplates_resultStandardScheme getScheme() { + return new getImageListAllTemplates_resultStandardScheme(); } } - private static class getLectureList_resultStandardScheme extends StandardScheme { + private static class getImageListAllTemplates_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureList_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListAllTemplates_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -14337,11 +14465,11 @@ public class Server { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list32 = iprot.readListBegin(); - struct.success = new ArrayList(_list32.size); + struct.success = new ArrayList(_list32.size); for (int _i33 = 0; _i33 < _list32.size; ++_i33) { - Lecture _elem34; - _elem34 = new Lecture(); + Image _elem34; + _elem34 = new Image(); _elem34.read(iprot); struct.success.add(_elem34); } @@ -14363,7 +14491,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureList_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListAllTemplates_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -14371,7 +14499,7 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Lecture _iter35 : struct.success) + for (Image _iter35 : struct.success) { _iter35.write(oprot); } @@ -14385,16 +14513,16 @@ public class Server { } - private static class getLectureList_resultTupleSchemeFactory implements SchemeFactory { - public getLectureList_resultTupleScheme getScheme() { - return new getLectureList_resultTupleScheme(); + private static class getImageListAllTemplates_resultTupleSchemeFactory implements SchemeFactory { + public getImageListAllTemplates_resultTupleScheme getScheme() { + return new getImageListAllTemplates_resultTupleScheme(); } } - private static class getLectureList_resultTupleScheme extends TupleScheme { + private static class getImageListAllTemplates_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getLectureList_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImageListAllTemplates_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -14404,7 +14532,7 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Lecture _iter36 : struct.success) + for (Image _iter36 : struct.success) { _iter36.write(oprot); } @@ -14413,17 +14541,17 @@ public class Server { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getLectureList_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImageListAllTemplates_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list37 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list37.size); + struct.success = new ArrayList(_list37.size); for (int _i38 = 0; _i38 < _list37.size; ++_i38) { - Lecture _elem39; - _elem39 = new Lecture(); + Image _elem39; + _elem39 = new Image(); _elem39.read(iprot); struct.success.add(_elem39); } @@ -14435,22 +14563,20 @@ public class Server { } - public static class getLectureListPermissionRead_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("getLectureListPermissionRead_args"); + public static class getLectureList_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("getLectureList_args"); - private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userID", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getLectureListPermissionRead_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLectureListPermissionRead_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getLectureList_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureList_argsTupleSchemeFactory()); } - public String userID; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - USER_ID((short)1, "userID"); +; private static final Map byName = new HashMap(); @@ -14465,8 +14591,6 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // USER_ID - return USER_ID; default: return null; } @@ -14505,87 +14629,37 @@ public class Server { return _fieldName; } } - - // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureListPermissionRead_args.class, metaDataMap); - } - - public getLectureListPermissionRead_args() { + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureList_args.class, metaDataMap); } - public getLectureListPermissionRead_args( - String userID) - { - this(); - this.userID = userID; + public getLectureList_args() { } /** * Performs a deep copy on other. */ - public getLectureListPermissionRead_args(getLectureListPermissionRead_args other) { - if (other.isSetUserID()) { - this.userID = other.userID; - } + public getLectureList_args(getLectureList_args other) { } - public getLectureListPermissionRead_args deepCopy() { - return new getLectureListPermissionRead_args(this); + public getLectureList_args deepCopy() { + return new getLectureList_args(this); } @Override public void clear() { - this.userID = null; - } - - public String getUserID() { - return this.userID; - } - - public getLectureListPermissionRead_args setUserID(String userID) { - this.userID = userID; - return this; - } - - public void unsetUserID() { - this.userID = null; - } - - /** Returns true if field userID is set (has been assigned a value) and false otherwise */ - public boolean isSetUserID() { - return this.userID != null; - } - - public void setUserIDIsSet(boolean value) { - if (!value) { - this.userID = null; - } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case USER_ID: - if (value == null) { - unsetUserID(); - } else { - setUserID((String)value); - } - break; - } } public Object getFieldValue(_Fields field) { switch (field) { - case USER_ID: - return getUserID(); - } throw new IllegalStateException(); } @@ -14597,8 +14671,6 @@ public class Server { } switch (field) { - case USER_ID: - return isSetUserID(); } throw new IllegalStateException(); } @@ -14607,24 +14679,15 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getLectureListPermissionRead_args) - return this.equals((getLectureListPermissionRead_args)that); + if (that instanceof getLectureList_args) + return this.equals((getLectureList_args)that); return false; } - public boolean equals(getLectureListPermissionRead_args that) { + public boolean equals(getLectureList_args that) { if (that == null) return false; - boolean this_present_userID = true && this.isSetUserID(); - boolean that_present_userID = true && that.isSetUserID(); - if (this_present_userID || that_present_userID) { - if (!(this_present_userID && that_present_userID)) - return false; - if (!this.userID.equals(that.userID)) - return false; - } - return true; } @@ -14634,23 +14697,13 @@ public class Server { } @Override - public int compareTo(getLectureListPermissionRead_args other) { + public int compareTo(getLectureList_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetUserID()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -14668,16 +14721,9 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLectureListPermissionRead_args("); + StringBuilder sb = new StringBuilder("getLectureList_args("); boolean first = true; - sb.append("userID:"); - if (this.userID == null) { - sb.append("null"); - } else { - sb.append(this.userID); - } - first = false; sb.append(")"); return sb.toString(); } @@ -14703,15 +14749,15 @@ public class Server { } } - private static class getLectureListPermissionRead_argsStandardSchemeFactory implements SchemeFactory { - public getLectureListPermissionRead_argsStandardScheme getScheme() { - return new getLectureListPermissionRead_argsStandardScheme(); + private static class getLectureList_argsStandardSchemeFactory implements SchemeFactory { + public getLectureList_argsStandardScheme getScheme() { + return new getLectureList_argsStandardScheme(); } } - private static class getLectureListPermissionRead_argsStandardScheme extends StandardScheme { + private static class getLectureList_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureListPermissionRead_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureList_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -14721,14 +14767,6 @@ public class Server { break; } switch (schemeField.id) { - case 1: // USER_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.userID = iprot.readString(); - struct.setUserIDIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -14740,64 +14778,46 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureListPermissionRead_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureList_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.userID != null) { - oprot.writeFieldBegin(USER_ID_FIELD_DESC); - oprot.writeString(struct.userID); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getLectureListPermissionRead_argsTupleSchemeFactory implements SchemeFactory { - public getLectureListPermissionRead_argsTupleScheme getScheme() { - return new getLectureListPermissionRead_argsTupleScheme(); + private static class getLectureList_argsTupleSchemeFactory implements SchemeFactory { + public getLectureList_argsTupleScheme getScheme() { + return new getLectureList_argsTupleScheme(); } } - private static class getLectureListPermissionRead_argsTupleScheme extends TupleScheme { + private static class getLectureList_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionRead_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getLectureList_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetUserID()) { - optionals.set(0); - } - oprot.writeBitSet(optionals, 1); - if (struct.isSetUserID()) { - oprot.writeString(struct.userID); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionRead_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getLectureList_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.userID = iprot.readString(); - struct.setUserIDIsSet(true); - } } } } - public static class getLectureListPermissionRead_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("getLectureListPermissionRead_result"); + public static class getLectureList_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("getLectureList_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getLectureListPermissionRead_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLectureListPermissionRead_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getLectureList_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureList_resultTupleSchemeFactory()); } public List success; // required @@ -14868,13 +14888,13 @@ public class Server { new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Lecture.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureListPermissionRead_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureList_result.class, metaDataMap); } - public getLectureListPermissionRead_result() { + public getLectureList_result() { } - public getLectureListPermissionRead_result( + public getLectureList_result( List success) { this(); @@ -14884,7 +14904,7 @@ public class Server { /** * Performs a deep copy on other. */ - public getLectureListPermissionRead_result(getLectureListPermissionRead_result other) { + public getLectureList_result(getLectureList_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (Lecture other_element : other.success) { @@ -14894,8 +14914,8 @@ public class Server { } } - public getLectureListPermissionRead_result deepCopy() { - return new getLectureListPermissionRead_result(this); + public getLectureList_result deepCopy() { + return new getLectureList_result(this); } @Override @@ -14922,7 +14942,7 @@ public class Server { return this.success; } - public getLectureListPermissionRead_result setSuccess(List success) { + public getLectureList_result setSuccess(List success) { this.success = success; return this; } @@ -14981,12 +15001,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getLectureListPermissionRead_result) - return this.equals((getLectureListPermissionRead_result)that); + if (that instanceof getLectureList_result) + return this.equals((getLectureList_result)that); return false; } - public boolean equals(getLectureListPermissionRead_result that) { + public boolean equals(getLectureList_result that) { if (that == null) return false; @@ -15008,7 +15028,7 @@ public class Server { } @Override - public int compareTo(getLectureListPermissionRead_result other) { + public int compareTo(getLectureList_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -15042,7 +15062,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLectureListPermissionRead_result("); + StringBuilder sb = new StringBuilder("getLectureList_result("); boolean first = true; sb.append("success:"); @@ -15077,15 +15097,15 @@ public class Server { } } - private static class getLectureListPermissionRead_resultStandardSchemeFactory implements SchemeFactory { - public getLectureListPermissionRead_resultStandardScheme getScheme() { - return new getLectureListPermissionRead_resultStandardScheme(); + private static class getLectureList_resultStandardSchemeFactory implements SchemeFactory { + public getLectureList_resultStandardScheme getScheme() { + return new getLectureList_resultStandardScheme(); } } - private static class getLectureListPermissionRead_resultStandardScheme extends StandardScheme { + private static class getLectureList_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureListPermissionRead_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureList_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -15125,7 +15145,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureListPermissionRead_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureList_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -15147,16 +15167,16 @@ public class Server { } - private static class getLectureListPermissionRead_resultTupleSchemeFactory implements SchemeFactory { - public getLectureListPermissionRead_resultTupleScheme getScheme() { - return new getLectureListPermissionRead_resultTupleScheme(); + private static class getLectureList_resultTupleSchemeFactory implements SchemeFactory { + public getLectureList_resultTupleScheme getScheme() { + return new getLectureList_resultTupleScheme(); } } - private static class getLectureListPermissionRead_resultTupleScheme extends TupleScheme { + private static class getLectureList_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionRead_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getLectureList_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -15175,7 +15195,7 @@ public class Server { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionRead_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getLectureList_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -15197,15 +15217,15 @@ public class Server { } - public static class getLectureListPermissionWrite_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("getLectureListPermissionWrite_args"); + public static class getLectureListPermissionRead_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("getLectureListPermissionRead_args"); private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userID", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getLectureListPermissionWrite_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLectureListPermissionWrite_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getLectureListPermissionRead_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureListPermissionRead_argsTupleSchemeFactory()); } public String userID; // required @@ -15275,13 +15295,13 @@ public class Server { tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureListPermissionWrite_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureListPermissionRead_args.class, metaDataMap); } - public getLectureListPermissionWrite_args() { + public getLectureListPermissionRead_args() { } - public getLectureListPermissionWrite_args( + public getLectureListPermissionRead_args( String userID) { this(); @@ -15291,14 +15311,14 @@ public class Server { /** * Performs a deep copy on other. */ - public getLectureListPermissionWrite_args(getLectureListPermissionWrite_args other) { + public getLectureListPermissionRead_args(getLectureListPermissionRead_args other) { if (other.isSetUserID()) { this.userID = other.userID; } } - public getLectureListPermissionWrite_args deepCopy() { - return new getLectureListPermissionWrite_args(this); + public getLectureListPermissionRead_args deepCopy() { + return new getLectureListPermissionRead_args(this); } @Override @@ -15310,7 +15330,7 @@ public class Server { return this.userID; } - public getLectureListPermissionWrite_args setUserID(String userID) { + public getLectureListPermissionRead_args setUserID(String userID) { this.userID = userID; return this; } @@ -15369,12 +15389,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getLectureListPermissionWrite_args) - return this.equals((getLectureListPermissionWrite_args)that); + if (that instanceof getLectureListPermissionRead_args) + return this.equals((getLectureListPermissionRead_args)that); return false; } - public boolean equals(getLectureListPermissionWrite_args that) { + public boolean equals(getLectureListPermissionRead_args that) { if (that == null) return false; @@ -15396,7 +15416,7 @@ public class Server { } @Override - public int compareTo(getLectureListPermissionWrite_args other) { + public int compareTo(getLectureListPermissionRead_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -15430,7 +15450,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLectureListPermissionWrite_args("); + StringBuilder sb = new StringBuilder("getLectureListPermissionRead_args("); boolean first = true; sb.append("userID:"); @@ -15465,15 +15485,15 @@ public class Server { } } - private static class getLectureListPermissionWrite_argsStandardSchemeFactory implements SchemeFactory { - public getLectureListPermissionWrite_argsStandardScheme getScheme() { - return new getLectureListPermissionWrite_argsStandardScheme(); + private static class getLectureListPermissionRead_argsStandardSchemeFactory implements SchemeFactory { + public getLectureListPermissionRead_argsStandardScheme getScheme() { + return new getLectureListPermissionRead_argsStandardScheme(); } } - private static class getLectureListPermissionWrite_argsStandardScheme extends StandardScheme { + private static class getLectureListPermissionRead_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureListPermissionWrite_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureListPermissionRead_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -15502,7 +15522,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureListPermissionWrite_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureListPermissionRead_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -15517,16 +15537,16 @@ public class Server { } - private static class getLectureListPermissionWrite_argsTupleSchemeFactory implements SchemeFactory { - public getLectureListPermissionWrite_argsTupleScheme getScheme() { - return new getLectureListPermissionWrite_argsTupleScheme(); + private static class getLectureListPermissionRead_argsTupleSchemeFactory implements SchemeFactory { + public getLectureListPermissionRead_argsTupleScheme getScheme() { + return new getLectureListPermissionRead_argsTupleScheme(); } } - private static class getLectureListPermissionWrite_argsTupleScheme extends TupleScheme { + private static class getLectureListPermissionRead_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionWrite_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionRead_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserID()) { @@ -15539,7 +15559,7 @@ public class Server { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionWrite_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionRead_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -15551,15 +15571,15 @@ public class Server { } - public static class getLectureListPermissionWrite_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("getLectureListPermissionWrite_result"); + public static class getLectureListPermissionRead_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("getLectureListPermissionRead_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getLectureListPermissionWrite_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLectureListPermissionWrite_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getLectureListPermissionRead_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureListPermissionRead_resultTupleSchemeFactory()); } public List success; // required @@ -15630,13 +15650,13 @@ public class Server { new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Lecture.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureListPermissionWrite_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureListPermissionRead_result.class, metaDataMap); } - public getLectureListPermissionWrite_result() { + public getLectureListPermissionRead_result() { } - public getLectureListPermissionWrite_result( + public getLectureListPermissionRead_result( List success) { this(); @@ -15646,7 +15666,7 @@ public class Server { /** * Performs a deep copy on other. */ - public getLectureListPermissionWrite_result(getLectureListPermissionWrite_result other) { + public getLectureListPermissionRead_result(getLectureListPermissionRead_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (Lecture other_element : other.success) { @@ -15656,8 +15676,8 @@ public class Server { } } - public getLectureListPermissionWrite_result deepCopy() { - return new getLectureListPermissionWrite_result(this); + public getLectureListPermissionRead_result deepCopy() { + return new getLectureListPermissionRead_result(this); } @Override @@ -15684,7 +15704,7 @@ public class Server { return this.success; } - public getLectureListPermissionWrite_result setSuccess(List success) { + public getLectureListPermissionRead_result setSuccess(List success) { this.success = success; return this; } @@ -15743,12 +15763,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getLectureListPermissionWrite_result) - return this.equals((getLectureListPermissionWrite_result)that); + if (that instanceof getLectureListPermissionRead_result) + return this.equals((getLectureListPermissionRead_result)that); return false; } - public boolean equals(getLectureListPermissionWrite_result that) { + public boolean equals(getLectureListPermissionRead_result that) { if (that == null) return false; @@ -15770,7 +15790,7 @@ public class Server { } @Override - public int compareTo(getLectureListPermissionWrite_result other) { + public int compareTo(getLectureListPermissionRead_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -15804,7 +15824,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLectureListPermissionWrite_result("); + StringBuilder sb = new StringBuilder("getLectureListPermissionRead_result("); boolean first = true; sb.append("success:"); @@ -15839,15 +15859,15 @@ public class Server { } } - private static class getLectureListPermissionWrite_resultStandardSchemeFactory implements SchemeFactory { - public getLectureListPermissionWrite_resultStandardScheme getScheme() { - return new getLectureListPermissionWrite_resultStandardScheme(); + private static class getLectureListPermissionRead_resultStandardSchemeFactory implements SchemeFactory { + public getLectureListPermissionRead_resultStandardScheme getScheme() { + return new getLectureListPermissionRead_resultStandardScheme(); } } - private static class getLectureListPermissionWrite_resultStandardScheme extends StandardScheme { + private static class getLectureListPermissionRead_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureListPermissionWrite_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureListPermissionRead_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -15887,7 +15907,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureListPermissionWrite_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureListPermissionRead_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -15909,16 +15929,16 @@ public class Server { } - private static class getLectureListPermissionWrite_resultTupleSchemeFactory implements SchemeFactory { - public getLectureListPermissionWrite_resultTupleScheme getScheme() { - return new getLectureListPermissionWrite_resultTupleScheme(); + private static class getLectureListPermissionRead_resultTupleSchemeFactory implements SchemeFactory { + public getLectureListPermissionRead_resultTupleScheme getScheme() { + return new getLectureListPermissionRead_resultTupleScheme(); } } - private static class getLectureListPermissionWrite_resultTupleScheme extends TupleScheme { + private static class getLectureListPermissionRead_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionWrite_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionRead_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -15937,7 +15957,7 @@ public class Server { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionWrite_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionRead_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -15959,15 +15979,15 @@ public class Server { } - public static class getLectureListPermissionAdmin_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("getLectureListPermissionAdmin_args"); + public static class getLectureListPermissionWrite_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("getLectureListPermissionWrite_args"); private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userID", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getLectureListPermissionAdmin_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLectureListPermissionAdmin_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getLectureListPermissionWrite_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureListPermissionWrite_argsTupleSchemeFactory()); } public String userID; // required @@ -16037,13 +16057,13 @@ public class Server { tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureListPermissionAdmin_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureListPermissionWrite_args.class, metaDataMap); } - public getLectureListPermissionAdmin_args() { + public getLectureListPermissionWrite_args() { } - public getLectureListPermissionAdmin_args( + public getLectureListPermissionWrite_args( String userID) { this(); @@ -16053,14 +16073,14 @@ public class Server { /** * Performs a deep copy on other. */ - public getLectureListPermissionAdmin_args(getLectureListPermissionAdmin_args other) { + public getLectureListPermissionWrite_args(getLectureListPermissionWrite_args other) { if (other.isSetUserID()) { this.userID = other.userID; } } - public getLectureListPermissionAdmin_args deepCopy() { - return new getLectureListPermissionAdmin_args(this); + public getLectureListPermissionWrite_args deepCopy() { + return new getLectureListPermissionWrite_args(this); } @Override @@ -16072,7 +16092,7 @@ public class Server { return this.userID; } - public getLectureListPermissionAdmin_args setUserID(String userID) { + public getLectureListPermissionWrite_args setUserID(String userID) { this.userID = userID; return this; } @@ -16131,12 +16151,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getLectureListPermissionAdmin_args) - return this.equals((getLectureListPermissionAdmin_args)that); + if (that instanceof getLectureListPermissionWrite_args) + return this.equals((getLectureListPermissionWrite_args)that); return false; } - public boolean equals(getLectureListPermissionAdmin_args that) { + public boolean equals(getLectureListPermissionWrite_args that) { if (that == null) return false; @@ -16158,7 +16178,7 @@ public class Server { } @Override - public int compareTo(getLectureListPermissionAdmin_args other) { + public int compareTo(getLectureListPermissionWrite_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -16192,7 +16212,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLectureListPermissionAdmin_args("); + StringBuilder sb = new StringBuilder("getLectureListPermissionWrite_args("); boolean first = true; sb.append("userID:"); @@ -16227,15 +16247,15 @@ public class Server { } } - private static class getLectureListPermissionAdmin_argsStandardSchemeFactory implements SchemeFactory { - public getLectureListPermissionAdmin_argsStandardScheme getScheme() { - return new getLectureListPermissionAdmin_argsStandardScheme(); + private static class getLectureListPermissionWrite_argsStandardSchemeFactory implements SchemeFactory { + public getLectureListPermissionWrite_argsStandardScheme getScheme() { + return new getLectureListPermissionWrite_argsStandardScheme(); } } - private static class getLectureListPermissionAdmin_argsStandardScheme extends StandardScheme { + private static class getLectureListPermissionWrite_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureListPermissionAdmin_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureListPermissionWrite_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -16264,7 +16284,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureListPermissionAdmin_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureListPermissionWrite_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -16279,16 +16299,16 @@ public class Server { } - private static class getLectureListPermissionAdmin_argsTupleSchemeFactory implements SchemeFactory { - public getLectureListPermissionAdmin_argsTupleScheme getScheme() { - return new getLectureListPermissionAdmin_argsTupleScheme(); + private static class getLectureListPermissionWrite_argsTupleSchemeFactory implements SchemeFactory { + public getLectureListPermissionWrite_argsTupleScheme getScheme() { + return new getLectureListPermissionWrite_argsTupleScheme(); } } - private static class getLectureListPermissionAdmin_argsTupleScheme extends TupleScheme { + private static class getLectureListPermissionWrite_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionAdmin_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionWrite_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserID()) { @@ -16301,7 +16321,7 @@ public class Server { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionAdmin_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionWrite_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -16313,15 +16333,15 @@ public class Server { } - public static class getLectureListPermissionAdmin_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("getLectureListPermissionAdmin_result"); + public static class getLectureListPermissionWrite_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("getLectureListPermissionWrite_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getLectureListPermissionAdmin_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLectureListPermissionAdmin_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getLectureListPermissionWrite_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureListPermissionWrite_resultTupleSchemeFactory()); } public List success; // required @@ -16392,13 +16412,13 @@ public class Server { new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Lecture.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureListPermissionAdmin_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureListPermissionWrite_result.class, metaDataMap); } - public getLectureListPermissionAdmin_result() { + public getLectureListPermissionWrite_result() { } - public getLectureListPermissionAdmin_result( + public getLectureListPermissionWrite_result( List success) { this(); @@ -16408,7 +16428,7 @@ public class Server { /** * Performs a deep copy on other. */ - public getLectureListPermissionAdmin_result(getLectureListPermissionAdmin_result other) { + public getLectureListPermissionWrite_result(getLectureListPermissionWrite_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (Lecture other_element : other.success) { @@ -16418,8 +16438,8 @@ public class Server { } } - public getLectureListPermissionAdmin_result deepCopy() { - return new getLectureListPermissionAdmin_result(this); + public getLectureListPermissionWrite_result deepCopy() { + return new getLectureListPermissionWrite_result(this); } @Override @@ -16446,7 +16466,7 @@ public class Server { return this.success; } - public getLectureListPermissionAdmin_result setSuccess(List success) { + public getLectureListPermissionWrite_result setSuccess(List success) { this.success = success; return this; } @@ -16505,12 +16525,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getLectureListPermissionAdmin_result) - return this.equals((getLectureListPermissionAdmin_result)that); + if (that instanceof getLectureListPermissionWrite_result) + return this.equals((getLectureListPermissionWrite_result)that); return false; } - public boolean equals(getLectureListPermissionAdmin_result that) { + public boolean equals(getLectureListPermissionWrite_result that) { if (that == null) return false; @@ -16532,7 +16552,7 @@ public class Server { } @Override - public int compareTo(getLectureListPermissionAdmin_result other) { + public int compareTo(getLectureListPermissionWrite_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -16566,7 +16586,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLectureListPermissionAdmin_result("); + StringBuilder sb = new StringBuilder("getLectureListPermissionWrite_result("); boolean first = true; sb.append("success:"); @@ -16601,15 +16621,15 @@ public class Server { } } - private static class getLectureListPermissionAdmin_resultStandardSchemeFactory implements SchemeFactory { - public getLectureListPermissionAdmin_resultStandardScheme getScheme() { - return new getLectureListPermissionAdmin_resultStandardScheme(); + private static class getLectureListPermissionWrite_resultStandardSchemeFactory implements SchemeFactory { + public getLectureListPermissionWrite_resultStandardScheme getScheme() { + return new getLectureListPermissionWrite_resultStandardScheme(); } } - private static class getLectureListPermissionAdmin_resultStandardScheme extends StandardScheme { + private static class getLectureListPermissionWrite_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureListPermissionAdmin_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureListPermissionWrite_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -16649,7 +16669,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureListPermissionAdmin_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureListPermissionWrite_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -16671,16 +16691,16 @@ public class Server { } - private static class getLectureListPermissionAdmin_resultTupleSchemeFactory implements SchemeFactory { - public getLectureListPermissionAdmin_resultTupleScheme getScheme() { - return new getLectureListPermissionAdmin_resultTupleScheme(); + private static class getLectureListPermissionWrite_resultTupleSchemeFactory implements SchemeFactory { + public getLectureListPermissionWrite_resultTupleScheme getScheme() { + return new getLectureListPermissionWrite_resultTupleScheme(); } } - private static class getLectureListPermissionAdmin_resultTupleScheme extends TupleScheme { + private static class getLectureListPermissionWrite_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionAdmin_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionWrite_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -16699,7 +16719,7 @@ public class Server { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionAdmin_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionWrite_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -16721,20 +16741,22 @@ public class Server { } - public static class getAllOS_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("getAllOS_args"); + public static class getLectureListPermissionAdmin_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("getLectureListPermissionAdmin_args"); + private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userID", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllOS_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllOS_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getLectureListPermissionAdmin_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureListPermissionAdmin_argsTupleSchemeFactory()); } + public String userID; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { -; + USER_ID((short)1, "userID"); private static final Map byName = new HashMap(); @@ -16749,6 +16771,8 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 1: // USER_ID + return USER_ID; default: return null; } @@ -16787,37 +16811,87 @@ public class Server { return _fieldName; } } + + // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOS_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureListPermissionAdmin_args.class, metaDataMap); } - public getAllOS_args() { + public getLectureListPermissionAdmin_args() { + } + + public getLectureListPermissionAdmin_args( + String userID) + { + this(); + this.userID = userID; } /** * Performs a deep copy on other. */ - public getAllOS_args(getAllOS_args other) { + public getLectureListPermissionAdmin_args(getLectureListPermissionAdmin_args other) { + if (other.isSetUserID()) { + this.userID = other.userID; + } } - public getAllOS_args deepCopy() { - return new getAllOS_args(this); + public getLectureListPermissionAdmin_args deepCopy() { + return new getLectureListPermissionAdmin_args(this); } @Override public void clear() { + this.userID = null; + } + + public String getUserID() { + return this.userID; + } + + public getLectureListPermissionAdmin_args setUserID(String userID) { + this.userID = userID; + return this; + } + + public void unsetUserID() { + this.userID = null; + } + + /** Returns true if field userID is set (has been assigned a value) and false otherwise */ + public boolean isSetUserID() { + return this.userID != null; + } + + public void setUserIDIsSet(boolean value) { + if (!value) { + this.userID = null; + } } public void setFieldValue(_Fields field, Object value) { switch (field) { + case USER_ID: + if (value == null) { + unsetUserID(); + } else { + setUserID((String)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { + case USER_ID: + return getUserID(); + } throw new IllegalStateException(); } @@ -16829,6 +16903,8 @@ public class Server { } switch (field) { + case USER_ID: + return isSetUserID(); } throw new IllegalStateException(); } @@ -16837,15 +16913,24 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllOS_args) - return this.equals((getAllOS_args)that); + if (that instanceof getLectureListPermissionAdmin_args) + return this.equals((getLectureListPermissionAdmin_args)that); return false; } - public boolean equals(getAllOS_args that) { + public boolean equals(getLectureListPermissionAdmin_args that) { if (that == null) return false; + boolean this_present_userID = true && this.isSetUserID(); + boolean that_present_userID = true && that.isSetUserID(); + if (this_present_userID || that_present_userID) { + if (!(this_present_userID && that_present_userID)) + return false; + if (!this.userID.equals(that.userID)) + return false; + } + return true; } @@ -16855,13 +16940,23 @@ public class Server { } @Override - public int compareTo(getAllOS_args other) { + public int compareTo(getLectureListPermissionAdmin_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUserID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -16879,9 +16974,16 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllOS_args("); + StringBuilder sb = new StringBuilder("getLectureListPermissionAdmin_args("); boolean first = true; + sb.append("userID:"); + if (this.userID == null) { + sb.append("null"); + } else { + sb.append(this.userID); + } + first = false; sb.append(")"); return sb.toString(); } @@ -16907,15 +17009,15 @@ public class Server { } } - private static class getAllOS_argsStandardSchemeFactory implements SchemeFactory { - public getAllOS_argsStandardScheme getScheme() { - return new getAllOS_argsStandardScheme(); + private static class getLectureListPermissionAdmin_argsStandardSchemeFactory implements SchemeFactory { + public getLectureListPermissionAdmin_argsStandardScheme getScheme() { + return new getLectureListPermissionAdmin_argsStandardScheme(); } } - private static class getAllOS_argsStandardScheme extends StandardScheme { + private static class getLectureListPermissionAdmin_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOS_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureListPermissionAdmin_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -16925,6 +17027,14 @@ public class Server { break; } switch (schemeField.id) { + case 1: // USER_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -16936,49 +17046,67 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllOS_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureListPermissionAdmin_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.userID != null) { + oprot.writeFieldBegin(USER_ID_FIELD_DESC); + oprot.writeString(struct.userID); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getAllOS_argsTupleSchemeFactory implements SchemeFactory { - public getAllOS_argsTupleScheme getScheme() { - return new getAllOS_argsTupleScheme(); + private static class getLectureListPermissionAdmin_argsTupleSchemeFactory implements SchemeFactory { + public getLectureListPermissionAdmin_argsTupleScheme getScheme() { + return new getLectureListPermissionAdmin_argsTupleScheme(); } } - private static class getAllOS_argsTupleScheme extends TupleScheme { + private static class getLectureListPermissionAdmin_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllOS_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionAdmin_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetUserID()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetUserID()) { + oprot.writeString(struct.userID); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllOS_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionAdmin_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); + } } } } - public static class getAllOS_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("getAllOS_result"); + public static class getLectureListPermissionAdmin_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("getLectureListPermissionAdmin_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllOS_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllOS_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getLectureListPermissionAdmin_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureListPermissionAdmin_resultTupleSchemeFactory()); } - public List success; // required + public List 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 { @@ -17044,16 +17172,16 @@ 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.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Lecture.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOS_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureListPermissionAdmin_result.class, metaDataMap); } - public getAllOS_result() { + public getLectureListPermissionAdmin_result() { } - public getAllOS_result( - List success) + public getLectureListPermissionAdmin_result( + List success) { this(); this.success = success; @@ -17062,15 +17190,18 @@ public class Server { /** * Performs a deep copy on other. */ - public getAllOS_result(getAllOS_result other) { + public getLectureListPermissionAdmin_result(getLectureListPermissionAdmin_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List __this__success = new ArrayList(other.success.size()); + for (Lecture other_element : other.success) { + __this__success.add(new Lecture(other_element)); + } this.success = __this__success; } } - public getAllOS_result deepCopy() { - return new getAllOS_result(this); + public getLectureListPermissionAdmin_result deepCopy() { + return new getLectureListPermissionAdmin_result(this); } @Override @@ -17082,22 +17213,22 @@ public class Server { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(String elem) { + public void addToSuccess(Lecture elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public getAllOS_result setSuccess(List success) { + public getLectureListPermissionAdmin_result setSuccess(List success) { this.success = success; return this; } @@ -17123,7 +17254,7 @@ public class Server { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -17156,12 +17287,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllOS_result) - return this.equals((getAllOS_result)that); + if (that instanceof getLectureListPermissionAdmin_result) + return this.equals((getLectureListPermissionAdmin_result)that); return false; } - public boolean equals(getAllOS_result that) { + public boolean equals(getLectureListPermissionAdmin_result that) { if (that == null) return false; @@ -17183,7 +17314,7 @@ public class Server { } @Override - public int compareTo(getAllOS_result other) { + public int compareTo(getLectureListPermissionAdmin_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -17217,7 +17348,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllOS_result("); + StringBuilder sb = new StringBuilder("getLectureListPermissionAdmin_result("); boolean first = true; sb.append("success:"); @@ -17252,15 +17383,15 @@ public class Server { } } - private static class getAllOS_resultStandardSchemeFactory implements SchemeFactory { - public getAllOS_resultStandardScheme getScheme() { - return new getAllOS_resultStandardScheme(); + private static class getLectureListPermissionAdmin_resultStandardSchemeFactory implements SchemeFactory { + public getLectureListPermissionAdmin_resultStandardScheme getScheme() { + return new getLectureListPermissionAdmin_resultStandardScheme(); } } - private static class getAllOS_resultStandardScheme extends StandardScheme { + private static class getLectureListPermissionAdmin_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOS_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureListPermissionAdmin_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -17274,11 +17405,12 @@ public class Server { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list64 = iprot.readListBegin(); - struct.success = new ArrayList(_list64.size); + struct.success = new ArrayList(_list64.size); for (int _i65 = 0; _i65 < _list64.size; ++_i65) { - String _elem66; - _elem66 = iprot.readString(); + Lecture _elem66; + _elem66 = new Lecture(); + _elem66.read(iprot); struct.success.add(_elem66); } iprot.readListEnd(); @@ -17299,17 +17431,17 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllOS_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureListPermissionAdmin_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter67 : struct.success) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Lecture _iter67 : struct.success) { - oprot.writeString(_iter67); + _iter67.write(oprot); } oprot.writeListEnd(); } @@ -17321,16 +17453,16 @@ public class Server { } - private static class getAllOS_resultTupleSchemeFactory implements SchemeFactory { - public getAllOS_resultTupleScheme getScheme() { - return new getAllOS_resultTupleScheme(); + private static class getLectureListPermissionAdmin_resultTupleSchemeFactory implements SchemeFactory { + public getLectureListPermissionAdmin_resultTupleScheme getScheme() { + return new getLectureListPermissionAdmin_resultTupleScheme(); } } - private static class getAllOS_resultTupleScheme extends TupleScheme { + private static class getLectureListPermissionAdmin_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllOS_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionAdmin_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -17340,26 +17472,27 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter68 : struct.success) + for (Lecture _iter68 : struct.success) { - oprot.writeString(_iter68); + _iter68.write(oprot); } } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllOS_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionAdmin_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list69 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list69.size); + org.apache.thrift.protocol.TList _list69 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list69.size); for (int _i70 = 0; _i70 < _list69.size; ++_i70) { - String _elem71; - _elem71 = iprot.readString(); + Lecture _elem71; + _elem71 = new Lecture(); + _elem71.read(iprot); struct.success.add(_elem71); } } @@ -17370,14 +17503,14 @@ public class Server { } - public static class getAllUniversities_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("getAllUniversities_args"); + public static class getAllOS_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("getAllOS_args"); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllUniversities_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllUniversities_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getAllOS_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllOS_argsTupleSchemeFactory()); } @@ -17440,20 +17573,20 @@ public class Server { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUniversities_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOS_args.class, metaDataMap); } - public getAllUniversities_args() { + public getAllOS_args() { } /** * Performs a deep copy on other. */ - public getAllUniversities_args(getAllUniversities_args other) { + public getAllOS_args(getAllOS_args other) { } - public getAllUniversities_args deepCopy() { - return new getAllUniversities_args(this); + public getAllOS_args deepCopy() { + return new getAllOS_args(this); } @Override @@ -17486,12 +17619,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllUniversities_args) - return this.equals((getAllUniversities_args)that); + if (that instanceof getAllOS_args) + return this.equals((getAllOS_args)that); return false; } - public boolean equals(getAllUniversities_args that) { + public boolean equals(getAllOS_args that) { if (that == null) return false; @@ -17504,7 +17637,7 @@ public class Server { } @Override - public int compareTo(getAllUniversities_args other) { + public int compareTo(getAllOS_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -17528,7 +17661,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllUniversities_args("); + StringBuilder sb = new StringBuilder("getAllOS_args("); boolean first = true; sb.append(")"); @@ -17556,15 +17689,15 @@ public class Server { } } - private static class getAllUniversities_argsStandardSchemeFactory implements SchemeFactory { - public getAllUniversities_argsStandardScheme getScheme() { - return new getAllUniversities_argsStandardScheme(); + private static class getAllOS_argsStandardSchemeFactory implements SchemeFactory { + public getAllOS_argsStandardScheme getScheme() { + return new getAllOS_argsStandardScheme(); } } - private static class getAllUniversities_argsStandardScheme extends StandardScheme { + private static class getAllOS_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUniversities_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOS_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -17585,7 +17718,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUniversities_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getAllOS_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -17595,36 +17728,36 @@ public class Server { } - private static class getAllUniversities_argsTupleSchemeFactory implements SchemeFactory { - public getAllUniversities_argsTupleScheme getScheme() { - return new getAllUniversities_argsTupleScheme(); + private static class getAllOS_argsTupleSchemeFactory implements SchemeFactory { + public getAllOS_argsTupleScheme getScheme() { + return new getAllOS_argsTupleScheme(); } } - private static class getAllUniversities_argsTupleScheme extends TupleScheme { + private static class getAllOS_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllUniversities_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getAllOS_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllUniversities_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getAllOS_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; } } } - public static class getAllUniversities_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("getAllUniversities_result"); + public static class getAllOS_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("getAllOS_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllUniversities_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllUniversities_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getAllOS_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllOS_resultTupleSchemeFactory()); } public List success; // required @@ -17695,13 +17828,13 @@ public class Server { new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUniversities_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOS_result.class, metaDataMap); } - public getAllUniversities_result() { + public getAllOS_result() { } - public getAllUniversities_result( + public getAllOS_result( List success) { this(); @@ -17711,15 +17844,15 @@ public class Server { /** * Performs a deep copy on other. */ - public getAllUniversities_result(getAllUniversities_result other) { + public getAllOS_result(getAllOS_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success); this.success = __this__success; } } - public getAllUniversities_result deepCopy() { - return new getAllUniversities_result(this); + public getAllOS_result deepCopy() { + return new getAllOS_result(this); } @Override @@ -17746,7 +17879,7 @@ public class Server { return this.success; } - public getAllUniversities_result setSuccess(List success) { + public getAllOS_result setSuccess(List success) { this.success = success; return this; } @@ -17805,12 +17938,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllUniversities_result) - return this.equals((getAllUniversities_result)that); + if (that instanceof getAllOS_result) + return this.equals((getAllOS_result)that); return false; } - public boolean equals(getAllUniversities_result that) { + public boolean equals(getAllOS_result that) { if (that == null) return false; @@ -17832,7 +17965,7 @@ public class Server { } @Override - public int compareTo(getAllUniversities_result other) { + public int compareTo(getAllOS_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -17866,7 +17999,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllUniversities_result("); + StringBuilder sb = new StringBuilder("getAllOS_result("); boolean first = true; sb.append("success:"); @@ -17901,15 +18034,15 @@ public class Server { } } - private static class getAllUniversities_resultStandardSchemeFactory implements SchemeFactory { - public getAllUniversities_resultStandardScheme getScheme() { - return new getAllUniversities_resultStandardScheme(); + private static class getAllOS_resultStandardSchemeFactory implements SchemeFactory { + public getAllOS_resultStandardScheme getScheme() { + return new getAllOS_resultStandardScheme(); } } - private static class getAllUniversities_resultStandardScheme extends StandardScheme { + private static class getAllOS_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUniversities_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOS_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -17948,7 +18081,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUniversities_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getAllOS_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -17970,16 +18103,16 @@ public class Server { } - private static class getAllUniversities_resultTupleSchemeFactory implements SchemeFactory { - public getAllUniversities_resultTupleScheme getScheme() { - return new getAllUniversities_resultTupleScheme(); + private static class getAllOS_resultTupleSchemeFactory implements SchemeFactory { + public getAllOS_resultTupleScheme getScheme() { + return new getAllOS_resultTupleScheme(); } } - private static class getAllUniversities_resultTupleScheme extends TupleScheme { + private static class getAllOS_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllUniversities_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getAllOS_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -17998,7 +18131,7 @@ public class Server { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllUniversities_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getAllOS_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -18019,25 +18152,20 @@ public class Server { } - public static class getPersonData_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("getPersonData_args"); + public static class getAllUniversities_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("getAllUniversities_args"); - private static final org.apache.thrift.protocol.TField VORNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("Vorname", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField NACHNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("Nachname", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getPersonData_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getPersonData_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getAllUniversities_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllUniversities_argsTupleSchemeFactory()); } - public String Vorname; // required - public String Nachname; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - VORNAME((short)1, "Vorname"), - NACHNAME((short)2, "Nachname"); +; private static final Map byName = new HashMap(); @@ -18052,10 +18180,6 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // VORNAME - return VORNAME; - case 2: // NACHNAME - return NACHNAME; default: return null; } @@ -18094,130 +18218,37 @@ public class Server { return _fieldName; } } - - // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.VORNAME, new org.apache.thrift.meta_data.FieldMetaData("Vorname", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.NACHNAME, new org.apache.thrift.meta_data.FieldMetaData("Nachname", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPersonData_args.class, metaDataMap); - } - - public getPersonData_args() { + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUniversities_args.class, metaDataMap); } - public getPersonData_args( - String Vorname, - String Nachname) - { - this(); - this.Vorname = Vorname; - this.Nachname = Nachname; + public getAllUniversities_args() { } /** * Performs a deep copy on other. */ - public getPersonData_args(getPersonData_args other) { - if (other.isSetVorname()) { - this.Vorname = other.Vorname; - } - if (other.isSetNachname()) { - this.Nachname = other.Nachname; - } + public getAllUniversities_args(getAllUniversities_args other) { } - public getPersonData_args deepCopy() { - return new getPersonData_args(this); + public getAllUniversities_args deepCopy() { + return new getAllUniversities_args(this); } @Override public void clear() { - this.Vorname = null; - this.Nachname = null; - } - - public String getVorname() { - return this.Vorname; - } - - public getPersonData_args setVorname(String Vorname) { - this.Vorname = Vorname; - return this; - } - - public void unsetVorname() { - this.Vorname = null; - } - - /** Returns true if field Vorname is set (has been assigned a value) and false otherwise */ - public boolean isSetVorname() { - return this.Vorname != null; - } - - public void setVornameIsSet(boolean value) { - if (!value) { - this.Vorname = null; - } - } - - public String getNachname() { - return this.Nachname; - } - - public getPersonData_args setNachname(String Nachname) { - this.Nachname = Nachname; - return this; - } - - public void unsetNachname() { - this.Nachname = null; - } - - /** Returns true if field Nachname is set (has been assigned a value) and false otherwise */ - public boolean isSetNachname() { - return this.Nachname != null; - } - - public void setNachnameIsSet(boolean value) { - if (!value) { - this.Nachname = null; - } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case VORNAME: - if (value == null) { - unsetVorname(); - } else { - setVorname((String)value); - } - break; - - case NACHNAME: - if (value == null) { - unsetNachname(); - } else { - setNachname((String)value); - } - break; - } } public Object getFieldValue(_Fields field) { switch (field) { - case VORNAME: - return getVorname(); - - case NACHNAME: - return getNachname(); - } throw new IllegalStateException(); } @@ -18229,10 +18260,6 @@ public class Server { } switch (field) { - case VORNAME: - return isSetVorname(); - case NACHNAME: - return isSetNachname(); } throw new IllegalStateException(); } @@ -18241,33 +18268,15 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getPersonData_args) - return this.equals((getPersonData_args)that); + if (that instanceof getAllUniversities_args) + return this.equals((getAllUniversities_args)that); return false; } - public boolean equals(getPersonData_args that) { + public boolean equals(getAllUniversities_args that) { if (that == null) return false; - boolean this_present_Vorname = true && this.isSetVorname(); - boolean that_present_Vorname = true && that.isSetVorname(); - if (this_present_Vorname || that_present_Vorname) { - if (!(this_present_Vorname && that_present_Vorname)) - return false; - if (!this.Vorname.equals(that.Vorname)) - return false; - } - - boolean this_present_Nachname = true && this.isSetNachname(); - boolean that_present_Nachname = true && that.isSetNachname(); - if (this_present_Nachname || that_present_Nachname) { - if (!(this_present_Nachname && that_present_Nachname)) - return false; - if (!this.Nachname.equals(that.Nachname)) - return false; - } - return true; } @@ -18277,33 +18286,13 @@ public class Server { } @Override - public int compareTo(getPersonData_args other) { + public int compareTo(getAllUniversities_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetVorname()).compareTo(other.isSetVorname()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetVorname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Vorname, other.Vorname); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetNachname()).compareTo(other.isSetNachname()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetNachname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Nachname, other.Nachname); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -18321,24 +18310,817 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getPersonData_args("); + StringBuilder sb = new StringBuilder("getAllUniversities_args("); boolean first = true; - sb.append("Vorname:"); - if (this.Vorname == null) { - sb.append("null"); - } else { - sb.append(this.Vorname); - } - first = false; - if (!first) sb.append(", "); - sb.append("Nachname:"); - if (this.Nachname == null) { - sb.append("null"); - } else { - sb.append(this.Nachname); - } - first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class getAllUniversities_argsStandardSchemeFactory implements SchemeFactory { + public getAllUniversities_argsStandardScheme getScheme() { + return new getAllUniversities_argsStandardScheme(); + } + } + + private static class getAllUniversities_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUniversities_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUniversities_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class getAllUniversities_argsTupleSchemeFactory implements SchemeFactory { + public getAllUniversities_argsTupleScheme getScheme() { + return new getAllUniversities_argsTupleScheme(); + } + } + + private static class getAllUniversities_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, getAllUniversities_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, getAllUniversities_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + } + } + + } + + public static class getAllUniversities_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("getAllUniversities_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new getAllUniversities_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllUniversities_resultTupleSchemeFactory()); + } + + public List 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 + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUniversities_result.class, metaDataMap); + } + + public getAllUniversities_result() { + } + + public getAllUniversities_result( + List success) + { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public getAllUniversities_result(getAllUniversities_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success); + this.success = __this__success; + } + } + + public getAllUniversities_result deepCopy() { + return new getAllUniversities_result(this); + } + + @Override + public void clear() { + this.success = null; + } + + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(String elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { + return this.success; + } + + public getAllUniversities_result setSuccess(List success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((List)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getAllUniversities_result) + return this.equals((getAllUniversities_result)that); + return false; + } + + public boolean equals(getAllUniversities_result that) { + if (that == null) + return false; + + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(getAllUniversities_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("getAllUniversities_result("); + boolean first = true; + + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class getAllUniversities_resultStandardSchemeFactory implements SchemeFactory { + public getAllUniversities_resultStandardScheme getScheme() { + return new getAllUniversities_resultStandardScheme(); + } + } + + private static class getAllUniversities_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUniversities_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list80 = iprot.readListBegin(); + struct.success = new ArrayList(_list80.size); + for (int _i81 = 0; _i81 < _list80.size; ++_i81) + { + String _elem82; + _elem82 = iprot.readString(); + struct.success.add(_elem82); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUniversities_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (String _iter83 : struct.success) + { + oprot.writeString(_iter83); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class getAllUniversities_resultTupleSchemeFactory implements SchemeFactory { + public getAllUniversities_resultTupleScheme getScheme() { + return new getAllUniversities_resultTupleScheme(); + } + } + + private static class getAllUniversities_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, getAllUniversities_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (String _iter84 : struct.success) + { + oprot.writeString(_iter84); + } + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, getAllUniversities_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + { + org.apache.thrift.protocol.TList _list85 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list85.size); + for (int _i86 = 0; _i86 < _list85.size; ++_i86) + { + String _elem87; + _elem87 = iprot.readString(); + struct.success.add(_elem87); + } + } + struct.setSuccessIsSet(true); + } + } + } + + } + + public static class getPersonData_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("getPersonData_args"); + + private static final org.apache.thrift.protocol.TField VORNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("Vorname", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField NACHNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("Nachname", org.apache.thrift.protocol.TType.STRING, (short)2); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new getPersonData_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getPersonData_argsTupleSchemeFactory()); + } + + public String Vorname; // required + public String Nachname; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + VORNAME((short)1, "Vorname"), + NACHNAME((short)2, "Nachname"); + + private static final Map 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: // VORNAME + return VORNAME; + case 2: // NACHNAME + return NACHNAME; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.VORNAME, new org.apache.thrift.meta_data.FieldMetaData("Vorname", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.NACHNAME, new org.apache.thrift.meta_data.FieldMetaData("Nachname", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPersonData_args.class, metaDataMap); + } + + public getPersonData_args() { + } + + public getPersonData_args( + String Vorname, + String Nachname) + { + this(); + this.Vorname = Vorname; + this.Nachname = Nachname; + } + + /** + * Performs a deep copy on other. + */ + public getPersonData_args(getPersonData_args other) { + if (other.isSetVorname()) { + this.Vorname = other.Vorname; + } + if (other.isSetNachname()) { + this.Nachname = other.Nachname; + } + } + + public getPersonData_args deepCopy() { + return new getPersonData_args(this); + } + + @Override + public void clear() { + this.Vorname = null; + this.Nachname = null; + } + + public String getVorname() { + return this.Vorname; + } + + public getPersonData_args setVorname(String Vorname) { + this.Vorname = Vorname; + return this; + } + + public void unsetVorname() { + this.Vorname = null; + } + + /** Returns true if field Vorname is set (has been assigned a value) and false otherwise */ + public boolean isSetVorname() { + return this.Vorname != null; + } + + public void setVornameIsSet(boolean value) { + if (!value) { + this.Vorname = null; + } + } + + public String getNachname() { + return this.Nachname; + } + + public getPersonData_args setNachname(String Nachname) { + this.Nachname = Nachname; + return this; + } + + public void unsetNachname() { + this.Nachname = null; + } + + /** Returns true if field Nachname is set (has been assigned a value) and false otherwise */ + public boolean isSetNachname() { + return this.Nachname != null; + } + + public void setNachnameIsSet(boolean value) { + if (!value) { + this.Nachname = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case VORNAME: + if (value == null) { + unsetVorname(); + } else { + setVorname((String)value); + } + break; + + case NACHNAME: + if (value == null) { + unsetNachname(); + } else { + setNachname((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case VORNAME: + return getVorname(); + + case NACHNAME: + return getNachname(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case VORNAME: + return isSetVorname(); + case NACHNAME: + return isSetNachname(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getPersonData_args) + return this.equals((getPersonData_args)that); + return false; + } + + public boolean equals(getPersonData_args that) { + if (that == null) + return false; + + boolean this_present_Vorname = true && this.isSetVorname(); + boolean that_present_Vorname = true && that.isSetVorname(); + if (this_present_Vorname || that_present_Vorname) { + if (!(this_present_Vorname && that_present_Vorname)) + return false; + if (!this.Vorname.equals(that.Vorname)) + return false; + } + + boolean this_present_Nachname = true && this.isSetNachname(); + boolean that_present_Nachname = true && that.isSetNachname(); + if (this_present_Nachname || that_present_Nachname) { + if (!(this_present_Nachname && that_present_Nachname)) + return false; + if (!this.Nachname.equals(that.Nachname)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(getPersonData_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetVorname()).compareTo(other.isSetVorname()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetVorname()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Vorname, other.Vorname); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetNachname()).compareTo(other.isSetNachname()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetNachname()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Nachname, other.Nachname); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("getPersonData_args("); + boolean first = true; + + sb.append("Vorname:"); + if (this.Vorname == null) { + sb.append("null"); + } else { + sb.append(this.Vorname); + } + first = false; + if (!first) sb.append(", "); + sb.append("Nachname:"); + if (this.Nachname == null) { + sb.append("null"); + } else { + sb.append(this.Nachname); + } + first = false; sb.append(")"); return sb.toString(); } @@ -18776,15 +19558,15 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map80 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map80.size); - for (int _i81 = 0; _i81 < _map80.size; ++_i81) + org.apache.thrift.protocol.TMap _map88 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map88.size); + for (int _i89 = 0; _i89 < _map88.size; ++_i89) { - String _key82; - String _val83; - _key82 = iprot.readString(); - _val83 = iprot.readString(); - struct.success.put(_key82, _val83); + String _key90; + String _val91; + _key90 = iprot.readString(); + _val91 = iprot.readString(); + struct.success.put(_key90, _val91); } iprot.readMapEnd(); } @@ -18812,10 +19594,10 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (Map.Entry _iter84 : struct.success.entrySet()) + for (Map.Entry _iter92 : struct.success.entrySet()) { - oprot.writeString(_iter84.getKey()); - oprot.writeString(_iter84.getValue()); + oprot.writeString(_iter92.getKey()); + oprot.writeString(_iter92.getValue()); } oprot.writeMapEnd(); } @@ -18846,10 +19628,10 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter85 : struct.success.entrySet()) + for (Map.Entry _iter93 : struct.success.entrySet()) { - oprot.writeString(_iter85.getKey()); - oprot.writeString(_iter85.getValue()); + oprot.writeString(_iter93.getKey()); + oprot.writeString(_iter93.getValue()); } } } @@ -18861,15 +19643,15 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map86 = 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*_map86.size); - for (int _i87 = 0; _i87 < _map86.size; ++_i87) + org.apache.thrift.protocol.TMap _map94 = 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*_map94.size); + for (int _i95 = 0; _i95 < _map94.size; ++_i95) { - String _key88; - String _val89; - _key88 = iprot.readString(); - _val89 = iprot.readString(); - struct.success.put(_key88, _val89); + String _key96; + String _val97; + _key96 = iprot.readString(); + _val97 = iprot.readString(); + struct.success.put(_key96, _val97); } } struct.setSuccessIsSet(true); @@ -23350,15 +24132,15 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map90 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map90.size); - for (int _i91 = 0; _i91 < _map90.size; ++_i91) + org.apache.thrift.protocol.TMap _map98 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map98.size); + for (int _i99 = 0; _i99 < _map98.size; ++_i99) { - String _key92; - String _val93; - _key92 = iprot.readString(); - _val93 = iprot.readString(); - struct.success.put(_key92, _val93); + String _key100; + String _val101; + _key100 = iprot.readString(); + _val101 = iprot.readString(); + struct.success.put(_key100, _val101); } iprot.readMapEnd(); } @@ -23386,10 +24168,10 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (Map.Entry _iter94 : struct.success.entrySet()) + for (Map.Entry _iter102 : struct.success.entrySet()) { - oprot.writeString(_iter94.getKey()); - oprot.writeString(_iter94.getValue()); + oprot.writeString(_iter102.getKey()); + oprot.writeString(_iter102.getValue()); } oprot.writeMapEnd(); } @@ -23420,10 +24202,10 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter95 : struct.success.entrySet()) + for (Map.Entry _iter103 : struct.success.entrySet()) { - oprot.writeString(_iter95.getKey()); - oprot.writeString(_iter95.getValue()); + oprot.writeString(_iter103.getKey()); + oprot.writeString(_iter103.getValue()); } } } @@ -23435,15 +24217,15 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map96 = 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*_map96.size); - for (int _i97 = 0; _i97 < _map96.size; ++_i97) + org.apache.thrift.protocol.TMap _map104 = 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*_map104.size); + for (int _i105 = 0; _i105 < _map104.size; ++_i105) { - String _key98; - String _val99; - _key98 = iprot.readString(); - _val99 = iprot.readString(); - struct.success.put(_key98, _val99); + String _key106; + String _val107; + _key106 = iprot.readString(); + _val107 = iprot.readString(); + struct.success.put(_key106, _val107); } } struct.setSuccessIsSet(true); @@ -24110,15 +24892,15 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map100 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map100.size); - for (int _i101 = 0; _i101 < _map100.size; ++_i101) + org.apache.thrift.protocol.TMap _map108 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map108.size); + for (int _i109 = 0; _i109 < _map108.size; ++_i109) { - String _key102; - String _val103; - _key102 = iprot.readString(); - _val103 = iprot.readString(); - struct.success.put(_key102, _val103); + String _key110; + String _val111; + _key110 = iprot.readString(); + _val111 = iprot.readString(); + struct.success.put(_key110, _val111); } iprot.readMapEnd(); } @@ -24146,10 +24928,10 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (Map.Entry _iter104 : struct.success.entrySet()) + for (Map.Entry _iter112 : struct.success.entrySet()) { - oprot.writeString(_iter104.getKey()); - oprot.writeString(_iter104.getValue()); + oprot.writeString(_iter112.getKey()); + oprot.writeString(_iter112.getValue()); } oprot.writeMapEnd(); } @@ -24180,10 +24962,10 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter105 : struct.success.entrySet()) + for (Map.Entry _iter113 : struct.success.entrySet()) { - oprot.writeString(_iter105.getKey()); - oprot.writeString(_iter105.getValue()); + oprot.writeString(_iter113.getKey()); + oprot.writeString(_iter113.getValue()); } } } @@ -24195,15 +24977,15 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map106 = 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*_map106.size); - for (int _i107 = 0; _i107 < _map106.size; ++_i107) + org.apache.thrift.protocol.TMap _map114 = 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*_map114.size); + for (int _i115 = 0; _i115 < _map114.size; ++_i115) { - String _key108; - String _val109; - _key108 = iprot.readString(); - _val109 = iprot.readString(); - struct.success.put(_key108, _val109); + String _key116; + String _val117; + _key116 = iprot.readString(); + _val117 = iprot.readString(); + struct.success.put(_key116, _val117); } } struct.setSuccessIsSet(true); @@ -38841,13 +39623,13 @@ public class Server { case 1: // USER_ID if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list110 = iprot.readListBegin(); - struct.userID = new ArrayList(_list110.size); - for (int _i111 = 0; _i111 < _list110.size; ++_i111) + org.apache.thrift.protocol.TList _list118 = iprot.readListBegin(); + struct.userID = new ArrayList(_list118.size); + for (int _i119 = 0; _i119 < _list118.size; ++_i119) { - String _elem112; - _elem112 = iprot.readString(); - struct.userID.add(_elem112); + String _elem120; + _elem120 = iprot.readString(); + struct.userID.add(_elem120); } iprot.readListEnd(); } @@ -38875,9 +39657,9 @@ public class Server { oprot.writeFieldBegin(USER_ID_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.userID.size())); - for (String _iter113 : struct.userID) + for (String _iter121 : struct.userID) { - oprot.writeString(_iter113); + oprot.writeString(_iter121); } oprot.writeListEnd(); } @@ -38908,9 +39690,9 @@ public class Server { if (struct.isSetUserID()) { { oprot.writeI32(struct.userID.size()); - for (String _iter114 : struct.userID) + for (String _iter122 : struct.userID) { - oprot.writeString(_iter114); + oprot.writeString(_iter122); } } } @@ -38922,13 +39704,13 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list115 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.userID = new ArrayList(_list115.size); - for (int _i116 = 0; _i116 < _list115.size; ++_i116) + org.apache.thrift.protocol.TList _list123 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.userID = new ArrayList(_list123.size); + for (int _i124 = 0; _i124 < _list123.size; ++_i124) { - String _elem117; - _elem117 = iprot.readString(); - struct.userID.add(_elem117); + String _elem125; + _elem125 = iprot.readString(); + struct.userID.add(_elem125); } } struct.setUserIDIsSet(true); @@ -39247,14 +40029,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list118 = iprot.readListBegin(); - struct.success = new ArrayList(_list118.size); - for (int _i119 = 0; _i119 < _list118.size; ++_i119) + org.apache.thrift.protocol.TList _list126 = iprot.readListBegin(); + struct.success = new ArrayList(_list126.size); + for (int _i127 = 0; _i127 < _list126.size; ++_i127) { - Person _elem120; - _elem120 = new Person(); - _elem120.read(iprot); - struct.success.add(_elem120); + Person _elem128; + _elem128 = new Person(); + _elem128.read(iprot); + struct.success.add(_elem128); } iprot.readListEnd(); } @@ -39282,9 +40064,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Person _iter121 : struct.success) + for (Person _iter129 : struct.success) { - _iter121.write(oprot); + _iter129.write(oprot); } oprot.writeListEnd(); } @@ -39315,9 +40097,9 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Person _iter122 : struct.success) + for (Person _iter130 : struct.success) { - _iter122.write(oprot); + _iter130.write(oprot); } } } @@ -39329,14 +40111,14 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list123 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list123.size); - for (int _i124 = 0; _i124 < _list123.size; ++_i124) + org.apache.thrift.protocol.TList _list131 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list131.size); + for (int _i132 = 0; _i132 < _list131.size; ++_i132) { - Person _elem125; - _elem125 = new Person(); - _elem125.read(iprot); - struct.success.add(_elem125); + Person _elem133; + _elem133 = new Person(); + _elem133.read(iprot); + struct.success.add(_elem133); } } struct.setSuccessIsSet(true); @@ -40109,14 +40891,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list126 = iprot.readListBegin(); - struct.success = new ArrayList(_list126.size); - for (int _i127 = 0; _i127 < _list126.size; ++_i127) + org.apache.thrift.protocol.TList _list134 = iprot.readListBegin(); + struct.success = new ArrayList(_list134.size); + for (int _i135 = 0; _i135 < _list134.size; ++_i135) { - Person _elem128; - _elem128 = new Person(); - _elem128.read(iprot); - struct.success.add(_elem128); + Person _elem136; + _elem136 = new Person(); + _elem136.read(iprot); + struct.success.add(_elem136); } iprot.readListEnd(); } @@ -40144,9 +40926,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Person _iter129 : struct.success) + for (Person _iter137 : struct.success) { - _iter129.write(oprot); + _iter137.write(oprot); } oprot.writeListEnd(); } @@ -40177,9 +40959,9 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Person _iter130 : struct.success) + for (Person _iter138 : struct.success) { - _iter130.write(oprot); + _iter138.write(oprot); } } } @@ -40191,14 +40973,14 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list131 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list131.size); - for (int _i132 = 0; _i132 < _list131.size; ++_i132) + org.apache.thrift.protocol.TList _list139 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list139.size); + for (int _i140 = 0; _i140 < _list139.size; ++_i140) { - Person _elem133; - _elem133 = new Person(); - _elem133.read(iprot); - struct.success.add(_elem133); + Person _elem141; + _elem141 = new Person(); + _elem141.read(iprot); + struct.success.add(_elem141); } } struct.setSuccessIsSet(true); @@ -40971,14 +41753,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list134 = iprot.readListBegin(); - struct.success = new ArrayList(_list134.size); - for (int _i135 = 0; _i135 < _list134.size; ++_i135) + org.apache.thrift.protocol.TList _list142 = iprot.readListBegin(); + struct.success = new ArrayList(_list142.size); + for (int _i143 = 0; _i143 < _list142.size; ++_i143) { - Person _elem136; - _elem136 = new Person(); - _elem136.read(iprot); - struct.success.add(_elem136); + Person _elem144; + _elem144 = new Person(); + _elem144.read(iprot); + struct.success.add(_elem144); } iprot.readListEnd(); } @@ -41006,9 +41788,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Person _iter137 : struct.success) + for (Person _iter145 : struct.success) { - _iter137.write(oprot); + _iter145.write(oprot); } oprot.writeListEnd(); } @@ -41039,9 +41821,9 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Person _iter138 : struct.success) + for (Person _iter146 : struct.success) { - _iter138.write(oprot); + _iter146.write(oprot); } } } @@ -41053,14 +41835,14 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list139 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list139.size); - for (int _i140 = 0; _i140 < _list139.size; ++_i140) + org.apache.thrift.protocol.TList _list147 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list147.size); + for (int _i148 = 0; _i148 < _list147.size; ++_i148) { - Person _elem141; - _elem141 = new Person(); - _elem141.read(iprot); - struct.success.add(_elem141); + Person _elem149; + _elem149 = new Person(); + _elem149.read(iprot); + struct.success.add(_elem149); } } struct.setSuccessIsSet(true); diff --git a/dozentenmodulserver/src/main/java/sql/SQL.java b/dozentenmodulserver/src/main/java/sql/SQL.java index e79cf159..cf2f3949 100644 --- a/dozentenmodulserver/src/main/java/sql/SQL.java +++ b/dozentenmodulserver/src/main/java/sql/SQL.java @@ -428,12 +428,16 @@ public class SQL { stm = con.createStatement(); - // ResultSet - ResultSet res = stm - .executeQuery("SELECT DISTINCT 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.pm_VLData_image pmi, bwLehrpool.m_VLData_imageInfo vl, bwLehrpool.m_operatingSystem os, bwLehrpool.m_user u WHERE pmi.userID='" - + userID - + "' AND u.userID = pmi.userID AND pmi.link_allowed = 1 AND pmi.GUID_imageID = vl.GUID_imageID AND vl.content_operatingSystem=os.operatingSystemID;"); - + // ResultSet WITHOUT templates + //ResultSet res = stm + // .executeQuery("SELECT DISTINCT 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.pm_VLData_image pmi, bwLehrpool.m_VLData_imageInfo vl, bwLehrpool.m_operatingSystem os, bwLehrpool.m_user u WHERE pmi.userID='" + // + userID + // + "' AND u.userID = pmi.userID AND (pmi.link_allowed=1 OR vl.image_isTemplate=1) AND pmi.GUID_imageID = vl.GUID_imageID AND vl.content_operatingSystem=os.operatingSystemID;"); + + // ResultSet WITH templates + ResultSet res = stm + .executeQuery("SELECT DISTINCT vl.GUID_imageID, vl.imageVersion, vl.image_name, vl.image_description, 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.pm_VLData_image pmi, bwLehrpool.m_VLData_imageInfo vl, bwLehrpool.m_operatingSystem os, bwLehrpool.m_user u WHERE (vl.image_isTemplate=1 OR (pmi.userID='"+userID+"' AND pmi.link_allowed=1)) AND vl.image_owner=u.userID AND pmi.GUID_imageID = vl.GUID_imageID AND vl.content_operatingSystem=os.operatingSystemID;"); + while (res.next()) { list.add(new Image( res.getString("GUID_imageID"), @@ -485,9 +489,6 @@ public class SQL { res.getString("image_description") ) ); - - - } con.close(); } catch (SQLException e) { @@ -495,7 +496,46 @@ public class SQL { e.printStackTrace(); } return list; - } + }//end getImageListPermissionAdmin + + + + public List getImageListAllTemplates(){ + Connection con = getConnection(); + Statement stm; + + List list = new ArrayList(); + try { + + stm = con.createStatement(); + + // ResultSet + ResultSet res = stm + .executeQuery("SELECT DISTINCT vl.GUID_imageID, vl.imageVersion, vl.image_name, vl.image_description, 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.pm_VLData_image pmi, bwLehrpool.m_VLData_imageInfo vl, bwLehrpool.m_operatingSystem os, bwLehrpool.m_user u WHERE vl.image_isTemplate=1 AND vl.content_operatingSystem=os.operatingSystemID 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("architecture") + " bit", + res.getString("lecture"), + res.getString("image_update_time"), + res.getString("user"), + res.getString("image_isTemplate"), + res.getString("image_description") + ) + ); + } + con.close(); + } catch (SQLException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + return list; + }//end getImageListAllTemplates + diff --git a/dozentenmodulserver/thrift/server.thrift b/dozentenmodulserver/thrift/server.thrift index 605bed6d..4479b4cf 100644 --- a/dozentenmodulserver/thrift/server.thrift +++ b/dozentenmodulserver/thrift/server.thrift @@ -57,6 +57,7 @@ service Server{ list getImageListPermissionRead(1: string userID), list getImageListPermissionLink(1: string userID), list getImageListPermissionAdmin(1: string userID), + list getImageListAllTemplates(), list getLectureList(), list getLectureListPermissionRead(1: string userID), list getLectureListPermissionWrite(1: string userID), -- cgit v1.2.3-55-g7522 From 134fe12c4519c8c5e3212c6a3ffb44dd0770b61b Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Fri, 31 Oct 2014 10:12:50 +0100 Subject: // --- dozentenmodul/src/main/java/gui/intro/MainMenue_GUI.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dozentenmodul/src/main/java/gui/intro/MainMenue_GUI.java b/dozentenmodul/src/main/java/gui/intro/MainMenue_GUI.java index fd95bd8d..fbef707b 100644 --- a/dozentenmodul/src/main/java/gui/intro/MainMenue_GUI.java +++ b/dozentenmodul/src/main/java/gui/intro/MainMenue_GUI.java @@ -594,12 +594,12 @@ public class MainMenue_GUI extends JFrame { }// end if else // always print rights information - LOGGER.info("Rights: (r, w, cp, a, la) = (" - + GUIRights.rights.getRead() + ", " - + GUIRights.rights.getWrite() + ", " - + GUIRights.rights.getChangePermission() + ", " - + GUIRights.rights.getAdmin() + ", " - + GUIRights.rights.getLinkAllowed() + ")"); + //LOGGER.info("Rights: (r, w, cp, a, la) = (" + // + GUIRights.rights.getRead() + ", " + // + GUIRights.rights.getWrite() + ", " + // + GUIRights.rights.getChangePermission() + ", " + // + GUIRights.rights.getAdmin() + ", " + // + GUIRights.rights.getLinkAllowed() + ")"); }// end setRoleRights public void setCorrectRadioButton() { -- cgit v1.2.3-55-g7522 From fa0553ec9ebe377fcbabe7e196744fe91c1bb7e7 Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Fri, 31 Oct 2014 11:30:07 +0100 Subject: -allowed 3 special chars in image name --- .../src/main/java/gui/image/CreateImageAllgemein_GUI.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dozentenmodul/src/main/java/gui/image/CreateImageAllgemein_GUI.java b/dozentenmodul/src/main/java/gui/image/CreateImageAllgemein_GUI.java index 8a750117..41dd1057 100644 --- a/dozentenmodul/src/main/java/gui/image/CreateImageAllgemein_GUI.java +++ b/dozentenmodul/src/main/java/gui/image/CreateImageAllgemein_GUI.java @@ -447,12 +447,14 @@ public class CreateImageAllgemein_GUI extends JFrame { return false; } - // only allow letter from alphabet and numbers for the image name - if (!imagename.getText().matches("[a-zA-Z0-9]+")) { + // only allow letter from alphabet and numbers for the image name and certain special chars + // x2B= "+" x2C="-" x3A=":" x5F="_" + // + if (!imagename.getText().trim().matches("[a-zA-Z0-9\\x2B\\x2D\\x3A\\x5F]+")) { LOGGER.info("Image name not alpha-numerical, warn user."); JOptionPane.showMessageDialog( c, - "Der Imagename darf keine Leer- oder Sonderzeichen enthalten.", + "Der Imagename darf nur aus Buchstaben, Zahlen und den Zeichen + - _ : bestehen.", "Unerlaubte Zeichen", JOptionPane.ERROR_MESSAGE); return false; -- cgit v1.2.3-55-g7522