summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/bwlp/thrift/iface/UserInfo.java
diff options
context:
space:
mode:
authorJonathan Bauer2016-01-07 13:55:40 +0100
committerJonathan Bauer2016-01-07 13:55:40 +0100
commit5ba446543184d5af8185da23b9a5fd28133d5513 (patch)
tree5f0dc18ddee5ee2370f6c0226e5337987d393428 /src/main/java/org/openslx/bwlp/thrift/iface/UserInfo.java
parent[thrift] added generated Location class (diff)
downloadmaster-sync-shared-5ba446543184d5af8185da23b9a5fd28133d5513.tar.gz
master-sync-shared-5ba446543184d5af8185da23b9a5fd28133d5513.tar.xz
master-sync-shared-5ba446543184d5af8185da23b9a5fd28133d5513.zip
added "onlyInLocations" flag for LectureWrite
update thrift files to 0.9.3
Diffstat (limited to 'src/main/java/org/openslx/bwlp/thrift/iface/UserInfo.java')
-rw-r--r--src/main/java/org/openslx/bwlp/thrift/iface/UserInfo.java45
1 files changed, 40 insertions, 5 deletions
diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/UserInfo.java b/src/main/java/org/openslx/bwlp/thrift/iface/UserInfo.java
index ea4381a..ced8149 100644
--- a/src/main/java/org/openslx/bwlp/thrift/iface/UserInfo.java
+++ b/src/main/java/org/openslx/bwlp/thrift/iface/UserInfo.java
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.9.1)
+ * Autogenerated by Thrift Compiler (0.9.3)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -29,9 +29,12 @@ import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
+import javax.annotation.Generated;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-04")
public class UserInfo implements org.apache.thrift.TBase<UserInfo, UserInfo._Fields>, java.io.Serializable, Cloneable, Comparable<UserInfo> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UserInfo");
@@ -137,7 +140,7 @@ public class UserInfo implements org.apache.thrift.TBase<UserInfo, UserInfo._Fie
}
// isset id assignments
- private _Fields optionals[] = {_Fields.ROLE};
+ private static final _Fields optionals[] = {_Fields.ROLE};
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);
@@ -537,7 +540,39 @@ public class UserInfo implements org.apache.thrift.TBase<UserInfo, UserInfo._Fie
@Override
public int hashCode() {
- return 0;
+ List<Object> list = new ArrayList<Object>();
+
+ boolean present_userId = true && (isSetUserId());
+ list.add(present_userId);
+ if (present_userId)
+ list.add(userId);
+
+ boolean present_firstName = true && (isSetFirstName());
+ list.add(present_firstName);
+ if (present_firstName)
+ list.add(firstName);
+
+ boolean present_lastName = true && (isSetLastName());
+ list.add(present_lastName);
+ if (present_lastName)
+ list.add(lastName);
+
+ boolean present_eMail = true && (isSetEMail());
+ list.add(present_eMail);
+ if (present_eMail)
+ list.add(eMail);
+
+ boolean present_organizationId = true && (isSetOrganizationId());
+ list.add(present_organizationId);
+ if (present_organizationId)
+ list.add(organizationId);
+
+ boolean present_role = true && (isSetRole());
+ list.add(present_role);
+ if (present_role)
+ list.add(role.getValue());
+
+ return list.hashCode();
}
@Override
@@ -762,7 +797,7 @@ public class UserInfo implements org.apache.thrift.TBase<UserInfo, UserInfo._Fie
break;
case 6: // ROLE
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
- struct.role = Role.findByValue(iprot.readI32());
+ struct.role = org.openslx.bwlp.thrift.iface.Role.findByValue(iprot.readI32());
struct.setRoleIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
@@ -897,7 +932,7 @@ public class UserInfo implements org.apache.thrift.TBase<UserInfo, UserInfo._Fie
struct.setOrganizationIdIsSet(true);
}
if (incoming.get(5)) {
- struct.role = Role.findByValue(iprot.readI32());
+ struct.role = org.openslx.bwlp.thrift.iface.Role.findByValue(iprot.readI32());
struct.setRoleIsSet(true);
}
}