From 99538bd2cc35d2580dabdb4b16d68c5cce108e4d Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 11 Mar 2014 10:21:56 +0100 Subject: Es ist nun möglich die Metadaten eines Images über das Dozentenmodul zu updaten --- Dozentenmodulserver/src/server/Image.java | 45 ++++++++++++++++++------------- 1 file changed, 26 insertions(+), 19 deletions(-) (limited to 'Dozentenmodulserver/src/server/Image.java') diff --git a/Dozentenmodulserver/src/server/Image.java b/Dozentenmodulserver/src/server/Image.java index e142b86e..ec1a813f 100644 --- a/Dozentenmodulserver/src/server/Image.java +++ b/Dozentenmodulserver/src/server/Image.java @@ -5,20 +5,32 @@ * @generated */ package server; -import java.util.BitSet; -import java.util.Collections; -import java.util.EnumMap; -import java.util.EnumSet; -import java.util.HashMap; -import java.util.Map; - -import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; + import org.apache.thrift.scheme.TupleScheme; +import org.apache.thrift.protocol.TTupleProtocol; +import org.apache.thrift.protocol.TProtocolException; +import org.apache.thrift.EncodingUtils; +import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.util.HashMap; +import java.util.EnumMap; +import java.util.Set; +import java.util.HashSet; +import java.util.EnumSet; +import java.util.Collections; +import java.util.BitSet; +import java.nio.ByteBuffer; +import java.util.Arrays; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; -@SuppressWarnings("serial") public class Image implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Image"); @@ -29,8 +41,7 @@ public class Image implements org.apache.thrift.TBase, jav private static final org.apache.thrift.protocol.TField UPDATE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("updateTime", org.apache.thrift.protocol.TType.STRING, (short)-5); private static final org.apache.thrift.protocol.TField USER_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("userData", org.apache.thrift.protocol.TType.STRING, (short)-6); - @SuppressWarnings("rawtypes") -private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new ImageStandardSchemeFactory()); schemes.put(TupleScheme.class, new ImageTupleSchemeFactory()); @@ -588,13 +599,11 @@ private static final Map, SchemeFactory> schemes = new return _Fields.findByThriftId(fieldId); } - @SuppressWarnings("unchecked") -public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } - @SuppressWarnings("unchecked") -public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @@ -676,8 +685,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. } private static class ImageStandardSchemeFactory implements SchemeFactory { - @SuppressWarnings("unchecked") - public ImageStandardScheme getScheme() { + public ImageStandardScheme getScheme() { return new ImageStandardScheme(); } } @@ -794,8 +802,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. } private static class ImageTupleSchemeFactory implements SchemeFactory { - @SuppressWarnings("unchecked") - public ImageTupleScheme getScheme() { + public ImageTupleScheme getScheme() { return new ImageTupleScheme(); } } -- cgit v1.2.3-55-g7522