From 037e904354b540c9d242f64f46df94842d5d41d2 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 10 Apr 2014 09:39:26 +0200 Subject: test --- Dozentenmodulserver/src/server/Server.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'Dozentenmodulserver/src/server/Server.java') diff --git a/Dozentenmodulserver/src/server/Server.java b/Dozentenmodulserver/src/server/Server.java index 6e630387..af526905 100644 --- a/Dozentenmodulserver/src/server/Server.java +++ b/Dozentenmodulserver/src/server/Server.java @@ -32,6 +32,8 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import sql.SQL; + public class Server { public interface Iface { @@ -442,6 +444,13 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLectureData failed: unknown result"); } + public boolean deleteImageData(String imageid, String imageversion) { + + SQL sql = new SQL(); + + return sql.deleteImage( imageid, imageversion); + } + } public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface { public static class Factory implements org.apache.thrift.async.TAsyncClientFactory { @@ -14281,7 +14290,8 @@ public class Server { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getLectureData_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getLectureData_result struct) throws + org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -14300,8 +14310,11 @@ public class Server { struct.setSuccessIsSet(true); } } + } } + + } -- cgit v1.2.3-55-g7522