diff options
Diffstat (limited to 'Dozentenmodulserver/src/server/Server.java')
| -rw-r--r-- | Dozentenmodulserver/src/server/Server.java | 15 |
1 files changed, 14 insertions, 1 deletions
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<AsyncClient> { @@ -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); } } + } } + + } |
