From c27d50c575ff5867aef8f10ccf2b5f2ac43dae08 Mon Sep 17 00:00:00 2001 From: Nino Breuer Date: Fri, 28 Nov 2014 16:07:58 +0100 Subject: • changed implementation of user authentication. • changed position of class file • fixed some little things (not necessary to mention) Important Notes: •organizationID in token returns "wrong" values, therefore university is still set by client. To be fixed someday. • userID is the value with which the user starts his log in. this value is not represented in the token! (as it is not(!) the email). To be implemented someday, as this value is represented in the masterserver. • Feature isn't well tested. --- .../src/main/java/server/generated/Server.java | 33332 ++++++++++--------- 1 file changed, 18420 insertions(+), 14912 deletions(-) (limited to 'dozentenmodulserver/src/main/java/server/generated') diff --git a/dozentenmodulserver/src/main/java/server/generated/Server.java b/dozentenmodulserver/src/main/java/server/generated/Server.java index 0b6092ad..831fd8cd 100644 --- a/dozentenmodulserver/src/main/java/server/generated/Server.java +++ b/dozentenmodulserver/src/main/java/server/generated/Server.java @@ -36,197 +36,205 @@ public class Server { public interface Iface { - public User getFtpUser() throws org.apache.thrift.TException; + public User getFtpUser(String token) throws org.apache.thrift.TException; - public void setTokenForSession(String token) throws org.apache.thrift.TException; + public boolean authenticated(String token) throws org.apache.thrift.TException; - public long DeleteFtpUser(String user) throws org.apache.thrift.TException; + public boolean setSessionInvalid(String token) throws org.apache.thrift.TException; - public String getPathOfImage(String image_id, String version) throws org.apache.thrift.TException; + public long DeleteFtpUser(String user, String token) throws org.apache.thrift.TException; - public String setInstitution(String university) throws org.apache.thrift.TException; + public String getPathOfImage(String image_id, String version, String token) throws org.apache.thrift.TException; - public boolean writeVLdata(String imagename, String desc, String login, String firstname, String lastname, String university, String Mail, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu, String imagePath, boolean isTemplate, long filesize, long shareMode, String os, String uid) throws org.apache.thrift.TException; + public String setInstitution(String university, String token) throws org.apache.thrift.TException; - public List getImageListPermissionWrite(String userID) throws org.apache.thrift.TException; + public boolean writeVLdata(String imagename, String desc, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu, String imagePath, boolean isTemplate, long filesize, long shareMode, String os, String uid, String token, String userID) throws org.apache.thrift.TException; - public List getImageListPermissionRead(String userID) throws org.apache.thrift.TException; + public List getImageListPermissionWrite(String userID, String token) throws org.apache.thrift.TException; - public List getImageListPermissionLink(String userID) throws org.apache.thrift.TException; + public List getImageListPermissionRead(String userID, String token) throws org.apache.thrift.TException; - public List getImageListPermissionAdmin(String userID) throws org.apache.thrift.TException; + public List getImageListPermissionLink(String userID, String token) throws org.apache.thrift.TException; - public List getImageListAllTemplates() throws org.apache.thrift.TException; + public List getImageListPermissionAdmin(String userID, String token) throws org.apache.thrift.TException; - public List getImageList(String userID) throws org.apache.thrift.TException; + public List getImageListAllTemplates(String token) throws org.apache.thrift.TException; - public List getLectureList() throws org.apache.thrift.TException; + public List getImageList(String token) throws org.apache.thrift.TException; - public List getLectureListPermissionRead(String userID) throws org.apache.thrift.TException; + public List getLectureList(String token) throws org.apache.thrift.TException; - public List getLectureListPermissionWrite(String userID) throws org.apache.thrift.TException; + public List getLectureListPermissionRead(String token) throws org.apache.thrift.TException; - public List getLectureListPermissionAdmin(String userID) throws org.apache.thrift.TException; + public List getLectureListPermissionWrite(String token) throws org.apache.thrift.TException; - public List getAllOS() throws org.apache.thrift.TException; + public List getLectureListPermissionAdmin(String token) throws org.apache.thrift.TException; - public List getAllUniversities() throws org.apache.thrift.TException; + public List getAllOS(String token) throws org.apache.thrift.TException; - public Map getPersonData(String Vorname, String Nachname) throws org.apache.thrift.TException; + public List getAllUniversities(String token) throws org.apache.thrift.TException; - public Map getItemOwner(String itemID) throws org.apache.thrift.TException; + public Map getPersonData(String Vorname, String Nachname, String token) throws org.apache.thrift.TException; - public void setPerson(String login, String lastname, String firstname, String mail, String Institution) throws org.apache.thrift.TException; + public Map getItemOwner(String itemID, String token) throws org.apache.thrift.TException; - public boolean writeLecturedata(String name, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String login, String firstname, String lastname, String university, String Mail, String Tel, String Fak, String lectureID) throws org.apache.thrift.TException; + public void setPerson(String userID, String token, String institution) throws org.apache.thrift.TException; - public boolean startFileCopy(String file) throws org.apache.thrift.TException; + public boolean writeLecturedata(String name, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String token, String Tel, String Fak, String lectureID, String university) throws org.apache.thrift.TException; - public Map getImageData(String imageid, String imageversion) throws org.apache.thrift.TException; + public boolean startFileCopy(String file, String token) throws org.apache.thrift.TException; - public Map getLectureData(String lectureid) throws org.apache.thrift.TException; + public Map getImageData(String imageid, String imageversion, String token) throws org.apache.thrift.TException; - public boolean updateImageData(String name, String newName, String desc, String image_path, boolean license, boolean internet, long ram, long cpu, String id, String version, boolean isTemplate, long filesize, long shareMode, String os) throws org.apache.thrift.TException; + public Map getLectureData(String lectureid, String token) throws org.apache.thrift.TException; - public boolean deleteImageData(String id, String version) throws org.apache.thrift.TException; + public boolean updateImageData(String name, String newName, String desc, String image_path, boolean license, boolean internet, long ram, long cpu, String id, String version, boolean isTemplate, long filesize, long shareMode, String os, String token) throws org.apache.thrift.TException; - public boolean updateLecturedata(String name, String newName, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imageid, String imageversion, String user, String firstname, String lastname, String university, String Mail, String Tel, String Fak, String id) throws org.apache.thrift.TException; + public boolean deleteImageData(String id, String version, String token) throws org.apache.thrift.TException; - public boolean deleteImageServer(String id, String version) throws org.apache.thrift.TException; + public boolean updateLecturedata(String name, String newName, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imageid, String imageversion, String token, String Tel, String Fak, String id, String university) throws org.apache.thrift.TException; - public boolean connectedToLecture(String id, String version) throws org.apache.thrift.TException; + public boolean deleteImageServer(String id, String version, String token) throws org.apache.thrift.TException; - public boolean deleteLecture(String id, String hs, String user) throws org.apache.thrift.TException; + public boolean connectedToLecture(String id, String version, String token) throws org.apache.thrift.TException; - public boolean checkUser(String username) throws org.apache.thrift.TException; + public boolean deleteLecture(String id, String token, String university) throws org.apache.thrift.TException; - public boolean createUser(String loginName, String lastName, String firstName, String mail, String university) throws org.apache.thrift.TException; + public boolean checkUser(String username, String token) throws org.apache.thrift.TException; - public boolean writeImageRights(String imagename, String username, String lastName, String firstName, String mail, String university, String role) throws org.apache.thrift.TException; + public boolean createUser(String token, String university) throws org.apache.thrift.TException; - public boolean writeAdditionalImageRights(String imageName, String userID, boolean isRead, boolean isWrite, boolean isLinkAllowed, boolean isAdmin) throws org.apache.thrift.TException; + public boolean writeImageRights(String imagename, String token, String role, String university, String userID) throws org.apache.thrift.TException; - public boolean writeLectureRights(String lecturename, String username, String lastName, String firstName, String mail, String university, String role) throws org.apache.thrift.TException; + public boolean writeAdditionalImageRights(String imageName, String userID, boolean isRead, boolean isWrite, boolean isLinkAllowed, boolean isAdmin, String token) throws org.apache.thrift.TException; - public boolean writeAdditionalLectureRights(String lectureName, String userID, boolean isRead, boolean isWrite, boolean isAdmin) throws org.apache.thrift.TException; + public boolean writeLectureRights(String lectureID, String role, String token, String university, String userID) throws org.apache.thrift.TException; - public List getAllOtherSatelliteUsers(List userID) throws org.apache.thrift.TException; + public boolean writeAdditionalLectureRights(String lectureName, String userID, boolean isRead, boolean isWrite, boolean isAdmin, String token) throws org.apache.thrift.TException; - public List getPermissionForUserAndImage(String userID, String imageID) throws org.apache.thrift.TException; + public List getAllOtherSatelliteUsers(List userID, String token) throws org.apache.thrift.TException; - public List getAdditionalImageContacts(String imageID) throws org.apache.thrift.TException; + public List getPermissionForUserAndImage(String token, String imageID, String userID) throws org.apache.thrift.TException; - public List getPermissionForUserAndLecture(String userID, String lectureID) throws org.apache.thrift.TException; + public List getAdditionalImageContacts(String imageID, String token) throws org.apache.thrift.TException; - public void deleteAllAdditionalImagePermissions(String imageID, String userID) throws org.apache.thrift.TException; + public List getPermissionForUserAndLecture(String token, String lectureID, String userID) throws org.apache.thrift.TException; - public void deleteAllAdditionalLecturePermissions(String lectureID, String userID) throws org.apache.thrift.TException; + public void deleteAllAdditionalImagePermissions(String imageID, String token, String userID) throws org.apache.thrift.TException; - public String getOsNameForGuestOs(String guestOS) throws org.apache.thrift.TException; + public void deleteAllAdditionalLecturePermissions(String lectureID, String token, String userID) throws org.apache.thrift.TException; - public boolean userIsImageAdmin(String userID, String imageID) throws org.apache.thrift.TException; + public String getOsNameForGuestOs(String guestOS, String token) throws org.apache.thrift.TException; - public boolean userIsLectureAdmin(String userID, String lectureID) throws org.apache.thrift.TException; + public boolean userIsImageAdmin(String imageID, String token, String userID) throws org.apache.thrift.TException; - public String createRandomUUID() throws org.apache.thrift.TException; + public boolean userIsLectureAdmin(String userID, String lectureID, String token) throws org.apache.thrift.TException; + + public String createRandomUUID(String token) throws org.apache.thrift.TException; + + public String getInstitutionByID(String institutionID) throws org.apache.thrift.TException; } public interface AsyncIface { - public void getFtpUser(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getFtpUser(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + + public void authenticated(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void setTokenForSession(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void setSessionInvalid(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void DeleteFtpUser(String user, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void DeleteFtpUser(String user, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getPathOfImage(String image_id, String version, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getPathOfImage(String image_id, String version, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void setInstitution(String university, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void setInstitution(String university, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void writeVLdata(String imagename, String desc, String login, String firstname, String lastname, String university, String Mail, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu, String imagePath, boolean isTemplate, long filesize, long shareMode, String os, String uid, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void writeVLdata(String imagename, String desc, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu, String imagePath, boolean isTemplate, long filesize, long shareMode, String os, String uid, String token, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getImageListPermissionWrite(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getImageListPermissionWrite(String userID, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getImageListPermissionRead(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getImageListPermissionRead(String userID, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getImageListPermissionLink(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getImageListPermissionLink(String userID, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getImageListPermissionAdmin(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getImageListPermissionAdmin(String userID, String token, 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 getImageListAllTemplates(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getImageList(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getImageList(String token, 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 getLectureList(String token, 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; + public void getLectureListPermissionRead(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getLectureListPermissionWrite(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getLectureListPermissionWrite(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getLectureListPermissionAdmin(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getLectureListPermissionAdmin(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getAllOS(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getAllOS(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getAllUniversities(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getAllUniversities(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getPersonData(String Vorname, String Nachname, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getPersonData(String Vorname, String Nachname, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getItemOwner(String itemID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getItemOwner(String itemID, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void setPerson(String login, String lastname, String firstname, String mail, String Institution, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void setPerson(String userID, String token, String institution, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void writeLecturedata(String name, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String login, String firstname, String lastname, String university, String Mail, String Tel, String Fak, String lectureID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void writeLecturedata(String name, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String token, String Tel, String Fak, String lectureID, String university, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void startFileCopy(String file, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void startFileCopy(String file, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getImageData(String imageid, String imageversion, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getImageData(String imageid, String imageversion, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getLectureData(String lectureid, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getLectureData(String lectureid, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void updateImageData(String name, String newName, String desc, String image_path, boolean license, boolean internet, long ram, long cpu, String id, String version, boolean isTemplate, long filesize, long shareMode, String os, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void updateImageData(String name, String newName, String desc, String image_path, boolean license, boolean internet, long ram, long cpu, String id, String version, boolean isTemplate, long filesize, long shareMode, String os, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void deleteImageData(String id, String version, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void deleteImageData(String id, String version, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void updateLecturedata(String name, String newName, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imageid, String imageversion, String user, String firstname, String lastname, String university, String Mail, String Tel, String Fak, String id, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void updateLecturedata(String name, String newName, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imageid, String imageversion, String token, String Tel, String Fak, String id, String university, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void deleteImageServer(String id, String version, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void deleteImageServer(String id, String version, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void connectedToLecture(String id, String version, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void connectedToLecture(String id, String version, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void deleteLecture(String id, String hs, String user, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void deleteLecture(String id, String token, String university, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void checkUser(String username, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void checkUser(String username, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void createUser(String loginName, String lastName, String firstName, String mail, String university, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void createUser(String token, String university, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void writeImageRights(String imagename, String username, String lastName, String firstName, String mail, String university, String role, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void writeImageRights(String imagename, String token, String role, String university, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void writeAdditionalImageRights(String imageName, String userID, boolean isRead, boolean isWrite, boolean isLinkAllowed, boolean isAdmin, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void writeAdditionalImageRights(String imageName, String userID, boolean isRead, boolean isWrite, boolean isLinkAllowed, boolean isAdmin, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void writeLectureRights(String lecturename, String username, String lastName, String firstName, String mail, String university, String role, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void writeLectureRights(String lectureID, String role, String token, String university, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void writeAdditionalLectureRights(String lectureName, String userID, boolean isRead, boolean isWrite, boolean isAdmin, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void writeAdditionalLectureRights(String lectureName, String userID, boolean isRead, boolean isWrite, boolean isAdmin, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getAllOtherSatelliteUsers(List userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getAllOtherSatelliteUsers(List userID, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getPermissionForUserAndImage(String userID, String imageID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getPermissionForUserAndImage(String token, String imageID, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getAdditionalImageContacts(String imageID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getAdditionalImageContacts(String imageID, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getPermissionForUserAndLecture(String userID, String lectureID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getPermissionForUserAndLecture(String token, String lectureID, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void deleteAllAdditionalImagePermissions(String imageID, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void deleteAllAdditionalImagePermissions(String imageID, String token, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void deleteAllAdditionalLecturePermissions(String lectureID, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void deleteAllAdditionalLecturePermissions(String lectureID, String token, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getOsNameForGuestOs(String guestOS, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getOsNameForGuestOs(String guestOS, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void userIsImageAdmin(String userID, String imageID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void userIsImageAdmin(String imageID, String token, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void userIsLectureAdmin(String userID, String lectureID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void userIsLectureAdmin(String userID, String lectureID, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void createRandomUUID(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void createRandomUUID(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + + public void getInstitutionByID(String institutionID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; } @@ -250,15 +258,16 @@ public class Server { super(iprot, oprot); } - public User getFtpUser() throws org.apache.thrift.TException + public User getFtpUser(String token) throws org.apache.thrift.TException { - send_getFtpUser(); + send_getFtpUser(token); return recv_getFtpUser(); } - public void send_getFtpUser() throws org.apache.thrift.TException + public void send_getFtpUser(String token) throws org.apache.thrift.TException { getFtpUser_args args = new getFtpUser_args(); + args.setToken(token); sendBase("getFtpUser", args); } @@ -272,36 +281,63 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFtpUser failed: unknown result"); } - public void setTokenForSession(String token) throws org.apache.thrift.TException + public boolean authenticated(String token) throws org.apache.thrift.TException { - send_setTokenForSession(token); - recv_setTokenForSession(); + send_authenticated(token); + return recv_authenticated(); } - public void send_setTokenForSession(String token) throws org.apache.thrift.TException + public void send_authenticated(String token) throws org.apache.thrift.TException { - setTokenForSession_args args = new setTokenForSession_args(); + authenticated_args args = new authenticated_args(); args.setToken(token); - sendBase("setTokenForSession", args); + sendBase("authenticated", args); } - public void recv_setTokenForSession() throws org.apache.thrift.TException + public boolean recv_authenticated() throws org.apache.thrift.TException { - setTokenForSession_result result = new setTokenForSession_result(); - receiveBase(result, "setTokenForSession"); - return; + authenticated_result result = new authenticated_result(); + receiveBase(result, "authenticated"); + if (result.isSetSuccess()) { + return result.success; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticated failed: unknown result"); } - public long DeleteFtpUser(String user) throws org.apache.thrift.TException + public boolean setSessionInvalid(String token) throws org.apache.thrift.TException { - send_DeleteFtpUser(user); + send_setSessionInvalid(token); + return recv_setSessionInvalid(); + } + + public void send_setSessionInvalid(String token) throws org.apache.thrift.TException + { + setSessionInvalid_args args = new setSessionInvalid_args(); + args.setToken(token); + sendBase("setSessionInvalid", args); + } + + public boolean recv_setSessionInvalid() throws org.apache.thrift.TException + { + setSessionInvalid_result result = new setSessionInvalid_result(); + receiveBase(result, "setSessionInvalid"); + if (result.isSetSuccess()) { + return result.success; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setSessionInvalid failed: unknown result"); + } + + public long DeleteFtpUser(String user, String token) throws org.apache.thrift.TException + { + send_DeleteFtpUser(user, token); return recv_DeleteFtpUser(); } - public void send_DeleteFtpUser(String user) throws org.apache.thrift.TException + public void send_DeleteFtpUser(String user, String token) throws org.apache.thrift.TException { DeleteFtpUser_args args = new DeleteFtpUser_args(); args.setUser(user); + args.setToken(token); sendBase("DeleteFtpUser", args); } @@ -315,17 +351,18 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "DeleteFtpUser failed: unknown result"); } - public String getPathOfImage(String image_id, String version) throws org.apache.thrift.TException + public String getPathOfImage(String image_id, String version, String token) throws org.apache.thrift.TException { - send_getPathOfImage(image_id, version); + send_getPathOfImage(image_id, version, token); return recv_getPathOfImage(); } - public void send_getPathOfImage(String image_id, String version) throws org.apache.thrift.TException + public void send_getPathOfImage(String image_id, String version, String token) throws org.apache.thrift.TException { getPathOfImage_args args = new getPathOfImage_args(); args.setImage_id(image_id); args.setVersion(version); + args.setToken(token); sendBase("getPathOfImage", args); } @@ -339,16 +376,17 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPathOfImage failed: unknown result"); } - public String setInstitution(String university) throws org.apache.thrift.TException + public String setInstitution(String university, String token) throws org.apache.thrift.TException { - send_setInstitution(university); + send_setInstitution(university, token); return recv_setInstitution(); } - public void send_setInstitution(String university) throws org.apache.thrift.TException + public void send_setInstitution(String university, String token) throws org.apache.thrift.TException { setInstitution_args args = new setInstitution_args(); args.setUniversity(university); + args.setToken(token); sendBase("setInstitution", args); } @@ -362,22 +400,17 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setInstitution failed: unknown result"); } - public boolean writeVLdata(String imagename, String desc, String login, String firstname, String lastname, String university, String Mail, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu, String imagePath, boolean isTemplate, long filesize, long shareMode, String os, String uid) throws org.apache.thrift.TException + public boolean writeVLdata(String imagename, String desc, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu, String imagePath, boolean isTemplate, long filesize, long shareMode, String os, String uid, String token, String userID) throws org.apache.thrift.TException { - send_writeVLdata(imagename, desc, login, firstname, lastname, university, Mail, Tel, Fak, license, internet, ram, cpu, imagePath, isTemplate, filesize, shareMode, os, uid); + send_writeVLdata(imagename, desc, Tel, Fak, license, internet, ram, cpu, imagePath, isTemplate, filesize, shareMode, os, uid, token, userID); return recv_writeVLdata(); } - public void send_writeVLdata(String imagename, String desc, String login, String firstname, String lastname, String university, String Mail, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu, String imagePath, boolean isTemplate, long filesize, long shareMode, String os, String uid) throws org.apache.thrift.TException + public void send_writeVLdata(String imagename, String desc, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu, String imagePath, boolean isTemplate, long filesize, long shareMode, String os, String uid, String token, String userID) throws org.apache.thrift.TException { writeVLdata_args args = new writeVLdata_args(); args.setImagename(imagename); args.setDesc(desc); - args.setLogin(login); - args.setFirstname(firstname); - args.setLastname(lastname); - args.setUniversity(university); - args.setMail(Mail); args.setTel(Tel); args.setFak(Fak); args.setLicense(license); @@ -390,6 +423,8 @@ public class Server { args.setShareMode(shareMode); args.setOs(os); args.setUid(uid); + args.setToken(token); + args.setUserID(userID); sendBase("writeVLdata", args); } @@ -403,16 +438,17 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "writeVLdata failed: unknown result"); } - public List getImageListPermissionWrite(String userID) throws org.apache.thrift.TException + public List getImageListPermissionWrite(String userID, String token) throws org.apache.thrift.TException { - send_getImageListPermissionWrite(userID); + send_getImageListPermissionWrite(userID, token); return recv_getImageListPermissionWrite(); } - public void send_getImageListPermissionWrite(String userID) throws org.apache.thrift.TException + public void send_getImageListPermissionWrite(String userID, String token) throws org.apache.thrift.TException { getImageListPermissionWrite_args args = new getImageListPermissionWrite_args(); args.setUserID(userID); + args.setToken(token); sendBase("getImageListPermissionWrite", args); } @@ -426,16 +462,17 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImageListPermissionWrite failed: unknown result"); } - public List getImageListPermissionRead(String userID) throws org.apache.thrift.TException + public List getImageListPermissionRead(String userID, String token) throws org.apache.thrift.TException { - send_getImageListPermissionRead(userID); + send_getImageListPermissionRead(userID, token); return recv_getImageListPermissionRead(); } - public void send_getImageListPermissionRead(String userID) throws org.apache.thrift.TException + public void send_getImageListPermissionRead(String userID, String token) throws org.apache.thrift.TException { getImageListPermissionRead_args args = new getImageListPermissionRead_args(); args.setUserID(userID); + args.setToken(token); sendBase("getImageListPermissionRead", args); } @@ -449,16 +486,17 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImageListPermissionRead failed: unknown result"); } - public List getImageListPermissionLink(String userID) throws org.apache.thrift.TException + public List getImageListPermissionLink(String userID, String token) throws org.apache.thrift.TException { - send_getImageListPermissionLink(userID); + send_getImageListPermissionLink(userID, token); return recv_getImageListPermissionLink(); } - public void send_getImageListPermissionLink(String userID) throws org.apache.thrift.TException + public void send_getImageListPermissionLink(String userID, String token) throws org.apache.thrift.TException { getImageListPermissionLink_args args = new getImageListPermissionLink_args(); args.setUserID(userID); + args.setToken(token); sendBase("getImageListPermissionLink", args); } @@ -472,16 +510,17 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImageListPermissionLink failed: unknown result"); } - public List getImageListPermissionAdmin(String userID) throws org.apache.thrift.TException + public List getImageListPermissionAdmin(String userID, String token) throws org.apache.thrift.TException { - send_getImageListPermissionAdmin(userID); + send_getImageListPermissionAdmin(userID, token); return recv_getImageListPermissionAdmin(); } - public void send_getImageListPermissionAdmin(String userID) throws org.apache.thrift.TException + public void send_getImageListPermissionAdmin(String userID, String token) throws org.apache.thrift.TException { getImageListPermissionAdmin_args args = new getImageListPermissionAdmin_args(); args.setUserID(userID); + args.setToken(token); sendBase("getImageListPermissionAdmin", args); } @@ -495,15 +534,16 @@ 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 + public List getImageListAllTemplates(String token) throws org.apache.thrift.TException { - send_getImageListAllTemplates(); + send_getImageListAllTemplates(token); return recv_getImageListAllTemplates(); } - public void send_getImageListAllTemplates() throws org.apache.thrift.TException + public void send_getImageListAllTemplates(String token) throws org.apache.thrift.TException { getImageListAllTemplates_args args = new getImageListAllTemplates_args(); + args.setToken(token); sendBase("getImageListAllTemplates", args); } @@ -517,16 +557,16 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImageListAllTemplates failed: unknown result"); } - public List getImageList(String userID) throws org.apache.thrift.TException + public List getImageList(String token) throws org.apache.thrift.TException { - send_getImageList(userID); + send_getImageList(token); return recv_getImageList(); } - public void send_getImageList(String userID) throws org.apache.thrift.TException + public void send_getImageList(String token) throws org.apache.thrift.TException { getImageList_args args = new getImageList_args(); - args.setUserID(userID); + args.setToken(token); sendBase("getImageList", args); } @@ -540,15 +580,16 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImageList failed: unknown result"); } - public List getLectureList() throws org.apache.thrift.TException + public List getLectureList(String token) throws org.apache.thrift.TException { - send_getLectureList(); + send_getLectureList(token); return recv_getLectureList(); } - public void send_getLectureList() throws org.apache.thrift.TException + public void send_getLectureList(String token) throws org.apache.thrift.TException { getLectureList_args args = new getLectureList_args(); + args.setToken(token); sendBase("getLectureList", args); } @@ -562,16 +603,16 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLectureList failed: unknown result"); } - public List getLectureListPermissionRead(String userID) throws org.apache.thrift.TException + public List getLectureListPermissionRead(String token) throws org.apache.thrift.TException { - send_getLectureListPermissionRead(userID); + send_getLectureListPermissionRead(token); return recv_getLectureListPermissionRead(); } - public void send_getLectureListPermissionRead(String userID) throws org.apache.thrift.TException + public void send_getLectureListPermissionRead(String token) throws org.apache.thrift.TException { getLectureListPermissionRead_args args = new getLectureListPermissionRead_args(); - args.setUserID(userID); + args.setToken(token); sendBase("getLectureListPermissionRead", args); } @@ -585,16 +626,16 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLectureListPermissionRead failed: unknown result"); } - public List getLectureListPermissionWrite(String userID) throws org.apache.thrift.TException + public List getLectureListPermissionWrite(String token) throws org.apache.thrift.TException { - send_getLectureListPermissionWrite(userID); + send_getLectureListPermissionWrite(token); return recv_getLectureListPermissionWrite(); } - public void send_getLectureListPermissionWrite(String userID) throws org.apache.thrift.TException + public void send_getLectureListPermissionWrite(String token) throws org.apache.thrift.TException { getLectureListPermissionWrite_args args = new getLectureListPermissionWrite_args(); - args.setUserID(userID); + args.setToken(token); sendBase("getLectureListPermissionWrite", args); } @@ -608,16 +649,16 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLectureListPermissionWrite failed: unknown result"); } - public List getLectureListPermissionAdmin(String userID) throws org.apache.thrift.TException + public List getLectureListPermissionAdmin(String token) throws org.apache.thrift.TException { - send_getLectureListPermissionAdmin(userID); + send_getLectureListPermissionAdmin(token); return recv_getLectureListPermissionAdmin(); } - public void send_getLectureListPermissionAdmin(String userID) throws org.apache.thrift.TException + public void send_getLectureListPermissionAdmin(String token) throws org.apache.thrift.TException { getLectureListPermissionAdmin_args args = new getLectureListPermissionAdmin_args(); - args.setUserID(userID); + args.setToken(token); sendBase("getLectureListPermissionAdmin", args); } @@ -631,15 +672,16 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLectureListPermissionAdmin failed: unknown result"); } - public List getAllOS() throws org.apache.thrift.TException + public List getAllOS(String token) throws org.apache.thrift.TException { - send_getAllOS(); + send_getAllOS(token); return recv_getAllOS(); } - public void send_getAllOS() throws org.apache.thrift.TException + public void send_getAllOS(String token) throws org.apache.thrift.TException { getAllOS_args args = new getAllOS_args(); + args.setToken(token); sendBase("getAllOS", args); } @@ -653,15 +695,16 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllOS failed: unknown result"); } - public List getAllUniversities() throws org.apache.thrift.TException + public List getAllUniversities(String token) throws org.apache.thrift.TException { - send_getAllUniversities(); + send_getAllUniversities(token); return recv_getAllUniversities(); } - public void send_getAllUniversities() throws org.apache.thrift.TException + public void send_getAllUniversities(String token) throws org.apache.thrift.TException { getAllUniversities_args args = new getAllUniversities_args(); + args.setToken(token); sendBase("getAllUniversities", args); } @@ -675,17 +718,18 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllUniversities failed: unknown result"); } - public Map getPersonData(String Vorname, String Nachname) throws org.apache.thrift.TException + public Map getPersonData(String Vorname, String Nachname, String token) throws org.apache.thrift.TException { - send_getPersonData(Vorname, Nachname); + send_getPersonData(Vorname, Nachname, token); return recv_getPersonData(); } - public void send_getPersonData(String Vorname, String Nachname) throws org.apache.thrift.TException + public void send_getPersonData(String Vorname, String Nachname, String token) throws org.apache.thrift.TException { getPersonData_args args = new getPersonData_args(); args.setVorname(Vorname); args.setNachname(Nachname); + args.setToken(token); sendBase("getPersonData", args); } @@ -699,16 +743,17 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPersonData failed: unknown result"); } - public Map getItemOwner(String itemID) throws org.apache.thrift.TException + public Map getItemOwner(String itemID, String token) throws org.apache.thrift.TException { - send_getItemOwner(itemID); + send_getItemOwner(itemID, token); return recv_getItemOwner(); } - public void send_getItemOwner(String itemID) throws org.apache.thrift.TException + public void send_getItemOwner(String itemID, String token) throws org.apache.thrift.TException { getItemOwner_args args = new getItemOwner_args(); args.setItemID(itemID); + args.setToken(token); sendBase("getItemOwner", args); } @@ -722,20 +767,18 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemOwner failed: unknown result"); } - public void setPerson(String login, String lastname, String firstname, String mail, String Institution) throws org.apache.thrift.TException + public void setPerson(String userID, String token, String institution) throws org.apache.thrift.TException { - send_setPerson(login, lastname, firstname, mail, Institution); + send_setPerson(userID, token, institution); recv_setPerson(); } - public void send_setPerson(String login, String lastname, String firstname, String mail, String Institution) throws org.apache.thrift.TException + public void send_setPerson(String userID, String token, String institution) throws org.apache.thrift.TException { setPerson_args args = new setPerson_args(); - args.setLogin(login); - args.setLastname(lastname); - args.setFirstname(firstname); - args.setMail(mail); - args.setInstitution(Institution); + args.setUserID(userID); + args.setToken(token); + args.setInstitution(institution); sendBase("setPerson", args); } @@ -746,13 +789,13 @@ public class Server { return; } - public boolean writeLecturedata(String name, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String login, String firstname, String lastname, String university, String Mail, String Tel, String Fak, String lectureID) throws org.apache.thrift.TException + public boolean writeLecturedata(String name, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String token, String Tel, String Fak, String lectureID, String university) throws org.apache.thrift.TException { - send_writeLecturedata(name, shortdesc, desc, startDate, endDate, isActive, imagename, login, firstname, lastname, university, Mail, Tel, Fak, lectureID); + send_writeLecturedata(name, shortdesc, desc, startDate, endDate, isActive, imagename, token, Tel, Fak, lectureID, university); return recv_writeLecturedata(); } - public void send_writeLecturedata(String name, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String login, String firstname, String lastname, String university, String Mail, String Tel, String Fak, String lectureID) throws org.apache.thrift.TException + public void send_writeLecturedata(String name, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String token, String Tel, String Fak, String lectureID, String university) throws org.apache.thrift.TException { writeLecturedata_args args = new writeLecturedata_args(); args.setName(name); @@ -762,14 +805,11 @@ public class Server { args.setEndDate(endDate); args.setIsActive(isActive); args.setImagename(imagename); - args.setLogin(login); - args.setFirstname(firstname); - args.setLastname(lastname); - args.setUniversity(university); - args.setMail(Mail); + args.setToken(token); args.setTel(Tel); args.setFak(Fak); args.setLectureID(lectureID); + args.setUniversity(university); sendBase("writeLecturedata", args); } @@ -783,16 +823,17 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "writeLecturedata failed: unknown result"); } - public boolean startFileCopy(String file) throws org.apache.thrift.TException + public boolean startFileCopy(String file, String token) throws org.apache.thrift.TException { - send_startFileCopy(file); + send_startFileCopy(file, token); return recv_startFileCopy(); } - public void send_startFileCopy(String file) throws org.apache.thrift.TException + public void send_startFileCopy(String file, String token) throws org.apache.thrift.TException { startFileCopy_args args = new startFileCopy_args(); args.setFile(file); + args.setToken(token); sendBase("startFileCopy", args); } @@ -806,17 +847,18 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "startFileCopy failed: unknown result"); } - public Map getImageData(String imageid, String imageversion) throws org.apache.thrift.TException + public Map getImageData(String imageid, String imageversion, String token) throws org.apache.thrift.TException { - send_getImageData(imageid, imageversion); + send_getImageData(imageid, imageversion, token); return recv_getImageData(); } - public void send_getImageData(String imageid, String imageversion) throws org.apache.thrift.TException + public void send_getImageData(String imageid, String imageversion, String token) throws org.apache.thrift.TException { getImageData_args args = new getImageData_args(); args.setImageid(imageid); args.setImageversion(imageversion); + args.setToken(token); sendBase("getImageData", args); } @@ -830,16 +872,17 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImageData failed: unknown result"); } - public Map getLectureData(String lectureid) throws org.apache.thrift.TException + public Map getLectureData(String lectureid, String token) throws org.apache.thrift.TException { - send_getLectureData(lectureid); + send_getLectureData(lectureid, token); return recv_getLectureData(); } - public void send_getLectureData(String lectureid) throws org.apache.thrift.TException + public void send_getLectureData(String lectureid, String token) throws org.apache.thrift.TException { getLectureData_args args = new getLectureData_args(); args.setLectureid(lectureid); + args.setToken(token); sendBase("getLectureData", args); } @@ -853,13 +896,13 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLectureData failed: unknown result"); } - public boolean updateImageData(String name, String newName, String desc, String image_path, boolean license, boolean internet, long ram, long cpu, String id, String version, boolean isTemplate, long filesize, long shareMode, String os) throws org.apache.thrift.TException + public boolean updateImageData(String name, String newName, String desc, String image_path, boolean license, boolean internet, long ram, long cpu, String id, String version, boolean isTemplate, long filesize, long shareMode, String os, String token) throws org.apache.thrift.TException { - send_updateImageData(name, newName, desc, image_path, license, internet, ram, cpu, id, version, isTemplate, filesize, shareMode, os); + send_updateImageData(name, newName, desc, image_path, license, internet, ram, cpu, id, version, isTemplate, filesize, shareMode, os, token); return recv_updateImageData(); } - public void send_updateImageData(String name, String newName, String desc, String image_path, boolean license, boolean internet, long ram, long cpu, String id, String version, boolean isTemplate, long filesize, long shareMode, String os) throws org.apache.thrift.TException + public void send_updateImageData(String name, String newName, String desc, String image_path, boolean license, boolean internet, long ram, long cpu, String id, String version, boolean isTemplate, long filesize, long shareMode, String os, String token) throws org.apache.thrift.TException { updateImageData_args args = new updateImageData_args(); args.setName(name); @@ -876,6 +919,7 @@ public class Server { args.setFilesize(filesize); args.setShareMode(shareMode); args.setOs(os); + args.setToken(token); sendBase("updateImageData", args); } @@ -889,17 +933,18 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateImageData failed: unknown result"); } - public boolean deleteImageData(String id, String version) throws org.apache.thrift.TException + public boolean deleteImageData(String id, String version, String token) throws org.apache.thrift.TException { - send_deleteImageData(id, version); + send_deleteImageData(id, version, token); return recv_deleteImageData(); } - public void send_deleteImageData(String id, String version) throws org.apache.thrift.TException + public void send_deleteImageData(String id, String version, String token) throws org.apache.thrift.TException { deleteImageData_args args = new deleteImageData_args(); args.setId(id); args.setVersion(version); + args.setToken(token); sendBase("deleteImageData", args); } @@ -913,13 +958,13 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteImageData failed: unknown result"); } - public boolean updateLecturedata(String name, String newName, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imageid, String imageversion, String user, String firstname, String lastname, String university, String Mail, String Tel, String Fak, String id) throws org.apache.thrift.TException + public boolean updateLecturedata(String name, String newName, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imageid, String imageversion, String token, String Tel, String Fak, String id, String university) throws org.apache.thrift.TException { - send_updateLecturedata(name, newName, shortdesc, desc, startDate, endDate, isActive, imageid, imageversion, user, firstname, lastname, university, Mail, Tel, Fak, id); + send_updateLecturedata(name, newName, shortdesc, desc, startDate, endDate, isActive, imageid, imageversion, token, Tel, Fak, id, university); return recv_updateLecturedata(); } - public void send_updateLecturedata(String name, String newName, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imageid, String imageversion, String user, String firstname, String lastname, String university, String Mail, String Tel, String Fak, String id) throws org.apache.thrift.TException + public void send_updateLecturedata(String name, String newName, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imageid, String imageversion, String token, String Tel, String Fak, String id, String university) throws org.apache.thrift.TException { updateLecturedata_args args = new updateLecturedata_args(); args.setName(name); @@ -931,14 +976,11 @@ public class Server { args.setIsActive(isActive); args.setImageid(imageid); args.setImageversion(imageversion); - args.setUser(user); - args.setFirstname(firstname); - args.setLastname(lastname); - args.setUniversity(university); - args.setMail(Mail); + args.setToken(token); args.setTel(Tel); args.setFak(Fak); args.setId(id); + args.setUniversity(university); sendBase("updateLecturedata", args); } @@ -952,17 +994,18 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateLecturedata failed: unknown result"); } - public boolean deleteImageServer(String id, String version) throws org.apache.thrift.TException + public boolean deleteImageServer(String id, String version, String token) throws org.apache.thrift.TException { - send_deleteImageServer(id, version); + send_deleteImageServer(id, version, token); return recv_deleteImageServer(); } - public void send_deleteImageServer(String id, String version) throws org.apache.thrift.TException + public void send_deleteImageServer(String id, String version, String token) throws org.apache.thrift.TException { deleteImageServer_args args = new deleteImageServer_args(); args.setId(id); args.setVersion(version); + args.setToken(token); sendBase("deleteImageServer", args); } @@ -976,17 +1019,18 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteImageServer failed: unknown result"); } - public boolean connectedToLecture(String id, String version) throws org.apache.thrift.TException + public boolean connectedToLecture(String id, String version, String token) throws org.apache.thrift.TException { - send_connectedToLecture(id, version); + send_connectedToLecture(id, version, token); return recv_connectedToLecture(); } - public void send_connectedToLecture(String id, String version) throws org.apache.thrift.TException + public void send_connectedToLecture(String id, String version, String token) throws org.apache.thrift.TException { connectedToLecture_args args = new connectedToLecture_args(); args.setId(id); args.setVersion(version); + args.setToken(token); sendBase("connectedToLecture", args); } @@ -1000,18 +1044,18 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "connectedToLecture failed: unknown result"); } - public boolean deleteLecture(String id, String hs, String user) throws org.apache.thrift.TException + public boolean deleteLecture(String id, String token, String university) throws org.apache.thrift.TException { - send_deleteLecture(id, hs, user); + send_deleteLecture(id, token, university); return recv_deleteLecture(); } - public void send_deleteLecture(String id, String hs, String user) throws org.apache.thrift.TException + public void send_deleteLecture(String id, String token, String university) throws org.apache.thrift.TException { deleteLecture_args args = new deleteLecture_args(); args.setId(id); - args.setHs(hs); - args.setUser(user); + args.setToken(token); + args.setUniversity(university); sendBase("deleteLecture", args); } @@ -1025,16 +1069,17 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteLecture failed: unknown result"); } - public boolean checkUser(String username) throws org.apache.thrift.TException + public boolean checkUser(String username, String token) throws org.apache.thrift.TException { - send_checkUser(username); + send_checkUser(username, token); return recv_checkUser(); } - public void send_checkUser(String username) throws org.apache.thrift.TException + public void send_checkUser(String username, String token) throws org.apache.thrift.TException { checkUser_args args = new checkUser_args(); args.setUsername(username); + args.setToken(token); sendBase("checkUser", args); } @@ -1048,19 +1093,16 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "checkUser failed: unknown result"); } - public boolean createUser(String loginName, String lastName, String firstName, String mail, String university) throws org.apache.thrift.TException + public boolean createUser(String token, String university) throws org.apache.thrift.TException { - send_createUser(loginName, lastName, firstName, mail, university); + send_createUser(token, university); return recv_createUser(); } - public void send_createUser(String loginName, String lastName, String firstName, String mail, String university) throws org.apache.thrift.TException + public void send_createUser(String token, String university) throws org.apache.thrift.TException { createUser_args args = new createUser_args(); - args.setLoginName(loginName); - args.setLastName(lastName); - args.setFirstName(firstName); - args.setMail(mail); + args.setToken(token); args.setUniversity(university); sendBase("createUser", args); } @@ -1075,22 +1117,20 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createUser failed: unknown result"); } - public boolean writeImageRights(String imagename, String username, String lastName, String firstName, String mail, String university, String role) throws org.apache.thrift.TException + public boolean writeImageRights(String imagename, String token, String role, String university, String userID) throws org.apache.thrift.TException { - send_writeImageRights(imagename, username, lastName, firstName, mail, university, role); + send_writeImageRights(imagename, token, role, university, userID); return recv_writeImageRights(); } - public void send_writeImageRights(String imagename, String username, String lastName, String firstName, String mail, String university, String role) throws org.apache.thrift.TException + public void send_writeImageRights(String imagename, String token, String role, String university, String userID) throws org.apache.thrift.TException { writeImageRights_args args = new writeImageRights_args(); args.setImagename(imagename); - args.setUsername(username); - args.setLastName(lastName); - args.setFirstName(firstName); - args.setMail(mail); - args.setUniversity(university); + args.setToken(token); args.setRole(role); + args.setUniversity(university); + args.setUserID(userID); sendBase("writeImageRights", args); } @@ -1104,13 +1144,13 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "writeImageRights failed: unknown result"); } - public boolean writeAdditionalImageRights(String imageName, String userID, boolean isRead, boolean isWrite, boolean isLinkAllowed, boolean isAdmin) throws org.apache.thrift.TException + public boolean writeAdditionalImageRights(String imageName, String userID, boolean isRead, boolean isWrite, boolean isLinkAllowed, boolean isAdmin, String token) throws org.apache.thrift.TException { - send_writeAdditionalImageRights(imageName, userID, isRead, isWrite, isLinkAllowed, isAdmin); + send_writeAdditionalImageRights(imageName, userID, isRead, isWrite, isLinkAllowed, isAdmin, token); return recv_writeAdditionalImageRights(); } - public void send_writeAdditionalImageRights(String imageName, String userID, boolean isRead, boolean isWrite, boolean isLinkAllowed, boolean isAdmin) throws org.apache.thrift.TException + public void send_writeAdditionalImageRights(String imageName, String userID, boolean isRead, boolean isWrite, boolean isLinkAllowed, boolean isAdmin, String token) throws org.apache.thrift.TException { writeAdditionalImageRights_args args = new writeAdditionalImageRights_args(); args.setImageName(imageName); @@ -1119,6 +1159,7 @@ public class Server { args.setIsWrite(isWrite); args.setIsLinkAllowed(isLinkAllowed); args.setIsAdmin(isAdmin); + args.setToken(token); sendBase("writeAdditionalImageRights", args); } @@ -1132,22 +1173,20 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "writeAdditionalImageRights failed: unknown result"); } - public boolean writeLectureRights(String lecturename, String username, String lastName, String firstName, String mail, String university, String role) throws org.apache.thrift.TException + public boolean writeLectureRights(String lectureID, String role, String token, String university, String userID) throws org.apache.thrift.TException { - send_writeLectureRights(lecturename, username, lastName, firstName, mail, university, role); + send_writeLectureRights(lectureID, role, token, university, userID); return recv_writeLectureRights(); } - public void send_writeLectureRights(String lecturename, String username, String lastName, String firstName, String mail, String university, String role) throws org.apache.thrift.TException + public void send_writeLectureRights(String lectureID, String role, String token, String university, String userID) throws org.apache.thrift.TException { writeLectureRights_args args = new writeLectureRights_args(); - args.setLecturename(lecturename); - args.setUsername(username); - args.setLastName(lastName); - args.setFirstName(firstName); - args.setMail(mail); - args.setUniversity(university); + args.setLectureID(lectureID); args.setRole(role); + args.setToken(token); + args.setUniversity(university); + args.setUserID(userID); sendBase("writeLectureRights", args); } @@ -1161,13 +1200,13 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "writeLectureRights failed: unknown result"); } - public boolean writeAdditionalLectureRights(String lectureName, String userID, boolean isRead, boolean isWrite, boolean isAdmin) throws org.apache.thrift.TException + public boolean writeAdditionalLectureRights(String lectureName, String userID, boolean isRead, boolean isWrite, boolean isAdmin, String token) throws org.apache.thrift.TException { - send_writeAdditionalLectureRights(lectureName, userID, isRead, isWrite, isAdmin); + send_writeAdditionalLectureRights(lectureName, userID, isRead, isWrite, isAdmin, token); return recv_writeAdditionalLectureRights(); } - public void send_writeAdditionalLectureRights(String lectureName, String userID, boolean isRead, boolean isWrite, boolean isAdmin) throws org.apache.thrift.TException + public void send_writeAdditionalLectureRights(String lectureName, String userID, boolean isRead, boolean isWrite, boolean isAdmin, String token) throws org.apache.thrift.TException { writeAdditionalLectureRights_args args = new writeAdditionalLectureRights_args(); args.setLectureName(lectureName); @@ -1175,6 +1214,7 @@ public class Server { args.setIsRead(isRead); args.setIsWrite(isWrite); args.setIsAdmin(isAdmin); + args.setToken(token); sendBase("writeAdditionalLectureRights", args); } @@ -1188,16 +1228,17 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "writeAdditionalLectureRights failed: unknown result"); } - public List getAllOtherSatelliteUsers(List userID) throws org.apache.thrift.TException + public List getAllOtherSatelliteUsers(List userID, String token) throws org.apache.thrift.TException { - send_getAllOtherSatelliteUsers(userID); + send_getAllOtherSatelliteUsers(userID, token); return recv_getAllOtherSatelliteUsers(); } - public void send_getAllOtherSatelliteUsers(List userID) throws org.apache.thrift.TException + public void send_getAllOtherSatelliteUsers(List userID, String token) throws org.apache.thrift.TException { getAllOtherSatelliteUsers_args args = new getAllOtherSatelliteUsers_args(); args.setUserID(userID); + args.setToken(token); sendBase("getAllOtherSatelliteUsers", args); } @@ -1211,17 +1252,18 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllOtherSatelliteUsers failed: unknown result"); } - public List getPermissionForUserAndImage(String userID, String imageID) throws org.apache.thrift.TException + public List getPermissionForUserAndImage(String token, String imageID, String userID) throws org.apache.thrift.TException { - send_getPermissionForUserAndImage(userID, imageID); + send_getPermissionForUserAndImage(token, imageID, userID); return recv_getPermissionForUserAndImage(); } - public void send_getPermissionForUserAndImage(String userID, String imageID) throws org.apache.thrift.TException + public void send_getPermissionForUserAndImage(String token, String imageID, String userID) throws org.apache.thrift.TException { getPermissionForUserAndImage_args args = new getPermissionForUserAndImage_args(); - args.setUserID(userID); + args.setToken(token); args.setImageID(imageID); + args.setUserID(userID); sendBase("getPermissionForUserAndImage", args); } @@ -1235,16 +1277,17 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPermissionForUserAndImage failed: unknown result"); } - public List getAdditionalImageContacts(String imageID) throws org.apache.thrift.TException + public List getAdditionalImageContacts(String imageID, String token) throws org.apache.thrift.TException { - send_getAdditionalImageContacts(imageID); + send_getAdditionalImageContacts(imageID, token); return recv_getAdditionalImageContacts(); } - public void send_getAdditionalImageContacts(String imageID) throws org.apache.thrift.TException + public void send_getAdditionalImageContacts(String imageID, String token) throws org.apache.thrift.TException { getAdditionalImageContacts_args args = new getAdditionalImageContacts_args(); args.setImageID(imageID); + args.setToken(token); sendBase("getAdditionalImageContacts", args); } @@ -1258,17 +1301,18 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAdditionalImageContacts failed: unknown result"); } - public List getPermissionForUserAndLecture(String userID, String lectureID) throws org.apache.thrift.TException + public List getPermissionForUserAndLecture(String token, String lectureID, String userID) throws org.apache.thrift.TException { - send_getPermissionForUserAndLecture(userID, lectureID); + send_getPermissionForUserAndLecture(token, lectureID, userID); return recv_getPermissionForUserAndLecture(); } - public void send_getPermissionForUserAndLecture(String userID, String lectureID) throws org.apache.thrift.TException + public void send_getPermissionForUserAndLecture(String token, String lectureID, String userID) throws org.apache.thrift.TException { getPermissionForUserAndLecture_args args = new getPermissionForUserAndLecture_args(); - args.setUserID(userID); + args.setToken(token); args.setLectureID(lectureID); + args.setUserID(userID); sendBase("getPermissionForUserAndLecture", args); } @@ -1282,16 +1326,17 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPermissionForUserAndLecture failed: unknown result"); } - public void deleteAllAdditionalImagePermissions(String imageID, String userID) throws org.apache.thrift.TException + public void deleteAllAdditionalImagePermissions(String imageID, String token, String userID) throws org.apache.thrift.TException { - send_deleteAllAdditionalImagePermissions(imageID, userID); + send_deleteAllAdditionalImagePermissions(imageID, token, userID); recv_deleteAllAdditionalImagePermissions(); } - public void send_deleteAllAdditionalImagePermissions(String imageID, String userID) throws org.apache.thrift.TException + public void send_deleteAllAdditionalImagePermissions(String imageID, String token, String userID) throws org.apache.thrift.TException { deleteAllAdditionalImagePermissions_args args = new deleteAllAdditionalImagePermissions_args(); args.setImageID(imageID); + args.setToken(token); args.setUserID(userID); sendBase("deleteAllAdditionalImagePermissions", args); } @@ -1303,16 +1348,17 @@ public class Server { return; } - public void deleteAllAdditionalLecturePermissions(String lectureID, String userID) throws org.apache.thrift.TException + public void deleteAllAdditionalLecturePermissions(String lectureID, String token, String userID) throws org.apache.thrift.TException { - send_deleteAllAdditionalLecturePermissions(lectureID, userID); + send_deleteAllAdditionalLecturePermissions(lectureID, token, userID); recv_deleteAllAdditionalLecturePermissions(); } - public void send_deleteAllAdditionalLecturePermissions(String lectureID, String userID) throws org.apache.thrift.TException + public void send_deleteAllAdditionalLecturePermissions(String lectureID, String token, String userID) throws org.apache.thrift.TException { deleteAllAdditionalLecturePermissions_args args = new deleteAllAdditionalLecturePermissions_args(); args.setLectureID(lectureID); + args.setToken(token); args.setUserID(userID); sendBase("deleteAllAdditionalLecturePermissions", args); } @@ -1324,16 +1370,17 @@ public class Server { return; } - public String getOsNameForGuestOs(String guestOS) throws org.apache.thrift.TException + public String getOsNameForGuestOs(String guestOS, String token) throws org.apache.thrift.TException { - send_getOsNameForGuestOs(guestOS); + send_getOsNameForGuestOs(guestOS, token); return recv_getOsNameForGuestOs(); } - public void send_getOsNameForGuestOs(String guestOS) throws org.apache.thrift.TException + public void send_getOsNameForGuestOs(String guestOS, String token) throws org.apache.thrift.TException { getOsNameForGuestOs_args args = new getOsNameForGuestOs_args(); args.setGuestOS(guestOS); + args.setToken(token); sendBase("getOsNameForGuestOs", args); } @@ -1347,17 +1394,18 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOsNameForGuestOs failed: unknown result"); } - public boolean userIsImageAdmin(String userID, String imageID) throws org.apache.thrift.TException + public boolean userIsImageAdmin(String imageID, String token, String userID) throws org.apache.thrift.TException { - send_userIsImageAdmin(userID, imageID); + send_userIsImageAdmin(imageID, token, userID); return recv_userIsImageAdmin(); } - public void send_userIsImageAdmin(String userID, String imageID) throws org.apache.thrift.TException + public void send_userIsImageAdmin(String imageID, String token, String userID) throws org.apache.thrift.TException { userIsImageAdmin_args args = new userIsImageAdmin_args(); - args.setUserID(userID); args.setImageID(imageID); + args.setToken(token); + args.setUserID(userID); sendBase("userIsImageAdmin", args); } @@ -1371,17 +1419,18 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "userIsImageAdmin failed: unknown result"); } - public boolean userIsLectureAdmin(String userID, String lectureID) throws org.apache.thrift.TException + public boolean userIsLectureAdmin(String userID, String lectureID, String token) throws org.apache.thrift.TException { - send_userIsLectureAdmin(userID, lectureID); + send_userIsLectureAdmin(userID, lectureID, token); return recv_userIsLectureAdmin(); } - public void send_userIsLectureAdmin(String userID, String lectureID) throws org.apache.thrift.TException + public void send_userIsLectureAdmin(String userID, String lectureID, String token) throws org.apache.thrift.TException { userIsLectureAdmin_args args = new userIsLectureAdmin_args(); args.setUserID(userID); args.setLectureID(lectureID); + args.setToken(token); sendBase("userIsLectureAdmin", args); } @@ -1395,15 +1444,16 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "userIsLectureAdmin failed: unknown result"); } - public String createRandomUUID() throws org.apache.thrift.TException + public String createRandomUUID(String token) throws org.apache.thrift.TException { - send_createRandomUUID(); + send_createRandomUUID(token); return recv_createRandomUUID(); } - public void send_createRandomUUID() throws org.apache.thrift.TException + public void send_createRandomUUID(String token) throws org.apache.thrift.TException { createRandomUUID_args args = new createRandomUUID_args(); + args.setToken(token); sendBase("createRandomUUID", args); } @@ -1417,6 +1467,29 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createRandomUUID failed: unknown result"); } + public String getInstitutionByID(String institutionID) throws org.apache.thrift.TException + { + send_getInstitutionByID(institutionID); + return recv_getInstitutionByID(); + } + + public void send_getInstitutionByID(String institutionID) throws org.apache.thrift.TException + { + getInstitutionByID_args args = new getInstitutionByID_args(); + args.setInstitutionID(institutionID); + sendBase("getInstitutionByID", args); + } + + public String recv_getInstitutionByID() throws org.apache.thrift.TException + { + getInstitutionByID_result result = new getInstitutionByID_result(); + receiveBase(result, "getInstitutionByID"); + if (result.isSetSuccess()) { + return result.success; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInstitutionByID failed: unknown result"); + } + } public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface { public static class Factory implements org.apache.thrift.async.TAsyncClientFactory { @@ -1435,21 +1508,24 @@ public class Server { super(protocolFactory, clientManager, transport); } - public void getFtpUser(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getFtpUser(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getFtpUser_call method_call = new getFtpUser_call(resultHandler, this, ___protocolFactory, ___transport); + getFtpUser_call method_call = new getFtpUser_call(token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getFtpUser_call extends org.apache.thrift.async.TAsyncMethodCall { - public getFtpUser_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 { + private String token; + public getFtpUser_call(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); + this.token = token; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFtpUser", org.apache.thrift.protocol.TMessageType.CALL, 0)); getFtpUser_args args = new getFtpUser_args(); + args.setToken(token); args.write(prot); prot.writeMessageEnd(); } @@ -1464,56 +1540,91 @@ public class Server { } } - public void setTokenForSession(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void authenticated(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - setTokenForSession_call method_call = new setTokenForSession_call(token, resultHandler, this, ___protocolFactory, ___transport); + authenticated_call method_call = new authenticated_call(token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class setTokenForSession_call extends org.apache.thrift.async.TAsyncMethodCall { + public static class authenticated_call extends org.apache.thrift.async.TAsyncMethodCall { private String token; - public setTokenForSession_call(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public authenticated_call(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.token = token; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setTokenForSession", org.apache.thrift.protocol.TMessageType.CALL, 0)); - setTokenForSession_args args = new setTokenForSession_args(); + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticated", org.apache.thrift.protocol.TMessageType.CALL, 0)); + authenticated_args args = new authenticated_args(); args.setToken(token); args.write(prot); prot.writeMessageEnd(); } - public void getResult() throws org.apache.thrift.TException { + public boolean getResult() throws org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_authenticated(); + } + } + + public void setSessionInvalid(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + setSessionInvalid_call method_call = new setSessionInvalid_call(token, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class setSessionInvalid_call extends org.apache.thrift.async.TAsyncMethodCall { + private String token; + public setSessionInvalid_call(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.token = token; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setSessionInvalid", org.apache.thrift.protocol.TMessageType.CALL, 0)); + setSessionInvalid_args args = new setSessionInvalid_args(); + args.setToken(token); + args.write(prot); + prot.writeMessageEnd(); + } + + public boolean getResult() throws org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); - (new Client(prot)).recv_setTokenForSession(); + return (new Client(prot)).recv_setSessionInvalid(); } } - public void DeleteFtpUser(String user, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void DeleteFtpUser(String user, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - DeleteFtpUser_call method_call = new DeleteFtpUser_call(user, resultHandler, this, ___protocolFactory, ___transport); + DeleteFtpUser_call method_call = new DeleteFtpUser_call(user, token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class DeleteFtpUser_call extends org.apache.thrift.async.TAsyncMethodCall { private String user; - public DeleteFtpUser_call(String user, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String token; + public DeleteFtpUser_call(String user, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.user = user; + this.token = token; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("DeleteFtpUser", org.apache.thrift.protocol.TMessageType.CALL, 0)); DeleteFtpUser_args args = new DeleteFtpUser_args(); args.setUser(user); + args.setToken(token); args.write(prot); prot.writeMessageEnd(); } @@ -1528,9 +1639,9 @@ public class Server { } } - public void getPathOfImage(String image_id, String version, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getPathOfImage(String image_id, String version, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getPathOfImage_call method_call = new getPathOfImage_call(image_id, version, resultHandler, this, ___protocolFactory, ___transport); + getPathOfImage_call method_call = new getPathOfImage_call(image_id, version, token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } @@ -1538,10 +1649,12 @@ public class Server { public static class getPathOfImage_call extends org.apache.thrift.async.TAsyncMethodCall { private String image_id; private String version; - public getPathOfImage_call(String image_id, String version, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String token; + public getPathOfImage_call(String image_id, String version, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.image_id = image_id; this.version = version; + this.token = token; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { @@ -1549,6 +1662,7 @@ public class Server { getPathOfImage_args args = new getPathOfImage_args(); args.setImage_id(image_id); args.setVersion(version); + args.setToken(token); args.write(prot); prot.writeMessageEnd(); } @@ -1563,24 +1677,27 @@ public class Server { } } - public void setInstitution(String university, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void setInstitution(String university, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - setInstitution_call method_call = new setInstitution_call(university, resultHandler, this, ___protocolFactory, ___transport); + setInstitution_call method_call = new setInstitution_call(university, token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class setInstitution_call extends org.apache.thrift.async.TAsyncMethodCall { private String university; - public setInstitution_call(String university, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String token; + public setInstitution_call(String university, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.university = university; + this.token = token; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setInstitution", org.apache.thrift.protocol.TMessageType.CALL, 0)); setInstitution_args args = new setInstitution_args(); args.setUniversity(university); + args.setToken(token); args.write(prot); prot.writeMessageEnd(); } @@ -1595,9 +1712,9 @@ public class Server { } } - public void writeVLdata(String imagename, String desc, String login, String firstname, String lastname, String university, String Mail, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu, String imagePath, boolean isTemplate, long filesize, long shareMode, String os, String uid, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void writeVLdata(String imagename, String desc, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu, String imagePath, boolean isTemplate, long filesize, long shareMode, String os, String uid, String token, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - writeVLdata_call method_call = new writeVLdata_call(imagename, desc, login, firstname, lastname, university, Mail, Tel, Fak, license, internet, ram, cpu, imagePath, isTemplate, filesize, shareMode, os, uid, resultHandler, this, ___protocolFactory, ___transport); + writeVLdata_call method_call = new writeVLdata_call(imagename, desc, Tel, Fak, license, internet, ram, cpu, imagePath, isTemplate, filesize, shareMode, os, uid, token, userID, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } @@ -1605,11 +1722,6 @@ public class Server { public static class writeVLdata_call extends org.apache.thrift.async.TAsyncMethodCall { private String imagename; private String desc; - private String login; - private String firstname; - private String lastname; - private String university; - private String Mail; private String Tel; private String Fak; private boolean license; @@ -1622,15 +1734,12 @@ public class Server { private long shareMode; private String os; private String uid; - public writeVLdata_call(String imagename, String desc, String login, String firstname, String lastname, String university, String Mail, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu, String imagePath, boolean isTemplate, long filesize, long shareMode, String os, String uid, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String token; + private String userID; + public writeVLdata_call(String imagename, String desc, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu, String imagePath, boolean isTemplate, long filesize, long shareMode, String os, String uid, String token, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.imagename = imagename; this.desc = desc; - this.login = login; - this.firstname = firstname; - this.lastname = lastname; - this.university = university; - this.Mail = Mail; this.Tel = Tel; this.Fak = Fak; this.license = license; @@ -1643,6 +1752,8 @@ public class Server { this.shareMode = shareMode; this.os = os; this.uid = uid; + this.token = token; + this.userID = userID; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { @@ -1650,11 +1761,6 @@ public class Server { writeVLdata_args args = new writeVLdata_args(); args.setImagename(imagename); args.setDesc(desc); - args.setLogin(login); - args.setFirstname(firstname); - args.setLastname(lastname); - args.setUniversity(university); - args.setMail(Mail); args.setTel(Tel); args.setFak(Fak); args.setLicense(license); @@ -1667,6 +1773,8 @@ public class Server { args.setShareMode(shareMode); args.setOs(os); args.setUid(uid); + args.setToken(token); + args.setUserID(userID); args.write(prot); prot.writeMessageEnd(); } @@ -1681,24 +1789,27 @@ public class Server { } } - public void getImageListPermissionWrite(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getImageListPermissionWrite(String userID, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getImageListPermissionWrite_call method_call = new getImageListPermissionWrite_call(userID, resultHandler, this, ___protocolFactory, ___transport); + getImageListPermissionWrite_call method_call = new getImageListPermissionWrite_call(userID, token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getImageListPermissionWrite_call extends org.apache.thrift.async.TAsyncMethodCall { private String userID; - public getImageListPermissionWrite_call(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String token; + public getImageListPermissionWrite_call(String userID, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.userID = userID; + this.token = token; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getImageListPermissionWrite", org.apache.thrift.protocol.TMessageType.CALL, 0)); getImageListPermissionWrite_args args = new getImageListPermissionWrite_args(); args.setUserID(userID); + args.setToken(token); args.write(prot); prot.writeMessageEnd(); } @@ -1713,24 +1824,27 @@ public class Server { } } - public void getImageListPermissionRead(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getImageListPermissionRead(String userID, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getImageListPermissionRead_call method_call = new getImageListPermissionRead_call(userID, resultHandler, this, ___protocolFactory, ___transport); + getImageListPermissionRead_call method_call = new getImageListPermissionRead_call(userID, token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getImageListPermissionRead_call extends org.apache.thrift.async.TAsyncMethodCall { private String userID; - public getImageListPermissionRead_call(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String token; + public getImageListPermissionRead_call(String userID, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.userID = userID; + this.token = token; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getImageListPermissionRead", org.apache.thrift.protocol.TMessageType.CALL, 0)); getImageListPermissionRead_args args = new getImageListPermissionRead_args(); args.setUserID(userID); + args.setToken(token); args.write(prot); prot.writeMessageEnd(); } @@ -1745,24 +1859,27 @@ public class Server { } } - public void getImageListPermissionLink(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getImageListPermissionLink(String userID, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getImageListPermissionLink_call method_call = new getImageListPermissionLink_call(userID, resultHandler, this, ___protocolFactory, ___transport); + getImageListPermissionLink_call method_call = new getImageListPermissionLink_call(userID, token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getImageListPermissionLink_call extends org.apache.thrift.async.TAsyncMethodCall { private String userID; - public getImageListPermissionLink_call(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String token; + public getImageListPermissionLink_call(String userID, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.userID = userID; + this.token = token; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getImageListPermissionLink", org.apache.thrift.protocol.TMessageType.CALL, 0)); getImageListPermissionLink_args args = new getImageListPermissionLink_args(); args.setUserID(userID); + args.setToken(token); args.write(prot); prot.writeMessageEnd(); } @@ -1777,24 +1894,27 @@ public class Server { } } - public void getImageListPermissionAdmin(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getImageListPermissionAdmin(String userID, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getImageListPermissionAdmin_call method_call = new getImageListPermissionAdmin_call(userID, resultHandler, this, ___protocolFactory, ___transport); + getImageListPermissionAdmin_call method_call = new getImageListPermissionAdmin_call(userID, token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getImageListPermissionAdmin_call extends org.apache.thrift.async.TAsyncMethodCall { private String userID; - public getImageListPermissionAdmin_call(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String token; + public getImageListPermissionAdmin_call(String userID, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.userID = userID; + this.token = token; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getImageListPermissionAdmin", org.apache.thrift.protocol.TMessageType.CALL, 0)); getImageListPermissionAdmin_args args = new getImageListPermissionAdmin_args(); args.setUserID(userID); + args.setToken(token); args.write(prot); prot.writeMessageEnd(); } @@ -1809,21 +1929,24 @@ public class Server { } } - public void getImageListAllTemplates(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getImageListAllTemplates(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getImageListAllTemplates_call method_call = new getImageListAllTemplates_call(resultHandler, this, ___protocolFactory, ___transport); + getImageListAllTemplates_call method_call = new getImageListAllTemplates_call(token, 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 { + private String token; + public getImageListAllTemplates_call(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); + this.token = token; } 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.setToken(token); args.write(prot); prot.writeMessageEnd(); } @@ -1838,24 +1961,24 @@ public class Server { } } - public void getImageList(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getImageList(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getImageList_call method_call = new getImageList_call(userID, resultHandler, this, ___protocolFactory, ___transport); + getImageList_call method_call = new getImageList_call(token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getImageList_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userID; - public getImageList_call(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String token; + public getImageList_call(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); - this.userID = userID; + this.token = token; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getImageList", org.apache.thrift.protocol.TMessageType.CALL, 0)); getImageList_args args = new getImageList_args(); - args.setUserID(userID); + args.setToken(token); args.write(prot); prot.writeMessageEnd(); } @@ -1870,21 +1993,24 @@ public class Server { } } - public void getLectureList(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getLectureList(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getLectureList_call method_call = new getLectureList_call(resultHandler, this, ___protocolFactory, ___transport); + getLectureList_call method_call = new getLectureList_call(token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getLectureList_call extends org.apache.thrift.async.TAsyncMethodCall { - public getLectureList_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 { + private String token; + public getLectureList_call(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); + this.token = token; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLectureList", org.apache.thrift.protocol.TMessageType.CALL, 0)); getLectureList_args args = new getLectureList_args(); + args.setToken(token); args.write(prot); prot.writeMessageEnd(); } @@ -1899,24 +2025,24 @@ public class Server { } } - public void getLectureListPermissionRead(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getLectureListPermissionRead(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getLectureListPermissionRead_call method_call = new getLectureListPermissionRead_call(userID, resultHandler, this, ___protocolFactory, ___transport); + getLectureListPermissionRead_call method_call = new getLectureListPermissionRead_call(token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getLectureListPermissionRead_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userID; - public getLectureListPermissionRead_call(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String token; + public getLectureListPermissionRead_call(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); - this.userID = userID; + this.token = token; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLectureListPermissionRead", org.apache.thrift.protocol.TMessageType.CALL, 0)); getLectureListPermissionRead_args args = new getLectureListPermissionRead_args(); - args.setUserID(userID); + args.setToken(token); args.write(prot); prot.writeMessageEnd(); } @@ -1931,24 +2057,24 @@ public class Server { } } - public void getLectureListPermissionWrite(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getLectureListPermissionWrite(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getLectureListPermissionWrite_call method_call = new getLectureListPermissionWrite_call(userID, resultHandler, this, ___protocolFactory, ___transport); + getLectureListPermissionWrite_call method_call = new getLectureListPermissionWrite_call(token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getLectureListPermissionWrite_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userID; - public getLectureListPermissionWrite_call(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String token; + public getLectureListPermissionWrite_call(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); - this.userID = userID; + this.token = token; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLectureListPermissionWrite", org.apache.thrift.protocol.TMessageType.CALL, 0)); getLectureListPermissionWrite_args args = new getLectureListPermissionWrite_args(); - args.setUserID(userID); + args.setToken(token); args.write(prot); prot.writeMessageEnd(); } @@ -1963,24 +2089,24 @@ public class Server { } } - public void getLectureListPermissionAdmin(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getLectureListPermissionAdmin(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getLectureListPermissionAdmin_call method_call = new getLectureListPermissionAdmin_call(userID, resultHandler, this, ___protocolFactory, ___transport); + getLectureListPermissionAdmin_call method_call = new getLectureListPermissionAdmin_call(token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getLectureListPermissionAdmin_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userID; - public getLectureListPermissionAdmin_call(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String token; + public getLectureListPermissionAdmin_call(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); - this.userID = userID; + this.token = token; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLectureListPermissionAdmin", org.apache.thrift.protocol.TMessageType.CALL, 0)); getLectureListPermissionAdmin_args args = new getLectureListPermissionAdmin_args(); - args.setUserID(userID); + args.setToken(token); args.write(prot); prot.writeMessageEnd(); } @@ -1995,21 +2121,24 @@ public class Server { } } - public void getAllOS(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getAllOS(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getAllOS_call method_call = new getAllOS_call(resultHandler, this, ___protocolFactory, ___transport); + getAllOS_call method_call = new getAllOS_call(token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getAllOS_call extends org.apache.thrift.async.TAsyncMethodCall { - public getAllOS_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 { + private String token; + public getAllOS_call(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); + this.token = token; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllOS", org.apache.thrift.protocol.TMessageType.CALL, 0)); getAllOS_args args = new getAllOS_args(); + args.setToken(token); args.write(prot); prot.writeMessageEnd(); } @@ -2024,21 +2153,24 @@ public class Server { } } - public void getAllUniversities(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getAllUniversities(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getAllUniversities_call method_call = new getAllUniversities_call(resultHandler, this, ___protocolFactory, ___transport); + getAllUniversities_call method_call = new getAllUniversities_call(token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getAllUniversities_call extends org.apache.thrift.async.TAsyncMethodCall { - public getAllUniversities_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 { + private String token; + public getAllUniversities_call(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); + this.token = token; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllUniversities", org.apache.thrift.protocol.TMessageType.CALL, 0)); getAllUniversities_args args = new getAllUniversities_args(); + args.setToken(token); args.write(prot); prot.writeMessageEnd(); } @@ -2053,9 +2185,9 @@ public class Server { } } - public void getPersonData(String Vorname, String Nachname, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getPersonData(String Vorname, String Nachname, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getPersonData_call method_call = new getPersonData_call(Vorname, Nachname, resultHandler, this, ___protocolFactory, ___transport); + getPersonData_call method_call = new getPersonData_call(Vorname, Nachname, token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } @@ -2063,10 +2195,12 @@ public class Server { public static class getPersonData_call extends org.apache.thrift.async.TAsyncMethodCall { private String Vorname; private String Nachname; - public getPersonData_call(String Vorname, String Nachname, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String token; + public getPersonData_call(String Vorname, String Nachname, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.Vorname = Vorname; this.Nachname = Nachname; + this.token = token; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { @@ -2074,6 +2208,7 @@ public class Server { getPersonData_args args = new getPersonData_args(); args.setVorname(Vorname); args.setNachname(Nachname); + args.setToken(token); args.write(prot); prot.writeMessageEnd(); } @@ -2088,24 +2223,27 @@ public class Server { } } - public void getItemOwner(String itemID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getItemOwner(String itemID, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getItemOwner_call method_call = new getItemOwner_call(itemID, resultHandler, this, ___protocolFactory, ___transport); + getItemOwner_call method_call = new getItemOwner_call(itemID, token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getItemOwner_call extends org.apache.thrift.async.TAsyncMethodCall { private String itemID; - public getItemOwner_call(String itemID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String token; + public getItemOwner_call(String itemID, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.itemID = itemID; + this.token = token; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemOwner", org.apache.thrift.protocol.TMessageType.CALL, 0)); getItemOwner_args args = new getItemOwner_args(); args.setItemID(itemID); + args.setToken(token); args.write(prot); prot.writeMessageEnd(); } @@ -2120,36 +2258,30 @@ public class Server { } } - public void setPerson(String login, String lastname, String firstname, String mail, String Institution, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void setPerson(String userID, String token, String institution, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - setPerson_call method_call = new setPerson_call(login, lastname, firstname, mail, Institution, resultHandler, this, ___protocolFactory, ___transport); + setPerson_call method_call = new setPerson_call(userID, token, institution, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class setPerson_call extends org.apache.thrift.async.TAsyncMethodCall { - private String login; - private String lastname; - private String firstname; - private String mail; - private String Institution; - public setPerson_call(String login, String lastname, String firstname, String mail, String Institution, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String userID; + private String token; + private String institution; + public setPerson_call(String userID, String token, String institution, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); - this.login = login; - this.lastname = lastname; - this.firstname = firstname; - this.mail = mail; - this.Institution = Institution; + this.userID = userID; + this.token = token; + this.institution = institution; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setPerson", org.apache.thrift.protocol.TMessageType.CALL, 0)); setPerson_args args = new setPerson_args(); - args.setLogin(login); - args.setLastname(lastname); - args.setFirstname(firstname); - args.setMail(mail); - args.setInstitution(Institution); + args.setUserID(userID); + args.setToken(token); + args.setInstitution(institution); args.write(prot); prot.writeMessageEnd(); } @@ -2164,9 +2296,9 @@ public class Server { } } - public void writeLecturedata(String name, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String login, String firstname, String lastname, String university, String Mail, String Tel, String Fak, String lectureID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void writeLecturedata(String name, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String token, String Tel, String Fak, String lectureID, String university, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - writeLecturedata_call method_call = new writeLecturedata_call(name, shortdesc, desc, startDate, endDate, isActive, imagename, login, firstname, lastname, university, Mail, Tel, Fak, lectureID, resultHandler, this, ___protocolFactory, ___transport); + writeLecturedata_call method_call = new writeLecturedata_call(name, shortdesc, desc, startDate, endDate, isActive, imagename, token, Tel, Fak, lectureID, university, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } @@ -2179,15 +2311,12 @@ public class Server { private String endDate; private boolean isActive; private String imagename; - private String login; - private String firstname; - private String lastname; - private String university; - private String Mail; + private String token; private String Tel; private String Fak; private String lectureID; - public writeLecturedata_call(String name, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String login, String firstname, String lastname, String university, String Mail, String Tel, String Fak, String lectureID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String university; + public writeLecturedata_call(String name, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String token, String Tel, String Fak, String lectureID, String university, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.name = name; this.shortdesc = shortdesc; @@ -2196,14 +2325,11 @@ public class Server { this.endDate = endDate; this.isActive = isActive; this.imagename = imagename; - this.login = login; - this.firstname = firstname; - this.lastname = lastname; - this.university = university; - this.Mail = Mail; + this.token = token; this.Tel = Tel; this.Fak = Fak; this.lectureID = lectureID; + this.university = university; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { @@ -2216,14 +2342,11 @@ public class Server { args.setEndDate(endDate); args.setIsActive(isActive); args.setImagename(imagename); - args.setLogin(login); - args.setFirstname(firstname); - args.setLastname(lastname); - args.setUniversity(university); - args.setMail(Mail); + args.setToken(token); args.setTel(Tel); args.setFak(Fak); args.setLectureID(lectureID); + args.setUniversity(university); args.write(prot); prot.writeMessageEnd(); } @@ -2238,24 +2361,27 @@ public class Server { } } - public void startFileCopy(String file, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void startFileCopy(String file, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - startFileCopy_call method_call = new startFileCopy_call(file, resultHandler, this, ___protocolFactory, ___transport); + startFileCopy_call method_call = new startFileCopy_call(file, token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class startFileCopy_call extends org.apache.thrift.async.TAsyncMethodCall { private String file; - public startFileCopy_call(String file, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String token; + public startFileCopy_call(String file, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.file = file; + this.token = token; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("startFileCopy", org.apache.thrift.protocol.TMessageType.CALL, 0)); startFileCopy_args args = new startFileCopy_args(); args.setFile(file); + args.setToken(token); args.write(prot); prot.writeMessageEnd(); } @@ -2270,9 +2396,9 @@ public class Server { } } - public void getImageData(String imageid, String imageversion, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getImageData(String imageid, String imageversion, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getImageData_call method_call = new getImageData_call(imageid, imageversion, resultHandler, this, ___protocolFactory, ___transport); + getImageData_call method_call = new getImageData_call(imageid, imageversion, token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } @@ -2280,10 +2406,12 @@ public class Server { public static class getImageData_call extends org.apache.thrift.async.TAsyncMethodCall { private String imageid; private String imageversion; - public getImageData_call(String imageid, String imageversion, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String token; + public getImageData_call(String imageid, String imageversion, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.imageid = imageid; this.imageversion = imageversion; + this.token = token; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { @@ -2291,6 +2419,7 @@ public class Server { getImageData_args args = new getImageData_args(); args.setImageid(imageid); args.setImageversion(imageversion); + args.setToken(token); args.write(prot); prot.writeMessageEnd(); } @@ -2305,24 +2434,27 @@ public class Server { } } - public void getLectureData(String lectureid, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getLectureData(String lectureid, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getLectureData_call method_call = new getLectureData_call(lectureid, resultHandler, this, ___protocolFactory, ___transport); + getLectureData_call method_call = new getLectureData_call(lectureid, token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getLectureData_call extends org.apache.thrift.async.TAsyncMethodCall { private String lectureid; - public getLectureData_call(String lectureid, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String token; + public getLectureData_call(String lectureid, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.lectureid = lectureid; + this.token = token; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLectureData", org.apache.thrift.protocol.TMessageType.CALL, 0)); getLectureData_args args = new getLectureData_args(); args.setLectureid(lectureid); + args.setToken(token); args.write(prot); prot.writeMessageEnd(); } @@ -2337,9 +2469,9 @@ public class Server { } } - public void updateImageData(String name, String newName, String desc, String image_path, boolean license, boolean internet, long ram, long cpu, String id, String version, boolean isTemplate, long filesize, long shareMode, String os, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void updateImageData(String name, String newName, String desc, String image_path, boolean license, boolean internet, long ram, long cpu, String id, String version, boolean isTemplate, long filesize, long shareMode, String os, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - updateImageData_call method_call = new updateImageData_call(name, newName, desc, image_path, license, internet, ram, cpu, id, version, isTemplate, filesize, shareMode, os, resultHandler, this, ___protocolFactory, ___transport); + updateImageData_call method_call = new updateImageData_call(name, newName, desc, image_path, license, internet, ram, cpu, id, version, isTemplate, filesize, shareMode, os, token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } @@ -2359,7 +2491,8 @@ public class Server { private long filesize; private long shareMode; private String os; - public updateImageData_call(String name, String newName, String desc, String image_path, boolean license, boolean internet, long ram, long cpu, String id, String version, boolean isTemplate, long filesize, long shareMode, String os, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String token; + public updateImageData_call(String name, String newName, String desc, String image_path, boolean license, boolean internet, long ram, long cpu, String id, String version, boolean isTemplate, long filesize, long shareMode, String os, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.name = name; this.newName = newName; @@ -2375,6 +2508,7 @@ public class Server { this.filesize = filesize; this.shareMode = shareMode; this.os = os; + this.token = token; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { @@ -2394,6 +2528,7 @@ public class Server { args.setFilesize(filesize); args.setShareMode(shareMode); args.setOs(os); + args.setToken(token); args.write(prot); prot.writeMessageEnd(); } @@ -2408,9 +2543,9 @@ public class Server { } } - public void deleteImageData(String id, String version, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void deleteImageData(String id, String version, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - deleteImageData_call method_call = new deleteImageData_call(id, version, resultHandler, this, ___protocolFactory, ___transport); + deleteImageData_call method_call = new deleteImageData_call(id, version, token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } @@ -2418,10 +2553,12 @@ public class Server { public static class deleteImageData_call extends org.apache.thrift.async.TAsyncMethodCall { private String id; private String version; - public deleteImageData_call(String id, String version, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String token; + public deleteImageData_call(String id, String version, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.id = id; this.version = version; + this.token = token; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { @@ -2429,6 +2566,7 @@ public class Server { deleteImageData_args args = new deleteImageData_args(); args.setId(id); args.setVersion(version); + args.setToken(token); args.write(prot); prot.writeMessageEnd(); } @@ -2443,9 +2581,9 @@ public class Server { } } - public void updateLecturedata(String name, String newName, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imageid, String imageversion, String user, String firstname, String lastname, String university, String Mail, String Tel, String Fak, String id, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void updateLecturedata(String name, String newName, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imageid, String imageversion, String token, String Tel, String Fak, String id, String university, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - updateLecturedata_call method_call = new updateLecturedata_call(name, newName, shortdesc, desc, startDate, endDate, isActive, imageid, imageversion, user, firstname, lastname, university, Mail, Tel, Fak, id, resultHandler, this, ___protocolFactory, ___transport); + updateLecturedata_call method_call = new updateLecturedata_call(name, newName, shortdesc, desc, startDate, endDate, isActive, imageid, imageversion, token, Tel, Fak, id, university, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } @@ -2460,15 +2598,12 @@ public class Server { private boolean isActive; private String imageid; private String imageversion; - private String user; - private String firstname; - private String lastname; - private String university; - private String Mail; + private String token; private String Tel; private String Fak; private String id; - public updateLecturedata_call(String name, String newName, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imageid, String imageversion, String user, String firstname, String lastname, String university, String Mail, String Tel, String Fak, String id, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String university; + public updateLecturedata_call(String name, String newName, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imageid, String imageversion, String token, String Tel, String Fak, String id, String university, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.name = name; this.newName = newName; @@ -2479,14 +2614,11 @@ public class Server { this.isActive = isActive; this.imageid = imageid; this.imageversion = imageversion; - this.user = user; - this.firstname = firstname; - this.lastname = lastname; - this.university = university; - this.Mail = Mail; + this.token = token; this.Tel = Tel; this.Fak = Fak; this.id = id; + this.university = university; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { @@ -2501,14 +2633,11 @@ public class Server { args.setIsActive(isActive); args.setImageid(imageid); args.setImageversion(imageversion); - args.setUser(user); - args.setFirstname(firstname); - args.setLastname(lastname); - args.setUniversity(university); - args.setMail(Mail); + args.setToken(token); args.setTel(Tel); args.setFak(Fak); args.setId(id); + args.setUniversity(university); args.write(prot); prot.writeMessageEnd(); } @@ -2523,9 +2652,9 @@ public class Server { } } - public void deleteImageServer(String id, String version, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void deleteImageServer(String id, String version, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - deleteImageServer_call method_call = new deleteImageServer_call(id, version, resultHandler, this, ___protocolFactory, ___transport); + deleteImageServer_call method_call = new deleteImageServer_call(id, version, token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } @@ -2533,10 +2662,12 @@ public class Server { public static class deleteImageServer_call extends org.apache.thrift.async.TAsyncMethodCall { private String id; private String version; - public deleteImageServer_call(String id, String version, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String token; + public deleteImageServer_call(String id, String version, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.id = id; this.version = version; + this.token = token; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { @@ -2544,6 +2675,7 @@ public class Server { deleteImageServer_args args = new deleteImageServer_args(); args.setId(id); args.setVersion(version); + args.setToken(token); args.write(prot); prot.writeMessageEnd(); } @@ -2558,9 +2690,9 @@ public class Server { } } - public void connectedToLecture(String id, String version, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void connectedToLecture(String id, String version, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - connectedToLecture_call method_call = new connectedToLecture_call(id, version, resultHandler, this, ___protocolFactory, ___transport); + connectedToLecture_call method_call = new connectedToLecture_call(id, version, token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } @@ -2568,10 +2700,12 @@ public class Server { public static class connectedToLecture_call extends org.apache.thrift.async.TAsyncMethodCall { private String id; private String version; - public connectedToLecture_call(String id, String version, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String token; + public connectedToLecture_call(String id, String version, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.id = id; this.version = version; + this.token = token; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { @@ -2579,6 +2713,7 @@ public class Server { connectedToLecture_args args = new connectedToLecture_args(); args.setId(id); args.setVersion(version); + args.setToken(token); args.write(prot); prot.writeMessageEnd(); } @@ -2593,30 +2728,30 @@ public class Server { } } - public void deleteLecture(String id, String hs, String user, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void deleteLecture(String id, String token, String university, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - deleteLecture_call method_call = new deleteLecture_call(id, hs, user, resultHandler, this, ___protocolFactory, ___transport); + deleteLecture_call method_call = new deleteLecture_call(id, token, university, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class deleteLecture_call extends org.apache.thrift.async.TAsyncMethodCall { private String id; - private String hs; - private String user; - public deleteLecture_call(String id, String hs, String user, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String token; + private String university; + public deleteLecture_call(String id, String token, String university, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.id = id; - this.hs = hs; - this.user = user; + this.token = token; + this.university = university; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteLecture", org.apache.thrift.protocol.TMessageType.CALL, 0)); deleteLecture_args args = new deleteLecture_args(); args.setId(id); - args.setHs(hs); - args.setUser(user); + args.setToken(token); + args.setUniversity(university); args.write(prot); prot.writeMessageEnd(); } @@ -2631,24 +2766,27 @@ public class Server { } } - public void checkUser(String username, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void checkUser(String username, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - checkUser_call method_call = new checkUser_call(username, resultHandler, this, ___protocolFactory, ___transport); + checkUser_call method_call = new checkUser_call(username, token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class checkUser_call extends org.apache.thrift.async.TAsyncMethodCall { private String username; - public checkUser_call(String username, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String token; + public checkUser_call(String username, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.username = username; + this.token = token; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("checkUser", org.apache.thrift.protocol.TMessageType.CALL, 0)); checkUser_args args = new checkUser_args(); args.setUsername(username); + args.setToken(token); args.write(prot); prot.writeMessageEnd(); } @@ -2663,35 +2801,26 @@ public class Server { } } - public void createUser(String loginName, String lastName, String firstName, String mail, String university, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void createUser(String token, String university, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - createUser_call method_call = new createUser_call(loginName, lastName, firstName, mail, university, resultHandler, this, ___protocolFactory, ___transport); + createUser_call method_call = new createUser_call(token, university, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class createUser_call extends org.apache.thrift.async.TAsyncMethodCall { - private String loginName; - private String lastName; - private String firstName; - private String mail; + private String token; private String university; - public createUser_call(String loginName, String lastName, String firstName, String mail, String university, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public createUser_call(String token, String university, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); - this.loginName = loginName; - this.lastName = lastName; - this.firstName = firstName; - this.mail = mail; + this.token = token; this.university = university; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createUser", org.apache.thrift.protocol.TMessageType.CALL, 0)); createUser_args args = new createUser_args(); - args.setLoginName(loginName); - args.setLastName(lastName); - args.setFirstName(firstName); - args.setMail(mail); + args.setToken(token); args.setUniversity(university); args.write(prot); prot.writeMessageEnd(); @@ -2707,42 +2836,36 @@ public class Server { } } - public void writeImageRights(String imagename, String username, String lastName, String firstName, String mail, String university, String role, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void writeImageRights(String imagename, String token, String role, String university, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - writeImageRights_call method_call = new writeImageRights_call(imagename, username, lastName, firstName, mail, university, role, resultHandler, this, ___protocolFactory, ___transport); + writeImageRights_call method_call = new writeImageRights_call(imagename, token, role, university, userID, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class writeImageRights_call extends org.apache.thrift.async.TAsyncMethodCall { private String imagename; - private String username; - private String lastName; - private String firstName; - private String mail; - private String university; + private String token; private String role; - public writeImageRights_call(String imagename, String username, String lastName, String firstName, String mail, String university, String role, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String university; + private String userID; + public writeImageRights_call(String imagename, String token, String role, String university, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.imagename = imagename; - this.username = username; - this.lastName = lastName; - this.firstName = firstName; - this.mail = mail; - this.university = university; + this.token = token; this.role = role; + this.university = university; + this.userID = userID; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("writeImageRights", org.apache.thrift.protocol.TMessageType.CALL, 0)); writeImageRights_args args = new writeImageRights_args(); args.setImagename(imagename); - args.setUsername(username); - args.setLastName(lastName); - args.setFirstName(firstName); - args.setMail(mail); - args.setUniversity(university); + args.setToken(token); args.setRole(role); + args.setUniversity(university); + args.setUserID(userID); args.write(prot); prot.writeMessageEnd(); } @@ -2757,9 +2880,9 @@ public class Server { } } - public void writeAdditionalImageRights(String imageName, String userID, boolean isRead, boolean isWrite, boolean isLinkAllowed, boolean isAdmin, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void writeAdditionalImageRights(String imageName, String userID, boolean isRead, boolean isWrite, boolean isLinkAllowed, boolean isAdmin, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - writeAdditionalImageRights_call method_call = new writeAdditionalImageRights_call(imageName, userID, isRead, isWrite, isLinkAllowed, isAdmin, resultHandler, this, ___protocolFactory, ___transport); + writeAdditionalImageRights_call method_call = new writeAdditionalImageRights_call(imageName, userID, isRead, isWrite, isLinkAllowed, isAdmin, token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } @@ -2771,7 +2894,8 @@ public class Server { private boolean isWrite; private boolean isLinkAllowed; private boolean isAdmin; - public writeAdditionalImageRights_call(String imageName, String userID, boolean isRead, boolean isWrite, boolean isLinkAllowed, boolean isAdmin, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String token; + public writeAdditionalImageRights_call(String imageName, String userID, boolean isRead, boolean isWrite, boolean isLinkAllowed, boolean isAdmin, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.imageName = imageName; this.userID = userID; @@ -2779,6 +2903,7 @@ public class Server { this.isWrite = isWrite; this.isLinkAllowed = isLinkAllowed; this.isAdmin = isAdmin; + this.token = token; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { @@ -2790,6 +2915,7 @@ public class Server { args.setIsWrite(isWrite); args.setIsLinkAllowed(isLinkAllowed); args.setIsAdmin(isAdmin); + args.setToken(token); args.write(prot); prot.writeMessageEnd(); } @@ -2804,42 +2930,36 @@ public class Server { } } - public void writeLectureRights(String lecturename, String username, String lastName, String firstName, String mail, String university, String role, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void writeLectureRights(String lectureID, String role, String token, String university, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - writeLectureRights_call method_call = new writeLectureRights_call(lecturename, username, lastName, firstName, mail, university, role, resultHandler, this, ___protocolFactory, ___transport); + writeLectureRights_call method_call = new writeLectureRights_call(lectureID, role, token, university, userID, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class writeLectureRights_call extends org.apache.thrift.async.TAsyncMethodCall { - private String lecturename; - private String username; - private String lastName; - private String firstName; - private String mail; - private String university; + private String lectureID; private String role; - public writeLectureRights_call(String lecturename, String username, String lastName, String firstName, String mail, String university, String role, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String token; + private String university; + private String userID; + public writeLectureRights_call(String lectureID, String role, String token, String university, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); - this.lecturename = lecturename; - this.username = username; - this.lastName = lastName; - this.firstName = firstName; - this.mail = mail; - this.university = university; + this.lectureID = lectureID; this.role = role; + this.token = token; + this.university = university; + this.userID = userID; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("writeLectureRights", org.apache.thrift.protocol.TMessageType.CALL, 0)); writeLectureRights_args args = new writeLectureRights_args(); - args.setLecturename(lecturename); - args.setUsername(username); - args.setLastName(lastName); - args.setFirstName(firstName); - args.setMail(mail); - args.setUniversity(university); + args.setLectureID(lectureID); args.setRole(role); + args.setToken(token); + args.setUniversity(university); + args.setUserID(userID); args.write(prot); prot.writeMessageEnd(); } @@ -2854,9 +2974,9 @@ public class Server { } } - public void writeAdditionalLectureRights(String lectureName, String userID, boolean isRead, boolean isWrite, boolean isAdmin, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void writeAdditionalLectureRights(String lectureName, String userID, boolean isRead, boolean isWrite, boolean isAdmin, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - writeAdditionalLectureRights_call method_call = new writeAdditionalLectureRights_call(lectureName, userID, isRead, isWrite, isAdmin, resultHandler, this, ___protocolFactory, ___transport); + writeAdditionalLectureRights_call method_call = new writeAdditionalLectureRights_call(lectureName, userID, isRead, isWrite, isAdmin, token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } @@ -2867,13 +2987,15 @@ public class Server { private boolean isRead; private boolean isWrite; private boolean isAdmin; - public writeAdditionalLectureRights_call(String lectureName, String userID, boolean isRead, boolean isWrite, boolean isAdmin, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String token; + public writeAdditionalLectureRights_call(String lectureName, String userID, boolean isRead, boolean isWrite, boolean isAdmin, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.lectureName = lectureName; this.userID = userID; this.isRead = isRead; this.isWrite = isWrite; this.isAdmin = isAdmin; + this.token = token; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { @@ -2884,6 +3006,7 @@ public class Server { args.setIsRead(isRead); args.setIsWrite(isWrite); args.setIsAdmin(isAdmin); + args.setToken(token); args.write(prot); prot.writeMessageEnd(); } @@ -2898,24 +3021,27 @@ public class Server { } } - public void getAllOtherSatelliteUsers(List userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getAllOtherSatelliteUsers(List userID, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getAllOtherSatelliteUsers_call method_call = new getAllOtherSatelliteUsers_call(userID, resultHandler, this, ___protocolFactory, ___transport); + getAllOtherSatelliteUsers_call method_call = new getAllOtherSatelliteUsers_call(userID, token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getAllOtherSatelliteUsers_call extends org.apache.thrift.async.TAsyncMethodCall { private List userID; - public getAllOtherSatelliteUsers_call(List userID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String token; + public getAllOtherSatelliteUsers_call(List userID, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.userID = userID; + this.token = token; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllOtherSatelliteUsers", org.apache.thrift.protocol.TMessageType.CALL, 0)); getAllOtherSatelliteUsers_args args = new getAllOtherSatelliteUsers_args(); args.setUserID(userID); + args.setToken(token); args.write(prot); prot.writeMessageEnd(); } @@ -2930,27 +3056,30 @@ public class Server { } } - public void getPermissionForUserAndImage(String userID, String imageID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getPermissionForUserAndImage(String token, String imageID, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getPermissionForUserAndImage_call method_call = new getPermissionForUserAndImage_call(userID, imageID, resultHandler, this, ___protocolFactory, ___transport); + getPermissionForUserAndImage_call method_call = new getPermissionForUserAndImage_call(token, imageID, userID, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getPermissionForUserAndImage_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userID; + private String token; private String imageID; - public getPermissionForUserAndImage_call(String userID, String imageID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String userID; + public getPermissionForUserAndImage_call(String token, String imageID, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); - this.userID = userID; + this.token = token; this.imageID = imageID; + this.userID = userID; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPermissionForUserAndImage", org.apache.thrift.protocol.TMessageType.CALL, 0)); getPermissionForUserAndImage_args args = new getPermissionForUserAndImage_args(); - args.setUserID(userID); + args.setToken(token); args.setImageID(imageID); + args.setUserID(userID); args.write(prot); prot.writeMessageEnd(); } @@ -2965,24 +3094,27 @@ public class Server { } } - public void getAdditionalImageContacts(String imageID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getAdditionalImageContacts(String imageID, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getAdditionalImageContacts_call method_call = new getAdditionalImageContacts_call(imageID, resultHandler, this, ___protocolFactory, ___transport); + getAdditionalImageContacts_call method_call = new getAdditionalImageContacts_call(imageID, token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getAdditionalImageContacts_call extends org.apache.thrift.async.TAsyncMethodCall { private String imageID; - public getAdditionalImageContacts_call(String imageID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String token; + public getAdditionalImageContacts_call(String imageID, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.imageID = imageID; + this.token = token; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAdditionalImageContacts", org.apache.thrift.protocol.TMessageType.CALL, 0)); getAdditionalImageContacts_args args = new getAdditionalImageContacts_args(); args.setImageID(imageID); + args.setToken(token); args.write(prot); prot.writeMessageEnd(); } @@ -2997,27 +3129,30 @@ public class Server { } } - public void getPermissionForUserAndLecture(String userID, String lectureID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getPermissionForUserAndLecture(String token, String lectureID, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getPermissionForUserAndLecture_call method_call = new getPermissionForUserAndLecture_call(userID, lectureID, resultHandler, this, ___protocolFactory, ___transport); + getPermissionForUserAndLecture_call method_call = new getPermissionForUserAndLecture_call(token, lectureID, userID, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getPermissionForUserAndLecture_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userID; + private String token; private String lectureID; - public getPermissionForUserAndLecture_call(String userID, String lectureID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String userID; + public getPermissionForUserAndLecture_call(String token, String lectureID, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); - this.userID = userID; + this.token = token; this.lectureID = lectureID; + this.userID = userID; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPermissionForUserAndLecture", org.apache.thrift.protocol.TMessageType.CALL, 0)); getPermissionForUserAndLecture_args args = new getPermissionForUserAndLecture_args(); - args.setUserID(userID); + args.setToken(token); args.setLectureID(lectureID); + args.setUserID(userID); args.write(prot); prot.writeMessageEnd(); } @@ -3032,19 +3167,21 @@ public class Server { } } - public void deleteAllAdditionalImagePermissions(String imageID, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void deleteAllAdditionalImagePermissions(String imageID, String token, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - deleteAllAdditionalImagePermissions_call method_call = new deleteAllAdditionalImagePermissions_call(imageID, userID, resultHandler, this, ___protocolFactory, ___transport); + deleteAllAdditionalImagePermissions_call method_call = new deleteAllAdditionalImagePermissions_call(imageID, token, userID, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class deleteAllAdditionalImagePermissions_call extends org.apache.thrift.async.TAsyncMethodCall { private String imageID; + private String token; private String userID; - public deleteAllAdditionalImagePermissions_call(String imageID, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public deleteAllAdditionalImagePermissions_call(String imageID, String token, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.imageID = imageID; + this.token = token; this.userID = userID; } @@ -3052,6 +3189,7 @@ public class Server { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteAllAdditionalImagePermissions", org.apache.thrift.protocol.TMessageType.CALL, 0)); deleteAllAdditionalImagePermissions_args args = new deleteAllAdditionalImagePermissions_args(); args.setImageID(imageID); + args.setToken(token); args.setUserID(userID); args.write(prot); prot.writeMessageEnd(); @@ -3067,19 +3205,21 @@ public class Server { } } - public void deleteAllAdditionalLecturePermissions(String lectureID, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void deleteAllAdditionalLecturePermissions(String lectureID, String token, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - deleteAllAdditionalLecturePermissions_call method_call = new deleteAllAdditionalLecturePermissions_call(lectureID, userID, resultHandler, this, ___protocolFactory, ___transport); + deleteAllAdditionalLecturePermissions_call method_call = new deleteAllAdditionalLecturePermissions_call(lectureID, token, userID, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class deleteAllAdditionalLecturePermissions_call extends org.apache.thrift.async.TAsyncMethodCall { private String lectureID; + private String token; private String userID; - public deleteAllAdditionalLecturePermissions_call(String lectureID, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public deleteAllAdditionalLecturePermissions_call(String lectureID, String token, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.lectureID = lectureID; + this.token = token; this.userID = userID; } @@ -3087,6 +3227,7 @@ public class Server { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteAllAdditionalLecturePermissions", org.apache.thrift.protocol.TMessageType.CALL, 0)); deleteAllAdditionalLecturePermissions_args args = new deleteAllAdditionalLecturePermissions_args(); args.setLectureID(lectureID); + args.setToken(token); args.setUserID(userID); args.write(prot); prot.writeMessageEnd(); @@ -3102,24 +3243,27 @@ public class Server { } } - public void getOsNameForGuestOs(String guestOS, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getOsNameForGuestOs(String guestOS, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getOsNameForGuestOs_call method_call = new getOsNameForGuestOs_call(guestOS, resultHandler, this, ___protocolFactory, ___transport); + getOsNameForGuestOs_call method_call = new getOsNameForGuestOs_call(guestOS, token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getOsNameForGuestOs_call extends org.apache.thrift.async.TAsyncMethodCall { private String guestOS; - public getOsNameForGuestOs_call(String guestOS, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String token; + public getOsNameForGuestOs_call(String guestOS, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.guestOS = guestOS; + this.token = token; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOsNameForGuestOs", org.apache.thrift.protocol.TMessageType.CALL, 0)); getOsNameForGuestOs_args args = new getOsNameForGuestOs_args(); args.setGuestOS(guestOS); + args.setToken(token); args.write(prot); prot.writeMessageEnd(); } @@ -3134,27 +3278,30 @@ public class Server { } } - public void userIsImageAdmin(String userID, String imageID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void userIsImageAdmin(String imageID, String token, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - userIsImageAdmin_call method_call = new userIsImageAdmin_call(userID, imageID, resultHandler, this, ___protocolFactory, ___transport); + userIsImageAdmin_call method_call = new userIsImageAdmin_call(imageID, token, userID, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class userIsImageAdmin_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userID; private String imageID; - public userIsImageAdmin_call(String userID, String imageID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String token; + private String userID; + public userIsImageAdmin_call(String imageID, String token, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); - this.userID = userID; this.imageID = imageID; + this.token = token; + this.userID = userID; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("userIsImageAdmin", org.apache.thrift.protocol.TMessageType.CALL, 0)); userIsImageAdmin_args args = new userIsImageAdmin_args(); - args.setUserID(userID); args.setImageID(imageID); + args.setToken(token); + args.setUserID(userID); args.write(prot); prot.writeMessageEnd(); } @@ -3169,9 +3316,9 @@ public class Server { } } - public void userIsLectureAdmin(String userID, String lectureID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void userIsLectureAdmin(String userID, String lectureID, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - userIsLectureAdmin_call method_call = new userIsLectureAdmin_call(userID, lectureID, resultHandler, this, ___protocolFactory, ___transport); + userIsLectureAdmin_call method_call = new userIsLectureAdmin_call(userID, lectureID, token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } @@ -3179,10 +3326,12 @@ public class Server { public static class userIsLectureAdmin_call extends org.apache.thrift.async.TAsyncMethodCall { private String userID; private String lectureID; - public userIsLectureAdmin_call(String userID, String lectureID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String token; + public userIsLectureAdmin_call(String userID, String lectureID, String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.userID = userID; this.lectureID = lectureID; + this.token = token; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { @@ -3190,6 +3339,7 @@ public class Server { userIsLectureAdmin_args args = new userIsLectureAdmin_args(); args.setUserID(userID); args.setLectureID(lectureID); + args.setToken(token); args.write(prot); prot.writeMessageEnd(); } @@ -3204,21 +3354,24 @@ public class Server { } } - public void createRandomUUID(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void createRandomUUID(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - createRandomUUID_call method_call = new createRandomUUID_call(resultHandler, this, ___protocolFactory, ___transport); + createRandomUUID_call method_call = new createRandomUUID_call(token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class createRandomUUID_call extends org.apache.thrift.async.TAsyncMethodCall { - public createRandomUUID_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 { + private String token; + public createRandomUUID_call(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); + this.token = token; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createRandomUUID", org.apache.thrift.protocol.TMessageType.CALL, 0)); createRandomUUID_args args = new createRandomUUID_args(); + args.setToken(token); args.write(prot); prot.writeMessageEnd(); } @@ -3233,6 +3386,38 @@ public class Server { } } + public void getInstitutionByID(String institutionID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + getInstitutionByID_call method_call = new getInstitutionByID_call(institutionID, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class getInstitutionByID_call extends org.apache.thrift.async.TAsyncMethodCall { + private String institutionID; + public getInstitutionByID_call(String institutionID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.institutionID = institutionID; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInstitutionByID", org.apache.thrift.protocol.TMessageType.CALL, 0)); + getInstitutionByID_args args = new getInstitutionByID_args(); + args.setInstitutionID(institutionID); + args.write(prot); + prot.writeMessageEnd(); + } + + public String 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_getInstitutionByID(); + } + } + } public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor { @@ -3247,7 +3432,8 @@ public class Server { private static Map> getProcessMap(Map> processMap) { processMap.put("getFtpUser", new getFtpUser()); - processMap.put("setTokenForSession", new setTokenForSession()); + processMap.put("authenticated", new authenticated()); + processMap.put("setSessionInvalid", new setSessionInvalid()); processMap.put("DeleteFtpUser", new DeleteFtpUser()); processMap.put("getPathOfImage", new getPathOfImage()); processMap.put("setInstitution", new setInstitution()); @@ -3293,6 +3479,7 @@ public class Server { processMap.put("userIsImageAdmin", new userIsImageAdmin()); processMap.put("userIsLectureAdmin", new userIsLectureAdmin()); processMap.put("createRandomUUID", new createRandomUUID()); + processMap.put("getInstitutionByID", new getInstitutionByID()); return processMap; } @@ -3311,27 +3498,49 @@ public class Server { public getFtpUser_result getResult(I iface, getFtpUser_args args) throws org.apache.thrift.TException { getFtpUser_result result = new getFtpUser_result(); - result.success = iface.getFtpUser(); + result.success = iface.getFtpUser(args.token); + return result; + } + } + + public static class authenticated extends org.apache.thrift.ProcessFunction { + public authenticated() { + super("authenticated"); + } + + public authenticated_args getEmptyArgsInstance() { + return new authenticated_args(); + } + + protected boolean isOneway() { + return false; + } + + public authenticated_result getResult(I iface, authenticated_args args) throws org.apache.thrift.TException { + authenticated_result result = new authenticated_result(); + result.success = iface.authenticated(args.token); + result.setSuccessIsSet(true); return result; } } - public static class setTokenForSession extends org.apache.thrift.ProcessFunction { - public setTokenForSession() { - super("setTokenForSession"); + public static class setSessionInvalid extends org.apache.thrift.ProcessFunction { + public setSessionInvalid() { + super("setSessionInvalid"); } - public setTokenForSession_args getEmptyArgsInstance() { - return new setTokenForSession_args(); + public setSessionInvalid_args getEmptyArgsInstance() { + return new setSessionInvalid_args(); } protected boolean isOneway() { return false; } - public setTokenForSession_result getResult(I iface, setTokenForSession_args args) throws org.apache.thrift.TException { - setTokenForSession_result result = new setTokenForSession_result(); - iface.setTokenForSession(args.token); + public setSessionInvalid_result getResult(I iface, setSessionInvalid_args args) throws org.apache.thrift.TException { + setSessionInvalid_result result = new setSessionInvalid_result(); + result.success = iface.setSessionInvalid(args.token); + result.setSuccessIsSet(true); return result; } } @@ -3351,7 +3560,7 @@ public class Server { public DeleteFtpUser_result getResult(I iface, DeleteFtpUser_args args) throws org.apache.thrift.TException { DeleteFtpUser_result result = new DeleteFtpUser_result(); - result.success = iface.DeleteFtpUser(args.user); + result.success = iface.DeleteFtpUser(args.user, args.token); result.setSuccessIsSet(true); return result; } @@ -3372,7 +3581,7 @@ public class Server { public getPathOfImage_result getResult(I iface, getPathOfImage_args args) throws org.apache.thrift.TException { getPathOfImage_result result = new getPathOfImage_result(); - result.success = iface.getPathOfImage(args.image_id, args.version); + result.success = iface.getPathOfImage(args.image_id, args.version, args.token); return result; } } @@ -3392,7 +3601,7 @@ public class Server { public setInstitution_result getResult(I iface, setInstitution_args args) throws org.apache.thrift.TException { setInstitution_result result = new setInstitution_result(); - result.success = iface.setInstitution(args.university); + result.success = iface.setInstitution(args.university, args.token); return result; } } @@ -3412,7 +3621,7 @@ public class Server { public writeVLdata_result getResult(I iface, writeVLdata_args args) throws org.apache.thrift.TException { writeVLdata_result result = new writeVLdata_result(); - result.success = iface.writeVLdata(args.imagename, args.desc, args.login, args.firstname, args.lastname, args.university, args.Mail, args.Tel, args.Fak, args.license, args.internet, args.ram, args.cpu, args.imagePath, args.isTemplate, args.filesize, args.shareMode, args.os, args.uid); + result.success = iface.writeVLdata(args.imagename, args.desc, args.Tel, args.Fak, args.license, args.internet, args.ram, args.cpu, args.imagePath, args.isTemplate, args.filesize, args.shareMode, args.os, args.uid, args.token, args.userID); result.setSuccessIsSet(true); return result; } @@ -3433,7 +3642,7 @@ public class Server { public getImageListPermissionWrite_result getResult(I iface, getImageListPermissionWrite_args args) throws org.apache.thrift.TException { getImageListPermissionWrite_result result = new getImageListPermissionWrite_result(); - result.success = iface.getImageListPermissionWrite(args.userID); + result.success = iface.getImageListPermissionWrite(args.userID, args.token); return result; } } @@ -3453,7 +3662,7 @@ public class Server { public getImageListPermissionRead_result getResult(I iface, getImageListPermissionRead_args args) throws org.apache.thrift.TException { getImageListPermissionRead_result result = new getImageListPermissionRead_result(); - result.success = iface.getImageListPermissionRead(args.userID); + result.success = iface.getImageListPermissionRead(args.userID, args.token); return result; } } @@ -3473,7 +3682,7 @@ public class Server { public getImageListPermissionLink_result getResult(I iface, getImageListPermissionLink_args args) throws org.apache.thrift.TException { getImageListPermissionLink_result result = new getImageListPermissionLink_result(); - result.success = iface.getImageListPermissionLink(args.userID); + result.success = iface.getImageListPermissionLink(args.userID, args.token); return result; } } @@ -3493,7 +3702,7 @@ public class Server { public getImageListPermissionAdmin_result getResult(I iface, getImageListPermissionAdmin_args args) throws org.apache.thrift.TException { getImageListPermissionAdmin_result result = new getImageListPermissionAdmin_result(); - result.success = iface.getImageListPermissionAdmin(args.userID); + result.success = iface.getImageListPermissionAdmin(args.userID, args.token); return result; } } @@ -3513,7 +3722,7 @@ public class Server { public getImageListAllTemplates_result getResult(I iface, getImageListAllTemplates_args args) throws org.apache.thrift.TException { getImageListAllTemplates_result result = new getImageListAllTemplates_result(); - result.success = iface.getImageListAllTemplates(); + result.success = iface.getImageListAllTemplates(args.token); return result; } } @@ -3533,7 +3742,7 @@ public class Server { public getImageList_result getResult(I iface, getImageList_args args) throws org.apache.thrift.TException { getImageList_result result = new getImageList_result(); - result.success = iface.getImageList(args.userID); + result.success = iface.getImageList(args.token); return result; } } @@ -3553,7 +3762,7 @@ public class Server { public getLectureList_result getResult(I iface, getLectureList_args args) throws org.apache.thrift.TException { getLectureList_result result = new getLectureList_result(); - result.success = iface.getLectureList(); + result.success = iface.getLectureList(args.token); return result; } } @@ -3573,7 +3782,7 @@ public class Server { public getLectureListPermissionRead_result getResult(I iface, getLectureListPermissionRead_args args) throws org.apache.thrift.TException { getLectureListPermissionRead_result result = new getLectureListPermissionRead_result(); - result.success = iface.getLectureListPermissionRead(args.userID); + result.success = iface.getLectureListPermissionRead(args.token); return result; } } @@ -3593,7 +3802,7 @@ public class Server { public getLectureListPermissionWrite_result getResult(I iface, getLectureListPermissionWrite_args args) throws org.apache.thrift.TException { getLectureListPermissionWrite_result result = new getLectureListPermissionWrite_result(); - result.success = iface.getLectureListPermissionWrite(args.userID); + result.success = iface.getLectureListPermissionWrite(args.token); return result; } } @@ -3613,7 +3822,7 @@ public class Server { public getLectureListPermissionAdmin_result getResult(I iface, getLectureListPermissionAdmin_args args) throws org.apache.thrift.TException { getLectureListPermissionAdmin_result result = new getLectureListPermissionAdmin_result(); - result.success = iface.getLectureListPermissionAdmin(args.userID); + result.success = iface.getLectureListPermissionAdmin(args.token); return result; } } @@ -3633,7 +3842,7 @@ public class Server { public getAllOS_result getResult(I iface, getAllOS_args args) throws org.apache.thrift.TException { getAllOS_result result = new getAllOS_result(); - result.success = iface.getAllOS(); + result.success = iface.getAllOS(args.token); return result; } } @@ -3653,7 +3862,7 @@ public class Server { public getAllUniversities_result getResult(I iface, getAllUniversities_args args) throws org.apache.thrift.TException { getAllUniversities_result result = new getAllUniversities_result(); - result.success = iface.getAllUniversities(); + result.success = iface.getAllUniversities(args.token); return result; } } @@ -3673,7 +3882,7 @@ public class Server { public getPersonData_result getResult(I iface, getPersonData_args args) throws org.apache.thrift.TException { getPersonData_result result = new getPersonData_result(); - result.success = iface.getPersonData(args.Vorname, args.Nachname); + result.success = iface.getPersonData(args.Vorname, args.Nachname, args.token); return result; } } @@ -3693,7 +3902,7 @@ public class Server { public getItemOwner_result getResult(I iface, getItemOwner_args args) throws org.apache.thrift.TException { getItemOwner_result result = new getItemOwner_result(); - result.success = iface.getItemOwner(args.itemID); + result.success = iface.getItemOwner(args.itemID, args.token); return result; } } @@ -3713,7 +3922,7 @@ public class Server { public setPerson_result getResult(I iface, setPerson_args args) throws org.apache.thrift.TException { setPerson_result result = new setPerson_result(); - iface.setPerson(args.login, args.lastname, args.firstname, args.mail, args.Institution); + iface.setPerson(args.userID, args.token, args.institution); return result; } } @@ -3733,7 +3942,7 @@ public class Server { public writeLecturedata_result getResult(I iface, writeLecturedata_args args) throws org.apache.thrift.TException { writeLecturedata_result result = new writeLecturedata_result(); - result.success = iface.writeLecturedata(args.name, args.shortdesc, args.desc, args.startDate, args.endDate, args.isActive, args.imagename, args.login, args.firstname, args.lastname, args.university, args.Mail, args.Tel, args.Fak, args.lectureID); + result.success = iface.writeLecturedata(args.name, args.shortdesc, args.desc, args.startDate, args.endDate, args.isActive, args.imagename, args.token, args.Tel, args.Fak, args.lectureID, args.university); result.setSuccessIsSet(true); return result; } @@ -3754,7 +3963,7 @@ public class Server { public startFileCopy_result getResult(I iface, startFileCopy_args args) throws org.apache.thrift.TException { startFileCopy_result result = new startFileCopy_result(); - result.success = iface.startFileCopy(args.file); + result.success = iface.startFileCopy(args.file, args.token); result.setSuccessIsSet(true); return result; } @@ -3775,7 +3984,7 @@ public class Server { public getImageData_result getResult(I iface, getImageData_args args) throws org.apache.thrift.TException { getImageData_result result = new getImageData_result(); - result.success = iface.getImageData(args.imageid, args.imageversion); + result.success = iface.getImageData(args.imageid, args.imageversion, args.token); return result; } } @@ -3795,7 +4004,7 @@ public class Server { public getLectureData_result getResult(I iface, getLectureData_args args) throws org.apache.thrift.TException { getLectureData_result result = new getLectureData_result(); - result.success = iface.getLectureData(args.lectureid); + result.success = iface.getLectureData(args.lectureid, args.token); return result; } } @@ -3815,7 +4024,7 @@ public class Server { public updateImageData_result getResult(I iface, updateImageData_args args) throws org.apache.thrift.TException { updateImageData_result result = new updateImageData_result(); - result.success = iface.updateImageData(args.name, args.newName, args.desc, args.image_path, args.license, args.internet, args.ram, args.cpu, args.id, args.version, args.isTemplate, args.filesize, args.shareMode, args.os); + result.success = iface.updateImageData(args.name, args.newName, args.desc, args.image_path, args.license, args.internet, args.ram, args.cpu, args.id, args.version, args.isTemplate, args.filesize, args.shareMode, args.os, args.token); result.setSuccessIsSet(true); return result; } @@ -3836,7 +4045,7 @@ public class Server { public deleteImageData_result getResult(I iface, deleteImageData_args args) throws org.apache.thrift.TException { deleteImageData_result result = new deleteImageData_result(); - result.success = iface.deleteImageData(args.id, args.version); + result.success = iface.deleteImageData(args.id, args.version, args.token); result.setSuccessIsSet(true); return result; } @@ -3857,7 +4066,7 @@ public class Server { public updateLecturedata_result getResult(I iface, updateLecturedata_args args) throws org.apache.thrift.TException { updateLecturedata_result result = new updateLecturedata_result(); - result.success = iface.updateLecturedata(args.name, args.newName, args.shortdesc, args.desc, args.startDate, args.endDate, args.isActive, args.imageid, args.imageversion, args.user, args.firstname, args.lastname, args.university, args.Mail, args.Tel, args.Fak, args.id); + result.success = iface.updateLecturedata(args.name, args.newName, args.shortdesc, args.desc, args.startDate, args.endDate, args.isActive, args.imageid, args.imageversion, args.token, args.Tel, args.Fak, args.id, args.university); result.setSuccessIsSet(true); return result; } @@ -3878,7 +4087,7 @@ public class Server { public deleteImageServer_result getResult(I iface, deleteImageServer_args args) throws org.apache.thrift.TException { deleteImageServer_result result = new deleteImageServer_result(); - result.success = iface.deleteImageServer(args.id, args.version); + result.success = iface.deleteImageServer(args.id, args.version, args.token); result.setSuccessIsSet(true); return result; } @@ -3899,7 +4108,7 @@ public class Server { public connectedToLecture_result getResult(I iface, connectedToLecture_args args) throws org.apache.thrift.TException { connectedToLecture_result result = new connectedToLecture_result(); - result.success = iface.connectedToLecture(args.id, args.version); + result.success = iface.connectedToLecture(args.id, args.version, args.token); result.setSuccessIsSet(true); return result; } @@ -3920,7 +4129,7 @@ public class Server { public deleteLecture_result getResult(I iface, deleteLecture_args args) throws org.apache.thrift.TException { deleteLecture_result result = new deleteLecture_result(); - result.success = iface.deleteLecture(args.id, args.hs, args.user); + result.success = iface.deleteLecture(args.id, args.token, args.university); result.setSuccessIsSet(true); return result; } @@ -3941,7 +4150,7 @@ public class Server { public checkUser_result getResult(I iface, checkUser_args args) throws org.apache.thrift.TException { checkUser_result result = new checkUser_result(); - result.success = iface.checkUser(args.username); + result.success = iface.checkUser(args.username, args.token); result.setSuccessIsSet(true); return result; } @@ -3962,7 +4171,7 @@ public class Server { public createUser_result getResult(I iface, createUser_args args) throws org.apache.thrift.TException { createUser_result result = new createUser_result(); - result.success = iface.createUser(args.loginName, args.lastName, args.firstName, args.mail, args.university); + result.success = iface.createUser(args.token, args.university); result.setSuccessIsSet(true); return result; } @@ -3983,7 +4192,7 @@ public class Server { public writeImageRights_result getResult(I iface, writeImageRights_args args) throws org.apache.thrift.TException { writeImageRights_result result = new writeImageRights_result(); - result.success = iface.writeImageRights(args.imagename, args.username, args.lastName, args.firstName, args.mail, args.university, args.role); + result.success = iface.writeImageRights(args.imagename, args.token, args.role, args.university, args.userID); result.setSuccessIsSet(true); return result; } @@ -4004,7 +4213,7 @@ public class Server { public writeAdditionalImageRights_result getResult(I iface, writeAdditionalImageRights_args args) throws org.apache.thrift.TException { writeAdditionalImageRights_result result = new writeAdditionalImageRights_result(); - result.success = iface.writeAdditionalImageRights(args.imageName, args.userID, args.isRead, args.isWrite, args.isLinkAllowed, args.isAdmin); + result.success = iface.writeAdditionalImageRights(args.imageName, args.userID, args.isRead, args.isWrite, args.isLinkAllowed, args.isAdmin, args.token); result.setSuccessIsSet(true); return result; } @@ -4025,7 +4234,7 @@ public class Server { public writeLectureRights_result getResult(I iface, writeLectureRights_args args) throws org.apache.thrift.TException { writeLectureRights_result result = new writeLectureRights_result(); - result.success = iface.writeLectureRights(args.lecturename, args.username, args.lastName, args.firstName, args.mail, args.university, args.role); + result.success = iface.writeLectureRights(args.lectureID, args.role, args.token, args.university, args.userID); result.setSuccessIsSet(true); return result; } @@ -4046,7 +4255,7 @@ public class Server { public writeAdditionalLectureRights_result getResult(I iface, writeAdditionalLectureRights_args args) throws org.apache.thrift.TException { writeAdditionalLectureRights_result result = new writeAdditionalLectureRights_result(); - result.success = iface.writeAdditionalLectureRights(args.lectureName, args.userID, args.isRead, args.isWrite, args.isAdmin); + result.success = iface.writeAdditionalLectureRights(args.lectureName, args.userID, args.isRead, args.isWrite, args.isAdmin, args.token); result.setSuccessIsSet(true); return result; } @@ -4067,7 +4276,7 @@ public class Server { public getAllOtherSatelliteUsers_result getResult(I iface, getAllOtherSatelliteUsers_args args) throws org.apache.thrift.TException { getAllOtherSatelliteUsers_result result = new getAllOtherSatelliteUsers_result(); - result.success = iface.getAllOtherSatelliteUsers(args.userID); + result.success = iface.getAllOtherSatelliteUsers(args.userID, args.token); return result; } } @@ -4087,7 +4296,7 @@ public class Server { public getPermissionForUserAndImage_result getResult(I iface, getPermissionForUserAndImage_args args) throws org.apache.thrift.TException { getPermissionForUserAndImage_result result = new getPermissionForUserAndImage_result(); - result.success = iface.getPermissionForUserAndImage(args.userID, args.imageID); + result.success = iface.getPermissionForUserAndImage(args.token, args.imageID, args.userID); return result; } } @@ -4107,7 +4316,7 @@ public class Server { public getAdditionalImageContacts_result getResult(I iface, getAdditionalImageContacts_args args) throws org.apache.thrift.TException { getAdditionalImageContacts_result result = new getAdditionalImageContacts_result(); - result.success = iface.getAdditionalImageContacts(args.imageID); + result.success = iface.getAdditionalImageContacts(args.imageID, args.token); return result; } } @@ -4127,7 +4336,7 @@ public class Server { public getPermissionForUserAndLecture_result getResult(I iface, getPermissionForUserAndLecture_args args) throws org.apache.thrift.TException { getPermissionForUserAndLecture_result result = new getPermissionForUserAndLecture_result(); - result.success = iface.getPermissionForUserAndLecture(args.userID, args.lectureID); + result.success = iface.getPermissionForUserAndLecture(args.token, args.lectureID, args.userID); return result; } } @@ -4147,7 +4356,7 @@ public class Server { public deleteAllAdditionalImagePermissions_result getResult(I iface, deleteAllAdditionalImagePermissions_args args) throws org.apache.thrift.TException { deleteAllAdditionalImagePermissions_result result = new deleteAllAdditionalImagePermissions_result(); - iface.deleteAllAdditionalImagePermissions(args.imageID, args.userID); + iface.deleteAllAdditionalImagePermissions(args.imageID, args.token, args.userID); return result; } } @@ -4167,7 +4376,7 @@ public class Server { public deleteAllAdditionalLecturePermissions_result getResult(I iface, deleteAllAdditionalLecturePermissions_args args) throws org.apache.thrift.TException { deleteAllAdditionalLecturePermissions_result result = new deleteAllAdditionalLecturePermissions_result(); - iface.deleteAllAdditionalLecturePermissions(args.lectureID, args.userID); + iface.deleteAllAdditionalLecturePermissions(args.lectureID, args.token, args.userID); return result; } } @@ -4187,7 +4396,7 @@ public class Server { public getOsNameForGuestOs_result getResult(I iface, getOsNameForGuestOs_args args) throws org.apache.thrift.TException { getOsNameForGuestOs_result result = new getOsNameForGuestOs_result(); - result.success = iface.getOsNameForGuestOs(args.guestOS); + result.success = iface.getOsNameForGuestOs(args.guestOS, args.token); return result; } } @@ -4207,7 +4416,7 @@ public class Server { public userIsImageAdmin_result getResult(I iface, userIsImageAdmin_args args) throws org.apache.thrift.TException { userIsImageAdmin_result result = new userIsImageAdmin_result(); - result.success = iface.userIsImageAdmin(args.userID, args.imageID); + result.success = iface.userIsImageAdmin(args.imageID, args.token, args.userID); result.setSuccessIsSet(true); return result; } @@ -4228,7 +4437,7 @@ public class Server { public userIsLectureAdmin_result getResult(I iface, userIsLectureAdmin_args args) throws org.apache.thrift.TException { userIsLectureAdmin_result result = new userIsLectureAdmin_result(); - result.success = iface.userIsLectureAdmin(args.userID, args.lectureID); + result.success = iface.userIsLectureAdmin(args.userID, args.lectureID, args.token); result.setSuccessIsSet(true); return result; } @@ -4249,7 +4458,27 @@ public class Server { public createRandomUUID_result getResult(I iface, createRandomUUID_args args) throws org.apache.thrift.TException { createRandomUUID_result result = new createRandomUUID_result(); - result.success = iface.createRandomUUID(); + result.success = iface.createRandomUUID(args.token); + return result; + } + } + + public static class getInstitutionByID extends org.apache.thrift.ProcessFunction { + public getInstitutionByID() { + super("getInstitutionByID"); + } + + public getInstitutionByID_args getEmptyArgsInstance() { + return new getInstitutionByID_args(); + } + + protected boolean isOneway() { + return false; + } + + public getInstitutionByID_result getResult(I iface, getInstitutionByID_args args) throws org.apache.thrift.TException { + getInstitutionByID_result result = new getInstitutionByID_result(); + result.success = iface.getInstitutionByID(args.institutionID); return result; } } @@ -4268,7 +4497,8 @@ public class Server { private static Map> getProcessMap(Map> processMap) { processMap.put("getFtpUser", new getFtpUser()); - processMap.put("setTokenForSession", new setTokenForSession()); + processMap.put("authenticated", new authenticated()); + processMap.put("setSessionInvalid", new setSessionInvalid()); processMap.put("DeleteFtpUser", new DeleteFtpUser()); processMap.put("getPathOfImage", new getPathOfImage()); processMap.put("setInstitution", new setInstitution()); @@ -4314,6 +4544,7 @@ public class Server { processMap.put("userIsImageAdmin", new userIsImageAdmin()); processMap.put("userIsLectureAdmin", new userIsLectureAdmin()); processMap.put("createRandomUUID", new createRandomUUID()); + processMap.put("getInstitutionByID", new getInstitutionByID()); return processMap; } @@ -4364,24 +4595,26 @@ public class Server { } public void start(I iface, getFtpUser_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getFtpUser(resultHandler); + iface.getFtpUser(args.token,resultHandler); } } - public static class setTokenForSession extends org.apache.thrift.AsyncProcessFunction { - public setTokenForSession() { - super("setTokenForSession"); + public static class authenticated extends org.apache.thrift.AsyncProcessFunction { + public authenticated() { + super("authenticated"); } - public setTokenForSession_args getEmptyArgsInstance() { - return new setTokenForSession_args(); + public authenticated_args getEmptyArgsInstance() { + return new authenticated_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - setTokenForSession_result result = new setTokenForSession_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + authenticated_result result = new authenticated_result(); + result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -4393,7 +4626,7 @@ public class Server { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - setTokenForSession_result result = new setTokenForSession_result(); + authenticated_result result = new authenticated_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()); @@ -4413,8 +4646,60 @@ public class Server { return false; } - public void start(I iface, setTokenForSession_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.setTokenForSession(args.token,resultHandler); + public void start(I iface, authenticated_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.authenticated(args.token,resultHandler); + } + } + + public static class setSessionInvalid extends org.apache.thrift.AsyncProcessFunction { + public setSessionInvalid() { + super("setSessionInvalid"); + } + + public setSessionInvalid_args getEmptyArgsInstance() { + return new setSessionInvalid_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + setSessionInvalid_result result = new setSessionInvalid_result(); + result.success = o; + result.setSuccessIsSet(true); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + setSessionInvalid_result result = new setSessionInvalid_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, setSessionInvalid_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.setSessionInvalid(args.token,resultHandler); } } @@ -4466,7 +4751,7 @@ public class Server { } public void start(I iface, DeleteFtpUser_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.DeleteFtpUser(args.user,resultHandler); + iface.DeleteFtpUser(args.user, args.token,resultHandler); } } @@ -4517,7 +4802,7 @@ public class Server { } public void start(I iface, getPathOfImage_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getPathOfImage(args.image_id, args.version,resultHandler); + iface.getPathOfImage(args.image_id, args.version, args.token,resultHandler); } } @@ -4568,7 +4853,7 @@ public class Server { } public void start(I iface, setInstitution_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.setInstitution(args.university,resultHandler); + iface.setInstitution(args.university, args.token,resultHandler); } } @@ -4620,7 +4905,7 @@ public class Server { } public void start(I iface, writeVLdata_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.writeVLdata(args.imagename, args.desc, args.login, args.firstname, args.lastname, args.university, args.Mail, args.Tel, args.Fak, args.license, args.internet, args.ram, args.cpu, args.imagePath, args.isTemplate, args.filesize, args.shareMode, args.os, args.uid,resultHandler); + iface.writeVLdata(args.imagename, args.desc, args.Tel, args.Fak, args.license, args.internet, args.ram, args.cpu, args.imagePath, args.isTemplate, args.filesize, args.shareMode, args.os, args.uid, args.token, args.userID,resultHandler); } } @@ -4671,7 +4956,7 @@ public class Server { } public void start(I iface, getImageListPermissionWrite_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getImageListPermissionWrite(args.userID,resultHandler); + iface.getImageListPermissionWrite(args.userID, args.token,resultHandler); } } @@ -4722,7 +5007,7 @@ public class Server { } public void start(I iface, getImageListPermissionRead_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getImageListPermissionRead(args.userID,resultHandler); + iface.getImageListPermissionRead(args.userID, args.token,resultHandler); } } @@ -4773,7 +5058,7 @@ public class Server { } public void start(I iface, getImageListPermissionLink_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getImageListPermissionLink(args.userID,resultHandler); + iface.getImageListPermissionLink(args.userID, args.token,resultHandler); } } @@ -4824,7 +5109,7 @@ public class Server { } public void start(I iface, getImageListPermissionAdmin_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getImageListPermissionAdmin(args.userID,resultHandler); + iface.getImageListPermissionAdmin(args.userID, args.token,resultHandler); } } @@ -4875,7 +5160,7 @@ public class Server { } public void start(I iface, getImageListAllTemplates_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getImageListAllTemplates(resultHandler); + iface.getImageListAllTemplates(args.token,resultHandler); } } @@ -4926,7 +5211,7 @@ public class Server { } public void start(I iface, getImageList_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getImageList(args.userID,resultHandler); + iface.getImageList(args.token,resultHandler); } } @@ -4977,7 +5262,7 @@ public class Server { } public void start(I iface, getLectureList_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getLectureList(resultHandler); + iface.getLectureList(args.token,resultHandler); } } @@ -5028,7 +5313,7 @@ public class Server { } public void start(I iface, getLectureListPermissionRead_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getLectureListPermissionRead(args.userID,resultHandler); + iface.getLectureListPermissionRead(args.token,resultHandler); } } @@ -5079,7 +5364,7 @@ public class Server { } public void start(I iface, getLectureListPermissionWrite_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getLectureListPermissionWrite(args.userID,resultHandler); + iface.getLectureListPermissionWrite(args.token,resultHandler); } } @@ -5130,7 +5415,7 @@ public class Server { } public void start(I iface, getLectureListPermissionAdmin_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getLectureListPermissionAdmin(args.userID,resultHandler); + iface.getLectureListPermissionAdmin(args.token,resultHandler); } } @@ -5181,7 +5466,7 @@ public class Server { } public void start(I iface, getAllOS_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getAllOS(resultHandler); + iface.getAllOS(args.token,resultHandler); } } @@ -5232,7 +5517,7 @@ public class Server { } public void start(I iface, getAllUniversities_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getAllUniversities(resultHandler); + iface.getAllUniversities(args.token,resultHandler); } } @@ -5283,7 +5568,7 @@ public class Server { } public void start(I iface, getPersonData_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getPersonData(args.Vorname, args.Nachname,resultHandler); + iface.getPersonData(args.Vorname, args.Nachname, args.token,resultHandler); } } @@ -5334,7 +5619,7 @@ public class Server { } public void start(I iface, getItemOwner_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getItemOwner(args.itemID,resultHandler); + iface.getItemOwner(args.itemID, args.token,resultHandler); } } @@ -5384,7 +5669,7 @@ public class Server { } public void start(I iface, setPerson_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.setPerson(args.login, args.lastname, args.firstname, args.mail, args.Institution,resultHandler); + iface.setPerson(args.userID, args.token, args.institution,resultHandler); } } @@ -5436,7 +5721,7 @@ public class Server { } public void start(I iface, writeLecturedata_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.writeLecturedata(args.name, args.shortdesc, args.desc, args.startDate, args.endDate, args.isActive, args.imagename, args.login, args.firstname, args.lastname, args.university, args.Mail, args.Tel, args.Fak, args.lectureID,resultHandler); + iface.writeLecturedata(args.name, args.shortdesc, args.desc, args.startDate, args.endDate, args.isActive, args.imagename, args.token, args.Tel, args.Fak, args.lectureID, args.university,resultHandler); } } @@ -5488,7 +5773,7 @@ public class Server { } public void start(I iface, startFileCopy_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.startFileCopy(args.file,resultHandler); + iface.startFileCopy(args.file, args.token,resultHandler); } } @@ -5539,7 +5824,7 @@ public class Server { } public void start(I iface, getImageData_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getImageData(args.imageid, args.imageversion,resultHandler); + iface.getImageData(args.imageid, args.imageversion, args.token,resultHandler); } } @@ -5590,7 +5875,7 @@ public class Server { } public void start(I iface, getLectureData_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getLectureData(args.lectureid,resultHandler); + iface.getLectureData(args.lectureid, args.token,resultHandler); } } @@ -5642,7 +5927,7 @@ public class Server { } public void start(I iface, updateImageData_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateImageData(args.name, args.newName, args.desc, args.image_path, args.license, args.internet, args.ram, args.cpu, args.id, args.version, args.isTemplate, args.filesize, args.shareMode, args.os,resultHandler); + iface.updateImageData(args.name, args.newName, args.desc, args.image_path, args.license, args.internet, args.ram, args.cpu, args.id, args.version, args.isTemplate, args.filesize, args.shareMode, args.os, args.token,resultHandler); } } @@ -5694,7 +5979,7 @@ public class Server { } public void start(I iface, deleteImageData_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteImageData(args.id, args.version,resultHandler); + iface.deleteImageData(args.id, args.version, args.token,resultHandler); } } @@ -5746,7 +6031,7 @@ public class Server { } public void start(I iface, updateLecturedata_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateLecturedata(args.name, args.newName, args.shortdesc, args.desc, args.startDate, args.endDate, args.isActive, args.imageid, args.imageversion, args.user, args.firstname, args.lastname, args.university, args.Mail, args.Tel, args.Fak, args.id,resultHandler); + iface.updateLecturedata(args.name, args.newName, args.shortdesc, args.desc, args.startDate, args.endDate, args.isActive, args.imageid, args.imageversion, args.token, args.Tel, args.Fak, args.id, args.university,resultHandler); } } @@ -5798,7 +6083,7 @@ public class Server { } public void start(I iface, deleteImageServer_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteImageServer(args.id, args.version,resultHandler); + iface.deleteImageServer(args.id, args.version, args.token,resultHandler); } } @@ -5850,7 +6135,7 @@ public class Server { } public void start(I iface, connectedToLecture_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.connectedToLecture(args.id, args.version,resultHandler); + iface.connectedToLecture(args.id, args.version, args.token,resultHandler); } } @@ -5902,7 +6187,7 @@ public class Server { } public void start(I iface, deleteLecture_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteLecture(args.id, args.hs, args.user,resultHandler); + iface.deleteLecture(args.id, args.token, args.university,resultHandler); } } @@ -5954,7 +6239,7 @@ public class Server { } public void start(I iface, checkUser_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.checkUser(args.username,resultHandler); + iface.checkUser(args.username, args.token,resultHandler); } } @@ -6006,7 +6291,7 @@ public class Server { } public void start(I iface, createUser_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.createUser(args.loginName, args.lastName, args.firstName, args.mail, args.university,resultHandler); + iface.createUser(args.token, args.university,resultHandler); } } @@ -6058,7 +6343,7 @@ public class Server { } public void start(I iface, writeImageRights_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.writeImageRights(args.imagename, args.username, args.lastName, args.firstName, args.mail, args.university, args.role,resultHandler); + iface.writeImageRights(args.imagename, args.token, args.role, args.university, args.userID,resultHandler); } } @@ -6110,7 +6395,7 @@ public class Server { } public void start(I iface, writeAdditionalImageRights_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.writeAdditionalImageRights(args.imageName, args.userID, args.isRead, args.isWrite, args.isLinkAllowed, args.isAdmin,resultHandler); + iface.writeAdditionalImageRights(args.imageName, args.userID, args.isRead, args.isWrite, args.isLinkAllowed, args.isAdmin, args.token,resultHandler); } } @@ -6162,7 +6447,7 @@ public class Server { } public void start(I iface, writeLectureRights_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.writeLectureRights(args.lecturename, args.username, args.lastName, args.firstName, args.mail, args.university, args.role,resultHandler); + iface.writeLectureRights(args.lectureID, args.role, args.token, args.university, args.userID,resultHandler); } } @@ -6214,7 +6499,7 @@ public class Server { } public void start(I iface, writeAdditionalLectureRights_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.writeAdditionalLectureRights(args.lectureName, args.userID, args.isRead, args.isWrite, args.isAdmin,resultHandler); + iface.writeAdditionalLectureRights(args.lectureName, args.userID, args.isRead, args.isWrite, args.isAdmin, args.token,resultHandler); } } @@ -6265,7 +6550,7 @@ public class Server { } public void start(I iface, getAllOtherSatelliteUsers_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getAllOtherSatelliteUsers(args.userID,resultHandler); + iface.getAllOtherSatelliteUsers(args.userID, args.token,resultHandler); } } @@ -6316,7 +6601,7 @@ public class Server { } public void start(I iface, getPermissionForUserAndImage_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getPermissionForUserAndImage(args.userID, args.imageID,resultHandler); + iface.getPermissionForUserAndImage(args.token, args.imageID, args.userID,resultHandler); } } @@ -6367,7 +6652,7 @@ public class Server { } public void start(I iface, getAdditionalImageContacts_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getAdditionalImageContacts(args.imageID,resultHandler); + iface.getAdditionalImageContacts(args.imageID, args.token,resultHandler); } } @@ -6418,7 +6703,7 @@ public class Server { } public void start(I iface, getPermissionForUserAndLecture_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getPermissionForUserAndLecture(args.userID, args.lectureID,resultHandler); + iface.getPermissionForUserAndLecture(args.token, args.lectureID, args.userID,resultHandler); } } @@ -6468,7 +6753,7 @@ public class Server { } public void start(I iface, deleteAllAdditionalImagePermissions_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteAllAdditionalImagePermissions(args.imageID, args.userID,resultHandler); + iface.deleteAllAdditionalImagePermissions(args.imageID, args.token, args.userID,resultHandler); } } @@ -6518,7 +6803,7 @@ public class Server { } public void start(I iface, deleteAllAdditionalLecturePermissions_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteAllAdditionalLecturePermissions(args.lectureID, args.userID,resultHandler); + iface.deleteAllAdditionalLecturePermissions(args.lectureID, args.token, args.userID,resultHandler); } } @@ -6569,7 +6854,7 @@ public class Server { } public void start(I iface, getOsNameForGuestOs_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getOsNameForGuestOs(args.guestOS,resultHandler); + iface.getOsNameForGuestOs(args.guestOS, args.token,resultHandler); } } @@ -6621,7 +6906,7 @@ public class Server { } public void start(I iface, userIsImageAdmin_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.userIsImageAdmin(args.userID, args.imageID,resultHandler); + iface.userIsImageAdmin(args.imageID, args.token, args.userID,resultHandler); } } @@ -6673,7 +6958,7 @@ public class Server { } public void start(I iface, userIsLectureAdmin_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.userIsLectureAdmin(args.userID, args.lectureID,resultHandler); + iface.userIsLectureAdmin(args.userID, args.lectureID, args.token,resultHandler); } } @@ -6724,7 +7009,58 @@ public class Server { } public void start(I iface, createRandomUUID_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.createRandomUUID(resultHandler); + iface.createRandomUUID(args.token,resultHandler); + } + } + + public static class getInstitutionByID extends org.apache.thrift.AsyncProcessFunction { + public getInstitutionByID() { + super("getInstitutionByID"); + } + + public getInstitutionByID_args getEmptyArgsInstance() { + return new getInstitutionByID_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(String o) { + getInstitutionByID_result result = new getInstitutionByID_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; + getInstitutionByID_result result = new getInstitutionByID_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, getInstitutionByID_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getInstitutionByID(args.institutionID,resultHandler); } } @@ -6733,6 +7069,7 @@ public class Server { public static class getFtpUser_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("getFtpUser_args"); + private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -6740,10 +7077,11 @@ public class Server { schemes.put(TupleScheme.class, new getFtpUser_argsTupleSchemeFactory()); } + public String token; // 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 { -; + TOKEN((short)1, "token"); private static final Map byName = new HashMap(); @@ -6758,6 +7096,8 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 1: // TOKEN + return TOKEN; default: return null; } @@ -6796,9 +7136,13 @@ 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.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", 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(getFtpUser_args.class, metaDataMap); } @@ -6806,10 +7150,20 @@ public class Server { public getFtpUser_args() { } + public getFtpUser_args( + String token) + { + this(); + this.token = token; + } + /** * Performs a deep copy on other. */ public getFtpUser_args(getFtpUser_args other) { + if (other.isSetToken()) { + this.token = other.token; + } } public getFtpUser_args deepCopy() { @@ -6818,15 +7172,51 @@ public class Server { @Override public void clear() { + this.token = null; + } + + public String getToken() { + return this.token; + } + + public getFtpUser_args setToken(String token) { + this.token = token; + return this; + } + + public void unsetToken() { + this.token = null; + } + + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; + } + + public void setTokenIsSet(boolean value) { + if (!value) { + this.token = null; + } } public void setFieldValue(_Fields field, Object value) { switch (field) { + case TOKEN: + if (value == null) { + unsetToken(); + } else { + setToken((String)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { + case TOKEN: + return getToken(); + } throw new IllegalStateException(); } @@ -6838,6 +7228,8 @@ public class Server { } switch (field) { + case TOKEN: + return isSetToken(); } throw new IllegalStateException(); } @@ -6855,6 +7247,15 @@ public class Server { if (that == null) return false; + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) + return false; + if (!this.token.equals(that.token)) + return false; + } + return true; } @@ -6871,6 +7272,16 @@ public class Server { int lastComparison = 0; + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -6891,6 +7302,13 @@ public class Server { StringBuilder sb = new StringBuilder("getFtpUser_args("); boolean first = true; + sb.append("token:"); + if (this.token == null) { + sb.append("null"); + } else { + sb.append(this.token); + } + first = false; sb.append(")"); return sb.toString(); } @@ -6934,6 +7352,14 @@ public class Server { break; } switch (schemeField.id) { + case 1: // TOKEN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -6949,6 +7375,11 @@ public class Server { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -6966,11 +7397,24 @@ public class Server { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getFtpUser_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetToken()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetToken()) { + oprot.writeString(struct.token); + } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getFtpUser_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } } } @@ -7335,15 +7779,15 @@ public class Server { } - public static class setTokenForSession_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("setTokenForSession_args"); + public static class authenticated_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("authenticated_args"); private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new setTokenForSession_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new setTokenForSession_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new authenticated_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new authenticated_argsTupleSchemeFactory()); } public String token; // required @@ -7413,13 +7857,13 @@ public class Server { tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", 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(setTokenForSession_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticated_args.class, metaDataMap); } - public setTokenForSession_args() { + public authenticated_args() { } - public setTokenForSession_args( + public authenticated_args( String token) { this(); @@ -7429,14 +7873,14 @@ public class Server { /** * Performs a deep copy on other. */ - public setTokenForSession_args(setTokenForSession_args other) { + public authenticated_args(authenticated_args other) { if (other.isSetToken()) { this.token = other.token; } } - public setTokenForSession_args deepCopy() { - return new setTokenForSession_args(this); + public authenticated_args deepCopy() { + return new authenticated_args(this); } @Override @@ -7448,7 +7892,7 @@ public class Server { return this.token; } - public setTokenForSession_args setToken(String token) { + public authenticated_args setToken(String token) { this.token = token; return this; } @@ -7507,12 +7951,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof setTokenForSession_args) - return this.equals((setTokenForSession_args)that); + if (that instanceof authenticated_args) + return this.equals((authenticated_args)that); return false; } - public boolean equals(setTokenForSession_args that) { + public boolean equals(authenticated_args that) { if (that == null) return false; @@ -7534,7 +7978,7 @@ public class Server { } @Override - public int compareTo(setTokenForSession_args other) { + public int compareTo(authenticated_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -7568,7 +8012,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("setTokenForSession_args("); + StringBuilder sb = new StringBuilder("authenticated_args("); boolean first = true; sb.append("token:"); @@ -7603,15 +8047,15 @@ public class Server { } } - private static class setTokenForSession_argsStandardSchemeFactory implements SchemeFactory { - public setTokenForSession_argsStandardScheme getScheme() { - return new setTokenForSession_argsStandardScheme(); + private static class authenticated_argsStandardSchemeFactory implements SchemeFactory { + public authenticated_argsStandardScheme getScheme() { + return new authenticated_argsStandardScheme(); } } - private static class setTokenForSession_argsStandardScheme extends StandardScheme { + private static class authenticated_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, setTokenForSession_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, authenticated_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -7640,7 +8084,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, setTokenForSession_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, authenticated_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -7655,16 +8099,16 @@ public class Server { } - private static class setTokenForSession_argsTupleSchemeFactory implements SchemeFactory { - public setTokenForSession_argsTupleScheme getScheme() { - return new setTokenForSession_argsTupleScheme(); + private static class authenticated_argsTupleSchemeFactory implements SchemeFactory { + public authenticated_argsTupleScheme getScheme() { + return new authenticated_argsTupleScheme(); } } - private static class setTokenForSession_argsTupleScheme extends TupleScheme { + private static class authenticated_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, setTokenForSession_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, authenticated_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetToken()) { @@ -7677,7 +8121,7 @@ public class Server { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, setTokenForSession_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, authenticated_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -7689,20 +8133,22 @@ public class Server { } - public static class setTokenForSession_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("setTokenForSession_result"); + public static class authenticated_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("authenticated_result"); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new setTokenForSession_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new setTokenForSession_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new authenticated_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new authenticated_resultTupleSchemeFactory()); } + public boolean success; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { -; + SUCCESS((short)0, "success"); private static final Map byName = new HashMap(); @@ -7717,6 +8163,8 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; default: return null; } @@ -7755,37 +8203,89 @@ public class Server { return _fieldName; } } + + // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setTokenForSession_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticated_result.class, metaDataMap); } - public setTokenForSession_result() { + public authenticated_result() { + } + + public authenticated_result( + boolean success) + { + this(); + this.success = success; + setSuccessIsSet(true); } /** * Performs a deep copy on other. */ - public setTokenForSession_result(setTokenForSession_result other) { + public authenticated_result(authenticated_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; } - public setTokenForSession_result deepCopy() { - return new setTokenForSession_result(this); + public authenticated_result deepCopy() { + return new authenticated_result(this); } @Override public void clear() { + setSuccessIsSet(false); + this.success = false; + } + + public boolean isSuccess() { + return this.success; + } + + public authenticated_result setSuccess(boolean success) { + this.success = success; + setSuccessIsSet(true); + return this; + } + + public void unsetSuccess() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + public void setSuccessIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Boolean)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return Boolean.valueOf(isSuccess()); + } throw new IllegalStateException(); } @@ -7797,6 +8297,8 @@ public class Server { } switch (field) { + case SUCCESS: + return isSetSuccess(); } throw new IllegalStateException(); } @@ -7805,15 +8307,24 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof setTokenForSession_result) - return this.equals((setTokenForSession_result)that); + if (that instanceof authenticated_result) + return this.equals((authenticated_result)that); return false; } - public boolean equals(setTokenForSession_result that) { + public boolean equals(authenticated_result that) { if (that == null) return false; + boolean this_present_success = true; + boolean that_present_success = true; + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (this.success != that.success) + return false; + } + return true; } @@ -7823,13 +8334,23 @@ public class Server { } @Override - public int compareTo(setTokenForSession_result other) { + public int compareTo(authenticated_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; } @@ -7847,9 +8368,12 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("setTokenForSession_result("); + StringBuilder sb = new StringBuilder("authenticated_result("); boolean first = true; + sb.append("success:"); + sb.append(this.success); + first = false; sb.append(")"); return sb.toString(); } @@ -7869,21 +8393,23 @@ public class Server { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class setTokenForSession_resultStandardSchemeFactory implements SchemeFactory { - public setTokenForSession_resultStandardScheme getScheme() { - return new setTokenForSession_resultStandardScheme(); + private static class authenticated_resultStandardSchemeFactory implements SchemeFactory { + public authenticated_resultStandardScheme getScheme() { + return new authenticated_resultStandardScheme(); } } - private static class setTokenForSession_resultStandardScheme extends StandardScheme { + private static class authenticated_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, setTokenForSession_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, authenticated_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -7893,6 +8419,14 @@ public class Server { break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -7904,53 +8438,71 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, setTokenForSession_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, authenticated_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeBool(struct.success); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class setTokenForSession_resultTupleSchemeFactory implements SchemeFactory { - public setTokenForSession_resultTupleScheme getScheme() { - return new setTokenForSession_resultTupleScheme(); + private static class authenticated_resultTupleSchemeFactory implements SchemeFactory { + public authenticated_resultTupleScheme getScheme() { + return new authenticated_resultTupleScheme(); } } - private static class setTokenForSession_resultTupleScheme extends TupleScheme { + private static class authenticated_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, setTokenForSession_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, authenticated_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + oprot.writeBool(struct.success); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, setTokenForSession_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, authenticated_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } } } } - public static class DeleteFtpUser_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("DeleteFtpUser_args"); + public static class setSessionInvalid_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("setSessionInvalid_args"); - private static final org.apache.thrift.protocol.TField USER_FIELD_DESC = new org.apache.thrift.protocol.TField("user", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new DeleteFtpUser_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new DeleteFtpUser_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new setSessionInvalid_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new setSessionInvalid_argsTupleSchemeFactory()); } - public String user; // required + public String token; // 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((short)1, "user"); + TOKEN((short)1, "token"); private static final Map byName = new HashMap(); @@ -7965,8 +8517,8 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // USER - return USER; + case 1: // TOKEN + return TOKEN; default: return null; } @@ -8010,71 +8562,71 @@ public class Server { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.USER, new org.apache.thrift.meta_data.FieldMetaData("user", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", 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(DeleteFtpUser_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setSessionInvalid_args.class, metaDataMap); } - public DeleteFtpUser_args() { + public setSessionInvalid_args() { } - public DeleteFtpUser_args( - String user) + public setSessionInvalid_args( + String token) { this(); - this.user = user; + this.token = token; } /** * Performs a deep copy on other. */ - public DeleteFtpUser_args(DeleteFtpUser_args other) { - if (other.isSetUser()) { - this.user = other.user; + public setSessionInvalid_args(setSessionInvalid_args other) { + if (other.isSetToken()) { + this.token = other.token; } } - public DeleteFtpUser_args deepCopy() { - return new DeleteFtpUser_args(this); + public setSessionInvalid_args deepCopy() { + return new setSessionInvalid_args(this); } @Override public void clear() { - this.user = null; + this.token = null; } - public String getUser() { - return this.user; + public String getToken() { + return this.token; } - public DeleteFtpUser_args setUser(String user) { - this.user = user; + public setSessionInvalid_args setToken(String token) { + this.token = token; return this; } - public void unsetUser() { - this.user = null; + public void unsetToken() { + this.token = null; } - /** Returns true if field user is set (has been assigned a value) and false otherwise */ - public boolean isSetUser() { - return this.user != null; + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; } - public void setUserIsSet(boolean value) { + public void setTokenIsSet(boolean value) { if (!value) { - this.user = null; + this.token = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case USER: + case TOKEN: if (value == null) { - unsetUser(); + unsetToken(); } else { - setUser((String)value); + setToken((String)value); } break; @@ -8083,8 +8635,8 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case USER: - return getUser(); + case TOKEN: + return getToken(); } throw new IllegalStateException(); @@ -8097,8 +8649,8 @@ public class Server { } switch (field) { - case USER: - return isSetUser(); + case TOKEN: + return isSetToken(); } throw new IllegalStateException(); } @@ -8107,21 +8659,21 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof DeleteFtpUser_args) - return this.equals((DeleteFtpUser_args)that); + if (that instanceof setSessionInvalid_args) + return this.equals((setSessionInvalid_args)that); return false; } - public boolean equals(DeleteFtpUser_args that) { + public boolean equals(setSessionInvalid_args that) { if (that == null) return false; - boolean this_present_user = true && this.isSetUser(); - boolean that_present_user = true && that.isSetUser(); - if (this_present_user || that_present_user) { - if (!(this_present_user && that_present_user)) + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) return false; - if (!this.user.equals(that.user)) + if (!this.token.equals(that.token)) return false; } @@ -8134,19 +8686,19 @@ public class Server { } @Override - public int compareTo(DeleteFtpUser_args other) { + public int compareTo(setSessionInvalid_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUser()).compareTo(other.isSetUser()); + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); if (lastComparison != 0) { return lastComparison; } - if (isSetUser()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, other.user); + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) { return lastComparison; } @@ -8168,14 +8720,14 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("DeleteFtpUser_args("); + StringBuilder sb = new StringBuilder("setSessionInvalid_args("); boolean first = true; - sb.append("user:"); - if (this.user == null) { + sb.append("token:"); + if (this.token == null) { sb.append("null"); } else { - sb.append(this.user); + sb.append(this.token); } first = false; sb.append(")"); @@ -8203,15 +8755,15 @@ public class Server { } } - private static class DeleteFtpUser_argsStandardSchemeFactory implements SchemeFactory { - public DeleteFtpUser_argsStandardScheme getScheme() { - return new DeleteFtpUser_argsStandardScheme(); + private static class setSessionInvalid_argsStandardSchemeFactory implements SchemeFactory { + public setSessionInvalid_argsStandardScheme getScheme() { + return new setSessionInvalid_argsStandardScheme(); } } - private static class DeleteFtpUser_argsStandardScheme extends StandardScheme { + private static class setSessionInvalid_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, DeleteFtpUser_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, setSessionInvalid_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -8221,10 +8773,10 @@ public class Server { break; } switch (schemeField.id) { - case 1: // USER + case 1: // TOKEN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.user = iprot.readString(); - struct.setUserIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -8240,13 +8792,13 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, DeleteFtpUser_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, setSessionInvalid_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.user != null) { - oprot.writeFieldBegin(USER_FIELD_DESC); - oprot.writeString(struct.user); + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -8255,52 +8807,52 @@ public class Server { } - private static class DeleteFtpUser_argsTupleSchemeFactory implements SchemeFactory { - public DeleteFtpUser_argsTupleScheme getScheme() { - return new DeleteFtpUser_argsTupleScheme(); + private static class setSessionInvalid_argsTupleSchemeFactory implements SchemeFactory { + public setSessionInvalid_argsTupleScheme getScheme() { + return new setSessionInvalid_argsTupleScheme(); } } - private static class DeleteFtpUser_argsTupleScheme extends TupleScheme { + private static class setSessionInvalid_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, DeleteFtpUser_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, setSessionInvalid_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetUser()) { + if (struct.isSetToken()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); - if (struct.isSetUser()) { - oprot.writeString(struct.user); + if (struct.isSetToken()) { + oprot.writeString(struct.token); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, DeleteFtpUser_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, setSessionInvalid_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.user = iprot.readString(); - struct.setUserIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } } } } - public static class DeleteFtpUser_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("DeleteFtpUser_result"); + public static class setSessionInvalid_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("setSessionInvalid_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new DeleteFtpUser_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new DeleteFtpUser_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new setSessionInvalid_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new setSessionInvalid_resultTupleSchemeFactory()); } - public long success; // required + public boolean success; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -8367,16 +8919,16 @@ public class Server { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "int"))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(DeleteFtpUser_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setSessionInvalid_result.class, metaDataMap); } - public DeleteFtpUser_result() { + public setSessionInvalid_result() { } - public DeleteFtpUser_result( - long success) + public setSessionInvalid_result( + boolean success) { this(); this.success = success; @@ -8386,26 +8938,26 @@ public class Server { /** * Performs a deep copy on other. */ - public DeleteFtpUser_result(DeleteFtpUser_result other) { + public setSessionInvalid_result(setSessionInvalid_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; } - public DeleteFtpUser_result deepCopy() { - return new DeleteFtpUser_result(this); + public setSessionInvalid_result deepCopy() { + return new setSessionInvalid_result(this); } @Override public void clear() { setSuccessIsSet(false); - this.success = 0; + this.success = false; } - public long getSuccess() { + public boolean isSuccess() { return this.success; } - public DeleteFtpUser_result setSuccess(long success) { + public setSessionInvalid_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; @@ -8430,7 +8982,7 @@ public class Server { if (value == null) { unsetSuccess(); } else { - setSuccess((Long)value); + setSuccess((Boolean)value); } break; @@ -8440,7 +8992,7 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return Long.valueOf(getSuccess()); + return Boolean.valueOf(isSuccess()); } throw new IllegalStateException(); @@ -8463,12 +9015,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof DeleteFtpUser_result) - return this.equals((DeleteFtpUser_result)that); + if (that instanceof setSessionInvalid_result) + return this.equals((setSessionInvalid_result)that); return false; } - public boolean equals(DeleteFtpUser_result that) { + public boolean equals(setSessionInvalid_result that) { if (that == null) return false; @@ -8490,7 +9042,7 @@ public class Server { } @Override - public int compareTo(DeleteFtpUser_result other) { + public int compareTo(setSessionInvalid_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -8524,7 +9076,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("DeleteFtpUser_result("); + StringBuilder sb = new StringBuilder("setSessionInvalid_result("); boolean first = true; sb.append("success:"); @@ -8557,15 +9109,15 @@ public class Server { } } - private static class DeleteFtpUser_resultStandardSchemeFactory implements SchemeFactory { - public DeleteFtpUser_resultStandardScheme getScheme() { - return new DeleteFtpUser_resultStandardScheme(); + private static class setSessionInvalid_resultStandardSchemeFactory implements SchemeFactory { + public setSessionInvalid_resultStandardScheme getScheme() { + return new setSessionInvalid_resultStandardScheme(); } } - private static class DeleteFtpUser_resultStandardScheme extends StandardScheme { + private static class setSessionInvalid_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, DeleteFtpUser_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, setSessionInvalid_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -8576,8 +9128,8 @@ public class Server { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.success = iprot.readI64(); + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -8594,13 +9146,13 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, DeleteFtpUser_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, setSessionInvalid_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeI64(struct.success); + oprot.writeBool(struct.success); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -8609,16 +9161,16 @@ public class Server { } - private static class DeleteFtpUser_resultTupleSchemeFactory implements SchemeFactory { - public DeleteFtpUser_resultTupleScheme getScheme() { - return new DeleteFtpUser_resultTupleScheme(); + private static class setSessionInvalid_resultTupleSchemeFactory implements SchemeFactory { + public setSessionInvalid_resultTupleScheme getScheme() { + return new setSessionInvalid_resultTupleScheme(); } } - private static class DeleteFtpUser_resultTupleScheme extends TupleScheme { + private static class setSessionInvalid_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, DeleteFtpUser_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, setSessionInvalid_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -8626,16 +9178,16 @@ public class Server { } oprot.writeBitSet(optionals, 1); if (struct.isSetSuccess()) { - oprot.writeI64(struct.success); + oprot.writeBool(struct.success); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, DeleteFtpUser_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, setSessionInvalid_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.success = iprot.readI64(); + struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } } @@ -8643,25 +9195,25 @@ public class Server { } - public static class getPathOfImage_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("getPathOfImage_args"); + public static class DeleteFtpUser_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("DeleteFtpUser_args"); - private static final org.apache.thrift.protocol.TField IMAGE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("image_id", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("version", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField USER_FIELD_DESC = new org.apache.thrift.protocol.TField("user", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getPathOfImage_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getPathOfImage_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new DeleteFtpUser_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new DeleteFtpUser_argsTupleSchemeFactory()); } - public String image_id; // required - public String version; // required + public String user; // required + public String token; // 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 { - IMAGE_ID((short)1, "image_id"), - VERSION((short)2, "version"); + USER((short)1, "user"), + TOKEN((short)2, "token"); private static final Map byName = new HashMap(); @@ -8676,10 +9228,10 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // IMAGE_ID - return IMAGE_ID; - case 2: // VERSION - return VERSION; + case 1: // USER + return USER; + case 2: // TOKEN + return TOKEN; default: return null; } @@ -8723,111 +9275,111 @@ public class Server { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.IMAGE_ID, new org.apache.thrift.meta_data.FieldMetaData("image_id", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.USER, new org.apache.thrift.meta_data.FieldMetaData("user", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.VERSION, new org.apache.thrift.meta_data.FieldMetaData("version", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", 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(getPathOfImage_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(DeleteFtpUser_args.class, metaDataMap); } - public getPathOfImage_args() { + public DeleteFtpUser_args() { } - public getPathOfImage_args( - String image_id, - String version) + public DeleteFtpUser_args( + String user, + String token) { this(); - this.image_id = image_id; - this.version = version; + this.user = user; + this.token = token; } /** * Performs a deep copy on other. */ - public getPathOfImage_args(getPathOfImage_args other) { - if (other.isSetImage_id()) { - this.image_id = other.image_id; + public DeleteFtpUser_args(DeleteFtpUser_args other) { + if (other.isSetUser()) { + this.user = other.user; } - if (other.isSetVersion()) { - this.version = other.version; + if (other.isSetToken()) { + this.token = other.token; } } - public getPathOfImage_args deepCopy() { - return new getPathOfImage_args(this); + public DeleteFtpUser_args deepCopy() { + return new DeleteFtpUser_args(this); } @Override public void clear() { - this.image_id = null; - this.version = null; + this.user = null; + this.token = null; } - public String getImage_id() { - return this.image_id; + public String getUser() { + return this.user; } - public getPathOfImage_args setImage_id(String image_id) { - this.image_id = image_id; + public DeleteFtpUser_args setUser(String user) { + this.user = user; return this; } - public void unsetImage_id() { - this.image_id = null; + public void unsetUser() { + this.user = null; } - /** Returns true if field image_id is set (has been assigned a value) and false otherwise */ - public boolean isSetImage_id() { - return this.image_id != null; + /** Returns true if field user is set (has been assigned a value) and false otherwise */ + public boolean isSetUser() { + return this.user != null; } - public void setImage_idIsSet(boolean value) { + public void setUserIsSet(boolean value) { if (!value) { - this.image_id = null; + this.user = null; } } - public String getVersion() { - return this.version; + public String getToken() { + return this.token; } - public getPathOfImage_args setVersion(String version) { - this.version = version; + public DeleteFtpUser_args setToken(String token) { + this.token = token; return this; } - public void unsetVersion() { - this.version = null; + public void unsetToken() { + this.token = null; } - /** Returns true if field version is set (has been assigned a value) and false otherwise */ - public boolean isSetVersion() { - return this.version != null; + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; } - public void setVersionIsSet(boolean value) { + public void setTokenIsSet(boolean value) { if (!value) { - this.version = null; + this.token = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case IMAGE_ID: + case USER: if (value == null) { - unsetImage_id(); + unsetUser(); } else { - setImage_id((String)value); + setUser((String)value); } break; - case VERSION: + case TOKEN: if (value == null) { - unsetVersion(); + unsetToken(); } else { - setVersion((String)value); + setToken((String)value); } break; @@ -8836,11 +9388,11 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case IMAGE_ID: - return getImage_id(); + case USER: + return getUser(); - case VERSION: - return getVersion(); + case TOKEN: + return getToken(); } throw new IllegalStateException(); @@ -8853,10 +9405,10 @@ public class Server { } switch (field) { - case IMAGE_ID: - return isSetImage_id(); - case VERSION: - return isSetVersion(); + case USER: + return isSetUser(); + case TOKEN: + return isSetToken(); } throw new IllegalStateException(); } @@ -8865,30 +9417,30 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getPathOfImage_args) - return this.equals((getPathOfImage_args)that); + if (that instanceof DeleteFtpUser_args) + return this.equals((DeleteFtpUser_args)that); return false; } - public boolean equals(getPathOfImage_args that) { + public boolean equals(DeleteFtpUser_args that) { if (that == null) return false; - boolean this_present_image_id = true && this.isSetImage_id(); - boolean that_present_image_id = true && that.isSetImage_id(); - if (this_present_image_id || that_present_image_id) { - if (!(this_present_image_id && that_present_image_id)) + boolean this_present_user = true && this.isSetUser(); + boolean that_present_user = true && that.isSetUser(); + if (this_present_user || that_present_user) { + if (!(this_present_user && that_present_user)) return false; - if (!this.image_id.equals(that.image_id)) + if (!this.user.equals(that.user)) return false; } - boolean this_present_version = true && this.isSetVersion(); - boolean that_present_version = true && that.isSetVersion(); - if (this_present_version || that_present_version) { - if (!(this_present_version && that_present_version)) + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) return false; - if (!this.version.equals(that.version)) + if (!this.token.equals(that.token)) return false; } @@ -8901,29 +9453,29 @@ public class Server { } @Override - public int compareTo(getPathOfImage_args other) { + public int compareTo(DeleteFtpUser_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetImage_id()).compareTo(other.isSetImage_id()); + lastComparison = Boolean.valueOf(isSetUser()).compareTo(other.isSetUser()); if (lastComparison != 0) { return lastComparison; } - if (isSetImage_id()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.image_id, other.image_id); + if (isSetUser()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, other.user); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetVersion()).compareTo(other.isSetVersion()); + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); if (lastComparison != 0) { return lastComparison; } - if (isSetVersion()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.version, other.version); + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) { return lastComparison; } @@ -8945,22 +9497,22 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getPathOfImage_args("); + StringBuilder sb = new StringBuilder("DeleteFtpUser_args("); boolean first = true; - sb.append("image_id:"); - if (this.image_id == null) { + sb.append("user:"); + if (this.user == null) { sb.append("null"); } else { - sb.append(this.image_id); + sb.append(this.user); } first = false; if (!first) sb.append(", "); - sb.append("version:"); - if (this.version == null) { + sb.append("token:"); + if (this.token == null) { sb.append("null"); } else { - sb.append(this.version); + sb.append(this.token); } first = false; sb.append(")"); @@ -8988,15 +9540,15 @@ public class Server { } } - private static class getPathOfImage_argsStandardSchemeFactory implements SchemeFactory { - public getPathOfImage_argsStandardScheme getScheme() { - return new getPathOfImage_argsStandardScheme(); + private static class DeleteFtpUser_argsStandardSchemeFactory implements SchemeFactory { + public DeleteFtpUser_argsStandardScheme getScheme() { + return new DeleteFtpUser_argsStandardScheme(); } } - private static class getPathOfImage_argsStandardScheme extends StandardScheme { + private static class DeleteFtpUser_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getPathOfImage_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, DeleteFtpUser_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -9006,18 +9558,18 @@ public class Server { break; } switch (schemeField.id) { - case 1: // IMAGE_ID + case 1: // USER if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.image_id = iprot.readString(); - struct.setImage_idIsSet(true); + struct.user = iprot.readString(); + struct.setUserIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // VERSION + case 2: // TOKEN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.version = iprot.readString(); - struct.setVersionIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -9033,18 +9585,18 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getPathOfImage_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, DeleteFtpUser_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.image_id != null) { - oprot.writeFieldBegin(IMAGE_ID_FIELD_DESC); - oprot.writeString(struct.image_id); + if (struct.user != null) { + oprot.writeFieldBegin(USER_FIELD_DESC); + oprot.writeString(struct.user); oprot.writeFieldEnd(); } - if (struct.version != null) { - oprot.writeFieldBegin(VERSION_FIELD_DESC); - oprot.writeString(struct.version); + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -9053,62 +9605,62 @@ public class Server { } - private static class getPathOfImage_argsTupleSchemeFactory implements SchemeFactory { - public getPathOfImage_argsTupleScheme getScheme() { - return new getPathOfImage_argsTupleScheme(); + private static class DeleteFtpUser_argsTupleSchemeFactory implements SchemeFactory { + public DeleteFtpUser_argsTupleScheme getScheme() { + return new DeleteFtpUser_argsTupleScheme(); } } - private static class getPathOfImage_argsTupleScheme extends TupleScheme { + private static class DeleteFtpUser_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getPathOfImage_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, DeleteFtpUser_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetImage_id()) { + if (struct.isSetUser()) { optionals.set(0); } - if (struct.isSetVersion()) { + if (struct.isSetToken()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); - if (struct.isSetImage_id()) { - oprot.writeString(struct.image_id); + if (struct.isSetUser()) { + oprot.writeString(struct.user); } - if (struct.isSetVersion()) { - oprot.writeString(struct.version); + if (struct.isSetToken()) { + oprot.writeString(struct.token); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getPathOfImage_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, DeleteFtpUser_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.image_id = iprot.readString(); - struct.setImage_idIsSet(true); + struct.user = iprot.readString(); + struct.setUserIsSet(true); } if (incoming.get(1)) { - struct.version = iprot.readString(); - struct.setVersionIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } } } } - public static class getPathOfImage_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("getPathOfImage_result"); + public static class DeleteFtpUser_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("DeleteFtpUser_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getPathOfImage_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getPathOfImage_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new DeleteFtpUser_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new DeleteFtpUser_resultTupleSchemeFactory()); } - public String success; // required + public long 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 { @@ -9169,65 +9721,67 @@ public class Server { } // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "int"))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPathOfImage_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(DeleteFtpUser_result.class, metaDataMap); } - public getPathOfImage_result() { + public DeleteFtpUser_result() { } - public getPathOfImage_result( - String success) + public DeleteFtpUser_result( + long success) { this(); this.success = success; + setSuccessIsSet(true); } /** * Performs a deep copy on other. */ - public getPathOfImage_result(getPathOfImage_result other) { - if (other.isSetSuccess()) { - this.success = other.success; - } + public DeleteFtpUser_result(DeleteFtpUser_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; } - public getPathOfImage_result deepCopy() { - return new getPathOfImage_result(this); + public DeleteFtpUser_result deepCopy() { + return new DeleteFtpUser_result(this); } @Override public void clear() { - this.success = null; + setSuccessIsSet(false); + this.success = 0; } - public String getSuccess() { + public long getSuccess() { return this.success; } - public getPathOfImage_result setSuccess(String success) { + public DeleteFtpUser_result setSuccess(long success) { this.success = success; + setSuccessIsSet(true); return this; } public void unsetSuccess() { - this.success = null; + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return this.success != null; + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { @@ -9236,7 +9790,7 @@ public class Server { if (value == null) { unsetSuccess(); } else { - setSuccess((String)value); + setSuccess((Long)value); } break; @@ -9246,7 +9800,7 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return getSuccess(); + return Long.valueOf(getSuccess()); } throw new IllegalStateException(); @@ -9269,21 +9823,21 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getPathOfImage_result) - return this.equals((getPathOfImage_result)that); + if (that instanceof DeleteFtpUser_result) + return this.equals((DeleteFtpUser_result)that); return false; } - public boolean equals(getPathOfImage_result that) { + public boolean equals(DeleteFtpUser_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); + boolean this_present_success = true; + boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (!this.success.equals(that.success)) + if (this.success != that.success) return false; } @@ -9296,7 +9850,7 @@ public class Server { } @Override - public int compareTo(getPathOfImage_result other) { + public int compareTo(DeleteFtpUser_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -9330,15 +9884,11 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getPathOfImage_result("); + StringBuilder sb = new StringBuilder("DeleteFtpUser_result("); boolean first = true; sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } + sb.append(this.success); first = false; sb.append(")"); return sb.toString(); @@ -9359,21 +9909,23 @@ public class Server { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class getPathOfImage_resultStandardSchemeFactory implements SchemeFactory { - public getPathOfImage_resultStandardScheme getScheme() { - return new getPathOfImage_resultStandardScheme(); + private static class DeleteFtpUser_resultStandardSchemeFactory implements SchemeFactory { + public DeleteFtpUser_resultStandardScheme getScheme() { + return new DeleteFtpUser_resultStandardScheme(); } } - private static class getPathOfImage_resultStandardScheme extends StandardScheme { + private static class DeleteFtpUser_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getPathOfImage_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, DeleteFtpUser_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -9384,8 +9936,8 @@ public class Server { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.success = iprot.readString(); + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -9402,13 +9954,13 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getPathOfImage_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, DeleteFtpUser_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { + if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeString(struct.success); + oprot.writeI64(struct.success); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -9417,16 +9969,16 @@ public class Server { } - private static class getPathOfImage_resultTupleSchemeFactory implements SchemeFactory { - public getPathOfImage_resultTupleScheme getScheme() { - return new getPathOfImage_resultTupleScheme(); + private static class DeleteFtpUser_resultTupleSchemeFactory implements SchemeFactory { + public DeleteFtpUser_resultTupleScheme getScheme() { + return new DeleteFtpUser_resultTupleScheme(); } } - private static class getPathOfImage_resultTupleScheme extends TupleScheme { + private static class DeleteFtpUser_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getPathOfImage_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, DeleteFtpUser_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -9434,16 +9986,16 @@ public class Server { } oprot.writeBitSet(optionals, 1); if (struct.isSetSuccess()) { - oprot.writeString(struct.success); + oprot.writeI64(struct.success); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getPathOfImage_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, DeleteFtpUser_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.success = iprot.readString(); + struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } } @@ -9451,22 +10003,28 @@ public class Server { } - public static class setInstitution_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("setInstitution_args"); + public static class getPathOfImage_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("getPathOfImage_args"); - private static final org.apache.thrift.protocol.TField UNIVERSITY_FIELD_DESC = new org.apache.thrift.protocol.TField("university", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField IMAGE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("image_id", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("version", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new setInstitution_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new setInstitution_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getPathOfImage_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getPathOfImage_argsTupleSchemeFactory()); } - public String university; // required + public String image_id; // required + public String version; // required + public String token; // 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 { - UNIVERSITY((short)1, "university"); + IMAGE_ID((short)1, "image_id"), + VERSION((short)2, "version"), + TOKEN((short)3, "token"); private static final Map byName = new HashMap(); @@ -9481,8 +10039,12 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // UNIVERSITY - return UNIVERSITY; + case 1: // IMAGE_ID + return IMAGE_ID; + case 2: // VERSION + return VERSION; + case 3: // TOKEN + return TOKEN; default: return null; } @@ -9526,71 +10088,151 @@ public class Server { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.UNIVERSITY, new org.apache.thrift.meta_data.FieldMetaData("university", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.IMAGE_ID, new org.apache.thrift.meta_data.FieldMetaData("image_id", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.VERSION, new org.apache.thrift.meta_data.FieldMetaData("version", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", 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(setInstitution_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPathOfImage_args.class, metaDataMap); } - public setInstitution_args() { + public getPathOfImage_args() { } - public setInstitution_args( - String university) + public getPathOfImage_args( + String image_id, + String version, + String token) { this(); - this.university = university; + this.image_id = image_id; + this.version = version; + this.token = token; } /** * Performs a deep copy on other. */ - public setInstitution_args(setInstitution_args other) { - if (other.isSetUniversity()) { - this.university = other.university; + public getPathOfImage_args(getPathOfImage_args other) { + if (other.isSetImage_id()) { + this.image_id = other.image_id; + } + if (other.isSetVersion()) { + this.version = other.version; + } + if (other.isSetToken()) { + this.token = other.token; } } - public setInstitution_args deepCopy() { - return new setInstitution_args(this); + public getPathOfImage_args deepCopy() { + return new getPathOfImage_args(this); } @Override public void clear() { - this.university = null; + this.image_id = null; + this.version = null; + this.token = null; } - public String getUniversity() { - return this.university; + public String getImage_id() { + return this.image_id; } - public setInstitution_args setUniversity(String university) { - this.university = university; + public getPathOfImage_args setImage_id(String image_id) { + this.image_id = image_id; return this; } - public void unsetUniversity() { - this.university = null; + public void unsetImage_id() { + this.image_id = null; } - /** Returns true if field university is set (has been assigned a value) and false otherwise */ - public boolean isSetUniversity() { - return this.university != null; + /** Returns true if field image_id is set (has been assigned a value) and false otherwise */ + public boolean isSetImage_id() { + return this.image_id != null; } - public void setUniversityIsSet(boolean value) { + public void setImage_idIsSet(boolean value) { if (!value) { - this.university = null; + this.image_id = null; + } + } + + public String getVersion() { + return this.version; + } + + public getPathOfImage_args setVersion(String version) { + this.version = version; + return this; + } + + public void unsetVersion() { + this.version = null; + } + + /** Returns true if field version is set (has been assigned a value) and false otherwise */ + public boolean isSetVersion() { + return this.version != null; + } + + public void setVersionIsSet(boolean value) { + if (!value) { + this.version = null; + } + } + + public String getToken() { + return this.token; + } + + public getPathOfImage_args setToken(String token) { + this.token = token; + return this; + } + + public void unsetToken() { + this.token = null; + } + + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; + } + + public void setTokenIsSet(boolean value) { + if (!value) { + this.token = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case UNIVERSITY: + case IMAGE_ID: if (value == null) { - unsetUniversity(); + unsetImage_id(); } else { - setUniversity((String)value); + setImage_id((String)value); + } + break; + + case VERSION: + if (value == null) { + unsetVersion(); + } else { + setVersion((String)value); + } + break; + + case TOKEN: + if (value == null) { + unsetToken(); + } else { + setToken((String)value); } break; @@ -9599,8 +10241,14 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case UNIVERSITY: - return getUniversity(); + case IMAGE_ID: + return getImage_id(); + + case VERSION: + return getVersion(); + + case TOKEN: + return getToken(); } throw new IllegalStateException(); @@ -9613,8 +10261,12 @@ public class Server { } switch (field) { - case UNIVERSITY: - return isSetUniversity(); + case IMAGE_ID: + return isSetImage_id(); + case VERSION: + return isSetVersion(); + case TOKEN: + return isSetToken(); } throw new IllegalStateException(); } @@ -9623,21 +10275,39 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof setInstitution_args) - return this.equals((setInstitution_args)that); + if (that instanceof getPathOfImage_args) + return this.equals((getPathOfImage_args)that); return false; } - public boolean equals(setInstitution_args that) { + public boolean equals(getPathOfImage_args that) { if (that == null) return false; - boolean this_present_university = true && this.isSetUniversity(); - boolean that_present_university = true && that.isSetUniversity(); - if (this_present_university || that_present_university) { - if (!(this_present_university && that_present_university)) + boolean this_present_image_id = true && this.isSetImage_id(); + boolean that_present_image_id = true && that.isSetImage_id(); + if (this_present_image_id || that_present_image_id) { + if (!(this_present_image_id && that_present_image_id)) return false; - if (!this.university.equals(that.university)) + if (!this.image_id.equals(that.image_id)) + return false; + } + + boolean this_present_version = true && this.isSetVersion(); + boolean that_present_version = true && that.isSetVersion(); + if (this_present_version || that_present_version) { + if (!(this_present_version && that_present_version)) + return false; + if (!this.version.equals(that.version)) + return false; + } + + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) + return false; + if (!this.token.equals(that.token)) return false; } @@ -9650,19 +10320,39 @@ public class Server { } @Override - public int compareTo(setInstitution_args other) { + public int compareTo(getPathOfImage_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUniversity()).compareTo(other.isSetUniversity()); + lastComparison = Boolean.valueOf(isSetImage_id()).compareTo(other.isSetImage_id()); if (lastComparison != 0) { return lastComparison; } - if (isSetUniversity()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.university, other.university); + if (isSetImage_id()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.image_id, other.image_id); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetVersion()).compareTo(other.isSetVersion()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetVersion()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.version, other.version); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) { return lastComparison; } @@ -9684,14 +10374,30 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("setInstitution_args("); + StringBuilder sb = new StringBuilder("getPathOfImage_args("); boolean first = true; - sb.append("university:"); - if (this.university == null) { + sb.append("image_id:"); + if (this.image_id == null) { sb.append("null"); } else { - sb.append(this.university); + sb.append(this.image_id); + } + first = false; + if (!first) sb.append(", "); + sb.append("version:"); + if (this.version == null) { + sb.append("null"); + } else { + sb.append(this.version); + } + first = false; + if (!first) sb.append(", "); + sb.append("token:"); + if (this.token == null) { + sb.append("null"); + } else { + sb.append(this.token); } first = false; sb.append(")"); @@ -9719,15 +10425,15 @@ public class Server { } } - private static class setInstitution_argsStandardSchemeFactory implements SchemeFactory { - public setInstitution_argsStandardScheme getScheme() { - return new setInstitution_argsStandardScheme(); + private static class getPathOfImage_argsStandardSchemeFactory implements SchemeFactory { + public getPathOfImage_argsStandardScheme getScheme() { + return new getPathOfImage_argsStandardScheme(); } } - private static class setInstitution_argsStandardScheme extends StandardScheme { + private static class getPathOfImage_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, setInstitution_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getPathOfImage_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -9737,10 +10443,26 @@ public class Server { break; } switch (schemeField.id) { - case 1: // UNIVERSITY + case 1: // IMAGE_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.university = iprot.readString(); - struct.setUniversityIsSet(true); + struct.image_id = iprot.readString(); + struct.setImage_idIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // VERSION + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.version = iprot.readString(); + struct.setVersionIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TOKEN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -9756,13 +10478,23 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, setInstitution_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getPathOfImage_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.university != null) { - oprot.writeFieldBegin(UNIVERSITY_FIELD_DESC); - oprot.writeString(struct.university); + if (struct.image_id != null) { + oprot.writeFieldBegin(IMAGE_ID_FIELD_DESC); + oprot.writeString(struct.image_id); + oprot.writeFieldEnd(); + } + if (struct.version != null) { + oprot.writeFieldBegin(VERSION_FIELD_DESC); + oprot.writeString(struct.version); + oprot.writeFieldEnd(); + } + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -9771,49 +10503,69 @@ public class Server { } - private static class setInstitution_argsTupleSchemeFactory implements SchemeFactory { - public setInstitution_argsTupleScheme getScheme() { - return new setInstitution_argsTupleScheme(); + private static class getPathOfImage_argsTupleSchemeFactory implements SchemeFactory { + public getPathOfImage_argsTupleScheme getScheme() { + return new getPathOfImage_argsTupleScheme(); } } - private static class setInstitution_argsTupleScheme extends TupleScheme { + private static class getPathOfImage_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, setInstitution_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getPathOfImage_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetUniversity()) { + if (struct.isSetImage_id()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetUniversity()) { - oprot.writeString(struct.university); + if (struct.isSetVersion()) { + optionals.set(1); + } + if (struct.isSetToken()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetImage_id()) { + oprot.writeString(struct.image_id); + } + if (struct.isSetVersion()) { + oprot.writeString(struct.version); + } + if (struct.isSetToken()) { + oprot.writeString(struct.token); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, setInstitution_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getPathOfImage_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.university = iprot.readString(); - struct.setUniversityIsSet(true); + struct.image_id = iprot.readString(); + struct.setImage_idIsSet(true); + } + if (incoming.get(1)) { + struct.version = iprot.readString(); + struct.setVersionIsSet(true); + } + if (incoming.get(2)) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } } } } - public static class setInstitution_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("setInstitution_result"); + public static class getPathOfImage_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("getPathOfImage_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new setInstitution_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new setInstitution_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getPathOfImage_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getPathOfImage_resultTupleSchemeFactory()); } public String success; // required @@ -9883,13 +10635,13 @@ public class Server { tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setInstitution_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPathOfImage_result.class, metaDataMap); } - public setInstitution_result() { + public getPathOfImage_result() { } - public setInstitution_result( + public getPathOfImage_result( String success) { this(); @@ -9899,14 +10651,14 @@ public class Server { /** * Performs a deep copy on other. */ - public setInstitution_result(setInstitution_result other) { + public getPathOfImage_result(getPathOfImage_result other) { if (other.isSetSuccess()) { this.success = other.success; } } - public setInstitution_result deepCopy() { - return new setInstitution_result(this); + public getPathOfImage_result deepCopy() { + return new getPathOfImage_result(this); } @Override @@ -9918,7 +10670,7 @@ public class Server { return this.success; } - public setInstitution_result setSuccess(String success) { + public getPathOfImage_result setSuccess(String success) { this.success = success; return this; } @@ -9977,12 +10729,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof setInstitution_result) - return this.equals((setInstitution_result)that); + if (that instanceof getPathOfImage_result) + return this.equals((getPathOfImage_result)that); return false; } - public boolean equals(setInstitution_result that) { + public boolean equals(getPathOfImage_result that) { if (that == null) return false; @@ -10004,7 +10756,7 @@ public class Server { } @Override - public int compareTo(setInstitution_result other) { + public int compareTo(getPathOfImage_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -10038,7 +10790,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("setInstitution_result("); + StringBuilder sb = new StringBuilder("getPathOfImage_result("); boolean first = true; sb.append("success:"); @@ -10073,15 +10825,15 @@ public class Server { } } - private static class setInstitution_resultStandardSchemeFactory implements SchemeFactory { - public setInstitution_resultStandardScheme getScheme() { - return new setInstitution_resultStandardScheme(); + private static class getPathOfImage_resultStandardSchemeFactory implements SchemeFactory { + public getPathOfImage_resultStandardScheme getScheme() { + return new getPathOfImage_resultStandardScheme(); } } - private static class setInstitution_resultStandardScheme extends StandardScheme { + private static class getPathOfImage_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, setInstitution_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getPathOfImage_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -10110,7 +10862,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, setInstitution_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getPathOfImage_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -10125,16 +10877,16 @@ public class Server { } - private static class setInstitution_resultTupleSchemeFactory implements SchemeFactory { - public setInstitution_resultTupleScheme getScheme() { - return new setInstitution_resultTupleScheme(); + private static class getPathOfImage_resultTupleSchemeFactory implements SchemeFactory { + public getPathOfImage_resultTupleScheme getScheme() { + return new getPathOfImage_resultTupleScheme(); } } - private static class setInstitution_resultTupleScheme extends TupleScheme { + private static class getPathOfImage_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, setInstitution_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getPathOfImage_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -10147,7 +10899,7 @@ public class Server { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, setInstitution_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getPathOfImage_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -10159,76 +10911,25 @@ public class Server { } - public static class writeVLdata_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("writeVLdata_args"); + public static class setInstitution_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("setInstitution_args"); - private static final org.apache.thrift.protocol.TField IMAGENAME_FIELD_DESC = new org.apache.thrift.protocol.TField("imagename", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField DESC_FIELD_DESC = new org.apache.thrift.protocol.TField("desc", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField LOGIN_FIELD_DESC = new org.apache.thrift.protocol.TField("login", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final org.apache.thrift.protocol.TField FIRSTNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("firstname", org.apache.thrift.protocol.TType.STRING, (short)4); - private static final org.apache.thrift.protocol.TField LASTNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lastname", org.apache.thrift.protocol.TType.STRING, (short)5); - private static final org.apache.thrift.protocol.TField UNIVERSITY_FIELD_DESC = new org.apache.thrift.protocol.TField("university", org.apache.thrift.protocol.TType.STRING, (short)6); - private static final org.apache.thrift.protocol.TField MAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("Mail", org.apache.thrift.protocol.TType.STRING, (short)7); - private static final org.apache.thrift.protocol.TField TEL_FIELD_DESC = new org.apache.thrift.protocol.TField("Tel", org.apache.thrift.protocol.TType.STRING, (short)8); - private static final org.apache.thrift.protocol.TField FAK_FIELD_DESC = new org.apache.thrift.protocol.TField("Fak", org.apache.thrift.protocol.TType.STRING, (short)9); - private static final org.apache.thrift.protocol.TField LICENSE_FIELD_DESC = new org.apache.thrift.protocol.TField("license", org.apache.thrift.protocol.TType.BOOL, (short)10); - private static final org.apache.thrift.protocol.TField INTERNET_FIELD_DESC = new org.apache.thrift.protocol.TField("internet", org.apache.thrift.protocol.TType.BOOL, (short)11); - private static final org.apache.thrift.protocol.TField RAM_FIELD_DESC = new org.apache.thrift.protocol.TField("ram", org.apache.thrift.protocol.TType.I64, (short)12); - private static final org.apache.thrift.protocol.TField CPU_FIELD_DESC = new org.apache.thrift.protocol.TField("cpu", org.apache.thrift.protocol.TType.I64, (short)13); - private static final org.apache.thrift.protocol.TField IMAGE_PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("imagePath", org.apache.thrift.protocol.TType.STRING, (short)14); - private static final org.apache.thrift.protocol.TField IS_TEMPLATE_FIELD_DESC = new org.apache.thrift.protocol.TField("isTemplate", org.apache.thrift.protocol.TType.BOOL, (short)15); - private static final org.apache.thrift.protocol.TField FILESIZE_FIELD_DESC = new org.apache.thrift.protocol.TField("filesize", org.apache.thrift.protocol.TType.I64, (short)16); - private static final org.apache.thrift.protocol.TField SHARE_MODE_FIELD_DESC = new org.apache.thrift.protocol.TField("shareMode", org.apache.thrift.protocol.TType.I64, (short)17); - private static final org.apache.thrift.protocol.TField OS_FIELD_DESC = new org.apache.thrift.protocol.TField("os", org.apache.thrift.protocol.TType.STRING, (short)18); - private static final org.apache.thrift.protocol.TField UID_FIELD_DESC = new org.apache.thrift.protocol.TField("uid", org.apache.thrift.protocol.TType.STRING, (short)19); + private static final org.apache.thrift.protocol.TField UNIVERSITY_FIELD_DESC = new org.apache.thrift.protocol.TField("university", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new writeVLdata_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new writeVLdata_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new setInstitution_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new setInstitution_argsTupleSchemeFactory()); } - public String imagename; // required - public String desc; // required - public String login; // required - public String firstname; // required - public String lastname; // required public String university; // required - public String Mail; // required - public String Tel; // required - public String Fak; // required - public boolean license; // required - public boolean internet; // required - public long ram; // required - public long cpu; // required - public String imagePath; // required - public boolean isTemplate; // required - public long filesize; // required - public long shareMode; // required - public String os; // required - public String uid; // required + public String token; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - IMAGENAME((short)1, "imagename"), - DESC((short)2, "desc"), - LOGIN((short)3, "login"), - FIRSTNAME((short)4, "firstname"), - LASTNAME((short)5, "lastname"), - UNIVERSITY((short)6, "university"), - MAIL((short)7, "Mail"), - TEL((short)8, "Tel"), - FAK((short)9, "Fak"), - LICENSE((short)10, "license"), - INTERNET((short)11, "internet"), - RAM((short)12, "ram"), - CPU((short)13, "cpu"), - IMAGE_PATH((short)14, "imagePath"), - IS_TEMPLATE((short)15, "isTemplate"), - FILESIZE((short)16, "filesize"), - SHARE_MODE((short)17, "shareMode"), - OS((short)18, "os"), - UID((short)19, "uid"); + UNIVERSITY((short)1, "university"), + TOKEN((short)2, "token"); private static final Map byName = new HashMap(); @@ -10243,44 +10944,10 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // IMAGENAME - return IMAGENAME; - case 2: // DESC - return DESC; - case 3: // LOGIN - return LOGIN; - case 4: // FIRSTNAME - return FIRSTNAME; - case 5: // LASTNAME - return LASTNAME; - case 6: // UNIVERSITY + case 1: // UNIVERSITY return UNIVERSITY; - case 7: // MAIL - return MAIL; - case 8: // TEL - return TEL; - case 9: // FAK - return FAK; - case 10: // LICENSE - return LICENSE; - case 11: // INTERNET - return INTERNET; - case 12: // RAM - return RAM; - case 13: // CPU - return CPU; - case 14: // IMAGE_PATH - return IMAGE_PATH; - case 15: // IS_TEMPLATE - return IS_TEMPLATE; - case 16: // FILESIZE - return FILESIZE; - case 17: // SHARE_MODE - return SHARE_MODE; - case 18: // OS - return OS; - case 19: // UID - return UID; + case 2: // TOKEN + return TOKEN; default: return null; } @@ -10321,1095 +10988,3153 @@ public class Server { } // isset id assignments - private static final int __LICENSE_ISSET_ID = 0; - private static final int __INTERNET_ISSET_ID = 1; - private static final int __RAM_ISSET_ID = 2; - private static final int __CPU_ISSET_ID = 3; - private static final int __ISTEMPLATE_ISSET_ID = 4; - private static final int __FILESIZE_ISSET_ID = 5; - private static final int __SHAREMODE_ISSET_ID = 6; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.IMAGENAME, new org.apache.thrift.meta_data.FieldMetaData("imagename", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.DESC, new org.apache.thrift.meta_data.FieldMetaData("desc", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.LOGIN, new org.apache.thrift.meta_data.FieldMetaData("login", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.FIRSTNAME, new org.apache.thrift.meta_data.FieldMetaData("firstname", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.LASTNAME, new org.apache.thrift.meta_data.FieldMetaData("lastname", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.UNIVERSITY, new org.apache.thrift.meta_data.FieldMetaData("university", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("Mail", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TEL, new org.apache.thrift.meta_data.FieldMetaData("Tel", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.FAK, new org.apache.thrift.meta_data.FieldMetaData("Fak", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.LICENSE, new org.apache.thrift.meta_data.FieldMetaData("license", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - tmpMap.put(_Fields.INTERNET, new org.apache.thrift.meta_data.FieldMetaData("internet", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - tmpMap.put(_Fields.RAM, new org.apache.thrift.meta_data.FieldMetaData("ram", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "int"))); - tmpMap.put(_Fields.CPU, new org.apache.thrift.meta_data.FieldMetaData("cpu", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "int"))); - tmpMap.put(_Fields.IMAGE_PATH, new org.apache.thrift.meta_data.FieldMetaData("imagePath", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.IS_TEMPLATE, new org.apache.thrift.meta_data.FieldMetaData("isTemplate", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - tmpMap.put(_Fields.FILESIZE, new org.apache.thrift.meta_data.FieldMetaData("filesize", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); - tmpMap.put(_Fields.SHARE_MODE, new org.apache.thrift.meta_data.FieldMetaData("shareMode", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "int"))); - tmpMap.put(_Fields.OS, new org.apache.thrift.meta_data.FieldMetaData("os", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.UID, new org.apache.thrift.meta_data.FieldMetaData("uid", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeVLdata_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setInstitution_args.class, metaDataMap); } - public writeVLdata_args() { + public setInstitution_args() { } - public writeVLdata_args( - String imagename, - String desc, - String login, - String firstname, - String lastname, + public setInstitution_args( String university, - String Mail, - String Tel, - String Fak, - boolean license, - boolean internet, - long ram, - long cpu, - String imagePath, - boolean isTemplate, - long filesize, - long shareMode, - String os, - String uid) + String token) { this(); - this.imagename = imagename; - this.desc = desc; - this.login = login; - this.firstname = firstname; - this.lastname = lastname; this.university = university; - this.Mail = Mail; - this.Tel = Tel; - this.Fak = Fak; - this.license = license; - setLicenseIsSet(true); - this.internet = internet; - setInternetIsSet(true); - this.ram = ram; - setRamIsSet(true); - this.cpu = cpu; - setCpuIsSet(true); - this.imagePath = imagePath; - this.isTemplate = isTemplate; - setIsTemplateIsSet(true); - this.filesize = filesize; - setFilesizeIsSet(true); - this.shareMode = shareMode; - setShareModeIsSet(true); - this.os = os; - this.uid = uid; + this.token = token; } /** * Performs a deep copy on other. */ - public writeVLdata_args(writeVLdata_args other) { - __isset_bitfield = other.__isset_bitfield; - if (other.isSetImagename()) { - this.imagename = other.imagename; - } - if (other.isSetDesc()) { - this.desc = other.desc; - } - if (other.isSetLogin()) { - this.login = other.login; - } - if (other.isSetFirstname()) { - this.firstname = other.firstname; - } - if (other.isSetLastname()) { - this.lastname = other.lastname; - } + public setInstitution_args(setInstitution_args other) { if (other.isSetUniversity()) { this.university = other.university; } - if (other.isSetMail()) { - this.Mail = other.Mail; - } - if (other.isSetTel()) { - this.Tel = other.Tel; - } - if (other.isSetFak()) { - this.Fak = other.Fak; - } - this.license = other.license; - this.internet = other.internet; - this.ram = other.ram; - this.cpu = other.cpu; - if (other.isSetImagePath()) { - this.imagePath = other.imagePath; - } - this.isTemplate = other.isTemplate; - this.filesize = other.filesize; - this.shareMode = other.shareMode; - if (other.isSetOs()) { - this.os = other.os; - } - if (other.isSetUid()) { - this.uid = other.uid; + if (other.isSetToken()) { + this.token = other.token; } } - public writeVLdata_args deepCopy() { - return new writeVLdata_args(this); + public setInstitution_args deepCopy() { + return new setInstitution_args(this); } @Override public void clear() { - this.imagename = null; - this.desc = null; - this.login = null; - this.firstname = null; - this.lastname = null; this.university = null; - this.Mail = null; - this.Tel = null; - this.Fak = null; - setLicenseIsSet(false); - this.license = false; - setInternetIsSet(false); - this.internet = false; - setRamIsSet(false); - this.ram = 0; - setCpuIsSet(false); - this.cpu = 0; - this.imagePath = null; - setIsTemplateIsSet(false); - this.isTemplate = false; - setFilesizeIsSet(false); - this.filesize = 0; - setShareModeIsSet(false); - this.shareMode = 0; - this.os = null; - this.uid = null; + this.token = null; } - public String getImagename() { - return this.imagename; + public String getUniversity() { + return this.university; } - public writeVLdata_args setImagename(String imagename) { - this.imagename = imagename; + public setInstitution_args setUniversity(String university) { + this.university = university; return this; } - public void unsetImagename() { - this.imagename = null; + public void unsetUniversity() { + this.university = null; } - /** Returns true if field imagename is set (has been assigned a value) and false otherwise */ - public boolean isSetImagename() { - return this.imagename != null; + /** Returns true if field university is set (has been assigned a value) and false otherwise */ + public boolean isSetUniversity() { + return this.university != null; } - public void setImagenameIsSet(boolean value) { + public void setUniversityIsSet(boolean value) { if (!value) { - this.imagename = null; + this.university = null; } } - public String getDesc() { - return this.desc; + public String getToken() { + return this.token; } - public writeVLdata_args setDesc(String desc) { - this.desc = desc; + public setInstitution_args setToken(String token) { + this.token = token; return this; } - public void unsetDesc() { - this.desc = null; + public void unsetToken() { + this.token = null; } - /** Returns true if field desc is set (has been assigned a value) and false otherwise */ - public boolean isSetDesc() { - return this.desc != null; + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; } - public void setDescIsSet(boolean value) { + public void setTokenIsSet(boolean value) { if (!value) { - this.desc = null; + this.token = null; } } - public String getLogin() { - return this.login; - } + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case UNIVERSITY: + if (value == null) { + unsetUniversity(); + } else { + setUniversity((String)value); + } + break; - public writeVLdata_args setLogin(String login) { - this.login = login; - return this; - } + case TOKEN: + if (value == null) { + unsetToken(); + } else { + setToken((String)value); + } + break; - public void unsetLogin() { - this.login = null; + } } - /** Returns true if field login is set (has been assigned a value) and false otherwise */ - public boolean isSetLogin() { - return this.login != null; - } + public Object getFieldValue(_Fields field) { + switch (field) { + case UNIVERSITY: + return getUniversity(); + + case TOKEN: + return getToken(); - public void setLoginIsSet(boolean value) { - if (!value) { - this.login = null; } + throw new IllegalStateException(); } - public String getFirstname() { - return this.firstname; - } + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } - public writeVLdata_args setFirstname(String firstname) { - this.firstname = firstname; - return this; + switch (field) { + case UNIVERSITY: + return isSetUniversity(); + case TOKEN: + return isSetToken(); + } + throw new IllegalStateException(); } - public void unsetFirstname() { - this.firstname = null; + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof setInstitution_args) + return this.equals((setInstitution_args)that); + return false; } - /** Returns true if field firstname is set (has been assigned a value) and false otherwise */ - public boolean isSetFirstname() { - return this.firstname != null; - } + public boolean equals(setInstitution_args that) { + if (that == null) + return false; - public void setFirstnameIsSet(boolean value) { - if (!value) { - this.firstname = null; + boolean this_present_university = true && this.isSetUniversity(); + boolean that_present_university = true && that.isSetUniversity(); + if (this_present_university || that_present_university) { + if (!(this_present_university && that_present_university)) + return false; + if (!this.university.equals(that.university)) + return false; } - } - public String getLastname() { - return this.lastname; - } + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) + return false; + if (!this.token.equals(that.token)) + return false; + } - public writeVLdata_args setLastname(String lastname) { - this.lastname = lastname; - return this; + return true; } - public void unsetLastname() { - this.lastname = null; + @Override + public int hashCode() { + return 0; } - /** Returns true if field lastname is set (has been assigned a value) and false otherwise */ - public boolean isSetLastname() { - return this.lastname != null; - } + @Override + public int compareTo(setInstitution_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } - public void setLastnameIsSet(boolean value) { - if (!value) { - this.lastname = null; + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetUniversity()).compareTo(other.isSetUniversity()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUniversity()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.university, other.university); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); + if (lastComparison != 0) { + return lastComparison; + } } + return 0; } - public String getUniversity() { - return this.university; + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); } - public writeVLdata_args setUniversity(String university) { - this.university = university; - return this; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } - public void unsetUniversity() { - this.university = null; + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } - /** Returns true if field university is set (has been assigned a value) and false otherwise */ - public boolean isSetUniversity() { - return this.university != null; - } + @Override + public String toString() { + StringBuilder sb = new StringBuilder("setInstitution_args("); + boolean first = true; - public void setUniversityIsSet(boolean value) { - if (!value) { - this.university = null; + sb.append("university:"); + if (this.university == null) { + sb.append("null"); + } else { + sb.append(this.university); } + first = false; + if (!first) sb.append(", "); + sb.append("token:"); + if (this.token == null) { + sb.append("null"); + } else { + sb.append(this.token); + } + first = false; + sb.append(")"); + return sb.toString(); } - public String getMail() { - return this.Mail; - } - - public writeVLdata_args setMail(String Mail) { - this.Mail = Mail; - return this; + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity } - public void unsetMail() { - this.Mail = null; + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } } - /** Returns true if field Mail is set (has been assigned a value) and false otherwise */ - public boolean isSetMail() { - return this.Mail != null; + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } } - public void setMailIsSet(boolean value) { - if (!value) { - this.Mail = null; + private static class setInstitution_argsStandardSchemeFactory implements SchemeFactory { + public setInstitution_argsStandardScheme getScheme() { + return new setInstitution_argsStandardScheme(); } } - public String getTel() { - return this.Tel; - } + private static class setInstitution_argsStandardScheme extends StandardScheme { - public writeVLdata_args setTel(String Tel) { - this.Tel = Tel; - return this; - } + public void read(org.apache.thrift.protocol.TProtocol iprot, setInstitution_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // UNIVERSITY + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.university = iprot.readString(); + struct.setUniversityIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TOKEN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); - public void unsetTel() { - this.Tel = null; - } + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } - /** Returns true if field Tel is set (has been assigned a value) and false otherwise */ - public boolean isSetTel() { - return this.Tel != null; - } + public void write(org.apache.thrift.protocol.TProtocol oprot, setInstitution_args struct) throws org.apache.thrift.TException { + struct.validate(); - public void setTelIsSet(boolean value) { - if (!value) { - this.Tel = null; + oprot.writeStructBegin(STRUCT_DESC); + if (struct.university != null) { + oprot.writeFieldBegin(UNIVERSITY_FIELD_DESC); + oprot.writeString(struct.university); + oprot.writeFieldEnd(); + } + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); } + } - public String getFak() { - return this.Fak; + private static class setInstitution_argsTupleSchemeFactory implements SchemeFactory { + public setInstitution_argsTupleScheme getScheme() { + return new setInstitution_argsTupleScheme(); + } } - public writeVLdata_args setFak(String Fak) { - this.Fak = Fak; - return this; - } - - public void unsetFak() { - this.Fak = null; - } + private static class setInstitution_argsTupleScheme extends TupleScheme { - /** Returns true if field Fak is set (has been assigned a value) and false otherwise */ - public boolean isSetFak() { - return this.Fak != null; - } + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, setInstitution_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetUniversity()) { + optionals.set(0); + } + if (struct.isSetToken()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetUniversity()) { + oprot.writeString(struct.university); + } + if (struct.isSetToken()) { + oprot.writeString(struct.token); + } + } - public void setFakIsSet(boolean value) { - if (!value) { - this.Fak = null; + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, setInstitution_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.university = iprot.readString(); + struct.setUniversityIsSet(true); + } + if (incoming.get(1)) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } } } - public boolean isLicense() { - return this.license; - } + } - public writeVLdata_args setLicense(boolean license) { - this.license = license; - setLicenseIsSet(true); - return this; - } + public static class setInstitution_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("setInstitution_result"); - public void unsetLicense() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LICENSE_ISSET_ID); - } + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); - /** Returns true if field license is set (has been assigned a value) and false otherwise */ - public boolean isSetLicense() { - return EncodingUtils.testBit(__isset_bitfield, __LICENSE_ISSET_ID); + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new setInstitution_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new setInstitution_resultTupleSchemeFactory()); } - public void setLicenseIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LICENSE_ISSET_ID, value); - } + public String success; // required - public boolean isInternet() { - return this.internet; - } + /** 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"); - public writeVLdata_args setInternet(boolean internet) { - this.internet = internet; - setInternetIsSet(true); - return this; - } + private static final Map byName = new HashMap(); - public void unsetInternet() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __INTERNET_ISSET_ID); - } + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } - /** Returns true if field internet is set (has been assigned a value) and false otherwise */ - public boolean isSetInternet() { - return EncodingUtils.testBit(__isset_bitfield, __INTERNET_ISSET_ID); - } + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + default: + return null; + } + } - public void setInternetIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __INTERNET_ISSET_ID, value); - } + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } - public long getRam() { - return this.ram; - } + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } - public writeVLdata_args setRam(long ram) { - this.ram = ram; - setRamIsSet(true); - return this; - } + private final short _thriftId; + private final String _fieldName; - public void unsetRam() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RAM_ISSET_ID); - } + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } - /** Returns true if field ram is set (has been assigned a value) and false otherwise */ - public boolean isSetRam() { - return EncodingUtils.testBit(__isset_bitfield, __RAM_ISSET_ID); + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } } - public void setRamIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RAM_ISSET_ID, value); + // 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.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setInstitution_result.class, metaDataMap); } - public long getCpu() { - return this.cpu; + public setInstitution_result() { } - public writeVLdata_args setCpu(long cpu) { - this.cpu = cpu; - setCpuIsSet(true); - return this; + public setInstitution_result( + String success) + { + this(); + this.success = success; } - public void unsetCpu() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __CPU_ISSET_ID); + /** + * Performs a deep copy on other. + */ + public setInstitution_result(setInstitution_result other) { + if (other.isSetSuccess()) { + this.success = other.success; + } } - /** Returns true if field cpu is set (has been assigned a value) and false otherwise */ - public boolean isSetCpu() { - return EncodingUtils.testBit(__isset_bitfield, __CPU_ISSET_ID); + public setInstitution_result deepCopy() { + return new setInstitution_result(this); } - public void setCpuIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CPU_ISSET_ID, value); + @Override + public void clear() { + this.success = null; } - public String getImagePath() { - return this.imagePath; + public String getSuccess() { + return this.success; } - public writeVLdata_args setImagePath(String imagePath) { - this.imagePath = imagePath; + public setInstitution_result setSuccess(String success) { + this.success = success; return this; } - public void unsetImagePath() { - this.imagePath = null; + public void unsetSuccess() { + this.success = null; } - /** Returns true if field imagePath is set (has been assigned a value) and false otherwise */ - public boolean isSetImagePath() { - return this.imagePath != 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 setImagePathIsSet(boolean value) { + public void setSuccessIsSet(boolean value) { if (!value) { - this.imagePath = null; + this.success = null; } } - public boolean isIsTemplate() { - return this.isTemplate; - } + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((String)value); + } + break; - public writeVLdata_args setIsTemplate(boolean isTemplate) { - this.isTemplate = isTemplate; - setIsTemplateIsSet(true); - return this; + } } - public void unsetIsTemplate() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISTEMPLATE_ISSET_ID); - } + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); - /** Returns true if field isTemplate is set (has been assigned a value) and false otherwise */ - public boolean isSetIsTemplate() { - return EncodingUtils.testBit(__isset_bitfield, __ISTEMPLATE_ISSET_ID); + } + throw new IllegalStateException(); } - public void setIsTemplateIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISTEMPLATE_ISSET_ID, value); - } + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } - public long getFilesize() { - return this.filesize; + switch (field) { + case SUCCESS: + return isSetSuccess(); + } + throw new IllegalStateException(); } - public writeVLdata_args setFilesize(long filesize) { - this.filesize = filesize; - setFilesizeIsSet(true); - return this; + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof setInstitution_result) + return this.equals((setInstitution_result)that); + return false; } - public void unsetFilesize() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FILESIZE_ISSET_ID); - } + public boolean equals(setInstitution_result that) { + if (that == null) + return false; - /** Returns true if field filesize is set (has been assigned a value) and false otherwise */ - public boolean isSetFilesize() { - return EncodingUtils.testBit(__isset_bitfield, __FILESIZE_ISSET_ID); - } + 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; + } - public void setFilesizeIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FILESIZE_ISSET_ID, value); + return true; } - public long getShareMode() { - return this.shareMode; + @Override + public int hashCode() { + return 0; } - public writeVLdata_args setShareMode(long shareMode) { - this.shareMode = shareMode; - setShareModeIsSet(true); - return this; - } + @Override + public int compareTo(setInstitution_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } - public void unsetShareMode() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SHAREMODE_ISSET_ID); - } + int lastComparison = 0; - /** Returns true if field shareMode is set (has been assigned a value) and false otherwise */ - public boolean isSetShareMode() { - return EncodingUtils.testBit(__isset_bitfield, __SHAREMODE_ISSET_ID); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; } - public void setShareModeIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SHAREMODE_ISSET_ID, value); + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); } - public String getOs() { - return this.os; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } - public writeVLdata_args setOs(String os) { - this.os = os; - return this; - } + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } - public void unsetOs() { - this.os = null; + @Override + public String toString() { + StringBuilder sb = new StringBuilder("setInstitution_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(); } - /** Returns true if field os is set (has been assigned a value) and false otherwise */ - public boolean isSetOs() { - return this.os != null; + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity } - public void setOsIsSet(boolean value) { - if (!value) { - this.os = null; + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); } } - public String getUid() { - return this.uid; + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } } - public writeVLdata_args setUid(String uid) { - this.uid = uid; - return this; + private static class setInstitution_resultStandardSchemeFactory implements SchemeFactory { + public setInstitution_resultStandardScheme getScheme() { + return new setInstitution_resultStandardScheme(); + } } - public void unsetUid() { - this.uid = null; - } + private static class setInstitution_resultStandardScheme extends StandardScheme { - /** Returns true if field uid is set (has been assigned a value) and false otherwise */ - public boolean isSetUid() { - return this.uid != null; - } + public void read(org.apache.thrift.protocol.TProtocol iprot, setInstitution_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.STRING) { + struct.success = iprot.readString(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); - public void setUidIsSet(boolean value) { - if (!value) { - this.uid = null; + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); } - } - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case IMAGENAME: - if (value == null) { - unsetImagename(); - } else { - setImagename((String)value); - } - break; + public void write(org.apache.thrift.protocol.TProtocol oprot, setInstitution_result struct) throws org.apache.thrift.TException { + struct.validate(); - case DESC: - if (value == null) { - unsetDesc(); - } else { - setDesc((String)value); + oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeString(struct.success); + oprot.writeFieldEnd(); } - break; + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } - case LOGIN: - if (value == null) { - unsetLogin(); - } else { - setLogin((String)value); - } - break; + } - case FIRSTNAME: - if (value == null) { - unsetFirstname(); - } else { - setFirstname((String)value); - } - break; + private static class setInstitution_resultTupleSchemeFactory implements SchemeFactory { + public setInstitution_resultTupleScheme getScheme() { + return new setInstitution_resultTupleScheme(); + } + } - case LASTNAME: - if (value == null) { - unsetLastname(); - } else { - setLastname((String)value); - } - break; + private static class setInstitution_resultTupleScheme extends TupleScheme { - case UNIVERSITY: - if (value == null) { - unsetUniversity(); - } else { - setUniversity((String)value); + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, setInstitution_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); } - break; - - case MAIL: - if (value == null) { - unsetMail(); - } else { - setMail((String)value); + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + oprot.writeString(struct.success); } - break; + } - case TEL: - if (value == null) { - unsetTel(); - } else { - setTel((String)value); + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, setInstitution_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.success = iprot.readString(); + struct.setSuccessIsSet(true); } - break; + } + } - case FAK: - if (value == null) { - unsetFak(); - } else { - setFak((String)value); - } - break; + } - case LICENSE: - if (value == null) { - unsetLicense(); - } else { + public static class writeVLdata_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("writeVLdata_args"); + + private static final org.apache.thrift.protocol.TField IMAGENAME_FIELD_DESC = new org.apache.thrift.protocol.TField("imagename", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField DESC_FIELD_DESC = new org.apache.thrift.protocol.TField("desc", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField TEL_FIELD_DESC = new org.apache.thrift.protocol.TField("Tel", org.apache.thrift.protocol.TType.STRING, (short)8); + private static final org.apache.thrift.protocol.TField FAK_FIELD_DESC = new org.apache.thrift.protocol.TField("Fak", org.apache.thrift.protocol.TType.STRING, (short)9); + private static final org.apache.thrift.protocol.TField LICENSE_FIELD_DESC = new org.apache.thrift.protocol.TField("license", org.apache.thrift.protocol.TType.BOOL, (short)10); + private static final org.apache.thrift.protocol.TField INTERNET_FIELD_DESC = new org.apache.thrift.protocol.TField("internet", org.apache.thrift.protocol.TType.BOOL, (short)11); + private static final org.apache.thrift.protocol.TField RAM_FIELD_DESC = new org.apache.thrift.protocol.TField("ram", org.apache.thrift.protocol.TType.I64, (short)12); + private static final org.apache.thrift.protocol.TField CPU_FIELD_DESC = new org.apache.thrift.protocol.TField("cpu", org.apache.thrift.protocol.TType.I64, (short)13); + private static final org.apache.thrift.protocol.TField IMAGE_PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("imagePath", org.apache.thrift.protocol.TType.STRING, (short)14); + private static final org.apache.thrift.protocol.TField IS_TEMPLATE_FIELD_DESC = new org.apache.thrift.protocol.TField("isTemplate", org.apache.thrift.protocol.TType.BOOL, (short)15); + private static final org.apache.thrift.protocol.TField FILESIZE_FIELD_DESC = new org.apache.thrift.protocol.TField("filesize", org.apache.thrift.protocol.TType.I64, (short)16); + private static final org.apache.thrift.protocol.TField SHARE_MODE_FIELD_DESC = new org.apache.thrift.protocol.TField("shareMode", org.apache.thrift.protocol.TType.I64, (short)17); + private static final org.apache.thrift.protocol.TField OS_FIELD_DESC = new org.apache.thrift.protocol.TField("os", org.apache.thrift.protocol.TType.STRING, (short)18); + private static final org.apache.thrift.protocol.TField UID_FIELD_DESC = new org.apache.thrift.protocol.TField("uid", org.apache.thrift.protocol.TType.STRING, (short)19); + private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)20); + 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)21); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new writeVLdata_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeVLdata_argsTupleSchemeFactory()); + } + + public String imagename; // required + public String desc; // required + public String Tel; // required + public String Fak; // required + public boolean license; // required + public boolean internet; // required + public long ram; // required + public long cpu; // required + public String imagePath; // required + public boolean isTemplate; // required + public long filesize; // required + public long shareMode; // required + public String os; // required + public String uid; // required + public String token; // required + 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 { + IMAGENAME((short)1, "imagename"), + DESC((short)2, "desc"), + TEL((short)8, "Tel"), + FAK((short)9, "Fak"), + LICENSE((short)10, "license"), + INTERNET((short)11, "internet"), + RAM((short)12, "ram"), + CPU((short)13, "cpu"), + IMAGE_PATH((short)14, "imagePath"), + IS_TEMPLATE((short)15, "isTemplate"), + FILESIZE((short)16, "filesize"), + SHARE_MODE((short)17, "shareMode"), + OS((short)18, "os"), + UID((short)19, "uid"), + TOKEN((short)20, "token"), + USER_ID((short)21, "userID"); + + 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: // IMAGENAME + return IMAGENAME; + case 2: // DESC + return DESC; + case 8: // TEL + return TEL; + case 9: // FAK + return FAK; + case 10: // LICENSE + return LICENSE; + case 11: // INTERNET + return INTERNET; + case 12: // RAM + return RAM; + case 13: // CPU + return CPU; + case 14: // IMAGE_PATH + return IMAGE_PATH; + case 15: // IS_TEMPLATE + return IS_TEMPLATE; + case 16: // FILESIZE + return FILESIZE; + case 17: // SHARE_MODE + return SHARE_MODE; + case 18: // OS + return OS; + case 19: // UID + return UID; + case 20: // TOKEN + return TOKEN; + case 21: // USER_ID + return USER_ID; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __LICENSE_ISSET_ID = 0; + private static final int __INTERNET_ISSET_ID = 1; + private static final int __RAM_ISSET_ID = 2; + private static final int __CPU_ISSET_ID = 3; + private static final int __ISTEMPLATE_ISSET_ID = 4; + private static final int __FILESIZE_ISSET_ID = 5; + private static final int __SHAREMODE_ISSET_ID = 6; + private byte __isset_bitfield = 0; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.IMAGENAME, new org.apache.thrift.meta_data.FieldMetaData("imagename", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DESC, new org.apache.thrift.meta_data.FieldMetaData("desc", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TEL, new org.apache.thrift.meta_data.FieldMetaData("Tel", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.FAK, new org.apache.thrift.meta_data.FieldMetaData("Fak", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.LICENSE, new org.apache.thrift.meta_data.FieldMetaData("license", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.INTERNET, new org.apache.thrift.meta_data.FieldMetaData("internet", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.RAM, new org.apache.thrift.meta_data.FieldMetaData("ram", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "int"))); + tmpMap.put(_Fields.CPU, new org.apache.thrift.meta_data.FieldMetaData("cpu", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "int"))); + tmpMap.put(_Fields.IMAGE_PATH, new org.apache.thrift.meta_data.FieldMetaData("imagePath", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.IS_TEMPLATE, new org.apache.thrift.meta_data.FieldMetaData("isTemplate", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.FILESIZE, new org.apache.thrift.meta_data.FieldMetaData("filesize", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.SHARE_MODE, new org.apache.thrift.meta_data.FieldMetaData("shareMode", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "int"))); + tmpMap.put(_Fields.OS, new org.apache.thrift.meta_data.FieldMetaData("os", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.UID, new org.apache.thrift.meta_data.FieldMetaData("uid", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + 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(writeVLdata_args.class, metaDataMap); + } + + public writeVLdata_args() { + } + + public writeVLdata_args( + String imagename, + String desc, + String Tel, + String Fak, + boolean license, + boolean internet, + long ram, + long cpu, + String imagePath, + boolean isTemplate, + long filesize, + long shareMode, + String os, + String uid, + String token, + String userID) + { + this(); + this.imagename = imagename; + this.desc = desc; + this.Tel = Tel; + this.Fak = Fak; + this.license = license; + setLicenseIsSet(true); + this.internet = internet; + setInternetIsSet(true); + this.ram = ram; + setRamIsSet(true); + this.cpu = cpu; + setCpuIsSet(true); + this.imagePath = imagePath; + this.isTemplate = isTemplate; + setIsTemplateIsSet(true); + this.filesize = filesize; + setFilesizeIsSet(true); + this.shareMode = shareMode; + setShareModeIsSet(true); + this.os = os; + this.uid = uid; + this.token = token; + this.userID = userID; + } + + /** + * Performs a deep copy on other. + */ + public writeVLdata_args(writeVLdata_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetImagename()) { + this.imagename = other.imagename; + } + if (other.isSetDesc()) { + this.desc = other.desc; + } + if (other.isSetTel()) { + this.Tel = other.Tel; + } + if (other.isSetFak()) { + this.Fak = other.Fak; + } + this.license = other.license; + this.internet = other.internet; + this.ram = other.ram; + this.cpu = other.cpu; + if (other.isSetImagePath()) { + this.imagePath = other.imagePath; + } + this.isTemplate = other.isTemplate; + this.filesize = other.filesize; + this.shareMode = other.shareMode; + if (other.isSetOs()) { + this.os = other.os; + } + if (other.isSetUid()) { + this.uid = other.uid; + } + if (other.isSetToken()) { + this.token = other.token; + } + if (other.isSetUserID()) { + this.userID = other.userID; + } + } + + public writeVLdata_args deepCopy() { + return new writeVLdata_args(this); + } + + @Override + public void clear() { + this.imagename = null; + this.desc = null; + this.Tel = null; + this.Fak = null; + setLicenseIsSet(false); + this.license = false; + setInternetIsSet(false); + this.internet = false; + setRamIsSet(false); + this.ram = 0; + setCpuIsSet(false); + this.cpu = 0; + this.imagePath = null; + setIsTemplateIsSet(false); + this.isTemplate = false; + setFilesizeIsSet(false); + this.filesize = 0; + setShareModeIsSet(false); + this.shareMode = 0; + this.os = null; + this.uid = null; + this.token = null; + this.userID = null; + } + + public String getImagename() { + return this.imagename; + } + + public writeVLdata_args setImagename(String imagename) { + this.imagename = imagename; + return this; + } + + public void unsetImagename() { + this.imagename = null; + } + + /** Returns true if field imagename is set (has been assigned a value) and false otherwise */ + public boolean isSetImagename() { + return this.imagename != null; + } + + public void setImagenameIsSet(boolean value) { + if (!value) { + this.imagename = null; + } + } + + public String getDesc() { + return this.desc; + } + + public writeVLdata_args setDesc(String desc) { + this.desc = desc; + return this; + } + + public void unsetDesc() { + this.desc = null; + } + + /** Returns true if field desc is set (has been assigned a value) and false otherwise */ + public boolean isSetDesc() { + return this.desc != null; + } + + public void setDescIsSet(boolean value) { + if (!value) { + this.desc = null; + } + } + + public String getTel() { + return this.Tel; + } + + public writeVLdata_args setTel(String Tel) { + this.Tel = Tel; + return this; + } + + public void unsetTel() { + this.Tel = null; + } + + /** Returns true if field Tel is set (has been assigned a value) and false otherwise */ + public boolean isSetTel() { + return this.Tel != null; + } + + public void setTelIsSet(boolean value) { + if (!value) { + this.Tel = null; + } + } + + public String getFak() { + return this.Fak; + } + + public writeVLdata_args setFak(String Fak) { + this.Fak = Fak; + return this; + } + + public void unsetFak() { + this.Fak = null; + } + + /** Returns true if field Fak is set (has been assigned a value) and false otherwise */ + public boolean isSetFak() { + return this.Fak != null; + } + + public void setFakIsSet(boolean value) { + if (!value) { + this.Fak = null; + } + } + + public boolean isLicense() { + return this.license; + } + + public writeVLdata_args setLicense(boolean license) { + this.license = license; + setLicenseIsSet(true); + return this; + } + + public void unsetLicense() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LICENSE_ISSET_ID); + } + + /** Returns true if field license is set (has been assigned a value) and false otherwise */ + public boolean isSetLicense() { + return EncodingUtils.testBit(__isset_bitfield, __LICENSE_ISSET_ID); + } + + public void setLicenseIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LICENSE_ISSET_ID, value); + } + + public boolean isInternet() { + return this.internet; + } + + public writeVLdata_args setInternet(boolean internet) { + this.internet = internet; + setInternetIsSet(true); + return this; + } + + public void unsetInternet() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __INTERNET_ISSET_ID); + } + + /** Returns true if field internet is set (has been assigned a value) and false otherwise */ + public boolean isSetInternet() { + return EncodingUtils.testBit(__isset_bitfield, __INTERNET_ISSET_ID); + } + + public void setInternetIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __INTERNET_ISSET_ID, value); + } + + public long getRam() { + return this.ram; + } + + public writeVLdata_args setRam(long ram) { + this.ram = ram; + setRamIsSet(true); + return this; + } + + public void unsetRam() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RAM_ISSET_ID); + } + + /** Returns true if field ram is set (has been assigned a value) and false otherwise */ + public boolean isSetRam() { + return EncodingUtils.testBit(__isset_bitfield, __RAM_ISSET_ID); + } + + public void setRamIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RAM_ISSET_ID, value); + } + + public long getCpu() { + return this.cpu; + } + + public writeVLdata_args setCpu(long cpu) { + this.cpu = cpu; + setCpuIsSet(true); + return this; + } + + public void unsetCpu() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __CPU_ISSET_ID); + } + + /** Returns true if field cpu is set (has been assigned a value) and false otherwise */ + public boolean isSetCpu() { + return EncodingUtils.testBit(__isset_bitfield, __CPU_ISSET_ID); + } + + public void setCpuIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CPU_ISSET_ID, value); + } + + public String getImagePath() { + return this.imagePath; + } + + public writeVLdata_args setImagePath(String imagePath) { + this.imagePath = imagePath; + return this; + } + + public void unsetImagePath() { + this.imagePath = null; + } + + /** Returns true if field imagePath is set (has been assigned a value) and false otherwise */ + public boolean isSetImagePath() { + return this.imagePath != null; + } + + public void setImagePathIsSet(boolean value) { + if (!value) { + this.imagePath = null; + } + } + + public boolean isIsTemplate() { + return this.isTemplate; + } + + public writeVLdata_args setIsTemplate(boolean isTemplate) { + this.isTemplate = isTemplate; + setIsTemplateIsSet(true); + return this; + } + + public void unsetIsTemplate() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISTEMPLATE_ISSET_ID); + } + + /** Returns true if field isTemplate is set (has been assigned a value) and false otherwise */ + public boolean isSetIsTemplate() { + return EncodingUtils.testBit(__isset_bitfield, __ISTEMPLATE_ISSET_ID); + } + + public void setIsTemplateIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISTEMPLATE_ISSET_ID, value); + } + + public long getFilesize() { + return this.filesize; + } + + public writeVLdata_args setFilesize(long filesize) { + this.filesize = filesize; + setFilesizeIsSet(true); + return this; + } + + public void unsetFilesize() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FILESIZE_ISSET_ID); + } + + /** Returns true if field filesize is set (has been assigned a value) and false otherwise */ + public boolean isSetFilesize() { + return EncodingUtils.testBit(__isset_bitfield, __FILESIZE_ISSET_ID); + } + + public void setFilesizeIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FILESIZE_ISSET_ID, value); + } + + public long getShareMode() { + return this.shareMode; + } + + public writeVLdata_args setShareMode(long shareMode) { + this.shareMode = shareMode; + setShareModeIsSet(true); + return this; + } + + public void unsetShareMode() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SHAREMODE_ISSET_ID); + } + + /** Returns true if field shareMode is set (has been assigned a value) and false otherwise */ + public boolean isSetShareMode() { + return EncodingUtils.testBit(__isset_bitfield, __SHAREMODE_ISSET_ID); + } + + public void setShareModeIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SHAREMODE_ISSET_ID, value); + } + + public String getOs() { + return this.os; + } + + public writeVLdata_args setOs(String os) { + this.os = os; + return this; + } + + public void unsetOs() { + this.os = null; + } + + /** Returns true if field os is set (has been assigned a value) and false otherwise */ + public boolean isSetOs() { + return this.os != null; + } + + public void setOsIsSet(boolean value) { + if (!value) { + this.os = null; + } + } + + public String getUid() { + return this.uid; + } + + public writeVLdata_args setUid(String uid) { + this.uid = uid; + return this; + } + + public void unsetUid() { + this.uid = null; + } + + /** Returns true if field uid is set (has been assigned a value) and false otherwise */ + public boolean isSetUid() { + return this.uid != null; + } + + public void setUidIsSet(boolean value) { + if (!value) { + this.uid = null; + } + } + + public String getToken() { + return this.token; + } + + public writeVLdata_args setToken(String token) { + this.token = token; + return this; + } + + public void unsetToken() { + this.token = null; + } + + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; + } + + public void setTokenIsSet(boolean value) { + if (!value) { + this.token = null; + } + } + + public String getUserID() { + return this.userID; + } + + public writeVLdata_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 IMAGENAME: + if (value == null) { + unsetImagename(); + } else { + setImagename((String)value); + } + break; + + case DESC: + if (value == null) { + unsetDesc(); + } else { + setDesc((String)value); + } + break; + + case TEL: + if (value == null) { + unsetTel(); + } else { + setTel((String)value); + } + break; + + case FAK: + if (value == null) { + unsetFak(); + } else { + setFak((String)value); + } + break; + + case LICENSE: + if (value == null) { + unsetLicense(); + } else { setLicense((Boolean)value); } break; - case INTERNET: - if (value == null) { - unsetInternet(); - } else { - setInternet((Boolean)value); - } - break; + case INTERNET: + if (value == null) { + unsetInternet(); + } else { + setInternet((Boolean)value); + } + break; + + case RAM: + if (value == null) { + unsetRam(); + } else { + setRam((Long)value); + } + break; + + case CPU: + if (value == null) { + unsetCpu(); + } else { + setCpu((Long)value); + } + break; + + case IMAGE_PATH: + if (value == null) { + unsetImagePath(); + } else { + setImagePath((String)value); + } + break; + + case IS_TEMPLATE: + if (value == null) { + unsetIsTemplate(); + } else { + setIsTemplate((Boolean)value); + } + break; + + case FILESIZE: + if (value == null) { + unsetFilesize(); + } else { + setFilesize((Long)value); + } + break; + + case SHARE_MODE: + if (value == null) { + unsetShareMode(); + } else { + setShareMode((Long)value); + } + break; + + case OS: + if (value == null) { + unsetOs(); + } else { + setOs((String)value); + } + break; + + case UID: + if (value == null) { + unsetUid(); + } else { + setUid((String)value); + } + break; + + case TOKEN: + if (value == null) { + unsetToken(); + } else { + setToken((String)value); + } + break; + + case USER_ID: + if (value == null) { + unsetUserID(); + } else { + setUserID((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case IMAGENAME: + return getImagename(); + + case DESC: + return getDesc(); + + case TEL: + return getTel(); + + case FAK: + return getFak(); + + case LICENSE: + return Boolean.valueOf(isLicense()); + + case INTERNET: + return Boolean.valueOf(isInternet()); + + case RAM: + return Long.valueOf(getRam()); + + case CPU: + return Long.valueOf(getCpu()); + + case IMAGE_PATH: + return getImagePath(); + + case IS_TEMPLATE: + return Boolean.valueOf(isIsTemplate()); + + case FILESIZE: + return Long.valueOf(getFilesize()); + + case SHARE_MODE: + return Long.valueOf(getShareMode()); + + case OS: + return getOs(); + + case UID: + return getUid(); + + case TOKEN: + return getToken(); + + case USER_ID: + return getUserID(); + + } + 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 IMAGENAME: + return isSetImagename(); + case DESC: + return isSetDesc(); + case TEL: + return isSetTel(); + case FAK: + return isSetFak(); + case LICENSE: + return isSetLicense(); + case INTERNET: + return isSetInternet(); + case RAM: + return isSetRam(); + case CPU: + return isSetCpu(); + case IMAGE_PATH: + return isSetImagePath(); + case IS_TEMPLATE: + return isSetIsTemplate(); + case FILESIZE: + return isSetFilesize(); + case SHARE_MODE: + return isSetShareMode(); + case OS: + return isSetOs(); + case UID: + return isSetUid(); + case TOKEN: + return isSetToken(); + case USER_ID: + return isSetUserID(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof writeVLdata_args) + return this.equals((writeVLdata_args)that); + return false; + } + + public boolean equals(writeVLdata_args that) { + if (that == null) + return false; + + boolean this_present_imagename = true && this.isSetImagename(); + boolean that_present_imagename = true && that.isSetImagename(); + if (this_present_imagename || that_present_imagename) { + if (!(this_present_imagename && that_present_imagename)) + return false; + if (!this.imagename.equals(that.imagename)) + return false; + } + + boolean this_present_desc = true && this.isSetDesc(); + boolean that_present_desc = true && that.isSetDesc(); + if (this_present_desc || that_present_desc) { + if (!(this_present_desc && that_present_desc)) + return false; + if (!this.desc.equals(that.desc)) + return false; + } + + boolean this_present_Tel = true && this.isSetTel(); + boolean that_present_Tel = true && that.isSetTel(); + if (this_present_Tel || that_present_Tel) { + if (!(this_present_Tel && that_present_Tel)) + return false; + if (!this.Tel.equals(that.Tel)) + return false; + } + + boolean this_present_Fak = true && this.isSetFak(); + boolean that_present_Fak = true && that.isSetFak(); + if (this_present_Fak || that_present_Fak) { + if (!(this_present_Fak && that_present_Fak)) + return false; + if (!this.Fak.equals(that.Fak)) + return false; + } + + boolean this_present_license = true; + boolean that_present_license = true; + if (this_present_license || that_present_license) { + if (!(this_present_license && that_present_license)) + return false; + if (this.license != that.license) + return false; + } + + boolean this_present_internet = true; + boolean that_present_internet = true; + if (this_present_internet || that_present_internet) { + if (!(this_present_internet && that_present_internet)) + return false; + if (this.internet != that.internet) + return false; + } + + boolean this_present_ram = true; + boolean that_present_ram = true; + if (this_present_ram || that_present_ram) { + if (!(this_present_ram && that_present_ram)) + return false; + if (this.ram != that.ram) + return false; + } + + boolean this_present_cpu = true; + boolean that_present_cpu = true; + if (this_present_cpu || that_present_cpu) { + if (!(this_present_cpu && that_present_cpu)) + return false; + if (this.cpu != that.cpu) + return false; + } + + boolean this_present_imagePath = true && this.isSetImagePath(); + boolean that_present_imagePath = true && that.isSetImagePath(); + if (this_present_imagePath || that_present_imagePath) { + if (!(this_present_imagePath && that_present_imagePath)) + return false; + if (!this.imagePath.equals(that.imagePath)) + return false; + } + + boolean this_present_isTemplate = true; + boolean that_present_isTemplate = true; + if (this_present_isTemplate || that_present_isTemplate) { + if (!(this_present_isTemplate && that_present_isTemplate)) + return false; + if (this.isTemplate != that.isTemplate) + return false; + } + + boolean this_present_filesize = true; + boolean that_present_filesize = true; + if (this_present_filesize || that_present_filesize) { + if (!(this_present_filesize && that_present_filesize)) + return false; + if (this.filesize != that.filesize) + return false; + } + + boolean this_present_shareMode = true; + boolean that_present_shareMode = true; + if (this_present_shareMode || that_present_shareMode) { + if (!(this_present_shareMode && that_present_shareMode)) + return false; + if (this.shareMode != that.shareMode) + return false; + } + + boolean this_present_os = true && this.isSetOs(); + boolean that_present_os = true && that.isSetOs(); + if (this_present_os || that_present_os) { + if (!(this_present_os && that_present_os)) + return false; + if (!this.os.equals(that.os)) + return false; + } + + boolean this_present_uid = true && this.isSetUid(); + boolean that_present_uid = true && that.isSetUid(); + if (this_present_uid || that_present_uid) { + if (!(this_present_uid && that_present_uid)) + return false; + if (!this.uid.equals(that.uid)) + return false; + } + + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) + return false; + if (!this.token.equals(that.token)) + 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; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(writeVLdata_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetImagename()).compareTo(other.isSetImagename()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetImagename()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imagename, other.imagename); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDesc()).compareTo(other.isSetDesc()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDesc()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.desc, other.desc); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTel()).compareTo(other.isSetTel()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTel()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Tel, other.Tel); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetFak()).compareTo(other.isSetFak()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFak()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Fak, other.Fak); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetLicense()).compareTo(other.isSetLicense()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetLicense()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.license, other.license); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetInternet()).compareTo(other.isSetInternet()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetInternet()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.internet, other.internet); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetRam()).compareTo(other.isSetRam()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetRam()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ram, other.ram); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetCpu()).compareTo(other.isSetCpu()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetCpu()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cpu, other.cpu); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetImagePath()).compareTo(other.isSetImagePath()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetImagePath()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imagePath, other.imagePath); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetIsTemplate()).compareTo(other.isSetIsTemplate()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIsTemplate()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isTemplate, other.isTemplate); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetFilesize()).compareTo(other.isSetFilesize()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFilesize()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filesize, other.filesize); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetShareMode()).compareTo(other.isSetShareMode()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetShareMode()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shareMode, other.shareMode); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetOs()).compareTo(other.isSetOs()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetOs()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.os, other.os); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUid()).compareTo(other.isSetUid()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUid()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.uid, other.uid); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); + if (lastComparison != 0) { + return lastComparison; + } + } + 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; + } + + 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("writeVLdata_args("); + boolean first = true; + + sb.append("imagename:"); + if (this.imagename == null) { + sb.append("null"); + } else { + sb.append(this.imagename); + } + first = false; + if (!first) sb.append(", "); + sb.append("desc:"); + if (this.desc == null) { + sb.append("null"); + } else { + sb.append(this.desc); + } + first = false; + if (!first) sb.append(", "); + sb.append("Tel:"); + if (this.Tel == null) { + sb.append("null"); + } else { + sb.append(this.Tel); + } + first = false; + if (!first) sb.append(", "); + sb.append("Fak:"); + if (this.Fak == null) { + sb.append("null"); + } else { + sb.append(this.Fak); + } + first = false; + if (!first) sb.append(", "); + sb.append("license:"); + sb.append(this.license); + first = false; + if (!first) sb.append(", "); + sb.append("internet:"); + sb.append(this.internet); + first = false; + if (!first) sb.append(", "); + sb.append("ram:"); + sb.append(this.ram); + first = false; + if (!first) sb.append(", "); + sb.append("cpu:"); + sb.append(this.cpu); + first = false; + if (!first) sb.append(", "); + sb.append("imagePath:"); + if (this.imagePath == null) { + sb.append("null"); + } else { + sb.append(this.imagePath); + } + first = false; + if (!first) sb.append(", "); + sb.append("isTemplate:"); + sb.append(this.isTemplate); + first = false; + if (!first) sb.append(", "); + sb.append("filesize:"); + sb.append(this.filesize); + first = false; + if (!first) sb.append(", "); + sb.append("shareMode:"); + sb.append(this.shareMode); + first = false; + if (!first) sb.append(", "); + sb.append("os:"); + if (this.os == null) { + sb.append("null"); + } else { + sb.append(this.os); + } + first = false; + if (!first) sb.append(", "); + sb.append("uid:"); + if (this.uid == null) { + sb.append("null"); + } else { + sb.append(this.uid); + } + first = false; + if (!first) sb.append(", "); + sb.append("token:"); + if (this.token == null) { + sb.append("null"); + } else { + sb.append(this.token); + } + first = false; + if (!first) sb.append(", "); + sb.append("userID:"); + if (this.userID == null) { + sb.append("null"); + } else { + sb.append(this.userID); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class writeVLdata_argsStandardSchemeFactory implements SchemeFactory { + public writeVLdata_argsStandardScheme getScheme() { + return new writeVLdata_argsStandardScheme(); + } + } + + private static class writeVLdata_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, writeVLdata_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // IMAGENAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.imagename = iprot.readString(); + struct.setImagenameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // DESC + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.desc = iprot.readString(); + struct.setDescIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 8: // TEL + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.Tel = iprot.readString(); + struct.setTelIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 9: // FAK + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.Fak = iprot.readString(); + struct.setFakIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 10: // LICENSE + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.license = iprot.readBool(); + struct.setLicenseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 11: // INTERNET + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.internet = iprot.readBool(); + struct.setInternetIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 12: // RAM + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.ram = iprot.readI64(); + struct.setRamIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 13: // CPU + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.cpu = iprot.readI64(); + struct.setCpuIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 14: // IMAGE_PATH + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.imagePath = iprot.readString(); + struct.setImagePathIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 15: // IS_TEMPLATE + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.isTemplate = iprot.readBool(); + struct.setIsTemplateIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 16: // FILESIZE + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.filesize = iprot.readI64(); + struct.setFilesizeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 17: // SHARE_MODE + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.shareMode = iprot.readI64(); + struct.setShareModeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 18: // OS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.os = iprot.readString(); + struct.setOsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 19: // UID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.uid = iprot.readString(); + struct.setUidIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 20: // TOKEN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 21: // 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); + } + 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, writeVLdata_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.imagename != null) { + oprot.writeFieldBegin(IMAGENAME_FIELD_DESC); + oprot.writeString(struct.imagename); + oprot.writeFieldEnd(); + } + if (struct.desc != null) { + oprot.writeFieldBegin(DESC_FIELD_DESC); + oprot.writeString(struct.desc); + oprot.writeFieldEnd(); + } + if (struct.Tel != null) { + oprot.writeFieldBegin(TEL_FIELD_DESC); + oprot.writeString(struct.Tel); + oprot.writeFieldEnd(); + } + if (struct.Fak != null) { + oprot.writeFieldBegin(FAK_FIELD_DESC); + oprot.writeString(struct.Fak); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(LICENSE_FIELD_DESC); + oprot.writeBool(struct.license); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(INTERNET_FIELD_DESC); + oprot.writeBool(struct.internet); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(RAM_FIELD_DESC); + oprot.writeI64(struct.ram); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(CPU_FIELD_DESC); + oprot.writeI64(struct.cpu); + oprot.writeFieldEnd(); + if (struct.imagePath != null) { + oprot.writeFieldBegin(IMAGE_PATH_FIELD_DESC); + oprot.writeString(struct.imagePath); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(IS_TEMPLATE_FIELD_DESC); + oprot.writeBool(struct.isTemplate); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(FILESIZE_FIELD_DESC); + oprot.writeI64(struct.filesize); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(SHARE_MODE_FIELD_DESC); + oprot.writeI64(struct.shareMode); + oprot.writeFieldEnd(); + if (struct.os != null) { + oprot.writeFieldBegin(OS_FIELD_DESC); + oprot.writeString(struct.os); + oprot.writeFieldEnd(); + } + if (struct.uid != null) { + oprot.writeFieldBegin(UID_FIELD_DESC); + oprot.writeString(struct.uid); + oprot.writeFieldEnd(); + } + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); + oprot.writeFieldEnd(); + } + if (struct.userID != null) { + oprot.writeFieldBegin(USER_ID_FIELD_DESC); + oprot.writeString(struct.userID); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class writeVLdata_argsTupleSchemeFactory implements SchemeFactory { + public writeVLdata_argsTupleScheme getScheme() { + return new writeVLdata_argsTupleScheme(); + } + } + + private static class writeVLdata_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, writeVLdata_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetImagename()) { + optionals.set(0); + } + if (struct.isSetDesc()) { + optionals.set(1); + } + if (struct.isSetTel()) { + optionals.set(2); + } + if (struct.isSetFak()) { + optionals.set(3); + } + if (struct.isSetLicense()) { + optionals.set(4); + } + if (struct.isSetInternet()) { + optionals.set(5); + } + if (struct.isSetRam()) { + optionals.set(6); + } + if (struct.isSetCpu()) { + optionals.set(7); + } + if (struct.isSetImagePath()) { + optionals.set(8); + } + if (struct.isSetIsTemplate()) { + optionals.set(9); + } + if (struct.isSetFilesize()) { + optionals.set(10); + } + if (struct.isSetShareMode()) { + optionals.set(11); + } + if (struct.isSetOs()) { + optionals.set(12); + } + if (struct.isSetUid()) { + optionals.set(13); + } + if (struct.isSetToken()) { + optionals.set(14); + } + if (struct.isSetUserID()) { + optionals.set(15); + } + oprot.writeBitSet(optionals, 16); + if (struct.isSetImagename()) { + oprot.writeString(struct.imagename); + } + if (struct.isSetDesc()) { + oprot.writeString(struct.desc); + } + if (struct.isSetTel()) { + oprot.writeString(struct.Tel); + } + if (struct.isSetFak()) { + oprot.writeString(struct.Fak); + } + if (struct.isSetLicense()) { + oprot.writeBool(struct.license); + } + if (struct.isSetInternet()) { + oprot.writeBool(struct.internet); + } + if (struct.isSetRam()) { + oprot.writeI64(struct.ram); + } + if (struct.isSetCpu()) { + oprot.writeI64(struct.cpu); + } + if (struct.isSetImagePath()) { + oprot.writeString(struct.imagePath); + } + if (struct.isSetIsTemplate()) { + oprot.writeBool(struct.isTemplate); + } + if (struct.isSetFilesize()) { + oprot.writeI64(struct.filesize); + } + if (struct.isSetShareMode()) { + oprot.writeI64(struct.shareMode); + } + if (struct.isSetOs()) { + oprot.writeString(struct.os); + } + if (struct.isSetUid()) { + oprot.writeString(struct.uid); + } + if (struct.isSetToken()) { + oprot.writeString(struct.token); + } + if (struct.isSetUserID()) { + oprot.writeString(struct.userID); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, writeVLdata_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(16); + if (incoming.get(0)) { + struct.imagename = iprot.readString(); + struct.setImagenameIsSet(true); + } + if (incoming.get(1)) { + struct.desc = iprot.readString(); + struct.setDescIsSet(true); + } + if (incoming.get(2)) { + struct.Tel = iprot.readString(); + struct.setTelIsSet(true); + } + if (incoming.get(3)) { + struct.Fak = iprot.readString(); + struct.setFakIsSet(true); + } + if (incoming.get(4)) { + struct.license = iprot.readBool(); + struct.setLicenseIsSet(true); + } + if (incoming.get(5)) { + struct.internet = iprot.readBool(); + struct.setInternetIsSet(true); + } + if (incoming.get(6)) { + struct.ram = iprot.readI64(); + struct.setRamIsSet(true); + } + if (incoming.get(7)) { + struct.cpu = iprot.readI64(); + struct.setCpuIsSet(true); + } + if (incoming.get(8)) { + struct.imagePath = iprot.readString(); + struct.setImagePathIsSet(true); + } + if (incoming.get(9)) { + struct.isTemplate = iprot.readBool(); + struct.setIsTemplateIsSet(true); + } + if (incoming.get(10)) { + struct.filesize = iprot.readI64(); + struct.setFilesizeIsSet(true); + } + if (incoming.get(11)) { + struct.shareMode = iprot.readI64(); + struct.setShareModeIsSet(true); + } + if (incoming.get(12)) { + struct.os = iprot.readString(); + struct.setOsIsSet(true); + } + if (incoming.get(13)) { + struct.uid = iprot.readString(); + struct.setUidIsSet(true); + } + if (incoming.get(14)) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } + if (incoming.get(15)) { + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); + } + } + } + + } + + public static class writeVLdata_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("writeVLdata_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new writeVLdata_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeVLdata_resultTupleSchemeFactory()); + } + + public boolean success; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeVLdata_result.class, metaDataMap); + } + + public writeVLdata_result() { + } + + public writeVLdata_result( + boolean success) + { + this(); + this.success = success; + setSuccessIsSet(true); + } + + /** + * Performs a deep copy on other. + */ + public writeVLdata_result(writeVLdata_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; + } + + public writeVLdata_result deepCopy() { + return new writeVLdata_result(this); + } + + @Override + public void clear() { + setSuccessIsSet(false); + this.success = false; + } + + public boolean isSuccess() { + return this.success; + } + + public writeVLdata_result setSuccess(boolean success) { + this.success = success; + setSuccessIsSet(true); + return this; + } + + public void unsetSuccess() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + public void setSuccessIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Boolean)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return Boolean.valueOf(isSuccess()); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof writeVLdata_result) + return this.equals((writeVLdata_result)that); + return false; + } + + public boolean equals(writeVLdata_result that) { + if (that == null) + return false; + + boolean this_present_success = true; + boolean that_present_success = true; + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (this.success != that.success) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(writeVLdata_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("writeVLdata_result("); + boolean first = true; + + sb.append("success:"); + sb.append(this.success); + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class writeVLdata_resultStandardSchemeFactory implements SchemeFactory { + public writeVLdata_resultStandardScheme getScheme() { + return new writeVLdata_resultStandardScheme(); + } + } + + private static class writeVLdata_resultStandardScheme extends StandardScheme { - case RAM: - if (value == null) { - unsetRam(); - } else { - setRam((Long)value); + public void read(org.apache.thrift.protocol.TProtocol iprot, writeVLdata_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - break; + iprot.readStructEnd(); - case CPU: - if (value == null) { - unsetCpu(); - } else { - setCpu((Long)value); - } - break; + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } - case IMAGE_PATH: - if (value == null) { - unsetImagePath(); - } else { - setImagePath((String)value); - } - break; + public void write(org.apache.thrift.protocol.TProtocol oprot, writeVLdata_result struct) throws org.apache.thrift.TException { + struct.validate(); - case IS_TEMPLATE: - if (value == null) { - unsetIsTemplate(); - } else { - setIsTemplate((Boolean)value); + oprot.writeStructBegin(STRUCT_DESC); + if (struct.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeBool(struct.success); + oprot.writeFieldEnd(); } - break; + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } - case FILESIZE: - if (value == null) { - unsetFilesize(); - } else { - setFilesize((Long)value); - } - break; + } - case SHARE_MODE: - if (value == null) { - unsetShareMode(); - } else { - setShareMode((Long)value); - } - break; + private static class writeVLdata_resultTupleSchemeFactory implements SchemeFactory { + public writeVLdata_resultTupleScheme getScheme() { + return new writeVLdata_resultTupleScheme(); + } + } - case OS: - if (value == null) { - unsetOs(); - } else { - setOs((String)value); - } - break; + private static class writeVLdata_resultTupleScheme extends TupleScheme { - case UID: - if (value == null) { - unsetUid(); - } else { - setUid((String)value); + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, writeVLdata_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); } - break; + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + oprot.writeBool(struct.success); + } + } + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, writeVLdata_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } } } - public Object getFieldValue(_Fields field) { - switch (field) { - case IMAGENAME: - return getImagename(); - - case DESC: - return getDesc(); - - case LOGIN: - return getLogin(); + } - case FIRSTNAME: - return getFirstname(); + public static class getImageListPermissionWrite_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("getImageListPermissionWrite_args"); - case LASTNAME: - return getLastname(); + 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 org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)2); - case UNIVERSITY: - return getUniversity(); + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new getImageListPermissionWrite_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageListPermissionWrite_argsTupleSchemeFactory()); + } - case MAIL: - return getMail(); + public String userID; // required + public String token; // required - case TEL: - return getTel(); + /** 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"), + TOKEN((short)2, "token"); - case FAK: - return getFak(); + private static final Map byName = new HashMap(); - case LICENSE: - return Boolean.valueOf(isLicense()); + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } - case INTERNET: - return Boolean.valueOf(isInternet()); + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // USER_ID + return USER_ID; + case 2: // TOKEN + return TOKEN; + default: + return null; + } + } - case RAM: - return Long.valueOf(getRam()); + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } - case CPU: - return Long.valueOf(getCpu()); + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } - case IMAGE_PATH: - return getImagePath(); + private final short _thriftId; + private final String _fieldName; - case IS_TEMPLATE: - return Boolean.valueOf(isIsTemplate()); + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } - case FILESIZE: - return Long.valueOf(getFilesize()); + public short getThriftFieldId() { + return _thriftId; + } - case SHARE_MODE: - return Long.valueOf(getShareMode()); + public String getFieldName() { + return _fieldName; + } + } - case OS: - return getOs(); + // 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))); + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", 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(getImageListPermissionWrite_args.class, metaDataMap); + } - case UID: - return getUid(); + public getImageListPermissionWrite_args() { + } - } - throw new IllegalStateException(); + public getImageListPermissionWrite_args( + String userID, + String token) + { + this(); + this.userID = userID; + this.token = token; } - /** 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(); + /** + * Performs a deep copy on other. + */ + public getImageListPermissionWrite_args(getImageListPermissionWrite_args other) { + if (other.isSetUserID()) { + this.userID = other.userID; } - - switch (field) { - case IMAGENAME: - return isSetImagename(); - case DESC: - return isSetDesc(); - case LOGIN: - return isSetLogin(); - case FIRSTNAME: - return isSetFirstname(); - case LASTNAME: - return isSetLastname(); - case UNIVERSITY: - return isSetUniversity(); - case MAIL: - return isSetMail(); - case TEL: - return isSetTel(); - case FAK: - return isSetFak(); - case LICENSE: - return isSetLicense(); - case INTERNET: - return isSetInternet(); - case RAM: - return isSetRam(); - case CPU: - return isSetCpu(); - case IMAGE_PATH: - return isSetImagePath(); - case IS_TEMPLATE: - return isSetIsTemplate(); - case FILESIZE: - return isSetFilesize(); - case SHARE_MODE: - return isSetShareMode(); - case OS: - return isSetOs(); - case UID: - return isSetUid(); + if (other.isSetToken()) { + this.token = other.token; } - throw new IllegalStateException(); + } + + public getImageListPermissionWrite_args deepCopy() { + return new getImageListPermissionWrite_args(this); } @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof writeVLdata_args) - return this.equals((writeVLdata_args)that); - return false; + public void clear() { + this.userID = null; + this.token = null; } - public boolean equals(writeVLdata_args that) { - if (that == null) - return false; + public String getUserID() { + return this.userID; + } - boolean this_present_imagename = true && this.isSetImagename(); - boolean that_present_imagename = true && that.isSetImagename(); - if (this_present_imagename || that_present_imagename) { - if (!(this_present_imagename && that_present_imagename)) - return false; - if (!this.imagename.equals(that.imagename)) - return false; - } + public getImageListPermissionWrite_args setUserID(String userID) { + this.userID = userID; + return this; + } - boolean this_present_desc = true && this.isSetDesc(); - boolean that_present_desc = true && that.isSetDesc(); - if (this_present_desc || that_present_desc) { - if (!(this_present_desc && that_present_desc)) - return false; - if (!this.desc.equals(that.desc)) - return false; - } + public void unsetUserID() { + this.userID = null; + } - boolean this_present_login = true && this.isSetLogin(); - boolean that_present_login = true && that.isSetLogin(); - if (this_present_login || that_present_login) { - if (!(this_present_login && that_present_login)) - return false; - if (!this.login.equals(that.login)) - return false; - } + /** Returns true if field userID is set (has been assigned a value) and false otherwise */ + public boolean isSetUserID() { + return this.userID != null; + } - boolean this_present_firstname = true && this.isSetFirstname(); - boolean that_present_firstname = true && that.isSetFirstname(); - if (this_present_firstname || that_present_firstname) { - if (!(this_present_firstname && that_present_firstname)) - return false; - if (!this.firstname.equals(that.firstname)) - return false; + public void setUserIDIsSet(boolean value) { + if (!value) { + this.userID = null; } + } - boolean this_present_lastname = true && this.isSetLastname(); - boolean that_present_lastname = true && that.isSetLastname(); - if (this_present_lastname || that_present_lastname) { - if (!(this_present_lastname && that_present_lastname)) - return false; - if (!this.lastname.equals(that.lastname)) - return false; - } + public String getToken() { + return this.token; + } - boolean this_present_university = true && this.isSetUniversity(); - boolean that_present_university = true && that.isSetUniversity(); - if (this_present_university || that_present_university) { - if (!(this_present_university && that_present_university)) - return false; - if (!this.university.equals(that.university)) - return false; - } + public getImageListPermissionWrite_args setToken(String token) { + this.token = token; + return this; + } - boolean this_present_Mail = true && this.isSetMail(); - boolean that_present_Mail = true && that.isSetMail(); - if (this_present_Mail || that_present_Mail) { - if (!(this_present_Mail && that_present_Mail)) - return false; - if (!this.Mail.equals(that.Mail)) - return false; - } + public void unsetToken() { + this.token = null; + } - boolean this_present_Tel = true && this.isSetTel(); - boolean that_present_Tel = true && that.isSetTel(); - if (this_present_Tel || that_present_Tel) { - if (!(this_present_Tel && that_present_Tel)) - return false; - if (!this.Tel.equals(that.Tel)) - return false; - } + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; + } - boolean this_present_Fak = true && this.isSetFak(); - boolean that_present_Fak = true && that.isSetFak(); - if (this_present_Fak || that_present_Fak) { - if (!(this_present_Fak && that_present_Fak)) - return false; - if (!this.Fak.equals(that.Fak)) - return false; + public void setTokenIsSet(boolean value) { + if (!value) { + this.token = null; } + } - boolean this_present_license = true; - boolean that_present_license = true; - if (this_present_license || that_present_license) { - if (!(this_present_license && that_present_license)) - return false; - if (this.license != that.license) - return false; - } + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case USER_ID: + if (value == null) { + unsetUserID(); + } else { + setUserID((String)value); + } + break; - boolean this_present_internet = true; - boolean that_present_internet = true; - if (this_present_internet || that_present_internet) { - if (!(this_present_internet && that_present_internet)) - return false; - if (this.internet != that.internet) - return false; - } + case TOKEN: + if (value == null) { + unsetToken(); + } else { + setToken((String)value); + } + break; - boolean this_present_ram = true; - boolean that_present_ram = true; - if (this_present_ram || that_present_ram) { - if (!(this_present_ram && that_present_ram)) - return false; - if (this.ram != that.ram) - return false; } + } - boolean this_present_cpu = true; - boolean that_present_cpu = true; - if (this_present_cpu || that_present_cpu) { - if (!(this_present_cpu && that_present_cpu)) - return false; - if (this.cpu != that.cpu) - return false; - } + public Object getFieldValue(_Fields field) { + switch (field) { + case USER_ID: + return getUserID(); - boolean this_present_imagePath = true && this.isSetImagePath(); - boolean that_present_imagePath = true && that.isSetImagePath(); - if (this_present_imagePath || that_present_imagePath) { - if (!(this_present_imagePath && that_present_imagePath)) - return false; - if (!this.imagePath.equals(that.imagePath)) - return false; - } + case TOKEN: + return getToken(); - boolean this_present_isTemplate = true; - boolean that_present_isTemplate = true; - if (this_present_isTemplate || that_present_isTemplate) { - if (!(this_present_isTemplate && that_present_isTemplate)) - return false; - if (this.isTemplate != that.isTemplate) - return false; } + throw new IllegalStateException(); + } - boolean this_present_filesize = true; - boolean that_present_filesize = true; - if (this_present_filesize || that_present_filesize) { - if (!(this_present_filesize && that_present_filesize)) - return false; - if (this.filesize != that.filesize) - return false; + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); } - boolean this_present_shareMode = true; - boolean that_present_shareMode = true; - if (this_present_shareMode || that_present_shareMode) { - if (!(this_present_shareMode && that_present_shareMode)) - return false; - if (this.shareMode != that.shareMode) - return false; + switch (field) { + case USER_ID: + return isSetUserID(); + case TOKEN: + return isSetToken(); } + throw new IllegalStateException(); + } - boolean this_present_os = true && this.isSetOs(); - boolean that_present_os = true && that.isSetOs(); - if (this_present_os || that_present_os) { - if (!(this_present_os && that_present_os)) + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getImageListPermissionWrite_args) + return this.equals((getImageListPermissionWrite_args)that); + return false; + } + + public boolean equals(getImageListPermissionWrite_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.os.equals(that.os)) + if (!this.userID.equals(that.userID)) return false; } - boolean this_present_uid = true && this.isSetUid(); - boolean that_present_uid = true && that.isSetUid(); - if (this_present_uid || that_present_uid) { - if (!(this_present_uid && that_present_uid)) + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) return false; - if (!this.uid.equals(that.uid)) + if (!this.token.equals(that.token)) return false; } @@ -11422,199 +14147,29 @@ public class Server { } @Override - public int compareTo(writeVLdata_args other) { + public int compareTo(getImageListPermissionWrite_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetImagename()).compareTo(other.isSetImagename()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetImagename()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imagename, other.imagename); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetDesc()).compareTo(other.isSetDesc()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDesc()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.desc, other.desc); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetLogin()).compareTo(other.isSetLogin()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetLogin()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.login, other.login); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetFirstname()).compareTo(other.isSetFirstname()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetFirstname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.firstname, other.firstname); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetLastname()).compareTo(other.isSetLastname()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetLastname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastname, other.lastname); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetUniversity()).compareTo(other.isSetUniversity()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetUniversity()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.university, other.university); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetMail()).compareTo(other.isSetMail()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetMail()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Mail, other.Mail); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetTel()).compareTo(other.isSetTel()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetTel()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Tel, other.Tel); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetFak()).compareTo(other.isSetFak()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetFak()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Fak, other.Fak); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetLicense()).compareTo(other.isSetLicense()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetLicense()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.license, other.license); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetInternet()).compareTo(other.isSetInternet()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetInternet()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.internet, other.internet); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetRam()).compareTo(other.isSetRam()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetRam()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ram, other.ram); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetCpu()).compareTo(other.isSetCpu()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetCpu()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cpu, other.cpu); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetImagePath()).compareTo(other.isSetImagePath()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetImagePath()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imagePath, other.imagePath); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetIsTemplate()).compareTo(other.isSetIsTemplate()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetIsTemplate()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isTemplate, other.isTemplate); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetFilesize()).compareTo(other.isSetFilesize()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetFilesize()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filesize, other.filesize); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetShareMode()).compareTo(other.isSetShareMode()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetShareMode()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shareMode, other.shareMode); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetOs()).compareTo(other.isSetOs()); + lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); if (lastComparison != 0) { return lastComparison; } - if (isSetOs()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.os, other.os); + if (isSetUserID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUid()).compareTo(other.isSetUid()); + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); if (lastComparison != 0) { return lastComparison; } - if (isSetUid()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.uid, other.uid); + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) { return lastComparison; } @@ -11636,130 +14191,22 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("writeVLdata_args("); + StringBuilder sb = new StringBuilder("getImageListPermissionWrite_args("); boolean first = true; - sb.append("imagename:"); - if (this.imagename == null) { - sb.append("null"); - } else { - sb.append(this.imagename); - } - first = false; - if (!first) sb.append(", "); - sb.append("desc:"); - if (this.desc == null) { - sb.append("null"); - } else { - sb.append(this.desc); - } - first = false; - if (!first) sb.append(", "); - sb.append("login:"); - if (this.login == null) { - sb.append("null"); - } else { - sb.append(this.login); - } - first = false; - if (!first) sb.append(", "); - sb.append("firstname:"); - if (this.firstname == null) { - sb.append("null"); - } else { - sb.append(this.firstname); - } - first = false; - if (!first) sb.append(", "); - sb.append("lastname:"); - if (this.lastname == null) { - sb.append("null"); - } else { - sb.append(this.lastname); - } - first = false; - if (!first) sb.append(", "); - sb.append("university:"); - if (this.university == null) { - sb.append("null"); - } else { - sb.append(this.university); - } - first = false; - if (!first) sb.append(", "); - sb.append("Mail:"); - if (this.Mail == null) { - sb.append("null"); - } else { - sb.append(this.Mail); - } - first = false; - if (!first) sb.append(", "); - sb.append("Tel:"); - if (this.Tel == null) { - sb.append("null"); - } else { - sb.append(this.Tel); - } - first = false; - if (!first) sb.append(", "); - sb.append("Fak:"); - if (this.Fak == null) { - sb.append("null"); - } else { - sb.append(this.Fak); - } - first = false; - if (!first) sb.append(", "); - sb.append("license:"); - sb.append(this.license); - first = false; - if (!first) sb.append(", "); - sb.append("internet:"); - sb.append(this.internet); - first = false; - if (!first) sb.append(", "); - sb.append("ram:"); - sb.append(this.ram); - first = false; - if (!first) sb.append(", "); - sb.append("cpu:"); - sb.append(this.cpu); - first = false; - if (!first) sb.append(", "); - sb.append("imagePath:"); - if (this.imagePath == null) { - sb.append("null"); - } else { - sb.append(this.imagePath); - } - first = false; - if (!first) sb.append(", "); - sb.append("isTemplate:"); - sb.append(this.isTemplate); - first = false; - if (!first) sb.append(", "); - sb.append("filesize:"); - sb.append(this.filesize); - first = false; - if (!first) sb.append(", "); - sb.append("shareMode:"); - sb.append(this.shareMode); - first = false; - if (!first) sb.append(", "); - sb.append("os:"); - if (this.os == null) { + sb.append("userID:"); + if (this.userID == null) { sb.append("null"); } else { - sb.append(this.os); + sb.append(this.userID); } first = false; if (!first) sb.append(", "); - sb.append("uid:"); - if (this.uid == null) { + sb.append("token:"); + if (this.token == null) { sb.append("null"); } else { - sb.append(this.uid); + sb.append(this.token); } first = false; sb.append(")"); @@ -11781,278 +14228,69 @@ public class Server { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class writeVLdata_argsStandardSchemeFactory implements SchemeFactory { - public writeVLdata_argsStandardScheme getScheme() { - return new writeVLdata_argsStandardScheme(); - } - } - - private static class writeVLdata_argsStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, writeVLdata_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // IMAGENAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imagename = iprot.readString(); - struct.setImagenameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // DESC - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.desc = iprot.readString(); - struct.setDescIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // LOGIN - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.login = iprot.readString(); - struct.setLoginIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // FIRSTNAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.firstname = iprot.readString(); - struct.setFirstnameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // LASTNAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.lastname = iprot.readString(); - struct.setLastnameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // UNIVERSITY - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.university = iprot.readString(); - struct.setUniversityIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 7: // MAIL - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.Mail = iprot.readString(); - struct.setMailIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 8: // TEL - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.Tel = iprot.readString(); - struct.setTelIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 9: // FAK - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.Fak = iprot.readString(); - struct.setFakIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 10: // LICENSE - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.license = iprot.readBool(); - struct.setLicenseIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 11: // INTERNET - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.internet = iprot.readBool(); - struct.setInternetIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 12: // RAM - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.ram = iprot.readI64(); - struct.setRamIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 13: // CPU - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.cpu = iprot.readI64(); - struct.setCpuIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 14: // IMAGE_PATH - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imagePath = iprot.readString(); - struct.setImagePathIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 15: // IS_TEMPLATE - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.isTemplate = iprot.readBool(); - struct.setIsTemplateIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 16: // FILESIZE - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.filesize = iprot.readI64(); - struct.setFilesizeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 17: // SHARE_MODE - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.shareMode = iprot.readI64(); - struct.setShareModeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 18: // OS - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.os = iprot.readString(); - struct.setOsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 19: // UID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.uid = iprot.readString(); - struct.setUidIsSet(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, writeVLdata_args struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (struct.imagename != null) { - oprot.writeFieldBegin(IMAGENAME_FIELD_DESC); - oprot.writeString(struct.imagename); - oprot.writeFieldEnd(); - } - if (struct.desc != null) { - oprot.writeFieldBegin(DESC_FIELD_DESC); - oprot.writeString(struct.desc); - oprot.writeFieldEnd(); - } - if (struct.login != null) { - oprot.writeFieldBegin(LOGIN_FIELD_DESC); - oprot.writeString(struct.login); - oprot.writeFieldEnd(); - } - if (struct.firstname != null) { - oprot.writeFieldBegin(FIRSTNAME_FIELD_DESC); - oprot.writeString(struct.firstname); - oprot.writeFieldEnd(); - } - if (struct.lastname != null) { - oprot.writeFieldBegin(LASTNAME_FIELD_DESC); - oprot.writeString(struct.lastname); - oprot.writeFieldEnd(); - } - if (struct.university != null) { - oprot.writeFieldBegin(UNIVERSITY_FIELD_DESC); - oprot.writeString(struct.university); - oprot.writeFieldEnd(); - } - if (struct.Mail != null) { - oprot.writeFieldBegin(MAIL_FIELD_DESC); - oprot.writeString(struct.Mail); - oprot.writeFieldEnd(); - } - if (struct.Tel != null) { - oprot.writeFieldBegin(TEL_FIELD_DESC); - oprot.writeString(struct.Tel); - oprot.writeFieldEnd(); - } - if (struct.Fak != null) { - oprot.writeFieldBegin(FAK_FIELD_DESC); - oprot.writeString(struct.Fak); - oprot.writeFieldEnd(); - } - oprot.writeFieldBegin(LICENSE_FIELD_DESC); - oprot.writeBool(struct.license); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(INTERNET_FIELD_DESC); - oprot.writeBool(struct.internet); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(RAM_FIELD_DESC); - oprot.writeI64(struct.ram); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(CPU_FIELD_DESC); - oprot.writeI64(struct.cpu); - oprot.writeFieldEnd(); - if (struct.imagePath != null) { - oprot.writeFieldBegin(IMAGE_PATH_FIELD_DESC); - oprot.writeString(struct.imagePath); - oprot.writeFieldEnd(); + private static class getImageListPermissionWrite_argsStandardSchemeFactory implements SchemeFactory { + public getImageListPermissionWrite_argsStandardScheme getScheme() { + return new getImageListPermissionWrite_argsStandardScheme(); + } + } + + private static class getImageListPermissionWrite_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionWrite_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // 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; + case 2: // TOKEN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - oprot.writeFieldBegin(IS_TEMPLATE_FIELD_DESC); - oprot.writeBool(struct.isTemplate); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(FILESIZE_FIELD_DESC); - oprot.writeI64(struct.filesize); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(SHARE_MODE_FIELD_DESC); - oprot.writeI64(struct.shareMode); - oprot.writeFieldEnd(); - if (struct.os != null) { - oprot.writeFieldBegin(OS_FIELD_DESC); - oprot.writeString(struct.os); + 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, getImageListPermissionWrite_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(); } - if (struct.uid != null) { - oprot.writeFieldBegin(UID_FIELD_DESC); - oprot.writeString(struct.uid); + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -12061,232 +14299,62 @@ public class Server { } - private static class writeVLdata_argsTupleSchemeFactory implements SchemeFactory { - public writeVLdata_argsTupleScheme getScheme() { - return new writeVLdata_argsTupleScheme(); + private static class getImageListPermissionWrite_argsTupleSchemeFactory implements SchemeFactory { + public getImageListPermissionWrite_argsTupleScheme getScheme() { + return new getImageListPermissionWrite_argsTupleScheme(); } } - private static class writeVLdata_argsTupleScheme extends TupleScheme { + private static class getImageListPermissionWrite_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, writeVLdata_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionWrite_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetImagename()) { + if (struct.isSetUserID()) { optionals.set(0); } - if (struct.isSetDesc()) { + if (struct.isSetToken()) { optionals.set(1); } - if (struct.isSetLogin()) { - optionals.set(2); - } - if (struct.isSetFirstname()) { - optionals.set(3); - } - if (struct.isSetLastname()) { - optionals.set(4); - } - if (struct.isSetUniversity()) { - optionals.set(5); - } - if (struct.isSetMail()) { - optionals.set(6); - } - if (struct.isSetTel()) { - optionals.set(7); - } - if (struct.isSetFak()) { - optionals.set(8); - } - if (struct.isSetLicense()) { - optionals.set(9); - } - if (struct.isSetInternet()) { - optionals.set(10); - } - if (struct.isSetRam()) { - optionals.set(11); - } - if (struct.isSetCpu()) { - optionals.set(12); - } - if (struct.isSetImagePath()) { - optionals.set(13); - } - if (struct.isSetIsTemplate()) { - optionals.set(14); - } - if (struct.isSetFilesize()) { - optionals.set(15); - } - if (struct.isSetShareMode()) { - optionals.set(16); - } - if (struct.isSetOs()) { - optionals.set(17); - } - if (struct.isSetUid()) { - optionals.set(18); - } - oprot.writeBitSet(optionals, 19); - if (struct.isSetImagename()) { - oprot.writeString(struct.imagename); - } - if (struct.isSetDesc()) { - oprot.writeString(struct.desc); - } - if (struct.isSetLogin()) { - oprot.writeString(struct.login); - } - if (struct.isSetFirstname()) { - oprot.writeString(struct.firstname); - } - if (struct.isSetLastname()) { - oprot.writeString(struct.lastname); - } - if (struct.isSetUniversity()) { - oprot.writeString(struct.university); - } - if (struct.isSetMail()) { - oprot.writeString(struct.Mail); - } - if (struct.isSetTel()) { - oprot.writeString(struct.Tel); - } - if (struct.isSetFak()) { - oprot.writeString(struct.Fak); - } - if (struct.isSetLicense()) { - oprot.writeBool(struct.license); - } - if (struct.isSetInternet()) { - oprot.writeBool(struct.internet); - } - if (struct.isSetRam()) { - oprot.writeI64(struct.ram); - } - if (struct.isSetCpu()) { - oprot.writeI64(struct.cpu); - } - if (struct.isSetImagePath()) { - oprot.writeString(struct.imagePath); - } - if (struct.isSetIsTemplate()) { - oprot.writeBool(struct.isTemplate); - } - if (struct.isSetFilesize()) { - oprot.writeI64(struct.filesize); - } - if (struct.isSetShareMode()) { - oprot.writeI64(struct.shareMode); - } - if (struct.isSetOs()) { - oprot.writeString(struct.os); + oprot.writeBitSet(optionals, 2); + if (struct.isSetUserID()) { + oprot.writeString(struct.userID); } - if (struct.isSetUid()) { - oprot.writeString(struct.uid); + if (struct.isSetToken()) { + oprot.writeString(struct.token); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, writeVLdata_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionWrite_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(19); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.imagename = iprot.readString(); - struct.setImagenameIsSet(true); + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); } if (incoming.get(1)) { - struct.desc = iprot.readString(); - struct.setDescIsSet(true); - } - if (incoming.get(2)) { - struct.login = iprot.readString(); - struct.setLoginIsSet(true); - } - if (incoming.get(3)) { - struct.firstname = iprot.readString(); - struct.setFirstnameIsSet(true); - } - if (incoming.get(4)) { - struct.lastname = iprot.readString(); - struct.setLastnameIsSet(true); - } - if (incoming.get(5)) { - struct.university = iprot.readString(); - struct.setUniversityIsSet(true); - } - if (incoming.get(6)) { - struct.Mail = iprot.readString(); - struct.setMailIsSet(true); - } - if (incoming.get(7)) { - struct.Tel = iprot.readString(); - struct.setTelIsSet(true); - } - if (incoming.get(8)) { - struct.Fak = iprot.readString(); - struct.setFakIsSet(true); - } - if (incoming.get(9)) { - struct.license = iprot.readBool(); - struct.setLicenseIsSet(true); - } - if (incoming.get(10)) { - struct.internet = iprot.readBool(); - struct.setInternetIsSet(true); - } - if (incoming.get(11)) { - struct.ram = iprot.readI64(); - struct.setRamIsSet(true); - } - if (incoming.get(12)) { - struct.cpu = iprot.readI64(); - struct.setCpuIsSet(true); - } - if (incoming.get(13)) { - struct.imagePath = iprot.readString(); - struct.setImagePathIsSet(true); - } - if (incoming.get(14)) { - struct.isTemplate = iprot.readBool(); - struct.setIsTemplateIsSet(true); - } - if (incoming.get(15)) { - struct.filesize = iprot.readI64(); - struct.setFilesizeIsSet(true); - } - if (incoming.get(16)) { - struct.shareMode = iprot.readI64(); - struct.setShareModeIsSet(true); - } - if (incoming.get(17)) { - struct.os = iprot.readString(); - struct.setOsIsSet(true); - } - if (incoming.get(18)) { - struct.uid = iprot.readString(); - struct.setUidIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } } } } - public static class writeVLdata_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("writeVLdata_result"); + public static class getImageListPermissionWrite_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("getImageListPermissionWrite_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + private static final 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 writeVLdata_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new writeVLdata_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageListPermissionWrite_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageListPermissionWrite_resultTupleSchemeFactory()); } - public boolean 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 { @@ -12347,67 +14415,85 @@ public class Server { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + 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, Image.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeVLdata_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionWrite_result.class, metaDataMap); } - public writeVLdata_result() { + public getImageListPermissionWrite_result() { } - public writeVLdata_result( - boolean success) + public getImageListPermissionWrite_result( + List success) { this(); this.success = success; - setSuccessIsSet(true); } /** * Performs a deep copy on other. */ - public writeVLdata_result(writeVLdata_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public getImageListPermissionWrite_result(getImageListPermissionWrite_result other) { + if (other.isSetSuccess()) { + 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 writeVLdata_result deepCopy() { - return new writeVLdata_result(this); + public getImageListPermissionWrite_result deepCopy() { + return new getImageListPermissionWrite_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; + this.success = null; } - public boolean isSuccess() { + 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(Image elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { return this.success; } - public writeVLdata_result setSuccess(boolean success) { + public getImageListPermissionWrite_result setSuccess(List success) { this.success = success; - setSuccessIsSet(true); return this; } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + return this.success != null; } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + if (!value) { + this.success = null; + } } public void setFieldValue(_Fields field, Object value) { @@ -12416,7 +14502,7 @@ public class Server { if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((List)value); } break; @@ -12426,7 +14512,7 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return Boolean.valueOf(isSuccess()); + return getSuccess(); } throw new IllegalStateException(); @@ -12449,21 +14535,21 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof writeVLdata_result) - return this.equals((writeVLdata_result)that); + if (that instanceof getImageListPermissionWrite_result) + return this.equals((getImageListPermissionWrite_result)that); return false; } - public boolean equals(writeVLdata_result that) { + public boolean equals(getImageListPermissionWrite_result that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; + 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 != that.success) + if (!this.success.equals(that.success)) return false; } @@ -12476,7 +14562,7 @@ public class Server { } @Override - public int compareTo(writeVLdata_result other) { + public int compareTo(getImageListPermissionWrite_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -12510,11 +14596,15 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("writeVLdata_result("); + StringBuilder sb = new StringBuilder("getImageListPermissionWrite_result("); boolean first = true; sb.append("success:"); - sb.append(this.success); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } first = false; sb.append(")"); return sb.toString(); @@ -12535,23 +14625,21 @@ public class Server { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class writeVLdata_resultStandardSchemeFactory implements SchemeFactory { - public writeVLdata_resultStandardScheme getScheme() { - return new writeVLdata_resultStandardScheme(); + private static class getImageListPermissionWrite_resultStandardSchemeFactory implements SchemeFactory { + public getImageListPermissionWrite_resultStandardScheme getScheme() { + return new getImageListPermissionWrite_resultStandardScheme(); } } - private static class writeVLdata_resultStandardScheme extends StandardScheme { + private static class getImageListPermissionWrite_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, writeVLdata_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionWrite_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -12562,8 +14650,19 @@ public class Server { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); + struct.success = new ArrayList(_list0.size); + for (int _i1 = 0; _i1 < _list0.size; ++_i1) + { + Image _elem2; + _elem2 = new Image(); + _elem2.read(iprot); + struct.success.add(_elem2); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -12580,13 +14679,20 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, writeVLdata_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionWrite_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { + if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBool(struct.success); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Image _iter3 : struct.success) + { + _iter3.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -12595,16 +14701,16 @@ public class Server { } - private static class writeVLdata_resultTupleSchemeFactory implements SchemeFactory { - public writeVLdata_resultTupleScheme getScheme() { - return new writeVLdata_resultTupleScheme(); + private static class getImageListPermissionWrite_resultTupleSchemeFactory implements SchemeFactory { + public getImageListPermissionWrite_resultTupleScheme getScheme() { + return new getImageListPermissionWrite_resultTupleScheme(); } } - private static class writeVLdata_resultTupleScheme extends TupleScheme { + private static class getImageListPermissionWrite_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, writeVLdata_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionWrite_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -12612,16 +14718,32 @@ public class Server { } oprot.writeBitSet(optionals, 1); if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + { + oprot.writeI32(struct.success.size()); + for (Image _iter4 : struct.success) + { + _iter4.write(oprot); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, writeVLdata_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionWrite_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.success = iprot.readBool(); + { + org.apache.thrift.protocol.TList _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list5.size); + for (int _i6 = 0; _i6 < _list5.size; ++_i6) + { + Image _elem7; + _elem7 = new Image(); + _elem7.read(iprot); + struct.success.add(_elem7); + } + } struct.setSuccessIsSet(true); } } @@ -12629,22 +14751,25 @@ public class Server { } - public static class getImageListPermissionWrite_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("getImageListPermissionWrite_args"); + public static class getImageListPermissionRead_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("getImageListPermissionRead_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 org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getImageListPermissionWrite_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageListPermissionWrite_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageListPermissionRead_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageListPermissionRead_argsTupleSchemeFactory()); } public String userID; // required + public String token; // 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"); + USER_ID((short)1, "userID"), + TOKEN((short)2, "token"); private static final Map byName = new HashMap(); @@ -12661,6 +14786,8 @@ public class Server { switch(fieldId) { case 1: // USER_ID return USER_ID; + case 2: // TOKEN + return TOKEN; default: return null; } @@ -12706,43 +14833,51 @@ 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.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))); + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", 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(getImageListPermissionWrite_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionRead_args.class, metaDataMap); } - public getImageListPermissionWrite_args() { + public getImageListPermissionRead_args() { } - public getImageListPermissionWrite_args( - String userID) + public getImageListPermissionRead_args( + String userID, + String token) { this(); this.userID = userID; + this.token = token; } /** * Performs a deep copy on other. */ - public getImageListPermissionWrite_args(getImageListPermissionWrite_args other) { + public getImageListPermissionRead_args(getImageListPermissionRead_args other) { if (other.isSetUserID()) { this.userID = other.userID; } + if (other.isSetToken()) { + this.token = other.token; + } } - public getImageListPermissionWrite_args deepCopy() { - return new getImageListPermissionWrite_args(this); + public getImageListPermissionRead_args deepCopy() { + return new getImageListPermissionRead_args(this); } @Override public void clear() { this.userID = null; + this.token = null; } public String getUserID() { return this.userID; } - public getImageListPermissionWrite_args setUserID(String userID) { + public getImageListPermissionRead_args setUserID(String userID) { this.userID = userID; return this; } @@ -12762,6 +14897,30 @@ public class Server { } } + public String getToken() { + return this.token; + } + + public getImageListPermissionRead_args setToken(String token) { + this.token = token; + return this; + } + + public void unsetToken() { + this.token = null; + } + + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; + } + + public void setTokenIsSet(boolean value) { + if (!value) { + this.token = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case USER_ID: @@ -12772,6 +14931,14 @@ public class Server { } break; + case TOKEN: + if (value == null) { + unsetToken(); + } else { + setToken((String)value); + } + break; + } } @@ -12780,6 +14947,9 @@ public class Server { case USER_ID: return getUserID(); + case TOKEN: + return getToken(); + } throw new IllegalStateException(); } @@ -12793,6 +14963,8 @@ public class Server { switch (field) { case USER_ID: return isSetUserID(); + case TOKEN: + return isSetToken(); } throw new IllegalStateException(); } @@ -12801,12 +14973,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImageListPermissionWrite_args) - return this.equals((getImageListPermissionWrite_args)that); + if (that instanceof getImageListPermissionRead_args) + return this.equals((getImageListPermissionRead_args)that); return false; } - public boolean equals(getImageListPermissionWrite_args that) { + public boolean equals(getImageListPermissionRead_args that) { if (that == null) return false; @@ -12819,6 +14991,15 @@ public class Server { return false; } + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) + return false; + if (!this.token.equals(that.token)) + return false; + } + return true; } @@ -12828,7 +15009,7 @@ public class Server { } @Override - public int compareTo(getImageListPermissionWrite_args other) { + public int compareTo(getImageListPermissionRead_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -12845,6 +15026,16 @@ public class Server { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -12862,7 +15053,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageListPermissionWrite_args("); + StringBuilder sb = new StringBuilder("getImageListPermissionRead_args("); boolean first = true; sb.append("userID:"); @@ -12872,6 +15063,14 @@ public class Server { sb.append(this.userID); } first = false; + if (!first) sb.append(", "); + sb.append("token:"); + if (this.token == null) { + sb.append("null"); + } else { + sb.append(this.token); + } + first = false; sb.append(")"); return sb.toString(); } @@ -12897,15 +15096,15 @@ public class Server { } } - private static class getImageListPermissionWrite_argsStandardSchemeFactory implements SchemeFactory { - public getImageListPermissionWrite_argsStandardScheme getScheme() { - return new getImageListPermissionWrite_argsStandardScheme(); + private static class getImageListPermissionRead_argsStandardSchemeFactory implements SchemeFactory { + public getImageListPermissionRead_argsStandardScheme getScheme() { + return new getImageListPermissionRead_argsStandardScheme(); } } - private static class getImageListPermissionWrite_argsStandardScheme extends StandardScheme { + private static class getImageListPermissionRead_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionWrite_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionRead_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -12923,6 +15122,14 @@ public class Server { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // TOKEN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -12934,7 +15141,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionWrite_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionRead_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -12943,55 +15150,70 @@ public class Server { oprot.writeString(struct.userID); oprot.writeFieldEnd(); } + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getImageListPermissionWrite_argsTupleSchemeFactory implements SchemeFactory { - public getImageListPermissionWrite_argsTupleScheme getScheme() { - return new getImageListPermissionWrite_argsTupleScheme(); + private static class getImageListPermissionRead_argsTupleSchemeFactory implements SchemeFactory { + public getImageListPermissionRead_argsTupleScheme getScheme() { + return new getImageListPermissionRead_argsTupleScheme(); } } - private static class getImageListPermissionWrite_argsTupleScheme extends TupleScheme { + private static class getImageListPermissionRead_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionWrite_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionRead_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.isSetToken()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); if (struct.isSetUserID()) { oprot.writeString(struct.userID); } + if (struct.isSetToken()) { + oprot.writeString(struct.token); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionWrite_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionRead_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.userID = iprot.readString(); struct.setUserIDIsSet(true); } + if (incoming.get(1)) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } } } } - public static class getImageListPermissionWrite_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("getImageListPermissionWrite_result"); + public static class getImageListPermissionRead_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("getImageListPermissionRead_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 getImageListPermissionWrite_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageListPermissionWrite_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageListPermissionRead_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageListPermissionRead_resultTupleSchemeFactory()); } public List success; // required @@ -13062,13 +15284,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, Image.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionWrite_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionRead_result.class, metaDataMap); } - public getImageListPermissionWrite_result() { + public getImageListPermissionRead_result() { } - public getImageListPermissionWrite_result( + public getImageListPermissionRead_result( List success) { this(); @@ -13078,7 +15300,7 @@ public class Server { /** * Performs a deep copy on other. */ - public getImageListPermissionWrite_result(getImageListPermissionWrite_result other) { + public getImageListPermissionRead_result(getImageListPermissionRead_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (Image other_element : other.success) { @@ -13088,8 +15310,8 @@ public class Server { } } - public getImageListPermissionWrite_result deepCopy() { - return new getImageListPermissionWrite_result(this); + public getImageListPermissionRead_result deepCopy() { + return new getImageListPermissionRead_result(this); } @Override @@ -13116,7 +15338,7 @@ public class Server { return this.success; } - public getImageListPermissionWrite_result setSuccess(List success) { + public getImageListPermissionRead_result setSuccess(List success) { this.success = success; return this; } @@ -13175,12 +15397,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImageListPermissionWrite_result) - return this.equals((getImageListPermissionWrite_result)that); + if (that instanceof getImageListPermissionRead_result) + return this.equals((getImageListPermissionRead_result)that); return false; } - public boolean equals(getImageListPermissionWrite_result that) { + public boolean equals(getImageListPermissionRead_result that) { if (that == null) return false; @@ -13202,7 +15424,7 @@ public class Server { } @Override - public int compareTo(getImageListPermissionWrite_result other) { + public int compareTo(getImageListPermissionRead_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -13236,7 +15458,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageListPermissionWrite_result("); + StringBuilder sb = new StringBuilder("getImageListPermissionRead_result("); boolean first = true; sb.append("success:"); @@ -13271,15 +15493,15 @@ public class Server { } } - private static class getImageListPermissionWrite_resultStandardSchemeFactory implements SchemeFactory { - public getImageListPermissionWrite_resultStandardScheme getScheme() { - return new getImageListPermissionWrite_resultStandardScheme(); + private static class getImageListPermissionRead_resultStandardSchemeFactory implements SchemeFactory { + public getImageListPermissionRead_resultStandardScheme getScheme() { + return new getImageListPermissionRead_resultStandardScheme(); } } - private static class getImageListPermissionWrite_resultStandardScheme extends StandardScheme { + private static class getImageListPermissionRead_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionWrite_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionRead_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -13292,14 +15514,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); - struct.success = new ArrayList(_list0.size); - for (int _i1 = 0; _i1 < _list0.size; ++_i1) + org.apache.thrift.protocol.TList _list8 = iprot.readListBegin(); + struct.success = new ArrayList(_list8.size); + for (int _i9 = 0; _i9 < _list8.size; ++_i9) { - Image _elem2; - _elem2 = new Image(); - _elem2.read(iprot); - struct.success.add(_elem2); + Image _elem10; + _elem10 = new Image(); + _elem10.read(iprot); + struct.success.add(_elem10); } iprot.readListEnd(); } @@ -13319,7 +15541,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionWrite_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionRead_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -13327,9 +15549,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 (Image _iter3 : struct.success) + for (Image _iter11 : struct.success) { - _iter3.write(oprot); + _iter11.write(oprot); } oprot.writeListEnd(); } @@ -13341,16 +15563,16 @@ public class Server { } - private static class getImageListPermissionWrite_resultTupleSchemeFactory implements SchemeFactory { - public getImageListPermissionWrite_resultTupleScheme getScheme() { - return new getImageListPermissionWrite_resultTupleScheme(); + private static class getImageListPermissionRead_resultTupleSchemeFactory implements SchemeFactory { + public getImageListPermissionRead_resultTupleScheme getScheme() { + return new getImageListPermissionRead_resultTupleScheme(); } } - private static class getImageListPermissionWrite_resultTupleScheme extends TupleScheme { + private static class getImageListPermissionRead_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionWrite_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionRead_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -13360,28 +15582,28 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Image _iter4 : struct.success) + for (Image _iter12 : struct.success) { - _iter4.write(oprot); + _iter12.write(oprot); } } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionWrite_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionRead_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 _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list5.size); - for (int _i6 = 0; _i6 < _list5.size; ++_i6) + org.apache.thrift.protocol.TList _list13 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list13.size); + for (int _i14 = 0; _i14 < _list13.size; ++_i14) { - Image _elem7; - _elem7 = new Image(); - _elem7.read(iprot); - struct.success.add(_elem7); + Image _elem15; + _elem15 = new Image(); + _elem15.read(iprot); + struct.success.add(_elem15); } } struct.setSuccessIsSet(true); @@ -13391,22 +15613,25 @@ public class Server { } - public static class getImageListPermissionRead_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("getImageListPermissionRead_args"); + public static class getImageListPermissionLink_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("getImageListPermissionLink_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 org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getImageListPermissionRead_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageListPermissionRead_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageListPermissionLink_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageListPermissionLink_argsTupleSchemeFactory()); } public String userID; // required + public String token; // 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"); + USER_ID((short)1, "userID"), + TOKEN((short)2, "token"); private static final Map byName = new HashMap(); @@ -13423,6 +15648,8 @@ public class Server { switch(fieldId) { case 1: // USER_ID return USER_ID; + case 2: // TOKEN + return TOKEN; default: return null; } @@ -13468,43 +15695,51 @@ 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.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))); + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", 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(getImageListPermissionRead_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionLink_args.class, metaDataMap); } - public getImageListPermissionRead_args() { + public getImageListPermissionLink_args() { } - public getImageListPermissionRead_args( - String userID) + public getImageListPermissionLink_args( + String userID, + String token) { this(); this.userID = userID; + this.token = token; } /** * Performs a deep copy on other. */ - public getImageListPermissionRead_args(getImageListPermissionRead_args other) { + public getImageListPermissionLink_args(getImageListPermissionLink_args other) { if (other.isSetUserID()) { this.userID = other.userID; } + if (other.isSetToken()) { + this.token = other.token; + } } - public getImageListPermissionRead_args deepCopy() { - return new getImageListPermissionRead_args(this); + public getImageListPermissionLink_args deepCopy() { + return new getImageListPermissionLink_args(this); } @Override public void clear() { this.userID = null; + this.token = null; } public String getUserID() { return this.userID; } - public getImageListPermissionRead_args setUserID(String userID) { + public getImageListPermissionLink_args setUserID(String userID) { this.userID = userID; return this; } @@ -13524,6 +15759,30 @@ public class Server { } } + public String getToken() { + return this.token; + } + + public getImageListPermissionLink_args setToken(String token) { + this.token = token; + return this; + } + + public void unsetToken() { + this.token = null; + } + + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; + } + + public void setTokenIsSet(boolean value) { + if (!value) { + this.token = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case USER_ID: @@ -13534,6 +15793,14 @@ public class Server { } break; + case TOKEN: + if (value == null) { + unsetToken(); + } else { + setToken((String)value); + } + break; + } } @@ -13542,6 +15809,9 @@ public class Server { case USER_ID: return getUserID(); + case TOKEN: + return getToken(); + } throw new IllegalStateException(); } @@ -13555,6 +15825,8 @@ public class Server { switch (field) { case USER_ID: return isSetUserID(); + case TOKEN: + return isSetToken(); } throw new IllegalStateException(); } @@ -13563,12 +15835,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImageListPermissionRead_args) - return this.equals((getImageListPermissionRead_args)that); + if (that instanceof getImageListPermissionLink_args) + return this.equals((getImageListPermissionLink_args)that); return false; } - public boolean equals(getImageListPermissionRead_args that) { + public boolean equals(getImageListPermissionLink_args that) { if (that == null) return false; @@ -13581,6 +15853,15 @@ public class Server { return false; } + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) + return false; + if (!this.token.equals(that.token)) + return false; + } + return true; } @@ -13590,7 +15871,7 @@ public class Server { } @Override - public int compareTo(getImageListPermissionRead_args other) { + public int compareTo(getImageListPermissionLink_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -13607,6 +15888,16 @@ public class Server { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -13624,7 +15915,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageListPermissionRead_args("); + StringBuilder sb = new StringBuilder("getImageListPermissionLink_args("); boolean first = true; sb.append("userID:"); @@ -13634,6 +15925,14 @@ public class Server { sb.append(this.userID); } first = false; + if (!first) sb.append(", "); + sb.append("token:"); + if (this.token == null) { + sb.append("null"); + } else { + sb.append(this.token); + } + first = false; sb.append(")"); return sb.toString(); } @@ -13659,15 +15958,15 @@ public class Server { } } - private static class getImageListPermissionRead_argsStandardSchemeFactory implements SchemeFactory { - public getImageListPermissionRead_argsStandardScheme getScheme() { - return new getImageListPermissionRead_argsStandardScheme(); + private static class getImageListPermissionLink_argsStandardSchemeFactory implements SchemeFactory { + public getImageListPermissionLink_argsStandardScheme getScheme() { + return new getImageListPermissionLink_argsStandardScheme(); } } - private static class getImageListPermissionRead_argsStandardScheme extends StandardScheme { + private static class getImageListPermissionLink_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionRead_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionLink_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -13685,6 +15984,14 @@ public class Server { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // TOKEN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -13696,7 +16003,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionRead_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionLink_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -13705,55 +16012,70 @@ public class Server { oprot.writeString(struct.userID); oprot.writeFieldEnd(); } + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getImageListPermissionRead_argsTupleSchemeFactory implements SchemeFactory { - public getImageListPermissionRead_argsTupleScheme getScheme() { - return new getImageListPermissionRead_argsTupleScheme(); + private static class getImageListPermissionLink_argsTupleSchemeFactory implements SchemeFactory { + public getImageListPermissionLink_argsTupleScheme getScheme() { + return new getImageListPermissionLink_argsTupleScheme(); } } - private static class getImageListPermissionRead_argsTupleScheme extends TupleScheme { + private static class getImageListPermissionLink_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionRead_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionLink_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.isSetToken()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); if (struct.isSetUserID()) { oprot.writeString(struct.userID); } + if (struct.isSetToken()) { + oprot.writeString(struct.token); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionRead_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionLink_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.userID = iprot.readString(); struct.setUserIDIsSet(true); } + if (incoming.get(1)) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } } } } - public static class getImageListPermissionRead_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("getImageListPermissionRead_result"); + public static class getImageListPermissionLink_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("getImageListPermissionLink_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 getImageListPermissionRead_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageListPermissionRead_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageListPermissionLink_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageListPermissionLink_resultTupleSchemeFactory()); } public List success; // required @@ -13824,13 +16146,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, Image.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionRead_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionLink_result.class, metaDataMap); } - public getImageListPermissionRead_result() { + public getImageListPermissionLink_result() { } - public getImageListPermissionRead_result( + public getImageListPermissionLink_result( List success) { this(); @@ -13840,7 +16162,7 @@ public class Server { /** * Performs a deep copy on other. */ - public getImageListPermissionRead_result(getImageListPermissionRead_result other) { + public getImageListPermissionLink_result(getImageListPermissionLink_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (Image other_element : other.success) { @@ -13850,8 +16172,8 @@ public class Server { } } - public getImageListPermissionRead_result deepCopy() { - return new getImageListPermissionRead_result(this); + public getImageListPermissionLink_result deepCopy() { + return new getImageListPermissionLink_result(this); } @Override @@ -13878,7 +16200,7 @@ public class Server { return this.success; } - public getImageListPermissionRead_result setSuccess(List success) { + public getImageListPermissionLink_result setSuccess(List success) { this.success = success; return this; } @@ -13937,12 +16259,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImageListPermissionRead_result) - return this.equals((getImageListPermissionRead_result)that); + if (that instanceof getImageListPermissionLink_result) + return this.equals((getImageListPermissionLink_result)that); return false; } - public boolean equals(getImageListPermissionRead_result that) { + public boolean equals(getImageListPermissionLink_result that) { if (that == null) return false; @@ -13964,7 +16286,7 @@ public class Server { } @Override - public int compareTo(getImageListPermissionRead_result other) { + public int compareTo(getImageListPermissionLink_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -13998,7 +16320,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageListPermissionRead_result("); + StringBuilder sb = new StringBuilder("getImageListPermissionLink_result("); boolean first = true; sb.append("success:"); @@ -14033,15 +16355,15 @@ public class Server { } } - private static class getImageListPermissionRead_resultStandardSchemeFactory implements SchemeFactory { - public getImageListPermissionRead_resultStandardScheme getScheme() { - return new getImageListPermissionRead_resultStandardScheme(); + private static class getImageListPermissionLink_resultStandardSchemeFactory implements SchemeFactory { + public getImageListPermissionLink_resultStandardScheme getScheme() { + return new getImageListPermissionLink_resultStandardScheme(); } } - private static class getImageListPermissionRead_resultStandardScheme extends StandardScheme { + private static class getImageListPermissionLink_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionRead_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionLink_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -14054,14 +16376,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list8 = iprot.readListBegin(); - struct.success = new ArrayList(_list8.size); - for (int _i9 = 0; _i9 < _list8.size; ++_i9) + org.apache.thrift.protocol.TList _list16 = iprot.readListBegin(); + struct.success = new ArrayList(_list16.size); + for (int _i17 = 0; _i17 < _list16.size; ++_i17) { - Image _elem10; - _elem10 = new Image(); - _elem10.read(iprot); - struct.success.add(_elem10); + Image _elem18; + _elem18 = new Image(); + _elem18.read(iprot); + struct.success.add(_elem18); } iprot.readListEnd(); } @@ -14081,7 +16403,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionRead_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionLink_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -14089,9 +16411,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 (Image _iter11 : struct.success) + for (Image _iter19 : struct.success) { - _iter11.write(oprot); + _iter19.write(oprot); } oprot.writeListEnd(); } @@ -14103,16 +16425,16 @@ public class Server { } - private static class getImageListPermissionRead_resultTupleSchemeFactory implements SchemeFactory { - public getImageListPermissionRead_resultTupleScheme getScheme() { - return new getImageListPermissionRead_resultTupleScheme(); + private static class getImageListPermissionLink_resultTupleSchemeFactory implements SchemeFactory { + public getImageListPermissionLink_resultTupleScheme getScheme() { + return new getImageListPermissionLink_resultTupleScheme(); } } - private static class getImageListPermissionRead_resultTupleScheme extends TupleScheme { + private static class getImageListPermissionLink_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionRead_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionLink_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -14122,28 +16444,28 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Image _iter12 : struct.success) + for (Image _iter20 : struct.success) { - _iter12.write(oprot); + _iter20.write(oprot); } } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionRead_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionLink_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 _list13 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list13.size); - for (int _i14 = 0; _i14 < _list13.size; ++_i14) + org.apache.thrift.protocol.TList _list21 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list21.size); + for (int _i22 = 0; _i22 < _list21.size; ++_i22) { - Image _elem15; - _elem15 = new Image(); - _elem15.read(iprot); - struct.success.add(_elem15); + Image _elem23; + _elem23 = new Image(); + _elem23.read(iprot); + struct.success.add(_elem23); } } struct.setSuccessIsSet(true); @@ -14153,22 +16475,25 @@ public class Server { } - public static class getImageListPermissionLink_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("getImageListPermissionLink_args"); + public static class getImageListPermissionAdmin_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("getImageListPermissionAdmin_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 org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getImageListPermissionLink_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageListPermissionLink_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageListPermissionAdmin_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageListPermissionAdmin_argsTupleSchemeFactory()); } public String userID; // required + public String token; // 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"); + USER_ID((short)1, "userID"), + TOKEN((short)2, "token"); private static final Map byName = new HashMap(); @@ -14185,6 +16510,8 @@ public class Server { switch(fieldId) { case 1: // USER_ID return USER_ID; + case 2: // TOKEN + return TOKEN; default: return null; } @@ -14230,43 +16557,51 @@ 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.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))); + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", 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(getImageListPermissionLink_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionAdmin_args.class, metaDataMap); } - public getImageListPermissionLink_args() { + public getImageListPermissionAdmin_args() { } - public getImageListPermissionLink_args( - String userID) + public getImageListPermissionAdmin_args( + String userID, + String token) { this(); this.userID = userID; + this.token = token; } /** * Performs a deep copy on other. */ - public getImageListPermissionLink_args(getImageListPermissionLink_args other) { + public getImageListPermissionAdmin_args(getImageListPermissionAdmin_args other) { if (other.isSetUserID()) { this.userID = other.userID; } + if (other.isSetToken()) { + this.token = other.token; + } } - public getImageListPermissionLink_args deepCopy() { - return new getImageListPermissionLink_args(this); + public getImageListPermissionAdmin_args deepCopy() { + return new getImageListPermissionAdmin_args(this); } @Override public void clear() { this.userID = null; + this.token = null; } public String getUserID() { return this.userID; } - public getImageListPermissionLink_args setUserID(String userID) { + public getImageListPermissionAdmin_args setUserID(String userID) { this.userID = userID; return this; } @@ -14286,6 +16621,30 @@ public class Server { } } + public String getToken() { + return this.token; + } + + public getImageListPermissionAdmin_args setToken(String token) { + this.token = token; + return this; + } + + public void unsetToken() { + this.token = null; + } + + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; + } + + public void setTokenIsSet(boolean value) { + if (!value) { + this.token = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case USER_ID: @@ -14296,6 +16655,14 @@ public class Server { } break; + case TOKEN: + if (value == null) { + unsetToken(); + } else { + setToken((String)value); + } + break; + } } @@ -14304,6 +16671,9 @@ public class Server { case USER_ID: return getUserID(); + case TOKEN: + return getToken(); + } throw new IllegalStateException(); } @@ -14317,6 +16687,8 @@ public class Server { switch (field) { case USER_ID: return isSetUserID(); + case TOKEN: + return isSetToken(); } throw new IllegalStateException(); } @@ -14325,12 +16697,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImageListPermissionLink_args) - return this.equals((getImageListPermissionLink_args)that); + if (that instanceof getImageListPermissionAdmin_args) + return this.equals((getImageListPermissionAdmin_args)that); return false; } - public boolean equals(getImageListPermissionLink_args that) { + public boolean equals(getImageListPermissionAdmin_args that) { if (that == null) return false; @@ -14343,6 +16715,15 @@ public class Server { return false; } + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) + return false; + if (!this.token.equals(that.token)) + return false; + } + return true; } @@ -14352,7 +16733,7 @@ public class Server { } @Override - public int compareTo(getImageListPermissionLink_args other) { + public int compareTo(getImageListPermissionAdmin_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -14369,6 +16750,16 @@ public class Server { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -14386,7 +16777,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageListPermissionLink_args("); + StringBuilder sb = new StringBuilder("getImageListPermissionAdmin_args("); boolean first = true; sb.append("userID:"); @@ -14396,6 +16787,14 @@ public class Server { sb.append(this.userID); } first = false; + if (!first) sb.append(", "); + sb.append("token:"); + if (this.token == null) { + sb.append("null"); + } else { + sb.append(this.token); + } + first = false; sb.append(")"); return sb.toString(); } @@ -14421,15 +16820,15 @@ public class Server { } } - private static class getImageListPermissionLink_argsStandardSchemeFactory implements SchemeFactory { - public getImageListPermissionLink_argsStandardScheme getScheme() { - return new getImageListPermissionLink_argsStandardScheme(); + private static class getImageListPermissionAdmin_argsStandardSchemeFactory implements SchemeFactory { + public getImageListPermissionAdmin_argsStandardScheme getScheme() { + return new getImageListPermissionAdmin_argsStandardScheme(); } } - private static class getImageListPermissionLink_argsStandardScheme extends StandardScheme { + private static class getImageListPermissionAdmin_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionLink_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionAdmin_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -14447,6 +16846,14 @@ public class Server { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // TOKEN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -14458,7 +16865,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionLink_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionAdmin_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -14467,55 +16874,70 @@ public class Server { oprot.writeString(struct.userID); oprot.writeFieldEnd(); } + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getImageListPermissionLink_argsTupleSchemeFactory implements SchemeFactory { - public getImageListPermissionLink_argsTupleScheme getScheme() { - return new getImageListPermissionLink_argsTupleScheme(); + private static class getImageListPermissionAdmin_argsTupleSchemeFactory implements SchemeFactory { + public getImageListPermissionAdmin_argsTupleScheme getScheme() { + return new getImageListPermissionAdmin_argsTupleScheme(); } } - private static class getImageListPermissionLink_argsTupleScheme extends TupleScheme { + private static class getImageListPermissionAdmin_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionLink_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionAdmin_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.isSetToken()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); if (struct.isSetUserID()) { oprot.writeString(struct.userID); } + if (struct.isSetToken()) { + oprot.writeString(struct.token); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionLink_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionAdmin_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.userID = iprot.readString(); struct.setUserIDIsSet(true); } + if (incoming.get(1)) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } } } } - public static class getImageListPermissionLink_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("getImageListPermissionLink_result"); + public static class getImageListPermissionAdmin_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("getImageListPermissionAdmin_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 getImageListPermissionLink_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageListPermissionLink_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageListPermissionAdmin_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageListPermissionAdmin_resultTupleSchemeFactory()); } public List success; // required @@ -14586,13 +17008,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, Image.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionLink_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionAdmin_result.class, metaDataMap); } - public getImageListPermissionLink_result() { + public getImageListPermissionAdmin_result() { } - public getImageListPermissionLink_result( + public getImageListPermissionAdmin_result( List success) { this(); @@ -14602,7 +17024,7 @@ public class Server { /** * Performs a deep copy on other. */ - public getImageListPermissionLink_result(getImageListPermissionLink_result other) { + public getImageListPermissionAdmin_result(getImageListPermissionAdmin_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (Image other_element : other.success) { @@ -14612,8 +17034,8 @@ public class Server { } } - public getImageListPermissionLink_result deepCopy() { - return new getImageListPermissionLink_result(this); + public getImageListPermissionAdmin_result deepCopy() { + return new getImageListPermissionAdmin_result(this); } @Override @@ -14640,7 +17062,7 @@ public class Server { return this.success; } - public getImageListPermissionLink_result setSuccess(List success) { + public getImageListPermissionAdmin_result setSuccess(List success) { this.success = success; return this; } @@ -14699,12 +17121,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImageListPermissionLink_result) - return this.equals((getImageListPermissionLink_result)that); + if (that instanceof getImageListPermissionAdmin_result) + return this.equals((getImageListPermissionAdmin_result)that); return false; } - public boolean equals(getImageListPermissionLink_result that) { + public boolean equals(getImageListPermissionAdmin_result that) { if (that == null) return false; @@ -14726,7 +17148,7 @@ public class Server { } @Override - public int compareTo(getImageListPermissionLink_result other) { + public int compareTo(getImageListPermissionAdmin_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -14760,7 +17182,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageListPermissionLink_result("); + StringBuilder sb = new StringBuilder("getImageListPermissionAdmin_result("); boolean first = true; sb.append("success:"); @@ -14795,15 +17217,15 @@ public class Server { } } - private static class getImageListPermissionLink_resultStandardSchemeFactory implements SchemeFactory { - public getImageListPermissionLink_resultStandardScheme getScheme() { - return new getImageListPermissionLink_resultStandardScheme(); + private static class getImageListPermissionAdmin_resultStandardSchemeFactory implements SchemeFactory { + public getImageListPermissionAdmin_resultStandardScheme getScheme() { + return new getImageListPermissionAdmin_resultStandardScheme(); } } - private static class getImageListPermissionLink_resultStandardScheme extends StandardScheme { + private static class getImageListPermissionAdmin_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionLink_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionAdmin_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -14816,14 +17238,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list16 = iprot.readListBegin(); - struct.success = new ArrayList(_list16.size); - for (int _i17 = 0; _i17 < _list16.size; ++_i17) + org.apache.thrift.protocol.TList _list24 = iprot.readListBegin(); + struct.success = new ArrayList(_list24.size); + for (int _i25 = 0; _i25 < _list24.size; ++_i25) { - Image _elem18; - _elem18 = new Image(); - _elem18.read(iprot); - struct.success.add(_elem18); + Image _elem26; + _elem26 = new Image(); + _elem26.read(iprot); + struct.success.add(_elem26); } iprot.readListEnd(); } @@ -14843,7 +17265,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionLink_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionAdmin_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -14851,9 +17273,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 (Image _iter19 : struct.success) + for (Image _iter27 : struct.success) { - _iter19.write(oprot); + _iter27.write(oprot); } oprot.writeListEnd(); } @@ -14865,16 +17287,16 @@ public class Server { } - private static class getImageListPermissionLink_resultTupleSchemeFactory implements SchemeFactory { - public getImageListPermissionLink_resultTupleScheme getScheme() { - return new getImageListPermissionLink_resultTupleScheme(); + private static class getImageListPermissionAdmin_resultTupleSchemeFactory implements SchemeFactory { + public getImageListPermissionAdmin_resultTupleScheme getScheme() { + return new getImageListPermissionAdmin_resultTupleScheme(); } } - private static class getImageListPermissionLink_resultTupleScheme extends TupleScheme { + private static class getImageListPermissionAdmin_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionLink_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionAdmin_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -14884,28 +17306,28 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Image _iter20 : struct.success) + for (Image _iter28 : struct.success) { - _iter20.write(oprot); + _iter28.write(oprot); } } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionLink_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionAdmin_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 _list21 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list21.size); - for (int _i22 = 0; _i22 < _list21.size; ++_i22) + org.apache.thrift.protocol.TList _list29 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list29.size); + for (int _i30 = 0; _i30 < _list29.size; ++_i30) { - Image _elem23; - _elem23 = new Image(); - _elem23.read(iprot); - struct.success.add(_elem23); + Image _elem31; + _elem31 = new Image(); + _elem31.read(iprot); + struct.success.add(_elem31); } } struct.setSuccessIsSet(true); @@ -14915,22 +17337,22 @@ public class Server { } - public static class getImageListPermissionAdmin_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("getImageListPermissionAdmin_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 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 org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getImageListPermissionAdmin_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageListPermissionAdmin_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageListAllTemplates_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageListAllTemplates_argsTupleSchemeFactory()); } - public String userID; // required + public String token; // 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"); + TOKEN((short)1, "token"); private static final Map byName = new HashMap(); @@ -14945,8 +17367,8 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // USER_ID - return USER_ID; + case 1: // TOKEN + return TOKEN; default: return null; } @@ -14990,71 +17412,71 @@ public class Server { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", 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(getImageListPermissionAdmin_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListAllTemplates_args.class, metaDataMap); } - public getImageListPermissionAdmin_args() { + public getImageListAllTemplates_args() { } - public getImageListPermissionAdmin_args( - String userID) + public getImageListAllTemplates_args( + String token) { this(); - this.userID = userID; + this.token = token; } /** * Performs a deep copy on other. */ - public getImageListPermissionAdmin_args(getImageListPermissionAdmin_args other) { - if (other.isSetUserID()) { - this.userID = other.userID; + public getImageListAllTemplates_args(getImageListAllTemplates_args other) { + if (other.isSetToken()) { + this.token = other.token; } } - public getImageListPermissionAdmin_args deepCopy() { - return new getImageListPermissionAdmin_args(this); + public getImageListAllTemplates_args deepCopy() { + return new getImageListAllTemplates_args(this); } @Override public void clear() { - this.userID = null; + this.token = null; } - public String getUserID() { - return this.userID; + public String getToken() { + return this.token; } - public getImageListPermissionAdmin_args setUserID(String userID) { - this.userID = userID; + public getImageListAllTemplates_args setToken(String token) { + this.token = token; return this; } - public void unsetUserID() { - this.userID = null; + public void unsetToken() { + this.token = null; } - /** Returns true if field userID is set (has been assigned a value) and false otherwise */ - public boolean isSetUserID() { - return this.userID != null; + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; } - public void setUserIDIsSet(boolean value) { + public void setTokenIsSet(boolean value) { if (!value) { - this.userID = null; + this.token = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case USER_ID: + case TOKEN: if (value == null) { - unsetUserID(); + unsetToken(); } else { - setUserID((String)value); + setToken((String)value); } break; @@ -15063,8 +17485,8 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case USER_ID: - return getUserID(); + case TOKEN: + return getToken(); } throw new IllegalStateException(); @@ -15077,8 +17499,8 @@ public class Server { } switch (field) { - case USER_ID: - return isSetUserID(); + case TOKEN: + return isSetToken(); } throw new IllegalStateException(); } @@ -15087,21 +17509,21 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImageListPermissionAdmin_args) - return this.equals((getImageListPermissionAdmin_args)that); + if (that instanceof getImageListAllTemplates_args) + return this.equals((getImageListAllTemplates_args)that); return false; } - public boolean equals(getImageListPermissionAdmin_args that) { + public boolean equals(getImageListAllTemplates_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)) + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) return false; - if (!this.userID.equals(that.userID)) + if (!this.token.equals(that.token)) return false; } @@ -15114,19 +17536,19 @@ public class Server { } @Override - public int compareTo(getImageListPermissionAdmin_args other) { + public int compareTo(getImageListAllTemplates_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); if (lastComparison != 0) { return lastComparison; } - if (isSetUserID()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) { return lastComparison; } @@ -15148,14 +17570,14 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageListPermissionAdmin_args("); + StringBuilder sb = new StringBuilder("getImageListAllTemplates_args("); boolean first = true; - sb.append("userID:"); - if (this.userID == null) { + sb.append("token:"); + if (this.token == null) { sb.append("null"); } else { - sb.append(this.userID); + sb.append(this.token); } first = false; sb.append(")"); @@ -15183,15 +17605,15 @@ public class Server { } } - private static class getImageListPermissionAdmin_argsStandardSchemeFactory implements SchemeFactory { - public getImageListPermissionAdmin_argsStandardScheme getScheme() { - return new getImageListPermissionAdmin_argsStandardScheme(); + private static class getImageListAllTemplates_argsStandardSchemeFactory implements SchemeFactory { + public getImageListAllTemplates_argsStandardScheme getScheme() { + return new getImageListAllTemplates_argsStandardScheme(); } } - private static class getImageListPermissionAdmin_argsStandardScheme extends StandardScheme { + private static class getImageListAllTemplates_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionAdmin_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) @@ -15201,10 +17623,10 @@ public class Server { break; } switch (schemeField.id) { - case 1: // USER_ID + case 1: // TOKEN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.userID = iprot.readString(); - struct.setUserIDIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -15220,13 +17642,13 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionAdmin_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); - if (struct.userID != null) { - oprot.writeFieldBegin(USER_ID_FIELD_DESC); - oprot.writeString(struct.userID); + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -15235,49 +17657,49 @@ public class Server { } - private static class getImageListPermissionAdmin_argsTupleSchemeFactory implements SchemeFactory { - public getImageListPermissionAdmin_argsTupleScheme getScheme() { - return new getImageListPermissionAdmin_argsTupleScheme(); + private static class getImageListAllTemplates_argsTupleSchemeFactory implements SchemeFactory { + public getImageListAllTemplates_argsTupleScheme getScheme() { + return new getImageListAllTemplates_argsTupleScheme(); } } - private static class getImageListPermissionAdmin_argsTupleScheme extends TupleScheme { + private static class getImageListAllTemplates_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionAdmin_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; BitSet optionals = new BitSet(); - if (struct.isSetUserID()) { + if (struct.isSetToken()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); - if (struct.isSetUserID()) { - oprot.writeString(struct.userID); + if (struct.isSetToken()) { + oprot.writeString(struct.token); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionAdmin_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; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.userID = iprot.readString(); - struct.setUserIDIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } } } } - public static class getImageListPermissionAdmin_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("getImageListPermissionAdmin_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 getImageListPermissionAdmin_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageListPermissionAdmin_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageListAllTemplates_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageListAllTemplates_resultTupleSchemeFactory()); } public List success; // required @@ -15348,13 +17770,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, Image.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionAdmin_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListAllTemplates_result.class, metaDataMap); } - public getImageListPermissionAdmin_result() { + public getImageListAllTemplates_result() { } - public getImageListPermissionAdmin_result( + public getImageListAllTemplates_result( List success) { this(); @@ -15364,7 +17786,7 @@ public class Server { /** * Performs a deep copy on other. */ - public getImageListPermissionAdmin_result(getImageListPermissionAdmin_result other) { + public getImageListAllTemplates_result(getImageListAllTemplates_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (Image other_element : other.success) { @@ -15374,8 +17796,8 @@ public class Server { } } - public getImageListPermissionAdmin_result deepCopy() { - return new getImageListPermissionAdmin_result(this); + public getImageListAllTemplates_result deepCopy() { + return new getImageListAllTemplates_result(this); } @Override @@ -15402,7 +17824,7 @@ public class Server { return this.success; } - public getImageListPermissionAdmin_result setSuccess(List success) { + public getImageListAllTemplates_result setSuccess(List success) { this.success = success; return this; } @@ -15461,12 +17883,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImageListPermissionAdmin_result) - return this.equals((getImageListPermissionAdmin_result)that); + if (that instanceof getImageListAllTemplates_result) + return this.equals((getImageListAllTemplates_result)that); return false; } - public boolean equals(getImageListPermissionAdmin_result that) { + public boolean equals(getImageListAllTemplates_result that) { if (that == null) return false; @@ -15488,7 +17910,7 @@ public class Server { } @Override - public int compareTo(getImageListPermissionAdmin_result other) { + public int compareTo(getImageListAllTemplates_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -15522,7 +17944,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageListPermissionAdmin_result("); + StringBuilder sb = new StringBuilder("getImageListAllTemplates_result("); boolean first = true; sb.append("success:"); @@ -15557,15 +17979,15 @@ public class Server { } } - private static class getImageListPermissionAdmin_resultStandardSchemeFactory implements SchemeFactory { - public getImageListPermissionAdmin_resultStandardScheme getScheme() { - return new getImageListPermissionAdmin_resultStandardScheme(); + private static class getImageListAllTemplates_resultStandardSchemeFactory implements SchemeFactory { + public getImageListAllTemplates_resultStandardScheme getScheme() { + return new getImageListAllTemplates_resultStandardScheme(); } } - private static class getImageListPermissionAdmin_resultStandardScheme extends StandardScheme { + private static class getImageListAllTemplates_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionAdmin_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) @@ -15578,14 +18000,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list24 = iprot.readListBegin(); - struct.success = new ArrayList(_list24.size); - for (int _i25 = 0; _i25 < _list24.size; ++_i25) + org.apache.thrift.protocol.TList _list32 = iprot.readListBegin(); + struct.success = new ArrayList(_list32.size); + for (int _i33 = 0; _i33 < _list32.size; ++_i33) { - Image _elem26; - _elem26 = new Image(); - _elem26.read(iprot); - struct.success.add(_elem26); + Image _elem34; + _elem34 = new Image(); + _elem34.read(iprot); + struct.success.add(_elem34); } iprot.readListEnd(); } @@ -15605,7 +18027,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionAdmin_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); @@ -15613,9 +18035,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 (Image _iter27 : struct.success) + for (Image _iter35 : struct.success) { - _iter27.write(oprot); + _iter35.write(oprot); } oprot.writeListEnd(); } @@ -15627,16 +18049,16 @@ public class Server { } - private static class getImageListPermissionAdmin_resultTupleSchemeFactory implements SchemeFactory { - public getImageListPermissionAdmin_resultTupleScheme getScheme() { - return new getImageListPermissionAdmin_resultTupleScheme(); + private static class getImageListAllTemplates_resultTupleSchemeFactory implements SchemeFactory { + public getImageListAllTemplates_resultTupleScheme getScheme() { + return new getImageListAllTemplates_resultTupleScheme(); } } - private static class getImageListPermissionAdmin_resultTupleScheme extends TupleScheme { + private static class getImageListAllTemplates_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionAdmin_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()) { @@ -15646,28 +18068,28 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Image _iter28 : struct.success) + for (Image _iter36 : struct.success) { - _iter28.write(oprot); + _iter36.write(oprot); } } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionAdmin_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 _list29 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list29.size); - for (int _i30 = 0; _i30 < _list29.size; ++_i30) + 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); + for (int _i38 = 0; _i38 < _list37.size; ++_i38) { - Image _elem31; - _elem31 = new Image(); - _elem31.read(iprot); - struct.success.add(_elem31); + Image _elem39; + _elem39 = new Image(); + _elem39.read(iprot); + struct.success.add(_elem39); } } struct.setSuccessIsSet(true); @@ -15677,20 +18099,22 @@ public class Server { } - 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"); + public static class getImageList_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("getImageList_args"); + private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getImageListAllTemplates_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageListAllTemplates_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageList_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageList_argsTupleSchemeFactory()); } + public String token; // 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 { -; + TOKEN((short)1, "token"); private static final Map byName = new HashMap(); @@ -15705,6 +18129,8 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 1: // TOKEN + return TOKEN; default: return null; } @@ -15743,37 +18169,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.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", 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(getImageListAllTemplates_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageList_args.class, metaDataMap); } - public getImageListAllTemplates_args() { + public getImageList_args() { + } + + public getImageList_args( + String token) + { + this(); + this.token = token; } /** * Performs a deep copy on other. */ - public getImageListAllTemplates_args(getImageListAllTemplates_args other) { + public getImageList_args(getImageList_args other) { + if (other.isSetToken()) { + this.token = other.token; + } } - public getImageListAllTemplates_args deepCopy() { - return new getImageListAllTemplates_args(this); + public getImageList_args deepCopy() { + return new getImageList_args(this); } @Override public void clear() { + this.token = null; + } + + public String getToken() { + return this.token; + } + + public getImageList_args setToken(String token) { + this.token = token; + return this; + } + + public void unsetToken() { + this.token = null; + } + + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; + } + + public void setTokenIsSet(boolean value) { + if (!value) { + this.token = null; + } } public void setFieldValue(_Fields field, Object value) { switch (field) { + case TOKEN: + if (value == null) { + unsetToken(); + } else { + setToken((String)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { + case TOKEN: + return getToken(); + } throw new IllegalStateException(); } @@ -15785,6 +18261,8 @@ public class Server { } switch (field) { + case TOKEN: + return isSetToken(); } throw new IllegalStateException(); } @@ -15793,15 +18271,24 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImageListAllTemplates_args) - return this.equals((getImageListAllTemplates_args)that); + if (that instanceof getImageList_args) + return this.equals((getImageList_args)that); return false; } - public boolean equals(getImageListAllTemplates_args that) { + public boolean equals(getImageList_args that) { if (that == null) return false; + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) + return false; + if (!this.token.equals(that.token)) + return false; + } + return true; } @@ -15811,13 +18298,23 @@ public class Server { } @Override - public int compareTo(getImageListAllTemplates_args other) { + public int compareTo(getImageList_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -15835,9 +18332,16 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageListAllTemplates_args("); + StringBuilder sb = new StringBuilder("getImageList_args("); boolean first = true; + sb.append("token:"); + if (this.token == null) { + sb.append("null"); + } else { + sb.append(this.token); + } + first = false; sb.append(")"); return sb.toString(); } @@ -15863,15 +18367,15 @@ public class Server { } } - private static class getImageListAllTemplates_argsStandardSchemeFactory implements SchemeFactory { - public getImageListAllTemplates_argsStandardScheme getScheme() { - return new getImageListAllTemplates_argsStandardScheme(); + private static class getImageList_argsStandardSchemeFactory implements SchemeFactory { + public getImageList_argsStandardScheme getScheme() { + return new getImageList_argsStandardScheme(); } } - private static class getImageListAllTemplates_argsStandardScheme extends StandardScheme { + private static class getImageList_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListAllTemplates_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageList_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -15881,6 +18385,14 @@ public class Server { break; } switch (schemeField.id) { + case 1: // TOKEN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -15892,46 +18404,64 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListAllTemplates_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageList_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getImageListAllTemplates_argsTupleSchemeFactory implements SchemeFactory { - public getImageListAllTemplates_argsTupleScheme getScheme() { - return new getImageListAllTemplates_argsTupleScheme(); + private static class getImageList_argsTupleSchemeFactory implements SchemeFactory { + public getImageList_argsTupleScheme getScheme() { + return new getImageList_argsTupleScheme(); } } - private static class getImageListAllTemplates_argsTupleScheme extends TupleScheme { + private static class getImageList_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImageListAllTemplates_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImageList_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetToken()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetToken()) { + oprot.writeString(struct.token); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImageListAllTemplates_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImageList_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } } } } - 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"); + public static class getImageList_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("getImageList_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 getImageListAllTemplates_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageListAllTemplates_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageList_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageList_resultTupleSchemeFactory()); } public List success; // required @@ -16002,13 +18532,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, Image.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListAllTemplates_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageList_result.class, metaDataMap); } - public getImageListAllTemplates_result() { + public getImageList_result() { } - public getImageListAllTemplates_result( + public getImageList_result( List success) { this(); @@ -16018,7 +18548,7 @@ public class Server { /** * Performs a deep copy on other. */ - public getImageListAllTemplates_result(getImageListAllTemplates_result other) { + public getImageList_result(getImageList_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (Image other_element : other.success) { @@ -16028,8 +18558,8 @@ public class Server { } } - public getImageListAllTemplates_result deepCopy() { - return new getImageListAllTemplates_result(this); + public getImageList_result deepCopy() { + return new getImageList_result(this); } @Override @@ -16056,7 +18586,7 @@ public class Server { return this.success; } - public getImageListAllTemplates_result setSuccess(List success) { + public getImageList_result setSuccess(List success) { this.success = success; return this; } @@ -16115,12 +18645,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImageListAllTemplates_result) - return this.equals((getImageListAllTemplates_result)that); + if (that instanceof getImageList_result) + return this.equals((getImageList_result)that); return false; } - public boolean equals(getImageListAllTemplates_result that) { + public boolean equals(getImageList_result that) { if (that == null) return false; @@ -16142,7 +18672,7 @@ public class Server { } @Override - public int compareTo(getImageListAllTemplates_result other) { + public int compareTo(getImageList_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -16176,7 +18706,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageListAllTemplates_result("); + StringBuilder sb = new StringBuilder("getImageList_result("); boolean first = true; sb.append("success:"); @@ -16211,15 +18741,15 @@ public class Server { } } - private static class getImageListAllTemplates_resultStandardSchemeFactory implements SchemeFactory { - public getImageListAllTemplates_resultStandardScheme getScheme() { - return new getImageListAllTemplates_resultStandardScheme(); + private static class getImageList_resultStandardSchemeFactory implements SchemeFactory { + public getImageList_resultStandardScheme getScheme() { + return new getImageList_resultStandardScheme(); } } - private static class getImageListAllTemplates_resultStandardScheme extends StandardScheme { + private static class getImageList_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListAllTemplates_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageList_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -16232,14 +18762,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list32 = iprot.readListBegin(); - struct.success = new ArrayList(_list32.size); - for (int _i33 = 0; _i33 < _list32.size; ++_i33) + org.apache.thrift.protocol.TList _list40 = iprot.readListBegin(); + struct.success = new ArrayList(_list40.size); + for (int _i41 = 0; _i41 < _list40.size; ++_i41) { - Image _elem34; - _elem34 = new Image(); - _elem34.read(iprot); - struct.success.add(_elem34); + Image _elem42; + _elem42 = new Image(); + _elem42.read(iprot); + struct.success.add(_elem42); } iprot.readListEnd(); } @@ -16259,7 +18789,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListAllTemplates_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageList_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -16267,9 +18797,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 (Image _iter35 : struct.success) + for (Image _iter43 : struct.success) { - _iter35.write(oprot); + _iter43.write(oprot); } oprot.writeListEnd(); } @@ -16281,16 +18811,16 @@ public class Server { } - private static class getImageListAllTemplates_resultTupleSchemeFactory implements SchemeFactory { - public getImageListAllTemplates_resultTupleScheme getScheme() { - return new getImageListAllTemplates_resultTupleScheme(); + private static class getImageList_resultTupleSchemeFactory implements SchemeFactory { + public getImageList_resultTupleScheme getScheme() { + return new getImageList_resultTupleScheme(); } } - private static class getImageListAllTemplates_resultTupleScheme extends TupleScheme { + private static class getImageList_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImageListAllTemplates_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImageList_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -16300,28 +18830,28 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Image _iter36 : struct.success) + for (Image _iter44 : struct.success) { - _iter36.write(oprot); + _iter44.write(oprot); } } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImageListAllTemplates_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImageList_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); - for (int _i38 = 0; _i38 < _list37.size; ++_i38) + org.apache.thrift.protocol.TList _list45 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list45.size); + for (int _i46 = 0; _i46 < _list45.size; ++_i46) { - Image _elem39; - _elem39 = new Image(); - _elem39.read(iprot); - struct.success.add(_elem39); + Image _elem47; + _elem47 = new Image(); + _elem47.read(iprot); + struct.success.add(_elem47); } } struct.setSuccessIsSet(true); @@ -16331,22 +18861,22 @@ public class Server { } - public static class getImageList_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("getImageList_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 org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getImageList_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageList_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getLectureList_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureList_argsTupleSchemeFactory()); } - public String userID; // required + public String token; // 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"); + TOKEN((short)1, "token"); private static final Map byName = new HashMap(); @@ -16361,8 +18891,8 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // USER_ID - return USER_ID; + case 1: // TOKEN + return TOKEN; default: return null; } @@ -16406,71 +18936,71 @@ public class Server { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", 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(getImageList_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureList_args.class, metaDataMap); } - public getImageList_args() { + public getLectureList_args() { } - public getImageList_args( - String userID) + public getLectureList_args( + String token) { this(); - this.userID = userID; + this.token = token; } /** * Performs a deep copy on other. */ - public getImageList_args(getImageList_args other) { - if (other.isSetUserID()) { - this.userID = other.userID; + public getLectureList_args(getLectureList_args other) { + if (other.isSetToken()) { + this.token = other.token; } } - public getImageList_args deepCopy() { - return new getImageList_args(this); + public getLectureList_args deepCopy() { + return new getLectureList_args(this); } @Override public void clear() { - this.userID = null; + this.token = null; } - public String getUserID() { - return this.userID; + public String getToken() { + return this.token; } - public getImageList_args setUserID(String userID) { - this.userID = userID; + public getLectureList_args setToken(String token) { + this.token = token; return this; } - public void unsetUserID() { - this.userID = null; + public void unsetToken() { + this.token = null; } - /** Returns true if field userID is set (has been assigned a value) and false otherwise */ - public boolean isSetUserID() { - return this.userID != null; + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; } - public void setUserIDIsSet(boolean value) { + public void setTokenIsSet(boolean value) { if (!value) { - this.userID = null; + this.token = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case USER_ID: + case TOKEN: if (value == null) { - unsetUserID(); + unsetToken(); } else { - setUserID((String)value); + setToken((String)value); } break; @@ -16479,8 +19009,8 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case USER_ID: - return getUserID(); + case TOKEN: + return getToken(); } throw new IllegalStateException(); @@ -16493,8 +19023,8 @@ public class Server { } switch (field) { - case USER_ID: - return isSetUserID(); + case TOKEN: + return isSetToken(); } throw new IllegalStateException(); } @@ -16503,21 +19033,21 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImageList_args) - return this.equals((getImageList_args)that); + if (that instanceof getLectureList_args) + return this.equals((getLectureList_args)that); return false; } - public boolean equals(getImageList_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)) + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) return false; - if (!this.userID.equals(that.userID)) + if (!this.token.equals(that.token)) return false; } @@ -16530,19 +19060,19 @@ public class Server { } @Override - public int compareTo(getImageList_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()); + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); if (lastComparison != 0) { return lastComparison; } - if (isSetUserID()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) { return lastComparison; } @@ -16564,14 +19094,14 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageList_args("); + StringBuilder sb = new StringBuilder("getLectureList_args("); boolean first = true; - sb.append("userID:"); - if (this.userID == null) { + sb.append("token:"); + if (this.token == null) { sb.append("null"); } else { - sb.append(this.userID); + sb.append(this.token); } first = false; sb.append(")"); @@ -16599,15 +19129,15 @@ public class Server { } } - private static class getImageList_argsStandardSchemeFactory implements SchemeFactory { - public getImageList_argsStandardScheme getScheme() { - return new getImageList_argsStandardScheme(); + private static class getLectureList_argsStandardSchemeFactory implements SchemeFactory { + public getLectureList_argsStandardScheme getScheme() { + return new getLectureList_argsStandardScheme(); } } - private static class getImageList_argsStandardScheme extends StandardScheme { + private static class getLectureList_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImageList_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) @@ -16617,10 +19147,10 @@ public class Server { break; } switch (schemeField.id) { - case 1: // USER_ID + case 1: // TOKEN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.userID = iprot.readString(); - struct.setUserIDIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -16636,13 +19166,13 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImageList_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); + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -16651,52 +19181,52 @@ public class Server { } - private static class getImageList_argsTupleSchemeFactory implements SchemeFactory { - public getImageList_argsTupleScheme getScheme() { - return new getImageList_argsTupleScheme(); + private static class getLectureList_argsTupleSchemeFactory implements SchemeFactory { + public getLectureList_argsTupleScheme getScheme() { + return new getLectureList_argsTupleScheme(); } } - private static class getImageList_argsTupleScheme extends TupleScheme { + private static class getLectureList_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImageList_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()) { + if (struct.isSetToken()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); - if (struct.isSetUserID()) { - oprot.writeString(struct.userID); + if (struct.isSetToken()) { + oprot.writeString(struct.token); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImageList_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); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } } } } - public static class getImageList_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("getImageList_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 getImageList_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageList_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getLectureList_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureList_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 { @@ -16762,16 +19292,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, Image.class)))); + 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(getImageList_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureList_result.class, metaDataMap); } - public getImageList_result() { + public getLectureList_result() { } - public getImageList_result( - List success) + public getLectureList_result( + List success) { this(); this.success = success; @@ -16780,18 +19310,18 @@ public class Server { /** * Performs a deep copy on other. */ - public getImageList_result(getImageList_result other) { + public getLectureList_result(getLectureList_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (Image other_element : other.success) { - __this__success.add(new Image(other_element)); + 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 getImageList_result deepCopy() { - return new getImageList_result(this); + public getLectureList_result deepCopy() { + return new getLectureList_result(this); } @Override @@ -16803,22 +19333,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(Image 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 getImageList_result setSuccess(List success) { + public getLectureList_result setSuccess(List success) { this.success = success; return this; } @@ -16844,7 +19374,7 @@ public class Server { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -16877,12 +19407,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImageList_result) - return this.equals((getImageList_result)that); + if (that instanceof getLectureList_result) + return this.equals((getLectureList_result)that); return false; } - public boolean equals(getImageList_result that) { + public boolean equals(getLectureList_result that) { if (that == null) return false; @@ -16904,7 +19434,7 @@ public class Server { } @Override - public int compareTo(getImageList_result other) { + public int compareTo(getLectureList_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -16938,7 +19468,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageList_result("); + StringBuilder sb = new StringBuilder("getLectureList_result("); boolean first = true; sb.append("success:"); @@ -16973,15 +19503,15 @@ public class Server { } } - private static class getImageList_resultStandardSchemeFactory implements SchemeFactory { - public getImageList_resultStandardScheme getScheme() { - return new getImageList_resultStandardScheme(); + private static class getLectureList_resultStandardSchemeFactory implements SchemeFactory { + public getLectureList_resultStandardScheme getScheme() { + return new getLectureList_resultStandardScheme(); } } - private static class getImageList_resultStandardScheme extends StandardScheme { + private static class getLectureList_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImageList_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) @@ -16994,14 +19524,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list40 = iprot.readListBegin(); - struct.success = new ArrayList(_list40.size); - for (int _i41 = 0; _i41 < _list40.size; ++_i41) + org.apache.thrift.protocol.TList _list48 = iprot.readListBegin(); + struct.success = new ArrayList(_list48.size); + for (int _i49 = 0; _i49 < _list48.size; ++_i49) { - Image _elem42; - _elem42 = new Image(); - _elem42.read(iprot); - struct.success.add(_elem42); + Lecture _elem50; + _elem50 = new Lecture(); + _elem50.read(iprot); + struct.success.add(_elem50); } iprot.readListEnd(); } @@ -17021,7 +19551,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImageList_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); @@ -17029,9 +19559,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 (Image _iter43 : struct.success) + for (Lecture _iter51 : struct.success) { - _iter43.write(oprot); + _iter51.write(oprot); } oprot.writeListEnd(); } @@ -17043,16 +19573,16 @@ public class Server { } - private static class getImageList_resultTupleSchemeFactory implements SchemeFactory { - public getImageList_resultTupleScheme getScheme() { - return new getImageList_resultTupleScheme(); + private static class getLectureList_resultTupleSchemeFactory implements SchemeFactory { + public getLectureList_resultTupleScheme getScheme() { + return new getLectureList_resultTupleScheme(); } } - private static class getImageList_resultTupleScheme extends TupleScheme { + private static class getLectureList_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImageList_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()) { @@ -17062,28 +19592,28 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Image _iter44 : struct.success) + for (Lecture _iter52 : struct.success) { - _iter44.write(oprot); + _iter52.write(oprot); } } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImageList_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)) { { - org.apache.thrift.protocol.TList _list45 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list45.size); - for (int _i46 = 0; _i46 < _list45.size; ++_i46) + org.apache.thrift.protocol.TList _list53 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list53.size); + for (int _i54 = 0; _i54 < _list53.size; ++_i54) { - Image _elem47; - _elem47 = new Image(); - _elem47.read(iprot); - struct.success.add(_elem47); + Lecture _elem55; + _elem55 = new Lecture(); + _elem55.read(iprot); + struct.success.add(_elem55); } } struct.setSuccessIsSet(true); @@ -17093,20 +19623,22 @@ 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 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 TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)1); 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 getLectureListPermissionRead_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureListPermissionRead_argsTupleSchemeFactory()); } + public String token; // 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 { -; + TOKEN((short)1, "token"); private static final Map byName = new HashMap(); @@ -17121,6 +19653,8 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 1: // TOKEN + return TOKEN; default: return null; } @@ -17159,37 +19693,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.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", 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(getLectureList_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureListPermissionRead_args.class, metaDataMap); } - public getLectureList_args() { + public getLectureListPermissionRead_args() { + } + + public getLectureListPermissionRead_args( + String token) + { + this(); + this.token = token; } /** * Performs a deep copy on other. */ - public getLectureList_args(getLectureList_args other) { + public getLectureListPermissionRead_args(getLectureListPermissionRead_args other) { + if (other.isSetToken()) { + this.token = other.token; + } } - public getLectureList_args deepCopy() { - return new getLectureList_args(this); + public getLectureListPermissionRead_args deepCopy() { + return new getLectureListPermissionRead_args(this); } @Override public void clear() { + this.token = null; + } + + public String getToken() { + return this.token; + } + + public getLectureListPermissionRead_args setToken(String token) { + this.token = token; + return this; + } + + public void unsetToken() { + this.token = null; + } + + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; + } + + public void setTokenIsSet(boolean value) { + if (!value) { + this.token = null; + } } public void setFieldValue(_Fields field, Object value) { switch (field) { + case TOKEN: + if (value == null) { + unsetToken(); + } else { + setToken((String)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { + case TOKEN: + return getToken(); + } throw new IllegalStateException(); } @@ -17201,6 +19785,8 @@ public class Server { } switch (field) { + case TOKEN: + return isSetToken(); } throw new IllegalStateException(); } @@ -17209,15 +19795,24 @@ 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 getLectureListPermissionRead_args) + return this.equals((getLectureListPermissionRead_args)that); return false; } - public boolean equals(getLectureList_args that) { + public boolean equals(getLectureListPermissionRead_args that) { if (that == null) return false; + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) + return false; + if (!this.token.equals(that.token)) + return false; + } + return true; } @@ -17227,13 +19822,23 @@ public class Server { } @Override - public int compareTo(getLectureList_args other) { + public int compareTo(getLectureListPermissionRead_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -17251,9 +19856,16 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLectureList_args("); + StringBuilder sb = new StringBuilder("getLectureListPermissionRead_args("); boolean first = true; + sb.append("token:"); + if (this.token == null) { + sb.append("null"); + } else { + sb.append(this.token); + } + first = false; sb.append(")"); return sb.toString(); } @@ -17279,15 +19891,15 @@ public class Server { } } - private static class getLectureList_argsStandardSchemeFactory implements SchemeFactory { - public getLectureList_argsStandardScheme getScheme() { - return new getLectureList_argsStandardScheme(); + private static class getLectureListPermissionRead_argsStandardSchemeFactory implements SchemeFactory { + public getLectureListPermissionRead_argsStandardScheme getScheme() { + return new getLectureListPermissionRead_argsStandardScheme(); } } - private static class getLectureList_argsStandardScheme extends StandardScheme { + private static class getLectureListPermissionRead_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, getLectureListPermissionRead_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -17297,6 +19909,14 @@ public class Server { break; } switch (schemeField.id) { + case 1: // TOKEN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -17308,46 +19928,64 @@ 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, getLectureListPermissionRead_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getLectureList_argsTupleSchemeFactory implements SchemeFactory { - public getLectureList_argsTupleScheme getScheme() { - return new getLectureList_argsTupleScheme(); + private static class getLectureListPermissionRead_argsTupleSchemeFactory implements SchemeFactory { + public getLectureListPermissionRead_argsTupleScheme getScheme() { + return new getLectureListPermissionRead_argsTupleScheme(); } } - private static class getLectureList_argsTupleScheme extends TupleScheme { + private static class getLectureListPermissionRead_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, getLectureListPermissionRead_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetToken()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetToken()) { + oprot.writeString(struct.token); + } } @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, getLectureListPermissionRead_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } } } } - 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 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 getLectureList_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLectureList_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getLectureListPermissionRead_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureListPermissionRead_resultTupleSchemeFactory()); } public List success; // required @@ -17418,13 +20056,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(getLectureList_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureListPermissionRead_result.class, metaDataMap); } - public getLectureList_result() { + public getLectureListPermissionRead_result() { } - public getLectureList_result( + public getLectureListPermissionRead_result( List success) { this(); @@ -17434,7 +20072,7 @@ public class Server { /** * Performs a deep copy on other. */ - public getLectureList_result(getLectureList_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) { @@ -17444,8 +20082,8 @@ public class Server { } } - public getLectureList_result deepCopy() { - return new getLectureList_result(this); + public getLectureListPermissionRead_result deepCopy() { + return new getLectureListPermissionRead_result(this); } @Override @@ -17472,7 +20110,7 @@ public class Server { return this.success; } - public getLectureList_result setSuccess(List success) { + public getLectureListPermissionRead_result setSuccess(List success) { this.success = success; return this; } @@ -17531,12 +20169,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 getLectureListPermissionRead_result) + return this.equals((getLectureListPermissionRead_result)that); return false; } - public boolean equals(getLectureList_result that) { + public boolean equals(getLectureListPermissionRead_result that) { if (that == null) return false; @@ -17558,7 +20196,7 @@ public class Server { } @Override - public int compareTo(getLectureList_result other) { + public int compareTo(getLectureListPermissionRead_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -17592,7 +20230,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLectureList_result("); + StringBuilder sb = new StringBuilder("getLectureListPermissionRead_result("); boolean first = true; sb.append("success:"); @@ -17627,15 +20265,15 @@ public class Server { } } - private static class getLectureList_resultStandardSchemeFactory implements SchemeFactory { - public getLectureList_resultStandardScheme getScheme() { - return new getLectureList_resultStandardScheme(); + private static class getLectureListPermissionRead_resultStandardSchemeFactory implements SchemeFactory { + public getLectureListPermissionRead_resultStandardScheme getScheme() { + return new getLectureListPermissionRead_resultStandardScheme(); } } - private static class getLectureList_resultStandardScheme extends StandardScheme { + private static class getLectureListPermissionRead_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, getLectureListPermissionRead_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -17648,14 +20286,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list48 = iprot.readListBegin(); - struct.success = new ArrayList(_list48.size); - for (int _i49 = 0; _i49 < _list48.size; ++_i49) + org.apache.thrift.protocol.TList _list56 = iprot.readListBegin(); + struct.success = new ArrayList(_list56.size); + for (int _i57 = 0; _i57 < _list56.size; ++_i57) { - Lecture _elem50; - _elem50 = new Lecture(); - _elem50.read(iprot); - struct.success.add(_elem50); + Lecture _elem58; + _elem58 = new Lecture(); + _elem58.read(iprot); + struct.success.add(_elem58); } iprot.readListEnd(); } @@ -17675,7 +20313,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, getLectureListPermissionRead_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -17683,9 +20321,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 (Lecture _iter51 : struct.success) + for (Lecture _iter59 : struct.success) { - _iter51.write(oprot); + _iter59.write(oprot); } oprot.writeListEnd(); } @@ -17697,16 +20335,16 @@ public class Server { } - private static class getLectureList_resultTupleSchemeFactory implements SchemeFactory { - public getLectureList_resultTupleScheme getScheme() { - return new getLectureList_resultTupleScheme(); + private static class getLectureListPermissionRead_resultTupleSchemeFactory implements SchemeFactory { + public getLectureListPermissionRead_resultTupleScheme getScheme() { + return new getLectureListPermissionRead_resultTupleScheme(); } } - private static class getLectureList_resultTupleScheme extends TupleScheme { + private static class getLectureListPermissionRead_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, getLectureListPermissionRead_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -17716,28 +20354,28 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Lecture _iter52 : struct.success) + for (Lecture _iter60 : struct.success) { - _iter52.write(oprot); + _iter60.write(oprot); } } } } @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, getLectureListPermissionRead_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 _list53 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list53.size); - for (int _i54 = 0; _i54 < _list53.size; ++_i54) + org.apache.thrift.protocol.TList _list61 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list61.size); + for (int _i62 = 0; _i62 < _list61.size; ++_i62) { - Lecture _elem55; - _elem55 = new Lecture(); - _elem55.read(iprot); - struct.success.add(_elem55); + Lecture _elem63; + _elem63 = new Lecture(); + _elem63.read(iprot); + struct.success.add(_elem63); } } struct.setSuccessIsSet(true); @@ -17747,22 +20385,22 @@ 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 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 org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", 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 getLectureListPermissionWrite_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureListPermissionWrite_argsTupleSchemeFactory()); } - public String userID; // required + public String token; // 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"); + TOKEN((short)1, "token"); private static final Map byName = new HashMap(); @@ -17777,8 +20415,8 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // USER_ID - return USER_ID; + case 1: // TOKEN + return TOKEN; default: return null; } @@ -17822,71 +20460,71 @@ public class Server { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", 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); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureListPermissionWrite_args.class, metaDataMap); } - public getLectureListPermissionRead_args() { + public getLectureListPermissionWrite_args() { } - public getLectureListPermissionRead_args( - String userID) + public getLectureListPermissionWrite_args( + String token) { this(); - this.userID = userID; + this.token = token; } /** * Performs a deep copy on other. */ - public getLectureListPermissionRead_args(getLectureListPermissionRead_args other) { - if (other.isSetUserID()) { - this.userID = other.userID; + public getLectureListPermissionWrite_args(getLectureListPermissionWrite_args other) { + if (other.isSetToken()) { + this.token = other.token; } } - public getLectureListPermissionRead_args deepCopy() { - return new getLectureListPermissionRead_args(this); + public getLectureListPermissionWrite_args deepCopy() { + return new getLectureListPermissionWrite_args(this); } @Override public void clear() { - this.userID = null; + this.token = null; } - public String getUserID() { - return this.userID; + public String getToken() { + return this.token; } - public getLectureListPermissionRead_args setUserID(String userID) { - this.userID = userID; + public getLectureListPermissionWrite_args setToken(String token) { + this.token = token; return this; } - public void unsetUserID() { - this.userID = null; + public void unsetToken() { + this.token = null; } - /** Returns true if field userID is set (has been assigned a value) and false otherwise */ - public boolean isSetUserID() { - return this.userID != null; + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; } - public void setUserIDIsSet(boolean value) { + public void setTokenIsSet(boolean value) { if (!value) { - this.userID = null; + this.token = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case USER_ID: + case TOKEN: if (value == null) { - unsetUserID(); + unsetToken(); } else { - setUserID((String)value); + setToken((String)value); } break; @@ -17895,8 +20533,8 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case USER_ID: - return getUserID(); + case TOKEN: + return getToken(); } throw new IllegalStateException(); @@ -17909,8 +20547,8 @@ public class Server { } switch (field) { - case USER_ID: - return isSetUserID(); + case TOKEN: + return isSetToken(); } throw new IllegalStateException(); } @@ -17919,21 +20557,21 @@ 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 getLectureListPermissionWrite_args) + return this.equals((getLectureListPermissionWrite_args)that); return false; } - public boolean equals(getLectureListPermissionRead_args that) { + public boolean equals(getLectureListPermissionWrite_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)) + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) return false; - if (!this.userID.equals(that.userID)) + if (!this.token.equals(that.token)) return false; } @@ -17946,19 +20584,19 @@ public class Server { } @Override - public int compareTo(getLectureListPermissionRead_args other) { + public int compareTo(getLectureListPermissionWrite_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); if (lastComparison != 0) { return lastComparison; } - if (isSetUserID()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) { return lastComparison; } @@ -17980,14 +20618,14 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLectureListPermissionRead_args("); + StringBuilder sb = new StringBuilder("getLectureListPermissionWrite_args("); boolean first = true; - sb.append("userID:"); - if (this.userID == null) { + sb.append("token:"); + if (this.token == null) { sb.append("null"); } else { - sb.append(this.userID); + sb.append(this.token); } first = false; sb.append(")"); @@ -18015,15 +20653,15 @@ public class Server { } } - private static class getLectureListPermissionRead_argsStandardSchemeFactory implements SchemeFactory { - public getLectureListPermissionRead_argsStandardScheme getScheme() { - return new getLectureListPermissionRead_argsStandardScheme(); + private static class getLectureListPermissionWrite_argsStandardSchemeFactory implements SchemeFactory { + public getLectureListPermissionWrite_argsStandardScheme getScheme() { + return new getLectureListPermissionWrite_argsStandardScheme(); } } - private static class getLectureListPermissionRead_argsStandardScheme extends StandardScheme { + private static class getLectureListPermissionWrite_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, getLectureListPermissionWrite_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -18033,10 +20671,10 @@ public class Server { break; } switch (schemeField.id) { - case 1: // USER_ID + case 1: // TOKEN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.userID = iprot.readString(); - struct.setUserIDIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -18052,13 +20690,13 @@ 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, getLectureListPermissionWrite_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); + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -18067,49 +20705,49 @@ public class Server { } - private static class getLectureListPermissionRead_argsTupleSchemeFactory implements SchemeFactory { - public getLectureListPermissionRead_argsTupleScheme getScheme() { - return new getLectureListPermissionRead_argsTupleScheme(); + private static class getLectureListPermissionWrite_argsTupleSchemeFactory implements SchemeFactory { + public getLectureListPermissionWrite_argsTupleScheme getScheme() { + return new getLectureListPermissionWrite_argsTupleScheme(); } } - private static class getLectureListPermissionRead_argsTupleScheme extends TupleScheme { + private static class getLectureListPermissionWrite_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, getLectureListPermissionWrite_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetUserID()) { + if (struct.isSetToken()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); - if (struct.isSetUserID()) { - oprot.writeString(struct.userID); + if (struct.isSetToken()) { + oprot.writeString(struct.token); } } @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, getLectureListPermissionWrite_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); + struct.token = iprot.readString(); + struct.setTokenIsSet(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 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 getLectureListPermissionRead_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLectureListPermissionRead_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getLectureListPermissionWrite_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureListPermissionWrite_resultTupleSchemeFactory()); } public List success; // required @@ -18180,13 +20818,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(getLectureListPermissionWrite_result.class, metaDataMap); } - public getLectureListPermissionRead_result() { + public getLectureListPermissionWrite_result() { } - public getLectureListPermissionRead_result( + public getLectureListPermissionWrite_result( List success) { this(); @@ -18196,7 +20834,7 @@ public class Server { /** * Performs a deep copy on other. */ - public getLectureListPermissionRead_result(getLectureListPermissionRead_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) { @@ -18206,8 +20844,8 @@ public class Server { } } - public getLectureListPermissionRead_result deepCopy() { - return new getLectureListPermissionRead_result(this); + public getLectureListPermissionWrite_result deepCopy() { + return new getLectureListPermissionWrite_result(this); } @Override @@ -18234,7 +20872,7 @@ public class Server { return this.success; } - public getLectureListPermissionRead_result setSuccess(List success) { + public getLectureListPermissionWrite_result setSuccess(List success) { this.success = success; return this; } @@ -18293,12 +20931,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 getLectureListPermissionWrite_result) + return this.equals((getLectureListPermissionWrite_result)that); return false; } - public boolean equals(getLectureListPermissionRead_result that) { + public boolean equals(getLectureListPermissionWrite_result that) { if (that == null) return false; @@ -18320,7 +20958,7 @@ public class Server { } @Override - public int compareTo(getLectureListPermissionRead_result other) { + public int compareTo(getLectureListPermissionWrite_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -18354,7 +20992,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLectureListPermissionRead_result("); + StringBuilder sb = new StringBuilder("getLectureListPermissionWrite_result("); boolean first = true; sb.append("success:"); @@ -18389,15 +21027,15 @@ public class Server { } } - private static class getLectureListPermissionRead_resultStandardSchemeFactory implements SchemeFactory { - public getLectureListPermissionRead_resultStandardScheme getScheme() { - return new getLectureListPermissionRead_resultStandardScheme(); + private static class getLectureListPermissionWrite_resultStandardSchemeFactory implements SchemeFactory { + public getLectureListPermissionWrite_resultStandardScheme getScheme() { + return new getLectureListPermissionWrite_resultStandardScheme(); } } - private static class getLectureListPermissionRead_resultStandardScheme extends StandardScheme { + private static class getLectureListPermissionWrite_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, getLectureListPermissionWrite_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -18410,14 +21048,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list56 = iprot.readListBegin(); - struct.success = new ArrayList(_list56.size); - for (int _i57 = 0; _i57 < _list56.size; ++_i57) + org.apache.thrift.protocol.TList _list64 = iprot.readListBegin(); + struct.success = new ArrayList(_list64.size); + for (int _i65 = 0; _i65 < _list64.size; ++_i65) { - Lecture _elem58; - _elem58 = new Lecture(); - _elem58.read(iprot); - struct.success.add(_elem58); + Lecture _elem66; + _elem66 = new Lecture(); + _elem66.read(iprot); + struct.success.add(_elem66); } iprot.readListEnd(); } @@ -18437,7 +21075,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, getLectureListPermissionWrite_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -18445,9 +21083,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 (Lecture _iter59 : struct.success) + for (Lecture _iter67 : struct.success) { - _iter59.write(oprot); + _iter67.write(oprot); } oprot.writeListEnd(); } @@ -18459,16 +21097,16 @@ public class Server { } - private static class getLectureListPermissionRead_resultTupleSchemeFactory implements SchemeFactory { - public getLectureListPermissionRead_resultTupleScheme getScheme() { - return new getLectureListPermissionRead_resultTupleScheme(); + private static class getLectureListPermissionWrite_resultTupleSchemeFactory implements SchemeFactory { + public getLectureListPermissionWrite_resultTupleScheme getScheme() { + return new getLectureListPermissionWrite_resultTupleScheme(); } } - private static class getLectureListPermissionRead_resultTupleScheme extends TupleScheme { + private static class getLectureListPermissionWrite_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, getLectureListPermissionWrite_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -18478,28 +21116,28 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Lecture _iter60 : struct.success) + for (Lecture _iter68 : struct.success) { - _iter60.write(oprot); + _iter68.write(oprot); } } } } @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, getLectureListPermissionWrite_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 _list61 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list61.size); - for (int _i62 = 0; _i62 < _list61.size; ++_i62) + 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) { - Lecture _elem63; - _elem63 = new Lecture(); - _elem63.read(iprot); - struct.success.add(_elem63); + Lecture _elem71; + _elem71 = new Lecture(); + _elem71.read(iprot); + struct.success.add(_elem71); } } struct.setSuccessIsSet(true); @@ -18509,22 +21147,22 @@ 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 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 org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", 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 getLectureListPermissionAdmin_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureListPermissionAdmin_argsTupleSchemeFactory()); } - public String userID; // required + public String token; // 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"); + TOKEN((short)1, "token"); private static final Map byName = new HashMap(); @@ -18539,8 +21177,8 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // USER_ID - return USER_ID; + case 1: // TOKEN + return TOKEN; default: return null; } @@ -18584,71 +21222,71 @@ public class Server { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", 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(getLectureListPermissionAdmin_args.class, metaDataMap); } - public getLectureListPermissionWrite_args() { + public getLectureListPermissionAdmin_args() { } - public getLectureListPermissionWrite_args( - String userID) + public getLectureListPermissionAdmin_args( + String token) { this(); - this.userID = userID; + this.token = token; } /** * Performs a deep copy on other. */ - public getLectureListPermissionWrite_args(getLectureListPermissionWrite_args other) { - if (other.isSetUserID()) { - this.userID = other.userID; + public getLectureListPermissionAdmin_args(getLectureListPermissionAdmin_args other) { + if (other.isSetToken()) { + this.token = other.token; } } - public getLectureListPermissionWrite_args deepCopy() { - return new getLectureListPermissionWrite_args(this); + public getLectureListPermissionAdmin_args deepCopy() { + return new getLectureListPermissionAdmin_args(this); } @Override public void clear() { - this.userID = null; + this.token = null; } - public String getUserID() { - return this.userID; + public String getToken() { + return this.token; } - public getLectureListPermissionWrite_args setUserID(String userID) { - this.userID = userID; + public getLectureListPermissionAdmin_args setToken(String token) { + this.token = token; return this; } - public void unsetUserID() { - this.userID = null; + public void unsetToken() { + this.token = null; } - /** Returns true if field userID is set (has been assigned a value) and false otherwise */ - public boolean isSetUserID() { - return this.userID != null; + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; } - public void setUserIDIsSet(boolean value) { + public void setTokenIsSet(boolean value) { if (!value) { - this.userID = null; + this.token = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case USER_ID: + case TOKEN: if (value == null) { - unsetUserID(); + unsetToken(); } else { - setUserID((String)value); + setToken((String)value); } break; @@ -18657,8 +21295,8 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case USER_ID: - return getUserID(); + case TOKEN: + return getToken(); } throw new IllegalStateException(); @@ -18671,8 +21309,8 @@ public class Server { } switch (field) { - case USER_ID: - return isSetUserID(); + case TOKEN: + return isSetToken(); } throw new IllegalStateException(); } @@ -18681,21 +21319,21 @@ 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 getLectureListPermissionAdmin_args) + return this.equals((getLectureListPermissionAdmin_args)that); return false; } - public boolean equals(getLectureListPermissionWrite_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)) + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) return false; - if (!this.userID.equals(that.userID)) + if (!this.token.equals(that.token)) return false; } @@ -18708,19 +21346,19 @@ public class Server { } @Override - public int compareTo(getLectureListPermissionWrite_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()); + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); if (lastComparison != 0) { return lastComparison; } - if (isSetUserID()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) { return lastComparison; } @@ -18742,14 +21380,14 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLectureListPermissionWrite_args("); + StringBuilder sb = new StringBuilder("getLectureListPermissionAdmin_args("); boolean first = true; - sb.append("userID:"); - if (this.userID == null) { + sb.append("token:"); + if (this.token == null) { sb.append("null"); } else { - sb.append(this.userID); + sb.append(this.token); } first = false; sb.append(")"); @@ -18777,15 +21415,15 @@ public class Server { } } - private static class getLectureListPermissionWrite_argsStandardSchemeFactory implements SchemeFactory { - public getLectureListPermissionWrite_argsStandardScheme getScheme() { - return new getLectureListPermissionWrite_argsStandardScheme(); + private static class getLectureListPermissionAdmin_argsStandardSchemeFactory implements SchemeFactory { + public getLectureListPermissionAdmin_argsStandardScheme getScheme() { + return new getLectureListPermissionAdmin_argsStandardScheme(); } } - private static class getLectureListPermissionWrite_argsStandardScheme extends StandardScheme { + private static class getLectureListPermissionAdmin_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, getLectureListPermissionAdmin_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -18795,10 +21433,10 @@ public class Server { break; } switch (schemeField.id) { - case 1: // USER_ID + case 1: // TOKEN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.userID = iprot.readString(); - struct.setUserIDIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -18814,13 +21452,13 @@ 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, 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); + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -18829,49 +21467,49 @@ public class Server { } - private static class getLectureListPermissionWrite_argsTupleSchemeFactory implements SchemeFactory { - public getLectureListPermissionWrite_argsTupleScheme getScheme() { - return new getLectureListPermissionWrite_argsTupleScheme(); + private static class getLectureListPermissionAdmin_argsTupleSchemeFactory implements SchemeFactory { + public getLectureListPermissionAdmin_argsTupleScheme getScheme() { + return new getLectureListPermissionAdmin_argsTupleScheme(); } } - private static class getLectureListPermissionWrite_argsTupleScheme extends TupleScheme { + private static class getLectureListPermissionAdmin_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, getLectureListPermissionAdmin_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetUserID()) { + if (struct.isSetToken()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); - if (struct.isSetUserID()) { - oprot.writeString(struct.userID); + if (struct.isSetToken()) { + oprot.writeString(struct.token); } } @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, 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); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } } } } - 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 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 getLectureListPermissionWrite_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLectureListPermissionWrite_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getLectureListPermissionAdmin_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureListPermissionAdmin_resultTupleSchemeFactory()); } public List success; // required @@ -18942,13 +21580,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(getLectureListPermissionAdmin_result.class, metaDataMap); } - public getLectureListPermissionWrite_result() { + public getLectureListPermissionAdmin_result() { } - public getLectureListPermissionWrite_result( + public getLectureListPermissionAdmin_result( List success) { this(); @@ -18958,7 +21596,7 @@ public class Server { /** * Performs a deep copy on other. */ - public getLectureListPermissionWrite_result(getLectureListPermissionWrite_result other) { + public getLectureListPermissionAdmin_result(getLectureListPermissionAdmin_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (Lecture other_element : other.success) { @@ -18968,8 +21606,8 @@ public class Server { } } - public getLectureListPermissionWrite_result deepCopy() { - return new getLectureListPermissionWrite_result(this); + public getLectureListPermissionAdmin_result deepCopy() { + return new getLectureListPermissionAdmin_result(this); } @Override @@ -18996,7 +21634,7 @@ public class Server { return this.success; } - public getLectureListPermissionWrite_result setSuccess(List success) { + public getLectureListPermissionAdmin_result setSuccess(List success) { this.success = success; return this; } @@ -19055,12 +21693,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 getLectureListPermissionAdmin_result) + return this.equals((getLectureListPermissionAdmin_result)that); return false; } - public boolean equals(getLectureListPermissionWrite_result that) { + public boolean equals(getLectureListPermissionAdmin_result that) { if (that == null) return false; @@ -19082,7 +21720,7 @@ public class Server { } @Override - public int compareTo(getLectureListPermissionWrite_result other) { + public int compareTo(getLectureListPermissionAdmin_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -19116,7 +21754,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLectureListPermissionWrite_result("); + StringBuilder sb = new StringBuilder("getLectureListPermissionAdmin_result("); boolean first = true; sb.append("success:"); @@ -19151,15 +21789,15 @@ public class Server { } } - private static class getLectureListPermissionWrite_resultStandardSchemeFactory implements SchemeFactory { - public getLectureListPermissionWrite_resultStandardScheme getScheme() { - return new getLectureListPermissionWrite_resultStandardScheme(); + private static class getLectureListPermissionAdmin_resultStandardSchemeFactory implements SchemeFactory { + public getLectureListPermissionAdmin_resultStandardScheme getScheme() { + return new getLectureListPermissionAdmin_resultStandardScheme(); } } - private static class getLectureListPermissionWrite_resultStandardScheme extends StandardScheme { + private static class getLectureListPermissionAdmin_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, getLectureListPermissionAdmin_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -19172,14 +21810,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list64 = iprot.readListBegin(); - struct.success = new ArrayList(_list64.size); - for (int _i65 = 0; _i65 < _list64.size; ++_i65) + org.apache.thrift.protocol.TList _list72 = iprot.readListBegin(); + struct.success = new ArrayList(_list72.size); + for (int _i73 = 0; _i73 < _list72.size; ++_i73) { - Lecture _elem66; - _elem66 = new Lecture(); - _elem66.read(iprot); - struct.success.add(_elem66); + Lecture _elem74; + _elem74 = new Lecture(); + _elem74.read(iprot); + struct.success.add(_elem74); } iprot.readListEnd(); } @@ -19199,7 +21837,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, getLectureListPermissionAdmin_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -19207,9 +21845,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 (Lecture _iter67 : struct.success) + for (Lecture _iter75 : struct.success) { - _iter67.write(oprot); + _iter75.write(oprot); } oprot.writeListEnd(); } @@ -19221,16 +21859,16 @@ public class Server { } - private static class getLectureListPermissionWrite_resultTupleSchemeFactory implements SchemeFactory { - public getLectureListPermissionWrite_resultTupleScheme getScheme() { - return new getLectureListPermissionWrite_resultTupleScheme(); + private static class getLectureListPermissionAdmin_resultTupleSchemeFactory implements SchemeFactory { + public getLectureListPermissionAdmin_resultTupleScheme getScheme() { + return new getLectureListPermissionAdmin_resultTupleScheme(); } } - private static class getLectureListPermissionWrite_resultTupleScheme extends TupleScheme { + private static class getLectureListPermissionAdmin_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, getLectureListPermissionAdmin_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -19240,28 +21878,28 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Lecture _iter68 : struct.success) + for (Lecture _iter76 : struct.success) { - _iter68.write(oprot); + _iter76.write(oprot); } } } } @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, 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.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list69.size); - for (int _i70 = 0; _i70 < _list69.size; ++_i70) + org.apache.thrift.protocol.TList _list77 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list77.size); + for (int _i78 = 0; _i78 < _list77.size; ++_i78) { - Lecture _elem71; - _elem71 = new Lecture(); - _elem71.read(iprot); - struct.success.add(_elem71); + Lecture _elem79; + _elem79 = new Lecture(); + _elem79.read(iprot); + struct.success.add(_elem79); } } struct.setSuccessIsSet(true); @@ -19271,22 +21909,22 @@ 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 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 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 org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", 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 getAllOS_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllOS_argsTupleSchemeFactory()); } - public String userID; // required + public String token; // 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"); + TOKEN((short)1, "token"); private static final Map byName = new HashMap(); @@ -19301,8 +21939,8 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // USER_ID - return USER_ID; + case 1: // TOKEN + return TOKEN; default: return null; } @@ -19346,71 +21984,71 @@ public class Server { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", 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(getAllOS_args.class, metaDataMap); } - public getLectureListPermissionAdmin_args() { + public getAllOS_args() { } - public getLectureListPermissionAdmin_args( - String userID) + public getAllOS_args( + String token) { this(); - this.userID = userID; + this.token = token; } /** * Performs a deep copy on other. */ - public getLectureListPermissionAdmin_args(getLectureListPermissionAdmin_args other) { - if (other.isSetUserID()) { - this.userID = other.userID; + public getAllOS_args(getAllOS_args other) { + if (other.isSetToken()) { + this.token = other.token; } } - public getLectureListPermissionAdmin_args deepCopy() { - return new getLectureListPermissionAdmin_args(this); + public getAllOS_args deepCopy() { + return new getAllOS_args(this); } @Override public void clear() { - this.userID = null; + this.token = null; } - public String getUserID() { - return this.userID; + public String getToken() { + return this.token; } - public getLectureListPermissionAdmin_args setUserID(String userID) { - this.userID = userID; + public getAllOS_args setToken(String token) { + this.token = token; return this; } - public void unsetUserID() { - this.userID = null; + public void unsetToken() { + this.token = null; } - /** Returns true if field userID is set (has been assigned a value) and false otherwise */ - public boolean isSetUserID() { - return this.userID != null; + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; } - public void setUserIDIsSet(boolean value) { + public void setTokenIsSet(boolean value) { if (!value) { - this.userID = null; + this.token = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case USER_ID: + case TOKEN: if (value == null) { - unsetUserID(); + unsetToken(); } else { - setUserID((String)value); + setToken((String)value); } break; @@ -19419,8 +22057,8 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case USER_ID: - return getUserID(); + case TOKEN: + return getToken(); } throw new IllegalStateException(); @@ -19433,8 +22071,8 @@ public class Server { } switch (field) { - case USER_ID: - return isSetUserID(); + case TOKEN: + return isSetToken(); } throw new IllegalStateException(); } @@ -19443,21 +22081,21 @@ 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 getAllOS_args) + return this.equals((getAllOS_args)that); return false; } - public boolean equals(getLectureListPermissionAdmin_args that) { + public boolean equals(getAllOS_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)) + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) return false; - if (!this.userID.equals(that.userID)) + if (!this.token.equals(that.token)) return false; } @@ -19470,19 +22108,19 @@ public class Server { } @Override - public int compareTo(getLectureListPermissionAdmin_args other) { + public int compareTo(getAllOS_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); if (lastComparison != 0) { return lastComparison; } - if (isSetUserID()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) { return lastComparison; } @@ -19504,14 +22142,14 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLectureListPermissionAdmin_args("); + StringBuilder sb = new StringBuilder("getAllOS_args("); boolean first = true; - sb.append("userID:"); - if (this.userID == null) { + sb.append("token:"); + if (this.token == null) { sb.append("null"); } else { - sb.append(this.userID); + sb.append(this.token); } first = false; sb.append(")"); @@ -19539,15 +22177,15 @@ public class Server { } } - private static class getLectureListPermissionAdmin_argsStandardSchemeFactory implements SchemeFactory { - public getLectureListPermissionAdmin_argsStandardScheme getScheme() { - return new getLectureListPermissionAdmin_argsStandardScheme(); + private static class getAllOS_argsStandardSchemeFactory implements SchemeFactory { + public getAllOS_argsStandardScheme getScheme() { + return new getAllOS_argsStandardScheme(); } } - private static class getLectureListPermissionAdmin_argsStandardScheme extends StandardScheme { + private static class getAllOS_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, getAllOS_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -19557,10 +22195,10 @@ public class Server { break; } switch (schemeField.id) { - case 1: // USER_ID + case 1: // TOKEN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.userID = iprot.readString(); - struct.setUserIDIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -19576,13 +22214,13 @@ 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, getAllOS_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); + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -19591,52 +22229,52 @@ public class Server { } - private static class getLectureListPermissionAdmin_argsTupleSchemeFactory implements SchemeFactory { - public getLectureListPermissionAdmin_argsTupleScheme getScheme() { - return new getLectureListPermissionAdmin_argsTupleScheme(); + private static class getAllOS_argsTupleSchemeFactory implements SchemeFactory { + public getAllOS_argsTupleScheme getScheme() { + return new getAllOS_argsTupleScheme(); } } - private static class getLectureListPermissionAdmin_argsTupleScheme extends TupleScheme { + private static class getAllOS_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, getAllOS_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetUserID()) { + if (struct.isSetToken()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); - if (struct.isSetUserID()) { - oprot.writeString(struct.userID); + if (struct.isSetToken()) { + oprot.writeString(struct.token); } } @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, getAllOS_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); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } } } } - 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 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 getLectureListPermissionAdmin_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLectureListPermissionAdmin_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getAllOS_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllOS_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 { @@ -19702,16 +22340,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.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureListPermissionAdmin_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOS_result.class, metaDataMap); } - public getLectureListPermissionAdmin_result() { + public getAllOS_result() { } - public getLectureListPermissionAdmin_result( - List success) + public getAllOS_result( + List success) { this(); this.success = success; @@ -19720,18 +22358,15 @@ public class Server { /** * Performs a deep copy on other. */ - public getLectureListPermissionAdmin_result(getLectureListPermissionAdmin_result other) { + public getAllOS_result(getAllOS_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); this.success = __this__success; } } - public getLectureListPermissionAdmin_result deepCopy() { - return new getLectureListPermissionAdmin_result(this); + public getAllOS_result deepCopy() { + return new getAllOS_result(this); } @Override @@ -19743,22 +22378,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(String 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 getLectureListPermissionAdmin_result setSuccess(List success) { + public getAllOS_result setSuccess(List success) { this.success = success; return this; } @@ -19784,7 +22419,7 @@ public class Server { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -19817,12 +22452,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 getAllOS_result) + return this.equals((getAllOS_result)that); return false; } - public boolean equals(getLectureListPermissionAdmin_result that) { + public boolean equals(getAllOS_result that) { if (that == null) return false; @@ -19844,7 +22479,7 @@ public class Server { } @Override - public int compareTo(getLectureListPermissionAdmin_result other) { + public int compareTo(getAllOS_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -19878,7 +22513,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLectureListPermissionAdmin_result("); + StringBuilder sb = new StringBuilder("getAllOS_result("); boolean first = true; sb.append("success:"); @@ -19913,15 +22548,15 @@ public class Server { } } - private static class getLectureListPermissionAdmin_resultStandardSchemeFactory implements SchemeFactory { - public getLectureListPermissionAdmin_resultStandardScheme getScheme() { - return new getLectureListPermissionAdmin_resultStandardScheme(); + private static class getAllOS_resultStandardSchemeFactory implements SchemeFactory { + public getAllOS_resultStandardScheme getScheme() { + return new getAllOS_resultStandardScheme(); } } - private static class getLectureListPermissionAdmin_resultStandardScheme extends StandardScheme { + private static class getAllOS_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, getAllOS_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -19934,14 +22569,13 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list72 = iprot.readListBegin(); - struct.success = new ArrayList(_list72.size); - for (int _i73 = 0; _i73 < _list72.size; ++_i73) + org.apache.thrift.protocol.TList _list80 = iprot.readListBegin(); + struct.success = new ArrayList(_list80.size); + for (int _i81 = 0; _i81 < _list80.size; ++_i81) { - Lecture _elem74; - _elem74 = new Lecture(); - _elem74.read(iprot); - struct.success.add(_elem74); + String _elem82; + _elem82 = iprot.readString(); + struct.success.add(_elem82); } iprot.readListEnd(); } @@ -19961,17 +22595,17 @@ 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, getAllOS_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.STRUCT, struct.success.size())); - for (Lecture _iter75 : struct.success) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (String _iter83 : struct.success) { - _iter75.write(oprot); + oprot.writeString(_iter83); } oprot.writeListEnd(); } @@ -19983,16 +22617,16 @@ public class Server { } - private static class getLectureListPermissionAdmin_resultTupleSchemeFactory implements SchemeFactory { - public getLectureListPermissionAdmin_resultTupleScheme getScheme() { - return new getLectureListPermissionAdmin_resultTupleScheme(); + private static class getAllOS_resultTupleSchemeFactory implements SchemeFactory { + public getAllOS_resultTupleScheme getScheme() { + return new getAllOS_resultTupleScheme(); } } - private static class getLectureListPermissionAdmin_resultTupleScheme extends TupleScheme { + private static class getAllOS_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, getAllOS_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -20002,28 +22636,27 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Lecture _iter76 : struct.success) + for (String _iter84 : struct.success) { - _iter76.write(oprot); + oprot.writeString(_iter84); } } } } @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, getAllOS_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 _list77 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list77.size); - for (int _i78 = 0; _i78 < _list77.size; ++_i78) + 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) { - Lecture _elem79; - _elem79 = new Lecture(); - _elem79.read(iprot); - struct.success.add(_elem79); + String _elem87; + _elem87 = iprot.readString(); + struct.success.add(_elem87); } } struct.setSuccessIsSet(true); @@ -20033,20 +22666,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 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 TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", 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 getAllUniversities_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllUniversities_argsTupleSchemeFactory()); } + public String token; // 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 { -; + TOKEN((short)1, "token"); private static final Map byName = new HashMap(); @@ -20061,6 +22696,8 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 1: // TOKEN + return TOKEN; default: return null; } @@ -20099,37 +22736,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.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", 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(getAllUniversities_args.class, metaDataMap); } - public getAllOS_args() { + public getAllUniversities_args() { + } + + public getAllUniversities_args( + String token) + { + this(); + this.token = token; } /** * Performs a deep copy on other. */ - public getAllOS_args(getAllOS_args other) { + public getAllUniversities_args(getAllUniversities_args other) { + if (other.isSetToken()) { + this.token = other.token; + } } - public getAllOS_args deepCopy() { - return new getAllOS_args(this); + public getAllUniversities_args deepCopy() { + return new getAllUniversities_args(this); } @Override public void clear() { + this.token = null; + } + + public String getToken() { + return this.token; + } + + public getAllUniversities_args setToken(String token) { + this.token = token; + return this; + } + + public void unsetToken() { + this.token = null; + } + + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; + } + + public void setTokenIsSet(boolean value) { + if (!value) { + this.token = null; + } } public void setFieldValue(_Fields field, Object value) { switch (field) { + case TOKEN: + if (value == null) { + unsetToken(); + } else { + setToken((String)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { + case TOKEN: + return getToken(); + } throw new IllegalStateException(); } @@ -20141,6 +22828,8 @@ public class Server { } switch (field) { + case TOKEN: + return isSetToken(); } throw new IllegalStateException(); } @@ -20149,15 +22838,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 getAllUniversities_args) + return this.equals((getAllUniversities_args)that); return false; } - public boolean equals(getAllOS_args that) { + public boolean equals(getAllUniversities_args that) { if (that == null) return false; + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) + return false; + if (!this.token.equals(that.token)) + return false; + } + return true; } @@ -20167,13 +22865,23 @@ public class Server { } @Override - public int compareTo(getAllOS_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(isSetToken()).compareTo(other.isSetToken()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -20191,9 +22899,16 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllOS_args("); + StringBuilder sb = new StringBuilder("getAllUniversities_args("); boolean first = true; + sb.append("token:"); + if (this.token == null) { + sb.append("null"); + } else { + sb.append(this.token); + } + first = false; sb.append(")"); return sb.toString(); } @@ -20219,15 +22934,15 @@ public class Server { } } - private static class getAllOS_argsStandardSchemeFactory implements SchemeFactory { - public getAllOS_argsStandardScheme getScheme() { - return new getAllOS_argsStandardScheme(); + private static class getAllUniversities_argsStandardSchemeFactory implements SchemeFactory { + public getAllUniversities_argsStandardScheme getScheme() { + return new getAllUniversities_argsStandardScheme(); } } - private static class getAllOS_argsStandardScheme extends StandardScheme { + private static class getAllUniversities_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, getAllUniversities_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -20237,6 +22952,14 @@ public class Server { break; } switch (schemeField.id) { + case 1: // TOKEN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -20248,46 +22971,64 @@ 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, getAllUniversities_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getAllOS_argsTupleSchemeFactory implements SchemeFactory { - public getAllOS_argsTupleScheme getScheme() { - return new getAllOS_argsTupleScheme(); + private static class getAllUniversities_argsTupleSchemeFactory implements SchemeFactory { + public getAllUniversities_argsTupleScheme getScheme() { + return new getAllUniversities_argsTupleScheme(); } } - private static class getAllOS_argsTupleScheme extends TupleScheme { + private static class getAllUniversities_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, getAllUniversities_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetToken()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetToken()) { + oprot.writeString(struct.token); + } } @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, getAllUniversities_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.token = iprot.readString(); + struct.setTokenIsSet(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 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 getAllOS_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllOS_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getAllUniversities_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllUniversities_resultTupleSchemeFactory()); } public List success; // required @@ -20358,13 +23099,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(getAllOS_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUniversities_result.class, metaDataMap); } - public getAllOS_result() { + public getAllUniversities_result() { } - public getAllOS_result( + public getAllUniversities_result( List success) { this(); @@ -20374,15 +23115,15 @@ public class Server { /** * Performs a deep copy on other. */ - public getAllOS_result(getAllOS_result other) { + public getAllUniversities_result(getAllUniversities_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success); this.success = __this__success; } } - public getAllOS_result deepCopy() { - return new getAllOS_result(this); + public getAllUniversities_result deepCopy() { + return new getAllUniversities_result(this); } @Override @@ -20409,7 +23150,7 @@ public class Server { return this.success; } - public getAllOS_result setSuccess(List success) { + public getAllUniversities_result setSuccess(List success) { this.success = success; return this; } @@ -20468,12 +23209,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 getAllUniversities_result) + return this.equals((getAllUniversities_result)that); return false; } - public boolean equals(getAllOS_result that) { + public boolean equals(getAllUniversities_result that) { if (that == null) return false; @@ -20495,7 +23236,7 @@ public class Server { } @Override - public int compareTo(getAllOS_result other) { + public int compareTo(getAllUniversities_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -20529,7 +23270,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllOS_result("); + StringBuilder sb = new StringBuilder("getAllUniversities_result("); boolean first = true; sb.append("success:"); @@ -20564,15 +23305,15 @@ public class Server { } } - private static class getAllOS_resultStandardSchemeFactory implements SchemeFactory { - public getAllOS_resultStandardScheme getScheme() { - return new getAllOS_resultStandardScheme(); + private static class getAllUniversities_resultStandardSchemeFactory implements SchemeFactory { + public getAllUniversities_resultStandardScheme getScheme() { + return new getAllUniversities_resultStandardScheme(); } } - private static class getAllOS_resultStandardScheme extends StandardScheme { + private static class getAllUniversities_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, getAllUniversities_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -20585,13 +23326,13 @@ public class Server { 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) + org.apache.thrift.protocol.TList _list88 = iprot.readListBegin(); + struct.success = new ArrayList(_list88.size); + for (int _i89 = 0; _i89 < _list88.size; ++_i89) { - String _elem82; - _elem82 = iprot.readString(); - struct.success.add(_elem82); + String _elem90; + _elem90 = iprot.readString(); + struct.success.add(_elem90); } iprot.readListEnd(); } @@ -20611,7 +23352,7 @@ 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, getAllUniversities_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -20619,9 +23360,9 @@ public class Server { 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) + for (String _iter91 : struct.success) { - oprot.writeString(_iter83); + oprot.writeString(_iter91); } oprot.writeListEnd(); } @@ -20633,16 +23374,16 @@ public class Server { } - private static class getAllOS_resultTupleSchemeFactory implements SchemeFactory { - public getAllOS_resultTupleScheme getScheme() { - return new getAllOS_resultTupleScheme(); + private static class getAllUniversities_resultTupleSchemeFactory implements SchemeFactory { + public getAllUniversities_resultTupleScheme getScheme() { + return new getAllUniversities_resultTupleScheme(); } } - private static class getAllOS_resultTupleScheme extends TupleScheme { + private static class getAllUniversities_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, getAllUniversities_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -20652,27 +23393,27 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter84 : struct.success) + for (String _iter92 : struct.success) { - oprot.writeString(_iter84); + oprot.writeString(_iter92); } } } } @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, 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) + org.apache.thrift.protocol.TList _list93 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list93.size); + for (int _i94 = 0; _i94 < _list93.size; ++_i94) { - String _elem87; - _elem87 = iprot.readString(); - struct.success.add(_elem87); + String _elem95; + _elem95 = iprot.readString(); + struct.success.add(_elem95); } } struct.setSuccessIsSet(true); @@ -20682,20 +23423,28 @@ 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 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 org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)3); 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 getPersonData_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getPersonData_argsTupleSchemeFactory()); } + public String Vorname; // required + public String Nachname; // required + public String token; // 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"), + TOKEN((short)3, "token"); private static final Map byName = new HashMap(); @@ -20710,6 +23459,12 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 1: // VORNAME + return VORNAME; + case 2: // NACHNAME + return NACHNAME; + case 3: // TOKEN + return TOKEN; default: return null; } @@ -20748,37 +23503,173 @@ 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))); + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", 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(getAllUniversities_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPersonData_args.class, metaDataMap); } - public getAllUniversities_args() { + public getPersonData_args() { + } + + public getPersonData_args( + String Vorname, + String Nachname, + String token) + { + this(); + this.Vorname = Vorname; + this.Nachname = Nachname; + this.token = token; } /** * Performs a deep copy on other. */ - public getAllUniversities_args(getAllUniversities_args other) { + public getPersonData_args(getPersonData_args other) { + if (other.isSetVorname()) { + this.Vorname = other.Vorname; + } + if (other.isSetNachname()) { + this.Nachname = other.Nachname; + } + if (other.isSetToken()) { + this.token = other.token; + } } - public getAllUniversities_args deepCopy() { - return new getAllUniversities_args(this); + public getPersonData_args deepCopy() { + return new getPersonData_args(this); } @Override public void clear() { + this.Vorname = null; + this.Nachname = null; + this.token = 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 String getToken() { + return this.token; + } + + public getPersonData_args setToken(String token) { + this.token = token; + return this; + } + + public void unsetToken() { + this.token = null; + } + + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; + } + + public void setTokenIsSet(boolean value) { + if (!value) { + this.token = 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; + + case TOKEN: + if (value == null) { + unsetToken(); + } else { + setToken((String)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { + case VORNAME: + return getVorname(); + + case NACHNAME: + return getNachname(); + + case TOKEN: + return getToken(); + } throw new IllegalStateException(); } @@ -20790,6 +23681,12 @@ public class Server { } switch (field) { + case VORNAME: + return isSetVorname(); + case NACHNAME: + return isSetNachname(); + case TOKEN: + return isSetToken(); } throw new IllegalStateException(); } @@ -20798,15 +23695,42 @@ 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 getPersonData_args) + return this.equals((getPersonData_args)that); return false; } - public boolean equals(getAllUniversities_args that) { + 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; + } + + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) + return false; + if (!this.token.equals(that.token)) + return false; + } + return true; } @@ -20816,13 +23740,43 @@ public class Server { } @Override - public int compareTo(getAllUniversities_args other) { + 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; + } + } + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -20840,9 +23794,32 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllUniversities_args("); + 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; + if (!first) sb.append(", "); + sb.append("token:"); + if (this.token == null) { + sb.append("null"); + } else { + sb.append(this.token); + } + first = false; sb.append(")"); return sb.toString(); } @@ -20868,15 +23845,15 @@ public class Server { } } - private static class getAllUniversities_argsStandardSchemeFactory implements SchemeFactory { - public getAllUniversities_argsStandardScheme getScheme() { - return new getAllUniversities_argsStandardScheme(); + private static class getPersonData_argsStandardSchemeFactory implements SchemeFactory { + public getPersonData_argsStandardScheme getScheme() { + return new getPersonData_argsStandardScheme(); } } - private static class getAllUniversities_argsStandardScheme extends StandardScheme { + private static class getPersonData_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, getPersonData_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -20886,6 +23863,30 @@ public class Server { break; } switch (schemeField.id) { + case 1: // VORNAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.Vorname = iprot.readString(); + struct.setVornameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // NACHNAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.Nachname = iprot.readString(); + struct.setNachnameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TOKEN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -20897,49 +23898,97 @@ 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, getPersonData_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.Vorname != null) { + oprot.writeFieldBegin(VORNAME_FIELD_DESC); + oprot.writeString(struct.Vorname); + oprot.writeFieldEnd(); + } + if (struct.Nachname != null) { + oprot.writeFieldBegin(NACHNAME_FIELD_DESC); + oprot.writeString(struct.Nachname); + oprot.writeFieldEnd(); + } + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getAllUniversities_argsTupleSchemeFactory implements SchemeFactory { - public getAllUniversities_argsTupleScheme getScheme() { - return new getAllUniversities_argsTupleScheme(); + private static class getPersonData_argsTupleSchemeFactory implements SchemeFactory { + public getPersonData_argsTupleScheme getScheme() { + return new getPersonData_argsTupleScheme(); } } - private static class getAllUniversities_argsTupleScheme extends TupleScheme { + private static class getPersonData_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, getPersonData_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetVorname()) { + optionals.set(0); + } + if (struct.isSetNachname()) { + optionals.set(1); + } + if (struct.isSetToken()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetVorname()) { + oprot.writeString(struct.Vorname); + } + if (struct.isSetNachname()) { + oprot.writeString(struct.Nachname); + } + if (struct.isSetToken()) { + oprot.writeString(struct.token); + } } @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, getPersonData_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.Vorname = iprot.readString(); + struct.setVornameIsSet(true); + } + if (incoming.get(1)) { + struct.Nachname = iprot.readString(); + struct.setNachnameIsSet(true); + } + if (incoming.get(2)) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } } } } - 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 getPersonData_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("getPersonData_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 org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllUniversities_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllUniversities_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getPersonData_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getPersonData_resultTupleSchemeFactory()); } - public List success; // required + public Map success; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -21004,17 +24053,18 @@ public class Server { 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUniversities_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPersonData_result.class, metaDataMap); } - public getAllUniversities_result() { + public getPersonData_result() { } - public getAllUniversities_result( - List success) + public getPersonData_result( + Map success) { this(); this.success = success; @@ -21023,15 +24073,15 @@ public class Server { /** * Performs a deep copy on other. */ - public getAllUniversities_result(getAllUniversities_result other) { + public getPersonData_result(getPersonData_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + Map __this__success = new HashMap(other.success); this.success = __this__success; } } - public getAllUniversities_result deepCopy() { - return new getAllUniversities_result(this); + public getPersonData_result deepCopy() { + return new getPersonData_result(this); } @Override @@ -21043,22 +24093,18 @@ public class Server { 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) { + public void putToSuccess(String key, String val) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new HashMap(); } - this.success.add(elem); + this.success.put(key, val); } - public List getSuccess() { + public Map getSuccess() { return this.success; } - public getAllUniversities_result setSuccess(List success) { + public getPersonData_result setSuccess(Map success) { this.success = success; return this; } @@ -21084,7 +24130,7 @@ public class Server { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((Map)value); } break; @@ -21117,12 +24163,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 getPersonData_result) + return this.equals((getPersonData_result)that); return false; } - public boolean equals(getAllUniversities_result that) { + public boolean equals(getPersonData_result that) { if (that == null) return false; @@ -21144,7 +24190,7 @@ public class Server { } @Override - public int compareTo(getAllUniversities_result other) { + public int compareTo(getPersonData_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -21178,7 +24224,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllUniversities_result("); + StringBuilder sb = new StringBuilder("getPersonData_result("); boolean first = true; sb.append("success:"); @@ -21213,15 +24259,15 @@ public class Server { } } - private static class getAllUniversities_resultStandardSchemeFactory implements SchemeFactory { - public getAllUniversities_resultStandardScheme getScheme() { - return new getAllUniversities_resultStandardScheme(); + private static class getPersonData_resultStandardSchemeFactory implements SchemeFactory { + public getPersonData_resultStandardScheme getScheme() { + return new getPersonData_resultStandardScheme(); } } - private static class getAllUniversities_resultStandardScheme extends StandardScheme { + private static class getPersonData_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, getPersonData_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -21232,17 +24278,19 @@ public class Server { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TList _list88 = iprot.readListBegin(); - struct.success = new ArrayList(_list88.size); - for (int _i89 = 0; _i89 < _list88.size; ++_i89) + org.apache.thrift.protocol.TMap _map96 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map96.size); + for (int _i97 = 0; _i97 < _map96.size; ++_i97) { - String _elem90; - _elem90 = iprot.readString(); - struct.success.add(_elem90); + String _key98; + String _val99; + _key98 = iprot.readString(); + _val99 = iprot.readString(); + struct.success.put(_key98, _val99); } - iprot.readListEnd(); + iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { @@ -21260,19 +24308,20 @@ 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, getPersonData_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 _iter91 : struct.success) + 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 _iter100 : struct.success.entrySet()) { - oprot.writeString(_iter91); + oprot.writeString(_iter100.getKey()); + oprot.writeString(_iter100.getValue()); } - oprot.writeListEnd(); + oprot.writeMapEnd(); } oprot.writeFieldEnd(); } @@ -21282,16 +24331,16 @@ public class Server { } - private static class getAllUniversities_resultTupleSchemeFactory implements SchemeFactory { - public getAllUniversities_resultTupleScheme getScheme() { - return new getAllUniversities_resultTupleScheme(); + private static class getPersonData_resultTupleSchemeFactory implements SchemeFactory { + public getPersonData_resultTupleScheme getScheme() { + return new getPersonData_resultTupleScheme(); } } - private static class getAllUniversities_resultTupleScheme extends TupleScheme { + private static class getPersonData_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, getPersonData_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -21301,27 +24350,30 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter92 : struct.success) + for (Map.Entry _iter101 : struct.success.entrySet()) { - oprot.writeString(_iter92); + oprot.writeString(_iter101.getKey()); + oprot.writeString(_iter101.getValue()); } } } } @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, getPersonData_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 _list93 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list93.size); - for (int _i94 = 0; _i94 < _list93.size; ++_i94) + org.apache.thrift.protocol.TMap _map102 = 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*_map102.size); + for (int _i103 = 0; _i103 < _map102.size; ++_i103) { - String _elem95; - _elem95 = iprot.readString(); - struct.success.add(_elem95); + String _key104; + String _val105; + _key104 = iprot.readString(); + _val105 = iprot.readString(); + struct.success.put(_key104, _val105); } } struct.setSuccessIsSet(true); @@ -21331,25 +24383,25 @@ 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 getItemOwner_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("getItemOwner_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 org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemID", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", 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 getItemOwner_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getItemOwner_argsTupleSchemeFactory()); } - public String Vorname; // required - public String Nachname; // required + public String itemID; // required + public String token; // 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"); + ITEM_ID((short)1, "itemID"), + TOKEN((short)2, "token"); private static final Map byName = new HashMap(); @@ -21364,10 +24416,10 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // VORNAME - return VORNAME; - case 2: // NACHNAME - return NACHNAME; + case 1: // ITEM_ID + return ITEM_ID; + case 2: // TOKEN + return TOKEN; default: return null; } @@ -21411,111 +24463,111 @@ public class Server { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.VORNAME, new org.apache.thrift.meta_data.FieldMetaData("Vorname", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemID", 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, + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", 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); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemOwner_args.class, metaDataMap); } - public getPersonData_args() { + public getItemOwner_args() { } - public getPersonData_args( - String Vorname, - String Nachname) + public getItemOwner_args( + String itemID, + String token) { this(); - this.Vorname = Vorname; - this.Nachname = Nachname; + this.itemID = itemID; + this.token = token; } /** * Performs a deep copy on other. */ - public getPersonData_args(getPersonData_args other) { - if (other.isSetVorname()) { - this.Vorname = other.Vorname; + public getItemOwner_args(getItemOwner_args other) { + if (other.isSetItemID()) { + this.itemID = other.itemID; } - if (other.isSetNachname()) { - this.Nachname = other.Nachname; + if (other.isSetToken()) { + this.token = other.token; } } - public getPersonData_args deepCopy() { - return new getPersonData_args(this); + public getItemOwner_args deepCopy() { + return new getItemOwner_args(this); } @Override public void clear() { - this.Vorname = null; - this.Nachname = null; + this.itemID = null; + this.token = null; } - public String getVorname() { - return this.Vorname; + public String getItemID() { + return this.itemID; } - public getPersonData_args setVorname(String Vorname) { - this.Vorname = Vorname; + public getItemOwner_args setItemID(String itemID) { + this.itemID = itemID; return this; } - public void unsetVorname() { - this.Vorname = null; + public void unsetItemID() { + this.itemID = null; } - /** Returns true if field Vorname is set (has been assigned a value) and false otherwise */ - public boolean isSetVorname() { - return this.Vorname != null; + /** Returns true if field itemID is set (has been assigned a value) and false otherwise */ + public boolean isSetItemID() { + return this.itemID != null; } - public void setVornameIsSet(boolean value) { + public void setItemIDIsSet(boolean value) { if (!value) { - this.Vorname = null; + this.itemID = null; } } - public String getNachname() { - return this.Nachname; + public String getToken() { + return this.token; } - public getPersonData_args setNachname(String Nachname) { - this.Nachname = Nachname; + public getItemOwner_args setToken(String token) { + this.token = token; return this; } - public void unsetNachname() { - this.Nachname = null; + public void unsetToken() { + this.token = null; } - /** Returns true if field Nachname is set (has been assigned a value) and false otherwise */ - public boolean isSetNachname() { - return this.Nachname != null; + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; } - public void setNachnameIsSet(boolean value) { + public void setTokenIsSet(boolean value) { if (!value) { - this.Nachname = null; + this.token = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case VORNAME: + case ITEM_ID: if (value == null) { - unsetVorname(); + unsetItemID(); } else { - setVorname((String)value); + setItemID((String)value); } break; - case NACHNAME: + case TOKEN: if (value == null) { - unsetNachname(); + unsetToken(); } else { - setNachname((String)value); + setToken((String)value); } break; @@ -21524,11 +24576,11 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case VORNAME: - return getVorname(); + case ITEM_ID: + return getItemID(); - case NACHNAME: - return getNachname(); + case TOKEN: + return getToken(); } throw new IllegalStateException(); @@ -21541,10 +24593,10 @@ public class Server { } switch (field) { - case VORNAME: - return isSetVorname(); - case NACHNAME: - return isSetNachname(); + case ITEM_ID: + return isSetItemID(); + case TOKEN: + return isSetToken(); } throw new IllegalStateException(); } @@ -21553,30 +24605,30 @@ 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 getItemOwner_args) + return this.equals((getItemOwner_args)that); return false; } - public boolean equals(getPersonData_args that) { + public boolean equals(getItemOwner_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)) + boolean this_present_itemID = true && this.isSetItemID(); + boolean that_present_itemID = true && that.isSetItemID(); + if (this_present_itemID || that_present_itemID) { + if (!(this_present_itemID && that_present_itemID)) return false; - if (!this.Vorname.equals(that.Vorname)) + if (!this.itemID.equals(that.itemID)) 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)) + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) return false; - if (!this.Nachname.equals(that.Nachname)) + if (!this.token.equals(that.token)) return false; } @@ -21589,29 +24641,29 @@ public class Server { } @Override - public int compareTo(getPersonData_args other) { + public int compareTo(getItemOwner_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetVorname()).compareTo(other.isSetVorname()); + lastComparison = Boolean.valueOf(isSetItemID()).compareTo(other.isSetItemID()); if (lastComparison != 0) { return lastComparison; } - if (isSetVorname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Vorname, other.Vorname); + if (isSetItemID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemID, other.itemID); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNachname()).compareTo(other.isSetNachname()); + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); if (lastComparison != 0) { return lastComparison; } - if (isSetNachname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Nachname, other.Nachname); + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) { return lastComparison; } @@ -21633,22 +24685,22 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getPersonData_args("); + StringBuilder sb = new StringBuilder("getItemOwner_args("); boolean first = true; - sb.append("Vorname:"); - if (this.Vorname == null) { + sb.append("itemID:"); + if (this.itemID == null) { sb.append("null"); } else { - sb.append(this.Vorname); + sb.append(this.itemID); } first = false; if (!first) sb.append(", "); - sb.append("Nachname:"); - if (this.Nachname == null) { + sb.append("token:"); + if (this.token == null) { sb.append("null"); } else { - sb.append(this.Nachname); + sb.append(this.token); } first = false; sb.append(")"); @@ -21676,15 +24728,15 @@ public class Server { } } - private static class getPersonData_argsStandardSchemeFactory implements SchemeFactory { - public getPersonData_argsStandardScheme getScheme() { - return new getPersonData_argsStandardScheme(); + private static class getItemOwner_argsStandardSchemeFactory implements SchemeFactory { + public getItemOwner_argsStandardScheme getScheme() { + return new getItemOwner_argsStandardScheme(); } } - private static class getPersonData_argsStandardScheme extends StandardScheme { + private static class getItemOwner_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getPersonData_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getItemOwner_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -21694,18 +24746,18 @@ public class Server { break; } switch (schemeField.id) { - case 1: // VORNAME + case 1: // ITEM_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.Vorname = iprot.readString(); - struct.setVornameIsSet(true); + struct.itemID = iprot.readString(); + struct.setItemIDIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // NACHNAME + case 2: // TOKEN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.Nachname = iprot.readString(); - struct.setNachnameIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -21721,18 +24773,18 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getPersonData_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getItemOwner_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.Vorname != null) { - oprot.writeFieldBegin(VORNAME_FIELD_DESC); - oprot.writeString(struct.Vorname); + if (struct.itemID != null) { + oprot.writeFieldBegin(ITEM_ID_FIELD_DESC); + oprot.writeString(struct.itemID); oprot.writeFieldEnd(); } - if (struct.Nachname != null) { - oprot.writeFieldBegin(NACHNAME_FIELD_DESC); - oprot.writeString(struct.Nachname); + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -21741,59 +24793,59 @@ public class Server { } - private static class getPersonData_argsTupleSchemeFactory implements SchemeFactory { - public getPersonData_argsTupleScheme getScheme() { - return new getPersonData_argsTupleScheme(); + private static class getItemOwner_argsTupleSchemeFactory implements SchemeFactory { + public getItemOwner_argsTupleScheme getScheme() { + return new getItemOwner_argsTupleScheme(); } } - private static class getPersonData_argsTupleScheme extends TupleScheme { + private static class getItemOwner_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getPersonData_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getItemOwner_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetVorname()) { + if (struct.isSetItemID()) { optionals.set(0); } - if (struct.isSetNachname()) { + if (struct.isSetToken()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); - if (struct.isSetVorname()) { - oprot.writeString(struct.Vorname); + if (struct.isSetItemID()) { + oprot.writeString(struct.itemID); } - if (struct.isSetNachname()) { - oprot.writeString(struct.Nachname); + if (struct.isSetToken()) { + oprot.writeString(struct.token); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getPersonData_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getItemOwner_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.Vorname = iprot.readString(); - struct.setVornameIsSet(true); + struct.itemID = iprot.readString(); + struct.setItemIDIsSet(true); } if (incoming.get(1)) { - struct.Nachname = iprot.readString(); - struct.setNachnameIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } } } } - public static class getPersonData_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("getPersonData_result"); + public static class getItemOwner_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("getItemOwner_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getPersonData_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getPersonData_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getItemOwner_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getItemOwner_resultTupleSchemeFactory()); } public Map success; // required @@ -21865,13 +24917,13 @@ public class Server { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPersonData_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemOwner_result.class, metaDataMap); } - public getPersonData_result() { + public getItemOwner_result() { } - public getPersonData_result( + public getItemOwner_result( Map success) { this(); @@ -21881,15 +24933,15 @@ public class Server { /** * Performs a deep copy on other. */ - public getPersonData_result(getPersonData_result other) { + public getItemOwner_result(getItemOwner_result other) { if (other.isSetSuccess()) { Map __this__success = new HashMap(other.success); this.success = __this__success; } } - public getPersonData_result deepCopy() { - return new getPersonData_result(this); + public getItemOwner_result deepCopy() { + return new getItemOwner_result(this); } @Override @@ -21912,7 +24964,7 @@ public class Server { return this.success; } - public getPersonData_result setSuccess(Map success) { + public getItemOwner_result setSuccess(Map success) { this.success = success; return this; } @@ -21971,12 +25023,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getPersonData_result) - return this.equals((getPersonData_result)that); + if (that instanceof getItemOwner_result) + return this.equals((getItemOwner_result)that); return false; } - public boolean equals(getPersonData_result that) { + public boolean equals(getItemOwner_result that) { if (that == null) return false; @@ -21998,7 +25050,7 @@ public class Server { } @Override - public int compareTo(getPersonData_result other) { + public int compareTo(getItemOwner_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -22032,7 +25084,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getPersonData_result("); + StringBuilder sb = new StringBuilder("getItemOwner_result("); boolean first = true; sb.append("success:"); @@ -22067,15 +25119,15 @@ public class Server { } } - private static class getPersonData_resultStandardSchemeFactory implements SchemeFactory { - public getPersonData_resultStandardScheme getScheme() { - return new getPersonData_resultStandardScheme(); + private static class getItemOwner_resultStandardSchemeFactory implements SchemeFactory { + public getItemOwner_resultStandardScheme getScheme() { + return new getItemOwner_resultStandardScheme(); } } - private static class getPersonData_resultStandardScheme extends StandardScheme { + private static class getItemOwner_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getPersonData_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getItemOwner_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -22088,15 +25140,15 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map96 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map96.size); - for (int _i97 = 0; _i97 < _map96.size; ++_i97) + org.apache.thrift.protocol.TMap _map106 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map106.size); + for (int _i107 = 0; _i107 < _map106.size; ++_i107) { - String _key98; - String _val99; - _key98 = iprot.readString(); - _val99 = iprot.readString(); - struct.success.put(_key98, _val99); + String _key108; + String _val109; + _key108 = iprot.readString(); + _val109 = iprot.readString(); + struct.success.put(_key108, _val109); } iprot.readMapEnd(); } @@ -22116,7 +25168,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getPersonData_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getItemOwner_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -22124,10 +25176,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 _iter100 : struct.success.entrySet()) + for (Map.Entry _iter110 : struct.success.entrySet()) { - oprot.writeString(_iter100.getKey()); - oprot.writeString(_iter100.getValue()); + oprot.writeString(_iter110.getKey()); + oprot.writeString(_iter110.getValue()); } oprot.writeMapEnd(); } @@ -22139,16 +25191,16 @@ public class Server { } - private static class getPersonData_resultTupleSchemeFactory implements SchemeFactory { - public getPersonData_resultTupleScheme getScheme() { - return new getPersonData_resultTupleScheme(); + private static class getItemOwner_resultTupleSchemeFactory implements SchemeFactory { + public getItemOwner_resultTupleScheme getScheme() { + return new getItemOwner_resultTupleScheme(); } } - private static class getPersonData_resultTupleScheme extends TupleScheme { + private static class getItemOwner_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getPersonData_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getItemOwner_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -22158,30 +25210,30 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter101 : struct.success.entrySet()) + for (Map.Entry _iter111 : struct.success.entrySet()) { - oprot.writeString(_iter101.getKey()); - oprot.writeString(_iter101.getValue()); + oprot.writeString(_iter111.getKey()); + oprot.writeString(_iter111.getValue()); } } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getPersonData_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getItemOwner_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map102 = 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*_map102.size); - for (int _i103 = 0; _i103 < _map102.size; ++_i103) + org.apache.thrift.protocol.TMap _map112 = 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*_map112.size); + for (int _i113 = 0; _i113 < _map112.size; ++_i113) { - String _key104; - String _val105; - _key104 = iprot.readString(); - _val105 = iprot.readString(); - struct.success.put(_key104, _val105); + String _key114; + String _val115; + _key114 = iprot.readString(); + _val115 = iprot.readString(); + struct.success.put(_key114, _val115); } } struct.setSuccessIsSet(true); @@ -22191,22 +25243,28 @@ public class Server { } - public static class getItemOwner_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("getItemOwner_args"); + public static class setPerson_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("setPerson_args"); - private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemID", org.apache.thrift.protocol.TType.STRING, (short)1); + 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 org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField INSTITUTION_FIELD_DESC = new org.apache.thrift.protocol.TField("institution", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getItemOwner_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getItemOwner_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new setPerson_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new setPerson_argsTupleSchemeFactory()); } - public String itemID; // required + public String userID; // required + public String token; // required + public String institution; // 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 { - ITEM_ID((short)1, "itemID"); + USER_ID((short)1, "userID"), + TOKEN((short)2, "token"), + INSTITUTION((short)3, "institution"); private static final Map byName = new HashMap(); @@ -22221,8 +25279,12 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // ITEM_ID - return ITEM_ID; + case 1: // USER_ID + return USER_ID; + case 2: // TOKEN + return TOKEN; + case 3: // INSTITUTION + return INSTITUTION; default: return null; } @@ -22266,71 +25328,151 @@ public class Server { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemID", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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))); + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.INSTITUTION, new org.apache.thrift.meta_data.FieldMetaData("institution", 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(getItemOwner_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setPerson_args.class, metaDataMap); } - public getItemOwner_args() { + public setPerson_args() { } - public getItemOwner_args( - String itemID) + public setPerson_args( + String userID, + String token, + String institution) { this(); - this.itemID = itemID; + this.userID = userID; + this.token = token; + this.institution = institution; } /** * Performs a deep copy on other. */ - public getItemOwner_args(getItemOwner_args other) { - if (other.isSetItemID()) { - this.itemID = other.itemID; + public setPerson_args(setPerson_args other) { + if (other.isSetUserID()) { + this.userID = other.userID; + } + if (other.isSetToken()) { + this.token = other.token; + } + if (other.isSetInstitution()) { + this.institution = other.institution; } } - public getItemOwner_args deepCopy() { - return new getItemOwner_args(this); + public setPerson_args deepCopy() { + return new setPerson_args(this); } @Override public void clear() { - this.itemID = null; + this.userID = null; + this.token = null; + this.institution = null; } - public String getItemID() { - return this.itemID; + public String getUserID() { + return this.userID; } - public getItemOwner_args setItemID(String itemID) { - this.itemID = itemID; + public setPerson_args setUserID(String userID) { + this.userID = userID; return this; } - public void unsetItemID() { - this.itemID = null; + public void unsetUserID() { + this.userID = null; } - /** Returns true if field itemID is set (has been assigned a value) and false otherwise */ - public boolean isSetItemID() { - return this.itemID != 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 setItemIDIsSet(boolean value) { + public void setUserIDIsSet(boolean value) { if (!value) { - this.itemID = null; + this.userID = null; + } + } + + public String getToken() { + return this.token; + } + + public setPerson_args setToken(String token) { + this.token = token; + return this; + } + + public void unsetToken() { + this.token = null; + } + + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; + } + + public void setTokenIsSet(boolean value) { + if (!value) { + this.token = null; + } + } + + public String getInstitution() { + return this.institution; + } + + public setPerson_args setInstitution(String institution) { + this.institution = institution; + return this; + } + + public void unsetInstitution() { + this.institution = null; + } + + /** Returns true if field institution is set (has been assigned a value) and false otherwise */ + public boolean isSetInstitution() { + return this.institution != null; + } + + public void setInstitutionIsSet(boolean value) { + if (!value) { + this.institution = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case ITEM_ID: + case USER_ID: if (value == null) { - unsetItemID(); + unsetUserID(); } else { - setItemID((String)value); + setUserID((String)value); + } + break; + + case TOKEN: + if (value == null) { + unsetToken(); + } else { + setToken((String)value); + } + break; + + case INSTITUTION: + if (value == null) { + unsetInstitution(); + } else { + setInstitution((String)value); } break; @@ -22339,8 +25481,14 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case ITEM_ID: - return getItemID(); + case USER_ID: + return getUserID(); + + case TOKEN: + return getToken(); + + case INSTITUTION: + return getInstitution(); } throw new IllegalStateException(); @@ -22353,8 +25501,12 @@ public class Server { } switch (field) { - case ITEM_ID: - return isSetItemID(); + case USER_ID: + return isSetUserID(); + case TOKEN: + return isSetToken(); + case INSTITUTION: + return isSetInstitution(); } throw new IllegalStateException(); } @@ -22363,21 +25515,39 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getItemOwner_args) - return this.equals((getItemOwner_args)that); + if (that instanceof setPerson_args) + return this.equals((setPerson_args)that); return false; } - public boolean equals(getItemOwner_args that) { + public boolean equals(setPerson_args that) { if (that == null) return false; - boolean this_present_itemID = true && this.isSetItemID(); - boolean that_present_itemID = true && that.isSetItemID(); - if (this_present_itemID || that_present_itemID) { - if (!(this_present_itemID && that_present_itemID)) + 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.itemID.equals(that.itemID)) + if (!this.userID.equals(that.userID)) + return false; + } + + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) + return false; + if (!this.token.equals(that.token)) + return false; + } + + boolean this_present_institution = true && this.isSetInstitution(); + boolean that_present_institution = true && that.isSetInstitution(); + if (this_present_institution || that_present_institution) { + if (!(this_present_institution && that_present_institution)) + return false; + if (!this.institution.equals(that.institution)) return false; } @@ -22390,19 +25560,39 @@ public class Server { } @Override - public int compareTo(getItemOwner_args other) { + public int compareTo(setPerson_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetItemID()).compareTo(other.isSetItemID()); + lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); if (lastComparison != 0) { return lastComparison; } - if (isSetItemID()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemID, other.itemID); + if (isSetUserID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetInstitution()).compareTo(other.isSetInstitution()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetInstitution()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.institution, other.institution); if (lastComparison != 0) { return lastComparison; } @@ -22424,14 +25614,30 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getItemOwner_args("); + StringBuilder sb = new StringBuilder("setPerson_args("); boolean first = true; - sb.append("itemID:"); - if (this.itemID == null) { + sb.append("userID:"); + if (this.userID == null) { sb.append("null"); } else { - sb.append(this.itemID); + sb.append(this.userID); + } + first = false; + if (!first) sb.append(", "); + sb.append("token:"); + if (this.token == null) { + sb.append("null"); + } else { + sb.append(this.token); + } + first = false; + if (!first) sb.append(", "); + sb.append("institution:"); + if (this.institution == null) { + sb.append("null"); + } else { + sb.append(this.institution); } first = false; sb.append(")"); @@ -22459,15 +25665,15 @@ public class Server { } } - private static class getItemOwner_argsStandardSchemeFactory implements SchemeFactory { - public getItemOwner_argsStandardScheme getScheme() { - return new getItemOwner_argsStandardScheme(); + private static class setPerson_argsStandardSchemeFactory implements SchemeFactory { + public setPerson_argsStandardScheme getScheme() { + return new setPerson_argsStandardScheme(); } } - private static class getItemOwner_argsStandardScheme extends StandardScheme { + private static class setPerson_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getItemOwner_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, setPerson_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -22477,10 +25683,26 @@ public class Server { break; } switch (schemeField.id) { - case 1: // ITEM_ID + case 1: // USER_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.itemID = iprot.readString(); - struct.setItemIDIsSet(true); + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TOKEN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // INSTITUTION + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.institution = iprot.readString(); + struct.setInstitutionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -22496,13 +25718,23 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getItemOwner_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, setPerson_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.itemID != null) { - oprot.writeFieldBegin(ITEM_ID_FIELD_DESC); - oprot.writeString(struct.itemID); + if (struct.userID != null) { + oprot.writeFieldBegin(USER_ID_FIELD_DESC); + oprot.writeString(struct.userID); + oprot.writeFieldEnd(); + } + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); + oprot.writeFieldEnd(); + } + if (struct.institution != null) { + oprot.writeFieldBegin(INSTITUTION_FIELD_DESC); + oprot.writeString(struct.institution); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -22511,56 +25743,74 @@ public class Server { } - private static class getItemOwner_argsTupleSchemeFactory implements SchemeFactory { - public getItemOwner_argsTupleScheme getScheme() { - return new getItemOwner_argsTupleScheme(); + private static class setPerson_argsTupleSchemeFactory implements SchemeFactory { + public setPerson_argsTupleScheme getScheme() { + return new setPerson_argsTupleScheme(); } } - private static class getItemOwner_argsTupleScheme extends TupleScheme { + private static class setPerson_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getItemOwner_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, setPerson_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetItemID()) { + if (struct.isSetUserID()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetItemID()) { - oprot.writeString(struct.itemID); + if (struct.isSetToken()) { + optionals.set(1); + } + if (struct.isSetInstitution()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetUserID()) { + oprot.writeString(struct.userID); + } + if (struct.isSetToken()) { + oprot.writeString(struct.token); + } + if (struct.isSetInstitution()) { + oprot.writeString(struct.institution); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getItemOwner_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, setPerson_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.itemID = iprot.readString(); - struct.setItemIDIsSet(true); + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); + } + if (incoming.get(1)) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } + if (incoming.get(2)) { + struct.institution = iprot.readString(); + struct.setInstitutionIsSet(true); } } } } - public static class getItemOwner_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("getItemOwner_result"); + public static class setPerson_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("setPerson_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getItemOwner_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getItemOwner_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new setPerson_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new setPerson_resultTupleSchemeFactory()); } - public Map success; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"); +; private static final Map byName = new HashMap(); @@ -22575,8 +25825,6 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; default: return null; } @@ -22615,101 +25863,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.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemOwner_result.class, metaDataMap); - } - - public getItemOwner_result() { + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setPerson_result.class, metaDataMap); } - public getItemOwner_result( - Map success) - { - this(); - this.success = success; + public setPerson_result() { } /** * Performs a deep copy on other. */ - public getItemOwner_result(getItemOwner_result other) { - if (other.isSetSuccess()) { - Map __this__success = new HashMap(other.success); - this.success = __this__success; - } + public setPerson_result(setPerson_result other) { } - public getItemOwner_result deepCopy() { - return new getItemOwner_result(this); + public setPerson_result deepCopy() { + return new setPerson_result(this); } @Override public void clear() { - this.success = null; - } - - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public void putToSuccess(String key, String val) { - if (this.success == null) { - this.success = new HashMap(); - } - this.success.put(key, val); - } - - public Map getSuccess() { - return this.success; - } - - public getItemOwner_result setSuccess(Map 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((Map)value); - } - break; - } } public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - } throw new IllegalStateException(); } @@ -22721,8 +25905,6 @@ public class Server { } switch (field) { - case SUCCESS: - return isSetSuccess(); } throw new IllegalStateException(); } @@ -22731,24 +25913,15 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getItemOwner_result) - return this.equals((getItemOwner_result)that); + if (that instanceof setPerson_result) + return this.equals((setPerson_result)that); return false; } - public boolean equals(getItemOwner_result that) { + public boolean equals(setPerson_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; } @@ -22758,23 +25931,13 @@ public class Server { } @Override - public int compareTo(getItemOwner_result other) { + public int compareTo(setPerson_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; } @@ -22792,16 +25955,9 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getItemOwner_result("); + StringBuilder sb = new StringBuilder("setPerson_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(); } @@ -22827,15 +25983,15 @@ public class Server { } } - private static class getItemOwner_resultStandardSchemeFactory implements SchemeFactory { - public getItemOwner_resultStandardScheme getScheme() { - return new getItemOwner_resultStandardScheme(); + private static class setPerson_resultStandardSchemeFactory implements SchemeFactory { + public setPerson_resultStandardScheme getScheme() { + return new setPerson_resultStandardScheme(); } } - private static class getItemOwner_resultStandardScheme extends StandardScheme { + private static class setPerson_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getItemOwner_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, setPerson_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -22845,26 +26001,6 @@ public class Server { break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map106 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map106.size); - for (int _i107 = 0; _i107 < _map106.size; ++_i107) - { - String _key108; - String _val109; - _key108 = iprot.readString(); - _val109 = iprot.readString(); - struct.success.put(_key108, _val109); - } - iprot.readMapEnd(); - } - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -22876,401 +26012,674 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getItemOwner_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, setPerson_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (Map.Entry _iter110 : struct.success.entrySet()) - { - oprot.writeString(_iter110.getKey()); - oprot.writeString(_iter110.getValue()); - } - oprot.writeMapEnd(); - } - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getItemOwner_resultTupleSchemeFactory implements SchemeFactory { - public getItemOwner_resultTupleScheme getScheme() { - return new getItemOwner_resultTupleScheme(); + private static class setPerson_resultTupleSchemeFactory implements SchemeFactory { + public setPerson_resultTupleScheme getScheme() { + return new setPerson_resultTupleScheme(); } } - private static class getItemOwner_resultTupleScheme extends TupleScheme { + private static class setPerson_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getItemOwner_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, setPerson_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 (Map.Entry _iter111 : struct.success.entrySet()) - { - oprot.writeString(_iter111.getKey()); - oprot.writeString(_iter111.getValue()); - } - } - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getItemOwner_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, setPerson_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TMap _map112 = 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*_map112.size); - for (int _i113 = 0; _i113 < _map112.size; ++_i113) - { - String _key114; - String _val115; - _key114 = iprot.readString(); - _val115 = iprot.readString(); - struct.success.put(_key114, _val115); - } - } - struct.setSuccessIsSet(true); + } + } + + } + + public static class writeLecturedata_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("writeLecturedata_args"); + + private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField SHORTDESC_FIELD_DESC = new org.apache.thrift.protocol.TField("shortdesc", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField DESC_FIELD_DESC = new org.apache.thrift.protocol.TField("desc", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField END_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("endDate", org.apache.thrift.protocol.TType.STRING, (short)5); + private static final org.apache.thrift.protocol.TField IS_ACTIVE_FIELD_DESC = new org.apache.thrift.protocol.TField("isActive", org.apache.thrift.protocol.TType.BOOL, (short)6); + private static final org.apache.thrift.protocol.TField IMAGENAME_FIELD_DESC = new org.apache.thrift.protocol.TField("imagename", org.apache.thrift.protocol.TType.STRING, (short)7); + private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)8); + private static final org.apache.thrift.protocol.TField TEL_FIELD_DESC = new org.apache.thrift.protocol.TField("Tel", org.apache.thrift.protocol.TType.STRING, (short)13); + private static final org.apache.thrift.protocol.TField FAK_FIELD_DESC = new org.apache.thrift.protocol.TField("Fak", org.apache.thrift.protocol.TType.STRING, (short)14); + private static final org.apache.thrift.protocol.TField LECTURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureID", org.apache.thrift.protocol.TType.STRING, (short)16); + private static final org.apache.thrift.protocol.TField UNIVERSITY_FIELD_DESC = new org.apache.thrift.protocol.TField("university", org.apache.thrift.protocol.TType.STRING, (short)17); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new writeLecturedata_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeLecturedata_argsTupleSchemeFactory()); + } + + public String name; // required + public String shortdesc; // required + public String desc; // required + public String startDate; // required + public String endDate; // required + public boolean isActive; // required + public String imagename; // required + public String token; // required + public String Tel; // required + public String Fak; // required + public String lectureID; // required + public String university; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + NAME((short)1, "name"), + SHORTDESC((short)2, "shortdesc"), + DESC((short)3, "desc"), + START_DATE((short)4, "startDate"), + END_DATE((short)5, "endDate"), + IS_ACTIVE((short)6, "isActive"), + IMAGENAME((short)7, "imagename"), + TOKEN((short)8, "token"), + TEL((short)13, "Tel"), + FAK((short)14, "Fak"), + LECTURE_ID((short)16, "lectureID"), + UNIVERSITY((short)17, "university"); + + 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: // NAME + return NAME; + case 2: // SHORTDESC + return SHORTDESC; + case 3: // DESC + return DESC; + case 4: // START_DATE + return START_DATE; + case 5: // END_DATE + return END_DATE; + case 6: // IS_ACTIVE + return IS_ACTIVE; + case 7: // IMAGENAME + return IMAGENAME; + case 8: // TOKEN + return TOKEN; + case 13: // TEL + return TEL; + case 14: // FAK + return FAK; + case 16: // LECTURE_ID + return LECTURE_ID; + case 17: // UNIVERSITY + return UNIVERSITY; + default: + return null; } } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __ISACTIVE_ISSET_ID = 0; + private byte __isset_bitfield = 0; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.SHORTDESC, new org.apache.thrift.meta_data.FieldMetaData("shortdesc", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DESC, new org.apache.thrift.meta_data.FieldMetaData("desc", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.IS_ACTIVE, new org.apache.thrift.meta_data.FieldMetaData("isActive", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.IMAGENAME, new org.apache.thrift.meta_data.FieldMetaData("imagename", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TEL, new org.apache.thrift.meta_data.FieldMetaData("Tel", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.FAK, new org.apache.thrift.meta_data.FieldMetaData("Fak", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.LECTURE_ID, new org.apache.thrift.meta_data.FieldMetaData("lectureID", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.UNIVERSITY, new org.apache.thrift.meta_data.FieldMetaData("university", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeLecturedata_args.class, metaDataMap); + } + + public writeLecturedata_args() { + } + + public writeLecturedata_args( + String name, + String shortdesc, + String desc, + String startDate, + String endDate, + boolean isActive, + String imagename, + String token, + String Tel, + String Fak, + String lectureID, + String university) + { + this(); + this.name = name; + this.shortdesc = shortdesc; + this.desc = desc; + this.startDate = startDate; + this.endDate = endDate; + this.isActive = isActive; + setIsActiveIsSet(true); + this.imagename = imagename; + this.token = token; + this.Tel = Tel; + this.Fak = Fak; + this.lectureID = lectureID; + this.university = university; + } + + /** + * Performs a deep copy on other. + */ + public writeLecturedata_args(writeLecturedata_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetName()) { + this.name = other.name; + } + if (other.isSetShortdesc()) { + this.shortdesc = other.shortdesc; + } + if (other.isSetDesc()) { + this.desc = other.desc; + } + if (other.isSetStartDate()) { + this.startDate = other.startDate; + } + if (other.isSetEndDate()) { + this.endDate = other.endDate; + } + this.isActive = other.isActive; + if (other.isSetImagename()) { + this.imagename = other.imagename; + } + if (other.isSetToken()) { + this.token = other.token; + } + if (other.isSetTel()) { + this.Tel = other.Tel; + } + if (other.isSetFak()) { + this.Fak = other.Fak; + } + if (other.isSetLectureID()) { + this.lectureID = other.lectureID; + } + if (other.isSetUniversity()) { + this.university = other.university; + } + } + + public writeLecturedata_args deepCopy() { + return new writeLecturedata_args(this); + } + + @Override + public void clear() { + this.name = null; + this.shortdesc = null; + this.desc = null; + this.startDate = null; + this.endDate = null; + setIsActiveIsSet(false); + this.isActive = false; + this.imagename = null; + this.token = null; + this.Tel = null; + this.Fak = null; + this.lectureID = null; + this.university = null; + } + + public String getName() { + return this.name; + } + + public writeLecturedata_args setName(String name) { + this.name = name; + return this; + } + + public void unsetName() { + this.name = null; + } + + /** Returns true if field name is set (has been assigned a value) and false otherwise */ + public boolean isSetName() { + return this.name != null; + } + + public void setNameIsSet(boolean value) { + if (!value) { + this.name = null; + } + } + + public String getShortdesc() { + return this.shortdesc; + } + + public writeLecturedata_args setShortdesc(String shortdesc) { + this.shortdesc = shortdesc; + return this; + } + + public void unsetShortdesc() { + this.shortdesc = null; + } + + /** Returns true if field shortdesc is set (has been assigned a value) and false otherwise */ + public boolean isSetShortdesc() { + return this.shortdesc != null; + } + + public void setShortdescIsSet(boolean value) { + if (!value) { + this.shortdesc = null; + } + } + + public String getDesc() { + return this.desc; + } + + public writeLecturedata_args setDesc(String desc) { + this.desc = desc; + return this; } - } + public void unsetDesc() { + this.desc = null; + } - public static class setPerson_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("setPerson_args"); + /** Returns true if field desc is set (has been assigned a value) and false otherwise */ + public boolean isSetDesc() { + return this.desc != null; + } - private static final org.apache.thrift.protocol.TField LOGIN_FIELD_DESC = new org.apache.thrift.protocol.TField("login", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField LASTNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lastname", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField FIRSTNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("firstname", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final org.apache.thrift.protocol.TField MAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("mail", org.apache.thrift.protocol.TType.STRING, (short)4); - private static final org.apache.thrift.protocol.TField INSTITUTION_FIELD_DESC = new org.apache.thrift.protocol.TField("Institution", org.apache.thrift.protocol.TType.STRING, (short)5); + public void setDescIsSet(boolean value) { + if (!value) { + this.desc = null; + } + } - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new setPerson_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new setPerson_argsTupleSchemeFactory()); + public String getStartDate() { + return this.startDate; } - public String login; // required - public String lastname; // required - public String firstname; // required - public String mail; // required - public String Institution; // required + public writeLecturedata_args setStartDate(String startDate) { + this.startDate = startDate; + return this; + } - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements org.apache.thrift.TFieldIdEnum { - LOGIN((short)1, "login"), - LASTNAME((short)2, "lastname"), - FIRSTNAME((short)3, "firstname"), - MAIL((short)4, "mail"), - INSTITUTION((short)5, "Institution"); + public void unsetStartDate() { + this.startDate = null; + } - private static final Map byName = new HashMap(); + /** Returns true if field startDate is set (has been assigned a value) and false otherwise */ + public boolean isSetStartDate() { + return this.startDate != null; + } - static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { - byName.put(field.getFieldName(), field); - } + public void setStartDateIsSet(boolean value) { + if (!value) { + this.startDate = null; } + } - /** - * Find the _Fields constant that matches fieldId, or null if its not found. - */ - public static _Fields findByThriftId(int fieldId) { - switch(fieldId) { - case 1: // LOGIN - return LOGIN; - case 2: // LASTNAME - return LASTNAME; - case 3: // FIRSTNAME - return FIRSTNAME; - case 4: // MAIL - return MAIL; - case 5: // INSTITUTION - return INSTITUTION; - default: - return null; - } - } + public String getEndDate() { + return this.endDate; + } - /** - * Find the _Fields constant that matches fieldId, throwing an exception - * if it is not found. - */ - public static _Fields findByThriftIdOrThrow(int fieldId) { - _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); - return fields; - } + public writeLecturedata_args setEndDate(String endDate) { + this.endDate = endDate; + return this; + } - /** - * Find the _Fields constant that matches name, or null if its not found. - */ - public static _Fields findByName(String name) { - return byName.get(name); - } + public void unsetEndDate() { + this.endDate = null; + } - private final short _thriftId; - private final String _fieldName; + /** Returns true if field endDate is set (has been assigned a value) and false otherwise */ + public boolean isSetEndDate() { + return this.endDate != null; + } - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; + public void setEndDateIsSet(boolean value) { + if (!value) { + this.endDate = null; } + } - public short getThriftFieldId() { - return _thriftId; - } + public boolean isIsActive() { + return this.isActive; + } - public String getFieldName() { - return _fieldName; - } + public writeLecturedata_args setIsActive(boolean isActive) { + this.isActive = isActive; + setIsActiveIsSet(true); + return this; } - // 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.LOGIN, new org.apache.thrift.meta_data.FieldMetaData("login", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.LASTNAME, new org.apache.thrift.meta_data.FieldMetaData("lastname", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.FIRSTNAME, new org.apache.thrift.meta_data.FieldMetaData("firstname", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("mail", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.INSTITUTION, new org.apache.thrift.meta_data.FieldMetaData("Institution", 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(setPerson_args.class, metaDataMap); + public void unsetIsActive() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISACTIVE_ISSET_ID); } - public setPerson_args() { + /** Returns true if field isActive is set (has been assigned a value) and false otherwise */ + public boolean isSetIsActive() { + return EncodingUtils.testBit(__isset_bitfield, __ISACTIVE_ISSET_ID); } - public setPerson_args( - String login, - String lastname, - String firstname, - String mail, - String Institution) - { - this(); - this.login = login; - this.lastname = lastname; - this.firstname = firstname; - this.mail = mail; - this.Institution = Institution; + public void setIsActiveIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISACTIVE_ISSET_ID, value); } - /** - * Performs a deep copy on other. - */ - public setPerson_args(setPerson_args other) { - if (other.isSetLogin()) { - this.login = other.login; - } - if (other.isSetLastname()) { - this.lastname = other.lastname; - } - if (other.isSetFirstname()) { - this.firstname = other.firstname; - } - if (other.isSetMail()) { - this.mail = other.mail; - } - if (other.isSetInstitution()) { - this.Institution = other.Institution; - } + public String getImagename() { + return this.imagename; } - public setPerson_args deepCopy() { - return new setPerson_args(this); + public writeLecturedata_args setImagename(String imagename) { + this.imagename = imagename; + return this; } - @Override - public void clear() { - this.login = null; - this.lastname = null; - this.firstname = null; - this.mail = null; - this.Institution = null; + public void unsetImagename() { + this.imagename = null; + } + + /** Returns true if field imagename is set (has been assigned a value) and false otherwise */ + public boolean isSetImagename() { + return this.imagename != null; + } + + public void setImagenameIsSet(boolean value) { + if (!value) { + this.imagename = null; + } } - public String getLogin() { - return this.login; + public String getToken() { + return this.token; } - public setPerson_args setLogin(String login) { - this.login = login; + public writeLecturedata_args setToken(String token) { + this.token = token; return this; } - public void unsetLogin() { - this.login = null; + public void unsetToken() { + this.token = null; } - /** Returns true if field login is set (has been assigned a value) and false otherwise */ - public boolean isSetLogin() { - return this.login != null; + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; } - public void setLoginIsSet(boolean value) { + public void setTokenIsSet(boolean value) { if (!value) { - this.login = null; + this.token = null; } } - public String getLastname() { - return this.lastname; + public String getTel() { + return this.Tel; } - public setPerson_args setLastname(String lastname) { - this.lastname = lastname; + public writeLecturedata_args setTel(String Tel) { + this.Tel = Tel; return this; } - public void unsetLastname() { - this.lastname = null; + public void unsetTel() { + this.Tel = null; } - /** Returns true if field lastname is set (has been assigned a value) and false otherwise */ - public boolean isSetLastname() { - return this.lastname != null; + /** Returns true if field Tel is set (has been assigned a value) and false otherwise */ + public boolean isSetTel() { + return this.Tel != null; } - public void setLastnameIsSet(boolean value) { + public void setTelIsSet(boolean value) { if (!value) { - this.lastname = null; + this.Tel = null; } } - public String getFirstname() { - return this.firstname; + public String getFak() { + return this.Fak; } - public setPerson_args setFirstname(String firstname) { - this.firstname = firstname; + public writeLecturedata_args setFak(String Fak) { + this.Fak = Fak; return this; } - public void unsetFirstname() { - this.firstname = null; + public void unsetFak() { + this.Fak = null; } - /** Returns true if field firstname is set (has been assigned a value) and false otherwise */ - public boolean isSetFirstname() { - return this.firstname != null; + /** Returns true if field Fak is set (has been assigned a value) and false otherwise */ + public boolean isSetFak() { + return this.Fak != null; } - public void setFirstnameIsSet(boolean value) { + public void setFakIsSet(boolean value) { if (!value) { - this.firstname = null; + this.Fak = null; } } - public String getMail() { - return this.mail; + public String getLectureID() { + return this.lectureID; } - public setPerson_args setMail(String mail) { - this.mail = mail; + public writeLecturedata_args setLectureID(String lectureID) { + this.lectureID = lectureID; return this; } - public void unsetMail() { - this.mail = null; + public void unsetLectureID() { + this.lectureID = null; } - /** Returns true if field mail is set (has been assigned a value) and false otherwise */ - public boolean isSetMail() { - return this.mail != null; + /** Returns true if field lectureID is set (has been assigned a value) and false otherwise */ + public boolean isSetLectureID() { + return this.lectureID != null; } - public void setMailIsSet(boolean value) { + public void setLectureIDIsSet(boolean value) { if (!value) { - this.mail = null; + this.lectureID = null; } } - public String getInstitution() { - return this.Institution; + public String getUniversity() { + return this.university; } - public setPerson_args setInstitution(String Institution) { - this.Institution = Institution; + public writeLecturedata_args setUniversity(String university) { + this.university = university; return this; } - public void unsetInstitution() { - this.Institution = null; + public void unsetUniversity() { + this.university = null; } - /** Returns true if field Institution is set (has been assigned a value) and false otherwise */ - public boolean isSetInstitution() { - return this.Institution != null; + /** Returns true if field university is set (has been assigned a value) and false otherwise */ + public boolean isSetUniversity() { + return this.university != null; } - public void setInstitutionIsSet(boolean value) { + public void setUniversityIsSet(boolean value) { if (!value) { - this.Institution = null; + this.university = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case LOGIN: + case NAME: + if (value == null) { + unsetName(); + } else { + setName((String)value); + } + break; + + case SHORTDESC: if (value == null) { - unsetLogin(); + unsetShortdesc(); } else { - setLogin((String)value); + setShortdesc((String)value); } break; - case LASTNAME: + case DESC: if (value == null) { - unsetLastname(); + unsetDesc(); } else { - setLastname((String)value); + setDesc((String)value); } break; - case FIRSTNAME: + case START_DATE: if (value == null) { - unsetFirstname(); + unsetStartDate(); } else { - setFirstname((String)value); + setStartDate((String)value); } break; - case MAIL: + case END_DATE: if (value == null) { - unsetMail(); + unsetEndDate(); } else { - setMail((String)value); + setEndDate((String)value); } break; - case INSTITUTION: + case IS_ACTIVE: if (value == null) { - unsetInstitution(); + unsetIsActive(); } else { - setInstitution((String)value); + setIsActive((Boolean)value); + } + break; + + case IMAGENAME: + if (value == null) { + unsetImagename(); + } else { + setImagename((String)value); + } + break; + + case TOKEN: + if (value == null) { + unsetToken(); + } else { + setToken((String)value); + } + break; + + case TEL: + if (value == null) { + unsetTel(); + } else { + setTel((String)value); + } + break; + + case FAK: + if (value == null) { + unsetFak(); + } else { + setFak((String)value); + } + break; + + case LECTURE_ID: + if (value == null) { + unsetLectureID(); + } else { + setLectureID((String)value); + } + break; + + case UNIVERSITY: + if (value == null) { + unsetUniversity(); + } else { + setUniversity((String)value); } break; @@ -23279,20 +26688,41 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case LOGIN: - return getLogin(); + case NAME: + return getName(); - case LASTNAME: - return getLastname(); + case SHORTDESC: + return getShortdesc(); - case FIRSTNAME: - return getFirstname(); + case DESC: + return getDesc(); - case MAIL: - return getMail(); + case START_DATE: + return getStartDate(); - case INSTITUTION: - return getInstitution(); + case END_DATE: + return getEndDate(); + + case IS_ACTIVE: + return Boolean.valueOf(isIsActive()); + + case IMAGENAME: + return getImagename(); + + case TOKEN: + return getToken(); + + case TEL: + return getTel(); + + case FAK: + return getFak(); + + case LECTURE_ID: + return getLectureID(); + + case UNIVERSITY: + return getUniversity(); } throw new IllegalStateException(); @@ -23305,16 +26735,30 @@ public class Server { } switch (field) { - case LOGIN: - return isSetLogin(); - case LASTNAME: - return isSetLastname(); - case FIRSTNAME: - return isSetFirstname(); - case MAIL: - return isSetMail(); - case INSTITUTION: - return isSetInstitution(); + case NAME: + return isSetName(); + case SHORTDESC: + return isSetShortdesc(); + case DESC: + return isSetDesc(); + case START_DATE: + return isSetStartDate(); + case END_DATE: + return isSetEndDate(); + case IS_ACTIVE: + return isSetIsActive(); + case IMAGENAME: + return isSetImagename(); + case TOKEN: + return isSetToken(); + case TEL: + return isSetTel(); + case FAK: + return isSetFak(); + case LECTURE_ID: + return isSetLectureID(); + case UNIVERSITY: + return isSetUniversity(); } throw new IllegalStateException(); } @@ -23323,122 +26767,255 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof setPerson_args) - return this.equals((setPerson_args)that); + if (that instanceof writeLecturedata_args) + return this.equals((writeLecturedata_args)that); return false; } - public boolean equals(setPerson_args that) { + public boolean equals(writeLecturedata_args that) { if (that == null) return false; - boolean this_present_login = true && this.isSetLogin(); - boolean that_present_login = true && that.isSetLogin(); - if (this_present_login || that_present_login) { - if (!(this_present_login && that_present_login)) + boolean this_present_name = true && this.isSetName(); + boolean that_present_name = true && that.isSetName(); + if (this_present_name || that_present_name) { + if (!(this_present_name && that_present_name)) + return false; + if (!this.name.equals(that.name)) + return false; + } + + boolean this_present_shortdesc = true && this.isSetShortdesc(); + boolean that_present_shortdesc = true && that.isSetShortdesc(); + if (this_present_shortdesc || that_present_shortdesc) { + if (!(this_present_shortdesc && that_present_shortdesc)) + return false; + if (!this.shortdesc.equals(that.shortdesc)) + return false; + } + + boolean this_present_desc = true && this.isSetDesc(); + boolean that_present_desc = true && that.isSetDesc(); + if (this_present_desc || that_present_desc) { + if (!(this_present_desc && that_present_desc)) + return false; + if (!this.desc.equals(that.desc)) + return false; + } + + boolean this_present_startDate = true && this.isSetStartDate(); + boolean that_present_startDate = true && that.isSetStartDate(); + if (this_present_startDate || that_present_startDate) { + if (!(this_present_startDate && that_present_startDate)) + return false; + if (!this.startDate.equals(that.startDate)) + return false; + } + + boolean this_present_endDate = true && this.isSetEndDate(); + boolean that_present_endDate = true && that.isSetEndDate(); + if (this_present_endDate || that_present_endDate) { + if (!(this_present_endDate && that_present_endDate)) + return false; + if (!this.endDate.equals(that.endDate)) + return false; + } + + boolean this_present_isActive = true; + boolean that_present_isActive = true; + if (this_present_isActive || that_present_isActive) { + if (!(this_present_isActive && that_present_isActive)) + return false; + if (this.isActive != that.isActive) + return false; + } + + boolean this_present_imagename = true && this.isSetImagename(); + boolean that_present_imagename = true && that.isSetImagename(); + if (this_present_imagename || that_present_imagename) { + if (!(this_present_imagename && that_present_imagename)) + return false; + if (!this.imagename.equals(that.imagename)) + return false; + } + + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) + return false; + if (!this.token.equals(that.token)) + return false; + } + + boolean this_present_Tel = true && this.isSetTel(); + boolean that_present_Tel = true && that.isSetTel(); + if (this_present_Tel || that_present_Tel) { + if (!(this_present_Tel && that_present_Tel)) + return false; + if (!this.Tel.equals(that.Tel)) + return false; + } + + boolean this_present_Fak = true && this.isSetFak(); + boolean that_present_Fak = true && that.isSetFak(); + if (this_present_Fak || that_present_Fak) { + if (!(this_present_Fak && that_present_Fak)) + return false; + if (!this.Fak.equals(that.Fak)) + return false; + } + + boolean this_present_lectureID = true && this.isSetLectureID(); + boolean that_present_lectureID = true && that.isSetLectureID(); + if (this_present_lectureID || that_present_lectureID) { + if (!(this_present_lectureID && that_present_lectureID)) + return false; + if (!this.lectureID.equals(that.lectureID)) + return false; + } + + boolean this_present_university = true && this.isSetUniversity(); + boolean that_present_university = true && that.isSetUniversity(); + if (this_present_university || that_present_university) { + if (!(this_present_university && that_present_university)) return false; - if (!this.login.equals(that.login)) + if (!this.university.equals(that.university)) return false; } - - boolean this_present_lastname = true && this.isSetLastname(); - boolean that_present_lastname = true && that.isSetLastname(); - if (this_present_lastname || that_present_lastname) { - if (!(this_present_lastname && that_present_lastname)) - return false; - if (!this.lastname.equals(that.lastname)) - return false; + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(writeLecturedata_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetShortdesc()).compareTo(other.isSetShortdesc()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetShortdesc()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shortdesc, other.shortdesc); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDesc()).compareTo(other.isSetDesc()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDesc()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.desc, other.desc); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(other.isSetStartDate()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetStartDate()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, other.startDate); + if (lastComparison != 0) { + return lastComparison; + } } - - boolean this_present_firstname = true && this.isSetFirstname(); - boolean that_present_firstname = true && that.isSetFirstname(); - if (this_present_firstname || that_present_firstname) { - if (!(this_present_firstname && that_present_firstname)) - return false; - if (!this.firstname.equals(that.firstname)) - return false; + lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(other.isSetEndDate()); + if (lastComparison != 0) { + return lastComparison; } - - boolean this_present_mail = true && this.isSetMail(); - boolean that_present_mail = true && that.isSetMail(); - if (this_present_mail || that_present_mail) { - if (!(this_present_mail && that_present_mail)) - return false; - if (!this.mail.equals(that.mail)) - return false; + if (isSetEndDate()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, other.endDate); + if (lastComparison != 0) { + return lastComparison; + } } - - boolean this_present_Institution = true && this.isSetInstitution(); - boolean that_present_Institution = true && that.isSetInstitution(); - if (this_present_Institution || that_present_Institution) { - if (!(this_present_Institution && that_present_Institution)) - return false; - if (!this.Institution.equals(that.Institution)) - return false; + lastComparison = Boolean.valueOf(isSetIsActive()).compareTo(other.isSetIsActive()); + if (lastComparison != 0) { + return lastComparison; } - - return true; - } - - @Override - public int hashCode() { - return 0; - } - - @Override - public int compareTo(setPerson_args other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); + if (isSetIsActive()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isActive, other.isActive); + if (lastComparison != 0) { + return lastComparison; + } } - - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetLogin()).compareTo(other.isSetLogin()); + lastComparison = Boolean.valueOf(isSetImagename()).compareTo(other.isSetImagename()); if (lastComparison != 0) { return lastComparison; } - if (isSetLogin()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.login, other.login); + if (isSetImagename()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imagename, other.imagename); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLastname()).compareTo(other.isSetLastname()); + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); if (lastComparison != 0) { return lastComparison; } - if (isSetLastname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastname, other.lastname); + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFirstname()).compareTo(other.isSetFirstname()); + lastComparison = Boolean.valueOf(isSetTel()).compareTo(other.isSetTel()); if (lastComparison != 0) { return lastComparison; } - if (isSetFirstname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.firstname, other.firstname); + if (isSetTel()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Tel, other.Tel); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMail()).compareTo(other.isSetMail()); + lastComparison = Boolean.valueOf(isSetFak()).compareTo(other.isSetFak()); if (lastComparison != 0) { return lastComparison; } - if (isSetMail()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mail, other.mail); + if (isSetFak()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Fak, other.Fak); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetInstitution()).compareTo(other.isSetInstitution()); + lastComparison = Boolean.valueOf(isSetLectureID()).compareTo(other.isSetLectureID()); if (lastComparison != 0) { return lastComparison; } - if (isSetInstitution()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Institution, other.Institution); + if (isSetLectureID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lectureID, other.lectureID); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUniversity()).compareTo(other.isSetUniversity()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUniversity()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.university, other.university); if (lastComparison != 0) { return lastComparison; } @@ -23460,46 +27037,98 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("setPerson_args("); + StringBuilder sb = new StringBuilder("writeLecturedata_args("); boolean first = true; - sb.append("login:"); - if (this.login == null) { + sb.append("name:"); + if (this.name == null) { + sb.append("null"); + } else { + sb.append(this.name); + } + first = false; + if (!first) sb.append(", "); + sb.append("shortdesc:"); + if (this.shortdesc == null) { + sb.append("null"); + } else { + sb.append(this.shortdesc); + } + first = false; + if (!first) sb.append(", "); + sb.append("desc:"); + if (this.desc == null) { + sb.append("null"); + } else { + sb.append(this.desc); + } + first = false; + if (!first) sb.append(", "); + sb.append("startDate:"); + if (this.startDate == null) { + sb.append("null"); + } else { + sb.append(this.startDate); + } + first = false; + if (!first) sb.append(", "); + sb.append("endDate:"); + if (this.endDate == null) { + sb.append("null"); + } else { + sb.append(this.endDate); + } + first = false; + if (!first) sb.append(", "); + sb.append("isActive:"); + sb.append(this.isActive); + first = false; + if (!first) sb.append(", "); + sb.append("imagename:"); + if (this.imagename == null) { + sb.append("null"); + } else { + sb.append(this.imagename); + } + first = false; + if (!first) sb.append(", "); + sb.append("token:"); + if (this.token == null) { sb.append("null"); } else { - sb.append(this.login); + sb.append(this.token); } first = false; if (!first) sb.append(", "); - sb.append("lastname:"); - if (this.lastname == null) { + sb.append("Tel:"); + if (this.Tel == null) { sb.append("null"); } else { - sb.append(this.lastname); + sb.append(this.Tel); } first = false; if (!first) sb.append(", "); - sb.append("firstname:"); - if (this.firstname == null) { + sb.append("Fak:"); + if (this.Fak == null) { sb.append("null"); } else { - sb.append(this.firstname); + sb.append(this.Fak); } first = false; if (!first) sb.append(", "); - sb.append("mail:"); - if (this.mail == null) { + sb.append("lectureID:"); + if (this.lectureID == null) { sb.append("null"); } else { - sb.append(this.mail); + sb.append(this.lectureID); } first = false; if (!first) sb.append(", "); - sb.append("Institution:"); - if (this.Institution == null) { + sb.append("university:"); + if (this.university == null) { sb.append("null"); } else { - sb.append(this.Institution); + sb.append(this.university); } first = false; sb.append(")"); @@ -23521,21 +27150,23 @@ public class Server { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class setPerson_argsStandardSchemeFactory implements SchemeFactory { - public setPerson_argsStandardScheme getScheme() { - return new setPerson_argsStandardScheme(); + private static class writeLecturedata_argsStandardSchemeFactory implements SchemeFactory { + public writeLecturedata_argsStandardScheme getScheme() { + return new writeLecturedata_argsStandardScheme(); } } - private static class setPerson_argsStandardScheme extends StandardScheme { + private static class writeLecturedata_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, setPerson_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, writeLecturedata_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -23545,42 +27176,98 @@ public class Server { break; } switch (schemeField.id) { - case 1: // LOGIN + case 1: // NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.name = iprot.readString(); + struct.setNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // SHORTDESC if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.login = iprot.readString(); - struct.setLoginIsSet(true); + struct.shortdesc = iprot.readString(); + struct.setShortdescIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // LASTNAME + case 3: // DESC if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.lastname = iprot.readString(); - struct.setLastnameIsSet(true); + struct.desc = iprot.readString(); + struct.setDescIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // FIRSTNAME + case 4: // START_DATE if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.firstname = iprot.readString(); - struct.setFirstnameIsSet(true); + struct.startDate = iprot.readString(); + struct.setStartDateIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // MAIL + case 5: // END_DATE if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.mail = iprot.readString(); - struct.setMailIsSet(true); + struct.endDate = iprot.readString(); + struct.setEndDateIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // IS_ACTIVE + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.isActive = iprot.readBool(); + struct.setIsActiveIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 5: // INSTITUTION + case 7: // IMAGENAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.Institution = iprot.readString(); - struct.setInstitutionIsSet(true); + struct.imagename = iprot.readString(); + struct.setImagenameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 8: // TOKEN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 13: // TEL + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.Tel = iprot.readString(); + struct.setTelIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 14: // FAK + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.Fak = iprot.readString(); + struct.setFakIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 16: // LECTURE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.lectureID = iprot.readString(); + struct.setLectureIDIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 17: // UNIVERSITY + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.university = iprot.readString(); + struct.setUniversityIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -23596,419 +27283,234 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, setPerson_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, writeLecturedata_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.login != null) { - oprot.writeFieldBegin(LOGIN_FIELD_DESC); - oprot.writeString(struct.login); + if (struct.name != null) { + oprot.writeFieldBegin(NAME_FIELD_DESC); + oprot.writeString(struct.name); oprot.writeFieldEnd(); } - if (struct.lastname != null) { - oprot.writeFieldBegin(LASTNAME_FIELD_DESC); - oprot.writeString(struct.lastname); + if (struct.shortdesc != null) { + oprot.writeFieldBegin(SHORTDESC_FIELD_DESC); + oprot.writeString(struct.shortdesc); oprot.writeFieldEnd(); } - if (struct.firstname != null) { - oprot.writeFieldBegin(FIRSTNAME_FIELD_DESC); - oprot.writeString(struct.firstname); + if (struct.desc != null) { + oprot.writeFieldBegin(DESC_FIELD_DESC); + oprot.writeString(struct.desc); oprot.writeFieldEnd(); } - if (struct.mail != null) { - oprot.writeFieldBegin(MAIL_FIELD_DESC); - oprot.writeString(struct.mail); + if (struct.startDate != null) { + oprot.writeFieldBegin(START_DATE_FIELD_DESC); + oprot.writeString(struct.startDate); oprot.writeFieldEnd(); } - if (struct.Institution != null) { - oprot.writeFieldBegin(INSTITUTION_FIELD_DESC); - oprot.writeString(struct.Institution); + if (struct.endDate != null) { + oprot.writeFieldBegin(END_DATE_FIELD_DESC); + oprot.writeString(struct.endDate); oprot.writeFieldEnd(); } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class setPerson_argsTupleSchemeFactory implements SchemeFactory { - public setPerson_argsTupleScheme getScheme() { - return new setPerson_argsTupleScheme(); - } - } - - private static class setPerson_argsTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, setPerson_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetLogin()) { - optionals.set(0); - } - if (struct.isSetLastname()) { - optionals.set(1); - } - if (struct.isSetFirstname()) { - optionals.set(2); - } - if (struct.isSetMail()) { - optionals.set(3); - } - if (struct.isSetInstitution()) { - optionals.set(4); - } - oprot.writeBitSet(optionals, 5); - if (struct.isSetLogin()) { - oprot.writeString(struct.login); - } - if (struct.isSetLastname()) { - oprot.writeString(struct.lastname); - } - if (struct.isSetFirstname()) { - oprot.writeString(struct.firstname); - } - if (struct.isSetMail()) { - oprot.writeString(struct.mail); - } - if (struct.isSetInstitution()) { - oprot.writeString(struct.Institution); - } - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, setPerson_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); - if (incoming.get(0)) { - struct.login = iprot.readString(); - struct.setLoginIsSet(true); - } - if (incoming.get(1)) { - struct.lastname = iprot.readString(); - struct.setLastnameIsSet(true); - } - if (incoming.get(2)) { - struct.firstname = iprot.readString(); - struct.setFirstnameIsSet(true); - } - if (incoming.get(3)) { - struct.mail = iprot.readString(); - struct.setMailIsSet(true); - } - if (incoming.get(4)) { - struct.Institution = iprot.readString(); - struct.setInstitutionIsSet(true); - } - } - } - - } - - public static class setPerson_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("setPerson_result"); - - - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new setPerson_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new setPerson_resultTupleSchemeFactory()); - } - - - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements org.apache.thrift.TFieldIdEnum { -; - - 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) { - default: - return null; - } - } - - /** - * Find the _Fields constant that matches fieldId, throwing an exception - * if it is not found. - */ - public static _Fields findByThriftIdOrThrow(int fieldId) { - _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); - return fields; - } - - /** - * Find the _Fields constant that matches name, or null if its not found. - */ - public static _Fields findByName(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - public 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); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setPerson_result.class, metaDataMap); - } - - public setPerson_result() { - } - - /** - * Performs a deep copy on other. - */ - public setPerson_result(setPerson_result other) { - } - - public setPerson_result deepCopy() { - return new setPerson_result(this); - } - - @Override - public void clear() { - } - - public void setFieldValue(_Fields field, Object value) { - switch (field) { - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - } - 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) { - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof setPerson_result) - return this.equals((setPerson_result)that); - return false; - } - - public boolean equals(setPerson_result that) { - if (that == null) - return false; - - return true; - } - - @Override - public int hashCode() { - return 0; - } - - @Override - public int compareTo(setPerson_result other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - 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("setPerson_result("); - boolean first = true; - - 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 setPerson_resultStandardSchemeFactory implements SchemeFactory { - public setPerson_resultStandardScheme getScheme() { - return new setPerson_resultStandardScheme(); - } - } - - private static class setPerson_resultStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, setPerson_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) { - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - iprot.readFieldEnd(); + oprot.writeFieldBegin(IS_ACTIVE_FIELD_DESC); + oprot.writeBool(struct.isActive); + oprot.writeFieldEnd(); + if (struct.imagename != null) { + oprot.writeFieldBegin(IMAGENAME_FIELD_DESC); + oprot.writeString(struct.imagename); + oprot.writeFieldEnd(); + } + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); + oprot.writeFieldEnd(); + } + if (struct.Tel != null) { + oprot.writeFieldBegin(TEL_FIELD_DESC); + oprot.writeString(struct.Tel); + oprot.writeFieldEnd(); + } + if (struct.Fak != null) { + oprot.writeFieldBegin(FAK_FIELD_DESC); + oprot.writeString(struct.Fak); + oprot.writeFieldEnd(); + } + if (struct.lectureID != null) { + oprot.writeFieldBegin(LECTURE_ID_FIELD_DESC); + oprot.writeString(struct.lectureID); + oprot.writeFieldEnd(); + } + if (struct.university != null) { + oprot.writeFieldBegin(UNIVERSITY_FIELD_DESC); + oprot.writeString(struct.university); + oprot.writeFieldEnd(); } - 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, setPerson_result struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class setPerson_resultTupleSchemeFactory implements SchemeFactory { - public setPerson_resultTupleScheme getScheme() { - return new setPerson_resultTupleScheme(); + private static class writeLecturedata_argsTupleSchemeFactory implements SchemeFactory { + public writeLecturedata_argsTupleScheme getScheme() { + return new writeLecturedata_argsTupleScheme(); } } - private static class setPerson_resultTupleScheme extends TupleScheme { + private static class writeLecturedata_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, setPerson_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, writeLecturedata_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetName()) { + optionals.set(0); + } + if (struct.isSetShortdesc()) { + optionals.set(1); + } + if (struct.isSetDesc()) { + optionals.set(2); + } + if (struct.isSetStartDate()) { + optionals.set(3); + } + if (struct.isSetEndDate()) { + optionals.set(4); + } + if (struct.isSetIsActive()) { + optionals.set(5); + } + if (struct.isSetImagename()) { + optionals.set(6); + } + if (struct.isSetToken()) { + optionals.set(7); + } + if (struct.isSetTel()) { + optionals.set(8); + } + if (struct.isSetFak()) { + optionals.set(9); + } + if (struct.isSetLectureID()) { + optionals.set(10); + } + if (struct.isSetUniversity()) { + optionals.set(11); + } + oprot.writeBitSet(optionals, 12); + if (struct.isSetName()) { + oprot.writeString(struct.name); + } + if (struct.isSetShortdesc()) { + oprot.writeString(struct.shortdesc); + } + if (struct.isSetDesc()) { + oprot.writeString(struct.desc); + } + if (struct.isSetStartDate()) { + oprot.writeString(struct.startDate); + } + if (struct.isSetEndDate()) { + oprot.writeString(struct.endDate); + } + if (struct.isSetIsActive()) { + oprot.writeBool(struct.isActive); + } + if (struct.isSetImagename()) { + oprot.writeString(struct.imagename); + } + if (struct.isSetToken()) { + oprot.writeString(struct.token); + } + if (struct.isSetTel()) { + oprot.writeString(struct.Tel); + } + if (struct.isSetFak()) { + oprot.writeString(struct.Fak); + } + if (struct.isSetLectureID()) { + oprot.writeString(struct.lectureID); + } + if (struct.isSetUniversity()) { + oprot.writeString(struct.university); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, setPerson_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, writeLecturedata_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(12); + if (incoming.get(0)) { + struct.name = iprot.readString(); + struct.setNameIsSet(true); + } + if (incoming.get(1)) { + struct.shortdesc = iprot.readString(); + struct.setShortdescIsSet(true); + } + if (incoming.get(2)) { + struct.desc = iprot.readString(); + struct.setDescIsSet(true); + } + if (incoming.get(3)) { + struct.startDate = iprot.readString(); + struct.setStartDateIsSet(true); + } + if (incoming.get(4)) { + struct.endDate = iprot.readString(); + struct.setEndDateIsSet(true); + } + if (incoming.get(5)) { + struct.isActive = iprot.readBool(); + struct.setIsActiveIsSet(true); + } + if (incoming.get(6)) { + struct.imagename = iprot.readString(); + struct.setImagenameIsSet(true); + } + if (incoming.get(7)) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } + if (incoming.get(8)) { + struct.Tel = iprot.readString(); + struct.setTelIsSet(true); + } + if (incoming.get(9)) { + struct.Fak = iprot.readString(); + struct.setFakIsSet(true); + } + if (incoming.get(10)) { + struct.lectureID = iprot.readString(); + struct.setLectureIDIsSet(true); + } + if (incoming.get(11)) { + struct.university = iprot.readString(); + struct.setUniversityIsSet(true); + } } } } - public static class writeLecturedata_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("writeLecturedata_args"); + public static class writeLecturedata_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("writeLecturedata_result"); - private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField SHORTDESC_FIELD_DESC = new org.apache.thrift.protocol.TField("shortdesc", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField DESC_FIELD_DESC = new org.apache.thrift.protocol.TField("desc", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.STRING, (short)4); - private static final org.apache.thrift.protocol.TField END_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("endDate", org.apache.thrift.protocol.TType.STRING, (short)5); - private static final org.apache.thrift.protocol.TField IS_ACTIVE_FIELD_DESC = new org.apache.thrift.protocol.TField("isActive", org.apache.thrift.protocol.TType.BOOL, (short)6); - private static final org.apache.thrift.protocol.TField IMAGENAME_FIELD_DESC = new org.apache.thrift.protocol.TField("imagename", org.apache.thrift.protocol.TType.STRING, (short)7); - private static final org.apache.thrift.protocol.TField LOGIN_FIELD_DESC = new org.apache.thrift.protocol.TField("login", org.apache.thrift.protocol.TType.STRING, (short)8); - private static final org.apache.thrift.protocol.TField FIRSTNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("firstname", org.apache.thrift.protocol.TType.STRING, (short)9); - private static final org.apache.thrift.protocol.TField LASTNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lastname", org.apache.thrift.protocol.TType.STRING, (short)10); - private static final org.apache.thrift.protocol.TField UNIVERSITY_FIELD_DESC = new org.apache.thrift.protocol.TField("university", org.apache.thrift.protocol.TType.STRING, (short)11); - private static final org.apache.thrift.protocol.TField MAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("Mail", org.apache.thrift.protocol.TType.STRING, (short)12); - private static final org.apache.thrift.protocol.TField TEL_FIELD_DESC = new org.apache.thrift.protocol.TField("Tel", org.apache.thrift.protocol.TType.STRING, (short)13); - private static final org.apache.thrift.protocol.TField FAK_FIELD_DESC = new org.apache.thrift.protocol.TField("Fak", org.apache.thrift.protocol.TType.STRING, (short)14); - private static final org.apache.thrift.protocol.TField LECTURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureID", org.apache.thrift.protocol.TType.STRING, (short)16); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new writeLecturedata_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new writeLecturedata_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new writeLecturedata_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeLecturedata_resultTupleSchemeFactory()); } - public String name; // required - public String shortdesc; // required - public String desc; // required - public String startDate; // required - public String endDate; // required - public boolean isActive; // required - public String imagename; // required - public String login; // required - public String firstname; // required - public String lastname; // required - public String university; // required - public String Mail; // required - public String Tel; // required - public String Fak; // required - public String lectureID; // required + public boolean success; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - NAME((short)1, "name"), - SHORTDESC((short)2, "shortdesc"), - DESC((short)3, "desc"), - START_DATE((short)4, "startDate"), - END_DATE((short)5, "endDate"), - IS_ACTIVE((short)6, "isActive"), - IMAGENAME((short)7, "imagename"), - LOGIN((short)8, "login"), - FIRSTNAME((short)9, "firstname"), - LASTNAME((short)10, "lastname"), - UNIVERSITY((short)11, "university"), - MAIL((short)12, "Mail"), - TEL((short)13, "Tel"), - FAK((short)14, "Fak"), - LECTURE_ID((short)16, "lectureID"); + SUCCESS((short)0, "success"); private static final Map byName = new HashMap(); @@ -24023,36 +27525,8 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // NAME - return NAME; - case 2: // SHORTDESC - return SHORTDESC; - case 3: // DESC - return DESC; - case 4: // START_DATE - return START_DATE; - case 5: // END_DATE - return END_DATE; - case 6: // IS_ACTIVE - return IS_ACTIVE; - case 7: // IMAGENAME - return IMAGENAME; - case 8: // LOGIN - return LOGIN; - case 9: // FIRSTNAME - return FIRSTNAME; - case 10: // LASTNAME - return LASTNAME; - case 11: // UNIVERSITY - return UNIVERSITY; - case 12: // MAIL - return MAIL; - case 13: // TEL - return TEL; - case 14: // FAK - return FAK; - case 16: // LECTURE_ID - return LECTURE_ID; + case 0: // SUCCESS + return SUCCESS; default: return null; } @@ -24093,688 +27567,486 @@ public class Server { } // isset id assignments - private static final int __ISACTIVE_ISSET_ID = 0; + private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.SHORTDESC, new org.apache.thrift.meta_data.FieldMetaData("shortdesc", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.DESC, new org.apache.thrift.meta_data.FieldMetaData("desc", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.IS_ACTIVE, new org.apache.thrift.meta_data.FieldMetaData("isActive", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - tmpMap.put(_Fields.IMAGENAME, new org.apache.thrift.meta_data.FieldMetaData("imagename", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.LOGIN, new org.apache.thrift.meta_data.FieldMetaData("login", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.FIRSTNAME, new org.apache.thrift.meta_data.FieldMetaData("firstname", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.LASTNAME, new org.apache.thrift.meta_data.FieldMetaData("lastname", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.UNIVERSITY, new org.apache.thrift.meta_data.FieldMetaData("university", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("Mail", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TEL, new org.apache.thrift.meta_data.FieldMetaData("Tel", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.FAK, new org.apache.thrift.meta_data.FieldMetaData("Fak", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.LECTURE_ID, new org.apache.thrift.meta_data.FieldMetaData("lectureID", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeLecturedata_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeLecturedata_result.class, metaDataMap); } - public writeLecturedata_args() { + public writeLecturedata_result() { } - public writeLecturedata_args( - String name, - String shortdesc, - String desc, - String startDate, - String endDate, - boolean isActive, - String imagename, - String login, - String firstname, - String lastname, - String university, - String Mail, - String Tel, - String Fak, - String lectureID) + public writeLecturedata_result( + boolean success) { this(); - this.name = name; - this.shortdesc = shortdesc; - this.desc = desc; - this.startDate = startDate; - this.endDate = endDate; - this.isActive = isActive; - setIsActiveIsSet(true); - this.imagename = imagename; - this.login = login; - this.firstname = firstname; - this.lastname = lastname; - this.university = university; - this.Mail = Mail; - this.Tel = Tel; - this.Fak = Fak; - this.lectureID = lectureID; + this.success = success; + setSuccessIsSet(true); } /** * Performs a deep copy on other. */ - public writeLecturedata_args(writeLecturedata_args other) { + public writeLecturedata_result(writeLecturedata_result other) { __isset_bitfield = other.__isset_bitfield; - if (other.isSetName()) { - this.name = other.name; - } - if (other.isSetShortdesc()) { - this.shortdesc = other.shortdesc; - } - if (other.isSetDesc()) { - this.desc = other.desc; - } - if (other.isSetStartDate()) { - this.startDate = other.startDate; - } - if (other.isSetEndDate()) { - this.endDate = other.endDate; - } - this.isActive = other.isActive; - if (other.isSetImagename()) { - this.imagename = other.imagename; - } - if (other.isSetLogin()) { - this.login = other.login; - } - if (other.isSetFirstname()) { - this.firstname = other.firstname; - } - if (other.isSetLastname()) { - this.lastname = other.lastname; - } - if (other.isSetUniversity()) { - this.university = other.university; - } - if (other.isSetMail()) { - this.Mail = other.Mail; - } - if (other.isSetTel()) { - this.Tel = other.Tel; - } - if (other.isSetFak()) { - this.Fak = other.Fak; - } - if (other.isSetLectureID()) { - this.lectureID = other.lectureID; - } - } - - public writeLecturedata_args deepCopy() { - return new writeLecturedata_args(this); - } - - @Override - public void clear() { - this.name = null; - this.shortdesc = null; - this.desc = null; - this.startDate = null; - this.endDate = null; - setIsActiveIsSet(false); - this.isActive = false; - this.imagename = null; - this.login = null; - this.firstname = null; - this.lastname = null; - this.university = null; - this.Mail = null; - this.Tel = null; - this.Fak = null; - this.lectureID = null; - } - - public String getName() { - return this.name; - } - - public writeLecturedata_args setName(String name) { - this.name = name; - return this; - } - - public void unsetName() { - this.name = null; - } - - /** Returns true if field name is set (has been assigned a value) and false otherwise */ - public boolean isSetName() { - return this.name != null; - } - - public void setNameIsSet(boolean value) { - if (!value) { - this.name = null; - } - } - - public String getShortdesc() { - return this.shortdesc; - } - - public writeLecturedata_args setShortdesc(String shortdesc) { - this.shortdesc = shortdesc; - return this; - } - - public void unsetShortdesc() { - this.shortdesc = null; - } - - /** Returns true if field shortdesc is set (has been assigned a value) and false otherwise */ - public boolean isSetShortdesc() { - return this.shortdesc != null; - } - - public void setShortdescIsSet(boolean value) { - if (!value) { - this.shortdesc = null; - } - } - - public String getDesc() { - return this.desc; - } - - public writeLecturedata_args setDesc(String desc) { - this.desc = desc; - return this; - } - - public void unsetDesc() { - this.desc = null; - } - - /** Returns true if field desc is set (has been assigned a value) and false otherwise */ - public boolean isSetDesc() { - return this.desc != null; - } - - public void setDescIsSet(boolean value) { - if (!value) { - this.desc = null; - } - } - - public String getStartDate() { - return this.startDate; - } - - public writeLecturedata_args setStartDate(String startDate) { - this.startDate = startDate; - return this; - } - - public void unsetStartDate() { - this.startDate = null; - } - - /** Returns true if field startDate is set (has been assigned a value) and false otherwise */ - public boolean isSetStartDate() { - return this.startDate != null; - } - - public void setStartDateIsSet(boolean value) { - if (!value) { - this.startDate = null; - } - } - - public String getEndDate() { - return this.endDate; - } - - public writeLecturedata_args setEndDate(String endDate) { - this.endDate = endDate; - return this; - } - - public void unsetEndDate() { - this.endDate = null; - } - - /** Returns true if field endDate is set (has been assigned a value) and false otherwise */ - public boolean isSetEndDate() { - return this.endDate != null; - } - - public void setEndDateIsSet(boolean value) { - if (!value) { - this.endDate = null; - } - } - - public boolean isIsActive() { - return this.isActive; - } - - public writeLecturedata_args setIsActive(boolean isActive) { - this.isActive = isActive; - setIsActiveIsSet(true); - return this; - } - - public void unsetIsActive() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISACTIVE_ISSET_ID); - } - - /** Returns true if field isActive is set (has been assigned a value) and false otherwise */ - public boolean isSetIsActive() { - return EncodingUtils.testBit(__isset_bitfield, __ISACTIVE_ISSET_ID); - } - - public void setIsActiveIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISACTIVE_ISSET_ID, value); - } - - public String getImagename() { - return this.imagename; - } - - public writeLecturedata_args setImagename(String imagename) { - this.imagename = imagename; - return this; - } - - public void unsetImagename() { - this.imagename = null; + this.success = other.success; } - /** Returns true if field imagename is set (has been assigned a value) and false otherwise */ - public boolean isSetImagename() { - return this.imagename != null; + public writeLecturedata_result deepCopy() { + return new writeLecturedata_result(this); } - public void setImagenameIsSet(boolean value) { - if (!value) { - this.imagename = null; - } + @Override + public void clear() { + setSuccessIsSet(false); + this.success = false; } - public String getLogin() { - return this.login; + public boolean isSuccess() { + return this.success; } - public writeLecturedata_args setLogin(String login) { - this.login = login; + public writeLecturedata_result setSuccess(boolean success) { + this.success = success; + setSuccessIsSet(true); return this; } - public void unsetLogin() { - this.login = null; + public void unsetSuccess() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } - /** Returns true if field login is set (has been assigned a value) and false otherwise */ - public boolean isSetLogin() { - return this.login != null; + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } - public void setLoginIsSet(boolean value) { - if (!value) { - this.login = null; - } + public void setSuccessIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } - public String getFirstname() { - return this.firstname; - } + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Boolean)value); + } + break; - public writeLecturedata_args setFirstname(String firstname) { - this.firstname = firstname; - return this; + } } - public void unsetFirstname() { - this.firstname = null; - } + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return Boolean.valueOf(isSuccess()); - /** Returns true if field firstname is set (has been assigned a value) and false otherwise */ - public boolean isSetFirstname() { - return this.firstname != null; + } + throw new IllegalStateException(); } - public void setFirstnameIsSet(boolean value) { - if (!value) { - this.firstname = null; + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); } - } - public String getLastname() { - return this.lastname; + switch (field) { + case SUCCESS: + return isSetSuccess(); + } + throw new IllegalStateException(); } - public writeLecturedata_args setLastname(String lastname) { - this.lastname = lastname; - return this; + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof writeLecturedata_result) + return this.equals((writeLecturedata_result)that); + return false; } - public void unsetLastname() { - this.lastname = null; + public boolean equals(writeLecturedata_result that) { + if (that == null) + return false; + + boolean this_present_success = true; + boolean that_present_success = true; + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (this.success != that.success) + return false; + } + + return true; } - /** Returns true if field lastname is set (has been assigned a value) and false otherwise */ - public boolean isSetLastname() { - return this.lastname != null; + @Override + public int hashCode() { + return 0; } - public void setLastnameIsSet(boolean value) { - if (!value) { - this.lastname = null; + @Override + public int compareTo(writeLecturedata_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); } - } - public String getUniversity() { - return this.university; - } + int lastComparison = 0; - public writeLecturedata_args setUniversity(String university) { - this.university = university; - return this; + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; } - public void unsetUniversity() { - this.university = null; + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); } - /** Returns true if field university is set (has been assigned a value) and false otherwise */ - public boolean isSetUniversity() { - return this.university != null; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } - public void setUniversityIsSet(boolean value) { - if (!value) { - this.university = null; + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } - } - public String getMail() { - return this.Mail; - } + @Override + public String toString() { + StringBuilder sb = new StringBuilder("writeLecturedata_result("); + boolean first = true; - public writeLecturedata_args setMail(String Mail) { - this.Mail = Mail; - return this; + sb.append("success:"); + sb.append(this.success); + first = false; + sb.append(")"); + return sb.toString(); } - public void unsetMail() { - this.Mail = null; + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity } - /** Returns true if field Mail is set (has been assigned a value) and false otherwise */ - public boolean isSetMail() { - return this.Mail != null; + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } } - public void setMailIsSet(boolean value) { - if (!value) { - this.Mail = null; + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); } } - public String getTel() { - return this.Tel; + private static class writeLecturedata_resultStandardSchemeFactory implements SchemeFactory { + public writeLecturedata_resultStandardScheme getScheme() { + return new writeLecturedata_resultStandardScheme(); + } } - public writeLecturedata_args setTel(String Tel) { - this.Tel = Tel; - return this; - } + private static class writeLecturedata_resultStandardScheme extends StandardScheme { - public void unsetTel() { - this.Tel = null; - } + public void read(org.apache.thrift.protocol.TProtocol iprot, writeLecturedata_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); - /** Returns true if field Tel is set (has been assigned a value) and false otherwise */ - public boolean isSetTel() { - return this.Tel != null; - } + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } - public void setTelIsSet(boolean value) { - if (!value) { - this.Tel = null; + public void write(org.apache.thrift.protocol.TProtocol oprot, writeLecturedata_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeBool(struct.success); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); } - } - public String getFak() { - return this.Fak; } - public writeLecturedata_args setFak(String Fak) { - this.Fak = Fak; - return this; + private static class writeLecturedata_resultTupleSchemeFactory implements SchemeFactory { + public writeLecturedata_resultTupleScheme getScheme() { + return new writeLecturedata_resultTupleScheme(); + } } - public void unsetFak() { - this.Fak = null; - } + private static class writeLecturedata_resultTupleScheme extends TupleScheme { - /** Returns true if field Fak is set (has been assigned a value) and false otherwise */ - public boolean isSetFak() { - return this.Fak != null; - } + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, writeLecturedata_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + oprot.writeBool(struct.success); + } + } - public void setFakIsSet(boolean value) { - if (!value) { - this.Fak = null; + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, writeLecturedata_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } } } - public String getLectureID() { - return this.lectureID; - } + } - public writeLecturedata_args setLectureID(String lectureID) { - this.lectureID = lectureID; - return this; - } + public static class startFileCopy_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("startFileCopy_args"); - public void unsetLectureID() { - this.lectureID = null; - } + private static final org.apache.thrift.protocol.TField FILE_FIELD_DESC = new org.apache.thrift.protocol.TField("file", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)2); - /** Returns true if field lectureID is set (has been assigned a value) and false otherwise */ - public boolean isSetLectureID() { - return this.lectureID != null; + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new startFileCopy_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new startFileCopy_argsTupleSchemeFactory()); } - public void setLectureIDIsSet(boolean value) { - if (!value) { - this.lectureID = null; - } - } + public String file; // required + public String token; // required - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case NAME: - if (value == null) { - unsetName(); - } else { - setName((String)value); - } - break; + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + FILE((short)1, "file"), + TOKEN((short)2, "token"); - case SHORTDESC: - if (value == null) { - unsetShortdesc(); - } else { - setShortdesc((String)value); - } - break; + private static final Map byName = new HashMap(); - case DESC: - if (value == null) { - unsetDesc(); - } else { - setDesc((String)value); + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); } - break; + } - case START_DATE: - if (value == null) { - unsetStartDate(); - } else { - setStartDate((String)value); + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // FILE + return FILE; + case 2: // TOKEN + return TOKEN; + default: + return null; } - break; + } - case END_DATE: - if (value == null) { - unsetEndDate(); - } else { - setEndDate((String)value); - } - break; + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } - case IS_ACTIVE: - if (value == null) { - unsetIsActive(); - } else { - setIsActive((Boolean)value); - } - break; + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } - case IMAGENAME: - if (value == null) { - unsetImagename(); - } else { - setImagename((String)value); - } - break; + private final short _thriftId; + private final String _fieldName; - case LOGIN: - if (value == null) { - unsetLogin(); - } else { - setLogin((String)value); - } - break; + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } - case FIRSTNAME: - if (value == null) { - unsetFirstname(); - } else { - setFirstname((String)value); - } - break; + public short getThriftFieldId() { + return _thriftId; + } - case LASTNAME: - if (value == null) { - unsetLastname(); - } else { - setLastname((String)value); - } - break; + public String getFieldName() { + return _fieldName; + } + } - case UNIVERSITY: - if (value == null) { - unsetUniversity(); - } else { - setUniversity((String)value); - } - break; + // 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.FILE, new org.apache.thrift.meta_data.FieldMetaData("file", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", 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(startFileCopy_args.class, metaDataMap); + } - case MAIL: - if (value == null) { - unsetMail(); - } else { - setMail((String)value); - } - break; + public startFileCopy_args() { + } - case TEL: - if (value == null) { - unsetTel(); - } else { - setTel((String)value); - } - break; + public startFileCopy_args( + String file, + String token) + { + this(); + this.file = file; + this.token = token; + } - case FAK: - if (value == null) { - unsetFak(); - } else { - setFak((String)value); - } - break; + /** + * Performs a deep copy on other. + */ + public startFileCopy_args(startFileCopy_args other) { + if (other.isSetFile()) { + this.file = other.file; + } + if (other.isSetToken()) { + this.token = other.token; + } + } - case LECTURE_ID: - if (value == null) { - unsetLectureID(); - } else { - setLectureID((String)value); - } - break; + public startFileCopy_args deepCopy() { + return new startFileCopy_args(this); + } - } + @Override + public void clear() { + this.file = null; + this.token = null; } - public Object getFieldValue(_Fields field) { - switch (field) { - case NAME: - return getName(); + public String getFile() { + return this.file; + } - case SHORTDESC: - return getShortdesc(); + public startFileCopy_args setFile(String file) { + this.file = file; + return this; + } - case DESC: - return getDesc(); + public void unsetFile() { + this.file = null; + } - case START_DATE: - return getStartDate(); + /** Returns true if field file is set (has been assigned a value) and false otherwise */ + public boolean isSetFile() { + return this.file != null; + } - case END_DATE: - return getEndDate(); + public void setFileIsSet(boolean value) { + if (!value) { + this.file = null; + } + } - case IS_ACTIVE: - return Boolean.valueOf(isIsActive()); + public String getToken() { + return this.token; + } - case IMAGENAME: - return getImagename(); + public startFileCopy_args setToken(String token) { + this.token = token; + return this; + } - case LOGIN: - return getLogin(); + public void unsetToken() { + this.token = null; + } - case FIRSTNAME: - return getFirstname(); + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; + } - case LASTNAME: - return getLastname(); + public void setTokenIsSet(boolean value) { + if (!value) { + this.token = null; + } + } - case UNIVERSITY: - return getUniversity(); + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case FILE: + if (value == null) { + unsetFile(); + } else { + setFile((String)value); + } + break; - case MAIL: - return getMail(); + case TOKEN: + if (value == null) { + unsetToken(); + } else { + setToken((String)value); + } + break; - case TEL: - return getTel(); + } + } - case FAK: - return getFak(); + public Object getFieldValue(_Fields field) { + switch (field) { + case FILE: + return getFile(); - case LECTURE_ID: - return getLectureID(); + case TOKEN: + return getToken(); } throw new IllegalStateException(); @@ -24787,36 +28059,10 @@ public class Server { } switch (field) { - case NAME: - return isSetName(); - case SHORTDESC: - return isSetShortdesc(); - case DESC: - return isSetDesc(); - case START_DATE: - return isSetStartDate(); - case END_DATE: - return isSetEndDate(); - case IS_ACTIVE: - return isSetIsActive(); - case IMAGENAME: - return isSetImagename(); - case LOGIN: - return isSetLogin(); - case FIRSTNAME: - return isSetFirstname(); - case LASTNAME: - return isSetLastname(); - case UNIVERSITY: - return isSetUniversity(); - case MAIL: - return isSetMail(); - case TEL: - return isSetTel(); - case FAK: - return isSetFak(); - case LECTURE_ID: - return isSetLectureID(); + case FILE: + return isSetFile(); + case TOKEN: + return isSetToken(); } throw new IllegalStateException(); } @@ -24825,147 +28071,30 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof writeLecturedata_args) - return this.equals((writeLecturedata_args)that); + if (that instanceof startFileCopy_args) + return this.equals((startFileCopy_args)that); return false; } - public boolean equals(writeLecturedata_args that) { + public boolean equals(startFileCopy_args that) { if (that == null) return false; - boolean this_present_name = true && this.isSetName(); - boolean that_present_name = true && that.isSetName(); - if (this_present_name || that_present_name) { - if (!(this_present_name && that_present_name)) - return false; - if (!this.name.equals(that.name)) - return false; - } - - boolean this_present_shortdesc = true && this.isSetShortdesc(); - boolean that_present_shortdesc = true && that.isSetShortdesc(); - if (this_present_shortdesc || that_present_shortdesc) { - if (!(this_present_shortdesc && that_present_shortdesc)) - return false; - if (!this.shortdesc.equals(that.shortdesc)) - return false; - } - - boolean this_present_desc = true && this.isSetDesc(); - boolean that_present_desc = true && that.isSetDesc(); - if (this_present_desc || that_present_desc) { - if (!(this_present_desc && that_present_desc)) - return false; - if (!this.desc.equals(that.desc)) - return false; - } - - boolean this_present_startDate = true && this.isSetStartDate(); - boolean that_present_startDate = true && that.isSetStartDate(); - if (this_present_startDate || that_present_startDate) { - if (!(this_present_startDate && that_present_startDate)) - return false; - if (!this.startDate.equals(that.startDate)) - return false; - } - - boolean this_present_endDate = true && this.isSetEndDate(); - boolean that_present_endDate = true && that.isSetEndDate(); - if (this_present_endDate || that_present_endDate) { - if (!(this_present_endDate && that_present_endDate)) - return false; - if (!this.endDate.equals(that.endDate)) - return false; - } - - boolean this_present_isActive = true; - boolean that_present_isActive = true; - if (this_present_isActive || that_present_isActive) { - if (!(this_present_isActive && that_present_isActive)) - return false; - if (this.isActive != that.isActive) - return false; - } - - boolean this_present_imagename = true && this.isSetImagename(); - boolean that_present_imagename = true && that.isSetImagename(); - if (this_present_imagename || that_present_imagename) { - if (!(this_present_imagename && that_present_imagename)) - return false; - if (!this.imagename.equals(that.imagename)) - return false; - } - - boolean this_present_login = true && this.isSetLogin(); - boolean that_present_login = true && that.isSetLogin(); - if (this_present_login || that_present_login) { - if (!(this_present_login && that_present_login)) - return false; - if (!this.login.equals(that.login)) - return false; - } - - boolean this_present_firstname = true && this.isSetFirstname(); - boolean that_present_firstname = true && that.isSetFirstname(); - if (this_present_firstname || that_present_firstname) { - if (!(this_present_firstname && that_present_firstname)) - return false; - if (!this.firstname.equals(that.firstname)) - return false; - } - - boolean this_present_lastname = true && this.isSetLastname(); - boolean that_present_lastname = true && that.isSetLastname(); - if (this_present_lastname || that_present_lastname) { - if (!(this_present_lastname && that_present_lastname)) - return false; - if (!this.lastname.equals(that.lastname)) - return false; - } - - boolean this_present_university = true && this.isSetUniversity(); - boolean that_present_university = true && that.isSetUniversity(); - if (this_present_university || that_present_university) { - if (!(this_present_university && that_present_university)) - return false; - if (!this.university.equals(that.university)) - return false; - } - - boolean this_present_Mail = true && this.isSetMail(); - boolean that_present_Mail = true && that.isSetMail(); - if (this_present_Mail || that_present_Mail) { - if (!(this_present_Mail && that_present_Mail)) - return false; - if (!this.Mail.equals(that.Mail)) - return false; - } - - boolean this_present_Tel = true && this.isSetTel(); - boolean that_present_Tel = true && that.isSetTel(); - if (this_present_Tel || that_present_Tel) { - if (!(this_present_Tel && that_present_Tel)) - return false; - if (!this.Tel.equals(that.Tel)) - return false; - } - - boolean this_present_Fak = true && this.isSetFak(); - boolean that_present_Fak = true && that.isSetFak(); - if (this_present_Fak || that_present_Fak) { - if (!(this_present_Fak && that_present_Fak)) + boolean this_present_file = true && this.isSetFile(); + boolean that_present_file = true && that.isSetFile(); + if (this_present_file || that_present_file) { + if (!(this_present_file && that_present_file)) return false; - if (!this.Fak.equals(that.Fak)) + if (!this.file.equals(that.file)) return false; } - boolean this_present_lectureID = true && this.isSetLectureID(); - boolean that_present_lectureID = true && that.isSetLectureID(); - if (this_present_lectureID || that_present_lectureID) { - if (!(this_present_lectureID && that_present_lectureID)) + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) return false; - if (!this.lectureID.equals(that.lectureID)) + if (!this.token.equals(that.token)) return false; } @@ -24978,159 +28107,416 @@ public class Server { } @Override - public int compareTo(writeLecturedata_args other) { + public int compareTo(startFileCopy_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); + lastComparison = Boolean.valueOf(isSetFile()).compareTo(other.isSetFile()); if (lastComparison != 0) { return lastComparison; } - if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); + if (isSetFile()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.file, other.file); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetShortdesc()).compareTo(other.isSetShortdesc()); + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); if (lastComparison != 0) { return lastComparison; } - if (isSetShortdesc()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shortdesc, other.shortdesc); + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDesc()).compareTo(other.isSetDesc()); - 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("startFileCopy_args("); + boolean first = true; + + sb.append("file:"); + if (this.file == null) { + sb.append("null"); + } else { + sb.append(this.file); } - if (isSetDesc()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.desc, other.desc); - if (lastComparison != 0) { - return lastComparison; - } + first = false; + if (!first) sb.append(", "); + sb.append("token:"); + if (this.token == null) { + sb.append("null"); + } else { + sb.append(this.token); } - lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(other.isSetStartDate()); - if (lastComparison != 0) { - return lastComparison; + 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); } - if (isSetStartDate()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, other.startDate); - if (lastComparison != 0) { - return lastComparison; - } + } + + 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); } - lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(other.isSetEndDate()); - if (lastComparison != 0) { - return lastComparison; + } + + private static class startFileCopy_argsStandardSchemeFactory implements SchemeFactory { + public startFileCopy_argsStandardScheme getScheme() { + return new startFileCopy_argsStandardScheme(); } - if (isSetEndDate()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, other.endDate); - if (lastComparison != 0) { - return lastComparison; + } + + private static class startFileCopy_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, startFileCopy_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // FILE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.file = iprot.readString(); + struct.setFileIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TOKEN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.token = iprot.readString(); + struct.setTokenIsSet(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(); } - lastComparison = Boolean.valueOf(isSetIsActive()).compareTo(other.isSetIsActive()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetIsActive()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isActive, other.isActive); - if (lastComparison != 0) { - return lastComparison; + + public void write(org.apache.thrift.protocol.TProtocol oprot, startFileCopy_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.file != null) { + oprot.writeFieldBegin(FILE_FIELD_DESC); + oprot.writeString(struct.file); + oprot.writeFieldEnd(); + } + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); + oprot.writeFieldEnd(); } + oprot.writeFieldStop(); + oprot.writeStructEnd(); } - lastComparison = Boolean.valueOf(isSetImagename()).compareTo(other.isSetImagename()); - if (lastComparison != 0) { - return lastComparison; + + } + + private static class startFileCopy_argsTupleSchemeFactory implements SchemeFactory { + public startFileCopy_argsTupleScheme getScheme() { + return new startFileCopy_argsTupleScheme(); } - if (isSetImagename()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imagename, other.imagename); - if (lastComparison != 0) { - return lastComparison; + } + + private static class startFileCopy_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, startFileCopy_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetFile()) { + optionals.set(0); + } + if (struct.isSetToken()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetFile()) { + oprot.writeString(struct.file); + } + if (struct.isSetToken()) { + oprot.writeString(struct.token); } } - lastComparison = Boolean.valueOf(isSetLogin()).compareTo(other.isSetLogin()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetLogin()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.login, other.login); - if (lastComparison != 0) { - return lastComparison; + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, startFileCopy_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.file = iprot.readString(); + struct.setFileIsSet(true); + } + if (incoming.get(1)) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } } - lastComparison = Boolean.valueOf(isSetFirstname()).compareTo(other.isSetFirstname()); - if (lastComparison != 0) { - return lastComparison; + } + + } + + public static class startFileCopy_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("startFileCopy_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new startFileCopy_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new startFileCopy_resultTupleSchemeFactory()); + } + + public boolean success; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } } - if (isSetFirstname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.firstname, other.firstname); - if (lastComparison != 0) { - return lastComparison; + + /** + * 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; } } - lastComparison = Boolean.valueOf(isSetLastname()).compareTo(other.isSetLastname()); - if (lastComparison != 0) { - return lastComparison; + + /** + * 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; } - if (isSetLastname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastname, other.lastname); - if (lastComparison != 0) { - return lastComparison; - } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); } - lastComparison = Boolean.valueOf(isSetUniversity()).compareTo(other.isSetUniversity()); - if (lastComparison != 0) { - return lastComparison; + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; } - if (isSetUniversity()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.university, other.university); - if (lastComparison != 0) { - return lastComparison; + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startFileCopy_result.class, metaDataMap); + } + + public startFileCopy_result() { + } + + public startFileCopy_result( + boolean success) + { + this(); + this.success = success; + setSuccessIsSet(true); + } + + /** + * Performs a deep copy on other. + */ + public startFileCopy_result(startFileCopy_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; + } + + public startFileCopy_result deepCopy() { + return new startFileCopy_result(this); + } + + @Override + public void clear() { + setSuccessIsSet(false); + this.success = false; + } + + public boolean isSuccess() { + return this.success; + } + + public startFileCopy_result setSuccess(boolean success) { + this.success = success; + setSuccessIsSet(true); + return this; + } + + public void unsetSuccess() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + public void setSuccessIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Boolean)value); } + break; + } - lastComparison = Boolean.valueOf(isSetMail()).compareTo(other.isSetMail()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetMail()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Mail, other.Mail); - if (lastComparison != 0) { - return lastComparison; - } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return Boolean.valueOf(isSuccess()); + } - lastComparison = Boolean.valueOf(isSetTel()).compareTo(other.isSetTel()); - if (lastComparison != 0) { - return lastComparison; + 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(); } - if (isSetTel()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Tel, other.Tel); - if (lastComparison != 0) { - return lastComparison; - } + + switch (field) { + case SUCCESS: + return isSetSuccess(); } - lastComparison = Boolean.valueOf(isSetFak()).compareTo(other.isSetFak()); - if (lastComparison != 0) { - return lastComparison; + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof startFileCopy_result) + return this.equals((startFileCopy_result)that); + return false; + } + + public boolean equals(startFileCopy_result that) { + if (that == null) + return false; + + boolean this_present_success = true; + boolean that_present_success = true; + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (this.success != that.success) + return false; } - if (isSetFak()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Fak, other.Fak); - if (lastComparison != 0) { - return lastComparison; - } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(startFileCopy_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); } - lastComparison = Boolean.valueOf(isSetLectureID()).compareTo(other.isSetLectureID()); + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } - if (isSetLectureID()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lectureID, other.lectureID); + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } @@ -25148,127 +28534,15 @@ public class Server { public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } + } @Override public String toString() { - StringBuilder sb = new StringBuilder("writeLecturedata_args("); + StringBuilder sb = new StringBuilder("startFileCopy_result("); boolean first = true; - sb.append("name:"); - if (this.name == null) { - sb.append("null"); - } else { - sb.append(this.name); - } - first = false; - if (!first) sb.append(", "); - sb.append("shortdesc:"); - if (this.shortdesc == null) { - sb.append("null"); - } else { - sb.append(this.shortdesc); - } - first = false; - if (!first) sb.append(", "); - sb.append("desc:"); - if (this.desc == null) { - sb.append("null"); - } else { - sb.append(this.desc); - } - first = false; - if (!first) sb.append(", "); - sb.append("startDate:"); - if (this.startDate == null) { - sb.append("null"); - } else { - sb.append(this.startDate); - } - first = false; - if (!first) sb.append(", "); - sb.append("endDate:"); - if (this.endDate == null) { - sb.append("null"); - } else { - sb.append(this.endDate); - } - first = false; - if (!first) sb.append(", "); - sb.append("isActive:"); - sb.append(this.isActive); - first = false; - if (!first) sb.append(", "); - sb.append("imagename:"); - if (this.imagename == null) { - sb.append("null"); - } else { - sb.append(this.imagename); - } - first = false; - if (!first) sb.append(", "); - sb.append("login:"); - if (this.login == null) { - sb.append("null"); - } else { - sb.append(this.login); - } - first = false; - if (!first) sb.append(", "); - sb.append("firstname:"); - if (this.firstname == null) { - sb.append("null"); - } else { - sb.append(this.firstname); - } - first = false; - if (!first) sb.append(", "); - sb.append("lastname:"); - if (this.lastname == null) { - sb.append("null"); - } else { - sb.append(this.lastname); - } - first = false; - if (!first) sb.append(", "); - sb.append("university:"); - if (this.university == null) { - sb.append("null"); - } else { - sb.append(this.university); - } - first = false; - if (!first) sb.append(", "); - sb.append("Mail:"); - if (this.Mail == null) { - sb.append("null"); - } else { - sb.append(this.Mail); - } - first = false; - if (!first) sb.append(", "); - sb.append("Tel:"); - if (this.Tel == null) { - sb.append("null"); - } else { - sb.append(this.Tel); - } - first = false; - if (!first) sb.append(", "); - sb.append("Fak:"); - if (this.Fak == null) { - sb.append("null"); - } else { - sb.append(this.Fak); - } - first = false; - if (!first) sb.append(", "); - sb.append("lectureID:"); - if (this.lectureID == null) { - sb.append("null"); - } else { - sb.append(this.lectureID); - } + sb.append("success:"); + sb.append(this.success); first = false; sb.append(")"); return sb.toString(); @@ -25297,428 +28571,114 @@ public class Server { } } - private static class writeLecturedata_argsStandardSchemeFactory implements SchemeFactory { - public writeLecturedata_argsStandardScheme getScheme() { - return new writeLecturedata_argsStandardScheme(); - } - } - - private static class writeLecturedata_argsStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, writeLecturedata_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.name = iprot.readString(); - struct.setNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // SHORTDESC - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.shortdesc = iprot.readString(); - struct.setShortdescIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // DESC - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.desc = iprot.readString(); - struct.setDescIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // START_DATE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.startDate = iprot.readString(); - struct.setStartDateIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // END_DATE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.endDate = iprot.readString(); - struct.setEndDateIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // IS_ACTIVE - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.isActive = iprot.readBool(); - struct.setIsActiveIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 7: // IMAGENAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imagename = iprot.readString(); - struct.setImagenameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 8: // LOGIN - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.login = iprot.readString(); - struct.setLoginIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 9: // FIRSTNAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.firstname = iprot.readString(); - struct.setFirstnameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 10: // LASTNAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.lastname = iprot.readString(); - struct.setLastnameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 11: // UNIVERSITY - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.university = iprot.readString(); - struct.setUniversityIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 12: // MAIL - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.Mail = iprot.readString(); - struct.setMailIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 13: // TEL - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.Tel = iprot.readString(); - struct.setTelIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 14: // FAK - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.Fak = iprot.readString(); - struct.setFakIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 16: // LECTURE_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.lectureID = iprot.readString(); - struct.setLectureIDIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - - // 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, writeLecturedata_args struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (struct.name != null) { - oprot.writeFieldBegin(NAME_FIELD_DESC); - oprot.writeString(struct.name); - oprot.writeFieldEnd(); - } - if (struct.shortdesc != null) { - oprot.writeFieldBegin(SHORTDESC_FIELD_DESC); - oprot.writeString(struct.shortdesc); - oprot.writeFieldEnd(); - } - if (struct.desc != null) { - oprot.writeFieldBegin(DESC_FIELD_DESC); - oprot.writeString(struct.desc); - oprot.writeFieldEnd(); - } - if (struct.startDate != null) { - oprot.writeFieldBegin(START_DATE_FIELD_DESC); - oprot.writeString(struct.startDate); - oprot.writeFieldEnd(); - } - if (struct.endDate != null) { - oprot.writeFieldBegin(END_DATE_FIELD_DESC); - oprot.writeString(struct.endDate); - oprot.writeFieldEnd(); - } - oprot.writeFieldBegin(IS_ACTIVE_FIELD_DESC); - oprot.writeBool(struct.isActive); - oprot.writeFieldEnd(); - if (struct.imagename != null) { - oprot.writeFieldBegin(IMAGENAME_FIELD_DESC); - oprot.writeString(struct.imagename); - oprot.writeFieldEnd(); - } - if (struct.login != null) { - oprot.writeFieldBegin(LOGIN_FIELD_DESC); - oprot.writeString(struct.login); - oprot.writeFieldEnd(); - } - if (struct.firstname != null) { - oprot.writeFieldBegin(FIRSTNAME_FIELD_DESC); - oprot.writeString(struct.firstname); - oprot.writeFieldEnd(); - } - if (struct.lastname != null) { - oprot.writeFieldBegin(LASTNAME_FIELD_DESC); - oprot.writeString(struct.lastname); - oprot.writeFieldEnd(); - } - if (struct.university != null) { - oprot.writeFieldBegin(UNIVERSITY_FIELD_DESC); - oprot.writeString(struct.university); - oprot.writeFieldEnd(); - } - if (struct.Mail != null) { - oprot.writeFieldBegin(MAIL_FIELD_DESC); - oprot.writeString(struct.Mail); - oprot.writeFieldEnd(); - } - if (struct.Tel != null) { - oprot.writeFieldBegin(TEL_FIELD_DESC); - oprot.writeString(struct.Tel); - oprot.writeFieldEnd(); - } - if (struct.Fak != null) { - oprot.writeFieldBegin(FAK_FIELD_DESC); - oprot.writeString(struct.Fak); - oprot.writeFieldEnd(); - } - if (struct.lectureID != null) { - oprot.writeFieldBegin(LECTURE_ID_FIELD_DESC); - oprot.writeString(struct.lectureID); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class writeLecturedata_argsTupleSchemeFactory implements SchemeFactory { - public writeLecturedata_argsTupleScheme getScheme() { - return new writeLecturedata_argsTupleScheme(); + private static class startFileCopy_resultStandardSchemeFactory implements SchemeFactory { + public startFileCopy_resultStandardScheme getScheme() { + return new startFileCopy_resultStandardScheme(); } } - private static class writeLecturedata_argsTupleScheme extends TupleScheme { + private static class startFileCopy_resultStandardScheme extends StandardScheme { - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, writeLecturedata_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetName()) { - optionals.set(0); - } - if (struct.isSetShortdesc()) { - optionals.set(1); - } - if (struct.isSetDesc()) { - optionals.set(2); - } - if (struct.isSetStartDate()) { - optionals.set(3); - } - if (struct.isSetEndDate()) { - optionals.set(4); - } - if (struct.isSetIsActive()) { - optionals.set(5); - } - if (struct.isSetImagename()) { - optionals.set(6); - } - if (struct.isSetLogin()) { - optionals.set(7); - } - if (struct.isSetFirstname()) { - optionals.set(8); - } - if (struct.isSetLastname()) { - optionals.set(9); - } - if (struct.isSetUniversity()) { - optionals.set(10); - } - if (struct.isSetMail()) { - optionals.set(11); - } - if (struct.isSetTel()) { - optionals.set(12); - } - if (struct.isSetFak()) { - optionals.set(13); - } - if (struct.isSetLectureID()) { - optionals.set(14); - } - oprot.writeBitSet(optionals, 15); - if (struct.isSetName()) { - oprot.writeString(struct.name); - } - if (struct.isSetShortdesc()) { - oprot.writeString(struct.shortdesc); - } - if (struct.isSetDesc()) { - oprot.writeString(struct.desc); - } - if (struct.isSetStartDate()) { - oprot.writeString(struct.startDate); - } - if (struct.isSetEndDate()) { - oprot.writeString(struct.endDate); - } - if (struct.isSetIsActive()) { - oprot.writeBool(struct.isActive); - } - if (struct.isSetImagename()) { - oprot.writeString(struct.imagename); - } - if (struct.isSetLogin()) { - oprot.writeString(struct.login); - } - if (struct.isSetFirstname()) { - oprot.writeString(struct.firstname); - } - if (struct.isSetLastname()) { - oprot.writeString(struct.lastname); - } - if (struct.isSetUniversity()) { - oprot.writeString(struct.university); - } - if (struct.isSetMail()) { - oprot.writeString(struct.Mail); + public void read(org.apache.thrift.protocol.TProtocol iprot, startFileCopy_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - if (struct.isSetTel()) { - oprot.writeString(struct.Tel); + 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, startFileCopy_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeBool(struct.success); + oprot.writeFieldEnd(); } - if (struct.isSetFak()) { - oprot.writeString(struct.Fak); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class startFileCopy_resultTupleSchemeFactory implements SchemeFactory { + public startFileCopy_resultTupleScheme getScheme() { + return new startFileCopy_resultTupleScheme(); + } + } + + private static class startFileCopy_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, startFileCopy_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); } - if (struct.isSetLectureID()) { - oprot.writeString(struct.lectureID); + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + oprot.writeBool(struct.success); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, writeLecturedata_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, startFileCopy_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(15); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.name = iprot.readString(); - struct.setNameIsSet(true); - } - if (incoming.get(1)) { - struct.shortdesc = iprot.readString(); - struct.setShortdescIsSet(true); - } - if (incoming.get(2)) { - struct.desc = iprot.readString(); - struct.setDescIsSet(true); - } - if (incoming.get(3)) { - struct.startDate = iprot.readString(); - struct.setStartDateIsSet(true); - } - if (incoming.get(4)) { - struct.endDate = iprot.readString(); - struct.setEndDateIsSet(true); - } - if (incoming.get(5)) { - struct.isActive = iprot.readBool(); - struct.setIsActiveIsSet(true); - } - if (incoming.get(6)) { - struct.imagename = iprot.readString(); - struct.setImagenameIsSet(true); - } - if (incoming.get(7)) { - struct.login = iprot.readString(); - struct.setLoginIsSet(true); - } - if (incoming.get(8)) { - struct.firstname = iprot.readString(); - struct.setFirstnameIsSet(true); - } - if (incoming.get(9)) { - struct.lastname = iprot.readString(); - struct.setLastnameIsSet(true); - } - if (incoming.get(10)) { - struct.university = iprot.readString(); - struct.setUniversityIsSet(true); - } - if (incoming.get(11)) { - struct.Mail = iprot.readString(); - struct.setMailIsSet(true); - } - if (incoming.get(12)) { - struct.Tel = iprot.readString(); - struct.setTelIsSet(true); - } - if (incoming.get(13)) { - struct.Fak = iprot.readString(); - struct.setFakIsSet(true); - } - if (incoming.get(14)) { - struct.lectureID = iprot.readString(); - struct.setLectureIDIsSet(true); + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); } } } } - public static class writeLecturedata_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("writeLecturedata_result"); + public static class getImageData_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("getImageData_args"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField IMAGEID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageid", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField IMAGEVERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("imageversion", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new writeLecturedata_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new writeLecturedata_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageData_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageData_argsTupleSchemeFactory()); } - public boolean success; // required + public String imageid; // required + public String imageversion; // required + public String token; // 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"); + IMAGEID((short)1, "imageid"), + IMAGEVERSION((short)2, "imageversion"), + TOKEN((short)3, "token"); private static final Map byName = new HashMap(); @@ -25733,8 +28693,12 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; + case 1: // IMAGEID + return IMAGEID; + case 2: // IMAGEVERSION + return IMAGEVERSION; + case 3: // TOKEN + return TOKEN; default: return null; } @@ -25775,76 +28739,154 @@ public class Server { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.IMAGEID, new org.apache.thrift.meta_data.FieldMetaData("imageid", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.IMAGEVERSION, new org.apache.thrift.meta_data.FieldMetaData("imageversion", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", 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(writeLecturedata_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageData_args.class, metaDataMap); } - public writeLecturedata_result() { + public getImageData_args() { } - public writeLecturedata_result( - boolean success) + public getImageData_args( + String imageid, + String imageversion, + String token) { this(); - this.success = success; - setSuccessIsSet(true); + this.imageid = imageid; + this.imageversion = imageversion; + this.token = token; } /** * Performs a deep copy on other. */ - public writeLecturedata_result(writeLecturedata_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public getImageData_args(getImageData_args other) { + if (other.isSetImageid()) { + this.imageid = other.imageid; + } + if (other.isSetImageversion()) { + this.imageversion = other.imageversion; + } + if (other.isSetToken()) { + this.token = other.token; + } } - public writeLecturedata_result deepCopy() { - return new writeLecturedata_result(this); + public getImageData_args deepCopy() { + return new getImageData_args(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; + this.imageid = null; + this.imageversion = null; + this.token = null; } - public boolean isSuccess() { - return this.success; + public String getImageid() { + return this.imageid; } - public writeLecturedata_result setSuccess(boolean success) { - this.success = success; - setSuccessIsSet(true); + public getImageData_args setImageid(String imageid) { + this.imageid = imageid; return this; } - public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + public void unsetImageid() { + this.imageid = null; } - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + /** Returns true if field imageid is set (has been assigned a value) and false otherwise */ + public boolean isSetImageid() { + return this.imageid != null; } - public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + public void setImageidIsSet(boolean value) { + if (!value) { + this.imageid = null; + } + } + + public String getImageversion() { + return this.imageversion; + } + + public getImageData_args setImageversion(String imageversion) { + this.imageversion = imageversion; + return this; + } + + public void unsetImageversion() { + this.imageversion = null; + } + + /** Returns true if field imageversion is set (has been assigned a value) and false otherwise */ + public boolean isSetImageversion() { + return this.imageversion != null; + } + + public void setImageversionIsSet(boolean value) { + if (!value) { + this.imageversion = null; + } + } + + public String getToken() { + return this.token; + } + + public getImageData_args setToken(String token) { + this.token = token; + return this; + } + + public void unsetToken() { + this.token = null; + } + + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; + } + + public void setTokenIsSet(boolean value) { + if (!value) { + this.token = null; + } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: + case IMAGEID: if (value == null) { - unsetSuccess(); + unsetImageid(); } else { - setSuccess((Boolean)value); + setImageid((String)value); + } + break; + + case IMAGEVERSION: + if (value == null) { + unsetImageversion(); + } else { + setImageversion((String)value); + } + break; + + case TOKEN: + if (value == null) { + unsetToken(); + } else { + setToken((String)value); } break; @@ -25853,8 +28895,14 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return Boolean.valueOf(isSuccess()); + case IMAGEID: + return getImageid(); + + case IMAGEVERSION: + return getImageversion(); + + case TOKEN: + return getToken(); } throw new IllegalStateException(); @@ -25867,8 +28915,12 @@ public class Server { } switch (field) { - case SUCCESS: - return isSetSuccess(); + case IMAGEID: + return isSetImageid(); + case IMAGEVERSION: + return isSetImageversion(); + case TOKEN: + return isSetToken(); } throw new IllegalStateException(); } @@ -25877,21 +28929,39 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof writeLecturedata_result) - return this.equals((writeLecturedata_result)that); + if (that instanceof getImageData_args) + return this.equals((getImageData_args)that); return false; } - public boolean equals(writeLecturedata_result that) { + public boolean equals(getImageData_args that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; - if (this_present_success || that_present_success) { - if (!(this_present_success && that_present_success)) + boolean this_present_imageid = true && this.isSetImageid(); + boolean that_present_imageid = true && that.isSetImageid(); + if (this_present_imageid || that_present_imageid) { + if (!(this_present_imageid && that_present_imageid)) return false; - if (this.success != that.success) + if (!this.imageid.equals(that.imageid)) + return false; + } + + boolean this_present_imageversion = true && this.isSetImageversion(); + boolean that_present_imageversion = true && that.isSetImageversion(); + if (this_present_imageversion || that_present_imageversion) { + if (!(this_present_imageversion && that_present_imageversion)) + return false; + if (!this.imageversion.equals(that.imageversion)) + return false; + } + + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) + return false; + if (!this.token.equals(that.token)) return false; } @@ -25904,19 +28974,39 @@ public class Server { } @Override - public int compareTo(writeLecturedata_result other) { + public int compareTo(getImageData_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetImageid()).compareTo(other.isSetImageid()); if (lastComparison != 0) { return lastComparison; } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (isSetImageid()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageid, other.imageid); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetImageversion()).compareTo(other.isSetImageversion()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetImageversion()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageversion, other.imageversion); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) { return lastComparison; } @@ -25934,15 +29024,35 @@ public class Server { public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } + } @Override public String toString() { - StringBuilder sb = new StringBuilder("writeLecturedata_result("); + StringBuilder sb = new StringBuilder("getImageData_args("); boolean first = true; - sb.append("success:"); - sb.append(this.success); + sb.append("imageid:"); + if (this.imageid == null) { + sb.append("null"); + } else { + sb.append(this.imageid); + } + first = false; + if (!first) sb.append(", "); + sb.append("imageversion:"); + if (this.imageversion == null) { + sb.append("null"); + } else { + sb.append(this.imageversion); + } + first = false; + if (!first) sb.append(", "); + sb.append("token:"); + if (this.token == null) { + sb.append("null"); + } else { + sb.append(this.token); + } first = false; sb.append(")"); return sb.toString(); @@ -25963,23 +29073,21 @@ public class Server { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class writeLecturedata_resultStandardSchemeFactory implements SchemeFactory { - public writeLecturedata_resultStandardScheme getScheme() { - return new writeLecturedata_resultStandardScheme(); + private static class getImageData_argsStandardSchemeFactory implements SchemeFactory { + public getImageData_argsStandardScheme getScheme() { + return new getImageData_argsStandardScheme(); } } - private static class writeLecturedata_resultStandardScheme extends StandardScheme { + private static class getImageData_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, writeLecturedata_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageData_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -25989,10 +29097,26 @@ public class Server { break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); + case 1: // IMAGEID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.imageid = iprot.readString(); + struct.setImageidIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // IMAGEVERSION + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.imageversion = iprot.readString(); + struct.setImageversionIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TOKEN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -26008,13 +29132,23 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, writeLecturedata_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageData_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBool(struct.success); + if (struct.imageid != null) { + oprot.writeFieldBegin(IMAGEID_FIELD_DESC); + oprot.writeString(struct.imageid); + oprot.writeFieldEnd(); + } + if (struct.imageversion != null) { + oprot.writeFieldBegin(IMAGEVERSION_FIELD_DESC); + oprot.writeString(struct.imageversion); + oprot.writeFieldEnd(); + } + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -26023,56 +29157,76 @@ public class Server { } - private static class writeLecturedata_resultTupleSchemeFactory implements SchemeFactory { - public writeLecturedata_resultTupleScheme getScheme() { - return new writeLecturedata_resultTupleScheme(); + private static class getImageData_argsTupleSchemeFactory implements SchemeFactory { + public getImageData_argsTupleScheme getScheme() { + return new getImageData_argsTupleScheme(); } } - private static class writeLecturedata_resultTupleScheme extends TupleScheme { + private static class getImageData_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, writeLecturedata_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImageData_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { + if (struct.isSetImageid()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + if (struct.isSetImageversion()) { + optionals.set(1); + } + if (struct.isSetToken()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetImageid()) { + oprot.writeString(struct.imageid); + } + if (struct.isSetImageversion()) { + oprot.writeString(struct.imageversion); + } + if (struct.isSetToken()) { + oprot.writeString(struct.token); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, writeLecturedata_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImageData_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); + struct.imageid = iprot.readString(); + struct.setImageidIsSet(true); + } + if (incoming.get(1)) { + struct.imageversion = iprot.readString(); + struct.setImageversionIsSet(true); + } + if (incoming.get(2)) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } } } } - public static class startFileCopy_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("startFileCopy_args"); + public static class getImageData_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("getImageData_result"); - private static final org.apache.thrift.protocol.TField FILE_FIELD_DESC = new org.apache.thrift.protocol.TField("file", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new startFileCopy_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new startFileCopy_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageData_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageData_resultTupleSchemeFactory()); } - public String file; // required + public Map success; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - FILE((short)1, "file"); + SUCCESS((short)0, "success"); private static final Map byName = new HashMap(); @@ -26087,8 +29241,8 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // FILE - return FILE; + case 0: // SUCCESS + return SUCCESS; default: return null; } @@ -26132,71 +29286,85 @@ public class Server { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.FILE, new org.apache.thrift.meta_data.FieldMetaData("file", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startFileCopy_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageData_result.class, metaDataMap); } - public startFileCopy_args() { + public getImageData_result() { } - public startFileCopy_args( - String file) + public getImageData_result( + Map success) { this(); - this.file = file; + this.success = success; } /** * Performs a deep copy on other. */ - public startFileCopy_args(startFileCopy_args other) { - if (other.isSetFile()) { - this.file = other.file; + public getImageData_result(getImageData_result other) { + if (other.isSetSuccess()) { + Map __this__success = new HashMap(other.success); + this.success = __this__success; } } - public startFileCopy_args deepCopy() { - return new startFileCopy_args(this); + public getImageData_result deepCopy() { + return new getImageData_result(this); } @Override public void clear() { - this.file = null; + this.success = null; } - public String getFile() { - return this.file; + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); } - public startFileCopy_args setFile(String file) { - this.file = file; + public void putToSuccess(String key, String val) { + if (this.success == null) { + this.success = new HashMap(); + } + this.success.put(key, val); + } + + public Map getSuccess() { + return this.success; + } + + public getImageData_result setSuccess(Map success) { + this.success = success; return this; } - public void unsetFile() { - this.file = null; + public void unsetSuccess() { + this.success = null; } - /** Returns true if field file is set (has been assigned a value) and false otherwise */ - public boolean isSetFile() { - return this.file != 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 setFileIsSet(boolean value) { + public void setSuccessIsSet(boolean value) { if (!value) { - this.file = null; + this.success = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case FILE: + case SUCCESS: if (value == null) { - unsetFile(); + unsetSuccess(); } else { - setFile((String)value); + setSuccess((Map)value); } break; @@ -26205,8 +29373,8 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case FILE: - return getFile(); + case SUCCESS: + return getSuccess(); } throw new IllegalStateException(); @@ -26219,8 +29387,8 @@ public class Server { } switch (field) { - case FILE: - return isSetFile(); + case SUCCESS: + return isSetSuccess(); } throw new IllegalStateException(); } @@ -26229,21 +29397,21 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof startFileCopy_args) - return this.equals((startFileCopy_args)that); + if (that instanceof getImageData_result) + return this.equals((getImageData_result)that); return false; } - public boolean equals(startFileCopy_args that) { + public boolean equals(getImageData_result that) { if (that == null) return false; - boolean this_present_file = true && this.isSetFile(); - boolean that_present_file = true && that.isSetFile(); - if (this_present_file || that_present_file) { - if (!(this_present_file && that_present_file)) + 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.file.equals(that.file)) + if (!this.success.equals(that.success)) return false; } @@ -26256,19 +29424,19 @@ public class Server { } @Override - public int compareTo(startFileCopy_args other) { + public int compareTo(getImageData_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetFile()).compareTo(other.isSetFile()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } - if (isSetFile()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.file, other.file); + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } @@ -26286,18 +29454,18 @@ public class Server { public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } + } @Override public String toString() { - StringBuilder sb = new StringBuilder("startFileCopy_args("); + StringBuilder sb = new StringBuilder("getImageData_result("); boolean first = true; - sb.append("file:"); - if (this.file == null) { + sb.append("success:"); + if (this.success == null) { sb.append("null"); } else { - sb.append(this.file); + sb.append(this.success); } first = false; sb.append(")"); @@ -26325,15 +29493,15 @@ public class Server { } } - private static class startFileCopy_argsStandardSchemeFactory implements SchemeFactory { - public startFileCopy_argsStandardScheme getScheme() { - return new startFileCopy_argsStandardScheme(); + private static class getImageData_resultStandardSchemeFactory implements SchemeFactory { + public getImageData_resultStandardScheme getScheme() { + return new getImageData_resultStandardScheme(); } } - private static class startFileCopy_argsStandardScheme extends StandardScheme { + private static class getImageData_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, startFileCopy_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageData_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -26343,10 +29511,22 @@ public class Server { break; } switch (schemeField.id) { - case 1: // FILE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.file = iprot.readString(); - struct.setFileIsSet(true); + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { + { + org.apache.thrift.protocol.TMap _map116 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map116.size); + for (int _i117 = 0; _i117 < _map116.size; ++_i117) + { + String _key118; + String _val119; + _key118 = iprot.readString(); + _val119 = iprot.readString(); + struct.success.put(_key118, _val119); + } + iprot.readMapEnd(); + } + struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -26362,13 +29542,21 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, startFileCopy_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageData_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.file != null) { - oprot.writeFieldBegin(FILE_FIELD_DESC); - oprot.writeString(struct.file); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (Map.Entry _iter120 : struct.success.entrySet()) + { + oprot.writeString(_iter120.getKey()); + oprot.writeString(_iter120.getValue()); + } + oprot.writeMapEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -26377,56 +29565,77 @@ public class Server { } - private static class startFileCopy_argsTupleSchemeFactory implements SchemeFactory { - public startFileCopy_argsTupleScheme getScheme() { - return new startFileCopy_argsTupleScheme(); + private static class getImageData_resultTupleSchemeFactory implements SchemeFactory { + public getImageData_resultTupleScheme getScheme() { + return new getImageData_resultTupleScheme(); } } - private static class startFileCopy_argsTupleScheme extends TupleScheme { + private static class getImageData_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, startFileCopy_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImageData_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetFile()) { + if (struct.isSetSuccess()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); - if (struct.isSetFile()) { - oprot.writeString(struct.file); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (Map.Entry _iter121 : struct.success.entrySet()) + { + oprot.writeString(_iter121.getKey()); + oprot.writeString(_iter121.getValue()); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, startFileCopy_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImageData_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.file = iprot.readString(); - struct.setFileIsSet(true); + { + org.apache.thrift.protocol.TMap _map122 = 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*_map122.size); + for (int _i123 = 0; _i123 < _map122.size; ++_i123) + { + String _key124; + String _val125; + _key124 = iprot.readString(); + _val125 = iprot.readString(); + struct.success.put(_key124, _val125); + } + } + struct.setSuccessIsSet(true); } } } } - public static class startFileCopy_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("startFileCopy_result"); + public static class getLectureData_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLectureData_args"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField LECTUREID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureid", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new startFileCopy_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new startFileCopy_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getLectureData_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureData_argsTupleSchemeFactory()); } - public boolean success; // required + public String lectureid; // required + public String token; // 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"); + LECTUREID((short)1, "lectureid"), + TOKEN((short)2, "token"); private static final Map byName = new HashMap(); @@ -26441,8 +29650,10 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; + case 1: // LECTUREID + return LECTUREID; + case 2: // TOKEN + return TOKEN; default: return null; } @@ -26483,76 +29694,114 @@ public class Server { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.LECTUREID, new org.apache.thrift.meta_data.FieldMetaData("lectureid", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", 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(startFileCopy_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureData_args.class, metaDataMap); } - public startFileCopy_result() { + public getLectureData_args() { } - public startFileCopy_result( - boolean success) + public getLectureData_args( + String lectureid, + String token) { this(); - this.success = success; - setSuccessIsSet(true); + this.lectureid = lectureid; + this.token = token; } /** * Performs a deep copy on other. */ - public startFileCopy_result(startFileCopy_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public getLectureData_args(getLectureData_args other) { + if (other.isSetLectureid()) { + this.lectureid = other.lectureid; + } + if (other.isSetToken()) { + this.token = other.token; + } } - public startFileCopy_result deepCopy() { - return new startFileCopy_result(this); + public getLectureData_args deepCopy() { + return new getLectureData_args(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; + this.lectureid = null; + this.token = null; } - public boolean isSuccess() { - return this.success; + public String getLectureid() { + return this.lectureid; } - public startFileCopy_result setSuccess(boolean success) { - this.success = success; - setSuccessIsSet(true); + public getLectureData_args setLectureid(String lectureid) { + this.lectureid = lectureid; return this; } - public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + public void unsetLectureid() { + this.lectureid = null; } - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + /** Returns true if field lectureid is set (has been assigned a value) and false otherwise */ + public boolean isSetLectureid() { + return this.lectureid != null; } - public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + public void setLectureidIsSet(boolean value) { + if (!value) { + this.lectureid = null; + } + } + + public String getToken() { + return this.token; + } + + public getLectureData_args setToken(String token) { + this.token = token; + return this; + } + + public void unsetToken() { + this.token = null; + } + + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; + } + + public void setTokenIsSet(boolean value) { + if (!value) { + this.token = null; + } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: + case LECTUREID: if (value == null) { - unsetSuccess(); + unsetLectureid(); } else { - setSuccess((Boolean)value); + setLectureid((String)value); + } + break; + + case TOKEN: + if (value == null) { + unsetToken(); + } else { + setToken((String)value); } break; @@ -26561,8 +29810,11 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return Boolean.valueOf(isSuccess()); + case LECTUREID: + return getLectureid(); + + case TOKEN: + return getToken(); } throw new IllegalStateException(); @@ -26575,8 +29827,10 @@ public class Server { } switch (field) { - case SUCCESS: - return isSetSuccess(); + case LECTUREID: + return isSetLectureid(); + case TOKEN: + return isSetToken(); } throw new IllegalStateException(); } @@ -26585,21 +29839,30 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof startFileCopy_result) - return this.equals((startFileCopy_result)that); + if (that instanceof getLectureData_args) + return this.equals((getLectureData_args)that); return false; } - public boolean equals(startFileCopy_result that) { + public boolean equals(getLectureData_args that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; - if (this_present_success || that_present_success) { - if (!(this_present_success && that_present_success)) + boolean this_present_lectureid = true && this.isSetLectureid(); + boolean that_present_lectureid = true && that.isSetLectureid(); + if (this_present_lectureid || that_present_lectureid) { + if (!(this_present_lectureid && that_present_lectureid)) return false; - if (this.success != that.success) + if (!this.lectureid.equals(that.lectureid)) + return false; + } + + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) + return false; + if (!this.token.equals(that.token)) return false; } @@ -26612,19 +29875,29 @@ public class Server { } @Override - public int compareTo(startFileCopy_result other) { + public int compareTo(getLectureData_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetLectureid()).compareTo(other.isSetLectureid()); if (lastComparison != 0) { return lastComparison; } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (isSetLectureid()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lectureid, other.lectureid); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) { return lastComparison; } @@ -26642,15 +29915,27 @@ public class Server { public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } + } @Override public String toString() { - StringBuilder sb = new StringBuilder("startFileCopy_result("); + StringBuilder sb = new StringBuilder("getLectureData_args("); boolean first = true; - sb.append("success:"); - sb.append(this.success); + sb.append("lectureid:"); + if (this.lectureid == null) { + sb.append("null"); + } else { + sb.append(this.lectureid); + } + first = false; + if (!first) sb.append(", "); + sb.append("token:"); + if (this.token == null) { + sb.append("null"); + } else { + sb.append(this.token); + } first = false; sb.append(")"); return sb.toString(); @@ -26671,23 +29956,21 @@ public class Server { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class startFileCopy_resultStandardSchemeFactory implements SchemeFactory { - public startFileCopy_resultStandardScheme getScheme() { - return new startFileCopy_resultStandardScheme(); + private static class getLectureData_argsStandardSchemeFactory implements SchemeFactory { + public getLectureData_argsStandardScheme getScheme() { + return new getLectureData_argsStandardScheme(); } } - private static class startFileCopy_resultStandardScheme extends StandardScheme { + private static class getLectureData_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, startFileCopy_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureData_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -26697,10 +29980,18 @@ public class Server { break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); + case 1: // LECTUREID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.lectureid = iprot.readString(); + struct.setLectureidIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TOKEN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -26716,13 +30007,18 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, startFileCopy_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureData_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBool(struct.success); + if (struct.lectureid != null) { + oprot.writeFieldBegin(LECTUREID_FIELD_DESC); + oprot.writeString(struct.lectureid); + oprot.writeFieldEnd(); + } + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -26731,59 +30027,66 @@ public class Server { } - private static class startFileCopy_resultTupleSchemeFactory implements SchemeFactory { - public startFileCopy_resultTupleScheme getScheme() { - return new startFileCopy_resultTupleScheme(); + private static class getLectureData_argsTupleSchemeFactory implements SchemeFactory { + public getLectureData_argsTupleScheme getScheme() { + return new getLectureData_argsTupleScheme(); } } - private static class startFileCopy_resultTupleScheme extends TupleScheme { + private static class getLectureData_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, startFileCopy_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getLectureData_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { + if (struct.isSetLectureid()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + if (struct.isSetToken()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetLectureid()) { + oprot.writeString(struct.lectureid); + } + if (struct.isSetToken()) { + oprot.writeString(struct.token); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, startFileCopy_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getLectureData_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); + struct.lectureid = iprot.readString(); + struct.setLectureidIsSet(true); + } + if (incoming.get(1)) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } } } } - public static class getImageData_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("getImageData_args"); + public static class getLectureData_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLectureData_result"); - private static final org.apache.thrift.protocol.TField IMAGEID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageid", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField IMAGEVERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("imageversion", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getImageData_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageData_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getLectureData_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureData_resultTupleSchemeFactory()); } - public String imageid; // required - public String imageversion; // required + public Map success; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - IMAGEID((short)1, "imageid"), - IMAGEVERSION((short)2, "imageversion"); + SUCCESS((short)0, "success"); private static final Map byName = new HashMap(); @@ -26798,10 +30101,8 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // IMAGEID - return IMAGEID; - case 2: // IMAGEVERSION - return IMAGEVERSION; + case 0: // SUCCESS + return SUCCESS; default: return null; } @@ -26845,111 +30146,85 @@ public class Server { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.IMAGEID, new org.apache.thrift.meta_data.FieldMetaData("imageid", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.IMAGEVERSION, new org.apache.thrift.meta_data.FieldMetaData("imageversion", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageData_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureData_result.class, metaDataMap); } - public getImageData_args() { + public getLectureData_result() { } - public getImageData_args( - String imageid, - String imageversion) + public getLectureData_result( + Map success) { this(); - this.imageid = imageid; - this.imageversion = imageversion; + this.success = success; } /** * Performs a deep copy on other. */ - public getImageData_args(getImageData_args other) { - if (other.isSetImageid()) { - this.imageid = other.imageid; - } - if (other.isSetImageversion()) { - this.imageversion = other.imageversion; + public getLectureData_result(getLectureData_result other) { + if (other.isSetSuccess()) { + Map __this__success = new HashMap(other.success); + this.success = __this__success; } } - public getImageData_args deepCopy() { - return new getImageData_args(this); + public getLectureData_result deepCopy() { + return new getLectureData_result(this); } @Override public void clear() { - this.imageid = null; - this.imageversion = null; - } - - public String getImageid() { - return this.imageid; - } - - public getImageData_args setImageid(String imageid) { - this.imageid = imageid; - return this; - } - - public void unsetImageid() { - this.imageid = null; + this.success = null; } - /** Returns true if field imageid is set (has been assigned a value) and false otherwise */ - public boolean isSetImageid() { - return this.imageid != null; + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); } - public void setImageidIsSet(boolean value) { - if (!value) { - this.imageid = null; + public void putToSuccess(String key, String val) { + if (this.success == null) { + this.success = new HashMap(); } + this.success.put(key, val); } - public String getImageversion() { - return this.imageversion; + public Map getSuccess() { + return this.success; } - public getImageData_args setImageversion(String imageversion) { - this.imageversion = imageversion; + public getLectureData_result setSuccess(Map success) { + this.success = success; return this; } - public void unsetImageversion() { - this.imageversion = null; + public void unsetSuccess() { + this.success = null; } - /** Returns true if field imageversion is set (has been assigned a value) and false otherwise */ - public boolean isSetImageversion() { - return this.imageversion != 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 setImageversionIsSet(boolean value) { + public void setSuccessIsSet(boolean value) { if (!value) { - this.imageversion = null; + this.success = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case IMAGEID: - if (value == null) { - unsetImageid(); - } else { - setImageid((String)value); - } - break; - - case IMAGEVERSION: + case SUCCESS: if (value == null) { - unsetImageversion(); + unsetSuccess(); } else { - setImageversion((String)value); + setSuccess((Map)value); } break; @@ -26958,11 +30233,8 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case IMAGEID: - return getImageid(); - - case IMAGEVERSION: - return getImageversion(); + case SUCCESS: + return getSuccess(); } throw new IllegalStateException(); @@ -26975,10 +30247,8 @@ public class Server { } switch (field) { - case IMAGEID: - return isSetImageid(); - case IMAGEVERSION: - return isSetImageversion(); + case SUCCESS: + return isSetSuccess(); } throw new IllegalStateException(); } @@ -26987,30 +30257,21 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImageData_args) - return this.equals((getImageData_args)that); + if (that instanceof getLectureData_result) + return this.equals((getLectureData_result)that); return false; } - public boolean equals(getImageData_args that) { + public boolean equals(getLectureData_result that) { if (that == null) return false; - boolean this_present_imageid = true && this.isSetImageid(); - boolean that_present_imageid = true && that.isSetImageid(); - if (this_present_imageid || that_present_imageid) { - if (!(this_present_imageid && that_present_imageid)) - return false; - if (!this.imageid.equals(that.imageid)) - return false; - } - - boolean this_present_imageversion = true && this.isSetImageversion(); - boolean that_present_imageversion = true && that.isSetImageversion(); - if (this_present_imageversion || that_present_imageversion) { - if (!(this_present_imageversion && that_present_imageversion)) + 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.imageversion.equals(that.imageversion)) + if (!this.success.equals(that.success)) return false; } @@ -27023,29 +30284,19 @@ public class Server { } @Override - public int compareTo(getImageData_args other) { + public int compareTo(getLectureData_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetImageid()).compareTo(other.isSetImageid()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetImageid()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageid, other.imageid); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetImageversion()).compareTo(other.isSetImageversion()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } - if (isSetImageversion()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageversion, other.imageversion); + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } @@ -27063,26 +30314,18 @@ public class Server { public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } + } @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageData_args("); + StringBuilder sb = new StringBuilder("getLectureData_result("); boolean first = true; - sb.append("imageid:"); - if (this.imageid == null) { - sb.append("null"); - } else { - sb.append(this.imageid); - } - first = false; - if (!first) sb.append(", "); - sb.append("imageversion:"); - if (this.imageversion == null) { + sb.append("success:"); + if (this.success == null) { sb.append("null"); } else { - sb.append(this.imageversion); + sb.append(this.success); } first = false; sb.append(")"); @@ -27110,15 +30353,15 @@ public class Server { } } - private static class getImageData_argsStandardSchemeFactory implements SchemeFactory { - public getImageData_argsStandardScheme getScheme() { - return new getImageData_argsStandardScheme(); + private static class getLectureData_resultStandardSchemeFactory implements SchemeFactory { + public getLectureData_resultStandardScheme getScheme() { + return new getLectureData_resultStandardScheme(); } } - private static class getImageData_argsStandardScheme extends StandardScheme { + private static class getLectureData_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImageData_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureData_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -27128,18 +30371,22 @@ public class Server { break; } switch (schemeField.id) { - case 1: // IMAGEID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imageid = iprot.readString(); - struct.setImageidIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // IMAGEVERSION - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imageversion = iprot.readString(); - struct.setImageversionIsSet(true); + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { + { + org.apache.thrift.protocol.TMap _map126 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map126.size); + for (int _i127 = 0; _i127 < _map126.size; ++_i127) + { + String _key128; + String _val129; + _key128 = iprot.readString(); + _val129 = iprot.readString(); + struct.success.put(_key128, _val129); + } + iprot.readMapEnd(); + } + struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -27155,18 +30402,21 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImageData_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureData_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.imageid != null) { - oprot.writeFieldBegin(IMAGEID_FIELD_DESC); - oprot.writeString(struct.imageid); - oprot.writeFieldEnd(); - } - if (struct.imageversion != null) { - oprot.writeFieldBegin(IMAGEVERSION_FIELD_DESC); - oprot.writeString(struct.imageversion); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (Map.Entry _iter130 : struct.success.entrySet()) + { + oprot.writeString(_iter130.getKey()); + oprot.writeString(_iter130.getValue()); + } + oprot.writeMapEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -27175,66 +30425,116 @@ public class Server { } - private static class getImageData_argsTupleSchemeFactory implements SchemeFactory { - public getImageData_argsTupleScheme getScheme() { - return new getImageData_argsTupleScheme(); + private static class getLectureData_resultTupleSchemeFactory implements SchemeFactory { + public getLectureData_resultTupleScheme getScheme() { + return new getLectureData_resultTupleScheme(); } } - private static class getImageData_argsTupleScheme extends TupleScheme { + private static class getLectureData_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImageData_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getLectureData_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetImageid()) { + if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetImageversion()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetImageid()) { - oprot.writeString(struct.imageid); - } - if (struct.isSetImageversion()) { - oprot.writeString(struct.imageversion); + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (Map.Entry _iter131 : struct.success.entrySet()) + { + oprot.writeString(_iter131.getKey()); + oprot.writeString(_iter131.getValue()); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImageData_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getLectureData_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.imageid = iprot.readString(); - struct.setImageidIsSet(true); - } - if (incoming.get(1)) { - struct.imageversion = iprot.readString(); - struct.setImageversionIsSet(true); + { + org.apache.thrift.protocol.TMap _map132 = 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*_map132.size); + for (int _i133 = 0; _i133 < _map132.size; ++_i133) + { + String _key134; + String _val135; + _key134 = iprot.readString(); + _val135 = iprot.readString(); + struct.success.put(_key134, _val135); + } + } + struct.setSuccessIsSet(true); } } } } - public static class getImageData_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("getImageData_result"); + public static class updateImageData_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateImageData_args"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); + private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField NEW_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("newName", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField DESC_FIELD_DESC = new org.apache.thrift.protocol.TField("desc", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField IMAGE_PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("image_path", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField LICENSE_FIELD_DESC = new org.apache.thrift.protocol.TField("license", org.apache.thrift.protocol.TType.BOOL, (short)5); + private static final org.apache.thrift.protocol.TField INTERNET_FIELD_DESC = new org.apache.thrift.protocol.TField("internet", org.apache.thrift.protocol.TType.BOOL, (short)6); + private static final org.apache.thrift.protocol.TField RAM_FIELD_DESC = new org.apache.thrift.protocol.TField("ram", org.apache.thrift.protocol.TType.I64, (short)7); + private static final org.apache.thrift.protocol.TField CPU_FIELD_DESC = new org.apache.thrift.protocol.TField("cpu", org.apache.thrift.protocol.TType.I64, (short)8); + private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.STRING, (short)9); + private static final org.apache.thrift.protocol.TField VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("version", org.apache.thrift.protocol.TType.STRING, (short)10); + private static final org.apache.thrift.protocol.TField IS_TEMPLATE_FIELD_DESC = new org.apache.thrift.protocol.TField("isTemplate", org.apache.thrift.protocol.TType.BOOL, (short)11); + private static final org.apache.thrift.protocol.TField FILESIZE_FIELD_DESC = new org.apache.thrift.protocol.TField("filesize", org.apache.thrift.protocol.TType.I64, (short)12); + private static final org.apache.thrift.protocol.TField SHARE_MODE_FIELD_DESC = new org.apache.thrift.protocol.TField("shareMode", org.apache.thrift.protocol.TType.I64, (short)13); + private static final org.apache.thrift.protocol.TField OS_FIELD_DESC = new org.apache.thrift.protocol.TField("os", org.apache.thrift.protocol.TType.STRING, (short)14); + private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)15); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getImageData_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageData_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new updateImageData_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new updateImageData_argsTupleSchemeFactory()); } - public Map success; // required + public String name; // required + public String newName; // required + public String desc; // required + public String image_path; // required + public boolean license; // required + public boolean internet; // required + public long ram; // required + public long cpu; // required + public String id; // required + public String version; // required + public boolean isTemplate; // required + public long filesize; // required + public long shareMode; // required + public String os; // required + public String token; // 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"); + NAME((short)1, "name"), + NEW_NAME((short)2, "newName"), + DESC((short)3, "desc"), + IMAGE_PATH((short)4, "image_path"), + LICENSE((short)5, "license"), + INTERNET((short)6, "internet"), + RAM((short)7, "ram"), + CPU((short)8, "cpu"), + ID((short)9, "id"), + VERSION((short)10, "version"), + IS_TEMPLATE((short)11, "isTemplate"), + FILESIZE((short)12, "filesize"), + SHARE_MODE((short)13, "shareMode"), + OS((short)14, "os"), + TOKEN((short)15, "token"); private static final Map byName = new HashMap(); @@ -27249,8 +30549,36 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; + case 1: // NAME + return NAME; + case 2: // NEW_NAME + return NEW_NAME; + case 3: // DESC + return DESC; + case 4: // IMAGE_PATH + return IMAGE_PATH; + case 5: // LICENSE + return LICENSE; + case 6: // INTERNET + return INTERNET; + case 7: // RAM + return RAM; + case 8: // CPU + return CPU; + case 9: // ID + return ID; + case 10: // VERSION + return VERSION; + case 11: // IS_TEMPLATE + return IS_TEMPLATE; + case 12: // FILESIZE + return FILESIZE; + case 13: // SHARE_MODE + return SHARE_MODE; + case 14: // OS + return OS; + case 15: // TOKEN + return TOKEN; default: return null; } @@ -27291,480 +30619,636 @@ public class Server { } // isset id assignments + private static final int __LICENSE_ISSET_ID = 0; + private static final int __INTERNET_ISSET_ID = 1; + private static final int __RAM_ISSET_ID = 2; + private static final int __CPU_ISSET_ID = 3; + private static final int __ISTEMPLATE_ISSET_ID = 4; + private static final int __FILESIZE_ISSET_ID = 5; + private static final int __SHAREMODE_ISSET_ID = 6; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.NEW_NAME, new org.apache.thrift.meta_data.FieldMetaData("newName", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DESC, new org.apache.thrift.meta_data.FieldMetaData("desc", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.IMAGE_PATH, new org.apache.thrift.meta_data.FieldMetaData("image_path", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.LICENSE, new org.apache.thrift.meta_data.FieldMetaData("license", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.INTERNET, new org.apache.thrift.meta_data.FieldMetaData("internet", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.RAM, new org.apache.thrift.meta_data.FieldMetaData("ram", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "int"))); + tmpMap.put(_Fields.CPU, new org.apache.thrift.meta_data.FieldMetaData("cpu", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "int"))); + tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.VERSION, new org.apache.thrift.meta_data.FieldMetaData("version", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.IS_TEMPLATE, new org.apache.thrift.meta_data.FieldMetaData("isTemplate", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.FILESIZE, new org.apache.thrift.meta_data.FieldMetaData("filesize", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.SHARE_MODE, new org.apache.thrift.meta_data.FieldMetaData("shareMode", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "int"))); + tmpMap.put(_Fields.OS, new org.apache.thrift.meta_data.FieldMetaData("os", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", 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(getImageData_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageData_args.class, metaDataMap); } - public getImageData_result() { + public updateImageData_args() { } - public getImageData_result( - Map success) + public updateImageData_args( + String name, + String newName, + String desc, + String image_path, + boolean license, + boolean internet, + long ram, + long cpu, + String id, + String version, + boolean isTemplate, + long filesize, + long shareMode, + String os, + String token) { this(); - this.success = success; + this.name = name; + this.newName = newName; + this.desc = desc; + this.image_path = image_path; + this.license = license; + setLicenseIsSet(true); + this.internet = internet; + setInternetIsSet(true); + this.ram = ram; + setRamIsSet(true); + this.cpu = cpu; + setCpuIsSet(true); + this.id = id; + this.version = version; + this.isTemplate = isTemplate; + setIsTemplateIsSet(true); + this.filesize = filesize; + setFilesizeIsSet(true); + this.shareMode = shareMode; + setShareModeIsSet(true); + this.os = os; + this.token = token; + } + + /** + * Performs a deep copy on other. + */ + public updateImageData_args(updateImageData_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetName()) { + this.name = other.name; + } + if (other.isSetNewName()) { + this.newName = other.newName; + } + if (other.isSetDesc()) { + this.desc = other.desc; + } + if (other.isSetImage_path()) { + this.image_path = other.image_path; + } + this.license = other.license; + this.internet = other.internet; + this.ram = other.ram; + this.cpu = other.cpu; + if (other.isSetId()) { + this.id = other.id; + } + if (other.isSetVersion()) { + this.version = other.version; + } + this.isTemplate = other.isTemplate; + this.filesize = other.filesize; + this.shareMode = other.shareMode; + if (other.isSetOs()) { + this.os = other.os; + } + if (other.isSetToken()) { + this.token = other.token; + } + } + + public updateImageData_args deepCopy() { + return new updateImageData_args(this); + } + + @Override + public void clear() { + this.name = null; + this.newName = null; + this.desc = null; + this.image_path = null; + setLicenseIsSet(false); + this.license = false; + setInternetIsSet(false); + this.internet = false; + setRamIsSet(false); + this.ram = 0; + setCpuIsSet(false); + this.cpu = 0; + this.id = null; + this.version = null; + setIsTemplateIsSet(false); + this.isTemplate = false; + setFilesizeIsSet(false); + this.filesize = 0; + setShareModeIsSet(false); + this.shareMode = 0; + this.os = null; + this.token = null; + } + + public String getName() { + return this.name; + } + + public updateImageData_args setName(String name) { + this.name = name; + return this; + } + + public void unsetName() { + this.name = null; + } + + /** Returns true if field name is set (has been assigned a value) and false otherwise */ + public boolean isSetName() { + return this.name != null; } - /** - * Performs a deep copy on other. - */ - public getImageData_result(getImageData_result other) { - if (other.isSetSuccess()) { - Map __this__success = new HashMap(other.success); - this.success = __this__success; + public void setNameIsSet(boolean value) { + if (!value) { + this.name = null; } } - public getImageData_result deepCopy() { - return new getImageData_result(this); + public String getNewName() { + return this.newName; } - @Override - public void clear() { - this.success = null; + public updateImageData_args setNewName(String newName) { + this.newName = newName; + return this; } - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); + public void unsetNewName() { + this.newName = null; } - public void putToSuccess(String key, String val) { - if (this.success == null) { - this.success = new HashMap(); + /** Returns true if field newName is set (has been assigned a value) and false otherwise */ + public boolean isSetNewName() { + return this.newName != null; + } + + public void setNewNameIsSet(boolean value) { + if (!value) { + this.newName = null; } - this.success.put(key, val); } - public Map getSuccess() { - return this.success; + public String getDesc() { + return this.desc; } - public getImageData_result setSuccess(Map success) { - this.success = success; + public updateImageData_args setDesc(String desc) { + this.desc = desc; return this; } - public void unsetSuccess() { - this.success = null; + public void unsetDesc() { + this.desc = null; } - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return this.success != null; + /** Returns true if field desc is set (has been assigned a value) and false otherwise */ + public boolean isSetDesc() { + return this.desc != null; } - public void setSuccessIsSet(boolean value) { + public void setDescIsSet(boolean value) { if (!value) { - this.success = null; + this.desc = null; } } - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((Map)value); - } - break; + public String getImage_path() { + return this.image_path; + } - } + public updateImageData_args setImage_path(String image_path) { + this.image_path = image_path; + return this; } - public Object getFieldValue(_Fields field) { - switch (field) { - case SUCCESS: - return getSuccess(); + public void unsetImage_path() { + this.image_path = null; + } - } - throw new IllegalStateException(); + /** Returns true if field image_path is set (has been assigned a value) and false otherwise */ + public boolean isSetImage_path() { + return this.image_path != null; } - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ - public boolean isSet(_Fields field) { - if (field == null) { - throw new IllegalArgumentException(); + public void setImage_pathIsSet(boolean value) { + if (!value) { + this.image_path = null; } + } - switch (field) { - case SUCCESS: - return isSetSuccess(); - } - throw new IllegalStateException(); + public boolean isLicense() { + return this.license; } - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof getImageData_result) - return this.equals((getImageData_result)that); - return false; + public updateImageData_args setLicense(boolean license) { + this.license = license; + setLicenseIsSet(true); + return this; } - public boolean equals(getImageData_result that) { - if (that == null) - return false; + public void unsetLicense() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LICENSE_ISSET_ID); + } - 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; - } + /** Returns true if field license is set (has been assigned a value) and false otherwise */ + public boolean isSetLicense() { + return EncodingUtils.testBit(__isset_bitfield, __LICENSE_ISSET_ID); + } - return true; + public void setLicenseIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LICENSE_ISSET_ID, value); } - @Override - public int hashCode() { - return 0; + public boolean isInternet() { + return this.internet; } - @Override - public int compareTo(getImageData_result other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } + public updateImageData_args setInternet(boolean internet) { + this.internet = internet; + setInternetIsSet(true); + return this; + } - int lastComparison = 0; + public void unsetInternet() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __INTERNET_ISSET_ID); + } - 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; + /** Returns true if field internet is set (has been assigned a value) and false otherwise */ + public boolean isSetInternet() { + return EncodingUtils.testBit(__isset_bitfield, __INTERNET_ISSET_ID); } - public _Fields fieldForId(int fieldId) { - return _Fields.findByThriftId(fieldId); + public void setInternetIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __INTERNET_ISSET_ID, value); } - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + public long getRam() { + return this.ram; } - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } + public updateImageData_args setRam(long ram) { + this.ram = ram; + setRamIsSet(true); + return this; + } - @Override - public String toString() { - StringBuilder sb = new StringBuilder("getImageData_result("); - boolean first = true; + public void unsetRam() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RAM_ISSET_ID); + } - sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } - first = false; - sb.append(")"); - return sb.toString(); + /** Returns true if field ram is set (has been assigned a value) and false otherwise */ + public boolean isSetRam() { + return EncodingUtils.testBit(__isset_bitfield, __RAM_ISSET_ID); } - public void validate() throws org.apache.thrift.TException { - // check for required fields - // check for sub-struct validity + public void setRamIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RAM_ISSET_ID, value); } - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { - try { - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } + public long getCpu() { + return this.cpu; } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { - try { - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } + public updateImageData_args setCpu(long cpu) { + this.cpu = cpu; + setCpuIsSet(true); + return this; } - private static class getImageData_resultStandardSchemeFactory implements SchemeFactory { - public getImageData_resultStandardScheme getScheme() { - return new getImageData_resultStandardScheme(); - } + public void unsetCpu() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __CPU_ISSET_ID); } - private static class getImageData_resultStandardScheme extends StandardScheme { + /** Returns true if field cpu is set (has been assigned a value) and false otherwise */ + public boolean isSetCpu() { + return EncodingUtils.testBit(__isset_bitfield, __CPU_ISSET_ID); + } - public void read(org.apache.thrift.protocol.TProtocol iprot, getImageData_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.MAP) { - { - org.apache.thrift.protocol.TMap _map116 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map116.size); - for (int _i117 = 0; _i117 < _map116.size; ++_i117) - { - String _key118; - String _val119; - _key118 = iprot.readString(); - _val119 = iprot.readString(); - struct.success.put(_key118, _val119); - } - iprot.readMapEnd(); - } - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + public void setCpuIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CPU_ISSET_ID, value); + } - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); - } + public String getId() { + return this.id; + } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImageData_result struct) throws org.apache.thrift.TException { - struct.validate(); + public updateImageData_args setId(String id) { + this.id = id; + return this; + } - oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (Map.Entry _iter120 : struct.success.entrySet()) - { - oprot.writeString(_iter120.getKey()); - oprot.writeString(_iter120.getValue()); - } - oprot.writeMapEnd(); - } - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } + public void unsetId() { + this.id = null; + } + /** Returns true if field id is set (has been assigned a value) and false otherwise */ + public boolean isSetId() { + return this.id != null; } - private static class getImageData_resultTupleSchemeFactory implements SchemeFactory { - public getImageData_resultTupleScheme getScheme() { - return new getImageData_resultTupleScheme(); + public void setIdIsSet(boolean value) { + if (!value) { + this.id = null; } } - private static class getImageData_resultTupleScheme extends TupleScheme { + public String getVersion() { + return this.version; + } - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImageData_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 (Map.Entry _iter121 : struct.success.entrySet()) - { - oprot.writeString(_iter121.getKey()); - oprot.writeString(_iter121.getValue()); - } - } - } - } + public updateImageData_args setVersion(String version) { + this.version = version; + return this; + } - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImageData_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TMap _map122 = 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*_map122.size); - for (int _i123 = 0; _i123 < _map122.size; ++_i123) - { - String _key124; - String _val125; - _key124 = iprot.readString(); - _val125 = iprot.readString(); - struct.success.put(_key124, _val125); - } - } - struct.setSuccessIsSet(true); - } - } + public void unsetVersion() { + this.version = null; } - } + /** Returns true if field version is set (has been assigned a value) and false otherwise */ + public boolean isSetVersion() { + return this.version != null; + } - public static class getLectureData_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLectureData_args"); + public void setVersionIsSet(boolean value) { + if (!value) { + this.version = null; + } + } - private static final org.apache.thrift.protocol.TField LECTUREID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureid", org.apache.thrift.protocol.TType.STRING, (short)1); + public boolean isIsTemplate() { + return this.isTemplate; + } - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getLectureData_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLectureData_argsTupleSchemeFactory()); + public updateImageData_args setIsTemplate(boolean isTemplate) { + this.isTemplate = isTemplate; + setIsTemplateIsSet(true); + return this; } - public String lectureid; // required + public void unsetIsTemplate() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISTEMPLATE_ISSET_ID); + } - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements org.apache.thrift.TFieldIdEnum { - LECTUREID((short)1, "lectureid"); + /** Returns true if field isTemplate is set (has been assigned a value) and false otherwise */ + public boolean isSetIsTemplate() { + return EncodingUtils.testBit(__isset_bitfield, __ISTEMPLATE_ISSET_ID); + } - private static final Map byName = new HashMap(); + public void setIsTemplateIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISTEMPLATE_ISSET_ID, value); + } - static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { - byName.put(field.getFieldName(), field); - } - } + public long getFilesize() { + return this.filesize; + } - /** - * Find the _Fields constant that matches fieldId, or null if its not found. - */ - public static _Fields findByThriftId(int fieldId) { - switch(fieldId) { - case 1: // LECTUREID - return LECTUREID; - default: - return null; - } - } + public updateImageData_args setFilesize(long filesize) { + this.filesize = filesize; + setFilesizeIsSet(true); + return this; + } - /** - * Find the _Fields constant that matches fieldId, throwing an exception - * if it is not found. - */ - public static _Fields findByThriftIdOrThrow(int fieldId) { - _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); - return fields; - } + public void unsetFilesize() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FILESIZE_ISSET_ID); + } - /** - * Find the _Fields constant that matches name, or null if its not found. - */ - public static _Fields findByName(String name) { - return byName.get(name); - } + /** Returns true if field filesize is set (has been assigned a value) and false otherwise */ + public boolean isSetFilesize() { + return EncodingUtils.testBit(__isset_bitfield, __FILESIZE_ISSET_ID); + } - private final short _thriftId; - private final String _fieldName; + public void setFilesizeIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FILESIZE_ISSET_ID, value); + } - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } + public long getShareMode() { + return this.shareMode; + } - public short getThriftFieldId() { - return _thriftId; - } + public updateImageData_args setShareMode(long shareMode) { + this.shareMode = shareMode; + setShareModeIsSet(true); + return this; + } - public String getFieldName() { - return _fieldName; - } + public void unsetShareMode() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SHAREMODE_ISSET_ID); } - // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.LECTUREID, new org.apache.thrift.meta_data.FieldMetaData("lectureid", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureData_args.class, metaDataMap); + /** Returns true if field shareMode is set (has been assigned a value) and false otherwise */ + public boolean isSetShareMode() { + return EncodingUtils.testBit(__isset_bitfield, __SHAREMODE_ISSET_ID); } - public getLectureData_args() { + public void setShareModeIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SHAREMODE_ISSET_ID, value); } - public getLectureData_args( - String lectureid) - { - this(); - this.lectureid = lectureid; + public String getOs() { + return this.os; } - /** - * Performs a deep copy on other. - */ - public getLectureData_args(getLectureData_args other) { - if (other.isSetLectureid()) { - this.lectureid = other.lectureid; - } + public updateImageData_args setOs(String os) { + this.os = os; + return this; } - public getLectureData_args deepCopy() { - return new getLectureData_args(this); + public void unsetOs() { + this.os = null; + } + + /** Returns true if field os is set (has been assigned a value) and false otherwise */ + public boolean isSetOs() { + return this.os != null; } - @Override - public void clear() { - this.lectureid = null; + public void setOsIsSet(boolean value) { + if (!value) { + this.os = null; + } } - public String getLectureid() { - return this.lectureid; + public String getToken() { + return this.token; } - public getLectureData_args setLectureid(String lectureid) { - this.lectureid = lectureid; + public updateImageData_args setToken(String token) { + this.token = token; return this; } - public void unsetLectureid() { - this.lectureid = null; + public void unsetToken() { + this.token = null; } - /** Returns true if field lectureid is set (has been assigned a value) and false otherwise */ - public boolean isSetLectureid() { - return this.lectureid != null; + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; } - public void setLectureidIsSet(boolean value) { + public void setTokenIsSet(boolean value) { if (!value) { - this.lectureid = null; + this.token = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case LECTUREID: + case NAME: if (value == null) { - unsetLectureid(); + unsetName(); } else { - setLectureid((String)value); + setName((String)value); + } + break; + + case NEW_NAME: + if (value == null) { + unsetNewName(); + } else { + setNewName((String)value); + } + break; + + case DESC: + if (value == null) { + unsetDesc(); + } else { + setDesc((String)value); + } + break; + + case IMAGE_PATH: + if (value == null) { + unsetImage_path(); + } else { + setImage_path((String)value); + } + break; + + case LICENSE: + if (value == null) { + unsetLicense(); + } else { + setLicense((Boolean)value); + } + break; + + case INTERNET: + if (value == null) { + unsetInternet(); + } else { + setInternet((Boolean)value); + } + break; + + case RAM: + if (value == null) { + unsetRam(); + } else { + setRam((Long)value); + } + break; + + case CPU: + if (value == null) { + unsetCpu(); + } else { + setCpu((Long)value); + } + break; + + case ID: + if (value == null) { + unsetId(); + } else { + setId((String)value); + } + break; + + case VERSION: + if (value == null) { + unsetVersion(); + } else { + setVersion((String)value); + } + break; + + case IS_TEMPLATE: + if (value == null) { + unsetIsTemplate(); + } else { + setIsTemplate((Boolean)value); + } + break; + + case FILESIZE: + if (value == null) { + unsetFilesize(); + } else { + setFilesize((Long)value); + } + break; + + case SHARE_MODE: + if (value == null) { + unsetShareMode(); + } else { + setShareMode((Long)value); + } + break; + + case OS: + if (value == null) { + unsetOs(); + } else { + setOs((String)value); + } + break; + + case TOKEN: + if (value == null) { + unsetToken(); + } else { + setToken((String)value); } break; @@ -27773,8 +31257,50 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case LECTUREID: - return getLectureid(); + case NAME: + return getName(); + + case NEW_NAME: + return getNewName(); + + case DESC: + return getDesc(); + + case IMAGE_PATH: + return getImage_path(); + + case LICENSE: + return Boolean.valueOf(isLicense()); + + case INTERNET: + return Boolean.valueOf(isInternet()); + + case RAM: + return Long.valueOf(getRam()); + + case CPU: + return Long.valueOf(getCpu()); + + case ID: + return getId(); + + case VERSION: + return getVersion(); + + case IS_TEMPLATE: + return Boolean.valueOf(isIsTemplate()); + + case FILESIZE: + return Long.valueOf(getFilesize()); + + case SHARE_MODE: + return Long.valueOf(getShareMode()); + + case OS: + return getOs(); + + case TOKEN: + return getToken(); } throw new IllegalStateException(); @@ -27787,8 +31313,36 @@ public class Server { } switch (field) { - case LECTUREID: - return isSetLectureid(); + case NAME: + return isSetName(); + case NEW_NAME: + return isSetNewName(); + case DESC: + return isSetDesc(); + case IMAGE_PATH: + return isSetImage_path(); + case LICENSE: + return isSetLicense(); + case INTERNET: + return isSetInternet(); + case RAM: + return isSetRam(); + case CPU: + return isSetCpu(); + case ID: + return isSetId(); + case VERSION: + return isSetVersion(); + case IS_TEMPLATE: + return isSetIsTemplate(); + case FILESIZE: + return isSetFilesize(); + case SHARE_MODE: + return isSetShareMode(); + case OS: + return isSetOs(); + case TOKEN: + return isSetToken(); } throw new IllegalStateException(); } @@ -27797,21 +31351,147 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getLectureData_args) - return this.equals((getLectureData_args)that); + if (that instanceof updateImageData_args) + return this.equals((updateImageData_args)that); return false; } - public boolean equals(getLectureData_args that) { + public boolean equals(updateImageData_args that) { if (that == null) return false; - boolean this_present_lectureid = true && this.isSetLectureid(); - boolean that_present_lectureid = true && that.isSetLectureid(); - if (this_present_lectureid || that_present_lectureid) { - if (!(this_present_lectureid && that_present_lectureid)) + boolean this_present_name = true && this.isSetName(); + boolean that_present_name = true && that.isSetName(); + if (this_present_name || that_present_name) { + if (!(this_present_name && that_present_name)) return false; - if (!this.lectureid.equals(that.lectureid)) + if (!this.name.equals(that.name)) + return false; + } + + boolean this_present_newName = true && this.isSetNewName(); + boolean that_present_newName = true && that.isSetNewName(); + if (this_present_newName || that_present_newName) { + if (!(this_present_newName && that_present_newName)) + return false; + if (!this.newName.equals(that.newName)) + return false; + } + + boolean this_present_desc = true && this.isSetDesc(); + boolean that_present_desc = true && that.isSetDesc(); + if (this_present_desc || that_present_desc) { + if (!(this_present_desc && that_present_desc)) + return false; + if (!this.desc.equals(that.desc)) + return false; + } + + boolean this_present_image_path = true && this.isSetImage_path(); + boolean that_present_image_path = true && that.isSetImage_path(); + if (this_present_image_path || that_present_image_path) { + if (!(this_present_image_path && that_present_image_path)) + return false; + if (!this.image_path.equals(that.image_path)) + return false; + } + + boolean this_present_license = true; + boolean that_present_license = true; + if (this_present_license || that_present_license) { + if (!(this_present_license && that_present_license)) + return false; + if (this.license != that.license) + return false; + } + + boolean this_present_internet = true; + boolean that_present_internet = true; + if (this_present_internet || that_present_internet) { + if (!(this_present_internet && that_present_internet)) + return false; + if (this.internet != that.internet) + return false; + } + + boolean this_present_ram = true; + boolean that_present_ram = true; + if (this_present_ram || that_present_ram) { + if (!(this_present_ram && that_present_ram)) + return false; + if (this.ram != that.ram) + return false; + } + + boolean this_present_cpu = true; + boolean that_present_cpu = true; + if (this_present_cpu || that_present_cpu) { + if (!(this_present_cpu && that_present_cpu)) + return false; + if (this.cpu != that.cpu) + return false; + } + + boolean this_present_id = true && this.isSetId(); + boolean that_present_id = true && that.isSetId(); + if (this_present_id || that_present_id) { + if (!(this_present_id && that_present_id)) + return false; + if (!this.id.equals(that.id)) + return false; + } + + boolean this_present_version = true && this.isSetVersion(); + boolean that_present_version = true && that.isSetVersion(); + if (this_present_version || that_present_version) { + if (!(this_present_version && that_present_version)) + return false; + if (!this.version.equals(that.version)) + return false; + } + + boolean this_present_isTemplate = true; + boolean that_present_isTemplate = true; + if (this_present_isTemplate || that_present_isTemplate) { + if (!(this_present_isTemplate && that_present_isTemplate)) + return false; + if (this.isTemplate != that.isTemplate) + return false; + } + + boolean this_present_filesize = true; + boolean that_present_filesize = true; + if (this_present_filesize || that_present_filesize) { + if (!(this_present_filesize && that_present_filesize)) + return false; + if (this.filesize != that.filesize) + return false; + } + + boolean this_present_shareMode = true; + boolean that_present_shareMode = true; + if (this_present_shareMode || that_present_shareMode) { + if (!(this_present_shareMode && that_present_shareMode)) + return false; + if (this.shareMode != that.shareMode) + return false; + } + + boolean this_present_os = true && this.isSetOs(); + boolean that_present_os = true && that.isSetOs(); + if (this_present_os || that_present_os) { + if (!(this_present_os && that_present_os)) + return false; + if (!this.os.equals(that.os)) + return false; + } + + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) + return false; + if (!this.token.equals(that.token)) return false; } @@ -27824,19 +31504,159 @@ public class Server { } @Override - public int compareTo(getLectureData_args other) { + public int compareTo(updateImageData_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } - - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetLectureid()).compareTo(other.isSetLectureid()); + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetNewName()).compareTo(other.isSetNewName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetNewName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newName, other.newName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDesc()).compareTo(other.isSetDesc()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDesc()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.desc, other.desc); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetImage_path()).compareTo(other.isSetImage_path()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetImage_path()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.image_path, other.image_path); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetLicense()).compareTo(other.isSetLicense()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetLicense()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.license, other.license); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetInternet()).compareTo(other.isSetInternet()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetInternet()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.internet, other.internet); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetRam()).compareTo(other.isSetRam()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetRam()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ram, other.ram); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetCpu()).compareTo(other.isSetCpu()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetCpu()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cpu, other.cpu); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetVersion()).compareTo(other.isSetVersion()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetVersion()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.version, other.version); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetIsTemplate()).compareTo(other.isSetIsTemplate()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIsTemplate()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isTemplate, other.isTemplate); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetFilesize()).compareTo(other.isSetFilesize()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFilesize()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filesize, other.filesize); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetShareMode()).compareTo(other.isSetShareMode()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetShareMode()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shareMode, other.shareMode); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetOs()).compareTo(other.isSetOs()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetOs()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.os, other.os); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); if (lastComparison != 0) { return lastComparison; } - if (isSetLectureid()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lectureid, other.lectureid); + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) { return lastComparison; } @@ -27858,14 +31678,98 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLectureData_args("); + StringBuilder sb = new StringBuilder("updateImageData_args("); boolean first = true; - sb.append("lectureid:"); - if (this.lectureid == null) { + sb.append("name:"); + if (this.name == null) { sb.append("null"); } else { - sb.append(this.lectureid); + sb.append(this.name); + } + first = false; + if (!first) sb.append(", "); + sb.append("newName:"); + if (this.newName == null) { + sb.append("null"); + } else { + sb.append(this.newName); + } + first = false; + if (!first) sb.append(", "); + sb.append("desc:"); + if (this.desc == null) { + sb.append("null"); + } else { + sb.append(this.desc); + } + first = false; + if (!first) sb.append(", "); + sb.append("image_path:"); + if (this.image_path == null) { + sb.append("null"); + } else { + sb.append(this.image_path); + } + first = false; + if (!first) sb.append(", "); + sb.append("license:"); + sb.append(this.license); + first = false; + if (!first) sb.append(", "); + sb.append("internet:"); + sb.append(this.internet); + first = false; + if (!first) sb.append(", "); + sb.append("ram:"); + sb.append(this.ram); + first = false; + if (!first) sb.append(", "); + sb.append("cpu:"); + sb.append(this.cpu); + first = false; + if (!first) sb.append(", "); + sb.append("id:"); + if (this.id == null) { + sb.append("null"); + } else { + sb.append(this.id); + } + first = false; + if (!first) sb.append(", "); + sb.append("version:"); + if (this.version == null) { + sb.append("null"); + } else { + sb.append(this.version); + } + first = false; + if (!first) sb.append(", "); + sb.append("isTemplate:"); + sb.append(this.isTemplate); + first = false; + if (!first) sb.append(", "); + sb.append("filesize:"); + sb.append(this.filesize); + first = false; + if (!first) sb.append(", "); + sb.append("shareMode:"); + sb.append(this.shareMode); + first = false; + if (!first) sb.append(", "); + sb.append("os:"); + if (this.os == null) { + sb.append("null"); + } else { + sb.append(this.os); + } + first = false; + if (!first) sb.append(", "); + sb.append("token:"); + if (this.token == null) { + sb.append("null"); + } else { + sb.append(this.token); } first = false; sb.append(")"); @@ -27887,21 +31791,23 @@ public class Server { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class getLectureData_argsStandardSchemeFactory implements SchemeFactory { - public getLectureData_argsStandardScheme getScheme() { - return new getLectureData_argsStandardScheme(); + private static class updateImageData_argsStandardSchemeFactory implements SchemeFactory { + public updateImageData_argsStandardScheme getScheme() { + return new updateImageData_argsStandardScheme(); } } - private static class getLectureData_argsStandardScheme extends StandardScheme { + private static class updateImageData_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureData_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageData_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -27911,10 +31817,122 @@ public class Server { break; } switch (schemeField.id) { - case 1: // LECTUREID + case 1: // NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.lectureid = iprot.readString(); - struct.setLectureidIsSet(true); + struct.name = iprot.readString(); + struct.setNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // NEW_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.newName = iprot.readString(); + struct.setNewNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // DESC + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.desc = iprot.readString(); + struct.setDescIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // IMAGE_PATH + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.image_path = iprot.readString(); + struct.setImage_pathIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // LICENSE + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.license = iprot.readBool(); + struct.setLicenseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // INTERNET + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.internet = iprot.readBool(); + struct.setInternetIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 7: // RAM + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.ram = iprot.readI64(); + struct.setRamIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 8: // CPU + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.cpu = iprot.readI64(); + struct.setCpuIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 9: // ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.id = iprot.readString(); + struct.setIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 10: // VERSION + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.version = iprot.readString(); + struct.setVersionIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 11: // IS_TEMPLATE + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.isTemplate = iprot.readBool(); + struct.setIsTemplateIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 12: // FILESIZE + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.filesize = iprot.readI64(); + struct.setFilesizeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 13: // SHARE_MODE + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.shareMode = iprot.readI64(); + struct.setShareModeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 14: // OS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.os = iprot.readString(); + struct.setOsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 15: // TOKEN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -27930,13 +31948,69 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureData_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, updateImageData_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.lectureid != null) { - oprot.writeFieldBegin(LECTUREID_FIELD_DESC); - oprot.writeString(struct.lectureid); + if (struct.name != null) { + oprot.writeFieldBegin(NAME_FIELD_DESC); + oprot.writeString(struct.name); + oprot.writeFieldEnd(); + } + if (struct.newName != null) { + oprot.writeFieldBegin(NEW_NAME_FIELD_DESC); + oprot.writeString(struct.newName); + oprot.writeFieldEnd(); + } + if (struct.desc != null) { + oprot.writeFieldBegin(DESC_FIELD_DESC); + oprot.writeString(struct.desc); + oprot.writeFieldEnd(); + } + if (struct.image_path != null) { + oprot.writeFieldBegin(IMAGE_PATH_FIELD_DESC); + oprot.writeString(struct.image_path); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(LICENSE_FIELD_DESC); + oprot.writeBool(struct.license); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(INTERNET_FIELD_DESC); + oprot.writeBool(struct.internet); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(RAM_FIELD_DESC); + oprot.writeI64(struct.ram); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(CPU_FIELD_DESC); + oprot.writeI64(struct.cpu); + oprot.writeFieldEnd(); + if (struct.id != null) { + oprot.writeFieldBegin(ID_FIELD_DESC); + oprot.writeString(struct.id); + oprot.writeFieldEnd(); + } + if (struct.version != null) { + oprot.writeFieldBegin(VERSION_FIELD_DESC); + oprot.writeString(struct.version); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(IS_TEMPLATE_FIELD_DESC); + oprot.writeBool(struct.isTemplate); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(FILESIZE_FIELD_DESC); + oprot.writeI64(struct.filesize); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(SHARE_MODE_FIELD_DESC); + oprot.writeI64(struct.shareMode); + oprot.writeFieldEnd(); + if (struct.os != null) { + oprot.writeFieldBegin(OS_FIELD_DESC); + oprot.writeString(struct.os); + oprot.writeFieldEnd(); + } + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -27945,52 +32019,192 @@ public class Server { } - private static class getLectureData_argsTupleSchemeFactory implements SchemeFactory { - public getLectureData_argsTupleScheme getScheme() { - return new getLectureData_argsTupleScheme(); + private static class updateImageData_argsTupleSchemeFactory implements SchemeFactory { + public updateImageData_argsTupleScheme getScheme() { + return new updateImageData_argsTupleScheme(); } } - private static class getLectureData_argsTupleScheme extends TupleScheme { + private static class updateImageData_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getLectureData_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, updateImageData_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetLectureid()) { + if (struct.isSetName()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetLectureid()) { - oprot.writeString(struct.lectureid); + if (struct.isSetNewName()) { + optionals.set(1); + } + if (struct.isSetDesc()) { + optionals.set(2); + } + if (struct.isSetImage_path()) { + optionals.set(3); + } + if (struct.isSetLicense()) { + optionals.set(4); + } + if (struct.isSetInternet()) { + optionals.set(5); + } + if (struct.isSetRam()) { + optionals.set(6); + } + if (struct.isSetCpu()) { + optionals.set(7); + } + if (struct.isSetId()) { + optionals.set(8); + } + if (struct.isSetVersion()) { + optionals.set(9); + } + if (struct.isSetIsTemplate()) { + optionals.set(10); + } + if (struct.isSetFilesize()) { + optionals.set(11); + } + if (struct.isSetShareMode()) { + optionals.set(12); + } + if (struct.isSetOs()) { + optionals.set(13); + } + if (struct.isSetToken()) { + optionals.set(14); + } + oprot.writeBitSet(optionals, 15); + if (struct.isSetName()) { + oprot.writeString(struct.name); + } + if (struct.isSetNewName()) { + oprot.writeString(struct.newName); + } + if (struct.isSetDesc()) { + oprot.writeString(struct.desc); + } + if (struct.isSetImage_path()) { + oprot.writeString(struct.image_path); + } + if (struct.isSetLicense()) { + oprot.writeBool(struct.license); + } + if (struct.isSetInternet()) { + oprot.writeBool(struct.internet); + } + if (struct.isSetRam()) { + oprot.writeI64(struct.ram); + } + if (struct.isSetCpu()) { + oprot.writeI64(struct.cpu); + } + if (struct.isSetId()) { + oprot.writeString(struct.id); + } + if (struct.isSetVersion()) { + oprot.writeString(struct.version); + } + if (struct.isSetIsTemplate()) { + oprot.writeBool(struct.isTemplate); + } + if (struct.isSetFilesize()) { + oprot.writeI64(struct.filesize); + } + if (struct.isSetShareMode()) { + oprot.writeI64(struct.shareMode); + } + if (struct.isSetOs()) { + oprot.writeString(struct.os); + } + if (struct.isSetToken()) { + oprot.writeString(struct.token); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getLectureData_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, updateImageData_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(15); if (incoming.get(0)) { - struct.lectureid = iprot.readString(); - struct.setLectureidIsSet(true); + struct.name = iprot.readString(); + struct.setNameIsSet(true); + } + if (incoming.get(1)) { + struct.newName = iprot.readString(); + struct.setNewNameIsSet(true); + } + if (incoming.get(2)) { + struct.desc = iprot.readString(); + struct.setDescIsSet(true); + } + if (incoming.get(3)) { + struct.image_path = iprot.readString(); + struct.setImage_pathIsSet(true); + } + if (incoming.get(4)) { + struct.license = iprot.readBool(); + struct.setLicenseIsSet(true); + } + if (incoming.get(5)) { + struct.internet = iprot.readBool(); + struct.setInternetIsSet(true); + } + if (incoming.get(6)) { + struct.ram = iprot.readI64(); + struct.setRamIsSet(true); + } + if (incoming.get(7)) { + struct.cpu = iprot.readI64(); + struct.setCpuIsSet(true); + } + if (incoming.get(8)) { + struct.id = iprot.readString(); + struct.setIdIsSet(true); + } + if (incoming.get(9)) { + struct.version = iprot.readString(); + struct.setVersionIsSet(true); + } + if (incoming.get(10)) { + struct.isTemplate = iprot.readBool(); + struct.setIsTemplateIsSet(true); + } + if (incoming.get(11)) { + struct.filesize = iprot.readI64(); + struct.setFilesizeIsSet(true); + } + if (incoming.get(12)) { + struct.shareMode = iprot.readI64(); + struct.setShareModeIsSet(true); + } + if (incoming.get(13)) { + struct.os = iprot.readString(); + struct.setOsIsSet(true); + } + if (incoming.get(14)) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } } } } - public static class getLectureData_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLectureData_result"); + public static class updateImageData_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateImageData_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getLectureData_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLectureData_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new updateImageData_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new updateImageData_resultTupleSchemeFactory()); } - public Map success; // required + public boolean success; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -28051,79 +32265,67 @@ public class Server { } // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureData_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageData_result.class, metaDataMap); } - public getLectureData_result() { + public updateImageData_result() { } - public getLectureData_result( - Map success) + public updateImageData_result( + boolean success) { this(); this.success = success; + setSuccessIsSet(true); } /** * Performs a deep copy on other. */ - public getLectureData_result(getLectureData_result other) { - if (other.isSetSuccess()) { - Map __this__success = new HashMap(other.success); - this.success = __this__success; - } + public updateImageData_result(updateImageData_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; } - public getLectureData_result deepCopy() { - return new getLectureData_result(this); + public updateImageData_result deepCopy() { + return new updateImageData_result(this); } @Override public void clear() { - this.success = null; - } - - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public void putToSuccess(String key, String val) { - if (this.success == null) { - this.success = new HashMap(); - } - this.success.put(key, val); + setSuccessIsSet(false); + this.success = false; } - public Map getSuccess() { + public boolean isSuccess() { return this.success; } - public getLectureData_result setSuccess(Map success) { + public updateImageData_result setSuccess(boolean success) { this.success = success; + setSuccessIsSet(true); return this; } public void unsetSuccess() { - this.success = null; + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return this.success != null; + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { @@ -28132,7 +32334,7 @@ public class Server { if (value == null) { unsetSuccess(); } else { - setSuccess((Map)value); + setSuccess((Boolean)value); } break; @@ -28142,7 +32344,7 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return getSuccess(); + return Boolean.valueOf(isSuccess()); } throw new IllegalStateException(); @@ -28165,21 +32367,21 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getLectureData_result) - return this.equals((getLectureData_result)that); + if (that instanceof updateImageData_result) + return this.equals((updateImageData_result)that); return false; } - public boolean equals(getLectureData_result that) { + public boolean equals(updateImageData_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); + boolean this_present_success = true; + boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (!this.success.equals(that.success)) + if (this.success != that.success) return false; } @@ -28192,7 +32394,7 @@ public class Server { } @Override - public int compareTo(getLectureData_result other) { + public int compareTo(updateImageData_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -28226,15 +32428,11 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLectureData_result("); + StringBuilder sb = new StringBuilder("updateImageData_result("); boolean first = true; sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } + sb.append(this.success); first = false; sb.append(")"); return sb.toString(); @@ -28255,21 +32453,23 @@ public class Server { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class getLectureData_resultStandardSchemeFactory implements SchemeFactory { - public getLectureData_resultStandardScheme getScheme() { - return new getLectureData_resultStandardScheme(); + private static class updateImageData_resultStandardSchemeFactory implements SchemeFactory { + public updateImageData_resultStandardScheme getScheme() { + return new updateImageData_resultStandardScheme(); } } - private static class getLectureData_resultStandardScheme extends StandardScheme { + private static class updateImageData_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureData_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageData_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -28280,20 +32480,8 @@ public class Server { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map126 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map126.size); - for (int _i127 = 0; _i127 < _map126.size; ++_i127) - { - String _key128; - String _val129; - _key128 = iprot.readString(); - _val129 = iprot.readString(); - struct.success.put(_key128, _val129); - } - iprot.readMapEnd(); - } + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -28310,21 +32498,13 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureData_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, updateImageData_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { + if (struct.isSetSuccess()) { 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 _iter130 : struct.success.entrySet()) - { - oprot.writeString(_iter130.getKey()); - oprot.writeString(_iter130.getValue()); - } - oprot.writeMapEnd(); - } + oprot.writeBool(struct.success); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -28333,16 +32513,16 @@ public class Server { } - private static class getLectureData_resultTupleSchemeFactory implements SchemeFactory { - public getLectureData_resultTupleScheme getScheme() { - return new getLectureData_resultTupleScheme(); + private static class updateImageData_resultTupleSchemeFactory implements SchemeFactory { + public updateImageData_resultTupleScheme getScheme() { + return new updateImageData_resultTupleScheme(); } } - private static class getLectureData_resultTupleScheme extends TupleScheme { + private static class updateImageData_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getLectureData_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, updateImageData_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -28350,34 +32530,16 @@ public class Server { } oprot.writeBitSet(optionals, 1); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (Map.Entry _iter131 : struct.success.entrySet()) - { - oprot.writeString(_iter131.getKey()); - oprot.writeString(_iter131.getValue()); - } - } + oprot.writeBool(struct.success); } } @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, updateImageData_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TMap _map132 = 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*_map132.size); - for (int _i133 = 0; _i133 < _map132.size; ++_i133) - { - String _key134; - String _val135; - _key134 = iprot.readString(); - _val135 = iprot.readString(); - struct.success.put(_key134, _val135); - } - } + struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } } @@ -28385,61 +32547,28 @@ public class Server { } - public static class updateImageData_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateImageData_args"); + public static class deleteImageData_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteImageData_args"); - private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField NEW_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("newName", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField DESC_FIELD_DESC = new org.apache.thrift.protocol.TField("desc", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final org.apache.thrift.protocol.TField IMAGE_PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("image_path", org.apache.thrift.protocol.TType.STRING, (short)4); - private static final org.apache.thrift.protocol.TField LICENSE_FIELD_DESC = new org.apache.thrift.protocol.TField("license", org.apache.thrift.protocol.TType.BOOL, (short)5); - private static final org.apache.thrift.protocol.TField INTERNET_FIELD_DESC = new org.apache.thrift.protocol.TField("internet", org.apache.thrift.protocol.TType.BOOL, (short)6); - private static final org.apache.thrift.protocol.TField RAM_FIELD_DESC = new org.apache.thrift.protocol.TField("ram", org.apache.thrift.protocol.TType.I64, (short)7); - private static final org.apache.thrift.protocol.TField CPU_FIELD_DESC = new org.apache.thrift.protocol.TField("cpu", org.apache.thrift.protocol.TType.I64, (short)8); - private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.STRING, (short)9); - private static final org.apache.thrift.protocol.TField VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("version", org.apache.thrift.protocol.TType.STRING, (short)10); - private static final org.apache.thrift.protocol.TField IS_TEMPLATE_FIELD_DESC = new org.apache.thrift.protocol.TField("isTemplate", org.apache.thrift.protocol.TType.BOOL, (short)11); - private static final org.apache.thrift.protocol.TField FILESIZE_FIELD_DESC = new org.apache.thrift.protocol.TField("filesize", org.apache.thrift.protocol.TType.I64, (short)12); - private static final org.apache.thrift.protocol.TField SHARE_MODE_FIELD_DESC = new org.apache.thrift.protocol.TField("shareMode", org.apache.thrift.protocol.TType.I64, (short)13); - private static final org.apache.thrift.protocol.TField OS_FIELD_DESC = new org.apache.thrift.protocol.TField("os", org.apache.thrift.protocol.TType.STRING, (short)14); + private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("version", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new updateImageData_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new updateImageData_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new deleteImageData_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteImageData_argsTupleSchemeFactory()); } - public String name; // required - public String newName; // required - public String desc; // required - public String image_path; // required - public boolean license; // required - public boolean internet; // required - public long ram; // required - public long cpu; // required public String id; // required public String version; // required - public boolean isTemplate; // required - public long filesize; // required - public long shareMode; // required - public String os; // required + public String token; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - NAME((short)1, "name"), - NEW_NAME((short)2, "newName"), - DESC((short)3, "desc"), - IMAGE_PATH((short)4, "image_path"), - LICENSE((short)5, "license"), - INTERNET((short)6, "internet"), - RAM((short)7, "ram"), - CPU((short)8, "cpu"), - ID((short)9, "id"), - VERSION((short)10, "version"), - IS_TEMPLATE((short)11, "isTemplate"), - FILESIZE((short)12, "filesize"), - SHARE_MODE((short)13, "shareMode"), - OS((short)14, "os"); + ID((short)1, "id"), + VERSION((short)2, "version"), + TOKEN((short)3, "token"); private static final Map byName = new HashMap(); @@ -28454,34 +32583,12 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // NAME - return NAME; - case 2: // NEW_NAME - return NEW_NAME; - case 3: // DESC - return DESC; - case 4: // IMAGE_PATH - return IMAGE_PATH; - case 5: // LICENSE - return LICENSE; - case 6: // INTERNET - return INTERNET; - case 7: // RAM - return RAM; - case 8: // CPU - return CPU; - case 9: // ID + case 1: // ID return ID; - case 10: // VERSION + case 2: // VERSION return VERSION; - case 11: // IS_TEMPLATE - return IS_TEMPLATE; - case 12: // FILESIZE - return FILESIZE; - case 13: // SHARE_MODE - return SHARE_MODE; - case 14: // OS - return OS; + case 3: // TOKEN + return TOKEN; default: return null; } @@ -28515,356 +32622,71 @@ public class Server { public short getThriftFieldId() { return _thriftId; } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - private static final int __LICENSE_ISSET_ID = 0; - private static final int __INTERNET_ISSET_ID = 1; - private static final int __RAM_ISSET_ID = 2; - private static final int __CPU_ISSET_ID = 3; - private static final int __ISTEMPLATE_ISSET_ID = 4; - private static final int __FILESIZE_ISSET_ID = 5; - private static final int __SHAREMODE_ISSET_ID = 6; - private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.NEW_NAME, new org.apache.thrift.meta_data.FieldMetaData("newName", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.DESC, new org.apache.thrift.meta_data.FieldMetaData("desc", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.IMAGE_PATH, new org.apache.thrift.meta_data.FieldMetaData("image_path", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.LICENSE, new org.apache.thrift.meta_data.FieldMetaData("license", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - tmpMap.put(_Fields.INTERNET, new org.apache.thrift.meta_data.FieldMetaData("internet", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - tmpMap.put(_Fields.RAM, new org.apache.thrift.meta_data.FieldMetaData("ram", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "int"))); - tmpMap.put(_Fields.CPU, new org.apache.thrift.meta_data.FieldMetaData("cpu", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "int"))); - tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.VERSION, new org.apache.thrift.meta_data.FieldMetaData("version", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.IS_TEMPLATE, new org.apache.thrift.meta_data.FieldMetaData("isTemplate", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - tmpMap.put(_Fields.FILESIZE, new org.apache.thrift.meta_data.FieldMetaData("filesize", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); - tmpMap.put(_Fields.SHARE_MODE, new org.apache.thrift.meta_data.FieldMetaData("shareMode", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "int"))); - tmpMap.put(_Fields.OS, new org.apache.thrift.meta_data.FieldMetaData("os", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageData_args.class, metaDataMap); - } - - public updateImageData_args() { - } - - public updateImageData_args( - String name, - String newName, - String desc, - String image_path, - boolean license, - boolean internet, - long ram, - long cpu, - String id, - String version, - boolean isTemplate, - long filesize, - long shareMode, - String os) - { - this(); - this.name = name; - this.newName = newName; - this.desc = desc; - this.image_path = image_path; - this.license = license; - setLicenseIsSet(true); - this.internet = internet; - setInternetIsSet(true); - this.ram = ram; - setRamIsSet(true); - this.cpu = cpu; - setCpuIsSet(true); - this.id = id; - this.version = version; - this.isTemplate = isTemplate; - setIsTemplateIsSet(true); - this.filesize = filesize; - setFilesizeIsSet(true); - this.shareMode = shareMode; - setShareModeIsSet(true); - this.os = os; - } - - /** - * Performs a deep copy on other. - */ - public updateImageData_args(updateImageData_args other) { - __isset_bitfield = other.__isset_bitfield; - if (other.isSetName()) { - this.name = other.name; - } - if (other.isSetNewName()) { - this.newName = other.newName; - } - if (other.isSetDesc()) { - this.desc = other.desc; - } - if (other.isSetImage_path()) { - this.image_path = other.image_path; - } - this.license = other.license; - this.internet = other.internet; - this.ram = other.ram; - this.cpu = other.cpu; - if (other.isSetId()) { - this.id = other.id; - } - if (other.isSetVersion()) { - this.version = other.version; - } - this.isTemplate = other.isTemplate; - this.filesize = other.filesize; - this.shareMode = other.shareMode; - if (other.isSetOs()) { - this.os = other.os; - } - } - - public updateImageData_args deepCopy() { - return new updateImageData_args(this); - } - - @Override - public void clear() { - this.name = null; - this.newName = null; - this.desc = null; - this.image_path = null; - setLicenseIsSet(false); - this.license = false; - setInternetIsSet(false); - this.internet = false; - setRamIsSet(false); - this.ram = 0; - setCpuIsSet(false); - this.cpu = 0; - this.id = null; - this.version = null; - setIsTemplateIsSet(false); - this.isTemplate = false; - setFilesizeIsSet(false); - this.filesize = 0; - setShareModeIsSet(false); - this.shareMode = 0; - this.os = null; - } - - public String getName() { - return this.name; - } - - public updateImageData_args setName(String name) { - this.name = name; - return this; - } - - public void unsetName() { - this.name = null; - } - - /** Returns true if field name is set (has been assigned a value) and false otherwise */ - public boolean isSetName() { - return this.name != null; - } - - public void setNameIsSet(boolean value) { - if (!value) { - this.name = null; - } - } - - public String getNewName() { - return this.newName; - } - - public updateImageData_args setNewName(String newName) { - this.newName = newName; - return this; - } - - public void unsetNewName() { - this.newName = null; - } - - /** Returns true if field newName is set (has been assigned a value) and false otherwise */ - public boolean isSetNewName() { - return this.newName != null; - } - - public void setNewNameIsSet(boolean value) { - if (!value) { - this.newName = null; - } - } - - public String getDesc() { - return this.desc; - } - - public updateImageData_args setDesc(String desc) { - this.desc = desc; - return this; - } - - public void unsetDesc() { - this.desc = null; - } - - /** Returns true if field desc is set (has been assigned a value) and false otherwise */ - public boolean isSetDesc() { - return this.desc != null; - } - - public void setDescIsSet(boolean value) { - if (!value) { - this.desc = null; - } - } - - public String getImage_path() { - return this.image_path; - } - - public updateImageData_args setImage_path(String image_path) { - this.image_path = image_path; - return this; - } - - public void unsetImage_path() { - this.image_path = null; - } - - /** Returns true if field image_path is set (has been assigned a value) and false otherwise */ - public boolean isSetImage_path() { - return this.image_path != null; - } - - public void setImage_pathIsSet(boolean value) { - if (!value) { - this.image_path = null; - } - } - - public boolean isLicense() { - return this.license; - } - - public updateImageData_args setLicense(boolean license) { - this.license = license; - setLicenseIsSet(true); - return this; - } - - public void unsetLicense() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LICENSE_ISSET_ID); - } - - /** Returns true if field license is set (has been assigned a value) and false otherwise */ - public boolean isSetLicense() { - return EncodingUtils.testBit(__isset_bitfield, __LICENSE_ISSET_ID); - } - - public void setLicenseIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LICENSE_ISSET_ID, value); - } - - public boolean isInternet() { - return this.internet; - } - - public updateImageData_args setInternet(boolean internet) { - this.internet = internet; - setInternetIsSet(true); - return this; - } - - public void unsetInternet() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __INTERNET_ISSET_ID); - } - - /** Returns true if field internet is set (has been assigned a value) and false otherwise */ - public boolean isSetInternet() { - return EncodingUtils.testBit(__isset_bitfield, __INTERNET_ISSET_ID); - } - - public void setInternetIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __INTERNET_ISSET_ID, value); - } - - public long getRam() { - return this.ram; - } - - public updateImageData_args setRam(long ram) { - this.ram = ram; - setRamIsSet(true); - return this; - } - - public void unsetRam() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RAM_ISSET_ID); - } - - /** Returns true if field ram is set (has been assigned a value) and false otherwise */ - public boolean isSetRam() { - return EncodingUtils.testBit(__isset_bitfield, __RAM_ISSET_ID); + + public String getFieldName() { + return _fieldName; + } } - public void setRamIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RAM_ISSET_ID, value); + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.VERSION, new org.apache.thrift.meta_data.FieldMetaData("version", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageData_args.class, metaDataMap); } - public long getCpu() { - return this.cpu; + public deleteImageData_args() { } - public updateImageData_args setCpu(long cpu) { - this.cpu = cpu; - setCpuIsSet(true); - return this; + public deleteImageData_args( + String id, + String version, + String token) + { + this(); + this.id = id; + this.version = version; + this.token = token; } - public void unsetCpu() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __CPU_ISSET_ID); + /** + * Performs a deep copy on other. + */ + public deleteImageData_args(deleteImageData_args other) { + if (other.isSetId()) { + this.id = other.id; + } + if (other.isSetVersion()) { + this.version = other.version; + } + if (other.isSetToken()) { + this.token = other.token; + } } - /** Returns true if field cpu is set (has been assigned a value) and false otherwise */ - public boolean isSetCpu() { - return EncodingUtils.testBit(__isset_bitfield, __CPU_ISSET_ID); + public deleteImageData_args deepCopy() { + return new deleteImageData_args(this); } - public void setCpuIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CPU_ISSET_ID, value); + @Override + public void clear() { + this.id = null; + this.version = null; + this.token = null; } public String getId() { return this.id; } - public updateImageData_args setId(String id) { + public deleteImageData_args setId(String id) { this.id = id; return this; } @@ -28888,7 +32710,7 @@ public class Server { return this.version; } - public updateImageData_args setVersion(String version) { + public deleteImageData_args setVersion(String version) { this.version = version; return this; } @@ -28908,165 +32730,32 @@ public class Server { } } - public boolean isIsTemplate() { - return this.isTemplate; - } - - public updateImageData_args setIsTemplate(boolean isTemplate) { - this.isTemplate = isTemplate; - setIsTemplateIsSet(true); - return this; - } - - public void unsetIsTemplate() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISTEMPLATE_ISSET_ID); - } - - /** Returns true if field isTemplate is set (has been assigned a value) and false otherwise */ - public boolean isSetIsTemplate() { - return EncodingUtils.testBit(__isset_bitfield, __ISTEMPLATE_ISSET_ID); - } - - public void setIsTemplateIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISTEMPLATE_ISSET_ID, value); - } - - public long getFilesize() { - return this.filesize; - } - - public updateImageData_args setFilesize(long filesize) { - this.filesize = filesize; - setFilesizeIsSet(true); - return this; - } - - public void unsetFilesize() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FILESIZE_ISSET_ID); - } - - /** Returns true if field filesize is set (has been assigned a value) and false otherwise */ - public boolean isSetFilesize() { - return EncodingUtils.testBit(__isset_bitfield, __FILESIZE_ISSET_ID); - } - - public void setFilesizeIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FILESIZE_ISSET_ID, value); - } - - public long getShareMode() { - return this.shareMode; - } - - public updateImageData_args setShareMode(long shareMode) { - this.shareMode = shareMode; - setShareModeIsSet(true); - return this; - } - - public void unsetShareMode() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SHAREMODE_ISSET_ID); - } - - /** Returns true if field shareMode is set (has been assigned a value) and false otherwise */ - public boolean isSetShareMode() { - return EncodingUtils.testBit(__isset_bitfield, __SHAREMODE_ISSET_ID); - } - - public void setShareModeIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SHAREMODE_ISSET_ID, value); - } - - public String getOs() { - return this.os; + public String getToken() { + return this.token; } - public updateImageData_args setOs(String os) { - this.os = os; + public deleteImageData_args setToken(String token) { + this.token = token; return this; } - public void unsetOs() { - this.os = null; + public void unsetToken() { + this.token = null; } - /** Returns true if field os is set (has been assigned a value) and false otherwise */ - public boolean isSetOs() { - return this.os != null; + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; } - public void setOsIsSet(boolean value) { + public void setTokenIsSet(boolean value) { if (!value) { - this.os = null; + this.token = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case NAME: - if (value == null) { - unsetName(); - } else { - setName((String)value); - } - break; - - case NEW_NAME: - if (value == null) { - unsetNewName(); - } else { - setNewName((String)value); - } - break; - - case DESC: - if (value == null) { - unsetDesc(); - } else { - setDesc((String)value); - } - break; - - case IMAGE_PATH: - if (value == null) { - unsetImage_path(); - } else { - setImage_path((String)value); - } - break; - - case LICENSE: - if (value == null) { - unsetLicense(); - } else { - setLicense((Boolean)value); - } - break; - - case INTERNET: - if (value == null) { - unsetInternet(); - } else { - setInternet((Boolean)value); - } - break; - - case RAM: - if (value == null) { - unsetRam(); - } else { - setRam((Long)value); - } - break; - - case CPU: - if (value == null) { - unsetCpu(); - } else { - setCpu((Long)value); - } - break; - case ID: if (value == null) { unsetId(); @@ -29083,35 +32772,11 @@ public class Server { } break; - case IS_TEMPLATE: - if (value == null) { - unsetIsTemplate(); - } else { - setIsTemplate((Boolean)value); - } - break; - - case FILESIZE: - if (value == null) { - unsetFilesize(); - } else { - setFilesize((Long)value); - } - break; - - case SHARE_MODE: - if (value == null) { - unsetShareMode(); - } else { - setShareMode((Long)value); - } - break; - - case OS: + case TOKEN: if (value == null) { - unsetOs(); + unsetToken(); } else { - setOs((String)value); + setToken((String)value); } break; @@ -29120,47 +32785,14 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case NAME: - return getName(); - - case NEW_NAME: - return getNewName(); - - case DESC: - return getDesc(); - - case IMAGE_PATH: - return getImage_path(); - - case LICENSE: - return Boolean.valueOf(isLicense()); - - case INTERNET: - return Boolean.valueOf(isInternet()); - - case RAM: - return Long.valueOf(getRam()); - - case CPU: - return Long.valueOf(getCpu()); - case ID: return getId(); case VERSION: return getVersion(); - case IS_TEMPLATE: - return Boolean.valueOf(isIsTemplate()); - - case FILESIZE: - return Long.valueOf(getFilesize()); - - case SHARE_MODE: - return Long.valueOf(getShareMode()); - - case OS: - return getOs(); + case TOKEN: + return getToken(); } throw new IllegalStateException(); @@ -29173,34 +32805,12 @@ public class Server { } switch (field) { - case NAME: - return isSetName(); - case NEW_NAME: - return isSetNewName(); - case DESC: - return isSetDesc(); - case IMAGE_PATH: - return isSetImage_path(); - case LICENSE: - return isSetLicense(); - case INTERNET: - return isSetInternet(); - case RAM: - return isSetRam(); - case CPU: - return isSetCpu(); case ID: return isSetId(); case VERSION: return isSetVersion(); - case IS_TEMPLATE: - return isSetIsTemplate(); - case FILESIZE: - return isSetFilesize(); - case SHARE_MODE: - return isSetShareMode(); - case OS: - return isSetOs(); + case TOKEN: + return isSetToken(); } throw new IllegalStateException(); } @@ -29209,87 +32819,15 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof updateImageData_args) - return this.equals((updateImageData_args)that); + if (that instanceof deleteImageData_args) + return this.equals((deleteImageData_args)that); return false; } - public boolean equals(updateImageData_args that) { + public boolean equals(deleteImageData_args that) { if (that == null) return false; - boolean this_present_name = true && this.isSetName(); - boolean that_present_name = true && that.isSetName(); - if (this_present_name || that_present_name) { - if (!(this_present_name && that_present_name)) - return false; - if (!this.name.equals(that.name)) - return false; - } - - boolean this_present_newName = true && this.isSetNewName(); - boolean that_present_newName = true && that.isSetNewName(); - if (this_present_newName || that_present_newName) { - if (!(this_present_newName && that_present_newName)) - return false; - if (!this.newName.equals(that.newName)) - return false; - } - - boolean this_present_desc = true && this.isSetDesc(); - boolean that_present_desc = true && that.isSetDesc(); - if (this_present_desc || that_present_desc) { - if (!(this_present_desc && that_present_desc)) - return false; - if (!this.desc.equals(that.desc)) - return false; - } - - boolean this_present_image_path = true && this.isSetImage_path(); - boolean that_present_image_path = true && that.isSetImage_path(); - if (this_present_image_path || that_present_image_path) { - if (!(this_present_image_path && that_present_image_path)) - return false; - if (!this.image_path.equals(that.image_path)) - return false; - } - - boolean this_present_license = true; - boolean that_present_license = true; - if (this_present_license || that_present_license) { - if (!(this_present_license && that_present_license)) - return false; - if (this.license != that.license) - return false; - } - - boolean this_present_internet = true; - boolean that_present_internet = true; - if (this_present_internet || that_present_internet) { - if (!(this_present_internet && that_present_internet)) - return false; - if (this.internet != that.internet) - return false; - } - - boolean this_present_ram = true; - boolean that_present_ram = true; - if (this_present_ram || that_present_ram) { - if (!(this_present_ram && that_present_ram)) - return false; - if (this.ram != that.ram) - return false; - } - - boolean this_present_cpu = true; - boolean that_present_cpu = true; - if (this_present_cpu || that_present_cpu) { - if (!(this_present_cpu && that_present_cpu)) - return false; - if (this.cpu != that.cpu) - return false; - } - boolean this_present_id = true && this.isSetId(); boolean that_present_id = true && that.isSetId(); if (this_present_id || that_present_id) { @@ -29308,39 +32846,12 @@ public class Server { return false; } - boolean this_present_isTemplate = true; - boolean that_present_isTemplate = true; - if (this_present_isTemplate || that_present_isTemplate) { - if (!(this_present_isTemplate && that_present_isTemplate)) - return false; - if (this.isTemplate != that.isTemplate) - return false; - } - - boolean this_present_filesize = true; - boolean that_present_filesize = true; - if (this_present_filesize || that_present_filesize) { - if (!(this_present_filesize && that_present_filesize)) - return false; - if (this.filesize != that.filesize) - return false; - } - - boolean this_present_shareMode = true; - boolean that_present_shareMode = true; - if (this_present_shareMode || that_present_shareMode) { - if (!(this_present_shareMode && that_present_shareMode)) - return false; - if (this.shareMode != that.shareMode) - return false; - } - - boolean this_present_os = true && this.isSetOs(); - boolean that_present_os = true && that.isSetOs(); - if (this_present_os || that_present_os) { - if (!(this_present_os && that_present_os)) + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) return false; - if (!this.os.equals(that.os)) + if (!this.token.equals(that.token)) return false; } @@ -29353,93 +32864,13 @@ public class Server { } @Override - public int compareTo(updateImageData_args other) { + public int compareTo(deleteImageData_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } - - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetNewName()).compareTo(other.isSetNewName()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetNewName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newName, other.newName); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetDesc()).compareTo(other.isSetDesc()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDesc()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.desc, other.desc); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetImage_path()).compareTo(other.isSetImage_path()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetImage_path()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.image_path, other.image_path); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetLicense()).compareTo(other.isSetLicense()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetLicense()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.license, other.license); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetInternet()).compareTo(other.isSetInternet()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetInternet()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.internet, other.internet); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetRam()).compareTo(other.isSetRam()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetRam()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ram, other.ram); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetCpu()).compareTo(other.isSetCpu()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetCpu()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cpu, other.cpu); - if (lastComparison != 0) { - return lastComparison; - } - } + + int lastComparison = 0; + lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId()); if (lastComparison != 0) { return lastComparison; @@ -29460,42 +32891,12 @@ public class Server { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIsTemplate()).compareTo(other.isSetIsTemplate()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetIsTemplate()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isTemplate, other.isTemplate); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetFilesize()).compareTo(other.isSetFilesize()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetFilesize()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filesize, other.filesize); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetShareMode()).compareTo(other.isSetShareMode()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetShareMode()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shareMode, other.shareMode); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetOs()).compareTo(other.isSetOs()); + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); if (lastComparison != 0) { return lastComparison; } - if (isSetOs()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.os, other.os); + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) { return lastComparison; } @@ -29517,57 +32918,9 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("updateImageData_args("); + StringBuilder sb = new StringBuilder("deleteImageData_args("); boolean first = true; - sb.append("name:"); - if (this.name == null) { - sb.append("null"); - } else { - sb.append(this.name); - } - first = false; - if (!first) sb.append(", "); - sb.append("newName:"); - if (this.newName == null) { - sb.append("null"); - } else { - sb.append(this.newName); - } - first = false; - if (!first) sb.append(", "); - sb.append("desc:"); - if (this.desc == null) { - sb.append("null"); - } else { - sb.append(this.desc); - } - first = false; - if (!first) sb.append(", "); - sb.append("image_path:"); - if (this.image_path == null) { - sb.append("null"); - } else { - sb.append(this.image_path); - } - first = false; - if (!first) sb.append(", "); - sb.append("license:"); - sb.append(this.license); - first = false; - if (!first) sb.append(", "); - sb.append("internet:"); - sb.append(this.internet); - first = false; - if (!first) sb.append(", "); - sb.append("ram:"); - sb.append(this.ram); - first = false; - if (!first) sb.append(", "); - sb.append("cpu:"); - sb.append(this.cpu); - first = false; - if (!first) sb.append(", "); sb.append("id:"); if (this.id == null) { sb.append("null"); @@ -29584,23 +32937,11 @@ public class Server { } first = false; if (!first) sb.append(", "); - sb.append("isTemplate:"); - sb.append(this.isTemplate); - first = false; - if (!first) sb.append(", "); - sb.append("filesize:"); - sb.append(this.filesize); - first = false; - if (!first) sb.append(", "); - sb.append("shareMode:"); - sb.append(this.shareMode); - first = false; - if (!first) sb.append(", "); - sb.append("os:"); - if (this.os == null) { + sb.append("token:"); + if (this.token == null) { sb.append("null"); } else { - sb.append(this.os); + sb.append(this.token); } first = false; sb.append(")"); @@ -29622,23 +32963,21 @@ public class Server { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class updateImageData_argsStandardSchemeFactory implements SchemeFactory { - public updateImageData_argsStandardScheme getScheme() { - return new updateImageData_argsStandardScheme(); + private static class deleteImageData_argsStandardSchemeFactory implements SchemeFactory { + public deleteImageData_argsStandardScheme getScheme() { + return new deleteImageData_argsStandardScheme(); } } - private static class updateImageData_argsStandardScheme extends StandardScheme { + private static class deleteImageData_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageData_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageData_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -29648,71 +32987,7 @@ public class Server { break; } switch (schemeField.id) { - case 1: // NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.name = iprot.readString(); - struct.setNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // NEW_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.newName = iprot.readString(); - struct.setNewNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // DESC - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.desc = iprot.readString(); - struct.setDescIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // IMAGE_PATH - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.image_path = iprot.readString(); - struct.setImage_pathIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // LICENSE - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.license = iprot.readBool(); - struct.setLicenseIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // INTERNET - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.internet = iprot.readBool(); - struct.setInternetIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 7: // RAM - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.ram = iprot.readI64(); - struct.setRamIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 8: // CPU - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.cpu = iprot.readI64(); - struct.setCpuIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 9: // ID + case 1: // ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.id = iprot.readString(); struct.setIdIsSet(true); @@ -29720,7 +32995,7 @@ public class Server { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 10: // VERSION + case 2: // VERSION if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.version = iprot.readString(); struct.setVersionIsSet(true); @@ -29728,34 +33003,10 @@ public class Server { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 11: // IS_TEMPLATE - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.isTemplate = iprot.readBool(); - struct.setIsTemplateIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 12: // FILESIZE - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.filesize = iprot.readI64(); - struct.setFilesizeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 13: // SHARE_MODE - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.shareMode = iprot.readI64(); - struct.setShareModeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 14: // OS + case 3: // TOKEN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.os = iprot.readString(); - struct.setOsIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -29771,42 +33022,10 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, updateImageData_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteImageData_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.name != null) { - oprot.writeFieldBegin(NAME_FIELD_DESC); - oprot.writeString(struct.name); - oprot.writeFieldEnd(); - } - if (struct.newName != null) { - oprot.writeFieldBegin(NEW_NAME_FIELD_DESC); - oprot.writeString(struct.newName); - oprot.writeFieldEnd(); - } - if (struct.desc != null) { - oprot.writeFieldBegin(DESC_FIELD_DESC); - oprot.writeString(struct.desc); - oprot.writeFieldEnd(); - } - if (struct.image_path != null) { - oprot.writeFieldBegin(IMAGE_PATH_FIELD_DESC); - oprot.writeString(struct.image_path); - oprot.writeFieldEnd(); - } - oprot.writeFieldBegin(LICENSE_FIELD_DESC); - oprot.writeBool(struct.license); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(INTERNET_FIELD_DESC); - oprot.writeBool(struct.internet); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(RAM_FIELD_DESC); - oprot.writeI64(struct.ram); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(CPU_FIELD_DESC); - oprot.writeI64(struct.cpu); - oprot.writeFieldEnd(); if (struct.id != null) { oprot.writeFieldBegin(ID_FIELD_DESC); oprot.writeString(struct.id); @@ -29817,18 +33036,9 @@ public class Server { oprot.writeString(struct.version); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(IS_TEMPLATE_FIELD_DESC); - oprot.writeBool(struct.isTemplate); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(FILESIZE_FIELD_DESC); - oprot.writeI64(struct.filesize); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(SHARE_MODE_FIELD_DESC); - oprot.writeI64(struct.shareMode); - oprot.writeFieldEnd(); - if (struct.os != null) { - oprot.writeFieldBegin(OS_FIELD_DESC); - oprot.writeString(struct.os); + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -29837,179 +33047,69 @@ public class Server { } - private static class updateImageData_argsTupleSchemeFactory implements SchemeFactory { - public updateImageData_argsTupleScheme getScheme() { - return new updateImageData_argsTupleScheme(); + private static class deleteImageData_argsTupleSchemeFactory implements SchemeFactory { + public deleteImageData_argsTupleScheme getScheme() { + return new deleteImageData_argsTupleScheme(); } } - private static class updateImageData_argsTupleScheme extends TupleScheme { + private static class deleteImageData_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, updateImageData_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, deleteImageData_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetName()) { + if (struct.isSetId()) { optionals.set(0); } - if (struct.isSetNewName()) { + if (struct.isSetVersion()) { optionals.set(1); } - if (struct.isSetDesc()) { + if (struct.isSetToken()) { optionals.set(2); } - if (struct.isSetImage_path()) { - optionals.set(3); - } - if (struct.isSetLicense()) { - optionals.set(4); - } - if (struct.isSetInternet()) { - optionals.set(5); - } - if (struct.isSetRam()) { - optionals.set(6); - } - if (struct.isSetCpu()) { - optionals.set(7); - } - if (struct.isSetId()) { - optionals.set(8); - } - if (struct.isSetVersion()) { - optionals.set(9); - } - if (struct.isSetIsTemplate()) { - optionals.set(10); - } - if (struct.isSetFilesize()) { - optionals.set(11); - } - if (struct.isSetShareMode()) { - optionals.set(12); - } - if (struct.isSetOs()) { - optionals.set(13); - } - oprot.writeBitSet(optionals, 14); - if (struct.isSetName()) { - oprot.writeString(struct.name); - } - if (struct.isSetNewName()) { - oprot.writeString(struct.newName); - } - if (struct.isSetDesc()) { - oprot.writeString(struct.desc); - } - if (struct.isSetImage_path()) { - oprot.writeString(struct.image_path); - } - if (struct.isSetLicense()) { - oprot.writeBool(struct.license); - } - if (struct.isSetInternet()) { - oprot.writeBool(struct.internet); - } - if (struct.isSetRam()) { - oprot.writeI64(struct.ram); - } - if (struct.isSetCpu()) { - oprot.writeI64(struct.cpu); - } + oprot.writeBitSet(optionals, 3); if (struct.isSetId()) { oprot.writeString(struct.id); } if (struct.isSetVersion()) { oprot.writeString(struct.version); } - if (struct.isSetIsTemplate()) { - oprot.writeBool(struct.isTemplate); - } - if (struct.isSetFilesize()) { - oprot.writeI64(struct.filesize); - } - if (struct.isSetShareMode()) { - oprot.writeI64(struct.shareMode); - } - if (struct.isSetOs()) { - oprot.writeString(struct.os); + if (struct.isSetToken()) { + oprot.writeString(struct.token); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, updateImageData_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, deleteImageData_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(14); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.name = iprot.readString(); - struct.setNameIsSet(true); - } - if (incoming.get(1)) { - struct.newName = iprot.readString(); - struct.setNewNameIsSet(true); - } - if (incoming.get(2)) { - struct.desc = iprot.readString(); - struct.setDescIsSet(true); - } - if (incoming.get(3)) { - struct.image_path = iprot.readString(); - struct.setImage_pathIsSet(true); - } - if (incoming.get(4)) { - struct.license = iprot.readBool(); - struct.setLicenseIsSet(true); - } - if (incoming.get(5)) { - struct.internet = iprot.readBool(); - struct.setInternetIsSet(true); - } - if (incoming.get(6)) { - struct.ram = iprot.readI64(); - struct.setRamIsSet(true); - } - if (incoming.get(7)) { - struct.cpu = iprot.readI64(); - struct.setCpuIsSet(true); - } - if (incoming.get(8)) { struct.id = iprot.readString(); struct.setIdIsSet(true); } - if (incoming.get(9)) { + if (incoming.get(1)) { struct.version = iprot.readString(); struct.setVersionIsSet(true); } - if (incoming.get(10)) { - struct.isTemplate = iprot.readBool(); - struct.setIsTemplateIsSet(true); - } - if (incoming.get(11)) { - struct.filesize = iprot.readI64(); - struct.setFilesizeIsSet(true); - } - if (incoming.get(12)) { - struct.shareMode = iprot.readI64(); - struct.setShareModeIsSet(true); - } - if (incoming.get(13)) { - struct.os = iprot.readString(); - struct.setOsIsSet(true); + if (incoming.get(2)) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } } } } - public static class updateImageData_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateImageData_result"); + public static class deleteImageData_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteImageData_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new updateImageData_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new updateImageData_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new deleteImageData_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteImageData_resultTupleSchemeFactory()); } public boolean success; // required @@ -30081,13 +33181,13 @@ public class Server { tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageData_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageData_result.class, metaDataMap); } - public updateImageData_result() { + public deleteImageData_result() { } - public updateImageData_result( + public deleteImageData_result( boolean success) { this(); @@ -30098,13 +33198,13 @@ public class Server { /** * Performs a deep copy on other. */ - public updateImageData_result(updateImageData_result other) { + public deleteImageData_result(deleteImageData_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; } - public updateImageData_result deepCopy() { - return new updateImageData_result(this); + public deleteImageData_result deepCopy() { + return new deleteImageData_result(this); } @Override @@ -30117,7 +33217,7 @@ public class Server { return this.success; } - public updateImageData_result setSuccess(boolean success) { + public deleteImageData_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; @@ -30175,12 +33275,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof updateImageData_result) - return this.equals((updateImageData_result)that); + if (that instanceof deleteImageData_result) + return this.equals((deleteImageData_result)that); return false; } - public boolean equals(updateImageData_result that) { + public boolean equals(deleteImageData_result that) { if (that == null) return false; @@ -30202,7 +33302,7 @@ public class Server { } @Override - public int compareTo(updateImageData_result other) { + public int compareTo(deleteImageData_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -30236,7 +33336,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("updateImageData_result("); + StringBuilder sb = new StringBuilder("deleteImageData_result("); boolean first = true; sb.append("success:"); @@ -30269,15 +33369,15 @@ public class Server { } } - private static class updateImageData_resultStandardSchemeFactory implements SchemeFactory { - public updateImageData_resultStandardScheme getScheme() { - return new updateImageData_resultStandardScheme(); + private static class deleteImageData_resultStandardSchemeFactory implements SchemeFactory { + public deleteImageData_resultStandardScheme getScheme() { + return new deleteImageData_resultStandardScheme(); } } - private static class updateImageData_resultStandardScheme extends StandardScheme { + private static class deleteImageData_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageData_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageData_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -30306,7 +33406,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, updateImageData_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteImageData_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -30321,16 +33421,16 @@ public class Server { } - private static class updateImageData_resultTupleSchemeFactory implements SchemeFactory { - public updateImageData_resultTupleScheme getScheme() { - return new updateImageData_resultTupleScheme(); + private static class deleteImageData_resultTupleSchemeFactory implements SchemeFactory { + public deleteImageData_resultTupleScheme getScheme() { + return new deleteImageData_resultTupleScheme(); } } - private static class updateImageData_resultTupleScheme extends TupleScheme { + private static class deleteImageData_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, updateImageData_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, deleteImageData_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -30343,7 +33443,7 @@ public class Server { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, updateImageData_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, deleteImageData_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -30355,25 +33455,61 @@ public class Server { } - public static class deleteImageData_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteImageData_args"); + public static class updateLecturedata_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateLecturedata_args"); - private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("version", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField NEW_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("newName", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField SHORTDESC_FIELD_DESC = new org.apache.thrift.protocol.TField("shortdesc", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField DESC_FIELD_DESC = new org.apache.thrift.protocol.TField("desc", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.STRING, (short)5); + private static final org.apache.thrift.protocol.TField END_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("endDate", org.apache.thrift.protocol.TType.STRING, (short)6); + private static final org.apache.thrift.protocol.TField IS_ACTIVE_FIELD_DESC = new org.apache.thrift.protocol.TField("isActive", org.apache.thrift.protocol.TType.BOOL, (short)7); + private static final org.apache.thrift.protocol.TField IMAGEID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageid", org.apache.thrift.protocol.TType.STRING, (short)8); + private static final org.apache.thrift.protocol.TField IMAGEVERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("imageversion", org.apache.thrift.protocol.TType.STRING, (short)9); + private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)10); + private static final org.apache.thrift.protocol.TField TEL_FIELD_DESC = new org.apache.thrift.protocol.TField("Tel", org.apache.thrift.protocol.TType.STRING, (short)15); + private static final org.apache.thrift.protocol.TField FAK_FIELD_DESC = new org.apache.thrift.protocol.TField("Fak", org.apache.thrift.protocol.TType.STRING, (short)16); + private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.STRING, (short)17); + private static final org.apache.thrift.protocol.TField UNIVERSITY_FIELD_DESC = new org.apache.thrift.protocol.TField("university", org.apache.thrift.protocol.TType.STRING, (short)18); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new deleteImageData_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteImageData_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new updateLecturedata_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new updateLecturedata_argsTupleSchemeFactory()); } + public String name; // required + public String newName; // required + public String shortdesc; // required + public String desc; // required + public String startDate; // required + public String endDate; // required + public boolean isActive; // required + public String imageid; // required + public String imageversion; // required + public String token; // required + public String Tel; // required + public String Fak; // required public String id; // required - public String version; // required + public String university; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - ID((short)1, "id"), - VERSION((short)2, "version"); + NAME((short)1, "name"), + NEW_NAME((short)2, "newName"), + SHORTDESC((short)3, "shortdesc"), + DESC((short)4, "desc"), + START_DATE((short)5, "startDate"), + END_DATE((short)6, "endDate"), + IS_ACTIVE((short)7, "isActive"), + IMAGEID((short)8, "imageid"), + IMAGEVERSION((short)9, "imageversion"), + TOKEN((short)10, "token"), + TEL((short)15, "Tel"), + FAK((short)16, "Fak"), + ID((short)17, "id"), + UNIVERSITY((short)18, "university"); private static final Map byName = new HashMap(); @@ -30388,10 +33524,34 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // ID + case 1: // NAME + return NAME; + case 2: // NEW_NAME + return NEW_NAME; + case 3: // SHORTDESC + return SHORTDESC; + case 4: // DESC + return DESC; + case 5: // START_DATE + return START_DATE; + case 6: // END_DATE + return END_DATE; + case 7: // IS_ACTIVE + return IS_ACTIVE; + case 8: // IMAGEID + return IMAGEID; + case 9: // IMAGEVERSION + return IMAGEVERSION; + case 10: // TOKEN + return TOKEN; + case 15: // TEL + return TEL; + case 16: // FAK + return FAK; + case 17: // ID return ID; - case 2: // VERSION - return VERSION; + case 18: // UNIVERSITY + return UNIVERSITY; default: return null; } @@ -30432,525 +33592,596 @@ public class Server { } // isset id assignments + private static final int __ISACTIVE_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.NEW_NAME, new org.apache.thrift.meta_data.FieldMetaData("newName", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.SHORTDESC, new org.apache.thrift.meta_data.FieldMetaData("shortdesc", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DESC, new org.apache.thrift.meta_data.FieldMetaData("desc", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.IS_ACTIVE, new org.apache.thrift.meta_data.FieldMetaData("isActive", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.IMAGEID, new org.apache.thrift.meta_data.FieldMetaData("imageid", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.IMAGEVERSION, new org.apache.thrift.meta_data.FieldMetaData("imageversion", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TEL, new org.apache.thrift.meta_data.FieldMetaData("Tel", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.FAK, new org.apache.thrift.meta_data.FieldMetaData("Fak", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.VERSION, new org.apache.thrift.meta_data.FieldMetaData("version", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.UNIVERSITY, new org.apache.thrift.meta_data.FieldMetaData("university", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageData_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateLecturedata_args.class, metaDataMap); } - public deleteImageData_args() { + public updateLecturedata_args() { } - public deleteImageData_args( + public updateLecturedata_args( + String name, + String newName, + String shortdesc, + String desc, + String startDate, + String endDate, + boolean isActive, + String imageid, + String imageversion, + String token, + String Tel, + String Fak, String id, - String version) + String university) { this(); + this.name = name; + this.newName = newName; + this.shortdesc = shortdesc; + this.desc = desc; + this.startDate = startDate; + this.endDate = endDate; + this.isActive = isActive; + setIsActiveIsSet(true); + this.imageid = imageid; + this.imageversion = imageversion; + this.token = token; + this.Tel = Tel; + this.Fak = Fak; this.id = id; - this.version = version; + this.university = university; } /** * Performs a deep copy on other. */ - public deleteImageData_args(deleteImageData_args other) { + public updateLecturedata_args(updateLecturedata_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetName()) { + this.name = other.name; + } + if (other.isSetNewName()) { + this.newName = other.newName; + } + if (other.isSetShortdesc()) { + this.shortdesc = other.shortdesc; + } + if (other.isSetDesc()) { + this.desc = other.desc; + } + if (other.isSetStartDate()) { + this.startDate = other.startDate; + } + if (other.isSetEndDate()) { + this.endDate = other.endDate; + } + this.isActive = other.isActive; + if (other.isSetImageid()) { + this.imageid = other.imageid; + } + if (other.isSetImageversion()) { + this.imageversion = other.imageversion; + } + if (other.isSetToken()) { + this.token = other.token; + } + if (other.isSetTel()) { + this.Tel = other.Tel; + } + if (other.isSetFak()) { + this.Fak = other.Fak; + } if (other.isSetId()) { this.id = other.id; } - if (other.isSetVersion()) { - this.version = other.version; + if (other.isSetUniversity()) { + this.university = other.university; } } - public deleteImageData_args deepCopy() { - return new deleteImageData_args(this); + public updateLecturedata_args deepCopy() { + return new updateLecturedata_args(this); } @Override public void clear() { + this.name = null; + this.newName = null; + this.shortdesc = null; + this.desc = null; + this.startDate = null; + this.endDate = null; + setIsActiveIsSet(false); + this.isActive = false; + this.imageid = null; + this.imageversion = null; + this.token = null; + this.Tel = null; + this.Fak = null; this.id = null; - this.version = null; + this.university = null; } - public String getId() { - return this.id; + public String getName() { + return this.name; } - public deleteImageData_args setId(String id) { - this.id = id; + public updateLecturedata_args setName(String name) { + this.name = name; return this; } - public void unsetId() { - this.id = null; + public void unsetName() { + this.name = null; } - /** Returns true if field id is set (has been assigned a value) and false otherwise */ - public boolean isSetId() { - return this.id != null; + /** Returns true if field name is set (has been assigned a value) and false otherwise */ + public boolean isSetName() { + return this.name != null; } - public void setIdIsSet(boolean value) { + public void setNameIsSet(boolean value) { if (!value) { - this.id = null; + this.name = null; } } - public String getVersion() { - return this.version; + public String getNewName() { + return this.newName; } - public deleteImageData_args setVersion(String version) { - this.version = version; + public updateLecturedata_args setNewName(String newName) { + this.newName = newName; return this; } - public void unsetVersion() { - this.version = null; + public void unsetNewName() { + this.newName = null; } - /** Returns true if field version is set (has been assigned a value) and false otherwise */ - public boolean isSetVersion() { - return this.version != null; + /** Returns true if field newName is set (has been assigned a value) and false otherwise */ + public boolean isSetNewName() { + return this.newName != null; } - public void setVersionIsSet(boolean value) { + public void setNewNameIsSet(boolean value) { if (!value) { - this.version = null; + this.newName = null; } } - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case ID: - if (value == null) { - unsetId(); - } else { - setId((String)value); - } - break; - - case VERSION: - if (value == null) { - unsetVersion(); - } else { - setVersion((String)value); - } - break; - - } + public String getShortdesc() { + return this.shortdesc; } - public Object getFieldValue(_Fields field) { - switch (field) { - case ID: - return getId(); + public updateLecturedata_args setShortdesc(String shortdesc) { + this.shortdesc = shortdesc; + return this; + } - case VERSION: - return getVersion(); + public void unsetShortdesc() { + this.shortdesc = null; + } - } - throw new IllegalStateException(); + /** Returns true if field shortdesc is set (has been assigned a value) and false otherwise */ + public boolean isSetShortdesc() { + return this.shortdesc != null; } - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ - public boolean isSet(_Fields field) { - if (field == null) { - throw new IllegalArgumentException(); + public void setShortdescIsSet(boolean value) { + if (!value) { + this.shortdesc = null; } + } - switch (field) { - case ID: - return isSetId(); - case VERSION: - return isSetVersion(); - } - throw new IllegalStateException(); + public String getDesc() { + return this.desc; } - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof deleteImageData_args) - return this.equals((deleteImageData_args)that); - return false; + public updateLecturedata_args setDesc(String desc) { + this.desc = desc; + return this; } - public boolean equals(deleteImageData_args that) { - if (that == null) - return false; + public void unsetDesc() { + this.desc = null; + } - boolean this_present_id = true && this.isSetId(); - boolean that_present_id = true && that.isSetId(); - if (this_present_id || that_present_id) { - if (!(this_present_id && that_present_id)) - return false; - if (!this.id.equals(that.id)) - return false; - } + /** Returns true if field desc is set (has been assigned a value) and false otherwise */ + public boolean isSetDesc() { + return this.desc != null; + } - boolean this_present_version = true && this.isSetVersion(); - boolean that_present_version = true && that.isSetVersion(); - if (this_present_version || that_present_version) { - if (!(this_present_version && that_present_version)) - return false; - if (!this.version.equals(that.version)) - return false; + public void setDescIsSet(boolean value) { + if (!value) { + this.desc = null; } + } - return true; + public String getStartDate() { + return this.startDate; } - @Override - public int hashCode() { - return 0; + public updateLecturedata_args setStartDate(String startDate) { + this.startDate = startDate; + return this; } - @Override - public int compareTo(deleteImageData_args other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } + public void unsetStartDate() { + this.startDate = null; + } - int lastComparison = 0; + /** Returns true if field startDate is set (has been assigned a value) and false otherwise */ + public boolean isSetStartDate() { + return this.startDate != null; + } - lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetVersion()).compareTo(other.isSetVersion()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetVersion()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.version, other.version); - if (lastComparison != 0) { - return lastComparison; - } + public void setStartDateIsSet(boolean value) { + if (!value) { + this.startDate = null; } - return 0; } - public _Fields fieldForId(int fieldId) { - return _Fields.findByThriftId(fieldId); + public String getEndDate() { + return this.endDate; } - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + public updateLecturedata_args setEndDate(String endDate) { + this.endDate = endDate; + return this; } - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + public void unsetEndDate() { + this.endDate = null; } - @Override - public String toString() { - StringBuilder sb = new StringBuilder("deleteImageData_args("); - boolean first = true; + /** Returns true if field endDate is set (has been assigned a value) and false otherwise */ + public boolean isSetEndDate() { + return this.endDate != null; + } - sb.append("id:"); - if (this.id == null) { - sb.append("null"); - } else { - sb.append(this.id); - } - first = false; - if (!first) sb.append(", "); - sb.append("version:"); - if (this.version == null) { - sb.append("null"); - } else { - sb.append(this.version); + public void setEndDateIsSet(boolean value) { + if (!value) { + this.endDate = null; } - first = false; - sb.append(")"); - return sb.toString(); } - public void validate() throws org.apache.thrift.TException { - // check for required fields - // check for sub-struct validity + public boolean isIsActive() { + return this.isActive; } - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { - try { - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } + public updateLecturedata_args setIsActive(boolean isActive) { + this.isActive = isActive; + setIsActiveIsSet(true); + return this; } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { - try { - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } + public void unsetIsActive() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISACTIVE_ISSET_ID); } - private static class deleteImageData_argsStandardSchemeFactory implements SchemeFactory { - public deleteImageData_argsStandardScheme getScheme() { - return new deleteImageData_argsStandardScheme(); - } + /** Returns true if field isActive is set (has been assigned a value) and false otherwise */ + public boolean isSetIsActive() { + return EncodingUtils.testBit(__isset_bitfield, __ISACTIVE_ISSET_ID); } - private static class deleteImageData_argsStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageData_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.id = iprot.readString(); - struct.setIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // VERSION - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.version = iprot.readString(); - struct.setVersionIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteImageData_args struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (struct.id != null) { - oprot.writeFieldBegin(ID_FIELD_DESC); - oprot.writeString(struct.id); - oprot.writeFieldEnd(); - } - if (struct.version != null) { - oprot.writeFieldBegin(VERSION_FIELD_DESC); - oprot.writeString(struct.version); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } + public void setIsActiveIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISACTIVE_ISSET_ID, value); + } + public String getImageid() { + return this.imageid; } - private static class deleteImageData_argsTupleSchemeFactory implements SchemeFactory { - public deleteImageData_argsTupleScheme getScheme() { - return new deleteImageData_argsTupleScheme(); - } + public updateLecturedata_args setImageid(String imageid) { + this.imageid = imageid; + return this; } - private static class deleteImageData_argsTupleScheme extends TupleScheme { + public void unsetImageid() { + this.imageid = null; + } - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteImageData_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetId()) { - optionals.set(0); - } - if (struct.isSetVersion()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetId()) { - oprot.writeString(struct.id); - } - if (struct.isSetVersion()) { - oprot.writeString(struct.version); - } - } + /** Returns true if field imageid is set (has been assigned a value) and false otherwise */ + public boolean isSetImageid() { + return this.imageid != null; + } - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteImageData_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.id = iprot.readString(); - struct.setIdIsSet(true); - } - if (incoming.get(1)) { - struct.version = iprot.readString(); - struct.setVersionIsSet(true); - } + public void setImageidIsSet(boolean value) { + if (!value) { + this.imageid = null; } } - } + public String getImageversion() { + return this.imageversion; + } - public static class deleteImageData_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteImageData_result"); + public updateLecturedata_args setImageversion(String imageversion) { + this.imageversion = imageversion; + return this; + } - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + public void unsetImageversion() { + this.imageversion = null; + } - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new deleteImageData_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteImageData_resultTupleSchemeFactory()); + /** Returns true if field imageversion is set (has been assigned a value) and false otherwise */ + public boolean isSetImageversion() { + return this.imageversion != null; } - public boolean success; // required + public void setImageversionIsSet(boolean value) { + if (!value) { + this.imageversion = null; + } + } - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"); + public String getToken() { + return this.token; + } - private static final Map byName = new HashMap(); + public updateLecturedata_args setToken(String token) { + this.token = token; + return this; + } - static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { - byName.put(field.getFieldName(), field); - } - } + public void unsetToken() { + this.token = null; + } - /** - * 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; - } - } + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != 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; + public void setTokenIsSet(boolean value) { + if (!value) { + this.token = null; } + } - /** - * Find the _Fields constant that matches name, or null if its not found. - */ - public static _Fields findByName(String name) { - return byName.get(name); - } + public String getTel() { + return this.Tel; + } - private final short _thriftId; - private final String _fieldName; + public updateLecturedata_args setTel(String Tel) { + this.Tel = Tel; + return this; + } - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } + public void unsetTel() { + this.Tel = null; + } - public short getThriftFieldId() { - return _thriftId; - } + /** Returns true if field Tel is set (has been assigned a value) and false otherwise */ + public boolean isSetTel() { + return this.Tel != null; + } - public String getFieldName() { - return _fieldName; + public void setTelIsSet(boolean value) { + if (!value) { + this.Tel = null; } } - // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageData_result.class, metaDataMap); + public String getFak() { + return this.Fak; } - public deleteImageData_result() { + public updateLecturedata_args setFak(String Fak) { + this.Fak = Fak; + return this; } - public deleteImageData_result( - boolean success) - { - this(); - this.success = success; - setSuccessIsSet(true); + public void unsetFak() { + this.Fak = null; } - /** - * Performs a deep copy on other. - */ - public deleteImageData_result(deleteImageData_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + /** Returns true if field Fak is set (has been assigned a value) and false otherwise */ + public boolean isSetFak() { + return this.Fak != null; } - public deleteImageData_result deepCopy() { - return new deleteImageData_result(this); + public void setFakIsSet(boolean value) { + if (!value) { + this.Fak = null; + } } - @Override - public void clear() { - setSuccessIsSet(false); - this.success = false; + public String getId() { + return this.id; } - public boolean isSuccess() { - return this.success; + public updateLecturedata_args setId(String id) { + this.id = id; + return this; } - public deleteImageData_result setSuccess(boolean success) { - this.success = success; - setSuccessIsSet(true); + public void unsetId() { + this.id = null; + } + + /** Returns true if field id is set (has been assigned a value) and false otherwise */ + public boolean isSetId() { + return this.id != null; + } + + public void setIdIsSet(boolean value) { + if (!value) { + this.id = null; + } + } + + public String getUniversity() { + return this.university; + } + + public updateLecturedata_args setUniversity(String university) { + this.university = university; return this; } - public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + public void unsetUniversity() { + this.university = null; } - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + /** Returns true if field university is set (has been assigned a value) and false otherwise */ + public boolean isSetUniversity() { + return this.university != null; } - public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + public void setUniversityIsSet(boolean value) { + if (!value) { + this.university = null; + } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: + case NAME: if (value == null) { - unsetSuccess(); + unsetName(); } else { - setSuccess((Boolean)value); + setName((String)value); + } + break; + + case NEW_NAME: + if (value == null) { + unsetNewName(); + } else { + setNewName((String)value); + } + break; + + case SHORTDESC: + if (value == null) { + unsetShortdesc(); + } else { + setShortdesc((String)value); + } + break; + + case DESC: + if (value == null) { + unsetDesc(); + } else { + setDesc((String)value); + } + break; + + case START_DATE: + if (value == null) { + unsetStartDate(); + } else { + setStartDate((String)value); + } + break; + + case END_DATE: + if (value == null) { + unsetEndDate(); + } else { + setEndDate((String)value); + } + break; + + case IS_ACTIVE: + if (value == null) { + unsetIsActive(); + } else { + setIsActive((Boolean)value); + } + break; + + case IMAGEID: + if (value == null) { + unsetImageid(); + } else { + setImageid((String)value); + } + break; + + case IMAGEVERSION: + if (value == null) { + unsetImageversion(); + } else { + setImageversion((String)value); + } + break; + + case TOKEN: + if (value == null) { + unsetToken(); + } else { + setToken((String)value); + } + break; + + case TEL: + if (value == null) { + unsetTel(); + } else { + setTel((String)value); + } + break; + + case FAK: + if (value == null) { + unsetFak(); + } else { + setFak((String)value); + } + break; + + case ID: + if (value == null) { + unsetId(); + } else { + setId((String)value); + } + break; + + case UNIVERSITY: + if (value == null) { + unsetUniversity(); + } else { + setUniversity((String)value); } break; @@ -30959,8 +34190,47 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return Boolean.valueOf(isSuccess()); + case NAME: + return getName(); + + case NEW_NAME: + return getNewName(); + + case SHORTDESC: + return getShortdesc(); + + case DESC: + return getDesc(); + + case START_DATE: + return getStartDate(); + + case END_DATE: + return getEndDate(); + + case IS_ACTIVE: + return Boolean.valueOf(isIsActive()); + + case IMAGEID: + return getImageid(); + + case IMAGEVERSION: + return getImageversion(); + + case TOKEN: + return getToken(); + + case TEL: + return getTel(); + + case FAK: + return getFak(); + + case ID: + return getId(); + + case UNIVERSITY: + return getUniversity(); } throw new IllegalStateException(); @@ -30973,8 +34243,34 @@ public class Server { } switch (field) { - case SUCCESS: - return isSetSuccess(); + case NAME: + return isSetName(); + case NEW_NAME: + return isSetNewName(); + case SHORTDESC: + return isSetShortdesc(); + case DESC: + return isSetDesc(); + case START_DATE: + return isSetStartDate(); + case END_DATE: + return isSetEndDate(); + case IS_ACTIVE: + return isSetIsActive(); + case IMAGEID: + return isSetImageid(); + case IMAGEVERSION: + return isSetImageversion(); + case TOKEN: + return isSetToken(); + case TEL: + return isSetTel(); + case FAK: + return isSetFak(); + case ID: + return isSetId(); + case UNIVERSITY: + return isSetUniversity(); } throw new IllegalStateException(); } @@ -30983,21 +34279,138 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof deleteImageData_result) - return this.equals((deleteImageData_result)that); + if (that instanceof updateLecturedata_args) + return this.equals((updateLecturedata_args)that); return false; } - public boolean equals(deleteImageData_result that) { + public boolean equals(updateLecturedata_args that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; - if (this_present_success || that_present_success) { - if (!(this_present_success && that_present_success)) + boolean this_present_name = true && this.isSetName(); + boolean that_present_name = true && that.isSetName(); + if (this_present_name || that_present_name) { + if (!(this_present_name && that_present_name)) return false; - if (this.success != that.success) + if (!this.name.equals(that.name)) + return false; + } + + boolean this_present_newName = true && this.isSetNewName(); + boolean that_present_newName = true && that.isSetNewName(); + if (this_present_newName || that_present_newName) { + if (!(this_present_newName && that_present_newName)) + return false; + if (!this.newName.equals(that.newName)) + return false; + } + + boolean this_present_shortdesc = true && this.isSetShortdesc(); + boolean that_present_shortdesc = true && that.isSetShortdesc(); + if (this_present_shortdesc || that_present_shortdesc) { + if (!(this_present_shortdesc && that_present_shortdesc)) + return false; + if (!this.shortdesc.equals(that.shortdesc)) + return false; + } + + boolean this_present_desc = true && this.isSetDesc(); + boolean that_present_desc = true && that.isSetDesc(); + if (this_present_desc || that_present_desc) { + if (!(this_present_desc && that_present_desc)) + return false; + if (!this.desc.equals(that.desc)) + return false; + } + + boolean this_present_startDate = true && this.isSetStartDate(); + boolean that_present_startDate = true && that.isSetStartDate(); + if (this_present_startDate || that_present_startDate) { + if (!(this_present_startDate && that_present_startDate)) + return false; + if (!this.startDate.equals(that.startDate)) + return false; + } + + boolean this_present_endDate = true && this.isSetEndDate(); + boolean that_present_endDate = true && that.isSetEndDate(); + if (this_present_endDate || that_present_endDate) { + if (!(this_present_endDate && that_present_endDate)) + return false; + if (!this.endDate.equals(that.endDate)) + return false; + } + + boolean this_present_isActive = true; + boolean that_present_isActive = true; + if (this_present_isActive || that_present_isActive) { + if (!(this_present_isActive && that_present_isActive)) + return false; + if (this.isActive != that.isActive) + return false; + } + + boolean this_present_imageid = true && this.isSetImageid(); + boolean that_present_imageid = true && that.isSetImageid(); + if (this_present_imageid || that_present_imageid) { + if (!(this_present_imageid && that_present_imageid)) + return false; + if (!this.imageid.equals(that.imageid)) + return false; + } + + boolean this_present_imageversion = true && this.isSetImageversion(); + boolean that_present_imageversion = true && that.isSetImageversion(); + if (this_present_imageversion || that_present_imageversion) { + if (!(this_present_imageversion && that_present_imageversion)) + return false; + if (!this.imageversion.equals(that.imageversion)) + return false; + } + + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) + return false; + if (!this.token.equals(that.token)) + return false; + } + + boolean this_present_Tel = true && this.isSetTel(); + boolean that_present_Tel = true && that.isSetTel(); + if (this_present_Tel || that_present_Tel) { + if (!(this_present_Tel && that_present_Tel)) + return false; + if (!this.Tel.equals(that.Tel)) + return false; + } + + boolean this_present_Fak = true && this.isSetFak(); + boolean that_present_Fak = true && that.isSetFak(); + if (this_present_Fak || that_present_Fak) { + if (!(this_present_Fak && that_present_Fak)) + return false; + if (!this.Fak.equals(that.Fak)) + return false; + } + + boolean this_present_id = true && this.isSetId(); + boolean that_present_id = true && that.isSetId(); + if (this_present_id || that_present_id) { + if (!(this_present_id && that_present_id)) + return false; + if (!this.id.equals(that.id)) + return false; + } + + boolean this_present_university = true && this.isSetUniversity(); + boolean that_present_university = true && that.isSetUniversity(); + if (this_present_university || that_present_university) { + if (!(this_present_university && that_present_university)) + return false; + if (!this.university.equals(that.university)) return false; } @@ -31010,19 +34423,149 @@ public class Server { } @Override - public int compareTo(deleteImageData_result other) { + public int compareTo(updateLecturedata_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); if (lastComparison != 0) { return lastComparison; } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (isSetName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetNewName()).compareTo(other.isSetNewName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetNewName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newName, other.newName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetShortdesc()).compareTo(other.isSetShortdesc()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetShortdesc()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shortdesc, other.shortdesc); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDesc()).compareTo(other.isSetDesc()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDesc()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.desc, other.desc); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(other.isSetStartDate()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetStartDate()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, other.startDate); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(other.isSetEndDate()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetEndDate()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, other.endDate); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetIsActive()).compareTo(other.isSetIsActive()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIsActive()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isActive, other.isActive); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetImageid()).compareTo(other.isSetImageid()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetImageid()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageid, other.imageid); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetImageversion()).compareTo(other.isSetImageversion()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetImageversion()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageversion, other.imageversion); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTel()).compareTo(other.isSetTel()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTel()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Tel, other.Tel); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetFak()).compareTo(other.isSetFak()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFak()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Fak, other.Fak); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUniversity()).compareTo(other.isSetUniversity()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUniversity()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.university, other.university); if (lastComparison != 0) { return lastComparison; } @@ -31040,15 +34583,119 @@ public class Server { public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } + } @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteImageData_result("); + StringBuilder sb = new StringBuilder("updateLecturedata_args("); boolean first = true; - sb.append("success:"); - sb.append(this.success); + sb.append("name:"); + if (this.name == null) { + sb.append("null"); + } else { + sb.append(this.name); + } + first = false; + if (!first) sb.append(", "); + sb.append("newName:"); + if (this.newName == null) { + sb.append("null"); + } else { + sb.append(this.newName); + } + first = false; + if (!first) sb.append(", "); + sb.append("shortdesc:"); + if (this.shortdesc == null) { + sb.append("null"); + } else { + sb.append(this.shortdesc); + } + first = false; + if (!first) sb.append(", "); + sb.append("desc:"); + if (this.desc == null) { + sb.append("null"); + } else { + sb.append(this.desc); + } + first = false; + if (!first) sb.append(", "); + sb.append("startDate:"); + if (this.startDate == null) { + sb.append("null"); + } else { + sb.append(this.startDate); + } + first = false; + if (!first) sb.append(", "); + sb.append("endDate:"); + if (this.endDate == null) { + sb.append("null"); + } else { + sb.append(this.endDate); + } + first = false; + if (!first) sb.append(", "); + sb.append("isActive:"); + sb.append(this.isActive); + first = false; + if (!first) sb.append(", "); + sb.append("imageid:"); + if (this.imageid == null) { + sb.append("null"); + } else { + sb.append(this.imageid); + } + first = false; + if (!first) sb.append(", "); + sb.append("imageversion:"); + if (this.imageversion == null) { + sb.append("null"); + } else { + sb.append(this.imageversion); + } + first = false; + if (!first) sb.append(", "); + sb.append("token:"); + if (this.token == null) { + sb.append("null"); + } else { + sb.append(this.token); + } + first = false; + if (!first) sb.append(", "); + sb.append("Tel:"); + if (this.Tel == null) { + sb.append("null"); + } else { + sb.append(this.Tel); + } + first = false; + if (!first) sb.append(", "); + sb.append("Fak:"); + if (this.Fak == null) { + sb.append("null"); + } else { + sb.append(this.Fak); + } + first = false; + if (!first) sb.append(", "); + sb.append("id:"); + if (this.id == null) { + sb.append("null"); + } else { + sb.append(this.id); + } + first = false; + if (!first) sb.append(", "); + sb.append("university:"); + if (this.university == null) { + sb.append("null"); + } else { + sb.append(this.university); + } first = false; sb.append(")"); return sb.toString(); @@ -31077,15 +34724,15 @@ public class Server { } } - private static class deleteImageData_resultStandardSchemeFactory implements SchemeFactory { - public deleteImageData_resultStandardScheme getScheme() { - return new deleteImageData_resultStandardScheme(); + private static class updateLecturedata_argsStandardSchemeFactory implements SchemeFactory { + public updateLecturedata_argsStandardScheme getScheme() { + return new updateLecturedata_argsStandardScheme(); } } - private static class deleteImageData_resultStandardScheme extends StandardScheme { + private static class updateLecturedata_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageData_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, updateLecturedata_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -31095,10 +34742,114 @@ public class Server { break; } switch (schemeField.id) { - case 0: // SUCCESS + case 1: // NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.name = iprot.readString(); + struct.setNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // NEW_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.newName = iprot.readString(); + struct.setNewNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // SHORTDESC + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.shortdesc = iprot.readString(); + struct.setShortdescIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // DESC + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.desc = iprot.readString(); + struct.setDescIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // START_DATE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.startDate = iprot.readString(); + struct.setStartDateIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // END_DATE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.endDate = iprot.readString(); + struct.setEndDateIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 7: // IS_ACTIVE if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); + struct.isActive = iprot.readBool(); + struct.setIsActiveIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 8: // IMAGEID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.imageid = iprot.readString(); + struct.setImageidIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 9: // IMAGEVERSION + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.imageversion = iprot.readString(); + struct.setImageversionIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 10: // TOKEN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 15: // TEL + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.Tel = iprot.readString(); + struct.setTelIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 16: // FAK + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.Fak = iprot.readString(); + struct.setFakIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 17: // ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.id = iprot.readString(); + struct.setIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 18: // UNIVERSITY + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.university = iprot.readString(); + struct.setUniversityIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -31108,125 +34859,270 @@ public class Server { } 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, deleteImageData_result struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBool(struct.success); - oprot.writeFieldEnd(); + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, updateLecturedata_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.name != null) { + oprot.writeFieldBegin(NAME_FIELD_DESC); + oprot.writeString(struct.name); + oprot.writeFieldEnd(); + } + if (struct.newName != null) { + oprot.writeFieldBegin(NEW_NAME_FIELD_DESC); + oprot.writeString(struct.newName); + oprot.writeFieldEnd(); + } + if (struct.shortdesc != null) { + oprot.writeFieldBegin(SHORTDESC_FIELD_DESC); + oprot.writeString(struct.shortdesc); + oprot.writeFieldEnd(); + } + if (struct.desc != null) { + oprot.writeFieldBegin(DESC_FIELD_DESC); + oprot.writeString(struct.desc); + oprot.writeFieldEnd(); + } + if (struct.startDate != null) { + oprot.writeFieldBegin(START_DATE_FIELD_DESC); + oprot.writeString(struct.startDate); + oprot.writeFieldEnd(); + } + if (struct.endDate != null) { + oprot.writeFieldBegin(END_DATE_FIELD_DESC); + oprot.writeString(struct.endDate); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(IS_ACTIVE_FIELD_DESC); + oprot.writeBool(struct.isActive); + oprot.writeFieldEnd(); + if (struct.imageid != null) { + oprot.writeFieldBegin(IMAGEID_FIELD_DESC); + oprot.writeString(struct.imageid); + oprot.writeFieldEnd(); + } + if (struct.imageversion != null) { + oprot.writeFieldBegin(IMAGEVERSION_FIELD_DESC); + oprot.writeString(struct.imageversion); + oprot.writeFieldEnd(); + } + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); + oprot.writeFieldEnd(); + } + if (struct.Tel != null) { + oprot.writeFieldBegin(TEL_FIELD_DESC); + oprot.writeString(struct.Tel); + oprot.writeFieldEnd(); + } + if (struct.Fak != null) { + oprot.writeFieldBegin(FAK_FIELD_DESC); + oprot.writeString(struct.Fak); + oprot.writeFieldEnd(); + } + if (struct.id != null) { + oprot.writeFieldBegin(ID_FIELD_DESC); + oprot.writeString(struct.id); + oprot.writeFieldEnd(); + } + if (struct.university != null) { + oprot.writeFieldBegin(UNIVERSITY_FIELD_DESC); + oprot.writeString(struct.university); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class updateLecturedata_argsTupleSchemeFactory implements SchemeFactory { + public updateLecturedata_argsTupleScheme getScheme() { + return new updateLecturedata_argsTupleScheme(); + } + } + + private static class updateLecturedata_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, updateLecturedata_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetName()) { + optionals.set(0); + } + if (struct.isSetNewName()) { + optionals.set(1); + } + if (struct.isSetShortdesc()) { + optionals.set(2); + } + if (struct.isSetDesc()) { + optionals.set(3); + } + if (struct.isSetStartDate()) { + optionals.set(4); + } + if (struct.isSetEndDate()) { + optionals.set(5); + } + if (struct.isSetIsActive()) { + optionals.set(6); + } + if (struct.isSetImageid()) { + optionals.set(7); + } + if (struct.isSetImageversion()) { + optionals.set(8); + } + if (struct.isSetToken()) { + optionals.set(9); + } + if (struct.isSetTel()) { + optionals.set(10); + } + if (struct.isSetFak()) { + optionals.set(11); + } + if (struct.isSetId()) { + optionals.set(12); + } + if (struct.isSetUniversity()) { + optionals.set(13); + } + oprot.writeBitSet(optionals, 14); + if (struct.isSetName()) { + oprot.writeString(struct.name); + } + if (struct.isSetNewName()) { + oprot.writeString(struct.newName); + } + if (struct.isSetShortdesc()) { + oprot.writeString(struct.shortdesc); } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class deleteImageData_resultTupleSchemeFactory implements SchemeFactory { - public deleteImageData_resultTupleScheme getScheme() { - return new deleteImageData_resultTupleScheme(); - } - } - - private static class deleteImageData_resultTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteImageData_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { - optionals.set(0); + if (struct.isSetDesc()) { + oprot.writeString(struct.desc); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + if (struct.isSetStartDate()) { + oprot.writeString(struct.startDate); + } + if (struct.isSetEndDate()) { + oprot.writeString(struct.endDate); + } + if (struct.isSetIsActive()) { + oprot.writeBool(struct.isActive); + } + if (struct.isSetImageid()) { + oprot.writeString(struct.imageid); + } + if (struct.isSetImageversion()) { + oprot.writeString(struct.imageversion); + } + if (struct.isSetToken()) { + oprot.writeString(struct.token); + } + if (struct.isSetTel()) { + oprot.writeString(struct.Tel); + } + if (struct.isSetFak()) { + oprot.writeString(struct.Fak); + } + if (struct.isSetId()) { + oprot.writeString(struct.id); + } + if (struct.isSetUniversity()) { + oprot.writeString(struct.university); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteImageData_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, updateLecturedata_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(14); if (incoming.get(0)) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); + struct.name = iprot.readString(); + struct.setNameIsSet(true); + } + if (incoming.get(1)) { + struct.newName = iprot.readString(); + struct.setNewNameIsSet(true); + } + if (incoming.get(2)) { + struct.shortdesc = iprot.readString(); + struct.setShortdescIsSet(true); + } + if (incoming.get(3)) { + struct.desc = iprot.readString(); + struct.setDescIsSet(true); + } + if (incoming.get(4)) { + struct.startDate = iprot.readString(); + struct.setStartDateIsSet(true); + } + if (incoming.get(5)) { + struct.endDate = iprot.readString(); + struct.setEndDateIsSet(true); + } + if (incoming.get(6)) { + struct.isActive = iprot.readBool(); + struct.setIsActiveIsSet(true); + } + if (incoming.get(7)) { + struct.imageid = iprot.readString(); + struct.setImageidIsSet(true); + } + if (incoming.get(8)) { + struct.imageversion = iprot.readString(); + struct.setImageversionIsSet(true); + } + if (incoming.get(9)) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } + if (incoming.get(10)) { + struct.Tel = iprot.readString(); + struct.setTelIsSet(true); + } + if (incoming.get(11)) { + struct.Fak = iprot.readString(); + struct.setFakIsSet(true); + } + if (incoming.get(12)) { + struct.id = iprot.readString(); + struct.setIdIsSet(true); + } + if (incoming.get(13)) { + struct.university = iprot.readString(); + struct.setUniversityIsSet(true); } } } } - public static class updateLecturedata_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateLecturedata_args"); + public static class updateLecturedata_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateLecturedata_result"); - private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField NEW_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("newName", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField SHORTDESC_FIELD_DESC = new org.apache.thrift.protocol.TField("shortdesc", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final org.apache.thrift.protocol.TField DESC_FIELD_DESC = new org.apache.thrift.protocol.TField("desc", org.apache.thrift.protocol.TType.STRING, (short)4); - private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.STRING, (short)5); - private static final org.apache.thrift.protocol.TField END_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("endDate", org.apache.thrift.protocol.TType.STRING, (short)6); - private static final org.apache.thrift.protocol.TField IS_ACTIVE_FIELD_DESC = new org.apache.thrift.protocol.TField("isActive", org.apache.thrift.protocol.TType.BOOL, (short)7); - private static final org.apache.thrift.protocol.TField IMAGEID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageid", org.apache.thrift.protocol.TType.STRING, (short)8); - private static final org.apache.thrift.protocol.TField IMAGEVERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("imageversion", org.apache.thrift.protocol.TType.STRING, (short)9); - private static final org.apache.thrift.protocol.TField USER_FIELD_DESC = new org.apache.thrift.protocol.TField("user", org.apache.thrift.protocol.TType.STRING, (short)10); - private static final org.apache.thrift.protocol.TField FIRSTNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("firstname", org.apache.thrift.protocol.TType.STRING, (short)11); - private static final org.apache.thrift.protocol.TField LASTNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lastname", org.apache.thrift.protocol.TType.STRING, (short)12); - private static final org.apache.thrift.protocol.TField UNIVERSITY_FIELD_DESC = new org.apache.thrift.protocol.TField("university", org.apache.thrift.protocol.TType.STRING, (short)13); - private static final org.apache.thrift.protocol.TField MAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("Mail", org.apache.thrift.protocol.TType.STRING, (short)14); - private static final org.apache.thrift.protocol.TField TEL_FIELD_DESC = new org.apache.thrift.protocol.TField("Tel", org.apache.thrift.protocol.TType.STRING, (short)15); - private static final org.apache.thrift.protocol.TField FAK_FIELD_DESC = new org.apache.thrift.protocol.TField("Fak", org.apache.thrift.protocol.TType.STRING, (short)16); - private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.STRING, (short)17); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new updateLecturedata_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new updateLecturedata_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new updateLecturedata_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new updateLecturedata_resultTupleSchemeFactory()); } - public String name; // required - public String newName; // required - public String shortdesc; // required - public String desc; // required - public String startDate; // required - public String endDate; // required - public boolean isActive; // required - public String imageid; // required - public String imageversion; // required - public String user; // required - public String firstname; // required - public String lastname; // required - public String university; // required - public String Mail; // required - public String Tel; // required - public String Fak; // required - public String id; // required + public boolean success; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - NAME((short)1, "name"), - NEW_NAME((short)2, "newName"), - SHORTDESC((short)3, "shortdesc"), - DESC((short)4, "desc"), - START_DATE((short)5, "startDate"), - END_DATE((short)6, "endDate"), - IS_ACTIVE((short)7, "isActive"), - IMAGEID((short)8, "imageid"), - IMAGEVERSION((short)9, "imageversion"), - USER((short)10, "user"), - FIRSTNAME((short)11, "firstname"), - LASTNAME((short)12, "lastname"), - UNIVERSITY((short)13, "university"), - MAIL((short)14, "Mail"), - TEL((short)15, "Tel"), - FAK((short)16, "Fak"), - ID((short)17, "id"); + SUCCESS((short)0, "success"); private static final Map byName = new HashMap(); @@ -31241,40 +35137,8 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // NAME - return NAME; - case 2: // NEW_NAME - return NEW_NAME; - case 3: // SHORTDESC - return SHORTDESC; - case 4: // DESC - return DESC; - case 5: // START_DATE - return START_DATE; - case 6: // END_DATE - return END_DATE; - case 7: // IS_ACTIVE - return IS_ACTIVE; - case 8: // IMAGEID - return IMAGEID; - case 9: // IMAGEVERSION - return IMAGEVERSION; - case 10: // USER - return USER; - case 11: // FIRSTNAME - return FIRSTNAME; - case 12: // LASTNAME - return LASTNAME; - case 13: // UNIVERSITY - return UNIVERSITY; - case 14: // MAIL - return MAIL; - case 15: // TEL - return TEL; - case 16: // FAK - return FAK; - case 17: // ID - return ID; + case 0: // SUCCESS + return SUCCESS; default: return null; } @@ -31315,562 +35179,428 @@ public class Server { } // isset id assignments - private static final int __ISACTIVE_ISSET_ID = 0; + private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.NEW_NAME, new org.apache.thrift.meta_data.FieldMetaData("newName", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.SHORTDESC, new org.apache.thrift.meta_data.FieldMetaData("shortdesc", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.DESC, new org.apache.thrift.meta_data.FieldMetaData("desc", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.IS_ACTIVE, new org.apache.thrift.meta_data.FieldMetaData("isActive", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - tmpMap.put(_Fields.IMAGEID, new org.apache.thrift.meta_data.FieldMetaData("imageid", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.IMAGEVERSION, new org.apache.thrift.meta_data.FieldMetaData("imageversion", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.USER, new org.apache.thrift.meta_data.FieldMetaData("user", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.FIRSTNAME, new org.apache.thrift.meta_data.FieldMetaData("firstname", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.LASTNAME, new org.apache.thrift.meta_data.FieldMetaData("lastname", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.UNIVERSITY, new org.apache.thrift.meta_data.FieldMetaData("university", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("Mail", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TEL, new org.apache.thrift.meta_data.FieldMetaData("Tel", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.FAK, new org.apache.thrift.meta_data.FieldMetaData("Fak", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateLecturedata_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateLecturedata_result.class, metaDataMap); } - public updateLecturedata_args() { + public updateLecturedata_result() { } - public updateLecturedata_args( - String name, - String newName, - String shortdesc, - String desc, - String startDate, - String endDate, - boolean isActive, - String imageid, - String imageversion, - String user, - String firstname, - String lastname, - String university, - String Mail, - String Tel, - String Fak, - String id) + public updateLecturedata_result( + boolean success) { this(); - this.name = name; - this.newName = newName; - this.shortdesc = shortdesc; - this.desc = desc; - this.startDate = startDate; - this.endDate = endDate; - this.isActive = isActive; - setIsActiveIsSet(true); - this.imageid = imageid; - this.imageversion = imageversion; - this.user = user; - this.firstname = firstname; - this.lastname = lastname; - this.university = university; - this.Mail = Mail; - this.Tel = Tel; - this.Fak = Fak; - this.id = id; + this.success = success; + setSuccessIsSet(true); } /** * Performs a deep copy on other. */ - public updateLecturedata_args(updateLecturedata_args other) { + public updateLecturedata_result(updateLecturedata_result other) { __isset_bitfield = other.__isset_bitfield; - if (other.isSetName()) { - this.name = other.name; - } - if (other.isSetNewName()) { - this.newName = other.newName; - } - if (other.isSetShortdesc()) { - this.shortdesc = other.shortdesc; - } - if (other.isSetDesc()) { - this.desc = other.desc; - } - if (other.isSetStartDate()) { - this.startDate = other.startDate; - } - if (other.isSetEndDate()) { - this.endDate = other.endDate; - } - this.isActive = other.isActive; - if (other.isSetImageid()) { - this.imageid = other.imageid; - } - if (other.isSetImageversion()) { - this.imageversion = other.imageversion; - } - if (other.isSetUser()) { - this.user = other.user; - } - if (other.isSetFirstname()) { - this.firstname = other.firstname; - } - if (other.isSetLastname()) { - this.lastname = other.lastname; - } - if (other.isSetUniversity()) { - this.university = other.university; - } - if (other.isSetMail()) { - this.Mail = other.Mail; - } - if (other.isSetTel()) { - this.Tel = other.Tel; - } - if (other.isSetFak()) { - this.Fak = other.Fak; - } - if (other.isSetId()) { - this.id = other.id; - } + this.success = other.success; } - public updateLecturedata_args deepCopy() { - return new updateLecturedata_args(this); + public updateLecturedata_result deepCopy() { + return new updateLecturedata_result(this); } @Override public void clear() { - this.name = null; - this.newName = null; - this.shortdesc = null; - this.desc = null; - this.startDate = null; - this.endDate = null; - setIsActiveIsSet(false); - this.isActive = false; - this.imageid = null; - this.imageversion = null; - this.user = null; - this.firstname = null; - this.lastname = null; - this.university = null; - this.Mail = null; - this.Tel = null; - this.Fak = null; - this.id = null; - } - - public String getName() { - return this.name; - } - - public updateLecturedata_args setName(String name) { - this.name = name; - return this; - } - - public void unsetName() { - this.name = null; - } - - /** Returns true if field name is set (has been assigned a value) and false otherwise */ - public boolean isSetName() { - return this.name != null; - } - - public void setNameIsSet(boolean value) { - if (!value) { - this.name = null; - } - } - - public String getNewName() { - return this.newName; - } - - public updateLecturedata_args setNewName(String newName) { - this.newName = newName; - return this; - } - - public void unsetNewName() { - this.newName = null; - } - - /** Returns true if field newName is set (has been assigned a value) and false otherwise */ - public boolean isSetNewName() { - return this.newName != null; - } - - public void setNewNameIsSet(boolean value) { - if (!value) { - this.newName = null; - } - } - - public String getShortdesc() { - return this.shortdesc; - } - - public updateLecturedata_args setShortdesc(String shortdesc) { - this.shortdesc = shortdesc; - return this; - } - - public void unsetShortdesc() { - this.shortdesc = null; - } - - /** Returns true if field shortdesc is set (has been assigned a value) and false otherwise */ - public boolean isSetShortdesc() { - return this.shortdesc != null; - } - - public void setShortdescIsSet(boolean value) { - if (!value) { - this.shortdesc = null; - } - } - - public String getDesc() { - return this.desc; - } - - public updateLecturedata_args setDesc(String desc) { - this.desc = desc; - return this; - } - - public void unsetDesc() { - this.desc = null; - } - - /** Returns true if field desc is set (has been assigned a value) and false otherwise */ - public boolean isSetDesc() { - return this.desc != null; - } - - public void setDescIsSet(boolean value) { - if (!value) { - this.desc = null; - } - } - - public String getStartDate() { - return this.startDate; - } - - public updateLecturedata_args setStartDate(String startDate) { - this.startDate = startDate; - return this; - } - - public void unsetStartDate() { - this.startDate = null; - } - - /** Returns true if field startDate is set (has been assigned a value) and false otherwise */ - public boolean isSetStartDate() { - return this.startDate != null; - } - - public void setStartDateIsSet(boolean value) { - if (!value) { - this.startDate = null; - } - } - - public String getEndDate() { - return this.endDate; - } - - public updateLecturedata_args setEndDate(String endDate) { - this.endDate = endDate; - return this; - } - - public void unsetEndDate() { - this.endDate = null; - } - - /** Returns true if field endDate is set (has been assigned a value) and false otherwise */ - public boolean isSetEndDate() { - return this.endDate != null; - } - - public void setEndDateIsSet(boolean value) { - if (!value) { - this.endDate = null; - } - } - - public boolean isIsActive() { - return this.isActive; - } - - public updateLecturedata_args setIsActive(boolean isActive) { - this.isActive = isActive; - setIsActiveIsSet(true); - return this; - } - - public void unsetIsActive() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISACTIVE_ISSET_ID); - } - - /** Returns true if field isActive is set (has been assigned a value) and false otherwise */ - public boolean isSetIsActive() { - return EncodingUtils.testBit(__isset_bitfield, __ISACTIVE_ISSET_ID); - } - - public void setIsActiveIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISACTIVE_ISSET_ID, value); + setSuccessIsSet(false); + this.success = false; } - public String getImageid() { - return this.imageid; + public boolean isSuccess() { + return this.success; } - public updateLecturedata_args setImageid(String imageid) { - this.imageid = imageid; + public updateLecturedata_result setSuccess(boolean success) { + this.success = success; + setSuccessIsSet(true); return this; } - public void unsetImageid() { - this.imageid = null; + public void unsetSuccess() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } - /** Returns true if field imageid is set (has been assigned a value) and false otherwise */ - public boolean isSetImageid() { - return this.imageid != null; + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } - public void setImageidIsSet(boolean value) { - if (!value) { - this.imageid = null; - } + public void setSuccessIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } - public String getImageversion() { - return this.imageversion; - } + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Boolean)value); + } + break; - public updateLecturedata_args setImageversion(String imageversion) { - this.imageversion = imageversion; - return this; + } } - public void unsetImageversion() { - this.imageversion = null; - } + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return Boolean.valueOf(isSuccess()); - /** Returns true if field imageversion is set (has been assigned a value) and false otherwise */ - public boolean isSetImageversion() { - return this.imageversion != null; + } + throw new IllegalStateException(); } - public void setImageversionIsSet(boolean value) { - if (!value) { - this.imageversion = null; + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); } - } - public String getUser() { - return this.user; + switch (field) { + case SUCCESS: + return isSetSuccess(); + } + throw new IllegalStateException(); } - public updateLecturedata_args setUser(String user) { - this.user = user; - return this; + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof updateLecturedata_result) + return this.equals((updateLecturedata_result)that); + return false; } - public void unsetUser() { - this.user = null; + public boolean equals(updateLecturedata_result that) { + if (that == null) + return false; + + boolean this_present_success = true; + boolean that_present_success = true; + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (this.success != that.success) + return false; + } + + return true; } - /** Returns true if field user is set (has been assigned a value) and false otherwise */ - public boolean isSetUser() { - return this.user != null; + @Override + public int hashCode() { + return 0; } - public void setUserIsSet(boolean value) { - if (!value) { - this.user = null; + @Override + public int compareTo(updateLecturedata_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); } - } - public String getFirstname() { - return this.firstname; - } + int lastComparison = 0; - public updateLecturedata_args setFirstname(String firstname) { - this.firstname = firstname; - return this; + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; } - public void unsetFirstname() { - this.firstname = null; + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); } - /** Returns true if field firstname is set (has been assigned a value) and false otherwise */ - public boolean isSetFirstname() { - return this.firstname != null; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } - public void setFirstnameIsSet(boolean value) { - if (!value) { - this.firstname = null; + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } - } - public String getLastname() { - return this.lastname; - } + @Override + public String toString() { + StringBuilder sb = new StringBuilder("updateLecturedata_result("); + boolean first = true; - public updateLecturedata_args setLastname(String lastname) { - this.lastname = lastname; - return this; + sb.append("success:"); + sb.append(this.success); + first = false; + sb.append(")"); + return sb.toString(); } - public void unsetLastname() { - this.lastname = null; + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity } - /** Returns true if field lastname is set (has been assigned a value) and false otherwise */ - public boolean isSetLastname() { - return this.lastname != null; + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } } - public void setLastnameIsSet(boolean value) { - if (!value) { - this.lastname = null; + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); } } - public String getUniversity() { - return this.university; + private static class updateLecturedata_resultStandardSchemeFactory implements SchemeFactory { + public updateLecturedata_resultStandardScheme getScheme() { + return new updateLecturedata_resultStandardScheme(); + } } - public updateLecturedata_args setUniversity(String university) { - this.university = university; - return this; - } + private static class updateLecturedata_resultStandardScheme extends StandardScheme { - public void unsetUniversity() { - this.university = null; - } + public void read(org.apache.thrift.protocol.TProtocol iprot, updateLecturedata_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); - /** Returns true if field university is set (has been assigned a value) and false otherwise */ - public boolean isSetUniversity() { - return this.university != null; - } + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } - public void setUniversityIsSet(boolean value) { - if (!value) { - this.university = null; + public void write(org.apache.thrift.protocol.TProtocol oprot, updateLecturedata_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeBool(struct.success); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); } - } - public String getMail() { - return this.Mail; } - public updateLecturedata_args setMail(String Mail) { - this.Mail = Mail; - return this; + private static class updateLecturedata_resultTupleSchemeFactory implements SchemeFactory { + public updateLecturedata_resultTupleScheme getScheme() { + return new updateLecturedata_resultTupleScheme(); + } } - public void unsetMail() { - this.Mail = null; - } + private static class updateLecturedata_resultTupleScheme extends TupleScheme { - /** Returns true if field Mail is set (has been assigned a value) and false otherwise */ - public boolean isSetMail() { - return this.Mail != null; - } + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, updateLecturedata_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + oprot.writeBool(struct.success); + } + } - public void setMailIsSet(boolean value) { - if (!value) { - this.Mail = null; + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, updateLecturedata_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } } } - public String getTel() { - return this.Tel; - } + } - public updateLecturedata_args setTel(String Tel) { - this.Tel = Tel; - return this; - } + public static class deleteImageServer_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteImageServer_args"); - public void unsetTel() { - this.Tel = null; - } + private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("version", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)3); - /** Returns true if field Tel is set (has been assigned a value) and false otherwise */ - public boolean isSetTel() { - return this.Tel != null; + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new deleteImageServer_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteImageServer_argsTupleSchemeFactory()); } - public void setTelIsSet(boolean value) { - if (!value) { - this.Tel = null; + public String id; // required + public String version; // required + public String token; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + ID((short)1, "id"), + VERSION((short)2, "version"), + TOKEN((short)3, "token"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } } - } - public String getFak() { - return this.Fak; + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // ID + return ID; + case 2: // VERSION + return VERSION; + case 3: // TOKEN + return TOKEN; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } } - public updateLecturedata_args setFak(String Fak) { - this.Fak = Fak; - return this; + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.VERSION, new org.apache.thrift.meta_data.FieldMetaData("version", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageServer_args.class, metaDataMap); } - public void unsetFak() { - this.Fak = null; + public deleteImageServer_args() { } - /** Returns true if field Fak is set (has been assigned a value) and false otherwise */ - public boolean isSetFak() { - return this.Fak != null; + public deleteImageServer_args( + String id, + String version, + String token) + { + this(); + this.id = id; + this.version = version; + this.token = token; } - public void setFakIsSet(boolean value) { - if (!value) { - this.Fak = null; + /** + * Performs a deep copy on other. + */ + public deleteImageServer_args(deleteImageServer_args other) { + if (other.isSetId()) { + this.id = other.id; + } + if (other.isSetVersion()) { + this.version = other.version; + } + if (other.isSetToken()) { + this.token = other.token; } } + public deleteImageServer_args deepCopy() { + return new deleteImageServer_args(this); + } + + @Override + public void clear() { + this.id = null; + this.version = null; + this.token = null; + } + public String getId() { return this.id; } - public updateLecturedata_args setId(String id) { + public deleteImageServer_args setId(String id) { this.id = id; return this; } @@ -31890,141 +35620,77 @@ public class Server { } } - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case NAME: - if (value == null) { - unsetName(); - } else { - setName((String)value); - } - break; - - case NEW_NAME: - if (value == null) { - unsetNewName(); - } else { - setNewName((String)value); - } - break; - - case SHORTDESC: - if (value == null) { - unsetShortdesc(); - } else { - setShortdesc((String)value); - } - break; - - case DESC: - if (value == null) { - unsetDesc(); - } else { - setDesc((String)value); - } - break; - - case START_DATE: - if (value == null) { - unsetStartDate(); - } else { - setStartDate((String)value); - } - break; - - case END_DATE: - if (value == null) { - unsetEndDate(); - } else { - setEndDate((String)value); - } - break; + public String getVersion() { + return this.version; + } - case IS_ACTIVE: - if (value == null) { - unsetIsActive(); - } else { - setIsActive((Boolean)value); - } - break; + public deleteImageServer_args setVersion(String version) { + this.version = version; + return this; + } - case IMAGEID: - if (value == null) { - unsetImageid(); - } else { - setImageid((String)value); - } - break; + public void unsetVersion() { + this.version = null; + } - case IMAGEVERSION: - if (value == null) { - unsetImageversion(); - } else { - setImageversion((String)value); - } - break; + /** Returns true if field version is set (has been assigned a value) and false otherwise */ + public boolean isSetVersion() { + return this.version != null; + } - case USER: - if (value == null) { - unsetUser(); - } else { - setUser((String)value); - } - break; + public void setVersionIsSet(boolean value) { + if (!value) { + this.version = null; + } + } - case FIRSTNAME: - if (value == null) { - unsetFirstname(); - } else { - setFirstname((String)value); - } - break; + public String getToken() { + return this.token; + } - case LASTNAME: - if (value == null) { - unsetLastname(); - } else { - setLastname((String)value); - } - break; + public deleteImageServer_args setToken(String token) { + this.token = token; + return this; + } - case UNIVERSITY: - if (value == null) { - unsetUniversity(); - } else { - setUniversity((String)value); - } - break; + public void unsetToken() { + this.token = null; + } - case MAIL: - if (value == null) { - unsetMail(); - } else { - setMail((String)value); - } - break; + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; + } - case TEL: + public void setTokenIsSet(boolean value) { + if (!value) { + this.token = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case ID: if (value == null) { - unsetTel(); + unsetId(); } else { - setTel((String)value); + setId((String)value); } break; - case FAK: + case VERSION: if (value == null) { - unsetFak(); + unsetVersion(); } else { - setFak((String)value); + setVersion((String)value); } break; - case ID: + case TOKEN: if (value == null) { - unsetId(); + unsetToken(); } else { - setId((String)value); + setToken((String)value); } break; @@ -32033,57 +35699,15 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case NAME: - return getName(); - - case NEW_NAME: - return getNewName(); - - case SHORTDESC: - return getShortdesc(); - - case DESC: - return getDesc(); - - case START_DATE: - return getStartDate(); - - case END_DATE: - return getEndDate(); - - case IS_ACTIVE: - return Boolean.valueOf(isIsActive()); - - case IMAGEID: - return getImageid(); - - case IMAGEVERSION: - return getImageversion(); - - case USER: - return getUser(); - - case FIRSTNAME: - return getFirstname(); - - case LASTNAME: - return getLastname(); - - case UNIVERSITY: - return getUniversity(); - - case MAIL: - return getMail(); - - case TEL: - return getTel(); - - case FAK: - return getFak(); - case ID: return getId(); + case VERSION: + return getVersion(); + + case TOKEN: + return getToken(); + } throw new IllegalStateException(); } @@ -32095,40 +35719,12 @@ public class Server { } switch (field) { - case NAME: - return isSetName(); - case NEW_NAME: - return isSetNewName(); - case SHORTDESC: - return isSetShortdesc(); - case DESC: - return isSetDesc(); - case START_DATE: - return isSetStartDate(); - case END_DATE: - return isSetEndDate(); - case IS_ACTIVE: - return isSetIsActive(); - case IMAGEID: - return isSetImageid(); - case IMAGEVERSION: - return isSetImageversion(); - case USER: - return isSetUser(); - case FIRSTNAME: - return isSetFirstname(); - case LASTNAME: - return isSetLastname(); - case UNIVERSITY: - return isSetUniversity(); - case MAIL: - return isSetMail(); - case TEL: - return isSetTel(); - case FAK: - return isSetFak(); case ID: return isSetId(); + case VERSION: + return isSetVersion(); + case TOKEN: + return isSetToken(); } throw new IllegalStateException(); } @@ -32137,159 +35733,15 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof updateLecturedata_args) - return this.equals((updateLecturedata_args)that); + if (that instanceof deleteImageServer_args) + return this.equals((deleteImageServer_args)that); return false; } - public boolean equals(updateLecturedata_args that) { + public boolean equals(deleteImageServer_args that) { if (that == null) return false; - boolean this_present_name = true && this.isSetName(); - boolean that_present_name = true && that.isSetName(); - if (this_present_name || that_present_name) { - if (!(this_present_name && that_present_name)) - return false; - if (!this.name.equals(that.name)) - return false; - } - - boolean this_present_newName = true && this.isSetNewName(); - boolean that_present_newName = true && that.isSetNewName(); - if (this_present_newName || that_present_newName) { - if (!(this_present_newName && that_present_newName)) - return false; - if (!this.newName.equals(that.newName)) - return false; - } - - boolean this_present_shortdesc = true && this.isSetShortdesc(); - boolean that_present_shortdesc = true && that.isSetShortdesc(); - if (this_present_shortdesc || that_present_shortdesc) { - if (!(this_present_shortdesc && that_present_shortdesc)) - return false; - if (!this.shortdesc.equals(that.shortdesc)) - return false; - } - - boolean this_present_desc = true && this.isSetDesc(); - boolean that_present_desc = true && that.isSetDesc(); - if (this_present_desc || that_present_desc) { - if (!(this_present_desc && that_present_desc)) - return false; - if (!this.desc.equals(that.desc)) - return false; - } - - boolean this_present_startDate = true && this.isSetStartDate(); - boolean that_present_startDate = true && that.isSetStartDate(); - if (this_present_startDate || that_present_startDate) { - if (!(this_present_startDate && that_present_startDate)) - return false; - if (!this.startDate.equals(that.startDate)) - return false; - } - - boolean this_present_endDate = true && this.isSetEndDate(); - boolean that_present_endDate = true && that.isSetEndDate(); - if (this_present_endDate || that_present_endDate) { - if (!(this_present_endDate && that_present_endDate)) - return false; - if (!this.endDate.equals(that.endDate)) - return false; - } - - boolean this_present_isActive = true; - boolean that_present_isActive = true; - if (this_present_isActive || that_present_isActive) { - if (!(this_present_isActive && that_present_isActive)) - return false; - if (this.isActive != that.isActive) - return false; - } - - boolean this_present_imageid = true && this.isSetImageid(); - boolean that_present_imageid = true && that.isSetImageid(); - if (this_present_imageid || that_present_imageid) { - if (!(this_present_imageid && that_present_imageid)) - return false; - if (!this.imageid.equals(that.imageid)) - return false; - } - - boolean this_present_imageversion = true && this.isSetImageversion(); - boolean that_present_imageversion = true && that.isSetImageversion(); - if (this_present_imageversion || that_present_imageversion) { - if (!(this_present_imageversion && that_present_imageversion)) - return false; - if (!this.imageversion.equals(that.imageversion)) - return false; - } - - boolean this_present_user = true && this.isSetUser(); - boolean that_present_user = true && that.isSetUser(); - if (this_present_user || that_present_user) { - if (!(this_present_user && that_present_user)) - return false; - if (!this.user.equals(that.user)) - return false; - } - - boolean this_present_firstname = true && this.isSetFirstname(); - boolean that_present_firstname = true && that.isSetFirstname(); - if (this_present_firstname || that_present_firstname) { - if (!(this_present_firstname && that_present_firstname)) - return false; - if (!this.firstname.equals(that.firstname)) - return false; - } - - boolean this_present_lastname = true && this.isSetLastname(); - boolean that_present_lastname = true && that.isSetLastname(); - if (this_present_lastname || that_present_lastname) { - if (!(this_present_lastname && that_present_lastname)) - return false; - if (!this.lastname.equals(that.lastname)) - return false; - } - - boolean this_present_university = true && this.isSetUniversity(); - boolean that_present_university = true && that.isSetUniversity(); - if (this_present_university || that_present_university) { - if (!(this_present_university && that_present_university)) - return false; - if (!this.university.equals(that.university)) - return false; - } - - boolean this_present_Mail = true && this.isSetMail(); - boolean that_present_Mail = true && that.isSetMail(); - if (this_present_Mail || that_present_Mail) { - if (!(this_present_Mail && that_present_Mail)) - return false; - if (!this.Mail.equals(that.Mail)) - return false; - } - - boolean this_present_Tel = true && this.isSetTel(); - boolean that_present_Tel = true && that.isSetTel(); - if (this_present_Tel || that_present_Tel) { - if (!(this_present_Tel && that_present_Tel)) - return false; - if (!this.Tel.equals(that.Tel)) - return false; - } - - boolean this_present_Fak = true && this.isSetFak(); - boolean that_present_Fak = true && that.isSetFak(); - if (this_present_Fak || that_present_Fak) { - if (!(this_present_Fak && that_present_Fak)) - return false; - if (!this.Fak.equals(that.Fak)) - return false; - } - boolean this_present_id = true && this.isSetId(); boolean that_present_id = true && that.isSetId(); if (this_present_id || that_present_id) { @@ -32299,341 +35751,111 @@ public class Server { return false; } - return true; - } - - @Override - public int hashCode() { - return 0; - } - - @Override - public int compareTo(updateLecturedata_args other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); + boolean this_present_version = true && this.isSetVersion(); + boolean that_present_version = true && that.isSetVersion(); + if (this_present_version || that_present_version) { + if (!(this_present_version && that_present_version)) + return false; + if (!this.version.equals(that.version)) + return false; } - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetNewName()).compareTo(other.isSetNewName()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetNewName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newName, other.newName); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetShortdesc()).compareTo(other.isSetShortdesc()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetShortdesc()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shortdesc, other.shortdesc); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetDesc()).compareTo(other.isSetDesc()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDesc()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.desc, other.desc); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(other.isSetStartDate()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetStartDate()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, other.startDate); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(other.isSetEndDate()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetEndDate()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, other.endDate); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetIsActive()).compareTo(other.isSetIsActive()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetIsActive()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isActive, other.isActive); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetImageid()).compareTo(other.isSetImageid()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetImageid()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageid, other.imageid); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetImageversion()).compareTo(other.isSetImageversion()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetImageversion()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageversion, other.imageversion); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetUser()).compareTo(other.isSetUser()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetUser()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, other.user); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetFirstname()).compareTo(other.isSetFirstname()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetFirstname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.firstname, other.firstname); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetLastname()).compareTo(other.isSetLastname()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetLastname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastname, other.lastname); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetUniversity()).compareTo(other.isSetUniversity()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetUniversity()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.university, other.university); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetMail()).compareTo(other.isSetMail()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetMail()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Mail, other.Mail); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetTel()).compareTo(other.isSetTel()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetTel()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Tel, other.Tel); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetFak()).compareTo(other.isSetFak()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetFak()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Fak, other.Fak); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id); - if (lastComparison != 0) { - return lastComparison; - } + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) + return false; + if (!this.token.equals(that.token)) + return false; } - 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); + return true; } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("updateLecturedata_args("); - boolean first = true; - - sb.append("name:"); - if (this.name == null) { - sb.append("null"); - } else { - sb.append(this.name); - } - first = false; - if (!first) sb.append(", "); - sb.append("newName:"); - if (this.newName == null) { - sb.append("null"); - } else { - sb.append(this.newName); - } - first = false; - if (!first) sb.append(", "); - sb.append("shortdesc:"); - if (this.shortdesc == null) { - sb.append("null"); - } else { - sb.append(this.shortdesc); - } - first = false; - if (!first) sb.append(", "); - sb.append("desc:"); - if (this.desc == null) { - sb.append("null"); - } else { - sb.append(this.desc); - } - first = false; - if (!first) sb.append(", "); - sb.append("startDate:"); - if (this.startDate == null) { - sb.append("null"); - } else { - sb.append(this.startDate); - } - first = false; - if (!first) sb.append(", "); - sb.append("endDate:"); - if (this.endDate == null) { - sb.append("null"); - } else { - sb.append(this.endDate); - } - first = false; - if (!first) sb.append(", "); - sb.append("isActive:"); - sb.append(this.isActive); - first = false; - if (!first) sb.append(", "); - sb.append("imageid:"); - if (this.imageid == null) { - sb.append("null"); - } else { - sb.append(this.imageid); + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(deleteImageServer_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); } - first = false; - if (!first) sb.append(", "); - sb.append("imageversion:"); - if (this.imageversion == null) { - sb.append("null"); - } else { - sb.append(this.imageversion); + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId()); + if (lastComparison != 0) { + return lastComparison; } - first = false; - if (!first) sb.append(", "); - sb.append("user:"); - if (this.user == null) { - sb.append("null"); - } else { - sb.append(this.user); + if (isSetId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id); + if (lastComparison != 0) { + return lastComparison; + } } - first = false; - if (!first) sb.append(", "); - sb.append("firstname:"); - if (this.firstname == null) { - sb.append("null"); - } else { - sb.append(this.firstname); + lastComparison = Boolean.valueOf(isSetVersion()).compareTo(other.isSetVersion()); + if (lastComparison != 0) { + return lastComparison; } - first = false; - if (!first) sb.append(", "); - sb.append("lastname:"); - if (this.lastname == null) { - sb.append("null"); - } else { - sb.append(this.lastname); + if (isSetVersion()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.version, other.version); + if (lastComparison != 0) { + return lastComparison; + } } - first = false; - if (!first) sb.append(", "); - sb.append("university:"); - if (this.university == null) { - sb.append("null"); - } else { - sb.append(this.university); + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); + if (lastComparison != 0) { + return lastComparison; } - first = false; - if (!first) sb.append(", "); - sb.append("Mail:"); - if (this.Mail == null) { - sb.append("null"); - } else { - sb.append(this.Mail); + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); + if (lastComparison != 0) { + return lastComparison; + } } - first = false; - if (!first) sb.append(", "); - sb.append("Tel:"); - if (this.Tel == null) { + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("deleteImageServer_args("); + boolean first = true; + + sb.append("id:"); + if (this.id == null) { sb.append("null"); } else { - sb.append(this.Tel); + sb.append(this.id); } first = false; if (!first) sb.append(", "); - sb.append("Fak:"); - if (this.Fak == null) { + sb.append("version:"); + if (this.version == null) { sb.append("null"); } else { - sb.append(this.Fak); + sb.append(this.version); } first = false; if (!first) sb.append(", "); - sb.append("id:"); - if (this.id == null) { + sb.append("token:"); + if (this.token == null) { sb.append("null"); } else { - sb.append(this.id); + sb.append(this.token); } first = false; sb.append(")"); @@ -32655,23 +35877,21 @@ public class Server { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class updateLecturedata_argsStandardSchemeFactory implements SchemeFactory { - public updateLecturedata_argsStandardScheme getScheme() { - return new updateLecturedata_argsStandardScheme(); + private static class deleteImageServer_argsStandardSchemeFactory implements SchemeFactory { + public deleteImageServer_argsStandardScheme getScheme() { + return new deleteImageServer_argsStandardScheme(); } } - private static class updateLecturedata_argsStandardScheme extends StandardScheme { + private static class deleteImageServer_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, updateLecturedata_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageServer_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -32681,138 +35901,26 @@ public class Server { break; } switch (schemeField.id) { - case 1: // NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.name = iprot.readString(); - struct.setNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // NEW_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.newName = iprot.readString(); - struct.setNewNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // SHORTDESC - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.shortdesc = iprot.readString(); - struct.setShortdescIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // DESC - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.desc = iprot.readString(); - struct.setDescIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // START_DATE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.startDate = iprot.readString(); - struct.setStartDateIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // END_DATE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.endDate = iprot.readString(); - struct.setEndDateIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 7: // IS_ACTIVE - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.isActive = iprot.readBool(); - struct.setIsActiveIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 8: // IMAGEID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imageid = iprot.readString(); - struct.setImageidIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 9: // IMAGEVERSION - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imageversion = iprot.readString(); - struct.setImageversionIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 10: // USER - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.user = iprot.readString(); - struct.setUserIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 11: // FIRSTNAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.firstname = iprot.readString(); - struct.setFirstnameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 12: // LASTNAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.lastname = iprot.readString(); - struct.setLastnameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 13: // UNIVERSITY - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.university = iprot.readString(); - struct.setUniversityIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 14: // MAIL - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.Mail = iprot.readString(); - struct.setMailIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 15: // TEL + case 1: // ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.Tel = iprot.readString(); - struct.setTelIsSet(true); + struct.id = iprot.readString(); + struct.setIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 16: // FAK + case 2: // VERSION if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.Fak = iprot.readString(); - struct.setFakIsSet(true); + struct.version = iprot.readString(); + struct.setVersionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 17: // ID + case 3: // TOKEN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.id = iprot.readString(); - struct.setIdIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -32828,91 +35936,23 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, updateLecturedata_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteImageServer_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.name != null) { - oprot.writeFieldBegin(NAME_FIELD_DESC); - oprot.writeString(struct.name); - oprot.writeFieldEnd(); - } - if (struct.newName != null) { - oprot.writeFieldBegin(NEW_NAME_FIELD_DESC); - oprot.writeString(struct.newName); - oprot.writeFieldEnd(); - } - if (struct.shortdesc != null) { - oprot.writeFieldBegin(SHORTDESC_FIELD_DESC); - oprot.writeString(struct.shortdesc); - oprot.writeFieldEnd(); - } - if (struct.desc != null) { - oprot.writeFieldBegin(DESC_FIELD_DESC); - oprot.writeString(struct.desc); - oprot.writeFieldEnd(); - } - if (struct.startDate != null) { - oprot.writeFieldBegin(START_DATE_FIELD_DESC); - oprot.writeString(struct.startDate); - oprot.writeFieldEnd(); - } - if (struct.endDate != null) { - oprot.writeFieldBegin(END_DATE_FIELD_DESC); - oprot.writeString(struct.endDate); - oprot.writeFieldEnd(); - } - oprot.writeFieldBegin(IS_ACTIVE_FIELD_DESC); - oprot.writeBool(struct.isActive); - oprot.writeFieldEnd(); - if (struct.imageid != null) { - oprot.writeFieldBegin(IMAGEID_FIELD_DESC); - oprot.writeString(struct.imageid); - oprot.writeFieldEnd(); - } - if (struct.imageversion != null) { - oprot.writeFieldBegin(IMAGEVERSION_FIELD_DESC); - oprot.writeString(struct.imageversion); - oprot.writeFieldEnd(); - } - if (struct.user != null) { - oprot.writeFieldBegin(USER_FIELD_DESC); - oprot.writeString(struct.user); - oprot.writeFieldEnd(); - } - if (struct.firstname != null) { - oprot.writeFieldBegin(FIRSTNAME_FIELD_DESC); - oprot.writeString(struct.firstname); - oprot.writeFieldEnd(); - } - if (struct.lastname != null) { - oprot.writeFieldBegin(LASTNAME_FIELD_DESC); - oprot.writeString(struct.lastname); - oprot.writeFieldEnd(); - } - if (struct.university != null) { - oprot.writeFieldBegin(UNIVERSITY_FIELD_DESC); - oprot.writeString(struct.university); - oprot.writeFieldEnd(); - } - if (struct.Mail != null) { - oprot.writeFieldBegin(MAIL_FIELD_DESC); - oprot.writeString(struct.Mail); - oprot.writeFieldEnd(); - } - if (struct.Tel != null) { - oprot.writeFieldBegin(TEL_FIELD_DESC); - oprot.writeString(struct.Tel); + if (struct.id != null) { + oprot.writeFieldBegin(ID_FIELD_DESC); + oprot.writeString(struct.id); oprot.writeFieldEnd(); } - if (struct.Fak != null) { - oprot.writeFieldBegin(FAK_FIELD_DESC); - oprot.writeString(struct.Fak); + if (struct.version != null) { + oprot.writeFieldBegin(VERSION_FIELD_DESC); + oprot.writeString(struct.version); oprot.writeFieldEnd(); } - if (struct.id != null) { - oprot.writeFieldBegin(ID_FIELD_DESC); - oprot.writeString(struct.id); + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -32921,209 +35961,69 @@ public class Server { } - private static class updateLecturedata_argsTupleSchemeFactory implements SchemeFactory { - public updateLecturedata_argsTupleScheme getScheme() { - return new updateLecturedata_argsTupleScheme(); + private static class deleteImageServer_argsTupleSchemeFactory implements SchemeFactory { + public deleteImageServer_argsTupleScheme getScheme() { + return new deleteImageServer_argsTupleScheme(); } } - private static class updateLecturedata_argsTupleScheme extends TupleScheme { + private static class deleteImageServer_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, updateLecturedata_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, deleteImageServer_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetName()) { + if (struct.isSetId()) { optionals.set(0); } - if (struct.isSetNewName()) { + if (struct.isSetVersion()) { optionals.set(1); } - if (struct.isSetShortdesc()) { + if (struct.isSetToken()) { optionals.set(2); } - if (struct.isSetDesc()) { - optionals.set(3); - } - if (struct.isSetStartDate()) { - optionals.set(4); - } - if (struct.isSetEndDate()) { - optionals.set(5); - } - if (struct.isSetIsActive()) { - optionals.set(6); - } - if (struct.isSetImageid()) { - optionals.set(7); - } - if (struct.isSetImageversion()) { - optionals.set(8); - } - if (struct.isSetUser()) { - optionals.set(9); - } - if (struct.isSetFirstname()) { - optionals.set(10); - } - if (struct.isSetLastname()) { - optionals.set(11); - } - if (struct.isSetUniversity()) { - optionals.set(12); - } - if (struct.isSetMail()) { - optionals.set(13); - } - if (struct.isSetTel()) { - optionals.set(14); - } - if (struct.isSetFak()) { - optionals.set(15); - } + oprot.writeBitSet(optionals, 3); if (struct.isSetId()) { - optionals.set(16); - } - oprot.writeBitSet(optionals, 17); - if (struct.isSetName()) { - oprot.writeString(struct.name); - } - if (struct.isSetNewName()) { - oprot.writeString(struct.newName); - } - if (struct.isSetShortdesc()) { - oprot.writeString(struct.shortdesc); - } - if (struct.isSetDesc()) { - oprot.writeString(struct.desc); - } - if (struct.isSetStartDate()) { - oprot.writeString(struct.startDate); - } - if (struct.isSetEndDate()) { - oprot.writeString(struct.endDate); - } - if (struct.isSetIsActive()) { - oprot.writeBool(struct.isActive); - } - if (struct.isSetImageid()) { - oprot.writeString(struct.imageid); - } - if (struct.isSetImageversion()) { - oprot.writeString(struct.imageversion); - } - if (struct.isSetUser()) { - oprot.writeString(struct.user); - } - if (struct.isSetFirstname()) { - oprot.writeString(struct.firstname); - } - if (struct.isSetLastname()) { - oprot.writeString(struct.lastname); - } - if (struct.isSetUniversity()) { - oprot.writeString(struct.university); - } - if (struct.isSetMail()) { - oprot.writeString(struct.Mail); - } - if (struct.isSetTel()) { - oprot.writeString(struct.Tel); + oprot.writeString(struct.id); } - if (struct.isSetFak()) { - oprot.writeString(struct.Fak); + if (struct.isSetVersion()) { + oprot.writeString(struct.version); } - if (struct.isSetId()) { - oprot.writeString(struct.id); + if (struct.isSetToken()) { + oprot.writeString(struct.token); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, updateLecturedata_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, deleteImageServer_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(17); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.name = iprot.readString(); - struct.setNameIsSet(true); + struct.id = iprot.readString(); + struct.setIdIsSet(true); } if (incoming.get(1)) { - struct.newName = iprot.readString(); - struct.setNewNameIsSet(true); + struct.version = iprot.readString(); + struct.setVersionIsSet(true); } if (incoming.get(2)) { - struct.shortdesc = iprot.readString(); - struct.setShortdescIsSet(true); - } - if (incoming.get(3)) { - struct.desc = iprot.readString(); - struct.setDescIsSet(true); - } - if (incoming.get(4)) { - struct.startDate = iprot.readString(); - struct.setStartDateIsSet(true); - } - if (incoming.get(5)) { - struct.endDate = iprot.readString(); - struct.setEndDateIsSet(true); - } - if (incoming.get(6)) { - struct.isActive = iprot.readBool(); - struct.setIsActiveIsSet(true); - } - if (incoming.get(7)) { - struct.imageid = iprot.readString(); - struct.setImageidIsSet(true); - } - if (incoming.get(8)) { - struct.imageversion = iprot.readString(); - struct.setImageversionIsSet(true); - } - if (incoming.get(9)) { - struct.user = iprot.readString(); - struct.setUserIsSet(true); - } - if (incoming.get(10)) { - struct.firstname = iprot.readString(); - struct.setFirstnameIsSet(true); - } - if (incoming.get(11)) { - struct.lastname = iprot.readString(); - struct.setLastnameIsSet(true); - } - if (incoming.get(12)) { - struct.university = iprot.readString(); - struct.setUniversityIsSet(true); - } - if (incoming.get(13)) { - struct.Mail = iprot.readString(); - struct.setMailIsSet(true); - } - if (incoming.get(14)) { - struct.Tel = iprot.readString(); - struct.setTelIsSet(true); - } - if (incoming.get(15)) { - struct.Fak = iprot.readString(); - struct.setFakIsSet(true); - } - if (incoming.get(16)) { - struct.id = iprot.readString(); - struct.setIdIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } } } } - public static class updateLecturedata_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateLecturedata_result"); + public static class deleteImageServer_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteImageServer_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new updateLecturedata_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new updateLecturedata_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new deleteImageServer_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteImageServer_resultTupleSchemeFactory()); } public boolean success; // required @@ -33195,13 +36095,13 @@ public class Server { tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateLecturedata_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageServer_result.class, metaDataMap); } - public updateLecturedata_result() { + public deleteImageServer_result() { } - public updateLecturedata_result( + public deleteImageServer_result( boolean success) { this(); @@ -33212,13 +36112,13 @@ public class Server { /** * Performs a deep copy on other. */ - public updateLecturedata_result(updateLecturedata_result other) { + public deleteImageServer_result(deleteImageServer_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; } - public updateLecturedata_result deepCopy() { - return new updateLecturedata_result(this); + public deleteImageServer_result deepCopy() { + return new deleteImageServer_result(this); } @Override @@ -33231,7 +36131,7 @@ public class Server { return this.success; } - public updateLecturedata_result setSuccess(boolean success) { + public deleteImageServer_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; @@ -33289,12 +36189,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof updateLecturedata_result) - return this.equals((updateLecturedata_result)that); + if (that instanceof deleteImageServer_result) + return this.equals((deleteImageServer_result)that); return false; } - public boolean equals(updateLecturedata_result that) { + public boolean equals(deleteImageServer_result that) { if (that == null) return false; @@ -33316,7 +36216,7 @@ public class Server { } @Override - public int compareTo(updateLecturedata_result other) { + public int compareTo(deleteImageServer_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -33350,7 +36250,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("updateLecturedata_result("); + StringBuilder sb = new StringBuilder("deleteImageServer_result("); boolean first = true; sb.append("success:"); @@ -33383,15 +36283,15 @@ public class Server { } } - private static class updateLecturedata_resultStandardSchemeFactory implements SchemeFactory { - public updateLecturedata_resultStandardScheme getScheme() { - return new updateLecturedata_resultStandardScheme(); + private static class deleteImageServer_resultStandardSchemeFactory implements SchemeFactory { + public deleteImageServer_resultStandardScheme getScheme() { + return new deleteImageServer_resultStandardScheme(); } } - private static class updateLecturedata_resultStandardScheme extends StandardScheme { + private static class deleteImageServer_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, updateLecturedata_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageServer_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -33420,7 +36320,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, updateLecturedata_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteImageServer_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -33435,16 +36335,16 @@ public class Server { } - private static class updateLecturedata_resultTupleSchemeFactory implements SchemeFactory { - public updateLecturedata_resultTupleScheme getScheme() { - return new updateLecturedata_resultTupleScheme(); + private static class deleteImageServer_resultTupleSchemeFactory implements SchemeFactory { + public deleteImageServer_resultTupleScheme getScheme() { + return new deleteImageServer_resultTupleScheme(); } } - private static class updateLecturedata_resultTupleScheme extends TupleScheme { + private static class deleteImageServer_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, updateLecturedata_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, deleteImageServer_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -33457,7 +36357,7 @@ public class Server { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, updateLecturedata_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, deleteImageServer_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -33469,25 +36369,28 @@ public class Server { } - public static class deleteImageServer_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteImageServer_args"); + public static class connectedToLecture_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("connectedToLecture_args"); private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("version", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new deleteImageServer_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteImageServer_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new connectedToLecture_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new connectedToLecture_argsTupleSchemeFactory()); } public String id; // required public String version; // required + public String token; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ID((short)1, "id"), - VERSION((short)2, "version"); + VERSION((short)2, "version"), + TOKEN((short)3, "token"); private static final Map byName = new HashMap(); @@ -33506,6 +36409,8 @@ public class Server { return ID; case 2: // VERSION return VERSION; + case 3: // TOKEN + return TOKEN; default: return null; } @@ -33553,49 +36458,57 @@ public class Server { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VERSION, new org.apache.thrift.meta_data.FieldMetaData("version", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageServer_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(connectedToLecture_args.class, metaDataMap); } - public deleteImageServer_args() { + public connectedToLecture_args() { } - public deleteImageServer_args( + public connectedToLecture_args( String id, - String version) + String version, + String token) { this(); this.id = id; this.version = version; + this.token = token; } /** * Performs a deep copy on other. */ - public deleteImageServer_args(deleteImageServer_args other) { + public connectedToLecture_args(connectedToLecture_args other) { if (other.isSetId()) { this.id = other.id; } if (other.isSetVersion()) { this.version = other.version; } + if (other.isSetToken()) { + this.token = other.token; + } } - public deleteImageServer_args deepCopy() { - return new deleteImageServer_args(this); + public connectedToLecture_args deepCopy() { + return new connectedToLecture_args(this); } @Override public void clear() { this.id = null; this.version = null; + this.token = null; } public String getId() { return this.id; } - public deleteImageServer_args setId(String id) { + public connectedToLecture_args setId(String id) { this.id = id; return this; } @@ -33619,7 +36532,7 @@ public class Server { return this.version; } - public deleteImageServer_args setVersion(String version) { + public connectedToLecture_args setVersion(String version) { this.version = version; return this; } @@ -33639,6 +36552,30 @@ public class Server { } } + public String getToken() { + return this.token; + } + + public connectedToLecture_args setToken(String token) { + this.token = token; + return this; + } + + public void unsetToken() { + this.token = null; + } + + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; + } + + public void setTokenIsSet(boolean value) { + if (!value) { + this.token = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case ID: @@ -33657,6 +36594,14 @@ public class Server { } break; + case TOKEN: + if (value == null) { + unsetToken(); + } else { + setToken((String)value); + } + break; + } } @@ -33668,6 +36613,9 @@ public class Server { case VERSION: return getVersion(); + case TOKEN: + return getToken(); + } throw new IllegalStateException(); } @@ -33683,6 +36631,8 @@ public class Server { return isSetId(); case VERSION: return isSetVersion(); + case TOKEN: + return isSetToken(); } throw new IllegalStateException(); } @@ -33691,12 +36641,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof deleteImageServer_args) - return this.equals((deleteImageServer_args)that); + if (that instanceof connectedToLecture_args) + return this.equals((connectedToLecture_args)that); return false; } - public boolean equals(deleteImageServer_args that) { + public boolean equals(connectedToLecture_args that) { if (that == null) return false; @@ -33718,6 +36668,15 @@ public class Server { return false; } + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) + return false; + if (!this.token.equals(that.token)) + return false; + } + return true; } @@ -33727,7 +36686,7 @@ public class Server { } @Override - public int compareTo(deleteImageServer_args other) { + public int compareTo(connectedToLecture_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -33754,6 +36713,16 @@ public class Server { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -33771,7 +36740,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteImageServer_args("); + StringBuilder sb = new StringBuilder("connectedToLecture_args("); boolean first = true; sb.append("id:"); @@ -33789,6 +36758,14 @@ public class Server { sb.append(this.version); } first = false; + if (!first) sb.append(", "); + sb.append("token:"); + if (this.token == null) { + sb.append("null"); + } else { + sb.append(this.token); + } + first = false; sb.append(")"); return sb.toString(); } @@ -33814,15 +36791,15 @@ public class Server { } } - private static class deleteImageServer_argsStandardSchemeFactory implements SchemeFactory { - public deleteImageServer_argsStandardScheme getScheme() { - return new deleteImageServer_argsStandardScheme(); + private static class connectedToLecture_argsStandardSchemeFactory implements SchemeFactory { + public connectedToLecture_argsStandardScheme getScheme() { + return new connectedToLecture_argsStandardScheme(); } } - private static class deleteImageServer_argsStandardScheme extends StandardScheme { + private static class connectedToLecture_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageServer_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, connectedToLecture_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -33848,6 +36825,14 @@ public class Server { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // TOKEN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -33859,7 +36844,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteImageServer_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, connectedToLecture_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -33873,22 +36858,27 @@ public class Server { oprot.writeString(struct.version); oprot.writeFieldEnd(); } + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class deleteImageServer_argsTupleSchemeFactory implements SchemeFactory { - public deleteImageServer_argsTupleScheme getScheme() { - return new deleteImageServer_argsTupleScheme(); + private static class connectedToLecture_argsTupleSchemeFactory implements SchemeFactory { + public connectedToLecture_argsTupleScheme getScheme() { + return new connectedToLecture_argsTupleScheme(); } } - private static class deleteImageServer_argsTupleScheme extends TupleScheme { + private static class connectedToLecture_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteImageServer_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, connectedToLecture_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetId()) { @@ -33897,19 +36887,25 @@ public class Server { if (struct.isSetVersion()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetToken()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetId()) { oprot.writeString(struct.id); } if (struct.isSetVersion()) { oprot.writeString(struct.version); } + if (struct.isSetToken()) { + oprot.writeString(struct.token); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteImageServer_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, connectedToLecture_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.id = iprot.readString(); struct.setIdIsSet(true); @@ -33918,20 +36914,24 @@ public class Server { struct.version = iprot.readString(); struct.setVersionIsSet(true); } + if (incoming.get(2)) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } } } } - public static class deleteImageServer_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteImageServer_result"); + public static class connectedToLecture_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("connectedToLecture_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new deleteImageServer_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteImageServer_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new connectedToLecture_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new connectedToLecture_resultTupleSchemeFactory()); } public boolean success; // required @@ -34003,13 +37003,13 @@ public class Server { tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageServer_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(connectedToLecture_result.class, metaDataMap); } - public deleteImageServer_result() { + public connectedToLecture_result() { } - public deleteImageServer_result( + public connectedToLecture_result( boolean success) { this(); @@ -34020,13 +37020,13 @@ public class Server { /** * Performs a deep copy on other. */ - public deleteImageServer_result(deleteImageServer_result other) { + public connectedToLecture_result(connectedToLecture_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; } - public deleteImageServer_result deepCopy() { - return new deleteImageServer_result(this); + public connectedToLecture_result deepCopy() { + return new connectedToLecture_result(this); } @Override @@ -34039,7 +37039,7 @@ public class Server { return this.success; } - public deleteImageServer_result setSuccess(boolean success) { + public connectedToLecture_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; @@ -34097,12 +37097,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof deleteImageServer_result) - return this.equals((deleteImageServer_result)that); + if (that instanceof connectedToLecture_result) + return this.equals((connectedToLecture_result)that); return false; } - public boolean equals(deleteImageServer_result that) { + public boolean equals(connectedToLecture_result that) { if (that == null) return false; @@ -34124,7 +37124,7 @@ public class Server { } @Override - public int compareTo(deleteImageServer_result other) { + public int compareTo(connectedToLecture_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -34158,7 +37158,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteImageServer_result("); + StringBuilder sb = new StringBuilder("connectedToLecture_result("); boolean first = true; sb.append("success:"); @@ -34191,15 +37191,15 @@ public class Server { } } - private static class deleteImageServer_resultStandardSchemeFactory implements SchemeFactory { - public deleteImageServer_resultStandardScheme getScheme() { - return new deleteImageServer_resultStandardScheme(); + private static class connectedToLecture_resultStandardSchemeFactory implements SchemeFactory { + public connectedToLecture_resultStandardScheme getScheme() { + return new connectedToLecture_resultStandardScheme(); } } - private static class deleteImageServer_resultStandardScheme extends StandardScheme { + private static class connectedToLecture_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageServer_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, connectedToLecture_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -34228,7 +37228,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteImageServer_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, connectedToLecture_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -34243,16 +37243,16 @@ public class Server { } - private static class deleteImageServer_resultTupleSchemeFactory implements SchemeFactory { - public deleteImageServer_resultTupleScheme getScheme() { - return new deleteImageServer_resultTupleScheme(); + private static class connectedToLecture_resultTupleSchemeFactory implements SchemeFactory { + public connectedToLecture_resultTupleScheme getScheme() { + return new connectedToLecture_resultTupleScheme(); } } - private static class deleteImageServer_resultTupleScheme extends TupleScheme { + private static class connectedToLecture_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteImageServer_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, connectedToLecture_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -34265,7 +37265,7 @@ public class Server { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteImageServer_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, connectedToLecture_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -34277,25 +37277,28 @@ public class Server { } - public static class connectedToLecture_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("connectedToLecture_args"); + public static class deleteLecture_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteLecture_args"); private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("version", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField UNIVERSITY_FIELD_DESC = new org.apache.thrift.protocol.TField("university", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new connectedToLecture_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new connectedToLecture_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new deleteLecture_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteLecture_argsTupleSchemeFactory()); } public String id; // required - public String version; // required + public String token; // required + public String university; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ID((short)1, "id"), - VERSION((short)2, "version"); + TOKEN((short)2, "token"), + UNIVERSITY((short)3, "university"); private static final Map byName = new HashMap(); @@ -34312,8 +37315,10 @@ public class Server { switch(fieldId) { case 1: // ID return ID; - case 2: // VERSION - return VERSION; + case 2: // TOKEN + return TOKEN; + case 3: // UNIVERSITY + return UNIVERSITY; default: return null; } @@ -34359,51 +37364,59 @@ 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.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.VERSION, new org.apache.thrift.meta_data.FieldMetaData("version", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.UNIVERSITY, new org.apache.thrift.meta_data.FieldMetaData("university", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(connectedToLecture_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteLecture_args.class, metaDataMap); } - public connectedToLecture_args() { + public deleteLecture_args() { } - public connectedToLecture_args( + public deleteLecture_args( String id, - String version) + String token, + String university) { this(); this.id = id; - this.version = version; + this.token = token; + this.university = university; } /** * Performs a deep copy on other. */ - public connectedToLecture_args(connectedToLecture_args other) { + public deleteLecture_args(deleteLecture_args other) { if (other.isSetId()) { this.id = other.id; } - if (other.isSetVersion()) { - this.version = other.version; + if (other.isSetToken()) { + this.token = other.token; + } + if (other.isSetUniversity()) { + this.university = other.university; } } - public connectedToLecture_args deepCopy() { - return new connectedToLecture_args(this); + public deleteLecture_args deepCopy() { + return new deleteLecture_args(this); } @Override public void clear() { this.id = null; - this.version = null; + this.token = null; + this.university = null; } public String getId() { return this.id; } - public connectedToLecture_args setId(String id) { + public deleteLecture_args setId(String id) { this.id = id; return this; } @@ -34423,27 +37436,51 @@ public class Server { } } - public String getVersion() { - return this.version; + public String getToken() { + return this.token; } - public connectedToLecture_args setVersion(String version) { - this.version = version; + public deleteLecture_args setToken(String token) { + this.token = token; return this; } - public void unsetVersion() { - this.version = null; + public void unsetToken() { + this.token = null; } - /** Returns true if field version is set (has been assigned a value) and false otherwise */ - public boolean isSetVersion() { - return this.version != null; + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; } - public void setVersionIsSet(boolean value) { + public void setTokenIsSet(boolean value) { if (!value) { - this.version = null; + this.token = null; + } + } + + public String getUniversity() { + return this.university; + } + + public deleteLecture_args setUniversity(String university) { + this.university = university; + return this; + } + + public void unsetUniversity() { + this.university = null; + } + + /** Returns true if field university is set (has been assigned a value) and false otherwise */ + public boolean isSetUniversity() { + return this.university != null; + } + + public void setUniversityIsSet(boolean value) { + if (!value) { + this.university = null; } } @@ -34457,11 +37494,19 @@ public class Server { } break; - case VERSION: + case TOKEN: if (value == null) { - unsetVersion(); + unsetToken(); } else { - setVersion((String)value); + setToken((String)value); + } + break; + + case UNIVERSITY: + if (value == null) { + unsetUniversity(); + } else { + setUniversity((String)value); } break; @@ -34473,8 +37518,11 @@ public class Server { case ID: return getId(); - case VERSION: - return getVersion(); + case TOKEN: + return getToken(); + + case UNIVERSITY: + return getUniversity(); } throw new IllegalStateException(); @@ -34489,8 +37537,10 @@ public class Server { switch (field) { case ID: return isSetId(); - case VERSION: - return isSetVersion(); + case TOKEN: + return isSetToken(); + case UNIVERSITY: + return isSetUniversity(); } throw new IllegalStateException(); } @@ -34499,12 +37549,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof connectedToLecture_args) - return this.equals((connectedToLecture_args)that); + if (that instanceof deleteLecture_args) + return this.equals((deleteLecture_args)that); return false; } - public boolean equals(connectedToLecture_args that) { + public boolean equals(deleteLecture_args that) { if (that == null) return false; @@ -34517,12 +37567,21 @@ public class Server { return false; } - boolean this_present_version = true && this.isSetVersion(); - boolean that_present_version = true && that.isSetVersion(); - if (this_present_version || that_present_version) { - if (!(this_present_version && that_present_version)) + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) return false; - if (!this.version.equals(that.version)) + if (!this.token.equals(that.token)) + return false; + } + + boolean this_present_university = true && this.isSetUniversity(); + boolean that_present_university = true && that.isSetUniversity(); + if (this_present_university || that_present_university) { + if (!(this_present_university && that_present_university)) + return false; + if (!this.university.equals(that.university)) return false; } @@ -34535,7 +37594,7 @@ public class Server { } @Override - public int compareTo(connectedToLecture_args other) { + public int compareTo(deleteLecture_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -34552,12 +37611,22 @@ public class Server { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetVersion()).compareTo(other.isSetVersion()); + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); if (lastComparison != 0) { return lastComparison; } - if (isSetVersion()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.version, other.version); + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUniversity()).compareTo(other.isSetUniversity()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUniversity()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.university, other.university); if (lastComparison != 0) { return lastComparison; } @@ -34579,7 +37648,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("connectedToLecture_args("); + StringBuilder sb = new StringBuilder("deleteLecture_args("); boolean first = true; sb.append("id:"); @@ -34590,11 +37659,19 @@ public class Server { } first = false; if (!first) sb.append(", "); - sb.append("version:"); - if (this.version == null) { + sb.append("token:"); + if (this.token == null) { sb.append("null"); } else { - sb.append(this.version); + sb.append(this.token); + } + first = false; + if (!first) sb.append(", "); + sb.append("university:"); + if (this.university == null) { + sb.append("null"); + } else { + sb.append(this.university); } first = false; sb.append(")"); @@ -34622,15 +37699,15 @@ public class Server { } } - private static class connectedToLecture_argsStandardSchemeFactory implements SchemeFactory { - public connectedToLecture_argsStandardScheme getScheme() { - return new connectedToLecture_argsStandardScheme(); + private static class deleteLecture_argsStandardSchemeFactory implements SchemeFactory { + public deleteLecture_argsStandardScheme getScheme() { + return new deleteLecture_argsStandardScheme(); } } - private static class connectedToLecture_argsStandardScheme extends StandardScheme { + private static class deleteLecture_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, connectedToLecture_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteLecture_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -34648,10 +37725,18 @@ public class Server { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // VERSION + case 2: // TOKEN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.version = iprot.readString(); - struct.setVersionIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // UNIVERSITY + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.university = iprot.readString(); + struct.setUniversityIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -34667,7 +37752,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, connectedToLecture_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteLecture_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -34676,9 +37761,14 @@ public class Server { oprot.writeString(struct.id); oprot.writeFieldEnd(); } - if (struct.version != null) { - oprot.writeFieldBegin(VERSION_FIELD_DESC); - oprot.writeString(struct.version); + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); + oprot.writeFieldEnd(); + } + if (struct.university != null) { + oprot.writeFieldBegin(UNIVERSITY_FIELD_DESC); + oprot.writeString(struct.university); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -34687,59 +37777,69 @@ public class Server { } - private static class connectedToLecture_argsTupleSchemeFactory implements SchemeFactory { - public connectedToLecture_argsTupleScheme getScheme() { - return new connectedToLecture_argsTupleScheme(); + private static class deleteLecture_argsTupleSchemeFactory implements SchemeFactory { + public deleteLecture_argsTupleScheme getScheme() { + return new deleteLecture_argsTupleScheme(); } } - private static class connectedToLecture_argsTupleScheme extends TupleScheme { + private static class deleteLecture_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, connectedToLecture_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, deleteLecture_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetId()) { optionals.set(0); } - if (struct.isSetVersion()) { + if (struct.isSetToken()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetUniversity()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetId()) { oprot.writeString(struct.id); } - if (struct.isSetVersion()) { - oprot.writeString(struct.version); + if (struct.isSetToken()) { + oprot.writeString(struct.token); + } + if (struct.isSetUniversity()) { + oprot.writeString(struct.university); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, connectedToLecture_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, deleteLecture_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.id = iprot.readString(); struct.setIdIsSet(true); } if (incoming.get(1)) { - struct.version = iprot.readString(); - struct.setVersionIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } + if (incoming.get(2)) { + struct.university = iprot.readString(); + struct.setUniversityIsSet(true); } } } } - public static class connectedToLecture_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("connectedToLecture_result"); + public static class deleteLecture_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteLecture_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new connectedToLecture_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new connectedToLecture_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new deleteLecture_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteLecture_resultTupleSchemeFactory()); } public boolean success; // required @@ -34811,13 +37911,13 @@ public class Server { tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(connectedToLecture_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteLecture_result.class, metaDataMap); } - public connectedToLecture_result() { + public deleteLecture_result() { } - public connectedToLecture_result( + public deleteLecture_result( boolean success) { this(); @@ -34828,13 +37928,13 @@ public class Server { /** * Performs a deep copy on other. */ - public connectedToLecture_result(connectedToLecture_result other) { + public deleteLecture_result(deleteLecture_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; } - public connectedToLecture_result deepCopy() { - return new connectedToLecture_result(this); + public deleteLecture_result deepCopy() { + return new deleteLecture_result(this); } @Override @@ -34847,7 +37947,7 @@ public class Server { return this.success; } - public connectedToLecture_result setSuccess(boolean success) { + public deleteLecture_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; @@ -34905,12 +38005,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof connectedToLecture_result) - return this.equals((connectedToLecture_result)that); + if (that instanceof deleteLecture_result) + return this.equals((deleteLecture_result)that); return false; } - public boolean equals(connectedToLecture_result that) { + public boolean equals(deleteLecture_result that) { if (that == null) return false; @@ -34932,7 +38032,7 @@ public class Server { } @Override - public int compareTo(connectedToLecture_result other) { + public int compareTo(deleteLecture_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -34966,7 +38066,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("connectedToLecture_result("); + StringBuilder sb = new StringBuilder("deleteLecture_result("); boolean first = true; sb.append("success:"); @@ -34999,15 +38099,15 @@ public class Server { } } - private static class connectedToLecture_resultStandardSchemeFactory implements SchemeFactory { - public connectedToLecture_resultStandardScheme getScheme() { - return new connectedToLecture_resultStandardScheme(); + private static class deleteLecture_resultStandardSchemeFactory implements SchemeFactory { + public deleteLecture_resultStandardScheme getScheme() { + return new deleteLecture_resultStandardScheme(); } } - private static class connectedToLecture_resultStandardScheme extends StandardScheme { + private static class deleteLecture_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, connectedToLecture_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteLecture_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -35036,7 +38136,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, connectedToLecture_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteLecture_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -35051,16 +38151,16 @@ public class Server { } - private static class connectedToLecture_resultTupleSchemeFactory implements SchemeFactory { - public connectedToLecture_resultTupleScheme getScheme() { - return new connectedToLecture_resultTupleScheme(); + private static class deleteLecture_resultTupleSchemeFactory implements SchemeFactory { + public deleteLecture_resultTupleScheme getScheme() { + return new deleteLecture_resultTupleScheme(); } } - private static class connectedToLecture_resultTupleScheme extends TupleScheme { + private static class deleteLecture_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, connectedToLecture_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, deleteLecture_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -35073,7 +38173,7 @@ public class Server { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, connectedToLecture_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, deleteLecture_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -35085,28 +38185,25 @@ public class Server { } - public static class deleteLecture_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteLecture_args"); + public static class checkUser_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkUser_args"); - private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField HS_FIELD_DESC = new org.apache.thrift.protocol.TField("hs", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField USER_FIELD_DESC = new org.apache.thrift.protocol.TField("user", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new deleteLecture_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteLecture_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new checkUser_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new checkUser_argsTupleSchemeFactory()); } - public String id; // required - public String hs; // required - public String user; // required + public String username; // required + public String token; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - ID((short)1, "id"), - HS((short)2, "hs"), - USER((short)3, "user"); + USERNAME((short)1, "username"), + TOKEN((short)2, "token"); private static final Map byName = new HashMap(); @@ -35121,12 +38218,10 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // ID - return ID; - case 2: // HS - return HS; - case 3: // USER - return USER; + case 1: // USERNAME + return USERNAME; + case 2: // TOKEN + return TOKEN; default: return null; } @@ -35170,151 +38265,111 @@ public class Server { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.HS, new org.apache.thrift.meta_data.FieldMetaData("hs", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.USER, new org.apache.thrift.meta_data.FieldMetaData("user", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteLecture_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkUser_args.class, metaDataMap); } - public deleteLecture_args() { + public checkUser_args() { } - public deleteLecture_args( - String id, - String hs, - String user) + public checkUser_args( + String username, + String token) { this(); - this.id = id; - this.hs = hs; - this.user = user; + this.username = username; + this.token = token; } /** * Performs a deep copy on other. */ - public deleteLecture_args(deleteLecture_args other) { - if (other.isSetId()) { - this.id = other.id; - } - if (other.isSetHs()) { - this.hs = other.hs; + public checkUser_args(checkUser_args other) { + if (other.isSetUsername()) { + this.username = other.username; } - if (other.isSetUser()) { - this.user = other.user; + if (other.isSetToken()) { + this.token = other.token; } } - public deleteLecture_args deepCopy() { - return new deleteLecture_args(this); + public checkUser_args deepCopy() { + return new checkUser_args(this); } @Override public void clear() { - this.id = null; - this.hs = null; - this.user = null; - } - - public String getId() { - return this.id; - } - - public deleteLecture_args setId(String id) { - this.id = id; - return this; - } - - public void unsetId() { - this.id = null; - } - - /** Returns true if field id is set (has been assigned a value) and false otherwise */ - public boolean isSetId() { - return this.id != null; - } - - public void setIdIsSet(boolean value) { - if (!value) { - this.id = null; - } + this.username = null; + this.token = null; } - public String getHs() { - return this.hs; + public String getUsername() { + return this.username; } - public deleteLecture_args setHs(String hs) { - this.hs = hs; + public checkUser_args setUsername(String username) { + this.username = username; return this; } - public void unsetHs() { - this.hs = null; + public void unsetUsername() { + this.username = null; } - /** Returns true if field hs is set (has been assigned a value) and false otherwise */ - public boolean isSetHs() { - return this.hs != null; + /** Returns true if field username is set (has been assigned a value) and false otherwise */ + public boolean isSetUsername() { + return this.username != null; } - public void setHsIsSet(boolean value) { + public void setUsernameIsSet(boolean value) { if (!value) { - this.hs = null; + this.username = null; } } - public String getUser() { - return this.user; + public String getToken() { + return this.token; } - public deleteLecture_args setUser(String user) { - this.user = user; + public checkUser_args setToken(String token) { + this.token = token; return this; } - public void unsetUser() { - this.user = null; + public void unsetToken() { + this.token = null; } - /** Returns true if field user is set (has been assigned a value) and false otherwise */ - public boolean isSetUser() { - return this.user != null; + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; } - public void setUserIsSet(boolean value) { + public void setTokenIsSet(boolean value) { if (!value) { - this.user = null; + this.token = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case ID: - if (value == null) { - unsetId(); - } else { - setId((String)value); - } - break; - - case HS: + case USERNAME: if (value == null) { - unsetHs(); + unsetUsername(); } else { - setHs((String)value); + setUsername((String)value); } break; - case USER: + case TOKEN: if (value == null) { - unsetUser(); + unsetToken(); } else { - setUser((String)value); + setToken((String)value); } break; @@ -35323,14 +38378,11 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case ID: - return getId(); - - case HS: - return getHs(); + case USERNAME: + return getUsername(); - case USER: - return getUser(); + case TOKEN: + return getToken(); } throw new IllegalStateException(); @@ -35343,12 +38395,10 @@ public class Server { } switch (field) { - case ID: - return isSetId(); - case HS: - return isSetHs(); - case USER: - return isSetUser(); + case USERNAME: + return isSetUsername(); + case TOKEN: + return isSetToken(); } throw new IllegalStateException(); } @@ -35357,39 +38407,30 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof deleteLecture_args) - return this.equals((deleteLecture_args)that); + if (that instanceof checkUser_args) + return this.equals((checkUser_args)that); return false; } - public boolean equals(deleteLecture_args that) { + public boolean equals(checkUser_args that) { if (that == null) return false; - boolean this_present_id = true && this.isSetId(); - boolean that_present_id = true && that.isSetId(); - if (this_present_id || that_present_id) { - if (!(this_present_id && that_present_id)) - return false; - if (!this.id.equals(that.id)) - return false; - } - - boolean this_present_hs = true && this.isSetHs(); - boolean that_present_hs = true && that.isSetHs(); - if (this_present_hs || that_present_hs) { - if (!(this_present_hs && that_present_hs)) + boolean this_present_username = true && this.isSetUsername(); + boolean that_present_username = true && that.isSetUsername(); + if (this_present_username || that_present_username) { + if (!(this_present_username && that_present_username)) return false; - if (!this.hs.equals(that.hs)) + if (!this.username.equals(that.username)) return false; } - boolean this_present_user = true && this.isSetUser(); - boolean that_present_user = true && that.isSetUser(); - if (this_present_user || that_present_user) { - if (!(this_present_user && that_present_user)) + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) return false; - if (!this.user.equals(that.user)) + if (!this.token.equals(that.token)) return false; } @@ -35402,39 +38443,29 @@ public class Server { } @Override - public int compareTo(deleteLecture_args other) { + public int compareTo(checkUser_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetHs()).compareTo(other.isSetHs()); + lastComparison = Boolean.valueOf(isSetUsername()).compareTo(other.isSetUsername()); if (lastComparison != 0) { return lastComparison; } - if (isSetHs()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hs, other.hs); + if (isSetUsername()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, other.username); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUser()).compareTo(other.isSetUser()); + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); if (lastComparison != 0) { return lastComparison; } - if (isSetUser()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, other.user); + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) { return lastComparison; } @@ -35456,30 +38487,22 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteLecture_args("); + StringBuilder sb = new StringBuilder("checkUser_args("); boolean first = true; - sb.append("id:"); - if (this.id == null) { - sb.append("null"); - } else { - sb.append(this.id); - } - first = false; - if (!first) sb.append(", "); - sb.append("hs:"); - if (this.hs == null) { + sb.append("username:"); + if (this.username == null) { sb.append("null"); } else { - sb.append(this.hs); + sb.append(this.username); } first = false; if (!first) sb.append(", "); - sb.append("user:"); - if (this.user == null) { + sb.append("token:"); + if (this.token == null) { sb.append("null"); } else { - sb.append(this.user); + sb.append(this.token); } first = false; sb.append(")"); @@ -35507,15 +38530,15 @@ public class Server { } } - private static class deleteLecture_argsStandardSchemeFactory implements SchemeFactory { - public deleteLecture_argsStandardScheme getScheme() { - return new deleteLecture_argsStandardScheme(); + private static class checkUser_argsStandardSchemeFactory implements SchemeFactory { + public checkUser_argsStandardScheme getScheme() { + return new checkUser_argsStandardScheme(); } } - private static class deleteLecture_argsStandardScheme extends StandardScheme { + private static class checkUser_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteLecture_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, checkUser_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -35525,26 +38548,18 @@ public class Server { break; } switch (schemeField.id) { - case 1: // ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.id = iprot.readString(); - struct.setIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // HS + case 1: // USERNAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.hs = iprot.readString(); - struct.setHsIsSet(true); + struct.username = iprot.readString(); + struct.setUsernameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // USER + case 2: // TOKEN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.user = iprot.readString(); - struct.setUserIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -35560,23 +38575,18 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteLecture_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, checkUser_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.id != null) { - oprot.writeFieldBegin(ID_FIELD_DESC); - oprot.writeString(struct.id); - oprot.writeFieldEnd(); - } - if (struct.hs != null) { - oprot.writeFieldBegin(HS_FIELD_DESC); - oprot.writeString(struct.hs); + if (struct.username != null) { + oprot.writeFieldBegin(USERNAME_FIELD_DESC); + oprot.writeString(struct.username); oprot.writeFieldEnd(); } - if (struct.user != null) { - oprot.writeFieldBegin(USER_FIELD_DESC); - oprot.writeString(struct.user); + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -35585,69 +38595,59 @@ public class Server { } - private static class deleteLecture_argsTupleSchemeFactory implements SchemeFactory { - public deleteLecture_argsTupleScheme getScheme() { - return new deleteLecture_argsTupleScheme(); + private static class checkUser_argsTupleSchemeFactory implements SchemeFactory { + public checkUser_argsTupleScheme getScheme() { + return new checkUser_argsTupleScheme(); } } - private static class deleteLecture_argsTupleScheme extends TupleScheme { + private static class checkUser_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteLecture_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, checkUser_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetId()) { + if (struct.isSetUsername()) { optionals.set(0); } - if (struct.isSetHs()) { + if (struct.isSetToken()) { optionals.set(1); } - if (struct.isSetUser()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); - if (struct.isSetId()) { - oprot.writeString(struct.id); - } - if (struct.isSetHs()) { - oprot.writeString(struct.hs); + oprot.writeBitSet(optionals, 2); + if (struct.isSetUsername()) { + oprot.writeString(struct.username); } - if (struct.isSetUser()) { - oprot.writeString(struct.user); + if (struct.isSetToken()) { + oprot.writeString(struct.token); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteLecture_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, checkUser_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.id = iprot.readString(); - struct.setIdIsSet(true); + struct.username = iprot.readString(); + struct.setUsernameIsSet(true); } if (incoming.get(1)) { - struct.hs = iprot.readString(); - struct.setHsIsSet(true); - } - if (incoming.get(2)) { - struct.user = iprot.readString(); - struct.setUserIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } } } } - public static class deleteLecture_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteLecture_result"); + public static class checkUser_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkUser_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new deleteLecture_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteLecture_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new checkUser_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new checkUser_resultTupleSchemeFactory()); } public boolean success; // required @@ -35719,13 +38719,13 @@ public class Server { tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteLecture_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkUser_result.class, metaDataMap); } - public deleteLecture_result() { + public checkUser_result() { } - public deleteLecture_result( + public checkUser_result( boolean success) { this(); @@ -35736,13 +38736,13 @@ public class Server { /** * Performs a deep copy on other. */ - public deleteLecture_result(deleteLecture_result other) { + public checkUser_result(checkUser_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; } - public deleteLecture_result deepCopy() { - return new deleteLecture_result(this); + public checkUser_result deepCopy() { + return new checkUser_result(this); } @Override @@ -35755,7 +38755,7 @@ public class Server { return this.success; } - public deleteLecture_result setSuccess(boolean success) { + public checkUser_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; @@ -35813,12 +38813,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof deleteLecture_result) - return this.equals((deleteLecture_result)that); + if (that instanceof checkUser_result) + return this.equals((checkUser_result)that); return false; } - public boolean equals(deleteLecture_result that) { + public boolean equals(checkUser_result that) { if (that == null) return false; @@ -35840,7 +38840,7 @@ public class Server { } @Override - public int compareTo(deleteLecture_result other) { + public int compareTo(checkUser_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -35874,7 +38874,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteLecture_result("); + StringBuilder sb = new StringBuilder("checkUser_result("); boolean first = true; sb.append("success:"); @@ -35907,15 +38907,15 @@ public class Server { } } - private static class deleteLecture_resultStandardSchemeFactory implements SchemeFactory { - public deleteLecture_resultStandardScheme getScheme() { - return new deleteLecture_resultStandardScheme(); + private static class checkUser_resultStandardSchemeFactory implements SchemeFactory { + public checkUser_resultStandardScheme getScheme() { + return new checkUser_resultStandardScheme(); } } - private static class deleteLecture_resultStandardScheme extends StandardScheme { + private static class checkUser_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteLecture_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, checkUser_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -35944,7 +38944,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteLecture_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, checkUser_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -35959,16 +38959,16 @@ public class Server { } - private static class deleteLecture_resultTupleSchemeFactory implements SchemeFactory { - public deleteLecture_resultTupleScheme getScheme() { - return new deleteLecture_resultTupleScheme(); + private static class checkUser_resultTupleSchemeFactory implements SchemeFactory { + public checkUser_resultTupleScheme getScheme() { + return new checkUser_resultTupleScheme(); } } - private static class deleteLecture_resultTupleScheme extends TupleScheme { + private static class checkUser_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteLecture_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, checkUser_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -35981,7 +38981,7 @@ public class Server { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteLecture_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, checkUser_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -35993,22 +38993,25 @@ public class Server { } - public static class checkUser_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkUser_args"); + public static class createUser_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createUser_args"); - private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField UNIVERSITY_FIELD_DESC = new org.apache.thrift.protocol.TField("university", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new checkUser_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new checkUser_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new createUser_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new createUser_argsTupleSchemeFactory()); } - public String username; // required + public String token; // required + public String university; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - USERNAME((short)1, "username"); + TOKEN((short)1, "token"), + UNIVERSITY((short)2, "university"); private static final Map byName = new HashMap(); @@ -36023,8 +39026,10 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // USERNAME - return USERNAME; + case 1: // TOKEN + return TOKEN; + case 2: // UNIVERSITY + return UNIVERSITY; default: return null; } @@ -36068,71 +39073,111 @@ public class Server { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.UNIVERSITY, new org.apache.thrift.meta_data.FieldMetaData("university", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkUser_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createUser_args.class, metaDataMap); } - public checkUser_args() { + public createUser_args() { } - public checkUser_args( - String username) + public createUser_args( + String token, + String university) { this(); - this.username = username; + this.token = token; + this.university = university; } /** * Performs a deep copy on other. */ - public checkUser_args(checkUser_args other) { - if (other.isSetUsername()) { - this.username = other.username; + public createUser_args(createUser_args other) { + if (other.isSetToken()) { + this.token = other.token; + } + if (other.isSetUniversity()) { + this.university = other.university; } } - public checkUser_args deepCopy() { - return new checkUser_args(this); + public createUser_args deepCopy() { + return new createUser_args(this); } @Override public void clear() { - this.username = null; + this.token = null; + this.university = null; } - public String getUsername() { - return this.username; + public String getToken() { + return this.token; } - public checkUser_args setUsername(String username) { - this.username = username; + public createUser_args setToken(String token) { + this.token = token; return this; } - public void unsetUsername() { - this.username = null; + public void unsetToken() { + this.token = null; } - /** Returns true if field username is set (has been assigned a value) and false otherwise */ - public boolean isSetUsername() { - return this.username != null; + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; } - public void setUsernameIsSet(boolean value) { + public void setTokenIsSet(boolean value) { if (!value) { - this.username = null; + this.token = null; + } + } + + public String getUniversity() { + return this.university; + } + + public createUser_args setUniversity(String university) { + this.university = university; + return this; + } + + public void unsetUniversity() { + this.university = null; + } + + /** Returns true if field university is set (has been assigned a value) and false otherwise */ + public boolean isSetUniversity() { + return this.university != null; + } + + public void setUniversityIsSet(boolean value) { + if (!value) { + this.university = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case USERNAME: + case TOKEN: if (value == null) { - unsetUsername(); + unsetToken(); } else { - setUsername((String)value); + setToken((String)value); + } + break; + + case UNIVERSITY: + if (value == null) { + unsetUniversity(); + } else { + setUniversity((String)value); } break; @@ -36141,8 +39186,11 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case USERNAME: - return getUsername(); + case TOKEN: + return getToken(); + + case UNIVERSITY: + return getUniversity(); } throw new IllegalStateException(); @@ -36155,8 +39203,10 @@ public class Server { } switch (field) { - case USERNAME: - return isSetUsername(); + case TOKEN: + return isSetToken(); + case UNIVERSITY: + return isSetUniversity(); } throw new IllegalStateException(); } @@ -36165,21 +39215,30 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof checkUser_args) - return this.equals((checkUser_args)that); + if (that instanceof createUser_args) + return this.equals((createUser_args)that); return false; } - public boolean equals(checkUser_args that) { + public boolean equals(createUser_args that) { if (that == null) return false; - boolean this_present_username = true && this.isSetUsername(); - boolean that_present_username = true && that.isSetUsername(); - if (this_present_username || that_present_username) { - if (!(this_present_username && that_present_username)) + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) return false; - if (!this.username.equals(that.username)) + if (!this.token.equals(that.token)) + return false; + } + + boolean this_present_university = true && this.isSetUniversity(); + boolean that_present_university = true && that.isSetUniversity(); + if (this_present_university || that_present_university) { + if (!(this_present_university && that_present_university)) + return false; + if (!this.university.equals(that.university)) return false; } @@ -36192,19 +39251,29 @@ public class Server { } @Override - public int compareTo(checkUser_args other) { + public int compareTo(createUser_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUsername()).compareTo(other.isSetUsername()); + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); if (lastComparison != 0) { return lastComparison; } - if (isSetUsername()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, other.username); + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUniversity()).compareTo(other.isSetUniversity()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUniversity()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.university, other.university); if (lastComparison != 0) { return lastComparison; } @@ -36226,14 +39295,22 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("checkUser_args("); + StringBuilder sb = new StringBuilder("createUser_args("); boolean first = true; - sb.append("username:"); - if (this.username == null) { + sb.append("token:"); + if (this.token == null) { sb.append("null"); } else { - sb.append(this.username); + sb.append(this.token); + } + first = false; + if (!first) sb.append(", "); + sb.append("university:"); + if (this.university == null) { + sb.append("null"); + } else { + sb.append(this.university); } first = false; sb.append(")"); @@ -36261,15 +39338,15 @@ public class Server { } } - private static class checkUser_argsStandardSchemeFactory implements SchemeFactory { - public checkUser_argsStandardScheme getScheme() { - return new checkUser_argsStandardScheme(); + private static class createUser_argsStandardSchemeFactory implements SchemeFactory { + public createUser_argsStandardScheme getScheme() { + return new createUser_argsStandardScheme(); } } - private static class checkUser_argsStandardScheme extends StandardScheme { + private static class createUser_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, checkUser_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, createUser_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -36279,10 +39356,18 @@ public class Server { break; } switch (schemeField.id) { - case 1: // USERNAME + case 1: // TOKEN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.username = iprot.readString(); - struct.setUsernameIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // UNIVERSITY + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.university = iprot.readString(); + struct.setUniversityIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -36298,13 +39383,18 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, checkUser_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, createUser_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.username != null) { - oprot.writeFieldBegin(USERNAME_FIELD_DESC); - oprot.writeString(struct.username); + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); + oprot.writeFieldEnd(); + } + if (struct.university != null) { + oprot.writeFieldBegin(UNIVERSITY_FIELD_DESC); + oprot.writeString(struct.university); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -36313,49 +39403,59 @@ public class Server { } - private static class checkUser_argsTupleSchemeFactory implements SchemeFactory { - public checkUser_argsTupleScheme getScheme() { - return new checkUser_argsTupleScheme(); + private static class createUser_argsTupleSchemeFactory implements SchemeFactory { + public createUser_argsTupleScheme getScheme() { + return new createUser_argsTupleScheme(); } } - private static class checkUser_argsTupleScheme extends TupleScheme { + private static class createUser_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, checkUser_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, createUser_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetUsername()) { + if (struct.isSetToken()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetUsername()) { - oprot.writeString(struct.username); + if (struct.isSetUniversity()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetToken()) { + oprot.writeString(struct.token); + } + if (struct.isSetUniversity()) { + oprot.writeString(struct.university); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, checkUser_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, createUser_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.username = iprot.readString(); - struct.setUsernameIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } + if (incoming.get(1)) { + struct.university = iprot.readString(); + struct.setUniversityIsSet(true); } } } } - public static class checkUser_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkUser_result"); + public static class createUser_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createUser_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new checkUser_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new checkUser_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new createUser_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new createUser_resultTupleSchemeFactory()); } public boolean success; // required @@ -36427,13 +39527,13 @@ public class Server { tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkUser_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createUser_result.class, metaDataMap); } - public checkUser_result() { + public createUser_result() { } - public checkUser_result( + public createUser_result( boolean success) { this(); @@ -36444,13 +39544,13 @@ public class Server { /** * Performs a deep copy on other. */ - public checkUser_result(checkUser_result other) { + public createUser_result(createUser_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; } - public checkUser_result deepCopy() { - return new checkUser_result(this); + public createUser_result deepCopy() { + return new createUser_result(this); } @Override @@ -36463,7 +39563,7 @@ public class Server { return this.success; } - public checkUser_result setSuccess(boolean success) { + public createUser_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; @@ -36521,12 +39621,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof checkUser_result) - return this.equals((checkUser_result)that); + if (that instanceof createUser_result) + return this.equals((createUser_result)that); return false; } - public boolean equals(checkUser_result that) { + public boolean equals(createUser_result that) { if (that == null) return false; @@ -36548,7 +39648,7 @@ public class Server { } @Override - public int compareTo(checkUser_result other) { + public int compareTo(createUser_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -36582,7 +39682,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("checkUser_result("); + StringBuilder sb = new StringBuilder("createUser_result("); boolean first = true; sb.append("success:"); @@ -36615,15 +39715,15 @@ public class Server { } } - private static class checkUser_resultStandardSchemeFactory implements SchemeFactory { - public checkUser_resultStandardScheme getScheme() { - return new checkUser_resultStandardScheme(); + private static class createUser_resultStandardSchemeFactory implements SchemeFactory { + public createUser_resultStandardScheme getScheme() { + return new createUser_resultStandardScheme(); } } - private static class checkUser_resultStandardScheme extends StandardScheme { + private static class createUser_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, checkUser_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, createUser_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -36652,7 +39752,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, checkUser_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, createUser_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -36667,16 +39767,16 @@ public class Server { } - private static class checkUser_resultTupleSchemeFactory implements SchemeFactory { - public checkUser_resultTupleScheme getScheme() { - return new checkUser_resultTupleScheme(); + private static class createUser_resultTupleSchemeFactory implements SchemeFactory { + public createUser_resultTupleScheme getScheme() { + return new createUser_resultTupleScheme(); } } - private static class checkUser_resultTupleScheme extends TupleScheme { + private static class createUser_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, checkUser_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, createUser_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -36689,7 +39789,7 @@ public class Server { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, checkUser_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, createUser_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -36701,34 +39801,34 @@ public class Server { } - public static class createUser_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createUser_args"); + public static class writeImageRights_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeImageRights_args"); - private static final org.apache.thrift.protocol.TField LOGIN_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("loginName", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField LAST_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lastName", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField FIRST_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("firstName", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final org.apache.thrift.protocol.TField MAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("mail", org.apache.thrift.protocol.TType.STRING, (short)4); - private static final org.apache.thrift.protocol.TField UNIVERSITY_FIELD_DESC = new org.apache.thrift.protocol.TField("university", org.apache.thrift.protocol.TType.STRING, (short)5); + private static final org.apache.thrift.protocol.TField IMAGENAME_FIELD_DESC = new org.apache.thrift.protocol.TField("imagename", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField ROLE_FIELD_DESC = new org.apache.thrift.protocol.TField("role", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField UNIVERSITY_FIELD_DESC = new org.apache.thrift.protocol.TField("university", org.apache.thrift.protocol.TType.STRING, (short)4); + 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)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new createUser_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new createUser_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new writeImageRights_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeImageRights_argsTupleSchemeFactory()); } - public String loginName; // required - public String lastName; // required - public String firstName; // required - public String mail; // required + public String imagename; // required + public String token; // required + public String role; // required public String university; // required + 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 { - LOGIN_NAME((short)1, "loginName"), - LAST_NAME((short)2, "lastName"), - FIRST_NAME((short)3, "firstName"), - MAIL((short)4, "mail"), - UNIVERSITY((short)5, "university"); + IMAGENAME((short)1, "imagename"), + TOKEN((short)2, "token"), + ROLE((short)3, "role"), + UNIVERSITY((short)4, "university"), + USER_ID((short)5, "userID"); private static final Map byName = new HashMap(); @@ -36743,16 +39843,16 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // LOGIN_NAME - return LOGIN_NAME; - case 2: // LAST_NAME - return LAST_NAME; - case 3: // FIRST_NAME - return FIRST_NAME; - case 4: // MAIL - return MAIL; - case 5: // UNIVERSITY + case 1: // IMAGENAME + return IMAGENAME; + case 2: // TOKEN + return TOKEN; + case 3: // ROLE + return ROLE; + case 4: // UNIVERSITY return UNIVERSITY; + case 5: // USER_ID + return USER_ID; default: return null; } @@ -36796,231 +39896,231 @@ public class Server { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.LOGIN_NAME, new org.apache.thrift.meta_data.FieldMetaData("loginName", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.LAST_NAME, new org.apache.thrift.meta_data.FieldMetaData("lastName", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.IMAGENAME, new org.apache.thrift.meta_data.FieldMetaData("imagename", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.FIRST_NAME, new org.apache.thrift.meta_data.FieldMetaData("firstName", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("mail", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.UNIVERSITY, new org.apache.thrift.meta_data.FieldMetaData("university", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.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(createUser_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeImageRights_args.class, metaDataMap); } - public createUser_args() { + public writeImageRights_args() { } - public createUser_args( - String loginName, - String lastName, - String firstName, - String mail, - String university) + public writeImageRights_args( + String imagename, + String token, + String role, + String university, + String userID) { this(); - this.loginName = loginName; - this.lastName = lastName; - this.firstName = firstName; - this.mail = mail; + this.imagename = imagename; + this.token = token; + this.role = role; this.university = university; + this.userID = userID; } /** * Performs a deep copy on other. */ - public createUser_args(createUser_args other) { - if (other.isSetLoginName()) { - this.loginName = other.loginName; - } - if (other.isSetLastName()) { - this.lastName = other.lastName; + public writeImageRights_args(writeImageRights_args other) { + if (other.isSetImagename()) { + this.imagename = other.imagename; } - if (other.isSetFirstName()) { - this.firstName = other.firstName; + if (other.isSetToken()) { + this.token = other.token; } - if (other.isSetMail()) { - this.mail = other.mail; + if (other.isSetRole()) { + this.role = other.role; } if (other.isSetUniversity()) { this.university = other.university; } + if (other.isSetUserID()) { + this.userID = other.userID; + } } - public createUser_args deepCopy() { - return new createUser_args(this); + public writeImageRights_args deepCopy() { + return new writeImageRights_args(this); } @Override public void clear() { - this.loginName = null; - this.lastName = null; - this.firstName = null; - this.mail = null; + this.imagename = null; + this.token = null; + this.role = null; this.university = null; + this.userID = null; } - public String getLoginName() { - return this.loginName; + public String getImagename() { + return this.imagename; } - public createUser_args setLoginName(String loginName) { - this.loginName = loginName; + public writeImageRights_args setImagename(String imagename) { + this.imagename = imagename; return this; } - public void unsetLoginName() { - this.loginName = null; + public void unsetImagename() { + this.imagename = null; } - /** Returns true if field loginName is set (has been assigned a value) and false otherwise */ - public boolean isSetLoginName() { - return this.loginName != null; + /** Returns true if field imagename is set (has been assigned a value) and false otherwise */ + public boolean isSetImagename() { + return this.imagename != null; } - public void setLoginNameIsSet(boolean value) { + public void setImagenameIsSet(boolean value) { if (!value) { - this.loginName = null; + this.imagename = null; } } - public String getLastName() { - return this.lastName; + public String getToken() { + return this.token; } - public createUser_args setLastName(String lastName) { - this.lastName = lastName; + public writeImageRights_args setToken(String token) { + this.token = token; return this; } - public void unsetLastName() { - this.lastName = null; + public void unsetToken() { + this.token = null; } - /** Returns true if field lastName is set (has been assigned a value) and false otherwise */ - public boolean isSetLastName() { - return this.lastName != null; + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; } - public void setLastNameIsSet(boolean value) { + public void setTokenIsSet(boolean value) { if (!value) { - this.lastName = null; + this.token = null; } } - public String getFirstName() { - return this.firstName; + public String getRole() { + return this.role; } - public createUser_args setFirstName(String firstName) { - this.firstName = firstName; + public writeImageRights_args setRole(String role) { + this.role = role; return this; } - public void unsetFirstName() { - this.firstName = null; + public void unsetRole() { + this.role = null; } - /** Returns true if field firstName is set (has been assigned a value) and false otherwise */ - public boolean isSetFirstName() { - return this.firstName != null; + /** Returns true if field role is set (has been assigned a value) and false otherwise */ + public boolean isSetRole() { + return this.role != null; } - public void setFirstNameIsSet(boolean value) { + public void setRoleIsSet(boolean value) { if (!value) { - this.firstName = null; + this.role = null; } } - public String getMail() { - return this.mail; + public String getUniversity() { + return this.university; } - public createUser_args setMail(String mail) { - this.mail = mail; + public writeImageRights_args setUniversity(String university) { + this.university = university; return this; } - public void unsetMail() { - this.mail = null; + public void unsetUniversity() { + this.university = null; } - /** Returns true if field mail is set (has been assigned a value) and false otherwise */ - public boolean isSetMail() { - return this.mail != null; + /** Returns true if field university is set (has been assigned a value) and false otherwise */ + public boolean isSetUniversity() { + return this.university != null; } - public void setMailIsSet(boolean value) { + public void setUniversityIsSet(boolean value) { if (!value) { - this.mail = null; + this.university = null; } } - public String getUniversity() { - return this.university; + public String getUserID() { + return this.userID; } - public createUser_args setUniversity(String university) { - this.university = university; + public writeImageRights_args setUserID(String userID) { + this.userID = userID; return this; } - public void unsetUniversity() { - this.university = null; + public void unsetUserID() { + this.userID = null; } - /** Returns true if field university is set (has been assigned a value) and false otherwise */ - public boolean isSetUniversity() { - return this.university != 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 setUniversityIsSet(boolean value) { + public void setUserIDIsSet(boolean value) { if (!value) { - this.university = null; + this.userID = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case LOGIN_NAME: + case IMAGENAME: if (value == null) { - unsetLoginName(); + unsetImagename(); } else { - setLoginName((String)value); + setImagename((String)value); } break; - case LAST_NAME: + case TOKEN: if (value == null) { - unsetLastName(); + unsetToken(); } else { - setLastName((String)value); + setToken((String)value); } break; - case FIRST_NAME: + case ROLE: if (value == null) { - unsetFirstName(); + unsetRole(); } else { - setFirstName((String)value); + setRole((String)value); } break; - case MAIL: + case UNIVERSITY: if (value == null) { - unsetMail(); + unsetUniversity(); } else { - setMail((String)value); + setUniversity((String)value); } break; - case UNIVERSITY: + case USER_ID: if (value == null) { - unsetUniversity(); + unsetUserID(); } else { - setUniversity((String)value); + setUserID((String)value); } break; @@ -37029,21 +40129,21 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case LOGIN_NAME: - return getLoginName(); - - case LAST_NAME: - return getLastName(); + case IMAGENAME: + return getImagename(); - case FIRST_NAME: - return getFirstName(); + case TOKEN: + return getToken(); - case MAIL: - return getMail(); + case ROLE: + return getRole(); case UNIVERSITY: return getUniversity(); + case USER_ID: + return getUserID(); + } throw new IllegalStateException(); } @@ -37055,16 +40155,16 @@ public class Server { } switch (field) { - case LOGIN_NAME: - return isSetLoginName(); - case LAST_NAME: - return isSetLastName(); - case FIRST_NAME: - return isSetFirstName(); - case MAIL: - return isSetMail(); + case IMAGENAME: + return isSetImagename(); + case TOKEN: + return isSetToken(); + case ROLE: + return isSetRole(); case UNIVERSITY: return isSetUniversity(); + case USER_ID: + return isSetUserID(); } throw new IllegalStateException(); } @@ -37073,48 +40173,39 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof createUser_args) - return this.equals((createUser_args)that); + if (that instanceof writeImageRights_args) + return this.equals((writeImageRights_args)that); return false; } - public boolean equals(createUser_args that) { + public boolean equals(writeImageRights_args that) { if (that == null) return false; - boolean this_present_loginName = true && this.isSetLoginName(); - boolean that_present_loginName = true && that.isSetLoginName(); - if (this_present_loginName || that_present_loginName) { - if (!(this_present_loginName && that_present_loginName)) - return false; - if (!this.loginName.equals(that.loginName)) - return false; - } - - boolean this_present_lastName = true && this.isSetLastName(); - boolean that_present_lastName = true && that.isSetLastName(); - if (this_present_lastName || that_present_lastName) { - if (!(this_present_lastName && that_present_lastName)) + boolean this_present_imagename = true && this.isSetImagename(); + boolean that_present_imagename = true && that.isSetImagename(); + if (this_present_imagename || that_present_imagename) { + if (!(this_present_imagename && that_present_imagename)) return false; - if (!this.lastName.equals(that.lastName)) + if (!this.imagename.equals(that.imagename)) return false; } - boolean this_present_firstName = true && this.isSetFirstName(); - boolean that_present_firstName = true && that.isSetFirstName(); - if (this_present_firstName || that_present_firstName) { - if (!(this_present_firstName && that_present_firstName)) + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) return false; - if (!this.firstName.equals(that.firstName)) + if (!this.token.equals(that.token)) return false; } - boolean this_present_mail = true && this.isSetMail(); - boolean that_present_mail = true && that.isSetMail(); - if (this_present_mail || that_present_mail) { - if (!(this_present_mail && that_present_mail)) + boolean this_present_role = true && this.isSetRole(); + boolean that_present_role = true && that.isSetRole(); + if (this_present_role || that_present_role) { + if (!(this_present_role && that_present_role)) return false; - if (!this.mail.equals(that.mail)) + if (!this.role.equals(that.role)) return false; } @@ -37127,6 +40218,15 @@ public class Server { 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; } @@ -37136,59 +40236,59 @@ public class Server { } @Override - public int compareTo(createUser_args other) { + public int compareTo(writeImageRights_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetLoginName()).compareTo(other.isSetLoginName()); + lastComparison = Boolean.valueOf(isSetImagename()).compareTo(other.isSetImagename()); if (lastComparison != 0) { return lastComparison; } - if (isSetLoginName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.loginName, other.loginName); + if (isSetImagename()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imagename, other.imagename); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLastName()).compareTo(other.isSetLastName()); + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); if (lastComparison != 0) { return lastComparison; } - if (isSetLastName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastName, other.lastName); + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFirstName()).compareTo(other.isSetFirstName()); + lastComparison = Boolean.valueOf(isSetRole()).compareTo(other.isSetRole()); if (lastComparison != 0) { return lastComparison; } - if (isSetFirstName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.firstName, other.firstName); + if (isSetRole()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, other.role); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMail()).compareTo(other.isSetMail()); + lastComparison = Boolean.valueOf(isSetUniversity()).compareTo(other.isSetUniversity()); if (lastComparison != 0) { return lastComparison; } - if (isSetMail()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mail, other.mail); + if (isSetUniversity()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.university, other.university); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUniversity()).compareTo(other.isSetUniversity()); + lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); if (lastComparison != 0) { return lastComparison; } - if (isSetUniversity()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.university, other.university); + if (isSetUserID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); if (lastComparison != 0) { return lastComparison; } @@ -37210,46 +40310,46 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("createUser_args("); + StringBuilder sb = new StringBuilder("writeImageRights_args("); boolean first = true; - sb.append("loginName:"); - if (this.loginName == null) { + sb.append("imagename:"); + if (this.imagename == null) { sb.append("null"); } else { - sb.append(this.loginName); + sb.append(this.imagename); } first = false; if (!first) sb.append(", "); - sb.append("lastName:"); - if (this.lastName == null) { + sb.append("token:"); + if (this.token == null) { sb.append("null"); } else { - sb.append(this.lastName); + sb.append(this.token); } first = false; if (!first) sb.append(", "); - sb.append("firstName:"); - if (this.firstName == null) { + sb.append("role:"); + if (this.role == null) { sb.append("null"); } else { - sb.append(this.firstName); + sb.append(this.role); } first = false; if (!first) sb.append(", "); - sb.append("mail:"); - if (this.mail == null) { + sb.append("university:"); + if (this.university == null) { sb.append("null"); } else { - sb.append(this.mail); + sb.append(this.university); } first = false; if (!first) sb.append(", "); - sb.append("university:"); - if (this.university == null) { + sb.append("userID:"); + if (this.userID == null) { sb.append("null"); } else { - sb.append(this.university); + sb.append(this.userID); } first = false; sb.append(")"); @@ -37277,15 +40377,15 @@ public class Server { } } - private static class createUser_argsStandardSchemeFactory implements SchemeFactory { - public createUser_argsStandardScheme getScheme() { - return new createUser_argsStandardScheme(); + private static class writeImageRights_argsStandardSchemeFactory implements SchemeFactory { + public writeImageRights_argsStandardScheme getScheme() { + return new writeImageRights_argsStandardScheme(); } } - private static class createUser_argsStandardScheme extends StandardScheme { + private static class writeImageRights_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, createUser_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, writeImageRights_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -37295,42 +40395,42 @@ public class Server { break; } switch (schemeField.id) { - case 1: // LOGIN_NAME + case 1: // IMAGENAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.loginName = iprot.readString(); - struct.setLoginNameIsSet(true); + struct.imagename = iprot.readString(); + struct.setImagenameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // LAST_NAME + case 2: // TOKEN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.lastName = iprot.readString(); - struct.setLastNameIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // FIRST_NAME + case 3: // ROLE if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.firstName = iprot.readString(); - struct.setFirstNameIsSet(true); + struct.role = iprot.readString(); + struct.setRoleIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // MAIL + case 4: // UNIVERSITY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.mail = iprot.readString(); - struct.setMailIsSet(true); + struct.university = iprot.readString(); + struct.setUniversityIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 5: // UNIVERSITY + case 5: // USER_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.university = iprot.readString(); - struct.setUniversityIsSet(true); + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -37346,28 +40446,23 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, createUser_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, writeImageRights_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.loginName != null) { - oprot.writeFieldBegin(LOGIN_NAME_FIELD_DESC); - oprot.writeString(struct.loginName); - oprot.writeFieldEnd(); - } - if (struct.lastName != null) { - oprot.writeFieldBegin(LAST_NAME_FIELD_DESC); - oprot.writeString(struct.lastName); + if (struct.imagename != null) { + oprot.writeFieldBegin(IMAGENAME_FIELD_DESC); + oprot.writeString(struct.imagename); oprot.writeFieldEnd(); } - if (struct.firstName != null) { - oprot.writeFieldBegin(FIRST_NAME_FIELD_DESC); - oprot.writeString(struct.firstName); + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); oprot.writeFieldEnd(); } - if (struct.mail != null) { - oprot.writeFieldBegin(MAIL_FIELD_DESC); - oprot.writeString(struct.mail); + if (struct.role != null) { + oprot.writeFieldBegin(ROLE_FIELD_DESC); + oprot.writeString(struct.role); oprot.writeFieldEnd(); } if (struct.university != null) { @@ -37375,95 +40470,100 @@ public class Server { oprot.writeString(struct.university); oprot.writeFieldEnd(); } + if (struct.userID != null) { + oprot.writeFieldBegin(USER_ID_FIELD_DESC); + oprot.writeString(struct.userID); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class createUser_argsTupleSchemeFactory implements SchemeFactory { - public createUser_argsTupleScheme getScheme() { - return new createUser_argsTupleScheme(); + private static class writeImageRights_argsTupleSchemeFactory implements SchemeFactory { + public writeImageRights_argsTupleScheme getScheme() { + return new writeImageRights_argsTupleScheme(); } } - private static class createUser_argsTupleScheme extends TupleScheme { + private static class writeImageRights_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, createUser_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, writeImageRights_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetLoginName()) { + if (struct.isSetImagename()) { optionals.set(0); } - if (struct.isSetLastName()) { + if (struct.isSetToken()) { optionals.set(1); } - if (struct.isSetFirstName()) { + if (struct.isSetRole()) { optionals.set(2); } - if (struct.isSetMail()) { + if (struct.isSetUniversity()) { optionals.set(3); } - if (struct.isSetUniversity()) { + if (struct.isSetUserID()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); - if (struct.isSetLoginName()) { - oprot.writeString(struct.loginName); - } - if (struct.isSetLastName()) { - oprot.writeString(struct.lastName); + if (struct.isSetImagename()) { + oprot.writeString(struct.imagename); } - if (struct.isSetFirstName()) { - oprot.writeString(struct.firstName); + if (struct.isSetToken()) { + oprot.writeString(struct.token); } - if (struct.isSetMail()) { - oprot.writeString(struct.mail); + if (struct.isSetRole()) { + oprot.writeString(struct.role); } if (struct.isSetUniversity()) { oprot.writeString(struct.university); } + if (struct.isSetUserID()) { + oprot.writeString(struct.userID); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, createUser_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, writeImageRights_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { - struct.loginName = iprot.readString(); - struct.setLoginNameIsSet(true); + struct.imagename = iprot.readString(); + struct.setImagenameIsSet(true); } if (incoming.get(1)) { - struct.lastName = iprot.readString(); - struct.setLastNameIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } if (incoming.get(2)) { - struct.firstName = iprot.readString(); - struct.setFirstNameIsSet(true); + struct.role = iprot.readString(); + struct.setRoleIsSet(true); } if (incoming.get(3)) { - struct.mail = iprot.readString(); - struct.setMailIsSet(true); - } - if (incoming.get(4)) { struct.university = iprot.readString(); struct.setUniversityIsSet(true); } + if (incoming.get(4)) { + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); + } } } } - public static class createUser_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createUser_result"); + public static class writeImageRights_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeImageRights_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new createUser_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new createUser_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new writeImageRights_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeImageRights_resultTupleSchemeFactory()); } public boolean success; // required @@ -37535,13 +40635,13 @@ public class Server { tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createUser_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeImageRights_result.class, metaDataMap); } - public createUser_result() { + public writeImageRights_result() { } - public createUser_result( + public writeImageRights_result( boolean success) { this(); @@ -37552,13 +40652,13 @@ public class Server { /** * Performs a deep copy on other. */ - public createUser_result(createUser_result other) { + public writeImageRights_result(writeImageRights_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; } - public createUser_result deepCopy() { - return new createUser_result(this); + public writeImageRights_result deepCopy() { + return new writeImageRights_result(this); } @Override @@ -37571,7 +40671,7 @@ public class Server { return this.success; } - public createUser_result setSuccess(boolean success) { + public writeImageRights_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; @@ -37629,12 +40729,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof createUser_result) - return this.equals((createUser_result)that); + if (that instanceof writeImageRights_result) + return this.equals((writeImageRights_result)that); return false; } - public boolean equals(createUser_result that) { + public boolean equals(writeImageRights_result that) { if (that == null) return false; @@ -37656,7 +40756,7 @@ public class Server { } @Override - public int compareTo(createUser_result other) { + public int compareTo(writeImageRights_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -37690,7 +40790,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("createUser_result("); + StringBuilder sb = new StringBuilder("writeImageRights_result("); boolean first = true; sb.append("success:"); @@ -37723,15 +40823,15 @@ public class Server { } } - private static class createUser_resultStandardSchemeFactory implements SchemeFactory { - public createUser_resultStandardScheme getScheme() { - return new createUser_resultStandardScheme(); + private static class writeImageRights_resultStandardSchemeFactory implements SchemeFactory { + public writeImageRights_resultStandardScheme getScheme() { + return new writeImageRights_resultStandardScheme(); } } - private static class createUser_resultStandardScheme extends StandardScheme { + private static class writeImageRights_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, createUser_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, writeImageRights_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -37760,7 +40860,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, createUser_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, writeImageRights_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -37775,16 +40875,16 @@ public class Server { } - private static class createUser_resultTupleSchemeFactory implements SchemeFactory { - public createUser_resultTupleScheme getScheme() { - return new createUser_resultTupleScheme(); + private static class writeImageRights_resultTupleSchemeFactory implements SchemeFactory { + public writeImageRights_resultTupleScheme getScheme() { + return new writeImageRights_resultTupleScheme(); } } - private static class createUser_resultTupleScheme extends TupleScheme { + private static class writeImageRights_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, createUser_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, writeImageRights_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -37797,7 +40897,7 @@ public class Server { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, createUser_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, writeImageRights_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -37809,40 +40909,40 @@ public class Server { } - public static class writeImageRights_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeImageRights_args"); + public static class writeAdditionalImageRights_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("writeAdditionalImageRights_args"); - private static final org.apache.thrift.protocol.TField IMAGENAME_FIELD_DESC = new org.apache.thrift.protocol.TField("imagename", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField LAST_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lastName", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final org.apache.thrift.protocol.TField FIRST_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("firstName", org.apache.thrift.protocol.TType.STRING, (short)4); - private static final org.apache.thrift.protocol.TField MAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("mail", org.apache.thrift.protocol.TType.STRING, (short)5); - private static final org.apache.thrift.protocol.TField UNIVERSITY_FIELD_DESC = new org.apache.thrift.protocol.TField("university", org.apache.thrift.protocol.TType.STRING, (short)6); - private static final org.apache.thrift.protocol.TField ROLE_FIELD_DESC = new org.apache.thrift.protocol.TField("role", org.apache.thrift.protocol.TType.STRING, (short)7); + private static final org.apache.thrift.protocol.TField IMAGE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("imageName", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userID", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField IS_READ_FIELD_DESC = new org.apache.thrift.protocol.TField("isRead", org.apache.thrift.protocol.TType.BOOL, (short)3); + private static final org.apache.thrift.protocol.TField IS_WRITE_FIELD_DESC = new org.apache.thrift.protocol.TField("isWrite", org.apache.thrift.protocol.TType.BOOL, (short)4); + private static final org.apache.thrift.protocol.TField IS_LINK_ALLOWED_FIELD_DESC = new org.apache.thrift.protocol.TField("isLinkAllowed", org.apache.thrift.protocol.TType.BOOL, (short)5); + private static final org.apache.thrift.protocol.TField IS_ADMIN_FIELD_DESC = new org.apache.thrift.protocol.TField("isAdmin", org.apache.thrift.protocol.TType.BOOL, (short)6); + private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)7); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new writeImageRights_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new writeImageRights_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new writeAdditionalImageRights_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeAdditionalImageRights_argsTupleSchemeFactory()); } - public String imagename; // required - public String username; // required - public String lastName; // required - public String firstName; // required - public String mail; // required - public String university; // required - public String role; // required + public String imageName; // required + public String userID; // required + public boolean isRead; // required + public boolean isWrite; // required + public boolean isLinkAllowed; // required + public boolean isAdmin; // required + public String token; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - IMAGENAME((short)1, "imagename"), - USERNAME((short)2, "username"), - LAST_NAME((short)3, "lastName"), - FIRST_NAME((short)4, "firstName"), - MAIL((short)5, "mail"), - UNIVERSITY((short)6, "university"), - ROLE((short)7, "role"); + IMAGE_NAME((short)1, "imageName"), + USER_ID((short)2, "userID"), + IS_READ((short)3, "isRead"), + IS_WRITE((short)4, "isWrite"), + IS_LINK_ALLOWED((short)5, "isLinkAllowed"), + IS_ADMIN((short)6, "isAdmin"), + TOKEN((short)7, "token"); private static final Map byName = new HashMap(); @@ -37857,20 +40957,20 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // IMAGENAME - return IMAGENAME; - case 2: // USERNAME - return USERNAME; - case 3: // LAST_NAME - return LAST_NAME; - case 4: // FIRST_NAME - return FIRST_NAME; - case 5: // MAIL - return MAIL; - case 6: // UNIVERSITY - return UNIVERSITY; - case 7: // ROLE - return ROLE; + case 1: // IMAGE_NAME + return IMAGE_NAME; + case 2: // USER_ID + return USER_ID; + case 3: // IS_READ + return IS_READ; + case 4: // IS_WRITE + return IS_WRITE; + case 5: // IS_LINK_ALLOWED + return IS_LINK_ALLOWED; + case 6: // IS_ADMIN + return IS_ADMIN; + case 7: // TOKEN + return TOKEN; default: return null; } @@ -37911,314 +41011,316 @@ public class Server { } // isset id assignments + private static final int __ISREAD_ISSET_ID = 0; + private static final int __ISWRITE_ISSET_ID = 1; + private static final int __ISLINKALLOWED_ISSET_ID = 2; + private static final int __ISADMIN_ISSET_ID = 3; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.IMAGENAME, new org.apache.thrift.meta_data.FieldMetaData("imagename", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.LAST_NAME, new org.apache.thrift.meta_data.FieldMetaData("lastName", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.FIRST_NAME, new org.apache.thrift.meta_data.FieldMetaData("firstName", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("mail", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.IMAGE_NAME, new org.apache.thrift.meta_data.FieldMetaData("imageName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.UNIVERSITY, new org.apache.thrift.meta_data.FieldMetaData("university", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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))); - tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.IS_READ, new org.apache.thrift.meta_data.FieldMetaData("isRead", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.IS_WRITE, new org.apache.thrift.meta_data.FieldMetaData("isWrite", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.IS_LINK_ALLOWED, new org.apache.thrift.meta_data.FieldMetaData("isLinkAllowed", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.IS_ADMIN, new org.apache.thrift.meta_data.FieldMetaData("isAdmin", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", 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(writeImageRights_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeAdditionalImageRights_args.class, metaDataMap); } - public writeImageRights_args() { + public writeAdditionalImageRights_args() { } - public writeImageRights_args( - String imagename, - String username, - String lastName, - String firstName, - String mail, - String university, - String role) + public writeAdditionalImageRights_args( + String imageName, + String userID, + boolean isRead, + boolean isWrite, + boolean isLinkAllowed, + boolean isAdmin, + String token) { this(); - this.imagename = imagename; - this.username = username; - this.lastName = lastName; - this.firstName = firstName; - this.mail = mail; - this.university = university; - this.role = role; + this.imageName = imageName; + this.userID = userID; + this.isRead = isRead; + setIsReadIsSet(true); + this.isWrite = isWrite; + setIsWriteIsSet(true); + this.isLinkAllowed = isLinkAllowed; + setIsLinkAllowedIsSet(true); + this.isAdmin = isAdmin; + setIsAdminIsSet(true); + this.token = token; } /** * Performs a deep copy on other. */ - public writeImageRights_args(writeImageRights_args other) { - if (other.isSetImagename()) { - this.imagename = other.imagename; - } - if (other.isSetUsername()) { - this.username = other.username; - } - if (other.isSetLastName()) { - this.lastName = other.lastName; - } - if (other.isSetFirstName()) { - this.firstName = other.firstName; - } - if (other.isSetMail()) { - this.mail = other.mail; + public writeAdditionalImageRights_args(writeAdditionalImageRights_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetImageName()) { + this.imageName = other.imageName; } - if (other.isSetUniversity()) { - this.university = other.university; + if (other.isSetUserID()) { + this.userID = other.userID; } - if (other.isSetRole()) { - this.role = other.role; + this.isRead = other.isRead; + this.isWrite = other.isWrite; + this.isLinkAllowed = other.isLinkAllowed; + this.isAdmin = other.isAdmin; + if (other.isSetToken()) { + this.token = other.token; } } - public writeImageRights_args deepCopy() { - return new writeImageRights_args(this); + public writeAdditionalImageRights_args deepCopy() { + return new writeAdditionalImageRights_args(this); } @Override public void clear() { - this.imagename = null; - this.username = null; - this.lastName = null; - this.firstName = null; - this.mail = null; - this.university = null; - this.role = null; + this.imageName = null; + this.userID = null; + setIsReadIsSet(false); + this.isRead = false; + setIsWriteIsSet(false); + this.isWrite = false; + setIsLinkAllowedIsSet(false); + this.isLinkAllowed = false; + setIsAdminIsSet(false); + this.isAdmin = false; + this.token = null; } - public String getImagename() { - return this.imagename; + public String getImageName() { + return this.imageName; } - public writeImageRights_args setImagename(String imagename) { - this.imagename = imagename; + public writeAdditionalImageRights_args setImageName(String imageName) { + this.imageName = imageName; return this; } - public void unsetImagename() { - this.imagename = null; + public void unsetImageName() { + this.imageName = null; } - /** Returns true if field imagename is set (has been assigned a value) and false otherwise */ - public boolean isSetImagename() { - return this.imagename != null; + /** Returns true if field imageName is set (has been assigned a value) and false otherwise */ + public boolean isSetImageName() { + return this.imageName != null; } - public void setImagenameIsSet(boolean value) { + public void setImageNameIsSet(boolean value) { if (!value) { - this.imagename = null; + this.imageName = null; } } - public String getUsername() { - return this.username; + public String getUserID() { + return this.userID; } - public writeImageRights_args setUsername(String username) { - this.username = username; + public writeAdditionalImageRights_args setUserID(String userID) { + this.userID = userID; return this; } - public void unsetUsername() { - this.username = null; + public void unsetUserID() { + this.userID = null; } - /** Returns true if field username is set (has been assigned a value) and false otherwise */ - public boolean isSetUsername() { - return this.username != 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 setUsernameIsSet(boolean value) { + public void setUserIDIsSet(boolean value) { if (!value) { - this.username = null; + this.userID = null; } } - public String getLastName() { - return this.lastName; + public boolean isIsRead() { + return this.isRead; } - public writeImageRights_args setLastName(String lastName) { - this.lastName = lastName; + public writeAdditionalImageRights_args setIsRead(boolean isRead) { + this.isRead = isRead; + setIsReadIsSet(true); return this; } - public void unsetLastName() { - this.lastName = null; + public void unsetIsRead() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISREAD_ISSET_ID); } - /** Returns true if field lastName is set (has been assigned a value) and false otherwise */ - public boolean isSetLastName() { - return this.lastName != null; + /** Returns true if field isRead is set (has been assigned a value) and false otherwise */ + public boolean isSetIsRead() { + return EncodingUtils.testBit(__isset_bitfield, __ISREAD_ISSET_ID); } - public void setLastNameIsSet(boolean value) { - if (!value) { - this.lastName = null; - } + public void setIsReadIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISREAD_ISSET_ID, value); } - public String getFirstName() { - return this.firstName; + public boolean isIsWrite() { + return this.isWrite; } - public writeImageRights_args setFirstName(String firstName) { - this.firstName = firstName; + public writeAdditionalImageRights_args setIsWrite(boolean isWrite) { + this.isWrite = isWrite; + setIsWriteIsSet(true); return this; } - public void unsetFirstName() { - this.firstName = null; + public void unsetIsWrite() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISWRITE_ISSET_ID); } - /** Returns true if field firstName is set (has been assigned a value) and false otherwise */ - public boolean isSetFirstName() { - return this.firstName != null; + /** Returns true if field isWrite is set (has been assigned a value) and false otherwise */ + public boolean isSetIsWrite() { + return EncodingUtils.testBit(__isset_bitfield, __ISWRITE_ISSET_ID); } - public void setFirstNameIsSet(boolean value) { - if (!value) { - this.firstName = null; - } + public void setIsWriteIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISWRITE_ISSET_ID, value); } - public String getMail() { - return this.mail; + public boolean isIsLinkAllowed() { + return this.isLinkAllowed; } - public writeImageRights_args setMail(String mail) { - this.mail = mail; + public writeAdditionalImageRights_args setIsLinkAllowed(boolean isLinkAllowed) { + this.isLinkAllowed = isLinkAllowed; + setIsLinkAllowedIsSet(true); return this; } - public void unsetMail() { - this.mail = null; + public void unsetIsLinkAllowed() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISLINKALLOWED_ISSET_ID); } - /** Returns true if field mail is set (has been assigned a value) and false otherwise */ - public boolean isSetMail() { - return this.mail != null; + /** Returns true if field isLinkAllowed is set (has been assigned a value) and false otherwise */ + public boolean isSetIsLinkAllowed() { + return EncodingUtils.testBit(__isset_bitfield, __ISLINKALLOWED_ISSET_ID); } - public void setMailIsSet(boolean value) { - if (!value) { - this.mail = null; - } + public void setIsLinkAllowedIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISLINKALLOWED_ISSET_ID, value); } - public String getUniversity() { - return this.university; + public boolean isIsAdmin() { + return this.isAdmin; } - public writeImageRights_args setUniversity(String university) { - this.university = university; + public writeAdditionalImageRights_args setIsAdmin(boolean isAdmin) { + this.isAdmin = isAdmin; + setIsAdminIsSet(true); return this; } - public void unsetUniversity() { - this.university = null; + public void unsetIsAdmin() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISADMIN_ISSET_ID); } - /** Returns true if field university is set (has been assigned a value) and false otherwise */ - public boolean isSetUniversity() { - return this.university != null; + /** Returns true if field isAdmin is set (has been assigned a value) and false otherwise */ + public boolean isSetIsAdmin() { + return EncodingUtils.testBit(__isset_bitfield, __ISADMIN_ISSET_ID); } - public void setUniversityIsSet(boolean value) { - if (!value) { - this.university = null; - } + public void setIsAdminIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISADMIN_ISSET_ID, value); } - public String getRole() { - return this.role; + public String getToken() { + return this.token; } - public writeImageRights_args setRole(String role) { - this.role = role; + public writeAdditionalImageRights_args setToken(String token) { + this.token = token; return this; } - public void unsetRole() { - this.role = null; + public void unsetToken() { + this.token = null; } - /** Returns true if field role is set (has been assigned a value) and false otherwise */ - public boolean isSetRole() { - return this.role != null; + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; } - public void setRoleIsSet(boolean value) { + public void setTokenIsSet(boolean value) { if (!value) { - this.role = null; + this.token = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case IMAGENAME: + case IMAGE_NAME: if (value == null) { - unsetImagename(); + unsetImageName(); } else { - setImagename((String)value); + setImageName((String)value); } break; - case USERNAME: + case USER_ID: if (value == null) { - unsetUsername(); + unsetUserID(); } else { - setUsername((String)value); + setUserID((String)value); } break; - case LAST_NAME: + case IS_READ: if (value == null) { - unsetLastName(); + unsetIsRead(); } else { - setLastName((String)value); + setIsRead((Boolean)value); } break; - case FIRST_NAME: + case IS_WRITE: if (value == null) { - unsetFirstName(); + unsetIsWrite(); } else { - setFirstName((String)value); + setIsWrite((Boolean)value); } break; - case MAIL: + case IS_LINK_ALLOWED: if (value == null) { - unsetMail(); + unsetIsLinkAllowed(); } else { - setMail((String)value); + setIsLinkAllowed((Boolean)value); } break; - case UNIVERSITY: + case IS_ADMIN: if (value == null) { - unsetUniversity(); + unsetIsAdmin(); } else { - setUniversity((String)value); + setIsAdmin((Boolean)value); } break; - case ROLE: + case TOKEN: if (value == null) { - unsetRole(); + unsetToken(); } else { - setRole((String)value); + setToken((String)value); } break; @@ -38227,26 +41329,26 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case IMAGENAME: - return getImagename(); + case IMAGE_NAME: + return getImageName(); - case USERNAME: - return getUsername(); + case USER_ID: + return getUserID(); - case LAST_NAME: - return getLastName(); + case IS_READ: + return Boolean.valueOf(isIsRead()); - case FIRST_NAME: - return getFirstName(); + case IS_WRITE: + return Boolean.valueOf(isIsWrite()); - case MAIL: - return getMail(); + case IS_LINK_ALLOWED: + return Boolean.valueOf(isIsLinkAllowed()); - case UNIVERSITY: - return getUniversity(); + case IS_ADMIN: + return Boolean.valueOf(isIsAdmin()); - case ROLE: - return getRole(); + case TOKEN: + return getToken(); } throw new IllegalStateException(); @@ -38259,20 +41361,20 @@ public class Server { } switch (field) { - case IMAGENAME: - return isSetImagename(); - case USERNAME: - return isSetUsername(); - case LAST_NAME: - return isSetLastName(); - case FIRST_NAME: - return isSetFirstName(); - case MAIL: - return isSetMail(); - case UNIVERSITY: - return isSetUniversity(); - case ROLE: - return isSetRole(); + case IMAGE_NAME: + return isSetImageName(); + case USER_ID: + return isSetUserID(); + case IS_READ: + return isSetIsRead(); + case IS_WRITE: + return isSetIsWrite(); + case IS_LINK_ALLOWED: + return isSetIsLinkAllowed(); + case IS_ADMIN: + return isSetIsAdmin(); + case TOKEN: + return isSetToken(); } throw new IllegalStateException(); } @@ -38281,75 +41383,75 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof writeImageRights_args) - return this.equals((writeImageRights_args)that); + if (that instanceof writeAdditionalImageRights_args) + return this.equals((writeAdditionalImageRights_args)that); return false; } - public boolean equals(writeImageRights_args that) { + public boolean equals(writeAdditionalImageRights_args that) { if (that == null) return false; - boolean this_present_imagename = true && this.isSetImagename(); - boolean that_present_imagename = true && that.isSetImagename(); - if (this_present_imagename || that_present_imagename) { - if (!(this_present_imagename && that_present_imagename)) + boolean this_present_imageName = true && this.isSetImageName(); + boolean that_present_imageName = true && that.isSetImageName(); + if (this_present_imageName || that_present_imageName) { + if (!(this_present_imageName && that_present_imageName)) return false; - if (!this.imagename.equals(that.imagename)) + if (!this.imageName.equals(that.imageName)) return false; } - boolean this_present_username = true && this.isSetUsername(); - boolean that_present_username = true && that.isSetUsername(); - if (this_present_username || that_present_username) { - if (!(this_present_username && that_present_username)) + 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.username.equals(that.username)) + if (!this.userID.equals(that.userID)) return false; } - boolean this_present_lastName = true && this.isSetLastName(); - boolean that_present_lastName = true && that.isSetLastName(); - if (this_present_lastName || that_present_lastName) { - if (!(this_present_lastName && that_present_lastName)) + boolean this_present_isRead = true; + boolean that_present_isRead = true; + if (this_present_isRead || that_present_isRead) { + if (!(this_present_isRead && that_present_isRead)) return false; - if (!this.lastName.equals(that.lastName)) + if (this.isRead != that.isRead) return false; } - boolean this_present_firstName = true && this.isSetFirstName(); - boolean that_present_firstName = true && that.isSetFirstName(); - if (this_present_firstName || that_present_firstName) { - if (!(this_present_firstName && that_present_firstName)) + boolean this_present_isWrite = true; + boolean that_present_isWrite = true; + if (this_present_isWrite || that_present_isWrite) { + if (!(this_present_isWrite && that_present_isWrite)) return false; - if (!this.firstName.equals(that.firstName)) + if (this.isWrite != that.isWrite) return false; } - boolean this_present_mail = true && this.isSetMail(); - boolean that_present_mail = true && that.isSetMail(); - if (this_present_mail || that_present_mail) { - if (!(this_present_mail && that_present_mail)) + boolean this_present_isLinkAllowed = true; + boolean that_present_isLinkAllowed = true; + if (this_present_isLinkAllowed || that_present_isLinkAllowed) { + if (!(this_present_isLinkAllowed && that_present_isLinkAllowed)) return false; - if (!this.mail.equals(that.mail)) + if (this.isLinkAllowed != that.isLinkAllowed) return false; } - boolean this_present_university = true && this.isSetUniversity(); - boolean that_present_university = true && that.isSetUniversity(); - if (this_present_university || that_present_university) { - if (!(this_present_university && that_present_university)) + boolean this_present_isAdmin = true; + boolean that_present_isAdmin = true; + if (this_present_isAdmin || that_present_isAdmin) { + if (!(this_present_isAdmin && that_present_isAdmin)) return false; - if (!this.university.equals(that.university)) + if (this.isAdmin != that.isAdmin) return false; } - boolean this_present_role = true && this.isSetRole(); - boolean that_present_role = true && that.isSetRole(); - if (this_present_role || that_present_role) { - if (!(this_present_role && that_present_role)) + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) return false; - if (!this.role.equals(that.role)) + if (!this.token.equals(that.token)) return false; } @@ -38362,79 +41464,79 @@ public class Server { } @Override - public int compareTo(writeImageRights_args other) { + public int compareTo(writeAdditionalImageRights_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetImagename()).compareTo(other.isSetImagename()); + lastComparison = Boolean.valueOf(isSetImageName()).compareTo(other.isSetImageName()); if (lastComparison != 0) { return lastComparison; } - if (isSetImagename()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imagename, other.imagename); + if (isSetImageName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageName, other.imageName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUsername()).compareTo(other.isSetUsername()); + lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); if (lastComparison != 0) { return lastComparison; } - if (isSetUsername()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, other.username); + if (isSetUserID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLastName()).compareTo(other.isSetLastName()); + lastComparison = Boolean.valueOf(isSetIsRead()).compareTo(other.isSetIsRead()); if (lastComparison != 0) { return lastComparison; } - if (isSetLastName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastName, other.lastName); + if (isSetIsRead()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isRead, other.isRead); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFirstName()).compareTo(other.isSetFirstName()); + lastComparison = Boolean.valueOf(isSetIsWrite()).compareTo(other.isSetIsWrite()); if (lastComparison != 0) { return lastComparison; } - if (isSetFirstName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.firstName, other.firstName); + if (isSetIsWrite()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isWrite, other.isWrite); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMail()).compareTo(other.isSetMail()); + lastComparison = Boolean.valueOf(isSetIsLinkAllowed()).compareTo(other.isSetIsLinkAllowed()); if (lastComparison != 0) { return lastComparison; } - if (isSetMail()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mail, other.mail); + if (isSetIsLinkAllowed()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isLinkAllowed, other.isLinkAllowed); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUniversity()).compareTo(other.isSetUniversity()); + lastComparison = Boolean.valueOf(isSetIsAdmin()).compareTo(other.isSetIsAdmin()); if (lastComparison != 0) { return lastComparison; } - if (isSetUniversity()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.university, other.university); + if (isSetIsAdmin()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isAdmin, other.isAdmin); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRole()).compareTo(other.isSetRole()); + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); if (lastComparison != 0) { return lastComparison; } - if (isSetRole()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, other.role); + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) { return lastComparison; } @@ -38456,62 +41558,46 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("writeImageRights_args("); + StringBuilder sb = new StringBuilder("writeAdditionalImageRights_args("); boolean first = true; - sb.append("imagename:"); - if (this.imagename == null) { + sb.append("imageName:"); + if (this.imageName == null) { sb.append("null"); } else { - sb.append(this.imagename); + sb.append(this.imageName); } first = false; if (!first) sb.append(", "); - sb.append("username:"); - if (this.username == null) { + sb.append("userID:"); + if (this.userID == null) { sb.append("null"); } else { - sb.append(this.username); + sb.append(this.userID); } first = false; if (!first) sb.append(", "); - sb.append("lastName:"); - if (this.lastName == null) { - sb.append("null"); - } else { - sb.append(this.lastName); - } + sb.append("isRead:"); + sb.append(this.isRead); first = false; if (!first) sb.append(", "); - sb.append("firstName:"); - if (this.firstName == null) { - sb.append("null"); - } else { - sb.append(this.firstName); - } + sb.append("isWrite:"); + sb.append(this.isWrite); first = false; if (!first) sb.append(", "); - sb.append("mail:"); - if (this.mail == null) { - sb.append("null"); - } else { - sb.append(this.mail); - } + sb.append("isLinkAllowed:"); + sb.append(this.isLinkAllowed); first = false; if (!first) sb.append(", "); - sb.append("university:"); - if (this.university == null) { - sb.append("null"); - } else { - sb.append(this.university); - } + sb.append("isAdmin:"); + sb.append(this.isAdmin); first = false; if (!first) sb.append(", "); - sb.append("role:"); - if (this.role == null) { + sb.append("token:"); + if (this.token == null) { sb.append("null"); } else { - sb.append(this.role); + sb.append(this.token); } first = false; sb.append(")"); @@ -38533,21 +41619,23 @@ public class Server { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class writeImageRights_argsStandardSchemeFactory implements SchemeFactory { - public writeImageRights_argsStandardScheme getScheme() { - return new writeImageRights_argsStandardScheme(); + private static class writeAdditionalImageRights_argsStandardSchemeFactory implements SchemeFactory { + public writeAdditionalImageRights_argsStandardScheme getScheme() { + return new writeAdditionalImageRights_argsStandardScheme(); } } - private static class writeImageRights_argsStandardScheme extends StandardScheme { + private static class writeAdditionalImageRights_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, writeImageRights_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, writeAdditionalImageRights_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -38557,58 +41645,58 @@ public class Server { break; } switch (schemeField.id) { - case 1: // IMAGENAME + case 1: // IMAGE_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imagename = iprot.readString(); - struct.setImagenameIsSet(true); + struct.imageName = iprot.readString(); + struct.setImageNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // USERNAME + case 2: // USER_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.username = iprot.readString(); - struct.setUsernameIsSet(true); + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // LAST_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.lastName = iprot.readString(); - struct.setLastNameIsSet(true); + case 3: // IS_READ + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.isRead = iprot.readBool(); + struct.setIsReadIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // FIRST_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.firstName = iprot.readString(); - struct.setFirstNameIsSet(true); + case 4: // IS_WRITE + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.isWrite = iprot.readBool(); + struct.setIsWriteIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 5: // MAIL - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.mail = iprot.readString(); - struct.setMailIsSet(true); + case 5: // IS_LINK_ALLOWED + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.isLinkAllowed = iprot.readBool(); + struct.setIsLinkAllowedIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 6: // UNIVERSITY - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.university = iprot.readString(); - struct.setUniversityIsSet(true); + case 6: // IS_ADMIN + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.isAdmin = iprot.readBool(); + struct.setIsAdminIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 7: // ROLE + case 7: // TOKEN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.role = iprot.readString(); - struct.setRoleIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -38624,43 +41712,35 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, writeImageRights_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, writeAdditionalImageRights_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.imagename != null) { - oprot.writeFieldBegin(IMAGENAME_FIELD_DESC); - oprot.writeString(struct.imagename); - oprot.writeFieldEnd(); - } - if (struct.username != null) { - oprot.writeFieldBegin(USERNAME_FIELD_DESC); - oprot.writeString(struct.username); - oprot.writeFieldEnd(); - } - if (struct.lastName != null) { - oprot.writeFieldBegin(LAST_NAME_FIELD_DESC); - oprot.writeString(struct.lastName); - oprot.writeFieldEnd(); - } - if (struct.firstName != null) { - oprot.writeFieldBegin(FIRST_NAME_FIELD_DESC); - oprot.writeString(struct.firstName); - oprot.writeFieldEnd(); - } - if (struct.mail != null) { - oprot.writeFieldBegin(MAIL_FIELD_DESC); - oprot.writeString(struct.mail); + if (struct.imageName != null) { + oprot.writeFieldBegin(IMAGE_NAME_FIELD_DESC); + oprot.writeString(struct.imageName); oprot.writeFieldEnd(); } - if (struct.university != null) { - oprot.writeFieldBegin(UNIVERSITY_FIELD_DESC); - oprot.writeString(struct.university); + if (struct.userID != null) { + oprot.writeFieldBegin(USER_ID_FIELD_DESC); + oprot.writeString(struct.userID); oprot.writeFieldEnd(); } - if (struct.role != null) { - oprot.writeFieldBegin(ROLE_FIELD_DESC); - oprot.writeString(struct.role); + oprot.writeFieldBegin(IS_READ_FIELD_DESC); + oprot.writeBool(struct.isRead); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(IS_WRITE_FIELD_DESC); + oprot.writeBool(struct.isWrite); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(IS_LINK_ALLOWED_FIELD_DESC); + oprot.writeBool(struct.isLinkAllowed); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(IS_ADMIN_FIELD_DESC); + oprot.writeBool(struct.isAdmin); + oprot.writeFieldEnd(); + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -38669,109 +41749,109 @@ public class Server { } - private static class writeImageRights_argsTupleSchemeFactory implements SchemeFactory { - public writeImageRights_argsTupleScheme getScheme() { - return new writeImageRights_argsTupleScheme(); + private static class writeAdditionalImageRights_argsTupleSchemeFactory implements SchemeFactory { + public writeAdditionalImageRights_argsTupleScheme getScheme() { + return new writeAdditionalImageRights_argsTupleScheme(); } } - private static class writeImageRights_argsTupleScheme extends TupleScheme { + private static class writeAdditionalImageRights_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, writeImageRights_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, writeAdditionalImageRights_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetImagename()) { + if (struct.isSetImageName()) { optionals.set(0); } - if (struct.isSetUsername()) { + if (struct.isSetUserID()) { optionals.set(1); } - if (struct.isSetLastName()) { + if (struct.isSetIsRead()) { optionals.set(2); } - if (struct.isSetFirstName()) { + if (struct.isSetIsWrite()) { optionals.set(3); } - if (struct.isSetMail()) { + if (struct.isSetIsLinkAllowed()) { optionals.set(4); } - if (struct.isSetUniversity()) { + if (struct.isSetIsAdmin()) { optionals.set(5); } - if (struct.isSetRole()) { + if (struct.isSetToken()) { optionals.set(6); } oprot.writeBitSet(optionals, 7); - if (struct.isSetImagename()) { - oprot.writeString(struct.imagename); + if (struct.isSetImageName()) { + oprot.writeString(struct.imageName); } - if (struct.isSetUsername()) { - oprot.writeString(struct.username); + if (struct.isSetUserID()) { + oprot.writeString(struct.userID); } - if (struct.isSetLastName()) { - oprot.writeString(struct.lastName); + if (struct.isSetIsRead()) { + oprot.writeBool(struct.isRead); } - if (struct.isSetFirstName()) { - oprot.writeString(struct.firstName); + if (struct.isSetIsWrite()) { + oprot.writeBool(struct.isWrite); } - if (struct.isSetMail()) { - oprot.writeString(struct.mail); + if (struct.isSetIsLinkAllowed()) { + oprot.writeBool(struct.isLinkAllowed); } - if (struct.isSetUniversity()) { - oprot.writeString(struct.university); + if (struct.isSetIsAdmin()) { + oprot.writeBool(struct.isAdmin); } - if (struct.isSetRole()) { - oprot.writeString(struct.role); + if (struct.isSetToken()) { + oprot.writeString(struct.token); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, writeImageRights_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, writeAdditionalImageRights_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(7); if (incoming.get(0)) { - struct.imagename = iprot.readString(); - struct.setImagenameIsSet(true); + struct.imageName = iprot.readString(); + struct.setImageNameIsSet(true); } if (incoming.get(1)) { - struct.username = iprot.readString(); - struct.setUsernameIsSet(true); + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); } if (incoming.get(2)) { - struct.lastName = iprot.readString(); - struct.setLastNameIsSet(true); + struct.isRead = iprot.readBool(); + struct.setIsReadIsSet(true); } if (incoming.get(3)) { - struct.firstName = iprot.readString(); - struct.setFirstNameIsSet(true); + struct.isWrite = iprot.readBool(); + struct.setIsWriteIsSet(true); } if (incoming.get(4)) { - struct.mail = iprot.readString(); - struct.setMailIsSet(true); + struct.isLinkAllowed = iprot.readBool(); + struct.setIsLinkAllowedIsSet(true); } if (incoming.get(5)) { - struct.university = iprot.readString(); - struct.setUniversityIsSet(true); + struct.isAdmin = iprot.readBool(); + struct.setIsAdminIsSet(true); } if (incoming.get(6)) { - struct.role = iprot.readString(); - struct.setRoleIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } } } } - public static class writeImageRights_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeImageRights_result"); + public static class writeAdditionalImageRights_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("writeAdditionalImageRights_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new writeImageRights_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new writeImageRights_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new writeAdditionalImageRights_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeAdditionalImageRights_resultTupleSchemeFactory()); } public boolean success; // required @@ -38843,13 +41923,13 @@ public class Server { tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeImageRights_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeAdditionalImageRights_result.class, metaDataMap); } - public writeImageRights_result() { + public writeAdditionalImageRights_result() { } - public writeImageRights_result( + public writeAdditionalImageRights_result( boolean success) { this(); @@ -38860,13 +41940,13 @@ public class Server { /** * Performs a deep copy on other. */ - public writeImageRights_result(writeImageRights_result other) { + public writeAdditionalImageRights_result(writeAdditionalImageRights_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; } - public writeImageRights_result deepCopy() { - return new writeImageRights_result(this); + public writeAdditionalImageRights_result deepCopy() { + return new writeAdditionalImageRights_result(this); } @Override @@ -38879,7 +41959,7 @@ public class Server { return this.success; } - public writeImageRights_result setSuccess(boolean success) { + public writeAdditionalImageRights_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; @@ -38937,12 +42017,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof writeImageRights_result) - return this.equals((writeImageRights_result)that); + if (that instanceof writeAdditionalImageRights_result) + return this.equals((writeAdditionalImageRights_result)that); return false; } - public boolean equals(writeImageRights_result that) { + public boolean equals(writeAdditionalImageRights_result that) { if (that == null) return false; @@ -38964,7 +42044,7 @@ public class Server { } @Override - public int compareTo(writeImageRights_result other) { + public int compareTo(writeAdditionalImageRights_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -38998,7 +42078,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("writeImageRights_result("); + StringBuilder sb = new StringBuilder("writeAdditionalImageRights_result("); boolean first = true; sb.append("success:"); @@ -39031,15 +42111,15 @@ public class Server { } } - private static class writeImageRights_resultStandardSchemeFactory implements SchemeFactory { - public writeImageRights_resultStandardScheme getScheme() { - return new writeImageRights_resultStandardScheme(); + private static class writeAdditionalImageRights_resultStandardSchemeFactory implements SchemeFactory { + public writeAdditionalImageRights_resultStandardScheme getScheme() { + return new writeAdditionalImageRights_resultStandardScheme(); } } - private static class writeImageRights_resultStandardScheme extends StandardScheme { + private static class writeAdditionalImageRights_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, writeImageRights_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, writeAdditionalImageRights_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -39068,7 +42148,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, writeImageRights_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, writeAdditionalImageRights_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -39083,16 +42163,16 @@ public class Server { } - private static class writeImageRights_resultTupleSchemeFactory implements SchemeFactory { - public writeImageRights_resultTupleScheme getScheme() { - return new writeImageRights_resultTupleScheme(); + private static class writeAdditionalImageRights_resultTupleSchemeFactory implements SchemeFactory { + public writeAdditionalImageRights_resultTupleScheme getScheme() { + return new writeAdditionalImageRights_resultTupleScheme(); } } - private static class writeImageRights_resultTupleScheme extends TupleScheme { + private static class writeAdditionalImageRights_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, writeImageRights_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, writeAdditionalImageRights_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -39105,7 +42185,7 @@ public class Server { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, writeImageRights_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, writeAdditionalImageRights_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -39117,37 +42197,34 @@ public class Server { } - public static class writeAdditionalImageRights_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("writeAdditionalImageRights_args"); + public static class writeLectureRights_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeLectureRights_args"); - private static final org.apache.thrift.protocol.TField IMAGE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("imageName", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userID", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField IS_READ_FIELD_DESC = new org.apache.thrift.protocol.TField("isRead", org.apache.thrift.protocol.TType.BOOL, (short)3); - private static final org.apache.thrift.protocol.TField IS_WRITE_FIELD_DESC = new org.apache.thrift.protocol.TField("isWrite", org.apache.thrift.protocol.TType.BOOL, (short)4); - private static final org.apache.thrift.protocol.TField IS_LINK_ALLOWED_FIELD_DESC = new org.apache.thrift.protocol.TField("isLinkAllowed", org.apache.thrift.protocol.TType.BOOL, (short)5); - private static final org.apache.thrift.protocol.TField IS_ADMIN_FIELD_DESC = new org.apache.thrift.protocol.TField("isAdmin", org.apache.thrift.protocol.TType.BOOL, (short)6); + private static final org.apache.thrift.protocol.TField LECTURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureID", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField ROLE_FIELD_DESC = new org.apache.thrift.protocol.TField("role", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField UNIVERSITY_FIELD_DESC = new org.apache.thrift.protocol.TField("university", org.apache.thrift.protocol.TType.STRING, (short)4); + 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)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new writeAdditionalImageRights_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new writeAdditionalImageRights_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new writeLectureRights_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeLectureRights_argsTupleSchemeFactory()); } - public String imageName; // required + public String lectureID; // required + public String role; // required + public String token; // required + public String university; // required public String userID; // required - public boolean isRead; // required - public boolean isWrite; // required - public boolean isLinkAllowed; // required - public boolean isAdmin; // 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 { - IMAGE_NAME((short)1, "imageName"), - USER_ID((short)2, "userID"), - IS_READ((short)3, "isRead"), - IS_WRITE((short)4, "isWrite"), - IS_LINK_ALLOWED((short)5, "isLinkAllowed"), - IS_ADMIN((short)6, "isAdmin"); + LECTURE_ID((short)1, "lectureID"), + ROLE((short)2, "role"), + TOKEN((short)3, "token"), + UNIVERSITY((short)4, "university"), + USER_ID((short)5, "userID"); private static final Map byName = new HashMap(); @@ -39162,18 +42239,16 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // IMAGE_NAME - return IMAGE_NAME; - case 2: // USER_ID + case 1: // LECTURE_ID + return LECTURE_ID; + case 2: // ROLE + return ROLE; + case 3: // TOKEN + return TOKEN; + case 4: // UNIVERSITY + return UNIVERSITY; + case 5: // USER_ID return USER_ID; - case 3: // IS_READ - return IS_READ; - case 4: // IS_WRITE - return IS_WRITE; - case 5: // IS_LINK_ALLOWED - return IS_LINK_ALLOWED; - case 6: // IS_ADMIN - return IS_ADMIN; default: return null; } @@ -39214,276 +42289,234 @@ public class Server { } // isset id assignments - private static final int __ISREAD_ISSET_ID = 0; - private static final int __ISWRITE_ISSET_ID = 1; - private static final int __ISLINKALLOWED_ISSET_ID = 2; - private static final int __ISADMIN_ISSET_ID = 3; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.IMAGE_NAME, new org.apache.thrift.meta_data.FieldMetaData("imageName", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.LECTURE_ID, new org.apache.thrift.meta_data.FieldMetaData("lectureID", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.UNIVERSITY, new org.apache.thrift.meta_data.FieldMetaData("university", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.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))); - tmpMap.put(_Fields.IS_READ, new org.apache.thrift.meta_data.FieldMetaData("isRead", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - tmpMap.put(_Fields.IS_WRITE, new org.apache.thrift.meta_data.FieldMetaData("isWrite", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - tmpMap.put(_Fields.IS_LINK_ALLOWED, new org.apache.thrift.meta_data.FieldMetaData("isLinkAllowed", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - tmpMap.put(_Fields.IS_ADMIN, new org.apache.thrift.meta_data.FieldMetaData("isAdmin", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeAdditionalImageRights_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeLectureRights_args.class, metaDataMap); } - public writeAdditionalImageRights_args() { + public writeLectureRights_args() { } - public writeAdditionalImageRights_args( - String imageName, - String userID, - boolean isRead, - boolean isWrite, - boolean isLinkAllowed, - boolean isAdmin) + public writeLectureRights_args( + String lectureID, + String role, + String token, + String university, + String userID) { this(); - this.imageName = imageName; + this.lectureID = lectureID; + this.role = role; + this.token = token; + this.university = university; this.userID = userID; - this.isRead = isRead; - setIsReadIsSet(true); - this.isWrite = isWrite; - setIsWriteIsSet(true); - this.isLinkAllowed = isLinkAllowed; - setIsLinkAllowedIsSet(true); - this.isAdmin = isAdmin; - setIsAdminIsSet(true); } /** * Performs a deep copy on other. */ - public writeAdditionalImageRights_args(writeAdditionalImageRights_args other) { - __isset_bitfield = other.__isset_bitfield; - if (other.isSetImageName()) { - this.imageName = other.imageName; + public writeLectureRights_args(writeLectureRights_args other) { + if (other.isSetLectureID()) { + this.lectureID = other.lectureID; + } + if (other.isSetRole()) { + this.role = other.role; + } + if (other.isSetToken()) { + this.token = other.token; + } + if (other.isSetUniversity()) { + this.university = other.university; } if (other.isSetUserID()) { this.userID = other.userID; } - this.isRead = other.isRead; - this.isWrite = other.isWrite; - this.isLinkAllowed = other.isLinkAllowed; - this.isAdmin = other.isAdmin; } - public writeAdditionalImageRights_args deepCopy() { - return new writeAdditionalImageRights_args(this); + public writeLectureRights_args deepCopy() { + return new writeLectureRights_args(this); } @Override public void clear() { - this.imageName = null; + this.lectureID = null; + this.role = null; + this.token = null; + this.university = null; this.userID = null; - setIsReadIsSet(false); - this.isRead = false; - setIsWriteIsSet(false); - this.isWrite = false; - setIsLinkAllowedIsSet(false); - this.isLinkAllowed = false; - setIsAdminIsSet(false); - this.isAdmin = false; } - public String getImageName() { - return this.imageName; + public String getLectureID() { + return this.lectureID; } - public writeAdditionalImageRights_args setImageName(String imageName) { - this.imageName = imageName; + public writeLectureRights_args setLectureID(String lectureID) { + this.lectureID = lectureID; return this; } - public void unsetImageName() { - this.imageName = null; + public void unsetLectureID() { + this.lectureID = null; } - /** Returns true if field imageName is set (has been assigned a value) and false otherwise */ - public boolean isSetImageName() { - return this.imageName != null; + /** Returns true if field lectureID is set (has been assigned a value) and false otherwise */ + public boolean isSetLectureID() { + return this.lectureID != null; } - public void setImageNameIsSet(boolean value) { + public void setLectureIDIsSet(boolean value) { if (!value) { - this.imageName = null; + this.lectureID = null; } } - public String getUserID() { - return this.userID; + public String getRole() { + return this.role; } - public writeAdditionalImageRights_args setUserID(String userID) { - this.userID = userID; + public writeLectureRights_args setRole(String role) { + this.role = role; return this; } - public void unsetUserID() { - this.userID = null; + public void unsetRole() { + this.role = null; } - /** Returns true if field userID is set (has been assigned a value) and false otherwise */ - public boolean isSetUserID() { - return this.userID != null; + /** Returns true if field role is set (has been assigned a value) and false otherwise */ + public boolean isSetRole() { + return this.role != null; } - public void setUserIDIsSet(boolean value) { + public void setRoleIsSet(boolean value) { if (!value) { - this.userID = null; + this.role = null; } } - public boolean isIsRead() { - return this.isRead; - } - - public writeAdditionalImageRights_args setIsRead(boolean isRead) { - this.isRead = isRead; - setIsReadIsSet(true); - return this; - } - - public void unsetIsRead() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISREAD_ISSET_ID); - } - - /** Returns true if field isRead is set (has been assigned a value) and false otherwise */ - public boolean isSetIsRead() { - return EncodingUtils.testBit(__isset_bitfield, __ISREAD_ISSET_ID); - } - - public void setIsReadIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISREAD_ISSET_ID, value); - } - - public boolean isIsWrite() { - return this.isWrite; + public String getToken() { + return this.token; } - public writeAdditionalImageRights_args setIsWrite(boolean isWrite) { - this.isWrite = isWrite; - setIsWriteIsSet(true); + public writeLectureRights_args setToken(String token) { + this.token = token; return this; } - public void unsetIsWrite() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISWRITE_ISSET_ID); + public void unsetToken() { + this.token = null; } - /** Returns true if field isWrite is set (has been assigned a value) and false otherwise */ - public boolean isSetIsWrite() { - return EncodingUtils.testBit(__isset_bitfield, __ISWRITE_ISSET_ID); + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; } - public void setIsWriteIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISWRITE_ISSET_ID, value); + public void setTokenIsSet(boolean value) { + if (!value) { + this.token = null; + } } - public boolean isIsLinkAllowed() { - return this.isLinkAllowed; + public String getUniversity() { + return this.university; } - public writeAdditionalImageRights_args setIsLinkAllowed(boolean isLinkAllowed) { - this.isLinkAllowed = isLinkAllowed; - setIsLinkAllowedIsSet(true); + public writeLectureRights_args setUniversity(String university) { + this.university = university; return this; } - public void unsetIsLinkAllowed() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISLINKALLOWED_ISSET_ID); + public void unsetUniversity() { + this.university = null; } - /** Returns true if field isLinkAllowed is set (has been assigned a value) and false otherwise */ - public boolean isSetIsLinkAllowed() { - return EncodingUtils.testBit(__isset_bitfield, __ISLINKALLOWED_ISSET_ID); + /** Returns true if field university is set (has been assigned a value) and false otherwise */ + public boolean isSetUniversity() { + return this.university != null; } - public void setIsLinkAllowedIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISLINKALLOWED_ISSET_ID, value); + public void setUniversityIsSet(boolean value) { + if (!value) { + this.university = null; + } } - public boolean isIsAdmin() { - return this.isAdmin; + public String getUserID() { + return this.userID; } - public writeAdditionalImageRights_args setIsAdmin(boolean isAdmin) { - this.isAdmin = isAdmin; - setIsAdminIsSet(true); + public writeLectureRights_args setUserID(String userID) { + this.userID = userID; return this; } - public void unsetIsAdmin() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISADMIN_ISSET_ID); + public void unsetUserID() { + this.userID = null; } - /** Returns true if field isAdmin is set (has been assigned a value) and false otherwise */ - public boolean isSetIsAdmin() { - return EncodingUtils.testBit(__isset_bitfield, __ISADMIN_ISSET_ID); + /** Returns true if field userID is set (has been assigned a value) and false otherwise */ + public boolean isSetUserID() { + return this.userID != null; } - public void setIsAdminIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISADMIN_ISSET_ID, value); + public void setUserIDIsSet(boolean value) { + if (!value) { + this.userID = null; + } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case IMAGE_NAME: - if (value == null) { - unsetImageName(); - } else { - setImageName((String)value); - } - break; - - case USER_ID: + case LECTURE_ID: if (value == null) { - unsetUserID(); + unsetLectureID(); } else { - setUserID((String)value); + setLectureID((String)value); } break; - case IS_READ: + case ROLE: if (value == null) { - unsetIsRead(); + unsetRole(); } else { - setIsRead((Boolean)value); + setRole((String)value); } break; - case IS_WRITE: + case TOKEN: if (value == null) { - unsetIsWrite(); + unsetToken(); } else { - setIsWrite((Boolean)value); + setToken((String)value); } break; - case IS_LINK_ALLOWED: + case UNIVERSITY: if (value == null) { - unsetIsLinkAllowed(); + unsetUniversity(); } else { - setIsLinkAllowed((Boolean)value); + setUniversity((String)value); } break; - case IS_ADMIN: + case USER_ID: if (value == null) { - unsetIsAdmin(); + unsetUserID(); } else { - setIsAdmin((Boolean)value); + setUserID((String)value); } break; @@ -39492,23 +42525,20 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case IMAGE_NAME: - return getImageName(); - - case USER_ID: - return getUserID(); + case LECTURE_ID: + return getLectureID(); - case IS_READ: - return Boolean.valueOf(isIsRead()); + case ROLE: + return getRole(); - case IS_WRITE: - return Boolean.valueOf(isIsWrite()); + case TOKEN: + return getToken(); - case IS_LINK_ALLOWED: - return Boolean.valueOf(isIsLinkAllowed()); + case UNIVERSITY: + return getUniversity(); - case IS_ADMIN: - return Boolean.valueOf(isIsAdmin()); + case USER_ID: + return getUserID(); } throw new IllegalStateException(); @@ -39521,18 +42551,16 @@ public class Server { } switch (field) { - case IMAGE_NAME: - return isSetImageName(); + case LECTURE_ID: + return isSetLectureID(); + case ROLE: + return isSetRole(); + case TOKEN: + return isSetToken(); + case UNIVERSITY: + return isSetUniversity(); case USER_ID: return isSetUserID(); - case IS_READ: - return isSetIsRead(); - case IS_WRITE: - return isSetIsWrite(); - case IS_LINK_ALLOWED: - return isSetIsLinkAllowed(); - case IS_ADMIN: - return isSetIsAdmin(); } throw new IllegalStateException(); } @@ -39541,66 +42569,57 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof writeAdditionalImageRights_args) - return this.equals((writeAdditionalImageRights_args)that); + if (that instanceof writeLectureRights_args) + return this.equals((writeLectureRights_args)that); return false; } - public boolean equals(writeAdditionalImageRights_args that) { + public boolean equals(writeLectureRights_args that) { if (that == null) return false; - boolean this_present_imageName = true && this.isSetImageName(); - boolean that_present_imageName = true && that.isSetImageName(); - if (this_present_imageName || that_present_imageName) { - if (!(this_present_imageName && that_present_imageName)) - return false; - if (!this.imageName.equals(that.imageName)) - return false; - } - - boolean this_present_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)) + boolean this_present_lectureID = true && this.isSetLectureID(); + boolean that_present_lectureID = true && that.isSetLectureID(); + if (this_present_lectureID || that_present_lectureID) { + if (!(this_present_lectureID && that_present_lectureID)) return false; - if (!this.userID.equals(that.userID)) + if (!this.lectureID.equals(that.lectureID)) return false; } - boolean this_present_isRead = true; - boolean that_present_isRead = true; - if (this_present_isRead || that_present_isRead) { - if (!(this_present_isRead && that_present_isRead)) + boolean this_present_role = true && this.isSetRole(); + boolean that_present_role = true && that.isSetRole(); + if (this_present_role || that_present_role) { + if (!(this_present_role && that_present_role)) return false; - if (this.isRead != that.isRead) + if (!this.role.equals(that.role)) return false; } - boolean this_present_isWrite = true; - boolean that_present_isWrite = true; - if (this_present_isWrite || that_present_isWrite) { - if (!(this_present_isWrite && that_present_isWrite)) + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) return false; - if (this.isWrite != that.isWrite) + if (!this.token.equals(that.token)) return false; } - boolean this_present_isLinkAllowed = true; - boolean that_present_isLinkAllowed = true; - if (this_present_isLinkAllowed || that_present_isLinkAllowed) { - if (!(this_present_isLinkAllowed && that_present_isLinkAllowed)) + boolean this_present_university = true && this.isSetUniversity(); + boolean that_present_university = true && that.isSetUniversity(); + if (this_present_university || that_present_university) { + if (!(this_present_university && that_present_university)) return false; - if (this.isLinkAllowed != that.isLinkAllowed) + if (!this.university.equals(that.university)) return false; } - boolean this_present_isAdmin = true; - boolean that_present_isAdmin = true; - if (this_present_isAdmin || that_present_isAdmin) { - if (!(this_present_isAdmin && that_present_isAdmin)) + 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.isAdmin != that.isAdmin) + if (!this.userID.equals(that.userID)) return false; } @@ -39613,69 +42632,59 @@ public class Server { } @Override - public int compareTo(writeAdditionalImageRights_args other) { + public int compareTo(writeLectureRights_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetImageName()).compareTo(other.isSetImageName()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetImageName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageName, other.imageName); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); + lastComparison = Boolean.valueOf(isSetLectureID()).compareTo(other.isSetLectureID()); if (lastComparison != 0) { return lastComparison; } - if (isSetUserID()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); + if (isSetLectureID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lectureID, other.lectureID); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIsRead()).compareTo(other.isSetIsRead()); + lastComparison = Boolean.valueOf(isSetRole()).compareTo(other.isSetRole()); if (lastComparison != 0) { return lastComparison; } - if (isSetIsRead()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isRead, other.isRead); + if (isSetRole()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, other.role); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIsWrite()).compareTo(other.isSetIsWrite()); + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); if (lastComparison != 0) { return lastComparison; } - if (isSetIsWrite()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isWrite, other.isWrite); + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIsLinkAllowed()).compareTo(other.isSetIsLinkAllowed()); + lastComparison = Boolean.valueOf(isSetUniversity()).compareTo(other.isSetUniversity()); if (lastComparison != 0) { return lastComparison; } - if (isSetIsLinkAllowed()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isLinkAllowed, other.isLinkAllowed); + if (isSetUniversity()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.university, other.university); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIsAdmin()).compareTo(other.isSetIsAdmin()); + lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); if (lastComparison != 0) { return lastComparison; } - if (isSetIsAdmin()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isAdmin, other.isAdmin); + if (isSetUserID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); if (lastComparison != 0) { return lastComparison; } @@ -39697,39 +42706,47 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("writeAdditionalImageRights_args("); + StringBuilder sb = new StringBuilder("writeLectureRights_args("); boolean first = true; - sb.append("imageName:"); - if (this.imageName == null) { + sb.append("lectureID:"); + if (this.lectureID == null) { sb.append("null"); } else { - sb.append(this.imageName); + sb.append(this.lectureID); } first = false; if (!first) sb.append(", "); - sb.append("userID:"); - if (this.userID == null) { + sb.append("role:"); + if (this.role == null) { sb.append("null"); } else { - sb.append(this.userID); + sb.append(this.role); } first = false; if (!first) sb.append(", "); - sb.append("isRead:"); - sb.append(this.isRead); - first = false; - if (!first) sb.append(", "); - sb.append("isWrite:"); - sb.append(this.isWrite); + sb.append("token:"); + if (this.token == null) { + sb.append("null"); + } else { + sb.append(this.token); + } first = false; if (!first) sb.append(", "); - sb.append("isLinkAllowed:"); - sb.append(this.isLinkAllowed); + sb.append("university:"); + if (this.university == null) { + sb.append("null"); + } else { + sb.append(this.university); + } first = false; if (!first) sb.append(", "); - sb.append("isAdmin:"); - sb.append(this.isAdmin); + sb.append("userID:"); + if (this.userID == null) { + sb.append("null"); + } else { + sb.append(this.userID); + } first = false; sb.append(")"); return sb.toString(); @@ -39750,23 +42767,21 @@ public class Server { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class writeAdditionalImageRights_argsStandardSchemeFactory implements SchemeFactory { - public writeAdditionalImageRights_argsStandardScheme getScheme() { - return new writeAdditionalImageRights_argsStandardScheme(); + private static class writeLectureRights_argsStandardSchemeFactory implements SchemeFactory { + public writeLectureRights_argsStandardScheme getScheme() { + return new writeLectureRights_argsStandardScheme(); } } - private static class writeAdditionalImageRights_argsStandardScheme extends StandardScheme { + private static class writeLectureRights_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, writeAdditionalImageRights_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, writeLectureRights_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -39776,50 +42791,42 @@ public class Server { break; } switch (schemeField.id) { - case 1: // IMAGE_NAME + case 1: // LECTURE_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imageName = iprot.readString(); - struct.setImageNameIsSet(true); + struct.lectureID = iprot.readString(); + struct.setLectureIDIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // USER_ID + case 2: // ROLE 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; - case 3: // IS_READ - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.isRead = iprot.readBool(); - struct.setIsReadIsSet(true); + struct.role = iprot.readString(); + struct.setRoleIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // IS_WRITE - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.isWrite = iprot.readBool(); - struct.setIsWriteIsSet(true); + case 3: // TOKEN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 5: // IS_LINK_ALLOWED - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.isLinkAllowed = iprot.readBool(); - struct.setIsLinkAllowedIsSet(true); + case 4: // UNIVERSITY + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.university = iprot.readString(); + struct.setUniversityIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 6: // IS_ADMIN - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.isAdmin = iprot.readBool(); - struct.setIsAdminIsSet(true); + case 5: // 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); } @@ -39835,13 +42842,28 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, writeAdditionalImageRights_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, writeLectureRights_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.imageName != null) { - oprot.writeFieldBegin(IMAGE_NAME_FIELD_DESC); - oprot.writeString(struct.imageName); + if (struct.lectureID != null) { + oprot.writeFieldBegin(LECTURE_ID_FIELD_DESC); + oprot.writeString(struct.lectureID); + oprot.writeFieldEnd(); + } + if (struct.role != null) { + oprot.writeFieldBegin(ROLE_FIELD_DESC); + oprot.writeString(struct.role); + oprot.writeFieldEnd(); + } + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); + oprot.writeFieldEnd(); + } + if (struct.university != null) { + oprot.writeFieldBegin(UNIVERSITY_FIELD_DESC); + oprot.writeString(struct.university); oprot.writeFieldEnd(); } if (struct.userID != null) { @@ -39849,117 +42871,95 @@ public class Server { oprot.writeString(struct.userID); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(IS_READ_FIELD_DESC); - oprot.writeBool(struct.isRead); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(IS_WRITE_FIELD_DESC); - oprot.writeBool(struct.isWrite); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(IS_LINK_ALLOWED_FIELD_DESC); - oprot.writeBool(struct.isLinkAllowed); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(IS_ADMIN_FIELD_DESC); - oprot.writeBool(struct.isAdmin); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class writeAdditionalImageRights_argsTupleSchemeFactory implements SchemeFactory { - public writeAdditionalImageRights_argsTupleScheme getScheme() { - return new writeAdditionalImageRights_argsTupleScheme(); + private static class writeLectureRights_argsTupleSchemeFactory implements SchemeFactory { + public writeLectureRights_argsTupleScheme getScheme() { + return new writeLectureRights_argsTupleScheme(); } } - private static class writeAdditionalImageRights_argsTupleScheme extends TupleScheme { + private static class writeLectureRights_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, writeAdditionalImageRights_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, writeLectureRights_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetImageName()) { + if (struct.isSetLectureID()) { optionals.set(0); } - if (struct.isSetUserID()) { + if (struct.isSetRole()) { optionals.set(1); } - if (struct.isSetIsRead()) { + if (struct.isSetToken()) { optionals.set(2); } - if (struct.isSetIsWrite()) { + if (struct.isSetUniversity()) { optionals.set(3); } - if (struct.isSetIsLinkAllowed()) { + if (struct.isSetUserID()) { optionals.set(4); } - if (struct.isSetIsAdmin()) { - optionals.set(5); - } - oprot.writeBitSet(optionals, 6); - if (struct.isSetImageName()) { - oprot.writeString(struct.imageName); - } - if (struct.isSetUserID()) { - oprot.writeString(struct.userID); + oprot.writeBitSet(optionals, 5); + if (struct.isSetLectureID()) { + oprot.writeString(struct.lectureID); } - if (struct.isSetIsRead()) { - oprot.writeBool(struct.isRead); + if (struct.isSetRole()) { + oprot.writeString(struct.role); } - if (struct.isSetIsWrite()) { - oprot.writeBool(struct.isWrite); + if (struct.isSetToken()) { + oprot.writeString(struct.token); } - if (struct.isSetIsLinkAllowed()) { - oprot.writeBool(struct.isLinkAllowed); + if (struct.isSetUniversity()) { + oprot.writeString(struct.university); } - if (struct.isSetIsAdmin()) { - oprot.writeBool(struct.isAdmin); + if (struct.isSetUserID()) { + oprot.writeString(struct.userID); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, writeAdditionalImageRights_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, writeLectureRights_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(6); + BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { - struct.imageName = iprot.readString(); - struct.setImageNameIsSet(true); + struct.lectureID = iprot.readString(); + struct.setLectureIDIsSet(true); } if (incoming.get(1)) { - struct.userID = iprot.readString(); - struct.setUserIDIsSet(true); + struct.role = iprot.readString(); + struct.setRoleIsSet(true); } if (incoming.get(2)) { - struct.isRead = iprot.readBool(); - struct.setIsReadIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } if (incoming.get(3)) { - struct.isWrite = iprot.readBool(); - struct.setIsWriteIsSet(true); + struct.university = iprot.readString(); + struct.setUniversityIsSet(true); } if (incoming.get(4)) { - struct.isLinkAllowed = iprot.readBool(); - struct.setIsLinkAllowedIsSet(true); - } - if (incoming.get(5)) { - struct.isAdmin = iprot.readBool(); - struct.setIsAdminIsSet(true); + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); } } } } - public static class writeAdditionalImageRights_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("writeAdditionalImageRights_result"); + public static class writeLectureRights_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeLectureRights_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new writeAdditionalImageRights_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new writeAdditionalImageRights_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new writeLectureRights_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeLectureRights_resultTupleSchemeFactory()); } public boolean success; // required @@ -40031,13 +43031,13 @@ public class Server { tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeAdditionalImageRights_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeLectureRights_result.class, metaDataMap); } - public writeAdditionalImageRights_result() { + public writeLectureRights_result() { } - public writeAdditionalImageRights_result( + public writeLectureRights_result( boolean success) { this(); @@ -40048,13 +43048,13 @@ public class Server { /** * Performs a deep copy on other. */ - public writeAdditionalImageRights_result(writeAdditionalImageRights_result other) { + public writeLectureRights_result(writeLectureRights_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; } - public writeAdditionalImageRights_result deepCopy() { - return new writeAdditionalImageRights_result(this); + public writeLectureRights_result deepCopy() { + return new writeLectureRights_result(this); } @Override @@ -40067,7 +43067,7 @@ public class Server { return this.success; } - public writeAdditionalImageRights_result setSuccess(boolean success) { + public writeLectureRights_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; @@ -40125,12 +43125,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof writeAdditionalImageRights_result) - return this.equals((writeAdditionalImageRights_result)that); + if (that instanceof writeLectureRights_result) + return this.equals((writeLectureRights_result)that); return false; } - public boolean equals(writeAdditionalImageRights_result that) { + public boolean equals(writeLectureRights_result that) { if (that == null) return false; @@ -40152,7 +43152,7 @@ public class Server { } @Override - public int compareTo(writeAdditionalImageRights_result other) { + public int compareTo(writeLectureRights_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -40186,7 +43186,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("writeAdditionalImageRights_result("); + StringBuilder sb = new StringBuilder("writeLectureRights_result("); boolean first = true; sb.append("success:"); @@ -40219,15 +43219,15 @@ public class Server { } } - private static class writeAdditionalImageRights_resultStandardSchemeFactory implements SchemeFactory { - public writeAdditionalImageRights_resultStandardScheme getScheme() { - return new writeAdditionalImageRights_resultStandardScheme(); + private static class writeLectureRights_resultStandardSchemeFactory implements SchemeFactory { + public writeLectureRights_resultStandardScheme getScheme() { + return new writeLectureRights_resultStandardScheme(); } } - private static class writeAdditionalImageRights_resultStandardScheme extends StandardScheme { + private static class writeLectureRights_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, writeAdditionalImageRights_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, writeLectureRights_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -40256,7 +43256,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, writeAdditionalImageRights_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, writeLectureRights_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -40271,16 +43271,16 @@ public class Server { } - private static class writeAdditionalImageRights_resultTupleSchemeFactory implements SchemeFactory { - public writeAdditionalImageRights_resultTupleScheme getScheme() { - return new writeAdditionalImageRights_resultTupleScheme(); + private static class writeLectureRights_resultTupleSchemeFactory implements SchemeFactory { + public writeLectureRights_resultTupleScheme getScheme() { + return new writeLectureRights_resultTupleScheme(); } } - private static class writeAdditionalImageRights_resultTupleScheme extends TupleScheme { + private static class writeLectureRights_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, writeAdditionalImageRights_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, writeLectureRights_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -40293,7 +43293,7 @@ public class Server { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, writeAdditionalImageRights_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, writeLectureRights_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -40305,40 +43305,37 @@ public class Server { } - public static class writeLectureRights_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeLectureRights_args"); + public static class writeAdditionalLectureRights_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("writeAdditionalLectureRights_args"); - private static final org.apache.thrift.protocol.TField LECTURENAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lecturename", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField LAST_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lastName", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final org.apache.thrift.protocol.TField FIRST_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("firstName", org.apache.thrift.protocol.TType.STRING, (short)4); - private static final org.apache.thrift.protocol.TField MAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("mail", org.apache.thrift.protocol.TType.STRING, (short)5); - private static final org.apache.thrift.protocol.TField UNIVERSITY_FIELD_DESC = new org.apache.thrift.protocol.TField("university", org.apache.thrift.protocol.TType.STRING, (short)6); - private static final org.apache.thrift.protocol.TField ROLE_FIELD_DESC = new org.apache.thrift.protocol.TField("role", org.apache.thrift.protocol.TType.STRING, (short)7); + private static final org.apache.thrift.protocol.TField LECTURE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureName", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userID", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField IS_READ_FIELD_DESC = new org.apache.thrift.protocol.TField("isRead", org.apache.thrift.protocol.TType.BOOL, (short)3); + private static final org.apache.thrift.protocol.TField IS_WRITE_FIELD_DESC = new org.apache.thrift.protocol.TField("isWrite", org.apache.thrift.protocol.TType.BOOL, (short)4); + private static final org.apache.thrift.protocol.TField IS_ADMIN_FIELD_DESC = new org.apache.thrift.protocol.TField("isAdmin", org.apache.thrift.protocol.TType.BOOL, (short)5); + private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new writeLectureRights_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new writeLectureRights_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new writeAdditionalLectureRights_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeAdditionalLectureRights_argsTupleSchemeFactory()); } - public String lecturename; // required - public String username; // required - public String lastName; // required - public String firstName; // required - public String mail; // required - public String university; // required - public String role; // required + public String lectureName; // required + public String userID; // required + public boolean isRead; // required + public boolean isWrite; // required + public boolean isAdmin; // required + public String token; // 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 { - LECTURENAME((short)1, "lecturename"), - USERNAME((short)2, "username"), - LAST_NAME((short)3, "lastName"), - FIRST_NAME((short)4, "firstName"), - MAIL((short)5, "mail"), - UNIVERSITY((short)6, "university"), - ROLE((short)7, "role"); + LECTURE_NAME((short)1, "lectureName"), + USER_ID((short)2, "userID"), + IS_READ((short)3, "isRead"), + IS_WRITE((short)4, "isWrite"), + IS_ADMIN((short)5, "isAdmin"), + TOKEN((short)6, "token"); private static final Map byName = new HashMap(); @@ -40353,20 +43350,18 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // LECTURENAME - return LECTURENAME; - case 2: // USERNAME - return USERNAME; - case 3: // LAST_NAME - return LAST_NAME; - case 4: // FIRST_NAME - return FIRST_NAME; - case 5: // MAIL - return MAIL; - case 6: // UNIVERSITY - return UNIVERSITY; - case 7: // ROLE - return ROLE; + case 1: // LECTURE_NAME + return LECTURE_NAME; + case 2: // USER_ID + return USER_ID; + case 3: // IS_READ + return IS_READ; + case 4: // IS_WRITE + return IS_WRITE; + case 5: // IS_ADMIN + return IS_ADMIN; + case 6: // TOKEN + return TOKEN; default: return null; } @@ -40407,314 +43402,276 @@ public class Server { } // isset id assignments + private static final int __ISREAD_ISSET_ID = 0; + private static final int __ISWRITE_ISSET_ID = 1; + private static final int __ISADMIN_ISSET_ID = 2; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.LECTURENAME, new org.apache.thrift.meta_data.FieldMetaData("lecturename", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.LAST_NAME, new org.apache.thrift.meta_data.FieldMetaData("lastName", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.FIRST_NAME, new org.apache.thrift.meta_data.FieldMetaData("firstName", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("mail", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.LECTURE_NAME, new org.apache.thrift.meta_data.FieldMetaData("lectureName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.UNIVERSITY, new org.apache.thrift.meta_data.FieldMetaData("university", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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))); - tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.IS_READ, new org.apache.thrift.meta_data.FieldMetaData("isRead", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.IS_WRITE, new org.apache.thrift.meta_data.FieldMetaData("isWrite", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.IS_ADMIN, new org.apache.thrift.meta_data.FieldMetaData("isAdmin", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", 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(writeLectureRights_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeAdditionalLectureRights_args.class, metaDataMap); } - public writeLectureRights_args() { + public writeAdditionalLectureRights_args() { } - public writeLectureRights_args( - String lecturename, - String username, - String lastName, - String firstName, - String mail, - String university, - String role) + public writeAdditionalLectureRights_args( + String lectureName, + String userID, + boolean isRead, + boolean isWrite, + boolean isAdmin, + String token) { this(); - this.lecturename = lecturename; - this.username = username; - this.lastName = lastName; - this.firstName = firstName; - this.mail = mail; - this.university = university; - this.role = role; + this.lectureName = lectureName; + this.userID = userID; + this.isRead = isRead; + setIsReadIsSet(true); + this.isWrite = isWrite; + setIsWriteIsSet(true); + this.isAdmin = isAdmin; + setIsAdminIsSet(true); + this.token = token; } /** * Performs a deep copy on other. */ - public writeLectureRights_args(writeLectureRights_args other) { - if (other.isSetLecturename()) { - this.lecturename = other.lecturename; - } - if (other.isSetUsername()) { - this.username = other.username; - } - if (other.isSetLastName()) { - this.lastName = other.lastName; - } - if (other.isSetFirstName()) { - this.firstName = other.firstName; - } - if (other.isSetMail()) { - this.mail = other.mail; + public writeAdditionalLectureRights_args(writeAdditionalLectureRights_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetLectureName()) { + this.lectureName = other.lectureName; } - if (other.isSetUniversity()) { - this.university = other.university; + if (other.isSetUserID()) { + this.userID = other.userID; } - if (other.isSetRole()) { - this.role = other.role; + this.isRead = other.isRead; + this.isWrite = other.isWrite; + this.isAdmin = other.isAdmin; + if (other.isSetToken()) { + this.token = other.token; } } - public writeLectureRights_args deepCopy() { - return new writeLectureRights_args(this); + public writeAdditionalLectureRights_args deepCopy() { + return new writeAdditionalLectureRights_args(this); } @Override public void clear() { - this.lecturename = null; - this.username = null; - this.lastName = null; - this.firstName = null; - this.mail = null; - this.university = null; - this.role = null; - } - - public String getLecturename() { - return this.lecturename; - } - - public writeLectureRights_args setLecturename(String lecturename) { - this.lecturename = lecturename; - return this; - } - - public void unsetLecturename() { - this.lecturename = null; - } - - /** Returns true if field lecturename is set (has been assigned a value) and false otherwise */ - public boolean isSetLecturename() { - return this.lecturename != null; - } - - public void setLecturenameIsSet(boolean value) { - if (!value) { - this.lecturename = null; - } + this.lectureName = null; + this.userID = null; + setIsReadIsSet(false); + this.isRead = false; + setIsWriteIsSet(false); + this.isWrite = false; + setIsAdminIsSet(false); + this.isAdmin = false; + this.token = null; } - public String getUsername() { - return this.username; + public String getLectureName() { + return this.lectureName; } - public writeLectureRights_args setUsername(String username) { - this.username = username; + public writeAdditionalLectureRights_args setLectureName(String lectureName) { + this.lectureName = lectureName; return this; } - public void unsetUsername() { - this.username = null; + public void unsetLectureName() { + this.lectureName = null; } - /** Returns true if field username is set (has been assigned a value) and false otherwise */ - public boolean isSetUsername() { - return this.username != null; + /** Returns true if field lectureName is set (has been assigned a value) and false otherwise */ + public boolean isSetLectureName() { + return this.lectureName != null; } - public void setUsernameIsSet(boolean value) { + public void setLectureNameIsSet(boolean value) { if (!value) { - this.username = null; + this.lectureName = null; } } - public String getLastName() { - return this.lastName; + public String getUserID() { + return this.userID; } - public writeLectureRights_args setLastName(String lastName) { - this.lastName = lastName; + public writeAdditionalLectureRights_args setUserID(String userID) { + this.userID = userID; return this; } - public void unsetLastName() { - this.lastName = null; + public void unsetUserID() { + this.userID = null; } - /** Returns true if field lastName is set (has been assigned a value) and false otherwise */ - public boolean isSetLastName() { - return this.lastName != 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 setLastNameIsSet(boolean value) { + public void setUserIDIsSet(boolean value) { if (!value) { - this.lastName = null; + this.userID = null; } } - public String getFirstName() { - return this.firstName; + public boolean isIsRead() { + return this.isRead; } - public writeLectureRights_args setFirstName(String firstName) { - this.firstName = firstName; + public writeAdditionalLectureRights_args setIsRead(boolean isRead) { + this.isRead = isRead; + setIsReadIsSet(true); return this; } - public void unsetFirstName() { - this.firstName = null; + public void unsetIsRead() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISREAD_ISSET_ID); } - /** Returns true if field firstName is set (has been assigned a value) and false otherwise */ - public boolean isSetFirstName() { - return this.firstName != null; + /** Returns true if field isRead is set (has been assigned a value) and false otherwise */ + public boolean isSetIsRead() { + return EncodingUtils.testBit(__isset_bitfield, __ISREAD_ISSET_ID); } - public void setFirstNameIsSet(boolean value) { - if (!value) { - this.firstName = null; - } + public void setIsReadIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISREAD_ISSET_ID, value); } - public String getMail() { - return this.mail; + public boolean isIsWrite() { + return this.isWrite; } - public writeLectureRights_args setMail(String mail) { - this.mail = mail; + public writeAdditionalLectureRights_args setIsWrite(boolean isWrite) { + this.isWrite = isWrite; + setIsWriteIsSet(true); return this; } - public void unsetMail() { - this.mail = null; + public void unsetIsWrite() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISWRITE_ISSET_ID); } - /** Returns true if field mail is set (has been assigned a value) and false otherwise */ - public boolean isSetMail() { - return this.mail != null; + /** Returns true if field isWrite is set (has been assigned a value) and false otherwise */ + public boolean isSetIsWrite() { + return EncodingUtils.testBit(__isset_bitfield, __ISWRITE_ISSET_ID); } - public void setMailIsSet(boolean value) { - if (!value) { - this.mail = null; - } + public void setIsWriteIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISWRITE_ISSET_ID, value); } - public String getUniversity() { - return this.university; + public boolean isIsAdmin() { + return this.isAdmin; } - public writeLectureRights_args setUniversity(String university) { - this.university = university; + public writeAdditionalLectureRights_args setIsAdmin(boolean isAdmin) { + this.isAdmin = isAdmin; + setIsAdminIsSet(true); return this; } - public void unsetUniversity() { - this.university = null; + public void unsetIsAdmin() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISADMIN_ISSET_ID); } - /** Returns true if field university is set (has been assigned a value) and false otherwise */ - public boolean isSetUniversity() { - return this.university != null; + /** Returns true if field isAdmin is set (has been assigned a value) and false otherwise */ + public boolean isSetIsAdmin() { + return EncodingUtils.testBit(__isset_bitfield, __ISADMIN_ISSET_ID); } - public void setUniversityIsSet(boolean value) { - if (!value) { - this.university = null; - } + public void setIsAdminIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISADMIN_ISSET_ID, value); } - public String getRole() { - return this.role; + public String getToken() { + return this.token; } - public writeLectureRights_args setRole(String role) { - this.role = role; + public writeAdditionalLectureRights_args setToken(String token) { + this.token = token; return this; } - public void unsetRole() { - this.role = null; + public void unsetToken() { + this.token = null; } - /** Returns true if field role is set (has been assigned a value) and false otherwise */ - public boolean isSetRole() { - return this.role != null; + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; } - public void setRoleIsSet(boolean value) { + public void setTokenIsSet(boolean value) { if (!value) { - this.role = null; + this.token = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case LECTURENAME: - if (value == null) { - unsetLecturename(); - } else { - setLecturename((String)value); - } - break; - - case USERNAME: + case LECTURE_NAME: if (value == null) { - unsetUsername(); + unsetLectureName(); } else { - setUsername((String)value); + setLectureName((String)value); } break; - case LAST_NAME: + case USER_ID: if (value == null) { - unsetLastName(); + unsetUserID(); } else { - setLastName((String)value); + setUserID((String)value); } break; - case FIRST_NAME: + case IS_READ: if (value == null) { - unsetFirstName(); + unsetIsRead(); } else { - setFirstName((String)value); + setIsRead((Boolean)value); } break; - case MAIL: + case IS_WRITE: if (value == null) { - unsetMail(); + unsetIsWrite(); } else { - setMail((String)value); + setIsWrite((Boolean)value); } break; - case UNIVERSITY: + case IS_ADMIN: if (value == null) { - unsetUniversity(); + unsetIsAdmin(); } else { - setUniversity((String)value); + setIsAdmin((Boolean)value); } break; - case ROLE: + case TOKEN: if (value == null) { - unsetRole(); + unsetToken(); } else { - setRole((String)value); + setToken((String)value); } break; @@ -40723,26 +43680,23 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case LECTURENAME: - return getLecturename(); - - case USERNAME: - return getUsername(); + case LECTURE_NAME: + return getLectureName(); - case LAST_NAME: - return getLastName(); + case USER_ID: + return getUserID(); - case FIRST_NAME: - return getFirstName(); + case IS_READ: + return Boolean.valueOf(isIsRead()); - case MAIL: - return getMail(); + case IS_WRITE: + return Boolean.valueOf(isIsWrite()); - case UNIVERSITY: - return getUniversity(); + case IS_ADMIN: + return Boolean.valueOf(isIsAdmin()); - case ROLE: - return getRole(); + case TOKEN: + return getToken(); } throw new IllegalStateException(); @@ -40755,20 +43709,18 @@ public class Server { } switch (field) { - case LECTURENAME: - return isSetLecturename(); - case USERNAME: - return isSetUsername(); - case LAST_NAME: - return isSetLastName(); - case FIRST_NAME: - return isSetFirstName(); - case MAIL: - return isSetMail(); - case UNIVERSITY: - return isSetUniversity(); - case ROLE: - return isSetRole(); + case LECTURE_NAME: + return isSetLectureName(); + case USER_ID: + return isSetUserID(); + case IS_READ: + return isSetIsRead(); + case IS_WRITE: + return isSetIsWrite(); + case IS_ADMIN: + return isSetIsAdmin(); + case TOKEN: + return isSetToken(); } throw new IllegalStateException(); } @@ -40777,75 +43729,66 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof writeLectureRights_args) - return this.equals((writeLectureRights_args)that); + if (that instanceof writeAdditionalLectureRights_args) + return this.equals((writeAdditionalLectureRights_args)that); return false; } - public boolean equals(writeLectureRights_args that) { + public boolean equals(writeAdditionalLectureRights_args that) { if (that == null) return false; - boolean this_present_lecturename = true && this.isSetLecturename(); - boolean that_present_lecturename = true && that.isSetLecturename(); - if (this_present_lecturename || that_present_lecturename) { - if (!(this_present_lecturename && that_present_lecturename)) - return false; - if (!this.lecturename.equals(that.lecturename)) - return false; - } - - boolean this_present_username = true && this.isSetUsername(); - boolean that_present_username = true && that.isSetUsername(); - if (this_present_username || that_present_username) { - if (!(this_present_username && that_present_username)) + boolean this_present_lectureName = true && this.isSetLectureName(); + boolean that_present_lectureName = true && that.isSetLectureName(); + if (this_present_lectureName || that_present_lectureName) { + if (!(this_present_lectureName && that_present_lectureName)) return false; - if (!this.username.equals(that.username)) + if (!this.lectureName.equals(that.lectureName)) return false; } - boolean this_present_lastName = true && this.isSetLastName(); - boolean that_present_lastName = true && that.isSetLastName(); - if (this_present_lastName || that_present_lastName) { - if (!(this_present_lastName && that_present_lastName)) + 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.lastName.equals(that.lastName)) + if (!this.userID.equals(that.userID)) return false; } - boolean this_present_firstName = true && this.isSetFirstName(); - boolean that_present_firstName = true && that.isSetFirstName(); - if (this_present_firstName || that_present_firstName) { - if (!(this_present_firstName && that_present_firstName)) + boolean this_present_isRead = true; + boolean that_present_isRead = true; + if (this_present_isRead || that_present_isRead) { + if (!(this_present_isRead && that_present_isRead)) return false; - if (!this.firstName.equals(that.firstName)) + if (this.isRead != that.isRead) return false; } - boolean this_present_mail = true && this.isSetMail(); - boolean that_present_mail = true && that.isSetMail(); - if (this_present_mail || that_present_mail) { - if (!(this_present_mail && that_present_mail)) + boolean this_present_isWrite = true; + boolean that_present_isWrite = true; + if (this_present_isWrite || that_present_isWrite) { + if (!(this_present_isWrite && that_present_isWrite)) return false; - if (!this.mail.equals(that.mail)) + if (this.isWrite != that.isWrite) return false; } - boolean this_present_university = true && this.isSetUniversity(); - boolean that_present_university = true && that.isSetUniversity(); - if (this_present_university || that_present_university) { - if (!(this_present_university && that_present_university)) + boolean this_present_isAdmin = true; + boolean that_present_isAdmin = true; + if (this_present_isAdmin || that_present_isAdmin) { + if (!(this_present_isAdmin && that_present_isAdmin)) return false; - if (!this.university.equals(that.university)) + if (this.isAdmin != that.isAdmin) return false; } - boolean this_present_role = true && this.isSetRole(); - boolean that_present_role = true && that.isSetRole(); - if (this_present_role || that_present_role) { - if (!(this_present_role && that_present_role)) + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) return false; - if (!this.role.equals(that.role)) + if (!this.token.equals(that.token)) return false; } @@ -40858,79 +43801,69 @@ public class Server { } @Override - public int compareTo(writeLectureRights_args other) { + public int compareTo(writeAdditionalLectureRights_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetLecturename()).compareTo(other.isSetLecturename()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetLecturename()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lecturename, other.lecturename); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetUsername()).compareTo(other.isSetUsername()); + lastComparison = Boolean.valueOf(isSetLectureName()).compareTo(other.isSetLectureName()); if (lastComparison != 0) { return lastComparison; } - if (isSetUsername()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, other.username); + if (isSetLectureName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lectureName, other.lectureName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLastName()).compareTo(other.isSetLastName()); + lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); if (lastComparison != 0) { return lastComparison; } - if (isSetLastName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastName, other.lastName); + if (isSetUserID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFirstName()).compareTo(other.isSetFirstName()); + lastComparison = Boolean.valueOf(isSetIsRead()).compareTo(other.isSetIsRead()); if (lastComparison != 0) { return lastComparison; } - if (isSetFirstName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.firstName, other.firstName); + if (isSetIsRead()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isRead, other.isRead); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMail()).compareTo(other.isSetMail()); + lastComparison = Boolean.valueOf(isSetIsWrite()).compareTo(other.isSetIsWrite()); if (lastComparison != 0) { return lastComparison; } - if (isSetMail()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mail, other.mail); + if (isSetIsWrite()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isWrite, other.isWrite); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUniversity()).compareTo(other.isSetUniversity()); + lastComparison = Boolean.valueOf(isSetIsAdmin()).compareTo(other.isSetIsAdmin()); if (lastComparison != 0) { return lastComparison; } - if (isSetUniversity()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.university, other.university); + if (isSetIsAdmin()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isAdmin, other.isAdmin); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRole()).compareTo(other.isSetRole()); + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); if (lastComparison != 0) { return lastComparison; } - if (isSetRole()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, other.role); + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) { return lastComparison; } @@ -40952,62 +43885,42 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("writeLectureRights_args("); + StringBuilder sb = new StringBuilder("writeAdditionalLectureRights_args("); boolean first = true; - sb.append("lecturename:"); - if (this.lecturename == null) { - sb.append("null"); - } else { - sb.append(this.lecturename); - } - first = false; - if (!first) sb.append(", "); - sb.append("username:"); - if (this.username == null) { + sb.append("lectureName:"); + if (this.lectureName == null) { sb.append("null"); } else { - sb.append(this.username); + sb.append(this.lectureName); } first = false; if (!first) sb.append(", "); - sb.append("lastName:"); - if (this.lastName == null) { + sb.append("userID:"); + if (this.userID == null) { sb.append("null"); } else { - sb.append(this.lastName); + sb.append(this.userID); } first = false; if (!first) sb.append(", "); - sb.append("firstName:"); - if (this.firstName == null) { - sb.append("null"); - } else { - sb.append(this.firstName); - } + sb.append("isRead:"); + sb.append(this.isRead); first = false; if (!first) sb.append(", "); - sb.append("mail:"); - if (this.mail == null) { - sb.append("null"); - } else { - sb.append(this.mail); - } + sb.append("isWrite:"); + sb.append(this.isWrite); first = false; if (!first) sb.append(", "); - sb.append("university:"); - if (this.university == null) { - sb.append("null"); - } else { - sb.append(this.university); - } + sb.append("isAdmin:"); + sb.append(this.isAdmin); first = false; if (!first) sb.append(", "); - sb.append("role:"); - if (this.role == null) { + sb.append("token:"); + if (this.token == null) { sb.append("null"); } else { - sb.append(this.role); + sb.append(this.token); } first = false; sb.append(")"); @@ -41029,21 +43942,23 @@ public class Server { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class writeLectureRights_argsStandardSchemeFactory implements SchemeFactory { - public writeLectureRights_argsStandardScheme getScheme() { - return new writeLectureRights_argsStandardScheme(); + private static class writeAdditionalLectureRights_argsStandardSchemeFactory implements SchemeFactory { + public writeAdditionalLectureRights_argsStandardScheme getScheme() { + return new writeAdditionalLectureRights_argsStandardScheme(); } } - private static class writeLectureRights_argsStandardScheme extends StandardScheme { + private static class writeAdditionalLectureRights_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, writeLectureRights_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, writeAdditionalLectureRights_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -41053,58 +43968,50 @@ public class Server { break; } switch (schemeField.id) { - case 1: // LECTURENAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.lecturename = iprot.readString(); - struct.setLecturenameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // USERNAME + case 1: // LECTURE_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.username = iprot.readString(); - struct.setUsernameIsSet(true); + struct.lectureName = iprot.readString(); + struct.setLectureNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // LAST_NAME + case 2: // USER_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.lastName = iprot.readString(); - struct.setLastNameIsSet(true); + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // FIRST_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.firstName = iprot.readString(); - struct.setFirstNameIsSet(true); + case 3: // IS_READ + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.isRead = iprot.readBool(); + struct.setIsReadIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 5: // MAIL - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.mail = iprot.readString(); - struct.setMailIsSet(true); + case 4: // IS_WRITE + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.isWrite = iprot.readBool(); + struct.setIsWriteIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 6: // UNIVERSITY - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.university = iprot.readString(); - struct.setUniversityIsSet(true); + case 5: // IS_ADMIN + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.isAdmin = iprot.readBool(); + struct.setIsAdminIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 7: // ROLE + case 6: // TOKEN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.role = iprot.readString(); - struct.setRoleIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -41120,43 +44027,32 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, writeLectureRights_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, writeAdditionalLectureRights_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.lecturename != null) { - oprot.writeFieldBegin(LECTURENAME_FIELD_DESC); - oprot.writeString(struct.lecturename); - oprot.writeFieldEnd(); - } - if (struct.username != null) { - oprot.writeFieldBegin(USERNAME_FIELD_DESC); - oprot.writeString(struct.username); - oprot.writeFieldEnd(); - } - if (struct.lastName != null) { - oprot.writeFieldBegin(LAST_NAME_FIELD_DESC); - oprot.writeString(struct.lastName); - oprot.writeFieldEnd(); - } - if (struct.firstName != null) { - oprot.writeFieldBegin(FIRST_NAME_FIELD_DESC); - oprot.writeString(struct.firstName); - oprot.writeFieldEnd(); - } - if (struct.mail != null) { - oprot.writeFieldBegin(MAIL_FIELD_DESC); - oprot.writeString(struct.mail); + if (struct.lectureName != null) { + oprot.writeFieldBegin(LECTURE_NAME_FIELD_DESC); + oprot.writeString(struct.lectureName); oprot.writeFieldEnd(); } - if (struct.university != null) { - oprot.writeFieldBegin(UNIVERSITY_FIELD_DESC); - oprot.writeString(struct.university); + if (struct.userID != null) { + oprot.writeFieldBegin(USER_ID_FIELD_DESC); + oprot.writeString(struct.userID); oprot.writeFieldEnd(); } - if (struct.role != null) { - oprot.writeFieldBegin(ROLE_FIELD_DESC); - oprot.writeString(struct.role); + oprot.writeFieldBegin(IS_READ_FIELD_DESC); + oprot.writeBool(struct.isRead); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(IS_WRITE_FIELD_DESC); + oprot.writeBool(struct.isWrite); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(IS_ADMIN_FIELD_DESC); + oprot.writeBool(struct.isAdmin); + oprot.writeFieldEnd(); + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -41165,109 +44061,99 @@ public class Server { } - private static class writeLectureRights_argsTupleSchemeFactory implements SchemeFactory { - public writeLectureRights_argsTupleScheme getScheme() { - return new writeLectureRights_argsTupleScheme(); + private static class writeAdditionalLectureRights_argsTupleSchemeFactory implements SchemeFactory { + public writeAdditionalLectureRights_argsTupleScheme getScheme() { + return new writeAdditionalLectureRights_argsTupleScheme(); } } - private static class writeLectureRights_argsTupleScheme extends TupleScheme { + private static class writeAdditionalLectureRights_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, writeLectureRights_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, writeAdditionalLectureRights_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetLecturename()) { + if (struct.isSetLectureName()) { optionals.set(0); } - if (struct.isSetUsername()) { + if (struct.isSetUserID()) { optionals.set(1); } - if (struct.isSetLastName()) { + if (struct.isSetIsRead()) { optionals.set(2); } - if (struct.isSetFirstName()) { + if (struct.isSetIsWrite()) { optionals.set(3); } - if (struct.isSetMail()) { + if (struct.isSetIsAdmin()) { optionals.set(4); } - if (struct.isSetUniversity()) { + if (struct.isSetToken()) { optionals.set(5); } - if (struct.isSetRole()) { - optionals.set(6); - } - oprot.writeBitSet(optionals, 7); - if (struct.isSetLecturename()) { - oprot.writeString(struct.lecturename); - } - if (struct.isSetUsername()) { - oprot.writeString(struct.username); + oprot.writeBitSet(optionals, 6); + if (struct.isSetLectureName()) { + oprot.writeString(struct.lectureName); } - if (struct.isSetLastName()) { - oprot.writeString(struct.lastName); + if (struct.isSetUserID()) { + oprot.writeString(struct.userID); } - if (struct.isSetFirstName()) { - oprot.writeString(struct.firstName); + if (struct.isSetIsRead()) { + oprot.writeBool(struct.isRead); } - if (struct.isSetMail()) { - oprot.writeString(struct.mail); + if (struct.isSetIsWrite()) { + oprot.writeBool(struct.isWrite); } - if (struct.isSetUniversity()) { - oprot.writeString(struct.university); + if (struct.isSetIsAdmin()) { + oprot.writeBool(struct.isAdmin); } - if (struct.isSetRole()) { - oprot.writeString(struct.role); + if (struct.isSetToken()) { + oprot.writeString(struct.token); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, writeLectureRights_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, writeAdditionalLectureRights_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(7); + BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { - struct.lecturename = iprot.readString(); - struct.setLecturenameIsSet(true); + struct.lectureName = iprot.readString(); + struct.setLectureNameIsSet(true); } if (incoming.get(1)) { - struct.username = iprot.readString(); - struct.setUsernameIsSet(true); + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); } if (incoming.get(2)) { - struct.lastName = iprot.readString(); - struct.setLastNameIsSet(true); + struct.isRead = iprot.readBool(); + struct.setIsReadIsSet(true); } if (incoming.get(3)) { - struct.firstName = iprot.readString(); - struct.setFirstNameIsSet(true); + struct.isWrite = iprot.readBool(); + struct.setIsWriteIsSet(true); } if (incoming.get(4)) { - struct.mail = iprot.readString(); - struct.setMailIsSet(true); + struct.isAdmin = iprot.readBool(); + struct.setIsAdminIsSet(true); } if (incoming.get(5)) { - struct.university = iprot.readString(); - struct.setUniversityIsSet(true); - } - if (incoming.get(6)) { - struct.role = iprot.readString(); - struct.setRoleIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } } } } - public static class writeLectureRights_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeLectureRights_result"); + public static class writeAdditionalLectureRights_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("writeAdditionalLectureRights_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new writeLectureRights_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new writeLectureRights_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new writeAdditionalLectureRights_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeAdditionalLectureRights_resultTupleSchemeFactory()); } public boolean success; // required @@ -41339,13 +44225,13 @@ public class Server { tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeLectureRights_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeAdditionalLectureRights_result.class, metaDataMap); } - public writeLectureRights_result() { + public writeAdditionalLectureRights_result() { } - public writeLectureRights_result( + public writeAdditionalLectureRights_result( boolean success) { this(); @@ -41356,13 +44242,13 @@ public class Server { /** * Performs a deep copy on other. */ - public writeLectureRights_result(writeLectureRights_result other) { + public writeAdditionalLectureRights_result(writeAdditionalLectureRights_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; } - public writeLectureRights_result deepCopy() { - return new writeLectureRights_result(this); + public writeAdditionalLectureRights_result deepCopy() { + return new writeAdditionalLectureRights_result(this); } @Override @@ -41375,7 +44261,7 @@ public class Server { return this.success; } - public writeLectureRights_result setSuccess(boolean success) { + public writeAdditionalLectureRights_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; @@ -41433,12 +44319,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof writeLectureRights_result) - return this.equals((writeLectureRights_result)that); + if (that instanceof writeAdditionalLectureRights_result) + return this.equals((writeAdditionalLectureRights_result)that); return false; } - public boolean equals(writeLectureRights_result that) { + public boolean equals(writeAdditionalLectureRights_result that) { if (that == null) return false; @@ -41460,7 +44346,7 @@ public class Server { } @Override - public int compareTo(writeLectureRights_result other) { + public int compareTo(writeAdditionalLectureRights_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -41494,7 +44380,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("writeLectureRights_result("); + StringBuilder sb = new StringBuilder("writeAdditionalLectureRights_result("); boolean first = true; sb.append("success:"); @@ -41527,15 +44413,15 @@ public class Server { } } - private static class writeLectureRights_resultStandardSchemeFactory implements SchemeFactory { - public writeLectureRights_resultStandardScheme getScheme() { - return new writeLectureRights_resultStandardScheme(); + private static class writeAdditionalLectureRights_resultStandardSchemeFactory implements SchemeFactory { + public writeAdditionalLectureRights_resultStandardScheme getScheme() { + return new writeAdditionalLectureRights_resultStandardScheme(); } } - private static class writeLectureRights_resultStandardScheme extends StandardScheme { + private static class writeAdditionalLectureRights_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, writeLectureRights_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, writeAdditionalLectureRights_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -41564,7 +44450,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, writeLectureRights_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, writeAdditionalLectureRights_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -41579,16 +44465,16 @@ public class Server { } - private static class writeLectureRights_resultTupleSchemeFactory implements SchemeFactory { - public writeLectureRights_resultTupleScheme getScheme() { - return new writeLectureRights_resultTupleScheme(); + private static class writeAdditionalLectureRights_resultTupleSchemeFactory implements SchemeFactory { + public writeAdditionalLectureRights_resultTupleScheme getScheme() { + return new writeAdditionalLectureRights_resultTupleScheme(); } } - private static class writeLectureRights_resultTupleScheme extends TupleScheme { + private static class writeAdditionalLectureRights_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, writeLectureRights_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, writeAdditionalLectureRights_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -41601,7 +44487,7 @@ public class Server { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, writeLectureRights_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, writeAdditionalLectureRights_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -41613,34 +44499,25 @@ public class Server { } - public static class writeAdditionalLectureRights_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("writeAdditionalLectureRights_args"); + public static class getAllOtherSatelliteUsers_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("getAllOtherSatelliteUsers_args"); - private static final org.apache.thrift.protocol.TField LECTURE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureName", org.apache.thrift.protocol.TType.STRING, (short)1); - 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)2); - private static final org.apache.thrift.protocol.TField IS_READ_FIELD_DESC = new org.apache.thrift.protocol.TField("isRead", org.apache.thrift.protocol.TType.BOOL, (short)3); - private static final org.apache.thrift.protocol.TField IS_WRITE_FIELD_DESC = new org.apache.thrift.protocol.TField("isWrite", org.apache.thrift.protocol.TType.BOOL, (short)4); - private static final org.apache.thrift.protocol.TField IS_ADMIN_FIELD_DESC = new org.apache.thrift.protocol.TField("isAdmin", org.apache.thrift.protocol.TType.BOOL, (short)5); + private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userID", org.apache.thrift.protocol.TType.LIST, (short)1); + private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new writeAdditionalLectureRights_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new writeAdditionalLectureRights_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getAllOtherSatelliteUsers_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllOtherSatelliteUsers_argsTupleSchemeFactory()); } - public String lectureName; // required - public String userID; // required - public boolean isRead; // required - public boolean isWrite; // required - public boolean isAdmin; // required + public List userID; // required + public String token; // 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 { - LECTURE_NAME((short)1, "lectureName"), - USER_ID((short)2, "userID"), - IS_READ((short)3, "isRead"), - IS_WRITE((short)4, "isWrite"), - IS_ADMIN((short)5, "isAdmin"); + USER_ID((short)1, "userID"), + TOKEN((short)2, "token"); private static final Map byName = new HashMap(); @@ -41655,16 +44532,10 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // LECTURE_NAME - return LECTURE_NAME; - case 2: // USER_ID + case 1: // USER_ID return USER_ID; - case 3: // IS_READ - return IS_READ; - case 4: // IS_WRITE - return IS_WRITE; - case 5: // IS_ADMIN - return IS_ADMIN; + case 2: // TOKEN + return TOKEN; default: return null; } @@ -41705,109 +44576,73 @@ public class Server { } // isset id assignments - private static final int __ISREAD_ISSET_ID = 0; - private static final int __ISWRITE_ISSET_ID = 1; - private static final int __ISADMIN_ISSET_ID = 2; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.LECTURE_NAME, new org.apache.thrift.meta_data.FieldMetaData("lectureName", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", 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)))); + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.IS_READ, new org.apache.thrift.meta_data.FieldMetaData("isRead", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - tmpMap.put(_Fields.IS_WRITE, new org.apache.thrift.meta_data.FieldMetaData("isWrite", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - tmpMap.put(_Fields.IS_ADMIN, new org.apache.thrift.meta_data.FieldMetaData("isAdmin", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeAdditionalLectureRights_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOtherSatelliteUsers_args.class, metaDataMap); } - public writeAdditionalLectureRights_args() { + public getAllOtherSatelliteUsers_args() { } - public writeAdditionalLectureRights_args( - String lectureName, - String userID, - boolean isRead, - boolean isWrite, - boolean isAdmin) + public getAllOtherSatelliteUsers_args( + List userID, + String token) { this(); - this.lectureName = lectureName; this.userID = userID; - this.isRead = isRead; - setIsReadIsSet(true); - this.isWrite = isWrite; - setIsWriteIsSet(true); - this.isAdmin = isAdmin; - setIsAdminIsSet(true); + this.token = token; } /** * Performs a deep copy on other. */ - public writeAdditionalLectureRights_args(writeAdditionalLectureRights_args other) { - __isset_bitfield = other.__isset_bitfield; - if (other.isSetLectureName()) { - this.lectureName = other.lectureName; - } + public getAllOtherSatelliteUsers_args(getAllOtherSatelliteUsers_args other) { if (other.isSetUserID()) { - this.userID = other.userID; + List __this__userID = new ArrayList(other.userID); + this.userID = __this__userID; + } + if (other.isSetToken()) { + this.token = other.token; } - this.isRead = other.isRead; - this.isWrite = other.isWrite; - this.isAdmin = other.isAdmin; } - public writeAdditionalLectureRights_args deepCopy() { - return new writeAdditionalLectureRights_args(this); + public getAllOtherSatelliteUsers_args deepCopy() { + return new getAllOtherSatelliteUsers_args(this); } @Override public void clear() { - this.lectureName = null; this.userID = null; - setIsReadIsSet(false); - this.isRead = false; - setIsWriteIsSet(false); - this.isWrite = false; - setIsAdminIsSet(false); - this.isAdmin = false; - } - - public String getLectureName() { - return this.lectureName; - } - - public writeAdditionalLectureRights_args setLectureName(String lectureName) { - this.lectureName = lectureName; - return this; + this.token = null; } - public void unsetLectureName() { - this.lectureName = null; + public int getUserIDSize() { + return (this.userID == null) ? 0 : this.userID.size(); } - /** Returns true if field lectureName is set (has been assigned a value) and false otherwise */ - public boolean isSetLectureName() { - return this.lectureName != null; + public java.util.Iterator getUserIDIterator() { + return (this.userID == null) ? null : this.userID.iterator(); } - public void setLectureNameIsSet(boolean value) { - if (!value) { - this.lectureName = null; + public void addToUserID(String elem) { + if (this.userID == null) { + this.userID = new ArrayList(); } + this.userID.add(elem); } - public String getUserID() { + public List getUserID() { return this.userID; } - public writeAdditionalLectureRights_args setUserID(String userID) { + public getAllOtherSatelliteUsers_args setUserID(List userID) { this.userID = userID; return this; } @@ -41827,114 +44662,45 @@ public class Server { } } - public boolean isIsRead() { - return this.isRead; - } - - public writeAdditionalLectureRights_args setIsRead(boolean isRead) { - this.isRead = isRead; - setIsReadIsSet(true); - return this; - } - - public void unsetIsRead() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISREAD_ISSET_ID); - } - - /** Returns true if field isRead is set (has been assigned a value) and false otherwise */ - public boolean isSetIsRead() { - return EncodingUtils.testBit(__isset_bitfield, __ISREAD_ISSET_ID); - } - - public void setIsReadIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISREAD_ISSET_ID, value); - } - - public boolean isIsWrite() { - return this.isWrite; - } - - public writeAdditionalLectureRights_args setIsWrite(boolean isWrite) { - this.isWrite = isWrite; - setIsWriteIsSet(true); - return this; - } - - public void unsetIsWrite() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISWRITE_ISSET_ID); - } - - /** Returns true if field isWrite is set (has been assigned a value) and false otherwise */ - public boolean isSetIsWrite() { - return EncodingUtils.testBit(__isset_bitfield, __ISWRITE_ISSET_ID); - } - - public void setIsWriteIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISWRITE_ISSET_ID, value); - } - - public boolean isIsAdmin() { - return this.isAdmin; + public String getToken() { + return this.token; } - public writeAdditionalLectureRights_args setIsAdmin(boolean isAdmin) { - this.isAdmin = isAdmin; - setIsAdminIsSet(true); + public getAllOtherSatelliteUsers_args setToken(String token) { + this.token = token; return this; } - public void unsetIsAdmin() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISADMIN_ISSET_ID); + public void unsetToken() { + this.token = null; } - /** Returns true if field isAdmin is set (has been assigned a value) and false otherwise */ - public boolean isSetIsAdmin() { - return EncodingUtils.testBit(__isset_bitfield, __ISADMIN_ISSET_ID); + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; } - public void setIsAdminIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISADMIN_ISSET_ID, value); + public void setTokenIsSet(boolean value) { + if (!value) { + this.token = null; + } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case LECTURE_NAME: - if (value == null) { - unsetLectureName(); - } else { - setLectureName((String)value); - } - break; - case USER_ID: if (value == null) { unsetUserID(); } else { - setUserID((String)value); - } - break; - - case IS_READ: - if (value == null) { - unsetIsRead(); - } else { - setIsRead((Boolean)value); - } - break; - - case IS_WRITE: - if (value == null) { - unsetIsWrite(); - } else { - setIsWrite((Boolean)value); + setUserID((List)value); } break; - case IS_ADMIN: + case TOKEN: if (value == null) { - unsetIsAdmin(); + unsetToken(); } else { - setIsAdmin((Boolean)value); + setToken((String)value); } break; @@ -41943,20 +44709,11 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case LECTURE_NAME: - return getLectureName(); - case USER_ID: return getUserID(); - case IS_READ: - return Boolean.valueOf(isIsRead()); - - case IS_WRITE: - return Boolean.valueOf(isIsWrite()); - - case IS_ADMIN: - return Boolean.valueOf(isIsAdmin()); + case TOKEN: + return getToken(); } throw new IllegalStateException(); @@ -41969,16 +44726,10 @@ public class Server { } switch (field) { - case LECTURE_NAME: - return isSetLectureName(); case USER_ID: return isSetUserID(); - case IS_READ: - return isSetIsRead(); - case IS_WRITE: - return isSetIsWrite(); - case IS_ADMIN: - return isSetIsAdmin(); + case TOKEN: + return isSetToken(); } throw new IllegalStateException(); } @@ -41987,24 +44738,15 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof writeAdditionalLectureRights_args) - return this.equals((writeAdditionalLectureRights_args)that); + if (that instanceof getAllOtherSatelliteUsers_args) + return this.equals((getAllOtherSatelliteUsers_args)that); return false; } - public boolean equals(writeAdditionalLectureRights_args that) { + public boolean equals(getAllOtherSatelliteUsers_args that) { if (that == null) return false; - boolean this_present_lectureName = true && this.isSetLectureName(); - boolean that_present_lectureName = true && that.isSetLectureName(); - if (this_present_lectureName || that_present_lectureName) { - if (!(this_present_lectureName && that_present_lectureName)) - return false; - if (!this.lectureName.equals(that.lectureName)) - return false; - } - boolean this_present_userID = true && this.isSetUserID(); boolean that_present_userID = true && that.isSetUserID(); if (this_present_userID || that_present_userID) { @@ -42014,30 +44756,12 @@ public class Server { return false; } - boolean this_present_isRead = true; - boolean that_present_isRead = true; - if (this_present_isRead || that_present_isRead) { - if (!(this_present_isRead && that_present_isRead)) - return false; - if (this.isRead != that.isRead) - return false; - } - - boolean this_present_isWrite = true; - boolean that_present_isWrite = true; - if (this_present_isWrite || that_present_isWrite) { - if (!(this_present_isWrite && that_present_isWrite)) - return false; - if (this.isWrite != that.isWrite) - return false; - } - - boolean this_present_isAdmin = true; - boolean that_present_isAdmin = true; - if (this_present_isAdmin || that_present_isAdmin) { - if (!(this_present_isAdmin && that_present_isAdmin)) + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) return false; - if (this.isAdmin != that.isAdmin) + if (!this.token.equals(that.token)) return false; } @@ -42050,23 +44774,13 @@ public class Server { } @Override - public int compareTo(writeAdditionalLectureRights_args other) { + public int compareTo(getAllOtherSatelliteUsers_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetLectureName()).compareTo(other.isSetLectureName()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetLectureName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lectureName, other.lectureName); - if (lastComparison != 0) { - return lastComparison; - } - } lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); if (lastComparison != 0) { return lastComparison; @@ -42077,32 +44791,12 @@ public class Server { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIsRead()).compareTo(other.isSetIsRead()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetIsRead()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isRead, other.isRead); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetIsWrite()).compareTo(other.isSetIsWrite()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetIsWrite()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isWrite, other.isWrite); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetIsAdmin()).compareTo(other.isSetIsAdmin()); + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); if (lastComparison != 0) { return lastComparison; } - if (isSetIsAdmin()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isAdmin, other.isAdmin); + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) { return lastComparison; } @@ -42124,17 +44818,9 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("writeAdditionalLectureRights_args("); + StringBuilder sb = new StringBuilder("getAllOtherSatelliteUsers_args("); boolean first = true; - sb.append("lectureName:"); - if (this.lectureName == null) { - sb.append("null"); - } else { - sb.append(this.lectureName); - } - first = false; - if (!first) sb.append(", "); sb.append("userID:"); if (this.userID == null) { sb.append("null"); @@ -42143,16 +44829,12 @@ public class Server { } first = false; if (!first) sb.append(", "); - sb.append("isRead:"); - sb.append(this.isRead); - first = false; - if (!first) sb.append(", "); - sb.append("isWrite:"); - sb.append(this.isWrite); - first = false; - if (!first) sb.append(", "); - sb.append("isAdmin:"); - sb.append(this.isAdmin); + sb.append("token:"); + if (this.token == null) { + sb.append("null"); + } else { + sb.append(this.token); + } first = false; sb.append(")"); return sb.toString(); @@ -42173,23 +44855,21 @@ public class Server { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class writeAdditionalLectureRights_argsStandardSchemeFactory implements SchemeFactory { - public writeAdditionalLectureRights_argsStandardScheme getScheme() { - return new writeAdditionalLectureRights_argsStandardScheme(); + private static class getAllOtherSatelliteUsers_argsStandardSchemeFactory implements SchemeFactory { + public getAllOtherSatelliteUsers_argsStandardScheme getScheme() { + return new getAllOtherSatelliteUsers_argsStandardScheme(); } } - private static class writeAdditionalLectureRights_argsStandardScheme extends StandardScheme { + private static class getAllOtherSatelliteUsers_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, writeAdditionalLectureRights_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOtherSatelliteUsers_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -42199,42 +44879,28 @@ public class Server { break; } switch (schemeField.id) { - case 1: // LECTURE_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.lectureName = iprot.readString(); - struct.setLectureNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // USER_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.userID = iprot.readString(); + case 1: // USER_ID + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list136 = iprot.readListBegin(); + struct.userID = new ArrayList(_list136.size); + for (int _i137 = 0; _i137 < _list136.size; ++_i137) + { + String _elem138; + _elem138 = iprot.readString(); + struct.userID.add(_elem138); + } + iprot.readListEnd(); + } struct.setUserIDIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // IS_READ - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.isRead = iprot.readBool(); - struct.setIsReadIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // IS_WRITE - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.isWrite = iprot.readBool(); - struct.setIsWriteIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // IS_ADMIN - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.isAdmin = iprot.readBool(); - struct.setIsAdminIsSet(true); + case 2: // TOKEN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -42250,121 +44916,104 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, writeAdditionalLectureRights_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getAllOtherSatelliteUsers_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.lectureName != null) { - oprot.writeFieldBegin(LECTURE_NAME_FIELD_DESC); - oprot.writeString(struct.lectureName); - oprot.writeFieldEnd(); - } if (struct.userID != null) { oprot.writeFieldBegin(USER_ID_FIELD_DESC); - oprot.writeString(struct.userID); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.userID.size())); + for (String _iter139 : struct.userID) + { + oprot.writeString(_iter139); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(IS_READ_FIELD_DESC); - oprot.writeBool(struct.isRead); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(IS_WRITE_FIELD_DESC); - oprot.writeBool(struct.isWrite); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(IS_ADMIN_FIELD_DESC); - oprot.writeBool(struct.isAdmin); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class writeAdditionalLectureRights_argsTupleSchemeFactory implements SchemeFactory { - public writeAdditionalLectureRights_argsTupleScheme getScheme() { - return new writeAdditionalLectureRights_argsTupleScheme(); + private static class getAllOtherSatelliteUsers_argsTupleSchemeFactory implements SchemeFactory { + public getAllOtherSatelliteUsers_argsTupleScheme getScheme() { + return new getAllOtherSatelliteUsers_argsTupleScheme(); } } - private static class writeAdditionalLectureRights_argsTupleScheme extends TupleScheme { + private static class getAllOtherSatelliteUsers_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, writeAdditionalLectureRights_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getAllOtherSatelliteUsers_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetLectureName()) { + if (struct.isSetUserID()) { optionals.set(0); } - if (struct.isSetUserID()) { + if (struct.isSetToken()) { optionals.set(1); } - if (struct.isSetIsRead()) { - optionals.set(2); - } - if (struct.isSetIsWrite()) { - optionals.set(3); - } - if (struct.isSetIsAdmin()) { - optionals.set(4); - } - oprot.writeBitSet(optionals, 5); - if (struct.isSetLectureName()) { - oprot.writeString(struct.lectureName); - } + oprot.writeBitSet(optionals, 2); if (struct.isSetUserID()) { - oprot.writeString(struct.userID); - } - if (struct.isSetIsRead()) { - oprot.writeBool(struct.isRead); - } - if (struct.isSetIsWrite()) { - oprot.writeBool(struct.isWrite); + { + oprot.writeI32(struct.userID.size()); + for (String _iter140 : struct.userID) + { + oprot.writeString(_iter140); + } + } } - if (struct.isSetIsAdmin()) { - oprot.writeBool(struct.isAdmin); + if (struct.isSetToken()) { + oprot.writeString(struct.token); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, writeAdditionalLectureRights_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getAllOtherSatelliteUsers_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.lectureName = iprot.readString(); - struct.setLectureNameIsSet(true); - } - if (incoming.get(1)) { - struct.userID = iprot.readString(); + { + org.apache.thrift.protocol.TList _list141 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.userID = new ArrayList(_list141.size); + for (int _i142 = 0; _i142 < _list141.size; ++_i142) + { + String _elem143; + _elem143 = iprot.readString(); + struct.userID.add(_elem143); + } + } struct.setUserIDIsSet(true); } - if (incoming.get(2)) { - struct.isRead = iprot.readBool(); - struct.setIsReadIsSet(true); - } - if (incoming.get(3)) { - struct.isWrite = iprot.readBool(); - struct.setIsWriteIsSet(true); - } - if (incoming.get(4)) { - struct.isAdmin = iprot.readBool(); - struct.setIsAdminIsSet(true); + if (incoming.get(1)) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } } } } - public static class writeAdditionalLectureRights_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("writeAdditionalLectureRights_result"); + public static class getAllOtherSatelliteUsers_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("getAllOtherSatelliteUsers_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + private static final 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 writeAdditionalLectureRights_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new writeAdditionalLectureRights_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getAllOtherSatelliteUsers_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllOtherSatelliteUsers_resultTupleSchemeFactory()); } - public boolean 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 { @@ -42425,67 +45074,85 @@ public class Server { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + 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, Person.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeAdditionalLectureRights_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOtherSatelliteUsers_result.class, metaDataMap); } - public writeAdditionalLectureRights_result() { + public getAllOtherSatelliteUsers_result() { } - public writeAdditionalLectureRights_result( - boolean success) + public getAllOtherSatelliteUsers_result( + List success) { this(); this.success = success; - setSuccessIsSet(true); } /** * Performs a deep copy on other. */ - public writeAdditionalLectureRights_result(writeAdditionalLectureRights_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public getAllOtherSatelliteUsers_result(getAllOtherSatelliteUsers_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success.size()); + for (Person other_element : other.success) { + __this__success.add(new Person(other_element)); + } + this.success = __this__success; + } } - public writeAdditionalLectureRights_result deepCopy() { - return new writeAdditionalLectureRights_result(this); + public getAllOtherSatelliteUsers_result deepCopy() { + return new getAllOtherSatelliteUsers_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; + this.success = null; } - public boolean isSuccess() { + 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(Person elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { return this.success; } - public writeAdditionalLectureRights_result setSuccess(boolean success) { + public getAllOtherSatelliteUsers_result setSuccess(List success) { this.success = success; - setSuccessIsSet(true); return this; } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + return this.success != null; } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + if (!value) { + this.success = null; + } } public void setFieldValue(_Fields field, Object value) { @@ -42494,7 +45161,7 @@ public class Server { if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((List)value); } break; @@ -42504,7 +45171,7 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return Boolean.valueOf(isSuccess()); + return getSuccess(); } throw new IllegalStateException(); @@ -42527,21 +45194,21 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof writeAdditionalLectureRights_result) - return this.equals((writeAdditionalLectureRights_result)that); + if (that instanceof getAllOtherSatelliteUsers_result) + return this.equals((getAllOtherSatelliteUsers_result)that); return false; } - public boolean equals(writeAdditionalLectureRights_result that) { + public boolean equals(getAllOtherSatelliteUsers_result that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; + 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 != that.success) + if (!this.success.equals(that.success)) return false; } @@ -42554,7 +45221,7 @@ public class Server { } @Override - public int compareTo(writeAdditionalLectureRights_result other) { + public int compareTo(getAllOtherSatelliteUsers_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -42588,11 +45255,15 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("writeAdditionalLectureRights_result("); + StringBuilder sb = new StringBuilder("getAllOtherSatelliteUsers_result("); boolean first = true; sb.append("success:"); - sb.append(this.success); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } first = false; sb.append(")"); return sb.toString(); @@ -42613,23 +45284,21 @@ public class Server { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class writeAdditionalLectureRights_resultStandardSchemeFactory implements SchemeFactory { - public writeAdditionalLectureRights_resultStandardScheme getScheme() { - return new writeAdditionalLectureRights_resultStandardScheme(); + private static class getAllOtherSatelliteUsers_resultStandardSchemeFactory implements SchemeFactory { + public getAllOtherSatelliteUsers_resultStandardScheme getScheme() { + return new getAllOtherSatelliteUsers_resultStandardScheme(); } } - private static class writeAdditionalLectureRights_resultStandardScheme extends StandardScheme { + private static class getAllOtherSatelliteUsers_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, writeAdditionalLectureRights_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOtherSatelliteUsers_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -42640,8 +45309,19 @@ public class Server { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list144 = iprot.readListBegin(); + struct.success = new ArrayList(_list144.size); + for (int _i145 = 0; _i145 < _list144.size; ++_i145) + { + Person _elem146; + _elem146 = new Person(); + _elem146.read(iprot); + struct.success.add(_elem146); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -42658,13 +45338,20 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, writeAdditionalLectureRights_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getAllOtherSatelliteUsers_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { + if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBool(struct.success); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Person _iter147 : struct.success) + { + _iter147.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -42673,16 +45360,16 @@ public class Server { } - private static class writeAdditionalLectureRights_resultTupleSchemeFactory implements SchemeFactory { - public writeAdditionalLectureRights_resultTupleScheme getScheme() { - return new writeAdditionalLectureRights_resultTupleScheme(); + private static class getAllOtherSatelliteUsers_resultTupleSchemeFactory implements SchemeFactory { + public getAllOtherSatelliteUsers_resultTupleScheme getScheme() { + return new getAllOtherSatelliteUsers_resultTupleScheme(); } } - private static class writeAdditionalLectureRights_resultTupleScheme extends TupleScheme { + private static class getAllOtherSatelliteUsers_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, writeAdditionalLectureRights_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getAllOtherSatelliteUsers_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -42690,16 +45377,32 @@ public class Server { } oprot.writeBitSet(optionals, 1); if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + { + oprot.writeI32(struct.success.size()); + for (Person _iter148 : struct.success) + { + _iter148.write(oprot); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, writeAdditionalLectureRights_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getAllOtherSatelliteUsers_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.success = iprot.readBool(); + { + org.apache.thrift.protocol.TList _list149 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list149.size); + for (int _i150 = 0; _i150 < _list149.size; ++_i150) + { + Person _elem151; + _elem151 = new Person(); + _elem151.read(iprot); + struct.success.add(_elem151); + } + } struct.setSuccessIsSet(true); } } @@ -42707,22 +45410,28 @@ public class Server { } - public static class getAllOtherSatelliteUsers_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("getAllOtherSatelliteUsers_args"); + public static class getPermissionForUserAndImage_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("getPermissionForUserAndImage_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.LIST, (short)1); + private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField IMAGE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageID", org.apache.thrift.protocol.TType.STRING, (short)2); + 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)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllOtherSatelliteUsers_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllOtherSatelliteUsers_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getPermissionForUserAndImage_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getPermissionForUserAndImage_argsTupleSchemeFactory()); } - public List userID; // required + public String token; // required + public String imageID; // required + 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"); + TOKEN((short)1, "token"), + IMAGE_ID((short)2, "imageID"), + USER_ID((short)3, "userID"); private static final Map byName = new HashMap(); @@ -42737,7 +45446,11 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // USER_ID + case 1: // TOKEN + return TOKEN; + case 2: // IMAGE_ID + return IMAGE_ID; + case 3: // USER_ID return USER_ID; default: return null; @@ -42782,62 +45495,109 @@ public class Server { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.IMAGE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageID", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", 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.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOtherSatelliteUsers_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionForUserAndImage_args.class, metaDataMap); } - public getAllOtherSatelliteUsers_args() { + public getPermissionForUserAndImage_args() { } - public getAllOtherSatelliteUsers_args( - List userID) + public getPermissionForUserAndImage_args( + String token, + String imageID, + String userID) { this(); + this.token = token; + this.imageID = imageID; this.userID = userID; } /** * Performs a deep copy on other. */ - public getAllOtherSatelliteUsers_args(getAllOtherSatelliteUsers_args other) { + public getPermissionForUserAndImage_args(getPermissionForUserAndImage_args other) { + if (other.isSetToken()) { + this.token = other.token; + } + if (other.isSetImageID()) { + this.imageID = other.imageID; + } if (other.isSetUserID()) { - List __this__userID = new ArrayList(other.userID); - this.userID = __this__userID; + this.userID = other.userID; } } - public getAllOtherSatelliteUsers_args deepCopy() { - return new getAllOtherSatelliteUsers_args(this); + public getPermissionForUserAndImage_args deepCopy() { + return new getPermissionForUserAndImage_args(this); } @Override public void clear() { + this.token = null; + this.imageID = null; this.userID = null; } - public int getUserIDSize() { - return (this.userID == null) ? 0 : this.userID.size(); + public String getToken() { + return this.token; } - public java.util.Iterator getUserIDIterator() { - return (this.userID == null) ? null : this.userID.iterator(); + public getPermissionForUserAndImage_args setToken(String token) { + this.token = token; + return this; } - public void addToUserID(String elem) { - if (this.userID == null) { - this.userID = new ArrayList(); + public void unsetToken() { + this.token = null; + } + + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; + } + + public void setTokenIsSet(boolean value) { + if (!value) { + this.token = null; } - this.userID.add(elem); } - public List getUserID() { + public String getImageID() { + return this.imageID; + } + + public getPermissionForUserAndImage_args setImageID(String imageID) { + this.imageID = imageID; + return this; + } + + public void unsetImageID() { + this.imageID = null; + } + + /** Returns true if field imageID is set (has been assigned a value) and false otherwise */ + public boolean isSetImageID() { + return this.imageID != null; + } + + public void setImageIDIsSet(boolean value) { + if (!value) { + this.imageID = null; + } + } + + public String getUserID() { return this.userID; } - public getAllOtherSatelliteUsers_args setUserID(List userID) { + public getPermissionForUserAndImage_args setUserID(String userID) { this.userID = userID; return this; } @@ -42859,11 +45619,27 @@ public class Server { public void setFieldValue(_Fields field, Object value) { switch (field) { + case TOKEN: + if (value == null) { + unsetToken(); + } else { + setToken((String)value); + } + break; + + case IMAGE_ID: + if (value == null) { + unsetImageID(); + } else { + setImageID((String)value); + } + break; + case USER_ID: if (value == null) { unsetUserID(); } else { - setUserID((List)value); + setUserID((String)value); } break; @@ -42872,6 +45648,12 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { + case TOKEN: + return getToken(); + + case IMAGE_ID: + return getImageID(); + case USER_ID: return getUserID(); @@ -42886,6 +45668,10 @@ public class Server { } switch (field) { + case TOKEN: + return isSetToken(); + case IMAGE_ID: + return isSetImageID(); case USER_ID: return isSetUserID(); } @@ -42896,15 +45682,33 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllOtherSatelliteUsers_args) - return this.equals((getAllOtherSatelliteUsers_args)that); + if (that instanceof getPermissionForUserAndImage_args) + return this.equals((getPermissionForUserAndImage_args)that); return false; } - public boolean equals(getAllOtherSatelliteUsers_args that) { + public boolean equals(getPermissionForUserAndImage_args that) { if (that == null) return false; + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) + return false; + if (!this.token.equals(that.token)) + return false; + } + + boolean this_present_imageID = true && this.isSetImageID(); + boolean that_present_imageID = true && that.isSetImageID(); + if (this_present_imageID || that_present_imageID) { + if (!(this_present_imageID && that_present_imageID)) + return false; + if (!this.imageID.equals(that.imageID)) + return false; + } + boolean this_present_userID = true && this.isSetUserID(); boolean that_present_userID = true && that.isSetUserID(); if (this_present_userID || that_present_userID) { @@ -42923,13 +45727,33 @@ public class Server { } @Override - public int compareTo(getAllOtherSatelliteUsers_args other) { + public int compareTo(getPermissionForUserAndImage_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetImageID()).compareTo(other.isSetImageID()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetImageID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageID, other.imageID); + if (lastComparison != 0) { + return lastComparison; + } + } lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); if (lastComparison != 0) { return lastComparison; @@ -42957,9 +45781,25 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllOtherSatelliteUsers_args("); + StringBuilder sb = new StringBuilder("getPermissionForUserAndImage_args("); boolean first = true; + sb.append("token:"); + if (this.token == null) { + sb.append("null"); + } else { + sb.append(this.token); + } + first = false; + if (!first) sb.append(", "); + sb.append("imageID:"); + if (this.imageID == null) { + sb.append("null"); + } else { + sb.append(this.imageID); + } + first = false; + if (!first) sb.append(", "); sb.append("userID:"); if (this.userID == null) { sb.append("null"); @@ -42992,15 +45832,15 @@ public class Server { } } - private static class getAllOtherSatelliteUsers_argsStandardSchemeFactory implements SchemeFactory { - public getAllOtherSatelliteUsers_argsStandardScheme getScheme() { - return new getAllOtherSatelliteUsers_argsStandardScheme(); + private static class getPermissionForUserAndImage_argsStandardSchemeFactory implements SchemeFactory { + public getPermissionForUserAndImage_argsStandardScheme getScheme() { + return new getPermissionForUserAndImage_argsStandardScheme(); } } - private static class getAllOtherSatelliteUsers_argsStandardScheme extends StandardScheme { + private static class getPermissionForUserAndImage_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOtherSatelliteUsers_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getPermissionForUserAndImage_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -43010,19 +45850,25 @@ public class Server { break; } switch (schemeField.id) { - case 1: // USER_ID - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list136 = iprot.readListBegin(); - struct.userID = new ArrayList(_list136.size); - for (int _i137 = 0; _i137 < _list136.size; ++_i137) - { - String _elem138; - _elem138 = iprot.readString(); - struct.userID.add(_elem138); - } - iprot.readListEnd(); - } + case 1: // TOKEN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // IMAGE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.imageID = iprot.readString(); + struct.setImageIDIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // 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); @@ -43039,20 +45885,23 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllOtherSatelliteUsers_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getPermissionForUserAndImage_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); + oprot.writeFieldEnd(); + } + if (struct.imageID != null) { + oprot.writeFieldBegin(IMAGE_ID_FIELD_DESC); + oprot.writeString(struct.imageID); + oprot.writeFieldEnd(); + } if (struct.userID != null) { 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 _iter139 : struct.userID) - { - oprot.writeString(_iter139); - } - oprot.writeListEnd(); - } + oprot.writeString(struct.userID); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -43061,48 +45910,53 @@ public class Server { } - private static class getAllOtherSatelliteUsers_argsTupleSchemeFactory implements SchemeFactory { - public getAllOtherSatelliteUsers_argsTupleScheme getScheme() { - return new getAllOtherSatelliteUsers_argsTupleScheme(); + private static class getPermissionForUserAndImage_argsTupleSchemeFactory implements SchemeFactory { + public getPermissionForUserAndImage_argsTupleScheme getScheme() { + return new getPermissionForUserAndImage_argsTupleScheme(); } } - private static class getAllOtherSatelliteUsers_argsTupleScheme extends TupleScheme { + private static class getPermissionForUserAndImage_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllOtherSatelliteUsers_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndImage_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetUserID()) { + if (struct.isSetToken()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); + if (struct.isSetImageID()) { + optionals.set(1); + } if (struct.isSetUserID()) { - { - oprot.writeI32(struct.userID.size()); - for (String _iter140 : struct.userID) - { - oprot.writeString(_iter140); - } - } + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetToken()) { + oprot.writeString(struct.token); + } + if (struct.isSetImageID()) { + oprot.writeString(struct.imageID); + } + if (struct.isSetUserID()) { + oprot.writeString(struct.userID); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllOtherSatelliteUsers_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndImage_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list141 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.userID = new ArrayList(_list141.size); - for (int _i142 = 0; _i142 < _list141.size; ++_i142) - { - String _elem143; - _elem143 = iprot.readString(); - struct.userID.add(_elem143); - } - } + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } + if (incoming.get(1)) { + struct.imageID = iprot.readString(); + struct.setImageIDIsSet(true); + } + if (incoming.get(2)) { + struct.userID = iprot.readString(); struct.setUserIDIsSet(true); } } @@ -43110,15 +45964,15 @@ public class Server { } - public static class getAllOtherSatelliteUsers_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("getAllOtherSatelliteUsers_result"); + public static class getPermissionForUserAndImage_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("getPermissionForUserAndImage_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 getAllOtherSatelliteUsers_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllOtherSatelliteUsers_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getPermissionForUserAndImage_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getPermissionForUserAndImage_resultTupleSchemeFactory()); } public List success; // required @@ -43189,13 +46043,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, Person.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOtherSatelliteUsers_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionForUserAndImage_result.class, metaDataMap); } - public getAllOtherSatelliteUsers_result() { + public getPermissionForUserAndImage_result() { } - public getAllOtherSatelliteUsers_result( + public getPermissionForUserAndImage_result( List success) { this(); @@ -43205,7 +46059,7 @@ public class Server { /** * Performs a deep copy on other. */ - public getAllOtherSatelliteUsers_result(getAllOtherSatelliteUsers_result other) { + public getPermissionForUserAndImage_result(getPermissionForUserAndImage_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (Person other_element : other.success) { @@ -43215,8 +46069,8 @@ public class Server { } } - public getAllOtherSatelliteUsers_result deepCopy() { - return new getAllOtherSatelliteUsers_result(this); + public getPermissionForUserAndImage_result deepCopy() { + return new getPermissionForUserAndImage_result(this); } @Override @@ -43243,7 +46097,7 @@ public class Server { return this.success; } - public getAllOtherSatelliteUsers_result setSuccess(List success) { + public getPermissionForUserAndImage_result setSuccess(List success) { this.success = success; return this; } @@ -43302,12 +46156,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllOtherSatelliteUsers_result) - return this.equals((getAllOtherSatelliteUsers_result)that); + if (that instanceof getPermissionForUserAndImage_result) + return this.equals((getPermissionForUserAndImage_result)that); return false; } - public boolean equals(getAllOtherSatelliteUsers_result that) { + public boolean equals(getPermissionForUserAndImage_result that) { if (that == null) return false; @@ -43329,7 +46183,7 @@ public class Server { } @Override - public int compareTo(getAllOtherSatelliteUsers_result other) { + public int compareTo(getPermissionForUserAndImage_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -43363,7 +46217,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllOtherSatelliteUsers_result("); + StringBuilder sb = new StringBuilder("getPermissionForUserAndImage_result("); boolean first = true; sb.append("success:"); @@ -43398,15 +46252,15 @@ public class Server { } } - private static class getAllOtherSatelliteUsers_resultStandardSchemeFactory implements SchemeFactory { - public getAllOtherSatelliteUsers_resultStandardScheme getScheme() { - return new getAllOtherSatelliteUsers_resultStandardScheme(); + private static class getPermissionForUserAndImage_resultStandardSchemeFactory implements SchemeFactory { + public getPermissionForUserAndImage_resultStandardScheme getScheme() { + return new getPermissionForUserAndImage_resultStandardScheme(); } } - private static class getAllOtherSatelliteUsers_resultStandardScheme extends StandardScheme { + private static class getPermissionForUserAndImage_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOtherSatelliteUsers_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getPermissionForUserAndImage_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -43419,14 +46273,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list144 = iprot.readListBegin(); - struct.success = new ArrayList(_list144.size); - for (int _i145 = 0; _i145 < _list144.size; ++_i145) + org.apache.thrift.protocol.TList _list152 = iprot.readListBegin(); + struct.success = new ArrayList(_list152.size); + for (int _i153 = 0; _i153 < _list152.size; ++_i153) { - Person _elem146; - _elem146 = new Person(); - _elem146.read(iprot); - struct.success.add(_elem146); + Person _elem154; + _elem154 = new Person(); + _elem154.read(iprot); + struct.success.add(_elem154); } iprot.readListEnd(); } @@ -43446,7 +46300,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllOtherSatelliteUsers_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getPermissionForUserAndImage_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -43454,9 +46308,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 _iter147 : struct.success) + for (Person _iter155 : struct.success) { - _iter147.write(oprot); + _iter155.write(oprot); } oprot.writeListEnd(); } @@ -43468,16 +46322,16 @@ public class Server { } - private static class getAllOtherSatelliteUsers_resultTupleSchemeFactory implements SchemeFactory { - public getAllOtherSatelliteUsers_resultTupleScheme getScheme() { - return new getAllOtherSatelliteUsers_resultTupleScheme(); + private static class getPermissionForUserAndImage_resultTupleSchemeFactory implements SchemeFactory { + public getPermissionForUserAndImage_resultTupleScheme getScheme() { + return new getPermissionForUserAndImage_resultTupleScheme(); } } - private static class getAllOtherSatelliteUsers_resultTupleScheme extends TupleScheme { + private static class getPermissionForUserAndImage_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllOtherSatelliteUsers_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndImage_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -43487,28 +46341,28 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Person _iter148 : struct.success) + for (Person _iter156 : struct.success) { - _iter148.write(oprot); + _iter156.write(oprot); } } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllOtherSatelliteUsers_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndImage_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 _list149 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list149.size); - for (int _i150 = 0; _i150 < _list149.size; ++_i150) + org.apache.thrift.protocol.TList _list157 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list157.size); + for (int _i158 = 0; _i158 < _list157.size; ++_i158) { - Person _elem151; - _elem151 = new Person(); - _elem151.read(iprot); - struct.success.add(_elem151); + Person _elem159; + _elem159 = new Person(); + _elem159.read(iprot); + struct.success.add(_elem159); } } struct.setSuccessIsSet(true); @@ -43518,25 +46372,25 @@ public class Server { } - public static class getPermissionForUserAndImage_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("getPermissionForUserAndImage_args"); + public static class getAdditionalImageContacts_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("getAdditionalImageContacts_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 org.apache.thrift.protocol.TField IMAGE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageID", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField IMAGE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageID", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getPermissionForUserAndImage_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getPermissionForUserAndImage_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getAdditionalImageContacts_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAdditionalImageContacts_argsTupleSchemeFactory()); } - public String userID; // required public String imageID; // required + public String token; // 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"), - IMAGE_ID((short)2, "imageID"); + IMAGE_ID((short)1, "imageID"), + TOKEN((short)2, "token"); private static final Map byName = new HashMap(); @@ -43551,10 +46405,10 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // USER_ID - return USER_ID; - case 2: // IMAGE_ID + case 1: // IMAGE_ID return IMAGE_ID; + case 2: // TOKEN + return TOKEN; default: return null; } @@ -43598,111 +46452,111 @@ public class Server { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.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))); tmpMap.put(_Fields.IMAGE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageID", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", 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(getPermissionForUserAndImage_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdditionalImageContacts_args.class, metaDataMap); } - public getPermissionForUserAndImage_args() { + public getAdditionalImageContacts_args() { } - public getPermissionForUserAndImage_args( - String userID, - String imageID) + public getAdditionalImageContacts_args( + String imageID, + String token) { this(); - this.userID = userID; this.imageID = imageID; + this.token = token; } /** * Performs a deep copy on other. */ - public getPermissionForUserAndImage_args(getPermissionForUserAndImage_args other) { - if (other.isSetUserID()) { - this.userID = other.userID; - } + public getAdditionalImageContacts_args(getAdditionalImageContacts_args other) { if (other.isSetImageID()) { this.imageID = other.imageID; } + if (other.isSetToken()) { + this.token = other.token; + } } - public getPermissionForUserAndImage_args deepCopy() { - return new getPermissionForUserAndImage_args(this); + public getAdditionalImageContacts_args deepCopy() { + return new getAdditionalImageContacts_args(this); } @Override public void clear() { - this.userID = null; this.imageID = null; + this.token = null; } - public String getUserID() { - return this.userID; + public String getImageID() { + return this.imageID; } - public getPermissionForUserAndImage_args setUserID(String userID) { - this.userID = userID; + public getAdditionalImageContacts_args setImageID(String imageID) { + this.imageID = imageID; return this; } - public void unsetUserID() { - this.userID = null; + public void unsetImageID() { + this.imageID = null; } - /** Returns true if field userID is set (has been assigned a value) and false otherwise */ - public boolean isSetUserID() { - return this.userID != null; + /** Returns true if field imageID is set (has been assigned a value) and false otherwise */ + public boolean isSetImageID() { + return this.imageID != null; } - public void setUserIDIsSet(boolean value) { + public void setImageIDIsSet(boolean value) { if (!value) { - this.userID = null; + this.imageID = null; } } - public String getImageID() { - return this.imageID; + public String getToken() { + return this.token; } - public getPermissionForUserAndImage_args setImageID(String imageID) { - this.imageID = imageID; + public getAdditionalImageContacts_args setToken(String token) { + this.token = token; return this; } - public void unsetImageID() { - this.imageID = null; + public void unsetToken() { + this.token = null; } - /** Returns true if field imageID is set (has been assigned a value) and false otherwise */ - public boolean isSetImageID() { - return this.imageID != null; + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; } - public void setImageIDIsSet(boolean value) { + public void setTokenIsSet(boolean value) { if (!value) { - this.imageID = null; + this.token = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case USER_ID: + case IMAGE_ID: if (value == null) { - unsetUserID(); + unsetImageID(); } else { - setUserID((String)value); + setImageID((String)value); } break; - case IMAGE_ID: + case TOKEN: if (value == null) { - unsetImageID(); + unsetToken(); } else { - setImageID((String)value); + setToken((String)value); } break; @@ -43711,12 +46565,12 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case USER_ID: - return getUserID(); - case IMAGE_ID: return getImageID(); + case TOKEN: + return getToken(); + } throw new IllegalStateException(); } @@ -43728,10 +46582,10 @@ public class Server { } switch (field) { - case USER_ID: - return isSetUserID(); case IMAGE_ID: return isSetImageID(); + case TOKEN: + return isSetToken(); } throw new IllegalStateException(); } @@ -43740,24 +46594,15 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getPermissionForUserAndImage_args) - return this.equals((getPermissionForUserAndImage_args)that); + if (that instanceof getAdditionalImageContacts_args) + return this.equals((getAdditionalImageContacts_args)that); return false; } - public boolean equals(getPermissionForUserAndImage_args that) { + public boolean equals(getAdditionalImageContacts_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; - } - boolean this_present_imageID = true && this.isSetImageID(); boolean that_present_imageID = true && that.isSetImageID(); if (this_present_imageID || that_present_imageID) { @@ -43767,6 +46612,15 @@ public class Server { return false; } + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) + return false; + if (!this.token.equals(that.token)) + return false; + } + return true; } @@ -43776,29 +46630,29 @@ public class Server { } @Override - public int compareTo(getPermissionForUserAndImage_args other) { + public int compareTo(getAdditionalImageContacts_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); + lastComparison = Boolean.valueOf(isSetImageID()).compareTo(other.isSetImageID()); if (lastComparison != 0) { return lastComparison; } - if (isSetUserID()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); + if (isSetImageID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageID, other.imageID); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageID()).compareTo(other.isSetImageID()); + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); if (lastComparison != 0) { return lastComparison; } - if (isSetImageID()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageID, other.imageID); + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) { return lastComparison; } @@ -43820,22 +46674,22 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getPermissionForUserAndImage_args("); + StringBuilder sb = new StringBuilder("getAdditionalImageContacts_args("); boolean first = true; - sb.append("userID:"); - if (this.userID == null) { + sb.append("imageID:"); + if (this.imageID == null) { sb.append("null"); } else { - sb.append(this.userID); + sb.append(this.imageID); } first = false; if (!first) sb.append(", "); - sb.append("imageID:"); - if (this.imageID == null) { + sb.append("token:"); + if (this.token == null) { sb.append("null"); } else { - sb.append(this.imageID); + sb.append(this.token); } first = false; sb.append(")"); @@ -43863,15 +46717,15 @@ public class Server { } } - private static class getPermissionForUserAndImage_argsStandardSchemeFactory implements SchemeFactory { - public getPermissionForUserAndImage_argsStandardScheme getScheme() { - return new getPermissionForUserAndImage_argsStandardScheme(); + private static class getAdditionalImageContacts_argsStandardSchemeFactory implements SchemeFactory { + public getAdditionalImageContacts_argsStandardScheme getScheme() { + return new getAdditionalImageContacts_argsStandardScheme(); } } - private static class getPermissionForUserAndImage_argsStandardScheme extends StandardScheme { + private static class getAdditionalImageContacts_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getPermissionForUserAndImage_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getAdditionalImageContacts_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -43881,18 +46735,18 @@ public class Server { break; } switch (schemeField.id) { - case 1: // USER_ID + case 1: // IMAGE_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.userID = iprot.readString(); - struct.setUserIDIsSet(true); + struct.imageID = iprot.readString(); + struct.setImageIDIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // IMAGE_ID + case 2: // TOKEN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imageID = iprot.readString(); - struct.setImageIDIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -43908,82 +46762,82 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getPermissionForUserAndImage_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getAdditionalImageContacts_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(); - } if (struct.imageID != null) { oprot.writeFieldBegin(IMAGE_ID_FIELD_DESC); oprot.writeString(struct.imageID); oprot.writeFieldEnd(); } + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getPermissionForUserAndImage_argsTupleSchemeFactory implements SchemeFactory { - public getPermissionForUserAndImage_argsTupleScheme getScheme() { - return new getPermissionForUserAndImage_argsTupleScheme(); + private static class getAdditionalImageContacts_argsTupleSchemeFactory implements SchemeFactory { + public getAdditionalImageContacts_argsTupleScheme getScheme() { + return new getAdditionalImageContacts_argsTupleScheme(); } } - private static class getPermissionForUserAndImage_argsTupleScheme extends TupleScheme { + private static class getAdditionalImageContacts_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndImage_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getAdditionalImageContacts_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetUserID()) { + if (struct.isSetImageID()) { optionals.set(0); } - if (struct.isSetImageID()) { + if (struct.isSetToken()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); - if (struct.isSetUserID()) { - oprot.writeString(struct.userID); - } if (struct.isSetImageID()) { oprot.writeString(struct.imageID); } + if (struct.isSetToken()) { + oprot.writeString(struct.token); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndImage_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getAdditionalImageContacts_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.userID = iprot.readString(); - struct.setUserIDIsSet(true); - } - if (incoming.get(1)) { struct.imageID = iprot.readString(); struct.setImageIDIsSet(true); } + if (incoming.get(1)) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } } } } - public static class getPermissionForUserAndImage_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("getPermissionForUserAndImage_result"); + public static class getAdditionalImageContacts_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("getAdditionalImageContacts_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 getPermissionForUserAndImage_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getPermissionForUserAndImage_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getAdditionalImageContacts_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAdditionalImageContacts_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 { @@ -44049,16 +46903,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, Person.class)))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionForUserAndImage_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdditionalImageContacts_result.class, metaDataMap); } - public getPermissionForUserAndImage_result() { + public getAdditionalImageContacts_result() { } - public getPermissionForUserAndImage_result( - List success) + public getAdditionalImageContacts_result( + List success) { this(); this.success = success; @@ -44067,18 +46921,15 @@ public class Server { /** * Performs a deep copy on other. */ - public getPermissionForUserAndImage_result(getPermissionForUserAndImage_result other) { + public getAdditionalImageContacts_result(getAdditionalImageContacts_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (Person other_element : other.success) { - __this__success.add(new Person(other_element)); - } + List __this__success = new ArrayList(other.success); this.success = __this__success; } } - public getPermissionForUserAndImage_result deepCopy() { - return new getPermissionForUserAndImage_result(this); + public getAdditionalImageContacts_result deepCopy() { + return new getAdditionalImageContacts_result(this); } @Override @@ -44090,22 +46941,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(Person elem) { + public void addToSuccess(String 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 getPermissionForUserAndImage_result setSuccess(List success) { + public getAdditionalImageContacts_result setSuccess(List success) { this.success = success; return this; } @@ -44131,7 +46982,7 @@ public class Server { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -44164,12 +47015,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getPermissionForUserAndImage_result) - return this.equals((getPermissionForUserAndImage_result)that); + if (that instanceof getAdditionalImageContacts_result) + return this.equals((getAdditionalImageContacts_result)that); return false; } - public boolean equals(getPermissionForUserAndImage_result that) { + public boolean equals(getAdditionalImageContacts_result that) { if (that == null) return false; @@ -44191,7 +47042,7 @@ public class Server { } @Override - public int compareTo(getPermissionForUserAndImage_result other) { + public int compareTo(getAdditionalImageContacts_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -44225,7 +47076,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getPermissionForUserAndImage_result("); + StringBuilder sb = new StringBuilder("getAdditionalImageContacts_result("); boolean first = true; sb.append("success:"); @@ -44260,15 +47111,15 @@ public class Server { } } - private static class getPermissionForUserAndImage_resultStandardSchemeFactory implements SchemeFactory { - public getPermissionForUserAndImage_resultStandardScheme getScheme() { - return new getPermissionForUserAndImage_resultStandardScheme(); + private static class getAdditionalImageContacts_resultStandardSchemeFactory implements SchemeFactory { + public getAdditionalImageContacts_resultStandardScheme getScheme() { + return new getAdditionalImageContacts_resultStandardScheme(); } } - private static class getPermissionForUserAndImage_resultStandardScheme extends StandardScheme { + private static class getAdditionalImageContacts_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getPermissionForUserAndImage_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getAdditionalImageContacts_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -44281,14 +47132,13 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list152 = iprot.readListBegin(); - struct.success = new ArrayList(_list152.size); - for (int _i153 = 0; _i153 < _list152.size; ++_i153) + org.apache.thrift.protocol.TList _list160 = iprot.readListBegin(); + struct.success = new ArrayList(_list160.size); + for (int _i161 = 0; _i161 < _list160.size; ++_i161) { - Person _elem154; - _elem154 = new Person(); - _elem154.read(iprot); - struct.success.add(_elem154); + String _elem162; + _elem162 = iprot.readString(); + struct.success.add(_elem162); } iprot.readListEnd(); } @@ -44308,17 +47158,17 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getPermissionForUserAndImage_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getAdditionalImageContacts_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.STRUCT, struct.success.size())); - for (Person _iter155 : struct.success) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (String _iter163 : struct.success) { - _iter155.write(oprot); + oprot.writeString(_iter163); } oprot.writeListEnd(); } @@ -44330,16 +47180,16 @@ public class Server { } - private static class getPermissionForUserAndImage_resultTupleSchemeFactory implements SchemeFactory { - public getPermissionForUserAndImage_resultTupleScheme getScheme() { - return new getPermissionForUserAndImage_resultTupleScheme(); + private static class getAdditionalImageContacts_resultTupleSchemeFactory implements SchemeFactory { + public getAdditionalImageContacts_resultTupleScheme getScheme() { + return new getAdditionalImageContacts_resultTupleScheme(); } } - private static class getPermissionForUserAndImage_resultTupleScheme extends TupleScheme { + private static class getAdditionalImageContacts_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndImage_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getAdditionalImageContacts_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -44349,28 +47199,27 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Person _iter156 : struct.success) + for (String _iter164 : struct.success) { - _iter156.write(oprot); + oprot.writeString(_iter164); } } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndImage_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getAdditionalImageContacts_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 _list157 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list157.size); - for (int _i158 = 0; _i158 < _list157.size; ++_i158) + org.apache.thrift.protocol.TList _list165 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list165.size); + for (int _i166 = 0; _i166 < _list165.size; ++_i166) { - Person _elem159; - _elem159 = new Person(); - _elem159.read(iprot); - struct.success.add(_elem159); + String _elem167; + _elem167 = iprot.readString(); + struct.success.add(_elem167); } } struct.setSuccessIsSet(true); @@ -44380,22 +47229,28 @@ public class Server { } - public static class getAdditionalImageContacts_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("getAdditionalImageContacts_args"); + public static class getPermissionForUserAndLecture_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("getPermissionForUserAndLecture_args"); - private static final org.apache.thrift.protocol.TField IMAGE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageID", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField LECTURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureID", org.apache.thrift.protocol.TType.STRING, (short)2); + 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)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAdditionalImageContacts_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAdditionalImageContacts_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getPermissionForUserAndLecture_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getPermissionForUserAndLecture_argsTupleSchemeFactory()); } - public String imageID; // required + public String token; // required + public String lectureID; // required + 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 { - IMAGE_ID((short)1, "imageID"); + TOKEN((short)1, "token"), + LECTURE_ID((short)2, "lectureID"), + USER_ID((short)3, "userID"); private static final Map byName = new HashMap(); @@ -44410,8 +47265,12 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // IMAGE_ID - return IMAGE_ID; + case 1: // TOKEN + return TOKEN; + case 2: // LECTURE_ID + return LECTURE_ID; + case 3: // USER_ID + return USER_ID; default: return null; } @@ -44455,71 +47314,151 @@ public class Server { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.IMAGE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageID", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.LECTURE_ID, new org.apache.thrift.meta_data.FieldMetaData("lectureID", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.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(getAdditionalImageContacts_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionForUserAndLecture_args.class, metaDataMap); } - public getAdditionalImageContacts_args() { + public getPermissionForUserAndLecture_args() { } - public getAdditionalImageContacts_args( - String imageID) + public getPermissionForUserAndLecture_args( + String token, + String lectureID, + String userID) { this(); - this.imageID = imageID; + this.token = token; + this.lectureID = lectureID; + this.userID = userID; } /** * Performs a deep copy on other. */ - public getAdditionalImageContacts_args(getAdditionalImageContacts_args other) { - if (other.isSetImageID()) { - this.imageID = other.imageID; + public getPermissionForUserAndLecture_args(getPermissionForUserAndLecture_args other) { + if (other.isSetToken()) { + this.token = other.token; + } + if (other.isSetLectureID()) { + this.lectureID = other.lectureID; + } + if (other.isSetUserID()) { + this.userID = other.userID; } } - public getAdditionalImageContacts_args deepCopy() { - return new getAdditionalImageContacts_args(this); + public getPermissionForUserAndLecture_args deepCopy() { + return new getPermissionForUserAndLecture_args(this); } @Override public void clear() { - this.imageID = null; + this.token = null; + this.lectureID = null; + this.userID = null; } - public String getImageID() { - return this.imageID; + public String getToken() { + return this.token; } - public getAdditionalImageContacts_args setImageID(String imageID) { - this.imageID = imageID; + public getPermissionForUserAndLecture_args setToken(String token) { + this.token = token; return this; } - public void unsetImageID() { - this.imageID = null; + public void unsetToken() { + this.token = null; } - /** Returns true if field imageID is set (has been assigned a value) and false otherwise */ - public boolean isSetImageID() { - return this.imageID != null; + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; } - public void setImageIDIsSet(boolean value) { + public void setTokenIsSet(boolean value) { if (!value) { - this.imageID = null; + this.token = null; + } + } + + public String getLectureID() { + return this.lectureID; + } + + public getPermissionForUserAndLecture_args setLectureID(String lectureID) { + this.lectureID = lectureID; + return this; + } + + public void unsetLectureID() { + this.lectureID = null; + } + + /** Returns true if field lectureID is set (has been assigned a value) and false otherwise */ + public boolean isSetLectureID() { + return this.lectureID != null; + } + + public void setLectureIDIsSet(boolean value) { + if (!value) { + this.lectureID = null; + } + } + + public String getUserID() { + return this.userID; + } + + public getPermissionForUserAndLecture_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 IMAGE_ID: + case TOKEN: if (value == null) { - unsetImageID(); + unsetToken(); } else { - setImageID((String)value); + setToken((String)value); + } + break; + + case LECTURE_ID: + if (value == null) { + unsetLectureID(); + } else { + setLectureID((String)value); + } + break; + + case USER_ID: + if (value == null) { + unsetUserID(); + } else { + setUserID((String)value); } break; @@ -44528,8 +47467,14 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case IMAGE_ID: - return getImageID(); + case TOKEN: + return getToken(); + + case LECTURE_ID: + return getLectureID(); + + case USER_ID: + return getUserID(); } throw new IllegalStateException(); @@ -44542,8 +47487,12 @@ public class Server { } switch (field) { - case IMAGE_ID: - return isSetImageID(); + case TOKEN: + return isSetToken(); + case LECTURE_ID: + return isSetLectureID(); + case USER_ID: + return isSetUserID(); } throw new IllegalStateException(); } @@ -44552,21 +47501,39 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAdditionalImageContacts_args) - return this.equals((getAdditionalImageContacts_args)that); + if (that instanceof getPermissionForUserAndLecture_args) + return this.equals((getPermissionForUserAndLecture_args)that); return false; } - public boolean equals(getAdditionalImageContacts_args that) { + public boolean equals(getPermissionForUserAndLecture_args that) { if (that == null) return false; - boolean this_present_imageID = true && this.isSetImageID(); - boolean that_present_imageID = true && that.isSetImageID(); - if (this_present_imageID || that_present_imageID) { - if (!(this_present_imageID && that_present_imageID)) + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) return false; - if (!this.imageID.equals(that.imageID)) + if (!this.token.equals(that.token)) + return false; + } + + boolean this_present_lectureID = true && this.isSetLectureID(); + boolean that_present_lectureID = true && that.isSetLectureID(); + if (this_present_lectureID || that_present_lectureID) { + if (!(this_present_lectureID && that_present_lectureID)) + return false; + if (!this.lectureID.equals(that.lectureID)) + return false; + } + + 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; } @@ -44579,19 +47546,39 @@ public class Server { } @Override - public int compareTo(getAdditionalImageContacts_args other) { + public int compareTo(getPermissionForUserAndLecture_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetImageID()).compareTo(other.isSetImageID()); + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); if (lastComparison != 0) { return lastComparison; } - if (isSetImageID()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageID, other.imageID); + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetLectureID()).compareTo(other.isSetLectureID()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetLectureID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lectureID, other.lectureID); + if (lastComparison != 0) { + return lastComparison; + } + } + 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; } @@ -44613,14 +47600,30 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getAdditionalImageContacts_args("); + StringBuilder sb = new StringBuilder("getPermissionForUserAndLecture_args("); boolean first = true; - sb.append("imageID:"); - if (this.imageID == null) { + sb.append("token:"); + if (this.token == null) { sb.append("null"); } else { - sb.append(this.imageID); + sb.append(this.token); + } + first = false; + if (!first) sb.append(", "); + sb.append("lectureID:"); + if (this.lectureID == null) { + sb.append("null"); + } else { + sb.append(this.lectureID); + } + first = false; + if (!first) sb.append(", "); + sb.append("userID:"); + if (this.userID == null) { + sb.append("null"); + } else { + sb.append(this.userID); } first = false; sb.append(")"); @@ -44648,15 +47651,15 @@ public class Server { } } - private static class getAdditionalImageContacts_argsStandardSchemeFactory implements SchemeFactory { - public getAdditionalImageContacts_argsStandardScheme getScheme() { - return new getAdditionalImageContacts_argsStandardScheme(); + private static class getPermissionForUserAndLecture_argsStandardSchemeFactory implements SchemeFactory { + public getPermissionForUserAndLecture_argsStandardScheme getScheme() { + return new getPermissionForUserAndLecture_argsStandardScheme(); } } - private static class getAdditionalImageContacts_argsStandardScheme extends StandardScheme { + private static class getPermissionForUserAndLecture_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAdditionalImageContacts_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getPermissionForUserAndLecture_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -44666,10 +47669,26 @@ public class Server { break; } switch (schemeField.id) { - case 1: // IMAGE_ID + case 1: // TOKEN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imageID = iprot.readString(); - struct.setImageIDIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // LECTURE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.lectureID = iprot.readString(); + struct.setLectureIDIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // 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); } @@ -44685,13 +47704,23 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAdditionalImageContacts_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getPermissionForUserAndLecture_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.imageID != null) { - oprot.writeFieldBegin(IMAGE_ID_FIELD_DESC); - oprot.writeString(struct.imageID); + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); + oprot.writeFieldEnd(); + } + if (struct.lectureID != null) { + oprot.writeFieldBegin(LECTURE_ID_FIELD_DESC); + oprot.writeString(struct.lectureID); + oprot.writeFieldEnd(); + } + if (struct.userID != null) { + oprot.writeFieldBegin(USER_ID_FIELD_DESC); + oprot.writeString(struct.userID); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -44700,52 +47729,72 @@ public class Server { } - private static class getAdditionalImageContacts_argsTupleSchemeFactory implements SchemeFactory { - public getAdditionalImageContacts_argsTupleScheme getScheme() { - return new getAdditionalImageContacts_argsTupleScheme(); + private static class getPermissionForUserAndLecture_argsTupleSchemeFactory implements SchemeFactory { + public getPermissionForUserAndLecture_argsTupleScheme getScheme() { + return new getPermissionForUserAndLecture_argsTupleScheme(); } } - private static class getAdditionalImageContacts_argsTupleScheme extends TupleScheme { + private static class getPermissionForUserAndLecture_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAdditionalImageContacts_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndLecture_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetImageID()) { + if (struct.isSetToken()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetImageID()) { - oprot.writeString(struct.imageID); + if (struct.isSetLectureID()) { + optionals.set(1); + } + if (struct.isSetUserID()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetToken()) { + oprot.writeString(struct.token); + } + if (struct.isSetLectureID()) { + oprot.writeString(struct.lectureID); + } + if (struct.isSetUserID()) { + oprot.writeString(struct.userID); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAdditionalImageContacts_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndLecture_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.imageID = iprot.readString(); - struct.setImageIDIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } + if (incoming.get(1)) { + struct.lectureID = iprot.readString(); + struct.setLectureIDIsSet(true); + } + if (incoming.get(2)) { + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); } } } } - public static class getAdditionalImageContacts_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("getAdditionalImageContacts_result"); + public static class getPermissionForUserAndLecture_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("getPermissionForUserAndLecture_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 getAdditionalImageContacts_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAdditionalImageContacts_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getPermissionForUserAndLecture_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getPermissionForUserAndLecture_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 { @@ -44811,16 +47860,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, Person.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdditionalImageContacts_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionForUserAndLecture_result.class, metaDataMap); } - public getAdditionalImageContacts_result() { + public getPermissionForUserAndLecture_result() { } - public getAdditionalImageContacts_result( - List success) + public getPermissionForUserAndLecture_result( + List success) { this(); this.success = success; @@ -44829,15 +47878,18 @@ public class Server { /** * Performs a deep copy on other. */ - public getAdditionalImageContacts_result(getAdditionalImageContacts_result other) { + public getPermissionForUserAndLecture_result(getPermissionForUserAndLecture_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List __this__success = new ArrayList(other.success.size()); + for (Person other_element : other.success) { + __this__success.add(new Person(other_element)); + } this.success = __this__success; } } - public getAdditionalImageContacts_result deepCopy() { - return new getAdditionalImageContacts_result(this); + public getPermissionForUserAndLecture_result deepCopy() { + return new getPermissionForUserAndLecture_result(this); } @Override @@ -44849,22 +47901,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(Person 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 getAdditionalImageContacts_result setSuccess(List success) { + public getPermissionForUserAndLecture_result setSuccess(List success) { this.success = success; return this; } @@ -44890,7 +47942,7 @@ public class Server { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -44923,12 +47975,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAdditionalImageContacts_result) - return this.equals((getAdditionalImageContacts_result)that); + if (that instanceof getPermissionForUserAndLecture_result) + return this.equals((getPermissionForUserAndLecture_result)that); return false; } - public boolean equals(getAdditionalImageContacts_result that) { + public boolean equals(getPermissionForUserAndLecture_result that) { if (that == null) return false; @@ -44950,7 +48002,7 @@ public class Server { } @Override - public int compareTo(getAdditionalImageContacts_result other) { + public int compareTo(getPermissionForUserAndLecture_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -44984,7 +48036,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getAdditionalImageContacts_result("); + StringBuilder sb = new StringBuilder("getPermissionForUserAndLecture_result("); boolean first = true; sb.append("success:"); @@ -45019,15 +48071,15 @@ public class Server { } } - private static class getAdditionalImageContacts_resultStandardSchemeFactory implements SchemeFactory { - public getAdditionalImageContacts_resultStandardScheme getScheme() { - return new getAdditionalImageContacts_resultStandardScheme(); + private static class getPermissionForUserAndLecture_resultStandardSchemeFactory implements SchemeFactory { + public getPermissionForUserAndLecture_resultStandardScheme getScheme() { + return new getPermissionForUserAndLecture_resultStandardScheme(); } } - private static class getAdditionalImageContacts_resultStandardScheme extends StandardScheme { + private static class getPermissionForUserAndLecture_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAdditionalImageContacts_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getPermissionForUserAndLecture_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -45040,13 +48092,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list160 = iprot.readListBegin(); - struct.success = new ArrayList(_list160.size); - for (int _i161 = 0; _i161 < _list160.size; ++_i161) + org.apache.thrift.protocol.TList _list168 = iprot.readListBegin(); + struct.success = new ArrayList(_list168.size); + for (int _i169 = 0; _i169 < _list168.size; ++_i169) { - String _elem162; - _elem162 = iprot.readString(); - struct.success.add(_elem162); + Person _elem170; + _elem170 = new Person(); + _elem170.read(iprot); + struct.success.add(_elem170); } iprot.readListEnd(); } @@ -45066,17 +48119,17 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAdditionalImageContacts_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getPermissionForUserAndLecture_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 _iter163 : struct.success) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Person _iter171 : struct.success) { - oprot.writeString(_iter163); + _iter171.write(oprot); } oprot.writeListEnd(); } @@ -45088,16 +48141,16 @@ public class Server { } - private static class getAdditionalImageContacts_resultTupleSchemeFactory implements SchemeFactory { - public getAdditionalImageContacts_resultTupleScheme getScheme() { - return new getAdditionalImageContacts_resultTupleScheme(); + private static class getPermissionForUserAndLecture_resultTupleSchemeFactory implements SchemeFactory { + public getPermissionForUserAndLecture_resultTupleScheme getScheme() { + return new getPermissionForUserAndLecture_resultTupleScheme(); } } - private static class getAdditionalImageContacts_resultTupleScheme extends TupleScheme { + private static class getPermissionForUserAndLecture_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAdditionalImageContacts_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndLecture_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -45107,27 +48160,28 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter164 : struct.success) + for (Person _iter172 : struct.success) { - oprot.writeString(_iter164); + _iter172.write(oprot); } } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAdditionalImageContacts_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndLecture_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 _list165 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list165.size); - for (int _i166 = 0; _i166 < _list165.size; ++_i166) + org.apache.thrift.protocol.TList _list173 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list173.size); + for (int _i174 = 0; _i174 < _list173.size; ++_i174) { - String _elem167; - _elem167 = iprot.readString(); - struct.success.add(_elem167); + Person _elem175; + _elem175 = new Person(); + _elem175.read(iprot); + struct.success.add(_elem175); } } struct.setSuccessIsSet(true); @@ -45137,25 +48191,28 @@ public class Server { } - public static class getPermissionForUserAndLecture_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("getPermissionForUserAndLecture_args"); + public static class deleteAllAdditionalImagePermissions_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("deleteAllAdditionalImagePermissions_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 org.apache.thrift.protocol.TField LECTURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureID", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField IMAGE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageID", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)2); + 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)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getPermissionForUserAndLecture_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getPermissionForUserAndLecture_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new deleteAllAdditionalImagePermissions_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteAllAdditionalImagePermissions_argsTupleSchemeFactory()); } + public String imageID; // required + public String token; // required public String userID; // required - public String lectureID; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - USER_ID((short)1, "userID"), - LECTURE_ID((short)2, "lectureID"); + IMAGE_ID((short)1, "imageID"), + TOKEN((short)2, "token"), + USER_ID((short)3, "userID"); private static final Map byName = new HashMap(); @@ -45170,10 +48227,12 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // USER_ID + case 1: // IMAGE_ID + return IMAGE_ID; + case 2: // TOKEN + return TOKEN; + case 3: // USER_ID return USER_ID; - case 2: // LECTURE_ID - return LECTURE_ID; default: return null; } @@ -45217,111 +48276,151 @@ public class Server { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.IMAGE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageID", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.LECTURE_ID, new org.apache.thrift.meta_data.FieldMetaData("lectureID", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + 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(getPermissionForUserAndLecture_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllAdditionalImagePermissions_args.class, metaDataMap); } - public getPermissionForUserAndLecture_args() { + public deleteAllAdditionalImagePermissions_args() { } - public getPermissionForUserAndLecture_args( - String userID, - String lectureID) + public deleteAllAdditionalImagePermissions_args( + String imageID, + String token, + String userID) { this(); + this.imageID = imageID; + this.token = token; this.userID = userID; - this.lectureID = lectureID; } /** * Performs a deep copy on other. */ - public getPermissionForUserAndLecture_args(getPermissionForUserAndLecture_args other) { + public deleteAllAdditionalImagePermissions_args(deleteAllAdditionalImagePermissions_args other) { + if (other.isSetImageID()) { + this.imageID = other.imageID; + } + if (other.isSetToken()) { + this.token = other.token; + } if (other.isSetUserID()) { this.userID = other.userID; } - if (other.isSetLectureID()) { - this.lectureID = other.lectureID; - } } - public getPermissionForUserAndLecture_args deepCopy() { - return new getPermissionForUserAndLecture_args(this); + public deleteAllAdditionalImagePermissions_args deepCopy() { + return new deleteAllAdditionalImagePermissions_args(this); } @Override public void clear() { + this.imageID = null; + this.token = null; this.userID = null; - this.lectureID = null; } - public String getUserID() { - return this.userID; + public String getImageID() { + return this.imageID; } - public getPermissionForUserAndLecture_args setUserID(String userID) { - this.userID = userID; + public deleteAllAdditionalImagePermissions_args setImageID(String imageID) { + this.imageID = imageID; return this; } - public void unsetUserID() { - this.userID = null; + public void unsetImageID() { + this.imageID = null; } - /** Returns true if field userID is set (has been assigned a value) and false otherwise */ - public boolean isSetUserID() { - return this.userID != null; + /** Returns true if field imageID is set (has been assigned a value) and false otherwise */ + public boolean isSetImageID() { + return this.imageID != null; } - public void setUserIDIsSet(boolean value) { + public void setImageIDIsSet(boolean value) { if (!value) { - this.userID = null; + this.imageID = null; } } - public String getLectureID() { - return this.lectureID; + public String getToken() { + return this.token; } - public getPermissionForUserAndLecture_args setLectureID(String lectureID) { - this.lectureID = lectureID; + public deleteAllAdditionalImagePermissions_args setToken(String token) { + this.token = token; return this; } - public void unsetLectureID() { - this.lectureID = null; + public void unsetToken() { + this.token = null; } - /** Returns true if field lectureID is set (has been assigned a value) and false otherwise */ - public boolean isSetLectureID() { - return this.lectureID != null; + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; } - public void setLectureIDIsSet(boolean value) { + public void setTokenIsSet(boolean value) { if (!value) { - this.lectureID = null; + this.token = null; + } + } + + public String getUserID() { + return this.userID; + } + + public deleteAllAdditionalImagePermissions_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: + case IMAGE_ID: if (value == null) { - unsetUserID(); + unsetImageID(); } else { - setUserID((String)value); + setImageID((String)value); } break; - case LECTURE_ID: + case TOKEN: if (value == null) { - unsetLectureID(); + unsetToken(); } else { - setLectureID((String)value); + setToken((String)value); + } + break; + + case USER_ID: + if (value == null) { + unsetUserID(); + } else { + setUserID((String)value); } break; @@ -45330,12 +48429,15 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { + case IMAGE_ID: + return getImageID(); + + case TOKEN: + return getToken(); + case USER_ID: return getUserID(); - case LECTURE_ID: - return getLectureID(); - } throw new IllegalStateException(); } @@ -45347,10 +48449,12 @@ public class Server { } switch (field) { + case IMAGE_ID: + return isSetImageID(); + case TOKEN: + return isSetToken(); case USER_ID: return isSetUserID(); - case LECTURE_ID: - return isSetLectureID(); } throw new IllegalStateException(); } @@ -45359,15 +48463,33 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getPermissionForUserAndLecture_args) - return this.equals((getPermissionForUserAndLecture_args)that); + if (that instanceof deleteAllAdditionalImagePermissions_args) + return this.equals((deleteAllAdditionalImagePermissions_args)that); return false; } - public boolean equals(getPermissionForUserAndLecture_args that) { + public boolean equals(deleteAllAdditionalImagePermissions_args that) { if (that == null) return false; + boolean this_present_imageID = true && this.isSetImageID(); + boolean that_present_imageID = true && that.isSetImageID(); + if (this_present_imageID || that_present_imageID) { + if (!(this_present_imageID && that_present_imageID)) + return false; + if (!this.imageID.equals(that.imageID)) + return false; + } + + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) + return false; + if (!this.token.equals(that.token)) + return false; + } + boolean this_present_userID = true && this.isSetUserID(); boolean that_present_userID = true && that.isSetUserID(); if (this_present_userID || that_present_userID) { @@ -45377,15 +48499,6 @@ public class Server { return false; } - boolean this_present_lectureID = true && this.isSetLectureID(); - boolean that_present_lectureID = true && that.isSetLectureID(); - if (this_present_lectureID || that_present_lectureID) { - if (!(this_present_lectureID && that_present_lectureID)) - return false; - if (!this.lectureID.equals(that.lectureID)) - return false; - } - return true; } @@ -45395,29 +48508,39 @@ public class Server { } @Override - public int compareTo(getPermissionForUserAndLecture_args other) { + public int compareTo(deleteAllAdditionalImagePermissions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); + lastComparison = Boolean.valueOf(isSetImageID()).compareTo(other.isSetImageID()); if (lastComparison != 0) { return lastComparison; } - if (isSetUserID()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); + if (isSetImageID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageID, other.imageID); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLectureID()).compareTo(other.isSetLectureID()); + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); if (lastComparison != 0) { return lastComparison; } - if (isSetLectureID()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lectureID, other.lectureID); + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); + if (lastComparison != 0) { + return lastComparison; + } + } + 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; } @@ -45439,22 +48562,30 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getPermissionForUserAndLecture_args("); + StringBuilder sb = new StringBuilder("deleteAllAdditionalImagePermissions_args("); boolean first = true; - sb.append("userID:"); - if (this.userID == null) { + sb.append("imageID:"); + if (this.imageID == null) { sb.append("null"); } else { - sb.append(this.userID); + sb.append(this.imageID); } first = false; if (!first) sb.append(", "); - sb.append("lectureID:"); - if (this.lectureID == null) { + sb.append("token:"); + if (this.token == null) { sb.append("null"); } else { - sb.append(this.lectureID); + sb.append(this.token); + } + first = false; + if (!first) sb.append(", "); + sb.append("userID:"); + if (this.userID == null) { + sb.append("null"); + } else { + sb.append(this.userID); } first = false; sb.append(")"); @@ -45482,15 +48613,15 @@ public class Server { } } - private static class getPermissionForUserAndLecture_argsStandardSchemeFactory implements SchemeFactory { - public getPermissionForUserAndLecture_argsStandardScheme getScheme() { - return new getPermissionForUserAndLecture_argsStandardScheme(); + private static class deleteAllAdditionalImagePermissions_argsStandardSchemeFactory implements SchemeFactory { + public deleteAllAdditionalImagePermissions_argsStandardScheme getScheme() { + return new deleteAllAdditionalImagePermissions_argsStandardScheme(); } } - private static class getPermissionForUserAndLecture_argsStandardScheme extends StandardScheme { + private static class deleteAllAdditionalImagePermissions_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getPermissionForUserAndLecture_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllAdditionalImagePermissions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -45500,18 +48631,26 @@ public class Server { break; } switch (schemeField.id) { - case 1: // USER_ID + case 1: // IMAGE_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.userID = iprot.readString(); - struct.setUserIDIsSet(true); + struct.imageID = iprot.readString(); + struct.setImageIDIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // LECTURE_ID + case 2: // TOKEN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.lectureID = iprot.readString(); - struct.setLectureIDIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // 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); } @@ -45527,86 +48666,99 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getPermissionForUserAndLecture_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllAdditionalImagePermissions_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.imageID != null) { + oprot.writeFieldBegin(IMAGE_ID_FIELD_DESC); + oprot.writeString(struct.imageID); + oprot.writeFieldEnd(); + } + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); + oprot.writeFieldEnd(); + } if (struct.userID != null) { oprot.writeFieldBegin(USER_ID_FIELD_DESC); oprot.writeString(struct.userID); oprot.writeFieldEnd(); } - if (struct.lectureID != null) { - oprot.writeFieldBegin(LECTURE_ID_FIELD_DESC); - oprot.writeString(struct.lectureID); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getPermissionForUserAndLecture_argsTupleSchemeFactory implements SchemeFactory { - public getPermissionForUserAndLecture_argsTupleScheme getScheme() { - return new getPermissionForUserAndLecture_argsTupleScheme(); + private static class deleteAllAdditionalImagePermissions_argsTupleSchemeFactory implements SchemeFactory { + public deleteAllAdditionalImagePermissions_argsTupleScheme getScheme() { + return new deleteAllAdditionalImagePermissions_argsTupleScheme(); } } - private static class getPermissionForUserAndLecture_argsTupleScheme extends TupleScheme { + private static class deleteAllAdditionalImagePermissions_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndLecture_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalImagePermissions_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetUserID()) { + if (struct.isSetImageID()) { optionals.set(0); } - if (struct.isSetLectureID()) { + if (struct.isSetToken()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); if (struct.isSetUserID()) { - oprot.writeString(struct.userID); + optionals.set(2); } - if (struct.isSetLectureID()) { - oprot.writeString(struct.lectureID); + oprot.writeBitSet(optionals, 3); + if (struct.isSetImageID()) { + oprot.writeString(struct.imageID); + } + if (struct.isSetToken()) { + oprot.writeString(struct.token); + } + if (struct.isSetUserID()) { + oprot.writeString(struct.userID); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndLecture_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalImagePermissions_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.userID = iprot.readString(); - struct.setUserIDIsSet(true); + struct.imageID = iprot.readString(); + struct.setImageIDIsSet(true); } if (incoming.get(1)) { - struct.lectureID = iprot.readString(); - struct.setLectureIDIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } + if (incoming.get(2)) { + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); } } } } - public static class getPermissionForUserAndLecture_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("getPermissionForUserAndLecture_result"); + public static class deleteAllAdditionalImagePermissions_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("deleteAllAdditionalImagePermissions_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 getPermissionForUserAndLecture_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getPermissionForUserAndLecture_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new deleteAllAdditionalImagePermissions_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteAllAdditionalImagePermissions_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(); @@ -45621,8 +48773,6 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; default: return null; } @@ -45661,107 +48811,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.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, Person.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionForUserAndLecture_result.class, metaDataMap); - } - - public getPermissionForUserAndLecture_result() { + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllAdditionalImagePermissions_result.class, metaDataMap); } - public getPermissionForUserAndLecture_result( - List success) - { - this(); - this.success = success; + public deleteAllAdditionalImagePermissions_result() { } /** * Performs a deep copy on other. */ - public getPermissionForUserAndLecture_result(getPermissionForUserAndLecture_result other) { - if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (Person other_element : other.success) { - __this__success.add(new Person(other_element)); - } - this.success = __this__success; - } + public deleteAllAdditionalImagePermissions_result(deleteAllAdditionalImagePermissions_result other) { } - public getPermissionForUserAndLecture_result deepCopy() { - return new getPermissionForUserAndLecture_result(this); + public deleteAllAdditionalImagePermissions_result deepCopy() { + return new deleteAllAdditionalImagePermissions_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(Person elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { - return this.success; - } - - public getPermissionForUserAndLecture_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(); } @@ -45773,8 +48853,6 @@ public class Server { } switch (field) { - case SUCCESS: - return isSetSuccess(); } throw new IllegalStateException(); } @@ -45783,24 +48861,15 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getPermissionForUserAndLecture_result) - return this.equals((getPermissionForUserAndLecture_result)that); + if (that instanceof deleteAllAdditionalImagePermissions_result) + return this.equals((deleteAllAdditionalImagePermissions_result)that); return false; } - public boolean equals(getPermissionForUserAndLecture_result that) { + public boolean equals(deleteAllAdditionalImagePermissions_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; } @@ -45810,23 +48879,13 @@ public class Server { } @Override - public int compareTo(getPermissionForUserAndLecture_result other) { + public int compareTo(deleteAllAdditionalImagePermissions_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; } @@ -45844,16 +48903,9 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getPermissionForUserAndLecture_result("); + StringBuilder sb = new StringBuilder("deleteAllAdditionalImagePermissions_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(); } @@ -45879,15 +48931,15 @@ public class Server { } } - private static class getPermissionForUserAndLecture_resultStandardSchemeFactory implements SchemeFactory { - public getPermissionForUserAndLecture_resultStandardScheme getScheme() { - return new getPermissionForUserAndLecture_resultStandardScheme(); + private static class deleteAllAdditionalImagePermissions_resultStandardSchemeFactory implements SchemeFactory { + public deleteAllAdditionalImagePermissions_resultStandardScheme getScheme() { + return new deleteAllAdditionalImagePermissions_resultStandardScheme(); } } - private static class getPermissionForUserAndLecture_resultStandardScheme extends StandardScheme { + private static class deleteAllAdditionalImagePermissions_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getPermissionForUserAndLecture_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllAdditionalImagePermissions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -45897,25 +48949,6 @@ public class Server { break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list168 = iprot.readListBegin(); - struct.success = new ArrayList(_list168.size); - for (int _i169 = 0; _i169 < _list168.size; ++_i169) - { - Person _elem170; - _elem170 = new Person(); - _elem170.read(iprot); - struct.success.add(_elem170); - } - 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); } @@ -45927,97 +48960,59 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getPermissionForUserAndLecture_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllAdditionalImagePermissions_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.STRUCT, struct.success.size())); - for (Person _iter171 : struct.success) - { - _iter171.write(oprot); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getPermissionForUserAndLecture_resultTupleSchemeFactory implements SchemeFactory { - public getPermissionForUserAndLecture_resultTupleScheme getScheme() { - return new getPermissionForUserAndLecture_resultTupleScheme(); + private static class deleteAllAdditionalImagePermissions_resultTupleSchemeFactory implements SchemeFactory { + public deleteAllAdditionalImagePermissions_resultTupleScheme getScheme() { + return new deleteAllAdditionalImagePermissions_resultTupleScheme(); } } - private static class getPermissionForUserAndLecture_resultTupleScheme extends TupleScheme { + private static class deleteAllAdditionalImagePermissions_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndLecture_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalImagePermissions_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 (Person _iter172 : struct.success) - { - _iter172.write(oprot); - } - } - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndLecture_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalImagePermissions_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 _list173 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list173.size); - for (int _i174 = 0; _i174 < _list173.size; ++_i174) - { - Person _elem175; - _elem175 = new Person(); - _elem175.read(iprot); - struct.success.add(_elem175); - } - } - struct.setSuccessIsSet(true); - } } } } - public static class deleteAllAdditionalImagePermissions_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("deleteAllAdditionalImagePermissions_args"); + public static class deleteAllAdditionalLecturePermissions_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("deleteAllAdditionalLecturePermissions_args"); - private static final org.apache.thrift.protocol.TField IMAGE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageID", org.apache.thrift.protocol.TType.STRING, (short)1); - 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)2); + private static final org.apache.thrift.protocol.TField LECTURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureID", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)2); + 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)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new deleteAllAdditionalImagePermissions_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteAllAdditionalImagePermissions_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new deleteAllAdditionalLecturePermissions_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteAllAdditionalLecturePermissions_argsTupleSchemeFactory()); } - public String imageID; // required + public String lectureID; // required + public String token; // required 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 { - IMAGE_ID((short)1, "imageID"), - USER_ID((short)2, "userID"); + LECTURE_ID((short)1, "lectureID"), + TOKEN((short)2, "token"), + USER_ID((short)3, "userID"); private static final Map byName = new HashMap(); @@ -46032,9 +49027,11 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // IMAGE_ID - return IMAGE_ID; - case 2: // USER_ID + case 1: // LECTURE_ID + return LECTURE_ID; + case 2: // TOKEN + return TOKEN; + case 3: // USER_ID return USER_ID; default: return null; @@ -46079,69 +49076,101 @@ public class Server { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.IMAGE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageID", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.LECTURE_ID, new org.apache.thrift.meta_data.FieldMetaData("lectureID", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); 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(deleteAllAdditionalImagePermissions_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllAdditionalLecturePermissions_args.class, metaDataMap); } - public deleteAllAdditionalImagePermissions_args() { + public deleteAllAdditionalLecturePermissions_args() { } - public deleteAllAdditionalImagePermissions_args( - String imageID, + public deleteAllAdditionalLecturePermissions_args( + String lectureID, + String token, String userID) { this(); - this.imageID = imageID; + this.lectureID = lectureID; + this.token = token; this.userID = userID; } /** * Performs a deep copy on other. */ - public deleteAllAdditionalImagePermissions_args(deleteAllAdditionalImagePermissions_args other) { - if (other.isSetImageID()) { - this.imageID = other.imageID; + public deleteAllAdditionalLecturePermissions_args(deleteAllAdditionalLecturePermissions_args other) { + if (other.isSetLectureID()) { + this.lectureID = other.lectureID; + } + if (other.isSetToken()) { + this.token = other.token; } if (other.isSetUserID()) { this.userID = other.userID; } } - public deleteAllAdditionalImagePermissions_args deepCopy() { - return new deleteAllAdditionalImagePermissions_args(this); + public deleteAllAdditionalLecturePermissions_args deepCopy() { + return new deleteAllAdditionalLecturePermissions_args(this); } @Override public void clear() { - this.imageID = null; + this.lectureID = null; + this.token = null; this.userID = null; } - public String getImageID() { - return this.imageID; + public String getLectureID() { + return this.lectureID; } - public deleteAllAdditionalImagePermissions_args setImageID(String imageID) { - this.imageID = imageID; + public deleteAllAdditionalLecturePermissions_args setLectureID(String lectureID) { + this.lectureID = lectureID; return this; } - public void unsetImageID() { - this.imageID = null; + public void unsetLectureID() { + this.lectureID = null; } - /** Returns true if field imageID is set (has been assigned a value) and false otherwise */ - public boolean isSetImageID() { - return this.imageID != null; + /** Returns true if field lectureID is set (has been assigned a value) and false otherwise */ + public boolean isSetLectureID() { + return this.lectureID != null; } - public void setImageIDIsSet(boolean value) { + public void setLectureIDIsSet(boolean value) { if (!value) { - this.imageID = null; + this.lectureID = null; + } + } + + public String getToken() { + return this.token; + } + + public deleteAllAdditionalLecturePermissions_args setToken(String token) { + this.token = token; + return this; + } + + public void unsetToken() { + this.token = null; + } + + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; + } + + public void setTokenIsSet(boolean value) { + if (!value) { + this.token = null; } } @@ -46149,7 +49178,7 @@ public class Server { return this.userID; } - public deleteAllAdditionalImagePermissions_args setUserID(String userID) { + public deleteAllAdditionalLecturePermissions_args setUserID(String userID) { this.userID = userID; return this; } @@ -46171,11 +49200,19 @@ public class Server { public void setFieldValue(_Fields field, Object value) { switch (field) { - case IMAGE_ID: + case LECTURE_ID: if (value == null) { - unsetImageID(); + unsetLectureID(); } else { - setImageID((String)value); + setLectureID((String)value); + } + break; + + case TOKEN: + if (value == null) { + unsetToken(); + } else { + setToken((String)value); } break; @@ -46192,8 +49229,11 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case IMAGE_ID: - return getImageID(); + case LECTURE_ID: + return getLectureID(); + + case TOKEN: + return getToken(); case USER_ID: return getUserID(); @@ -46209,8 +49249,10 @@ public class Server { } switch (field) { - case IMAGE_ID: - return isSetImageID(); + case LECTURE_ID: + return isSetLectureID(); + case TOKEN: + return isSetToken(); case USER_ID: return isSetUserID(); } @@ -46221,21 +49263,30 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof deleteAllAdditionalImagePermissions_args) - return this.equals((deleteAllAdditionalImagePermissions_args)that); + if (that instanceof deleteAllAdditionalLecturePermissions_args) + return this.equals((deleteAllAdditionalLecturePermissions_args)that); return false; } - public boolean equals(deleteAllAdditionalImagePermissions_args that) { + public boolean equals(deleteAllAdditionalLecturePermissions_args that) { if (that == null) return false; - boolean this_present_imageID = true && this.isSetImageID(); - boolean that_present_imageID = true && that.isSetImageID(); - if (this_present_imageID || that_present_imageID) { - if (!(this_present_imageID && that_present_imageID)) + boolean this_present_lectureID = true && this.isSetLectureID(); + boolean that_present_lectureID = true && that.isSetLectureID(); + if (this_present_lectureID || that_present_lectureID) { + if (!(this_present_lectureID && that_present_lectureID)) return false; - if (!this.imageID.equals(that.imageID)) + if (!this.lectureID.equals(that.lectureID)) + return false; + } + + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) + return false; + if (!this.token.equals(that.token)) return false; } @@ -46257,19 +49308,29 @@ public class Server { } @Override - public int compareTo(deleteAllAdditionalImagePermissions_args other) { + public int compareTo(deleteAllAdditionalLecturePermissions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetImageID()).compareTo(other.isSetImageID()); + lastComparison = Boolean.valueOf(isSetLectureID()).compareTo(other.isSetLectureID()); if (lastComparison != 0) { return lastComparison; } - if (isSetImageID()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageID, other.imageID); + if (isSetLectureID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lectureID, other.lectureID); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) { return lastComparison; } @@ -46301,14 +49362,22 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteAllAdditionalImagePermissions_args("); + StringBuilder sb = new StringBuilder("deleteAllAdditionalLecturePermissions_args("); boolean first = true; - sb.append("imageID:"); - if (this.imageID == null) { + sb.append("lectureID:"); + if (this.lectureID == null) { sb.append("null"); } else { - sb.append(this.imageID); + sb.append(this.lectureID); + } + first = false; + if (!first) sb.append(", "); + sb.append("token:"); + if (this.token == null) { + sb.append("null"); + } else { + sb.append(this.token); } first = false; if (!first) sb.append(", "); @@ -46344,15 +49413,15 @@ public class Server { } } - private static class deleteAllAdditionalImagePermissions_argsStandardSchemeFactory implements SchemeFactory { - public deleteAllAdditionalImagePermissions_argsStandardScheme getScheme() { - return new deleteAllAdditionalImagePermissions_argsStandardScheme(); + private static class deleteAllAdditionalLecturePermissions_argsStandardSchemeFactory implements SchemeFactory { + public deleteAllAdditionalLecturePermissions_argsStandardScheme getScheme() { + return new deleteAllAdditionalLecturePermissions_argsStandardScheme(); } } - private static class deleteAllAdditionalImagePermissions_argsStandardScheme extends StandardScheme { + private static class deleteAllAdditionalLecturePermissions_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllAdditionalImagePermissions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllAdditionalLecturePermissions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -46362,15 +49431,23 @@ public class Server { break; } switch (schemeField.id) { - case 1: // IMAGE_ID + case 1: // LECTURE_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imageID = iprot.readString(); - struct.setImageIDIsSet(true); + struct.lectureID = iprot.readString(); + struct.setLectureIDIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // USER_ID + case 2: // TOKEN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // USER_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.userID = iprot.readString(); struct.setUserIDIsSet(true); @@ -46389,13 +49466,18 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllAdditionalImagePermissions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllAdditionalLecturePermissions_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.imageID != null) { - oprot.writeFieldBegin(IMAGE_ID_FIELD_DESC); - oprot.writeString(struct.imageID); + if (struct.lectureID != null) { + oprot.writeFieldBegin(LECTURE_ID_FIELD_DESC); + oprot.writeString(struct.lectureID); + oprot.writeFieldEnd(); + } + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); oprot.writeFieldEnd(); } if (struct.userID != null) { @@ -46409,27 +49491,33 @@ public class Server { } - private static class deleteAllAdditionalImagePermissions_argsTupleSchemeFactory implements SchemeFactory { - public deleteAllAdditionalImagePermissions_argsTupleScheme getScheme() { - return new deleteAllAdditionalImagePermissions_argsTupleScheme(); + private static class deleteAllAdditionalLecturePermissions_argsTupleSchemeFactory implements SchemeFactory { + public deleteAllAdditionalLecturePermissions_argsTupleScheme getScheme() { + return new deleteAllAdditionalLecturePermissions_argsTupleScheme(); } } - private static class deleteAllAdditionalImagePermissions_argsTupleScheme extends TupleScheme { + private static class deleteAllAdditionalLecturePermissions_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalImagePermissions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalLecturePermissions_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetImageID()) { + if (struct.isSetLectureID()) { optionals.set(0); } - if (struct.isSetUserID()) { + if (struct.isSetToken()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); - if (struct.isSetImageID()) { - oprot.writeString(struct.imageID); + if (struct.isSetUserID()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetLectureID()) { + oprot.writeString(struct.lectureID); + } + if (struct.isSetToken()) { + oprot.writeString(struct.token); } if (struct.isSetUserID()) { oprot.writeString(struct.userID); @@ -46437,14 +49525,18 @@ public class Server { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalImagePermissions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalLecturePermissions_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.imageID = iprot.readString(); - struct.setImageIDIsSet(true); + struct.lectureID = iprot.readString(); + struct.setLectureIDIsSet(true); } if (incoming.get(1)) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } + if (incoming.get(2)) { struct.userID = iprot.readString(); struct.setUserIDIsSet(true); } @@ -46453,14 +49545,14 @@ public class Server { } - public static class deleteAllAdditionalImagePermissions_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("deleteAllAdditionalImagePermissions_result"); + public static class deleteAllAdditionalLecturePermissions_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("deleteAllAdditionalLecturePermissions_result"); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new deleteAllAdditionalImagePermissions_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteAllAdditionalImagePermissions_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new deleteAllAdditionalLecturePermissions_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteAllAdditionalLecturePermissions_resultTupleSchemeFactory()); } @@ -46523,20 +49615,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(deleteAllAdditionalImagePermissions_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllAdditionalLecturePermissions_result.class, metaDataMap); } - public deleteAllAdditionalImagePermissions_result() { + public deleteAllAdditionalLecturePermissions_result() { } /** * Performs a deep copy on other. */ - public deleteAllAdditionalImagePermissions_result(deleteAllAdditionalImagePermissions_result other) { + public deleteAllAdditionalLecturePermissions_result(deleteAllAdditionalLecturePermissions_result other) { } - public deleteAllAdditionalImagePermissions_result deepCopy() { - return new deleteAllAdditionalImagePermissions_result(this); + public deleteAllAdditionalLecturePermissions_result deepCopy() { + return new deleteAllAdditionalLecturePermissions_result(this); } @Override @@ -46569,12 +49661,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof deleteAllAdditionalImagePermissions_result) - return this.equals((deleteAllAdditionalImagePermissions_result)that); + if (that instanceof deleteAllAdditionalLecturePermissions_result) + return this.equals((deleteAllAdditionalLecturePermissions_result)that); return false; } - public boolean equals(deleteAllAdditionalImagePermissions_result that) { + public boolean equals(deleteAllAdditionalLecturePermissions_result that) { if (that == null) return false; @@ -46587,7 +49679,7 @@ public class Server { } @Override - public int compareTo(deleteAllAdditionalImagePermissions_result other) { + public int compareTo(deleteAllAdditionalLecturePermissions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -46611,7 +49703,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteAllAdditionalImagePermissions_result("); + StringBuilder sb = new StringBuilder("deleteAllAdditionalLecturePermissions_result("); boolean first = true; sb.append(")"); @@ -46639,15 +49731,15 @@ public class Server { } } - private static class deleteAllAdditionalImagePermissions_resultStandardSchemeFactory implements SchemeFactory { - public deleteAllAdditionalImagePermissions_resultStandardScheme getScheme() { - return new deleteAllAdditionalImagePermissions_resultStandardScheme(); + private static class deleteAllAdditionalLecturePermissions_resultStandardSchemeFactory implements SchemeFactory { + public deleteAllAdditionalLecturePermissions_resultStandardScheme getScheme() { + return new deleteAllAdditionalLecturePermissions_resultStandardScheme(); } } - private static class deleteAllAdditionalImagePermissions_resultStandardScheme extends StandardScheme { + private static class deleteAllAdditionalLecturePermissions_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllAdditionalImagePermissions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllAdditionalLecturePermissions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -46668,7 +49760,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllAdditionalImagePermissions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllAdditionalLecturePermissions_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -46678,46 +49770,46 @@ public class Server { } - private static class deleteAllAdditionalImagePermissions_resultTupleSchemeFactory implements SchemeFactory { - public deleteAllAdditionalImagePermissions_resultTupleScheme getScheme() { - return new deleteAllAdditionalImagePermissions_resultTupleScheme(); + private static class deleteAllAdditionalLecturePermissions_resultTupleSchemeFactory implements SchemeFactory { + public deleteAllAdditionalLecturePermissions_resultTupleScheme getScheme() { + return new deleteAllAdditionalLecturePermissions_resultTupleScheme(); } } - private static class deleteAllAdditionalImagePermissions_resultTupleScheme extends TupleScheme { + private static class deleteAllAdditionalLecturePermissions_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalImagePermissions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalLecturePermissions_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalImagePermissions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalLecturePermissions_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; } } } - public static class deleteAllAdditionalLecturePermissions_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("deleteAllAdditionalLecturePermissions_args"); + public static class getOsNameForGuestOs_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("getOsNameForGuestOs_args"); - private static final org.apache.thrift.protocol.TField LECTURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureID", org.apache.thrift.protocol.TType.STRING, (short)1); - 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)2); + private static final org.apache.thrift.protocol.TField GUEST_OS_FIELD_DESC = new org.apache.thrift.protocol.TField("guestOS", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new deleteAllAdditionalLecturePermissions_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteAllAdditionalLecturePermissions_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getOsNameForGuestOs_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getOsNameForGuestOs_argsTupleSchemeFactory()); } - public String lectureID; // required - public String userID; // required + public String guestOS; // required + public String token; // 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 { - LECTURE_ID((short)1, "lectureID"), - USER_ID((short)2, "userID"); + GUEST_OS((short)1, "guestOS"), + TOKEN((short)2, "token"); private static final Map byName = new HashMap(); @@ -46732,10 +49824,10 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // LECTURE_ID - return LECTURE_ID; - case 2: // USER_ID - return USER_ID; + case 1: // GUEST_OS + return GUEST_OS; + case 2: // TOKEN + return TOKEN; default: return null; } @@ -46779,111 +49871,111 @@ public class Server { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.LECTURE_ID, new org.apache.thrift.meta_data.FieldMetaData("lectureID", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.GUEST_OS, new org.apache.thrift.meta_data.FieldMetaData("guestOS", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", 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(deleteAllAdditionalLecturePermissions_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOsNameForGuestOs_args.class, metaDataMap); } - public deleteAllAdditionalLecturePermissions_args() { + public getOsNameForGuestOs_args() { } - public deleteAllAdditionalLecturePermissions_args( - String lectureID, - String userID) + public getOsNameForGuestOs_args( + String guestOS, + String token) { this(); - this.lectureID = lectureID; - this.userID = userID; + this.guestOS = guestOS; + this.token = token; } /** * Performs a deep copy on other. */ - public deleteAllAdditionalLecturePermissions_args(deleteAllAdditionalLecturePermissions_args other) { - if (other.isSetLectureID()) { - this.lectureID = other.lectureID; + public getOsNameForGuestOs_args(getOsNameForGuestOs_args other) { + if (other.isSetGuestOS()) { + this.guestOS = other.guestOS; } - if (other.isSetUserID()) { - this.userID = other.userID; + if (other.isSetToken()) { + this.token = other.token; } } - public deleteAllAdditionalLecturePermissions_args deepCopy() { - return new deleteAllAdditionalLecturePermissions_args(this); + public getOsNameForGuestOs_args deepCopy() { + return new getOsNameForGuestOs_args(this); } @Override public void clear() { - this.lectureID = null; - this.userID = null; + this.guestOS = null; + this.token = null; } - public String getLectureID() { - return this.lectureID; + public String getGuestOS() { + return this.guestOS; } - public deleteAllAdditionalLecturePermissions_args setLectureID(String lectureID) { - this.lectureID = lectureID; + public getOsNameForGuestOs_args setGuestOS(String guestOS) { + this.guestOS = guestOS; return this; } - public void unsetLectureID() { - this.lectureID = null; + public void unsetGuestOS() { + this.guestOS = null; } - /** Returns true if field lectureID is set (has been assigned a value) and false otherwise */ - public boolean isSetLectureID() { - return this.lectureID != null; + /** Returns true if field guestOS is set (has been assigned a value) and false otherwise */ + public boolean isSetGuestOS() { + return this.guestOS != null; } - public void setLectureIDIsSet(boolean value) { + public void setGuestOSIsSet(boolean value) { if (!value) { - this.lectureID = null; + this.guestOS = null; } } - public String getUserID() { - return this.userID; + public String getToken() { + return this.token; } - public deleteAllAdditionalLecturePermissions_args setUserID(String userID) { - this.userID = userID; + public getOsNameForGuestOs_args setToken(String token) { + this.token = token; return this; } - public void unsetUserID() { - this.userID = null; + public void unsetToken() { + this.token = null; } - /** Returns true if field userID is set (has been assigned a value) and false otherwise */ - public boolean isSetUserID() { - return this.userID != null; + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; } - public void setUserIDIsSet(boolean value) { + public void setTokenIsSet(boolean value) { if (!value) { - this.userID = null; + this.token = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case LECTURE_ID: + case GUEST_OS: if (value == null) { - unsetLectureID(); + unsetGuestOS(); } else { - setLectureID((String)value); + setGuestOS((String)value); } break; - case USER_ID: + case TOKEN: if (value == null) { - unsetUserID(); + unsetToken(); } else { - setUserID((String)value); + setToken((String)value); } break; @@ -46892,11 +49984,11 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case LECTURE_ID: - return getLectureID(); + case GUEST_OS: + return getGuestOS(); - case USER_ID: - return getUserID(); + case TOKEN: + return getToken(); } throw new IllegalStateException(); @@ -46909,10 +50001,10 @@ public class Server { } switch (field) { - case LECTURE_ID: - return isSetLectureID(); - case USER_ID: - return isSetUserID(); + case GUEST_OS: + return isSetGuestOS(); + case TOKEN: + return isSetToken(); } throw new IllegalStateException(); } @@ -46921,30 +50013,30 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof deleteAllAdditionalLecturePermissions_args) - return this.equals((deleteAllAdditionalLecturePermissions_args)that); + if (that instanceof getOsNameForGuestOs_args) + return this.equals((getOsNameForGuestOs_args)that); return false; } - public boolean equals(deleteAllAdditionalLecturePermissions_args that) { + public boolean equals(getOsNameForGuestOs_args that) { if (that == null) return false; - boolean this_present_lectureID = true && this.isSetLectureID(); - boolean that_present_lectureID = true && that.isSetLectureID(); - if (this_present_lectureID || that_present_lectureID) { - if (!(this_present_lectureID && that_present_lectureID)) + boolean this_present_guestOS = true && this.isSetGuestOS(); + boolean that_present_guestOS = true && that.isSetGuestOS(); + if (this_present_guestOS || that_present_guestOS) { + if (!(this_present_guestOS && that_present_guestOS)) return false; - if (!this.lectureID.equals(that.lectureID)) + if (!this.guestOS.equals(that.guestOS)) 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)) + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) return false; - if (!this.userID.equals(that.userID)) + if (!this.token.equals(that.token)) return false; } @@ -46957,29 +50049,29 @@ public class Server { } @Override - public int compareTo(deleteAllAdditionalLecturePermissions_args other) { + public int compareTo(getOsNameForGuestOs_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetLectureID()).compareTo(other.isSetLectureID()); + lastComparison = Boolean.valueOf(isSetGuestOS()).compareTo(other.isSetGuestOS()); if (lastComparison != 0) { return lastComparison; } - if (isSetLectureID()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lectureID, other.lectureID); + if (isSetGuestOS()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.guestOS, other.guestOS); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); if (lastComparison != 0) { return lastComparison; } - if (isSetUserID()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) { return lastComparison; } @@ -47001,22 +50093,22 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteAllAdditionalLecturePermissions_args("); + StringBuilder sb = new StringBuilder("getOsNameForGuestOs_args("); boolean first = true; - sb.append("lectureID:"); - if (this.lectureID == null) { + sb.append("guestOS:"); + if (this.guestOS == null) { sb.append("null"); } else { - sb.append(this.lectureID); + sb.append(this.guestOS); } first = false; if (!first) sb.append(", "); - sb.append("userID:"); - if (this.userID == null) { + sb.append("token:"); + if (this.token == null) { sb.append("null"); } else { - sb.append(this.userID); + sb.append(this.token); } first = false; sb.append(")"); @@ -47044,15 +50136,15 @@ public class Server { } } - private static class deleteAllAdditionalLecturePermissions_argsStandardSchemeFactory implements SchemeFactory { - public deleteAllAdditionalLecturePermissions_argsStandardScheme getScheme() { - return new deleteAllAdditionalLecturePermissions_argsStandardScheme(); + private static class getOsNameForGuestOs_argsStandardSchemeFactory implements SchemeFactory { + public getOsNameForGuestOs_argsStandardScheme getScheme() { + return new getOsNameForGuestOs_argsStandardScheme(); } } - private static class deleteAllAdditionalLecturePermissions_argsStandardScheme extends StandardScheme { + private static class getOsNameForGuestOs_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllAdditionalLecturePermissions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getOsNameForGuestOs_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -47062,18 +50154,18 @@ public class Server { break; } switch (schemeField.id) { - case 1: // LECTURE_ID + case 1: // GUEST_OS if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.lectureID = iprot.readString(); - struct.setLectureIDIsSet(true); + struct.guestOS = iprot.readString(); + struct.setGuestOSIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // USER_ID + case 2: // TOKEN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.userID = iprot.readString(); - struct.setUserIDIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -47089,18 +50181,18 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllAdditionalLecturePermissions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getOsNameForGuestOs_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.lectureID != null) { - oprot.writeFieldBegin(LECTURE_ID_FIELD_DESC); - oprot.writeString(struct.lectureID); + if (struct.guestOS != null) { + oprot.writeFieldBegin(GUEST_OS_FIELD_DESC); + oprot.writeString(struct.guestOS); oprot.writeFieldEnd(); } - if (struct.userID != null) { - oprot.writeFieldBegin(USER_ID_FIELD_DESC); - oprot.writeString(struct.userID); + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -47109,64 +50201,66 @@ public class Server { } - private static class deleteAllAdditionalLecturePermissions_argsTupleSchemeFactory implements SchemeFactory { - public deleteAllAdditionalLecturePermissions_argsTupleScheme getScheme() { - return new deleteAllAdditionalLecturePermissions_argsTupleScheme(); + private static class getOsNameForGuestOs_argsTupleSchemeFactory implements SchemeFactory { + public getOsNameForGuestOs_argsTupleScheme getScheme() { + return new getOsNameForGuestOs_argsTupleScheme(); } } - private static class deleteAllAdditionalLecturePermissions_argsTupleScheme extends TupleScheme { + private static class getOsNameForGuestOs_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalLecturePermissions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getOsNameForGuestOs_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetLectureID()) { + if (struct.isSetGuestOS()) { optionals.set(0); } - if (struct.isSetUserID()) { + if (struct.isSetToken()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); - if (struct.isSetLectureID()) { - oprot.writeString(struct.lectureID); + if (struct.isSetGuestOS()) { + oprot.writeString(struct.guestOS); } - if (struct.isSetUserID()) { - oprot.writeString(struct.userID); + if (struct.isSetToken()) { + oprot.writeString(struct.token); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalLecturePermissions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getOsNameForGuestOs_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.lectureID = iprot.readString(); - struct.setLectureIDIsSet(true); + struct.guestOS = iprot.readString(); + struct.setGuestOSIsSet(true); } if (incoming.get(1)) { - struct.userID = iprot.readString(); - struct.setUserIDIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } } } } - public static class deleteAllAdditionalLecturePermissions_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("deleteAllAdditionalLecturePermissions_result"); + public static class getOsNameForGuestOs_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("getOsNameForGuestOs_result"); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new deleteAllAdditionalLecturePermissions_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteAllAdditionalLecturePermissions_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getOsNameForGuestOs_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getOsNameForGuestOs_resultTupleSchemeFactory()); } + public String 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(); @@ -47181,6 +50275,8 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; default: return null; } @@ -47219,37 +50315,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.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllAdditionalLecturePermissions_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOsNameForGuestOs_result.class, metaDataMap); } - public deleteAllAdditionalLecturePermissions_result() { + public getOsNameForGuestOs_result() { + } + + public getOsNameForGuestOs_result( + String success) + { + this(); + this.success = success; } /** * Performs a deep copy on other. */ - public deleteAllAdditionalLecturePermissions_result(deleteAllAdditionalLecturePermissions_result other) { + public getOsNameForGuestOs_result(getOsNameForGuestOs_result other) { + if (other.isSetSuccess()) { + this.success = other.success; + } } - public deleteAllAdditionalLecturePermissions_result deepCopy() { - return new deleteAllAdditionalLecturePermissions_result(this); + public getOsNameForGuestOs_result deepCopy() { + return new getOsNameForGuestOs_result(this); } @Override public void clear() { + this.success = null; + } + + public String getSuccess() { + return this.success; + } + + public getOsNameForGuestOs_result setSuccess(String 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((String)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + } throw new IllegalStateException(); } @@ -47261,6 +50407,8 @@ public class Server { } switch (field) { + case SUCCESS: + return isSetSuccess(); } throw new IllegalStateException(); } @@ -47269,15 +50417,24 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof deleteAllAdditionalLecturePermissions_result) - return this.equals((deleteAllAdditionalLecturePermissions_result)that); + if (that instanceof getOsNameForGuestOs_result) + return this.equals((getOsNameForGuestOs_result)that); return false; } - public boolean equals(deleteAllAdditionalLecturePermissions_result that) { + public boolean equals(getOsNameForGuestOs_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; } @@ -47287,13 +50444,23 @@ public class Server { } @Override - public int compareTo(deleteAllAdditionalLecturePermissions_result other) { + public int compareTo(getOsNameForGuestOs_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; } @@ -47311,9 +50478,16 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteAllAdditionalLecturePermissions_result("); + StringBuilder sb = new StringBuilder("getOsNameForGuestOs_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(); } @@ -47339,15 +50513,15 @@ public class Server { } } - private static class deleteAllAdditionalLecturePermissions_resultStandardSchemeFactory implements SchemeFactory { - public deleteAllAdditionalLecturePermissions_resultStandardScheme getScheme() { - return new deleteAllAdditionalLecturePermissions_resultStandardScheme(); + private static class getOsNameForGuestOs_resultStandardSchemeFactory implements SchemeFactory { + public getOsNameForGuestOs_resultStandardScheme getScheme() { + return new getOsNameForGuestOs_resultStandardScheme(); } } - private static class deleteAllAdditionalLecturePermissions_resultStandardScheme extends StandardScheme { + private static class getOsNameForGuestOs_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllAdditionalLecturePermissions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getOsNameForGuestOs_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -47357,6 +50531,14 @@ public class Server { break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.success = iprot.readString(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -47368,53 +50550,77 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllAdditionalLecturePermissions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getOsNameForGuestOs_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeString(struct.success); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class deleteAllAdditionalLecturePermissions_resultTupleSchemeFactory implements SchemeFactory { - public deleteAllAdditionalLecturePermissions_resultTupleScheme getScheme() { - return new deleteAllAdditionalLecturePermissions_resultTupleScheme(); + private static class getOsNameForGuestOs_resultTupleSchemeFactory implements SchemeFactory { + public getOsNameForGuestOs_resultTupleScheme getScheme() { + return new getOsNameForGuestOs_resultTupleScheme(); } } - private static class deleteAllAdditionalLecturePermissions_resultTupleScheme extends TupleScheme { + private static class getOsNameForGuestOs_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalLecturePermissions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getOsNameForGuestOs_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.writeString(struct.success); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalLecturePermissions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getOsNameForGuestOs_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.success = iprot.readString(); + struct.setSuccessIsSet(true); + } } } } - public static class getOsNameForGuestOs_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("getOsNameForGuestOs_args"); + public static class userIsImageAdmin_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("userIsImageAdmin_args"); - private static final org.apache.thrift.protocol.TField GUEST_OS_FIELD_DESC = new org.apache.thrift.protocol.TField("guestOS", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField IMAGE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageID", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)2); + 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)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getOsNameForGuestOs_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getOsNameForGuestOs_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new userIsImageAdmin_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new userIsImageAdmin_argsTupleSchemeFactory()); } - public String guestOS; // required + public String imageID; // required + public String token; // required + 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 { - GUEST_OS((short)1, "guestOS"); + IMAGE_ID((short)1, "imageID"), + TOKEN((short)2, "token"), + USER_ID((short)3, "userID"); private static final Map byName = new HashMap(); @@ -47429,8 +50635,12 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // GUEST_OS - return GUEST_OS; + case 1: // IMAGE_ID + return IMAGE_ID; + case 2: // TOKEN + return TOKEN; + case 3: // USER_ID + return USER_ID; default: return null; } @@ -47474,71 +50684,151 @@ public class Server { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.GUEST_OS, new org.apache.thrift.meta_data.FieldMetaData("guestOS", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.IMAGE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageID", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + 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(getOsNameForGuestOs_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(userIsImageAdmin_args.class, metaDataMap); } - public getOsNameForGuestOs_args() { + public userIsImageAdmin_args() { } - public getOsNameForGuestOs_args( - String guestOS) + public userIsImageAdmin_args( + String imageID, + String token, + String userID) { this(); - this.guestOS = guestOS; + this.imageID = imageID; + this.token = token; + this.userID = userID; } /** * Performs a deep copy on other. */ - public getOsNameForGuestOs_args(getOsNameForGuestOs_args other) { - if (other.isSetGuestOS()) { - this.guestOS = other.guestOS; + public userIsImageAdmin_args(userIsImageAdmin_args other) { + if (other.isSetImageID()) { + this.imageID = other.imageID; + } + if (other.isSetToken()) { + this.token = other.token; + } + if (other.isSetUserID()) { + this.userID = other.userID; } } - public getOsNameForGuestOs_args deepCopy() { - return new getOsNameForGuestOs_args(this); + public userIsImageAdmin_args deepCopy() { + return new userIsImageAdmin_args(this); } @Override public void clear() { - this.guestOS = null; + this.imageID = null; + this.token = null; + this.userID = null; } - public String getGuestOS() { - return this.guestOS; + public String getImageID() { + return this.imageID; } - public getOsNameForGuestOs_args setGuestOS(String guestOS) { - this.guestOS = guestOS; + public userIsImageAdmin_args setImageID(String imageID) { + this.imageID = imageID; return this; } - public void unsetGuestOS() { - this.guestOS = null; + public void unsetImageID() { + this.imageID = null; } - /** Returns true if field guestOS is set (has been assigned a value) and false otherwise */ - public boolean isSetGuestOS() { - return this.guestOS != null; + /** Returns true if field imageID is set (has been assigned a value) and false otherwise */ + public boolean isSetImageID() { + return this.imageID != null; } - public void setGuestOSIsSet(boolean value) { + public void setImageIDIsSet(boolean value) { if (!value) { - this.guestOS = null; + this.imageID = null; + } + } + + public String getToken() { + return this.token; + } + + public userIsImageAdmin_args setToken(String token) { + this.token = token; + return this; + } + + public void unsetToken() { + this.token = null; + } + + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; + } + + public void setTokenIsSet(boolean value) { + if (!value) { + this.token = null; + } + } + + public String getUserID() { + return this.userID; + } + + public userIsImageAdmin_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 GUEST_OS: + case IMAGE_ID: if (value == null) { - unsetGuestOS(); + unsetImageID(); } else { - setGuestOS((String)value); + setImageID((String)value); + } + break; + + case TOKEN: + if (value == null) { + unsetToken(); + } else { + setToken((String)value); + } + break; + + case USER_ID: + if (value == null) { + unsetUserID(); + } else { + setUserID((String)value); } break; @@ -47547,8 +50837,14 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case GUEST_OS: - return getGuestOS(); + case IMAGE_ID: + return getImageID(); + + case TOKEN: + return getToken(); + + case USER_ID: + return getUserID(); } throw new IllegalStateException(); @@ -47561,8 +50857,12 @@ public class Server { } switch (field) { - case GUEST_OS: - return isSetGuestOS(); + case IMAGE_ID: + return isSetImageID(); + case TOKEN: + return isSetToken(); + case USER_ID: + return isSetUserID(); } throw new IllegalStateException(); } @@ -47571,21 +50871,39 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getOsNameForGuestOs_args) - return this.equals((getOsNameForGuestOs_args)that); + if (that instanceof userIsImageAdmin_args) + return this.equals((userIsImageAdmin_args)that); return false; } - public boolean equals(getOsNameForGuestOs_args that) { + public boolean equals(userIsImageAdmin_args that) { if (that == null) return false; - boolean this_present_guestOS = true && this.isSetGuestOS(); - boolean that_present_guestOS = true && that.isSetGuestOS(); - if (this_present_guestOS || that_present_guestOS) { - if (!(this_present_guestOS && that_present_guestOS)) + boolean this_present_imageID = true && this.isSetImageID(); + boolean that_present_imageID = true && that.isSetImageID(); + if (this_present_imageID || that_present_imageID) { + if (!(this_present_imageID && that_present_imageID)) return false; - if (!this.guestOS.equals(that.guestOS)) + if (!this.imageID.equals(that.imageID)) + return false; + } + + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) + return false; + if (!this.token.equals(that.token)) + 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; } @@ -47598,19 +50916,39 @@ public class Server { } @Override - public int compareTo(getOsNameForGuestOs_args other) { + public int compareTo(userIsImageAdmin_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetGuestOS()).compareTo(other.isSetGuestOS()); + lastComparison = Boolean.valueOf(isSetImageID()).compareTo(other.isSetImageID()); if (lastComparison != 0) { return lastComparison; } - if (isSetGuestOS()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.guestOS, other.guestOS); + if (isSetImageID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageID, other.imageID); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); + if (lastComparison != 0) { + return lastComparison; + } + } + 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; } @@ -47632,14 +50970,30 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getOsNameForGuestOs_args("); + StringBuilder sb = new StringBuilder("userIsImageAdmin_args("); boolean first = true; - sb.append("guestOS:"); - if (this.guestOS == null) { + sb.append("imageID:"); + if (this.imageID == null) { sb.append("null"); } else { - sb.append(this.guestOS); + sb.append(this.imageID); + } + first = false; + if (!first) sb.append(", "); + sb.append("token:"); + if (this.token == null) { + sb.append("null"); + } else { + sb.append(this.token); + } + first = false; + if (!first) sb.append(", "); + sb.append("userID:"); + if (this.userID == null) { + sb.append("null"); + } else { + sb.append(this.userID); } first = false; sb.append(")"); @@ -47667,15 +51021,15 @@ public class Server { } } - private static class getOsNameForGuestOs_argsStandardSchemeFactory implements SchemeFactory { - public getOsNameForGuestOs_argsStandardScheme getScheme() { - return new getOsNameForGuestOs_argsStandardScheme(); + private static class userIsImageAdmin_argsStandardSchemeFactory implements SchemeFactory { + public userIsImageAdmin_argsStandardScheme getScheme() { + return new userIsImageAdmin_argsStandardScheme(); } } - private static class getOsNameForGuestOs_argsStandardScheme extends StandardScheme { + private static class userIsImageAdmin_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getOsNameForGuestOs_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, userIsImageAdmin_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -47685,10 +51039,26 @@ public class Server { break; } switch (schemeField.id) { - case 1: // GUEST_OS + case 1: // IMAGE_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.guestOS = iprot.readString(); - struct.setGuestOSIsSet(true); + struct.imageID = iprot.readString(); + struct.setImageIDIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TOKEN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // 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); } @@ -47704,13 +51074,23 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getOsNameForGuestOs_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, userIsImageAdmin_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.guestOS != null) { - oprot.writeFieldBegin(GUEST_OS_FIELD_DESC); - oprot.writeString(struct.guestOS); + if (struct.imageID != null) { + oprot.writeFieldBegin(IMAGE_ID_FIELD_DESC); + oprot.writeString(struct.imageID); + oprot.writeFieldEnd(); + } + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); + oprot.writeFieldEnd(); + } + if (struct.userID != null) { + oprot.writeFieldBegin(USER_ID_FIELD_DESC); + oprot.writeString(struct.userID); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -47719,52 +51099,72 @@ public class Server { } - private static class getOsNameForGuestOs_argsTupleSchemeFactory implements SchemeFactory { - public getOsNameForGuestOs_argsTupleScheme getScheme() { - return new getOsNameForGuestOs_argsTupleScheme(); + private static class userIsImageAdmin_argsTupleSchemeFactory implements SchemeFactory { + public userIsImageAdmin_argsTupleScheme getScheme() { + return new userIsImageAdmin_argsTupleScheme(); } } - private static class getOsNameForGuestOs_argsTupleScheme extends TupleScheme { + private static class userIsImageAdmin_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getOsNameForGuestOs_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, userIsImageAdmin_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetGuestOS()) { + if (struct.isSetImageID()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetGuestOS()) { - oprot.writeString(struct.guestOS); + if (struct.isSetToken()) { + optionals.set(1); + } + if (struct.isSetUserID()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetImageID()) { + oprot.writeString(struct.imageID); + } + if (struct.isSetToken()) { + oprot.writeString(struct.token); + } + if (struct.isSetUserID()) { + oprot.writeString(struct.userID); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getOsNameForGuestOs_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, userIsImageAdmin_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.guestOS = iprot.readString(); - struct.setGuestOSIsSet(true); + struct.imageID = iprot.readString(); + struct.setImageIDIsSet(true); + } + if (incoming.get(1)) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); + } + if (incoming.get(2)) { + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); } } } } - public static class getOsNameForGuestOs_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("getOsNameForGuestOs_result"); + public static class userIsImageAdmin_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("userIsImageAdmin_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getOsNameForGuestOs_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getOsNameForGuestOs_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new userIsImageAdmin_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new userIsImageAdmin_resultTupleSchemeFactory()); } - public String success; // required + public boolean success; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -47825,65 +51225,67 @@ public class Server { } // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOsNameForGuestOs_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(userIsImageAdmin_result.class, metaDataMap); } - public getOsNameForGuestOs_result() { + public userIsImageAdmin_result() { } - public getOsNameForGuestOs_result( - String success) + public userIsImageAdmin_result( + boolean success) { this(); this.success = success; + setSuccessIsSet(true); } /** * Performs a deep copy on other. */ - public getOsNameForGuestOs_result(getOsNameForGuestOs_result other) { - if (other.isSetSuccess()) { - this.success = other.success; - } + public userIsImageAdmin_result(userIsImageAdmin_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; } - public getOsNameForGuestOs_result deepCopy() { - return new getOsNameForGuestOs_result(this); + public userIsImageAdmin_result deepCopy() { + return new userIsImageAdmin_result(this); } @Override public void clear() { - this.success = null; + setSuccessIsSet(false); + this.success = false; } - public String getSuccess() { + public boolean isSuccess() { return this.success; } - public getOsNameForGuestOs_result setSuccess(String success) { + public userIsImageAdmin_result setSuccess(boolean success) { this.success = success; + setSuccessIsSet(true); return this; } public void unsetSuccess() { - this.success = null; + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return this.success != null; + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { @@ -47892,7 +51294,7 @@ public class Server { if (value == null) { unsetSuccess(); } else { - setSuccess((String)value); + setSuccess((Boolean)value); } break; @@ -47902,7 +51304,7 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return getSuccess(); + return Boolean.valueOf(isSuccess()); } throw new IllegalStateException(); @@ -47925,21 +51327,21 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getOsNameForGuestOs_result) - return this.equals((getOsNameForGuestOs_result)that); + if (that instanceof userIsImageAdmin_result) + return this.equals((userIsImageAdmin_result)that); return false; } - public boolean equals(getOsNameForGuestOs_result that) { + public boolean equals(userIsImageAdmin_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); + boolean this_present_success = true; + boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (!this.success.equals(that.success)) + if (this.success != that.success) return false; } @@ -47952,7 +51354,7 @@ public class Server { } @Override - public int compareTo(getOsNameForGuestOs_result other) { + public int compareTo(userIsImageAdmin_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -47986,15 +51388,11 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getOsNameForGuestOs_result("); + StringBuilder sb = new StringBuilder("userIsImageAdmin_result("); boolean first = true; sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } + sb.append(this.success); first = false; sb.append(")"); return sb.toString(); @@ -48015,21 +51413,23 @@ public class Server { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class getOsNameForGuestOs_resultStandardSchemeFactory implements SchemeFactory { - public getOsNameForGuestOs_resultStandardScheme getScheme() { - return new getOsNameForGuestOs_resultStandardScheme(); + private static class userIsImageAdmin_resultStandardSchemeFactory implements SchemeFactory { + public userIsImageAdmin_resultStandardScheme getScheme() { + return new userIsImageAdmin_resultStandardScheme(); } } - private static class getOsNameForGuestOs_resultStandardScheme extends StandardScheme { + private static class userIsImageAdmin_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getOsNameForGuestOs_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, userIsImageAdmin_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -48040,8 +51440,8 @@ public class Server { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.success = iprot.readString(); + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -48058,13 +51458,13 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getOsNameForGuestOs_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, userIsImageAdmin_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { + if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeString(struct.success); + oprot.writeBool(struct.success); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -48073,16 +51473,16 @@ public class Server { } - private static class getOsNameForGuestOs_resultTupleSchemeFactory implements SchemeFactory { - public getOsNameForGuestOs_resultTupleScheme getScheme() { - return new getOsNameForGuestOs_resultTupleScheme(); + private static class userIsImageAdmin_resultTupleSchemeFactory implements SchemeFactory { + public userIsImageAdmin_resultTupleScheme getScheme() { + return new userIsImageAdmin_resultTupleScheme(); } } - private static class getOsNameForGuestOs_resultTupleScheme extends TupleScheme { + private static class userIsImageAdmin_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getOsNameForGuestOs_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, userIsImageAdmin_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -48090,16 +51490,16 @@ public class Server { } oprot.writeBitSet(optionals, 1); if (struct.isSetSuccess()) { - oprot.writeString(struct.success); + oprot.writeBool(struct.success); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getOsNameForGuestOs_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, userIsImageAdmin_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.success = iprot.readString(); + struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } } @@ -48107,25 +51507,28 @@ public class Server { } - public static class userIsImageAdmin_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("userIsImageAdmin_args"); + public static class userIsLectureAdmin_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("userIsLectureAdmin_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 org.apache.thrift.protocol.TField IMAGE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageID", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField LECTURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureID", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new userIsImageAdmin_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new userIsImageAdmin_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new userIsLectureAdmin_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new userIsLectureAdmin_argsTupleSchemeFactory()); } public String userID; // required - public String imageID; // required + public String lectureID; // required + public String token; // 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"), - IMAGE_ID((short)2, "imageID"); + LECTURE_ID((short)2, "lectureID"), + TOKEN((short)3, "token"); private static final Map byName = new HashMap(); @@ -48142,8 +51545,10 @@ public class Server { switch(fieldId) { case 1: // USER_ID return USER_ID; - case 2: // IMAGE_ID - return IMAGE_ID; + case 2: // LECTURE_ID + return LECTURE_ID; + case 3: // TOKEN + return TOKEN; default: return null; } @@ -48189,51 +51594,59 @@ 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.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))); - tmpMap.put(_Fields.IMAGE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageID", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.LECTURE_ID, new org.apache.thrift.meta_data.FieldMetaData("lectureID", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", 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(userIsImageAdmin_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(userIsLectureAdmin_args.class, metaDataMap); } - public userIsImageAdmin_args() { + public userIsLectureAdmin_args() { } - public userIsImageAdmin_args( + public userIsLectureAdmin_args( String userID, - String imageID) + String lectureID, + String token) { this(); this.userID = userID; - this.imageID = imageID; + this.lectureID = lectureID; + this.token = token; } /** * Performs a deep copy on other. */ - public userIsImageAdmin_args(userIsImageAdmin_args other) { + public userIsLectureAdmin_args(userIsLectureAdmin_args other) { if (other.isSetUserID()) { this.userID = other.userID; } - if (other.isSetImageID()) { - this.imageID = other.imageID; + if (other.isSetLectureID()) { + this.lectureID = other.lectureID; + } + if (other.isSetToken()) { + this.token = other.token; } } - public userIsImageAdmin_args deepCopy() { - return new userIsImageAdmin_args(this); + public userIsLectureAdmin_args deepCopy() { + return new userIsLectureAdmin_args(this); } @Override public void clear() { this.userID = null; - this.imageID = null; + this.lectureID = null; + this.token = null; } public String getUserID() { return this.userID; } - public userIsImageAdmin_args setUserID(String userID) { + public userIsLectureAdmin_args setUserID(String userID) { this.userID = userID; return this; } @@ -48253,27 +51666,51 @@ public class Server { } } - public String getImageID() { - return this.imageID; + public String getLectureID() { + return this.lectureID; } - public userIsImageAdmin_args setImageID(String imageID) { - this.imageID = imageID; + public userIsLectureAdmin_args setLectureID(String lectureID) { + this.lectureID = lectureID; return this; } - public void unsetImageID() { - this.imageID = null; + public void unsetLectureID() { + this.lectureID = null; } - /** Returns true if field imageID is set (has been assigned a value) and false otherwise */ - public boolean isSetImageID() { - return this.imageID != null; + /** Returns true if field lectureID is set (has been assigned a value) and false otherwise */ + public boolean isSetLectureID() { + return this.lectureID != null; } - public void setImageIDIsSet(boolean value) { + public void setLectureIDIsSet(boolean value) { if (!value) { - this.imageID = null; + this.lectureID = null; + } + } + + public String getToken() { + return this.token; + } + + public userIsLectureAdmin_args setToken(String token) { + this.token = token; + return this; + } + + public void unsetToken() { + this.token = null; + } + + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; + } + + public void setTokenIsSet(boolean value) { + if (!value) { + this.token = null; } } @@ -48287,11 +51724,19 @@ public class Server { } break; - case IMAGE_ID: + case LECTURE_ID: if (value == null) { - unsetImageID(); + unsetLectureID(); } else { - setImageID((String)value); + setLectureID((String)value); + } + break; + + case TOKEN: + if (value == null) { + unsetToken(); + } else { + setToken((String)value); } break; @@ -48303,8 +51748,11 @@ public class Server { case USER_ID: return getUserID(); - case IMAGE_ID: - return getImageID(); + case LECTURE_ID: + return getLectureID(); + + case TOKEN: + return getToken(); } throw new IllegalStateException(); @@ -48319,8 +51767,10 @@ public class Server { switch (field) { case USER_ID: return isSetUserID(); - case IMAGE_ID: - return isSetImageID(); + case LECTURE_ID: + return isSetLectureID(); + case TOKEN: + return isSetToken(); } throw new IllegalStateException(); } @@ -48329,12 +51779,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof userIsImageAdmin_args) - return this.equals((userIsImageAdmin_args)that); + if (that instanceof userIsLectureAdmin_args) + return this.equals((userIsLectureAdmin_args)that); return false; } - public boolean equals(userIsImageAdmin_args that) { + public boolean equals(userIsLectureAdmin_args that) { if (that == null) return false; @@ -48347,12 +51797,21 @@ public class Server { return false; } - boolean this_present_imageID = true && this.isSetImageID(); - boolean that_present_imageID = true && that.isSetImageID(); - if (this_present_imageID || that_present_imageID) { - if (!(this_present_imageID && that_present_imageID)) + boolean this_present_lectureID = true && this.isSetLectureID(); + boolean that_present_lectureID = true && that.isSetLectureID(); + if (this_present_lectureID || that_present_lectureID) { + if (!(this_present_lectureID && that_present_lectureID)) return false; - if (!this.imageID.equals(that.imageID)) + if (!this.lectureID.equals(that.lectureID)) + return false; + } + + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) + return false; + if (!this.token.equals(that.token)) return false; } @@ -48365,7 +51824,7 @@ public class Server { } @Override - public int compareTo(userIsImageAdmin_args other) { + public int compareTo(userIsLectureAdmin_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -48382,12 +51841,22 @@ public class Server { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageID()).compareTo(other.isSetImageID()); + lastComparison = Boolean.valueOf(isSetLectureID()).compareTo(other.isSetLectureID()); if (lastComparison != 0) { return lastComparison; } - if (isSetImageID()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageID, other.imageID); + if (isSetLectureID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lectureID, other.lectureID); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) { return lastComparison; } @@ -48409,7 +51878,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("userIsImageAdmin_args("); + StringBuilder sb = new StringBuilder("userIsLectureAdmin_args("); boolean first = true; sb.append("userID:"); @@ -48420,11 +51889,19 @@ public class Server { } first = false; if (!first) sb.append(", "); - sb.append("imageID:"); - if (this.imageID == null) { + sb.append("lectureID:"); + if (this.lectureID == null) { sb.append("null"); } else { - sb.append(this.imageID); + sb.append(this.lectureID); + } + first = false; + if (!first) sb.append(", "); + sb.append("token:"); + if (this.token == null) { + sb.append("null"); + } else { + sb.append(this.token); } first = false; sb.append(")"); @@ -48452,15 +51929,15 @@ public class Server { } } - private static class userIsImageAdmin_argsStandardSchemeFactory implements SchemeFactory { - public userIsImageAdmin_argsStandardScheme getScheme() { - return new userIsImageAdmin_argsStandardScheme(); + private static class userIsLectureAdmin_argsStandardSchemeFactory implements SchemeFactory { + public userIsLectureAdmin_argsStandardScheme getScheme() { + return new userIsLectureAdmin_argsStandardScheme(); } } - private static class userIsImageAdmin_argsStandardScheme extends StandardScheme { + private static class userIsLectureAdmin_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, userIsImageAdmin_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, userIsLectureAdmin_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -48478,10 +51955,18 @@ public class Server { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // IMAGE_ID + case 2: // LECTURE_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imageID = iprot.readString(); - struct.setImageIDIsSet(true); + struct.lectureID = iprot.readString(); + struct.setLectureIDIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TOKEN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -48497,7 +51982,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, userIsImageAdmin_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, userIsLectureAdmin_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -48506,9 +51991,14 @@ public class Server { oprot.writeString(struct.userID); oprot.writeFieldEnd(); } - if (struct.imageID != null) { - oprot.writeFieldBegin(IMAGE_ID_FIELD_DESC); - oprot.writeString(struct.imageID); + if (struct.lectureID != null) { + oprot.writeFieldBegin(LECTURE_ID_FIELD_DESC); + oprot.writeString(struct.lectureID); + oprot.writeFieldEnd(); + } + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -48517,59 +52007,69 @@ public class Server { } - private static class userIsImageAdmin_argsTupleSchemeFactory implements SchemeFactory { - public userIsImageAdmin_argsTupleScheme getScheme() { - return new userIsImageAdmin_argsTupleScheme(); + private static class userIsLectureAdmin_argsTupleSchemeFactory implements SchemeFactory { + public userIsLectureAdmin_argsTupleScheme getScheme() { + return new userIsLectureAdmin_argsTupleScheme(); } } - private static class userIsImageAdmin_argsTupleScheme extends TupleScheme { + private static class userIsLectureAdmin_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, userIsImageAdmin_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, userIsLectureAdmin_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserID()) { optionals.set(0); } - if (struct.isSetImageID()) { + if (struct.isSetLectureID()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetToken()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetUserID()) { oprot.writeString(struct.userID); } - if (struct.isSetImageID()) { - oprot.writeString(struct.imageID); + if (struct.isSetLectureID()) { + oprot.writeString(struct.lectureID); + } + if (struct.isSetToken()) { + oprot.writeString(struct.token); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, userIsImageAdmin_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, userIsLectureAdmin_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.userID = iprot.readString(); struct.setUserIDIsSet(true); } if (incoming.get(1)) { - struct.imageID = iprot.readString(); - struct.setImageIDIsSet(true); + struct.lectureID = iprot.readString(); + struct.setLectureIDIsSet(true); + } + if (incoming.get(2)) { + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } } } } - public static class userIsImageAdmin_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("userIsImageAdmin_result"); + public static class userIsLectureAdmin_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("userIsLectureAdmin_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new userIsImageAdmin_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new userIsImageAdmin_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new userIsLectureAdmin_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new userIsLectureAdmin_resultTupleSchemeFactory()); } public boolean success; // required @@ -48641,13 +52141,13 @@ public class Server { tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(userIsImageAdmin_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(userIsLectureAdmin_result.class, metaDataMap); } - public userIsImageAdmin_result() { + public userIsLectureAdmin_result() { } - public userIsImageAdmin_result( + public userIsLectureAdmin_result( boolean success) { this(); @@ -48658,13 +52158,13 @@ public class Server { /** * Performs a deep copy on other. */ - public userIsImageAdmin_result(userIsImageAdmin_result other) { + public userIsLectureAdmin_result(userIsLectureAdmin_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; } - public userIsImageAdmin_result deepCopy() { - return new userIsImageAdmin_result(this); + public userIsLectureAdmin_result deepCopy() { + return new userIsLectureAdmin_result(this); } @Override @@ -48677,7 +52177,7 @@ public class Server { return this.success; } - public userIsImageAdmin_result setSuccess(boolean success) { + public userIsLectureAdmin_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; @@ -48735,12 +52235,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof userIsImageAdmin_result) - return this.equals((userIsImageAdmin_result)that); + if (that instanceof userIsLectureAdmin_result) + return this.equals((userIsLectureAdmin_result)that); return false; } - public boolean equals(userIsImageAdmin_result that) { + public boolean equals(userIsLectureAdmin_result that) { if (that == null) return false; @@ -48762,7 +52262,7 @@ public class Server { } @Override - public int compareTo(userIsImageAdmin_result other) { + public int compareTo(userIsLectureAdmin_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -48796,7 +52296,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("userIsImageAdmin_result("); + StringBuilder sb = new StringBuilder("userIsLectureAdmin_result("); boolean first = true; sb.append("success:"); @@ -48829,15 +52329,15 @@ public class Server { } } - private static class userIsImageAdmin_resultStandardSchemeFactory implements SchemeFactory { - public userIsImageAdmin_resultStandardScheme getScheme() { - return new userIsImageAdmin_resultStandardScheme(); + private static class userIsLectureAdmin_resultStandardSchemeFactory implements SchemeFactory { + public userIsLectureAdmin_resultStandardScheme getScheme() { + return new userIsLectureAdmin_resultStandardScheme(); } } - private static class userIsImageAdmin_resultStandardScheme extends StandardScheme { + private static class userIsLectureAdmin_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, userIsImageAdmin_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, userIsLectureAdmin_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -48866,7 +52366,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, userIsImageAdmin_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, userIsLectureAdmin_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -48881,16 +52381,16 @@ public class Server { } - private static class userIsImageAdmin_resultTupleSchemeFactory implements SchemeFactory { - public userIsImageAdmin_resultTupleScheme getScheme() { - return new userIsImageAdmin_resultTupleScheme(); + private static class userIsLectureAdmin_resultTupleSchemeFactory implements SchemeFactory { + public userIsLectureAdmin_resultTupleScheme getScheme() { + return new userIsLectureAdmin_resultTupleScheme(); } } - private static class userIsImageAdmin_resultTupleScheme extends TupleScheme { + private static class userIsLectureAdmin_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, userIsImageAdmin_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, userIsLectureAdmin_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -48903,7 +52403,7 @@ public class Server { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, userIsImageAdmin_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, userIsLectureAdmin_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -48915,25 +52415,22 @@ public class Server { } - public static class userIsLectureAdmin_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("userIsLectureAdmin_args"); + public static class createRandomUUID_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("createRandomUUID_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 org.apache.thrift.protocol.TField LECTURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureID", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new userIsLectureAdmin_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new userIsLectureAdmin_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new createRandomUUID_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new createRandomUUID_argsTupleSchemeFactory()); } - public String userID; // required - public String lectureID; // required + public String token; // 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"), - LECTURE_ID((short)2, "lectureID"); + TOKEN((short)1, "token"); private static final Map byName = new HashMap(); @@ -48948,10 +52445,8 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // USER_ID - return USER_ID; - case 2: // LECTURE_ID - return LECTURE_ID; + case 1: // TOKEN + return TOKEN; default: return null; } @@ -48995,111 +52490,71 @@ public class Server { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.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))); - tmpMap.put(_Fields.LECTURE_ID, new org.apache.thrift.meta_data.FieldMetaData("lectureID", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", 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(userIsLectureAdmin_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createRandomUUID_args.class, metaDataMap); } - public userIsLectureAdmin_args() { + public createRandomUUID_args() { } - public userIsLectureAdmin_args( - String userID, - String lectureID) + public createRandomUUID_args( + String token) { this(); - this.userID = userID; - this.lectureID = lectureID; + this.token = token; } /** * Performs a deep copy on other. */ - public userIsLectureAdmin_args(userIsLectureAdmin_args other) { - if (other.isSetUserID()) { - this.userID = other.userID; - } - if (other.isSetLectureID()) { - this.lectureID = other.lectureID; + public createRandomUUID_args(createRandomUUID_args other) { + if (other.isSetToken()) { + this.token = other.token; } } - public userIsLectureAdmin_args deepCopy() { - return new userIsLectureAdmin_args(this); + public createRandomUUID_args deepCopy() { + return new createRandomUUID_args(this); } @Override public void clear() { - this.userID = null; - this.lectureID = null; - } - - public String getUserID() { - return this.userID; - } - - public userIsLectureAdmin_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; - } + this.token = null; } - public String getLectureID() { - return this.lectureID; + public String getToken() { + return this.token; } - public userIsLectureAdmin_args setLectureID(String lectureID) { - this.lectureID = lectureID; + public createRandomUUID_args setToken(String token) { + this.token = token; return this; } - public void unsetLectureID() { - this.lectureID = null; + public void unsetToken() { + this.token = null; } - /** Returns true if field lectureID is set (has been assigned a value) and false otherwise */ - public boolean isSetLectureID() { - return this.lectureID != null; + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; } - public void setLectureIDIsSet(boolean value) { + public void setTokenIsSet(boolean value) { if (!value) { - this.lectureID = null; + this.token = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case USER_ID: - if (value == null) { - unsetUserID(); - } else { - setUserID((String)value); - } - break; - - case LECTURE_ID: + case TOKEN: if (value == null) { - unsetLectureID(); + unsetToken(); } else { - setLectureID((String)value); + setToken((String)value); } break; @@ -49108,11 +52563,8 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case USER_ID: - return getUserID(); - - case LECTURE_ID: - return getLectureID(); + case TOKEN: + return getToken(); } throw new IllegalStateException(); @@ -49125,10 +52577,8 @@ public class Server { } switch (field) { - case USER_ID: - return isSetUserID(); - case LECTURE_ID: - return isSetLectureID(); + case TOKEN: + return isSetToken(); } throw new IllegalStateException(); } @@ -49137,30 +52587,21 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof userIsLectureAdmin_args) - return this.equals((userIsLectureAdmin_args)that); + if (that instanceof createRandomUUID_args) + return this.equals((createRandomUUID_args)that); return false; } - public boolean equals(userIsLectureAdmin_args that) { + public boolean equals(createRandomUUID_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; - } - - boolean this_present_lectureID = true && this.isSetLectureID(); - boolean that_present_lectureID = true && that.isSetLectureID(); - if (this_present_lectureID || that_present_lectureID) { - if (!(this_present_lectureID && that_present_lectureID)) + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) return false; - if (!this.lectureID.equals(that.lectureID)) + if (!this.token.equals(that.token)) return false; } @@ -49173,29 +52614,19 @@ public class Server { } @Override - public int compareTo(userIsLectureAdmin_args other) { + public int compareTo(createRandomUUID_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; - } - } - lastComparison = Boolean.valueOf(isSetLectureID()).compareTo(other.isSetLectureID()); + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); if (lastComparison != 0) { return lastComparison; } - if (isSetLectureID()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lectureID, other.lectureID); + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) { return lastComparison; } @@ -49217,22 +52648,14 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("userIsLectureAdmin_args("); + StringBuilder sb = new StringBuilder("createRandomUUID_args("); boolean first = true; - sb.append("userID:"); - if (this.userID == null) { - sb.append("null"); - } else { - sb.append(this.userID); - } - first = false; - if (!first) sb.append(", "); - sb.append("lectureID:"); - if (this.lectureID == null) { + sb.append("token:"); + if (this.token == null) { sb.append("null"); } else { - sb.append(this.lectureID); + sb.append(this.token); } first = false; sb.append(")"); @@ -49260,15 +52683,15 @@ public class Server { } } - private static class userIsLectureAdmin_argsStandardSchemeFactory implements SchemeFactory { - public userIsLectureAdmin_argsStandardScheme getScheme() { - return new userIsLectureAdmin_argsStandardScheme(); + private static class createRandomUUID_argsStandardSchemeFactory implements SchemeFactory { + public createRandomUUID_argsStandardScheme getScheme() { + return new createRandomUUID_argsStandardScheme(); } } - private static class userIsLectureAdmin_argsStandardScheme extends StandardScheme { + private static class createRandomUUID_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, userIsLectureAdmin_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, createRandomUUID_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -49278,18 +52701,10 @@ 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; - case 2: // LECTURE_ID + case 1: // TOKEN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.lectureID = iprot.readString(); - struct.setLectureIDIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -49305,18 +52720,13 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, userIsLectureAdmin_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, createRandomUUID_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(); - } - if (struct.lectureID != null) { - oprot.writeFieldBegin(LECTURE_ID_FIELD_DESC); - oprot.writeString(struct.lectureID); + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -49325,62 +52735,52 @@ public class Server { } - private static class userIsLectureAdmin_argsTupleSchemeFactory implements SchemeFactory { - public userIsLectureAdmin_argsTupleScheme getScheme() { - return new userIsLectureAdmin_argsTupleScheme(); + private static class createRandomUUID_argsTupleSchemeFactory implements SchemeFactory { + public createRandomUUID_argsTupleScheme getScheme() { + return new createRandomUUID_argsTupleScheme(); } } - private static class userIsLectureAdmin_argsTupleScheme extends TupleScheme { + private static class createRandomUUID_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, userIsLectureAdmin_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, createRandomUUID_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetUserID()) { + if (struct.isSetToken()) { optionals.set(0); } - if (struct.isSetLectureID()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetUserID()) { - oprot.writeString(struct.userID); - } - if (struct.isSetLectureID()) { - oprot.writeString(struct.lectureID); + oprot.writeBitSet(optionals, 1); + if (struct.isSetToken()) { + oprot.writeString(struct.token); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, userIsLectureAdmin_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, createRandomUUID_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.userID = iprot.readString(); - struct.setUserIDIsSet(true); - } - if (incoming.get(1)) { - struct.lectureID = iprot.readString(); - struct.setLectureIDIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } } } } - public static class userIsLectureAdmin_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("userIsLectureAdmin_result"); + public static class createRandomUUID_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("createRandomUUID_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new userIsLectureAdmin_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new userIsLectureAdmin_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new createRandomUUID_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new createRandomUUID_resultTupleSchemeFactory()); } - public boolean success; // required + public String 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 { @@ -49441,67 +52841,65 @@ public class Server { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(userIsLectureAdmin_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createRandomUUID_result.class, metaDataMap); } - public userIsLectureAdmin_result() { + public createRandomUUID_result() { } - public userIsLectureAdmin_result( - boolean success) + public createRandomUUID_result( + String success) { this(); this.success = success; - setSuccessIsSet(true); } /** * Performs a deep copy on other. */ - public userIsLectureAdmin_result(userIsLectureAdmin_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public createRandomUUID_result(createRandomUUID_result other) { + if (other.isSetSuccess()) { + this.success = other.success; + } } - public userIsLectureAdmin_result deepCopy() { - return new userIsLectureAdmin_result(this); + public createRandomUUID_result deepCopy() { + return new createRandomUUID_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; + this.success = null; } - public boolean isSuccess() { + public String getSuccess() { return this.success; } - public userIsLectureAdmin_result setSuccess(boolean success) { + public createRandomUUID_result setSuccess(String success) { this.success = success; - setSuccessIsSet(true); return this; } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + return this.success != null; } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + if (!value) { + this.success = null; + } } public void setFieldValue(_Fields field, Object value) { @@ -49510,7 +52908,7 @@ public class Server { if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((String)value); } break; @@ -49520,7 +52918,7 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return Boolean.valueOf(isSuccess()); + return getSuccess(); } throw new IllegalStateException(); @@ -49543,21 +52941,21 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof userIsLectureAdmin_result) - return this.equals((userIsLectureAdmin_result)that); + if (that instanceof createRandomUUID_result) + return this.equals((createRandomUUID_result)that); return false; } - public boolean equals(userIsLectureAdmin_result that) { + public boolean equals(createRandomUUID_result that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; + 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 != that.success) + if (!this.success.equals(that.success)) return false; } @@ -49570,7 +52968,7 @@ public class Server { } @Override - public int compareTo(userIsLectureAdmin_result other) { + public int compareTo(createRandomUUID_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -49604,11 +53002,15 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("userIsLectureAdmin_result("); + StringBuilder sb = new StringBuilder("createRandomUUID_result("); boolean first = true; sb.append("success:"); - sb.append(this.success); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } first = false; sb.append(")"); return sb.toString(); @@ -49629,23 +53031,21 @@ public class Server { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class userIsLectureAdmin_resultStandardSchemeFactory implements SchemeFactory { - public userIsLectureAdmin_resultStandardScheme getScheme() { - return new userIsLectureAdmin_resultStandardScheme(); + private static class createRandomUUID_resultStandardSchemeFactory implements SchemeFactory { + public createRandomUUID_resultStandardScheme getScheme() { + return new createRandomUUID_resultStandardScheme(); } } - private static class userIsLectureAdmin_resultStandardScheme extends StandardScheme { + private static class createRandomUUID_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, userIsLectureAdmin_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, createRandomUUID_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -49656,8 +53056,8 @@ public class Server { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.success = iprot.readString(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -49674,13 +53074,13 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, userIsLectureAdmin_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, createRandomUUID_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { + if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBool(struct.success); + oprot.writeString(struct.success); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -49689,16 +53089,16 @@ public class Server { } - private static class userIsLectureAdmin_resultTupleSchemeFactory implements SchemeFactory { - public userIsLectureAdmin_resultTupleScheme getScheme() { - return new userIsLectureAdmin_resultTupleScheme(); + private static class createRandomUUID_resultTupleSchemeFactory implements SchemeFactory { + public createRandomUUID_resultTupleScheme getScheme() { + return new createRandomUUID_resultTupleScheme(); } } - private static class userIsLectureAdmin_resultTupleScheme extends TupleScheme { + private static class createRandomUUID_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, userIsLectureAdmin_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, createRandomUUID_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -49706,16 +53106,16 @@ public class Server { } oprot.writeBitSet(optionals, 1); if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + oprot.writeString(struct.success); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, userIsLectureAdmin_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, createRandomUUID_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.success = iprot.readBool(); + struct.success = iprot.readString(); struct.setSuccessIsSet(true); } } @@ -49723,20 +53123,22 @@ public class Server { } - public static class createRandomUUID_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("createRandomUUID_args"); + public static class getInstitutionByID_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("getInstitutionByID_args"); + private static final org.apache.thrift.protocol.TField INSTITUTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("institutionID", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new createRandomUUID_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new createRandomUUID_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getInstitutionByID_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getInstitutionByID_argsTupleSchemeFactory()); } + public String institutionID; // 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 { -; + INSTITUTION_ID((short)1, "institutionID"); private static final Map byName = new HashMap(); @@ -49751,6 +53153,8 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 1: // INSTITUTION_ID + return INSTITUTION_ID; default: return null; } @@ -49789,37 +53193,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.INSTITUTION_ID, new org.apache.thrift.meta_data.FieldMetaData("institutionID", 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(createRandomUUID_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInstitutionByID_args.class, metaDataMap); } - public createRandomUUID_args() { + public getInstitutionByID_args() { + } + + public getInstitutionByID_args( + String institutionID) + { + this(); + this.institutionID = institutionID; } /** * Performs a deep copy on other. */ - public createRandomUUID_args(createRandomUUID_args other) { + public getInstitutionByID_args(getInstitutionByID_args other) { + if (other.isSetInstitutionID()) { + this.institutionID = other.institutionID; + } } - public createRandomUUID_args deepCopy() { - return new createRandomUUID_args(this); + public getInstitutionByID_args deepCopy() { + return new getInstitutionByID_args(this); } @Override public void clear() { + this.institutionID = null; + } + + public String getInstitutionID() { + return this.institutionID; + } + + public getInstitutionByID_args setInstitutionID(String institutionID) { + this.institutionID = institutionID; + return this; + } + + public void unsetInstitutionID() { + this.institutionID = null; + } + + /** Returns true if field institutionID is set (has been assigned a value) and false otherwise */ + public boolean isSetInstitutionID() { + return this.institutionID != null; + } + + public void setInstitutionIDIsSet(boolean value) { + if (!value) { + this.institutionID = null; + } } public void setFieldValue(_Fields field, Object value) { switch (field) { + case INSTITUTION_ID: + if (value == null) { + unsetInstitutionID(); + } else { + setInstitutionID((String)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { + case INSTITUTION_ID: + return getInstitutionID(); + } throw new IllegalStateException(); } @@ -49831,6 +53285,8 @@ public class Server { } switch (field) { + case INSTITUTION_ID: + return isSetInstitutionID(); } throw new IllegalStateException(); } @@ -49839,15 +53295,24 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof createRandomUUID_args) - return this.equals((createRandomUUID_args)that); + if (that instanceof getInstitutionByID_args) + return this.equals((getInstitutionByID_args)that); return false; } - public boolean equals(createRandomUUID_args that) { + public boolean equals(getInstitutionByID_args that) { if (that == null) return false; + boolean this_present_institutionID = true && this.isSetInstitutionID(); + boolean that_present_institutionID = true && that.isSetInstitutionID(); + if (this_present_institutionID || that_present_institutionID) { + if (!(this_present_institutionID && that_present_institutionID)) + return false; + if (!this.institutionID.equals(that.institutionID)) + return false; + } + return true; } @@ -49857,13 +53322,23 @@ public class Server { } @Override - public int compareTo(createRandomUUID_args other) { + public int compareTo(getInstitutionByID_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lastComparison = Boolean.valueOf(isSetInstitutionID()).compareTo(other.isSetInstitutionID()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetInstitutionID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.institutionID, other.institutionID); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -49881,9 +53356,16 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("createRandomUUID_args("); + StringBuilder sb = new StringBuilder("getInstitutionByID_args("); boolean first = true; + sb.append("institutionID:"); + if (this.institutionID == null) { + sb.append("null"); + } else { + sb.append(this.institutionID); + } + first = false; sb.append(")"); return sb.toString(); } @@ -49909,15 +53391,15 @@ public class Server { } } - private static class createRandomUUID_argsStandardSchemeFactory implements SchemeFactory { - public createRandomUUID_argsStandardScheme getScheme() { - return new createRandomUUID_argsStandardScheme(); + private static class getInstitutionByID_argsStandardSchemeFactory implements SchemeFactory { + public getInstitutionByID_argsStandardScheme getScheme() { + return new getInstitutionByID_argsStandardScheme(); } } - private static class createRandomUUID_argsStandardScheme extends StandardScheme { + private static class getInstitutionByID_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, createRandomUUID_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getInstitutionByID_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -49927,6 +53409,14 @@ public class Server { break; } switch (schemeField.id) { + case 1: // INSTITUTION_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.institutionID = iprot.readString(); + struct.setInstitutionIDIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -49938,46 +53428,64 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, createRandomUUID_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getInstitutionByID_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.institutionID != null) { + oprot.writeFieldBegin(INSTITUTION_ID_FIELD_DESC); + oprot.writeString(struct.institutionID); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class createRandomUUID_argsTupleSchemeFactory implements SchemeFactory { - public createRandomUUID_argsTupleScheme getScheme() { - return new createRandomUUID_argsTupleScheme(); + private static class getInstitutionByID_argsTupleSchemeFactory implements SchemeFactory { + public getInstitutionByID_argsTupleScheme getScheme() { + return new getInstitutionByID_argsTupleScheme(); } } - private static class createRandomUUID_argsTupleScheme extends TupleScheme { + private static class getInstitutionByID_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, createRandomUUID_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getInstitutionByID_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetInstitutionID()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetInstitutionID()) { + oprot.writeString(struct.institutionID); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, createRandomUUID_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getInstitutionByID_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.institutionID = iprot.readString(); + struct.setInstitutionIDIsSet(true); + } } } } - public static class createRandomUUID_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("createRandomUUID_result"); + public static class getInstitutionByID_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("getInstitutionByID_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new createRandomUUID_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new createRandomUUID_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getInstitutionByID_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getInstitutionByID_resultTupleSchemeFactory()); } public String success; // required @@ -50047,13 +53555,13 @@ public class Server { tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createRandomUUID_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInstitutionByID_result.class, metaDataMap); } - public createRandomUUID_result() { + public getInstitutionByID_result() { } - public createRandomUUID_result( + public getInstitutionByID_result( String success) { this(); @@ -50063,14 +53571,14 @@ public class Server { /** * Performs a deep copy on other. */ - public createRandomUUID_result(createRandomUUID_result other) { + public getInstitutionByID_result(getInstitutionByID_result other) { if (other.isSetSuccess()) { this.success = other.success; } } - public createRandomUUID_result deepCopy() { - return new createRandomUUID_result(this); + public getInstitutionByID_result deepCopy() { + return new getInstitutionByID_result(this); } @Override @@ -50082,7 +53590,7 @@ public class Server { return this.success; } - public createRandomUUID_result setSuccess(String success) { + public getInstitutionByID_result setSuccess(String success) { this.success = success; return this; } @@ -50141,12 +53649,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof createRandomUUID_result) - return this.equals((createRandomUUID_result)that); + if (that instanceof getInstitutionByID_result) + return this.equals((getInstitutionByID_result)that); return false; } - public boolean equals(createRandomUUID_result that) { + public boolean equals(getInstitutionByID_result that) { if (that == null) return false; @@ -50168,7 +53676,7 @@ public class Server { } @Override - public int compareTo(createRandomUUID_result other) { + public int compareTo(getInstitutionByID_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -50202,7 +53710,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("createRandomUUID_result("); + StringBuilder sb = new StringBuilder("getInstitutionByID_result("); boolean first = true; sb.append("success:"); @@ -50237,15 +53745,15 @@ public class Server { } } - private static class createRandomUUID_resultStandardSchemeFactory implements SchemeFactory { - public createRandomUUID_resultStandardScheme getScheme() { - return new createRandomUUID_resultStandardScheme(); + private static class getInstitutionByID_resultStandardSchemeFactory implements SchemeFactory { + public getInstitutionByID_resultStandardScheme getScheme() { + return new getInstitutionByID_resultStandardScheme(); } } - private static class createRandomUUID_resultStandardScheme extends StandardScheme { + private static class getInstitutionByID_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, createRandomUUID_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getInstitutionByID_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -50274,7 +53782,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, createRandomUUID_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getInstitutionByID_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -50289,16 +53797,16 @@ public class Server { } - private static class createRandomUUID_resultTupleSchemeFactory implements SchemeFactory { - public createRandomUUID_resultTupleScheme getScheme() { - return new createRandomUUID_resultTupleScheme(); + private static class getInstitutionByID_resultTupleSchemeFactory implements SchemeFactory { + public getInstitutionByID_resultTupleScheme getScheme() { + return new getInstitutionByID_resultTupleScheme(); } } - private static class createRandomUUID_resultTupleScheme extends TupleScheme { + private static class getInstitutionByID_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, createRandomUUID_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getInstitutionByID_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -50311,7 +53819,7 @@ public class Server { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, createRandomUUID_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getInstitutionByID_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { -- cgit v1.2.3-55-g7522