Subversion Repositories SmartDukaan

Rev

Rev 5169 | Rev 5909 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5169 Rev 5287
Line 40... Line 40...
40
 
40
 
41
    public void markAsRead(long activityId, long agentId) throws org.apache.thrift.TException;
41
    public void markAsRead(long activityId, long agentId) throws org.apache.thrift.TException;
42
 
42
 
43
    public List<Agent> getAgents(SearchFilter searchFilter) throws org.apache.thrift.TException;
43
    public List<Agent> getAgents(SearchFilter searchFilter) throws org.apache.thrift.TException;
44
 
44
 
-
 
45
    public List<Agent> getInactiveAgents(SearchFilter searchFilter) throws org.apache.thrift.TException;
-
 
46
 
45
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException;
47
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException;
46
 
48
 
47
    public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException;
49
    public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException;
48
 
50
 
49
    public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException;
51
    public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException;
Line 80... Line 82...
80
 
82
 
81
    public void markAsRead(long activityId, long agentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markAsRead_call> resultHandler) throws org.apache.thrift.TException;
83
    public void markAsRead(long activityId, long agentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markAsRead_call> resultHandler) throws org.apache.thrift.TException;
82
 
84
 
83
    public void getAgents(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAgents_call> resultHandler) throws org.apache.thrift.TException;
85
    public void getAgents(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAgents_call> resultHandler) throws org.apache.thrift.TException;
84
 
86
 
-
 
87
    public void getInactiveAgents(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInactiveAgents_call> resultHandler) throws org.apache.thrift.TException;
-
 
88
 
85
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException;
89
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException;
86
 
90
 
87
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException;
91
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException;
88
 
92
 
89
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException;
93
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException;
Line 320... Line 324...
320
        return result.success;
324
        return result.success;
321
      }
325
      }
322
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAgents failed: unknown result");
326
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAgents failed: unknown result");
323
    }
327
    }
324
 
328
 
-
 
329
    public List<Agent> getInactiveAgents(SearchFilter searchFilter) throws org.apache.thrift.TException
-
 
330
    {
-
 
331
      send_getInactiveAgents(searchFilter);
-
 
332
      return recv_getInactiveAgents();
-
 
333
    }
-
 
334
 
-
 
335
    public void send_getInactiveAgents(SearchFilter searchFilter) throws org.apache.thrift.TException
-
 
336
    {
-
 
337
      getInactiveAgents_args args = new getInactiveAgents_args();
-
 
338
      args.setSearchFilter(searchFilter);
-
 
339
      sendBase("getInactiveAgents", args);
-
 
340
    }
-
 
341
 
-
 
342
    public List<Agent> recv_getInactiveAgents() throws org.apache.thrift.TException
-
 
343
    {
-
 
344
      getInactiveAgents_result result = new getInactiveAgents_result();
-
 
345
      receiveBase(result, "getInactiveAgents");
-
 
346
      if (result.isSetSuccess()) {
-
 
347
        return result.success;
-
 
348
      }
-
 
349
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInactiveAgents failed: unknown result");
-
 
350
    }
-
 
351
 
325
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
352
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
326
    {
353
    {
327
      send_updatePasswordForAgent(agentEmailId, password);
354
      send_updatePasswordForAgent(agentEmailId, password);
328
      recv_updatePasswordForAgent();
355
      recv_updatePasswordForAgent();
329
    }
356
    }
Line 827... Line 854...
827
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
854
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
828
        return (new Client(prot)).recv_getAgents();
855
        return (new Client(prot)).recv_getAgents();
829
      }
856
      }
830
    }
857
    }
831
 
858
 
-
 
859
    public void getInactiveAgents(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<getInactiveAgents_call> resultHandler) throws org.apache.thrift.TException {
-
 
860
      checkReady();
-
 
861
      getInactiveAgents_call method_call = new getInactiveAgents_call(searchFilter, resultHandler, this, ___protocolFactory, ___transport);
-
 
862
      this.___currentMethod = method_call;
-
 
863
      ___manager.call(method_call);
-
 
864
    }
-
 
865
 
-
 
866
    public static class getInactiveAgents_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
867
      private SearchFilter searchFilter;
-
 
868
      public getInactiveAgents_call(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<getInactiveAgents_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
869
        super(client, protocolFactory, transport, resultHandler, false);
-
 
870
        this.searchFilter = searchFilter;
-
 
871
      }
-
 
872
 
-
 
873
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
874
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInactiveAgents", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
875
        getInactiveAgents_args args = new getInactiveAgents_args();
-
 
876
        args.setSearchFilter(searchFilter);
-
 
877
        args.write(prot);
-
 
878
        prot.writeMessageEnd();
-
 
879
      }
-
 
880
 
-
 
881
      public List<Agent> getResult() throws org.apache.thrift.TException {
-
 
882
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
883
          throw new IllegalStateException("Method call not finished!");
-
 
884
        }
-
 
885
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
886
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
887
        return (new Client(prot)).recv_getInactiveAgents();
-
 
888
      }
-
 
889
    }
-
 
890
 
832
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException {
891
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException {
833
      checkReady();
892
      checkReady();
834
      updatePasswordForAgent_call method_call = new updatePasswordForAgent_call(agentEmailId, password, resultHandler, this, ___protocolFactory, ___transport);
893
      updatePasswordForAgent_call method_call = new updatePasswordForAgent_call(agentEmailId, password, resultHandler, this, ___protocolFactory, ___transport);
835
      this.___currentMethod = method_call;
894
      this.___currentMethod = method_call;
836
      ___manager.call(method_call);
895
      ___manager.call(method_call);
Line 1146... Line 1205...
1146
      processMap.put("unassignAgentTickets", new unassignAgentTickets());
1205
      processMap.put("unassignAgentTickets", new unassignAgentTickets());
1147
      processMap.put("getActivities", new getActivities());
1206
      processMap.put("getActivities", new getActivities());
1148
      processMap.put("insertActivity", new insertActivity());
1207
      processMap.put("insertActivity", new insertActivity());
1149
      processMap.put("markAsRead", new markAsRead());
1208
      processMap.put("markAsRead", new markAsRead());
1150
      processMap.put("getAgents", new getAgents());
1209
      processMap.put("getAgents", new getAgents());
-
 
1210
      processMap.put("getInactiveAgents", new getInactiveAgents());
1151
      processMap.put("updatePasswordForAgent", new updatePasswordForAgent());
1211
      processMap.put("updatePasswordForAgent", new updatePasswordForAgent());
1152
      processMap.put("getRoleNamesForAgent", new getRoleNamesForAgent());
1212
      processMap.put("getRoleNamesForAgent", new getRoleNamesForAgent());
1153
      processMap.put("getPermissionsForRoleName", new getPermissionsForRoleName());
1213
      processMap.put("getPermissionsForRoleName", new getPermissionsForRoleName());
1154
      processMap.put("getLastEmailProcessedTimestamp", new getLastEmailProcessedTimestamp());
1214
      processMap.put("getLastEmailProcessedTimestamp", new getLastEmailProcessedTimestamp());
1155
      processMap.put("updateLastEmailProcessedTimestamp", new updateLastEmailProcessedTimestamp());
1215
      processMap.put("updateLastEmailProcessedTimestamp", new updateLastEmailProcessedTimestamp());
Line 1304... Line 1364...
1304
        result.success = iface.getAgents(args.searchFilter);
1364
        result.success = iface.getAgents(args.searchFilter);
1305
        return result;
1365
        return result;
1306
      }
1366
      }
1307
    }
1367
    }
1308
 
1368
 
-
 
1369
    private static class getInactiveAgents<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInactiveAgents_args> {
-
 
1370
      public getInactiveAgents() {
-
 
1371
        super("getInactiveAgents");
-
 
1372
      }
-
 
1373
 
-
 
1374
      protected getInactiveAgents_args getEmptyArgsInstance() {
-
 
1375
        return new getInactiveAgents_args();
-
 
1376
      }
-
 
1377
 
-
 
1378
      protected getInactiveAgents_result getResult(I iface, getInactiveAgents_args args) throws org.apache.thrift.TException {
-
 
1379
        getInactiveAgents_result result = new getInactiveAgents_result();
-
 
1380
        result.success = iface.getInactiveAgents(args.searchFilter);
-
 
1381
        return result;
-
 
1382
      }
-
 
1383
    }
-
 
1384
 
1309
    private static class updatePasswordForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePasswordForAgent_args> {
1385
    private static class updatePasswordForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePasswordForAgent_args> {
1310
      public updatePasswordForAgent() {
1386
      public updatePasswordForAgent() {
1311
        super("updatePasswordForAgent");
1387
        super("updatePasswordForAgent");
1312
      }
1388
      }
1313
 
1389
 
Line 6778... Line 6854...
6778
      }
6854
      }
6779
    }
6855
    }
6780
 
6856
 
6781
  }
6857
  }
6782
 
6858
 
-
 
6859
  public static class getInactiveAgents_args implements org.apache.thrift.TBase<getInactiveAgents_args, getInactiveAgents_args._Fields>, java.io.Serializable, Cloneable   {
-
 
6860
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInactiveAgents_args");
-
 
6861
 
-
 
6862
    private static final org.apache.thrift.protocol.TField SEARCH_FILTER_FIELD_DESC = new org.apache.thrift.protocol.TField("searchFilter", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
6863
 
-
 
6864
    private SearchFilter searchFilter; // required
-
 
6865
 
-
 
6866
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
6867
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
6868
      SEARCH_FILTER((short)1, "searchFilter");
-
 
6869
 
-
 
6870
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
6871
 
-
 
6872
      static {
-
 
6873
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
6874
          byName.put(field.getFieldName(), field);
-
 
6875
        }
-
 
6876
      }
-
 
6877
 
-
 
6878
      /**
-
 
6879
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
6880
       */
-
 
6881
      public static _Fields findByThriftId(int fieldId) {
-
 
6882
        switch(fieldId) {
-
 
6883
          case 1: // SEARCH_FILTER
-
 
6884
            return SEARCH_FILTER;
-
 
6885
          default:
-
 
6886
            return null;
-
 
6887
        }
-
 
6888
      }
-
 
6889
 
-
 
6890
      /**
-
 
6891
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
6892
       * if it is not found.
-
 
6893
       */
-
 
6894
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
6895
        _Fields fields = findByThriftId(fieldId);
-
 
6896
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
6897
        return fields;
-
 
6898
      }
-
 
6899
 
-
 
6900
      /**
-
 
6901
       * Find the _Fields constant that matches name, or null if its not found.
-
 
6902
       */
-
 
6903
      public static _Fields findByName(String name) {
-
 
6904
        return byName.get(name);
-
 
6905
      }
-
 
6906
 
-
 
6907
      private final short _thriftId;
-
 
6908
      private final String _fieldName;
-
 
6909
 
-
 
6910
      _Fields(short thriftId, String fieldName) {
-
 
6911
        _thriftId = thriftId;
-
 
6912
        _fieldName = fieldName;
-
 
6913
      }
-
 
6914
 
-
 
6915
      public short getThriftFieldId() {
-
 
6916
        return _thriftId;
-
 
6917
      }
-
 
6918
 
-
 
6919
      public String getFieldName() {
-
 
6920
        return _fieldName;
-
 
6921
      }
-
 
6922
    }
-
 
6923
 
-
 
6924
    // isset id assignments
-
 
6925
 
-
 
6926
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
6927
    static {
-
 
6928
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
6929
      tmpMap.put(_Fields.SEARCH_FILTER, new org.apache.thrift.meta_data.FieldMetaData("searchFilter", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6930
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SearchFilter.class)));
-
 
6931
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
6932
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInactiveAgents_args.class, metaDataMap);
-
 
6933
    }
-
 
6934
 
-
 
6935
    public getInactiveAgents_args() {
-
 
6936
    }
-
 
6937
 
-
 
6938
    public getInactiveAgents_args(
-
 
6939
      SearchFilter searchFilter)
-
 
6940
    {
-
 
6941
      this();
-
 
6942
      this.searchFilter = searchFilter;
-
 
6943
    }
-
 
6944
 
-
 
6945
    /**
-
 
6946
     * Performs a deep copy on <i>other</i>.
-
 
6947
     */
-
 
6948
    public getInactiveAgents_args(getInactiveAgents_args other) {
-
 
6949
      if (other.isSetSearchFilter()) {
-
 
6950
        this.searchFilter = new SearchFilter(other.searchFilter);
-
 
6951
      }
-
 
6952
    }
-
 
6953
 
-
 
6954
    public getInactiveAgents_args deepCopy() {
-
 
6955
      return new getInactiveAgents_args(this);
-
 
6956
    }
-
 
6957
 
-
 
6958
    @Override
-
 
6959
    public void clear() {
-
 
6960
      this.searchFilter = null;
-
 
6961
    }
-
 
6962
 
-
 
6963
    public SearchFilter getSearchFilter() {
-
 
6964
      return this.searchFilter;
-
 
6965
    }
-
 
6966
 
-
 
6967
    public void setSearchFilter(SearchFilter searchFilter) {
-
 
6968
      this.searchFilter = searchFilter;
-
 
6969
    }
-
 
6970
 
-
 
6971
    public void unsetSearchFilter() {
-
 
6972
      this.searchFilter = null;
-
 
6973
    }
-
 
6974
 
-
 
6975
    /** Returns true if field searchFilter is set (has been assigned a value) and false otherwise */
-
 
6976
    public boolean isSetSearchFilter() {
-
 
6977
      return this.searchFilter != null;
-
 
6978
    }
-
 
6979
 
-
 
6980
    public void setSearchFilterIsSet(boolean value) {
-
 
6981
      if (!value) {
-
 
6982
        this.searchFilter = null;
-
 
6983
      }
-
 
6984
    }
-
 
6985
 
-
 
6986
    public void setFieldValue(_Fields field, Object value) {
-
 
6987
      switch (field) {
-
 
6988
      case SEARCH_FILTER:
-
 
6989
        if (value == null) {
-
 
6990
          unsetSearchFilter();
-
 
6991
        } else {
-
 
6992
          setSearchFilter((SearchFilter)value);
-
 
6993
        }
-
 
6994
        break;
-
 
6995
 
-
 
6996
      }
-
 
6997
    }
-
 
6998
 
-
 
6999
    public Object getFieldValue(_Fields field) {
-
 
7000
      switch (field) {
-
 
7001
      case SEARCH_FILTER:
-
 
7002
        return getSearchFilter();
-
 
7003
 
-
 
7004
      }
-
 
7005
      throw new IllegalStateException();
-
 
7006
    }
-
 
7007
 
-
 
7008
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
7009
    public boolean isSet(_Fields field) {
-
 
7010
      if (field == null) {
-
 
7011
        throw new IllegalArgumentException();
-
 
7012
      }
-
 
7013
 
-
 
7014
      switch (field) {
-
 
7015
      case SEARCH_FILTER:
-
 
7016
        return isSetSearchFilter();
-
 
7017
      }
-
 
7018
      throw new IllegalStateException();
-
 
7019
    }
-
 
7020
 
-
 
7021
    @Override
-
 
7022
    public boolean equals(Object that) {
-
 
7023
      if (that == null)
-
 
7024
        return false;
-
 
7025
      if (that instanceof getInactiveAgents_args)
-
 
7026
        return this.equals((getInactiveAgents_args)that);
-
 
7027
      return false;
-
 
7028
    }
-
 
7029
 
-
 
7030
    public boolean equals(getInactiveAgents_args that) {
-
 
7031
      if (that == null)
-
 
7032
        return false;
-
 
7033
 
-
 
7034
      boolean this_present_searchFilter = true && this.isSetSearchFilter();
-
 
7035
      boolean that_present_searchFilter = true && that.isSetSearchFilter();
-
 
7036
      if (this_present_searchFilter || that_present_searchFilter) {
-
 
7037
        if (!(this_present_searchFilter && that_present_searchFilter))
-
 
7038
          return false;
-
 
7039
        if (!this.searchFilter.equals(that.searchFilter))
-
 
7040
          return false;
-
 
7041
      }
-
 
7042
 
-
 
7043
      return true;
-
 
7044
    }
-
 
7045
 
-
 
7046
    @Override
-
 
7047
    public int hashCode() {
-
 
7048
      return 0;
-
 
7049
    }
-
 
7050
 
-
 
7051
    public int compareTo(getInactiveAgents_args other) {
-
 
7052
      if (!getClass().equals(other.getClass())) {
-
 
7053
        return getClass().getName().compareTo(other.getClass().getName());
-
 
7054
      }
-
 
7055
 
-
 
7056
      int lastComparison = 0;
-
 
7057
      getInactiveAgents_args typedOther = (getInactiveAgents_args)other;
-
 
7058
 
-
 
7059
      lastComparison = Boolean.valueOf(isSetSearchFilter()).compareTo(typedOther.isSetSearchFilter());
-
 
7060
      if (lastComparison != 0) {
-
 
7061
        return lastComparison;
-
 
7062
      }
-
 
7063
      if (isSetSearchFilter()) {
-
 
7064
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchFilter, typedOther.searchFilter);
-
 
7065
        if (lastComparison != 0) {
-
 
7066
          return lastComparison;
-
 
7067
        }
-
 
7068
      }
-
 
7069
      return 0;
-
 
7070
    }
-
 
7071
 
-
 
7072
    public _Fields fieldForId(int fieldId) {
-
 
7073
      return _Fields.findByThriftId(fieldId);
-
 
7074
    }
-
 
7075
 
-
 
7076
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
7077
      org.apache.thrift.protocol.TField field;
-
 
7078
      iprot.readStructBegin();
-
 
7079
      while (true)
-
 
7080
      {
-
 
7081
        field = iprot.readFieldBegin();
-
 
7082
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
7083
          break;
-
 
7084
        }
-
 
7085
        switch (field.id) {
-
 
7086
          case 1: // SEARCH_FILTER
-
 
7087
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
7088
              this.searchFilter = new SearchFilter();
-
 
7089
              this.searchFilter.read(iprot);
-
 
7090
            } else { 
-
 
7091
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
7092
            }
-
 
7093
            break;
-
 
7094
          default:
-
 
7095
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
7096
        }
-
 
7097
        iprot.readFieldEnd();
-
 
7098
      }
-
 
7099
      iprot.readStructEnd();
-
 
7100
      validate();
-
 
7101
    }
-
 
7102
 
-
 
7103
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
7104
      validate();
-
 
7105
 
-
 
7106
      oprot.writeStructBegin(STRUCT_DESC);
-
 
7107
      if (this.searchFilter != null) {
-
 
7108
        oprot.writeFieldBegin(SEARCH_FILTER_FIELD_DESC);
-
 
7109
        this.searchFilter.write(oprot);
-
 
7110
        oprot.writeFieldEnd();
-
 
7111
      }
-
 
7112
      oprot.writeFieldStop();
-
 
7113
      oprot.writeStructEnd();
-
 
7114
    }
-
 
7115
 
-
 
7116
    @Override
-
 
7117
    public String toString() {
-
 
7118
      StringBuilder sb = new StringBuilder("getInactiveAgents_args(");
-
 
7119
      boolean first = true;
-
 
7120
 
-
 
7121
      sb.append("searchFilter:");
-
 
7122
      if (this.searchFilter == null) {
-
 
7123
        sb.append("null");
-
 
7124
      } else {
-
 
7125
        sb.append(this.searchFilter);
-
 
7126
      }
-
 
7127
      first = false;
-
 
7128
      sb.append(")");
-
 
7129
      return sb.toString();
-
 
7130
    }
-
 
7131
 
-
 
7132
    public void validate() throws org.apache.thrift.TException {
-
 
7133
      // check for required fields
-
 
7134
    }
-
 
7135
 
-
 
7136
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
7137
      try {
-
 
7138
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
7139
      } catch (org.apache.thrift.TException te) {
-
 
7140
        throw new java.io.IOException(te);
-
 
7141
      }
-
 
7142
    }
-
 
7143
 
-
 
7144
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
7145
      try {
-
 
7146
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
7147
      } catch (org.apache.thrift.TException te) {
-
 
7148
        throw new java.io.IOException(te);
-
 
7149
      }
-
 
7150
    }
-
 
7151
 
-
 
7152
  }
-
 
7153
 
-
 
7154
  public static class getInactiveAgents_result implements org.apache.thrift.TBase<getInactiveAgents_result, getInactiveAgents_result._Fields>, java.io.Serializable, Cloneable   {
-
 
7155
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInactiveAgents_result");
-
 
7156
 
-
 
7157
    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);
-
 
7158
 
-
 
7159
    private List<Agent> success; // required
-
 
7160
 
-
 
7161
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
7162
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
7163
      SUCCESS((short)0, "success");
-
 
7164
 
-
 
7165
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
7166
 
-
 
7167
      static {
-
 
7168
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
7169
          byName.put(field.getFieldName(), field);
-
 
7170
        }
-
 
7171
      }
-
 
7172
 
-
 
7173
      /**
-
 
7174
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
7175
       */
-
 
7176
      public static _Fields findByThriftId(int fieldId) {
-
 
7177
        switch(fieldId) {
-
 
7178
          case 0: // SUCCESS
-
 
7179
            return SUCCESS;
-
 
7180
          default:
-
 
7181
            return null;
-
 
7182
        }
-
 
7183
      }
-
 
7184
 
-
 
7185
      /**
-
 
7186
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
7187
       * if it is not found.
-
 
7188
       */
-
 
7189
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
7190
        _Fields fields = findByThriftId(fieldId);
-
 
7191
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
7192
        return fields;
-
 
7193
      }
-
 
7194
 
-
 
7195
      /**
-
 
7196
       * Find the _Fields constant that matches name, or null if its not found.
-
 
7197
       */
-
 
7198
      public static _Fields findByName(String name) {
-
 
7199
        return byName.get(name);
-
 
7200
      }
-
 
7201
 
-
 
7202
      private final short _thriftId;
-
 
7203
      private final String _fieldName;
-
 
7204
 
-
 
7205
      _Fields(short thriftId, String fieldName) {
-
 
7206
        _thriftId = thriftId;
-
 
7207
        _fieldName = fieldName;
-
 
7208
      }
-
 
7209
 
-
 
7210
      public short getThriftFieldId() {
-
 
7211
        return _thriftId;
-
 
7212
      }
-
 
7213
 
-
 
7214
      public String getFieldName() {
-
 
7215
        return _fieldName;
-
 
7216
      }
-
 
7217
    }
-
 
7218
 
-
 
7219
    // isset id assignments
-
 
7220
 
-
 
7221
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
7222
    static {
-
 
7223
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
7224
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
7225
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
7226
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Agent.class))));
-
 
7227
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
7228
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInactiveAgents_result.class, metaDataMap);
-
 
7229
    }
-
 
7230
 
-
 
7231
    public getInactiveAgents_result() {
-
 
7232
    }
-
 
7233
 
-
 
7234
    public getInactiveAgents_result(
-
 
7235
      List<Agent> success)
-
 
7236
    {
-
 
7237
      this();
-
 
7238
      this.success = success;
-
 
7239
    }
-
 
7240
 
-
 
7241
    /**
-
 
7242
     * Performs a deep copy on <i>other</i>.
-
 
7243
     */
-
 
7244
    public getInactiveAgents_result(getInactiveAgents_result other) {
-
 
7245
      if (other.isSetSuccess()) {
-
 
7246
        List<Agent> __this__success = new ArrayList<Agent>();
-
 
7247
        for (Agent other_element : other.success) {
-
 
7248
          __this__success.add(new Agent(other_element));
-
 
7249
        }
-
 
7250
        this.success = __this__success;
-
 
7251
      }
-
 
7252
    }
-
 
7253
 
-
 
7254
    public getInactiveAgents_result deepCopy() {
-
 
7255
      return new getInactiveAgents_result(this);
-
 
7256
    }
-
 
7257
 
-
 
7258
    @Override
-
 
7259
    public void clear() {
-
 
7260
      this.success = null;
-
 
7261
    }
-
 
7262
 
-
 
7263
    public int getSuccessSize() {
-
 
7264
      return (this.success == null) ? 0 : this.success.size();
-
 
7265
    }
-
 
7266
 
-
 
7267
    public java.util.Iterator<Agent> getSuccessIterator() {
-
 
7268
      return (this.success == null) ? null : this.success.iterator();
-
 
7269
    }
-
 
7270
 
-
 
7271
    public void addToSuccess(Agent elem) {
-
 
7272
      if (this.success == null) {
-
 
7273
        this.success = new ArrayList<Agent>();
-
 
7274
      }
-
 
7275
      this.success.add(elem);
-
 
7276
    }
-
 
7277
 
-
 
7278
    public List<Agent> getSuccess() {
-
 
7279
      return this.success;
-
 
7280
    }
-
 
7281
 
-
 
7282
    public void setSuccess(List<Agent> success) {
-
 
7283
      this.success = success;
-
 
7284
    }
-
 
7285
 
-
 
7286
    public void unsetSuccess() {
-
 
7287
      this.success = null;
-
 
7288
    }
-
 
7289
 
-
 
7290
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
7291
    public boolean isSetSuccess() {
-
 
7292
      return this.success != null;
-
 
7293
    }
-
 
7294
 
-
 
7295
    public void setSuccessIsSet(boolean value) {
-
 
7296
      if (!value) {
-
 
7297
        this.success = null;
-
 
7298
      }
-
 
7299
    }
-
 
7300
 
-
 
7301
    public void setFieldValue(_Fields field, Object value) {
-
 
7302
      switch (field) {
-
 
7303
      case SUCCESS:
-
 
7304
        if (value == null) {
-
 
7305
          unsetSuccess();
-
 
7306
        } else {
-
 
7307
          setSuccess((List<Agent>)value);
-
 
7308
        }
-
 
7309
        break;
-
 
7310
 
-
 
7311
      }
-
 
7312
    }
-
 
7313
 
-
 
7314
    public Object getFieldValue(_Fields field) {
-
 
7315
      switch (field) {
-
 
7316
      case SUCCESS:
-
 
7317
        return getSuccess();
-
 
7318
 
-
 
7319
      }
-
 
7320
      throw new IllegalStateException();
-
 
7321
    }
-
 
7322
 
-
 
7323
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
7324
    public boolean isSet(_Fields field) {
-
 
7325
      if (field == null) {
-
 
7326
        throw new IllegalArgumentException();
-
 
7327
      }
-
 
7328
 
-
 
7329
      switch (field) {
-
 
7330
      case SUCCESS:
-
 
7331
        return isSetSuccess();
-
 
7332
      }
-
 
7333
      throw new IllegalStateException();
-
 
7334
    }
-
 
7335
 
-
 
7336
    @Override
-
 
7337
    public boolean equals(Object that) {
-
 
7338
      if (that == null)
-
 
7339
        return false;
-
 
7340
      if (that instanceof getInactiveAgents_result)
-
 
7341
        return this.equals((getInactiveAgents_result)that);
-
 
7342
      return false;
-
 
7343
    }
-
 
7344
 
-
 
7345
    public boolean equals(getInactiveAgents_result that) {
-
 
7346
      if (that == null)
-
 
7347
        return false;
-
 
7348
 
-
 
7349
      boolean this_present_success = true && this.isSetSuccess();
-
 
7350
      boolean that_present_success = true && that.isSetSuccess();
-
 
7351
      if (this_present_success || that_present_success) {
-
 
7352
        if (!(this_present_success && that_present_success))
-
 
7353
          return false;
-
 
7354
        if (!this.success.equals(that.success))
-
 
7355
          return false;
-
 
7356
      }
-
 
7357
 
-
 
7358
      return true;
-
 
7359
    }
-
 
7360
 
-
 
7361
    @Override
-
 
7362
    public int hashCode() {
-
 
7363
      return 0;
-
 
7364
    }
-
 
7365
 
-
 
7366
    public int compareTo(getInactiveAgents_result other) {
-
 
7367
      if (!getClass().equals(other.getClass())) {
-
 
7368
        return getClass().getName().compareTo(other.getClass().getName());
-
 
7369
      }
-
 
7370
 
-
 
7371
      int lastComparison = 0;
-
 
7372
      getInactiveAgents_result typedOther = (getInactiveAgents_result)other;
-
 
7373
 
-
 
7374
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
7375
      if (lastComparison != 0) {
-
 
7376
        return lastComparison;
-
 
7377
      }
-
 
7378
      if (isSetSuccess()) {
-
 
7379
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
7380
        if (lastComparison != 0) {
-
 
7381
          return lastComparison;
-
 
7382
        }
-
 
7383
      }
-
 
7384
      return 0;
-
 
7385
    }
-
 
7386
 
-
 
7387
    public _Fields fieldForId(int fieldId) {
-
 
7388
      return _Fields.findByThriftId(fieldId);
-
 
7389
    }
-
 
7390
 
-
 
7391
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
7392
      org.apache.thrift.protocol.TField field;
-
 
7393
      iprot.readStructBegin();
-
 
7394
      while (true)
-
 
7395
      {
-
 
7396
        field = iprot.readFieldBegin();
-
 
7397
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
7398
          break;
-
 
7399
        }
-
 
7400
        switch (field.id) {
-
 
7401
          case 0: // SUCCESS
-
 
7402
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
7403
              {
-
 
7404
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
-
 
7405
                this.success = new ArrayList<Agent>(_list28.size);
-
 
7406
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
-
 
7407
                {
-
 
7408
                  Agent _elem30; // required
-
 
7409
                  _elem30 = new Agent();
-
 
7410
                  _elem30.read(iprot);
-
 
7411
                  this.success.add(_elem30);
-
 
7412
                }
-
 
7413
                iprot.readListEnd();
-
 
7414
              }
-
 
7415
            } else { 
-
 
7416
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
7417
            }
-
 
7418
            break;
-
 
7419
          default:
-
 
7420
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
7421
        }
-
 
7422
        iprot.readFieldEnd();
-
 
7423
      }
-
 
7424
      iprot.readStructEnd();
-
 
7425
      validate();
-
 
7426
    }
-
 
7427
 
-
 
7428
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
7429
      oprot.writeStructBegin(STRUCT_DESC);
-
 
7430
 
-
 
7431
      if (this.isSetSuccess()) {
-
 
7432
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
7433
        {
-
 
7434
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
7435
          for (Agent _iter31 : this.success)
-
 
7436
          {
-
 
7437
            _iter31.write(oprot);
-
 
7438
          }
-
 
7439
          oprot.writeListEnd();
-
 
7440
        }
-
 
7441
        oprot.writeFieldEnd();
-
 
7442
      }
-
 
7443
      oprot.writeFieldStop();
-
 
7444
      oprot.writeStructEnd();
-
 
7445
    }
-
 
7446
 
-
 
7447
    @Override
-
 
7448
    public String toString() {
-
 
7449
      StringBuilder sb = new StringBuilder("getInactiveAgents_result(");
-
 
7450
      boolean first = true;
-
 
7451
 
-
 
7452
      sb.append("success:");
-
 
7453
      if (this.success == null) {
-
 
7454
        sb.append("null");
-
 
7455
      } else {
-
 
7456
        sb.append(this.success);
-
 
7457
      }
-
 
7458
      first = false;
-
 
7459
      sb.append(")");
-
 
7460
      return sb.toString();
-
 
7461
    }
-
 
7462
 
-
 
7463
    public void validate() throws org.apache.thrift.TException {
-
 
7464
      // check for required fields
-
 
7465
    }
-
 
7466
 
-
 
7467
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
7468
      try {
-
 
7469
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
7470
      } catch (org.apache.thrift.TException te) {
-
 
7471
        throw new java.io.IOException(te);
-
 
7472
      }
-
 
7473
    }
-
 
7474
 
-
 
7475
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
7476
      try {
-
 
7477
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
7478
      } catch (org.apache.thrift.TException te) {
-
 
7479
        throw new java.io.IOException(te);
-
 
7480
      }
-
 
7481
    }
-
 
7482
 
-
 
7483
  }
-
 
7484
 
6783
  public static class updatePasswordForAgent_args implements org.apache.thrift.TBase<updatePasswordForAgent_args, updatePasswordForAgent_args._Fields>, java.io.Serializable, Cloneable   {
7485
  public static class updatePasswordForAgent_args implements org.apache.thrift.TBase<updatePasswordForAgent_args, updatePasswordForAgent_args._Fields>, java.io.Serializable, Cloneable   {
6784
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_args");
7486
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_args");
6785
 
7487
 
6786
    private static final org.apache.thrift.protocol.TField AGENT_EMAIL_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("agentEmailId", org.apache.thrift.protocol.TType.STRING, (short)1);
7488
    private static final org.apache.thrift.protocol.TField AGENT_EMAIL_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("agentEmailId", org.apache.thrift.protocol.TType.STRING, (short)1);
6787
    private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)2);
7489
    private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)2);
Line 7903... Line 8605...
7903
        }
8605
        }
7904
        switch (field.id) {
8606
        switch (field.id) {
7905
          case 0: // SUCCESS
8607
          case 0: // SUCCESS
7906
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
8608
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
7907
              {
8609
              {
7908
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
8610
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
7909
                this.success = new ArrayList<String>(_list28.size);
8611
                this.success = new ArrayList<String>(_list32.size);
7910
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
8612
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
7911
                {
8613
                {
7912
                  String _elem30; // required
8614
                  String _elem34; // required
7913
                  _elem30 = iprot.readString();
8615
                  _elem34 = iprot.readString();
7914
                  this.success.add(_elem30);
8616
                  this.success.add(_elem34);
7915
                }
8617
                }
7916
                iprot.readListEnd();
8618
                iprot.readListEnd();
7917
              }
8619
              }
7918
            } else { 
8620
            } else { 
7919
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8621
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 7933... Line 8635...
7933
 
8635
 
7934
      if (this.isSetSuccess()) {
8636
      if (this.isSetSuccess()) {
7935
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8637
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7936
        {
8638
        {
7937
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
8639
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
7938
          for (String _iter31 : this.success)
8640
          for (String _iter35 : this.success)
7939
          {
8641
          {
7940
            oprot.writeString(_iter31);
8642
            oprot.writeString(_iter35);
7941
          }
8643
          }
7942
          oprot.writeListEnd();
8644
          oprot.writeListEnd();
7943
        }
8645
        }
7944
        oprot.writeFieldEnd();
8646
        oprot.writeFieldEnd();
7945
      }
8647
      }
Line 8527... Line 9229...
8527
        }
9229
        }
8528
        switch (field.id) {
9230
        switch (field.id) {
8529
          case 0: // SUCCESS
9231
          case 0: // SUCCESS
8530
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
9232
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
8531
              {
9233
              {
8532
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
9234
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
8533
                this.success = new ArrayList<String>(_list32.size);
9235
                this.success = new ArrayList<String>(_list36.size);
8534
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
9236
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
8535
                {
9237
                {
8536
                  String _elem34; // required
9238
                  String _elem38; // required
8537
                  _elem34 = iprot.readString();
9239
                  _elem38 = iprot.readString();
8538
                  this.success.add(_elem34);
9240
                  this.success.add(_elem38);
8539
                }
9241
                }
8540
                iprot.readListEnd();
9242
                iprot.readListEnd();
8541
              }
9243
              }
8542
            } else { 
9244
            } else { 
8543
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9245
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 8557... Line 9259...
8557
 
9259
 
8558
      if (this.isSetSuccess()) {
9260
      if (this.isSetSuccess()) {
8559
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9261
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8560
        {
9262
        {
8561
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
9263
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
8562
          for (String _iter35 : this.success)
9264
          for (String _iter39 : this.success)
8563
          {
9265
          {
8564
            oprot.writeString(_iter35);
9266
            oprot.writeString(_iter39);
8565
          }
9267
          }
8566
          oprot.writeListEnd();
9268
          oprot.writeListEnd();
8567
        }
9269
        }
8568
        oprot.writeFieldEnd();
9270
        oprot.writeFieldEnd();
8569
      }
9271
      }
Line 10500... Line 11202...
10500
            }
11202
            }
10501
            break;
11203
            break;
10502
          case 2: // ROLE
11204
          case 2: // ROLE
10503
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11205
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10504
              {
11206
              {
10505
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
11207
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
10506
                this.role = new ArrayList<String>(_list36.size);
11208
                this.role = new ArrayList<String>(_list40.size);
10507
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
11209
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
10508
                {
11210
                {
10509
                  String _elem38; // required
11211
                  String _elem42; // required
10510
                  _elem38 = iprot.readString();
11212
                  _elem42 = iprot.readString();
10511
                  this.role.add(_elem38);
11213
                  this.role.add(_elem42);
10512
                }
11214
                }
10513
                iprot.readListEnd();
11215
                iprot.readListEnd();
10514
              }
11216
              }
10515
            } else { 
11217
            } else { 
10516
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11218
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 10536... Line 11238...
10536
      }
11238
      }
10537
      if (this.role != null) {
11239
      if (this.role != null) {
10538
        oprot.writeFieldBegin(ROLE_FIELD_DESC);
11240
        oprot.writeFieldBegin(ROLE_FIELD_DESC);
10539
        {
11241
        {
10540
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.role.size()));
11242
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.role.size()));
10541
          for (String _iter39 : this.role)
11243
          for (String _iter43 : this.role)
10542
          {
11244
          {
10543
            oprot.writeString(_iter39);
11245
            oprot.writeString(_iter43);
10544
          }
11246
          }
10545
          oprot.writeListEnd();
11247
          oprot.writeListEnd();
10546
        }
11248
        }
10547
        oprot.writeFieldEnd();
11249
        oprot.writeFieldEnd();
10548
      }
11250
      }
Line 11122... Line 11824...
11122
            }
11824
            }
11123
            break;
11825
            break;
11124
          case 2: // ROLE
11826
          case 2: // ROLE
11125
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11827
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11126
              {
11828
              {
11127
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
11829
                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
11128
                this.role = new ArrayList<String>(_list40.size);
11830
                this.role = new ArrayList<String>(_list44.size);
11129
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
11831
                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
11130
                {
11832
                {
11131
                  String _elem42; // required
11833
                  String _elem46; // required
11132
                  _elem42 = iprot.readString();
11834
                  _elem46 = iprot.readString();
11133
                  this.role.add(_elem42);
11835
                  this.role.add(_elem46);
11134
                }
11836
                }
11135
                iprot.readListEnd();
11837
                iprot.readListEnd();
11136
              }
11838
              }
11137
            } else { 
11839
            } else { 
11138
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11840
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 11156... Line 11858...
11156
      oprot.writeFieldEnd();
11858
      oprot.writeFieldEnd();
11157
      if (this.role != null) {
11859
      if (this.role != null) {
11158
        oprot.writeFieldBegin(ROLE_FIELD_DESC);
11860
        oprot.writeFieldBegin(ROLE_FIELD_DESC);
11159
        {
11861
        {
11160
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.role.size()));
11862
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.role.size()));
11161
          for (String _iter43 : this.role)
11863
          for (String _iter47 : this.role)
11162
          {
11864
          {
11163
            oprot.writeString(_iter43);
11865
            oprot.writeString(_iter47);
11164
          }
11866
          }
11165
          oprot.writeListEnd();
11867
          oprot.writeListEnd();
11166
        }
11868
        }
11167
        oprot.writeFieldEnd();
11869
        oprot.writeFieldEnd();
11168
      }
11870
      }