Subversion Repositories SmartDukaan

Rev

Rev 471 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 471 Rev 495
Line 37... Line 37...
37
 
37
 
38
    public Message getMessage(long id) throws HelperServiceException, TException;
38
    public Message getMessage(long id) throws HelperServiceException, TException;
39
 
39
 
40
    public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, TException;
40
    public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, TException;
41
 
41
 
-
 
42
    public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, TException;
-
 
43
 
-
 
44
    public boolean deleteUser(String username) throws HelperServiceException, TException;
-
 
45
 
-
 
46
    public long authenticateUser(String username, String password) throws HelperServiceException, TException;
-
 
47
 
-
 
48
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, TException;
-
 
49
 
42
  }
50
  }
43
 
51
 
44
  public static class Client implements Iface {
52
  public static class Client implements Iface {
45
    public Client(TProtocol prot)
53
    public Client(TProtocol prot)
46
    {
54
    {
Line 272... Line 280...
272
        throw result.se;
280
        throw result.se;
273
      }
281
      }
274
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getSubstitutedMessage failed: unknown result");
282
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getSubstitutedMessage failed: unknown result");
275
    }
283
    }
276
 
284
 
-
 
285
    public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, TException
-
 
286
    {
-
 
287
      send_addUser(username, password, warehouseId);
-
 
288
      return recv_addUser();
-
 
289
    }
-
 
290
 
-
 
291
    public void send_addUser(String username, String password, long warehouseId) throws TException
-
 
292
    {
-
 
293
      oprot_.writeMessageBegin(new TMessage("addUser", TMessageType.CALL, seqid_));
-
 
294
      addUser_args args = new addUser_args();
-
 
295
      args.username = username;
-
 
296
      args.password = password;
-
 
297
      args.warehouseId = warehouseId;
-
 
298
      args.write(oprot_);
-
 
299
      oprot_.writeMessageEnd();
-
 
300
      oprot_.getTransport().flush();
-
 
301
    }
-
 
302
 
-
 
303
    public boolean recv_addUser() throws HelperServiceException, TException
-
 
304
    {
-
 
305
      TMessage msg = iprot_.readMessageBegin();
-
 
306
      if (msg.type == TMessageType.EXCEPTION) {
-
 
307
        TApplicationException x = TApplicationException.read(iprot_);
-
 
308
        iprot_.readMessageEnd();
-
 
309
        throw x;
-
 
310
      }
-
 
311
      addUser_result result = new addUser_result();
-
 
312
      result.read(iprot_);
-
 
313
      iprot_.readMessageEnd();
-
 
314
      if (result.isSetSuccess()) {
-
 
315
        return result.success;
-
 
316
      }
-
 
317
      if (result.se != null) {
-
 
318
        throw result.se;
-
 
319
      }
-
 
320
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "addUser failed: unknown result");
-
 
321
    }
-
 
322
 
-
 
323
    public boolean deleteUser(String username) throws HelperServiceException, TException
-
 
324
    {
-
 
325
      send_deleteUser(username);
-
 
326
      return recv_deleteUser();
-
 
327
    }
-
 
328
 
-
 
329
    public void send_deleteUser(String username) throws TException
-
 
330
    {
-
 
331
      oprot_.writeMessageBegin(new TMessage("deleteUser", TMessageType.CALL, seqid_));
-
 
332
      deleteUser_args args = new deleteUser_args();
-
 
333
      args.username = username;
-
 
334
      args.write(oprot_);
-
 
335
      oprot_.writeMessageEnd();
-
 
336
      oprot_.getTransport().flush();
-
 
337
    }
-
 
338
 
-
 
339
    public boolean recv_deleteUser() throws HelperServiceException, TException
-
 
340
    {
-
 
341
      TMessage msg = iprot_.readMessageBegin();
-
 
342
      if (msg.type == TMessageType.EXCEPTION) {
-
 
343
        TApplicationException x = TApplicationException.read(iprot_);
-
 
344
        iprot_.readMessageEnd();
-
 
345
        throw x;
-
 
346
      }
-
 
347
      deleteUser_result result = new deleteUser_result();
-
 
348
      result.read(iprot_);
-
 
349
      iprot_.readMessageEnd();
-
 
350
      if (result.isSetSuccess()) {
-
 
351
        return result.success;
-
 
352
      }
-
 
353
      if (result.se != null) {
-
 
354
        throw result.se;
-
 
355
      }
-
 
356
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
-
 
357
    }
-
 
358
 
-
 
359
    public long authenticateUser(String username, String password) throws HelperServiceException, TException
-
 
360
    {
-
 
361
      send_authenticateUser(username, password);
-
 
362
      return recv_authenticateUser();
-
 
363
    }
-
 
364
 
-
 
365
    public void send_authenticateUser(String username, String password) throws TException
-
 
366
    {
-
 
367
      oprot_.writeMessageBegin(new TMessage("authenticateUser", TMessageType.CALL, seqid_));
-
 
368
      authenticateUser_args args = new authenticateUser_args();
-
 
369
      args.username = username;
-
 
370
      args.password = password;
-
 
371
      args.write(oprot_);
-
 
372
      oprot_.writeMessageEnd();
-
 
373
      oprot_.getTransport().flush();
-
 
374
    }
-
 
375
 
-
 
376
    public long recv_authenticateUser() throws HelperServiceException, TException
-
 
377
    {
-
 
378
      TMessage msg = iprot_.readMessageBegin();
-
 
379
      if (msg.type == TMessageType.EXCEPTION) {
-
 
380
        TApplicationException x = TApplicationException.read(iprot_);
-
 
381
        iprot_.readMessageEnd();
-
 
382
        throw x;
-
 
383
      }
-
 
384
      authenticateUser_result result = new authenticateUser_result();
-
 
385
      result.read(iprot_);
-
 
386
      iprot_.readMessageEnd();
-
 
387
      if (result.isSetSuccess()) {
-
 
388
        return result.success;
-
 
389
      }
-
 
390
      if (result.se != null) {
-
 
391
        throw result.se;
-
 
392
      }
-
 
393
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "authenticateUser failed: unknown result");
-
 
394
    }
-
 
395
 
-
 
396
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, TException
-
 
397
    {
-
 
398
      send_updatePassword(username, oldPassword, newPassword);
-
 
399
      return recv_updatePassword();
-
 
400
    }
-
 
401
 
-
 
402
    public void send_updatePassword(String username, String oldPassword, String newPassword) throws TException
-
 
403
    {
-
 
404
      oprot_.writeMessageBegin(new TMessage("updatePassword", TMessageType.CALL, seqid_));
-
 
405
      updatePassword_args args = new updatePassword_args();
-
 
406
      args.username = username;
-
 
407
      args.oldPassword = oldPassword;
-
 
408
      args.newPassword = newPassword;
-
 
409
      args.write(oprot_);
-
 
410
      oprot_.writeMessageEnd();
-
 
411
      oprot_.getTransport().flush();
-
 
412
    }
-
 
413
 
-
 
414
    public boolean recv_updatePassword() throws HelperServiceException, TException
-
 
415
    {
-
 
416
      TMessage msg = iprot_.readMessageBegin();
-
 
417
      if (msg.type == TMessageType.EXCEPTION) {
-
 
418
        TApplicationException x = TApplicationException.read(iprot_);
-
 
419
        iprot_.readMessageEnd();
-
 
420
        throw x;
-
 
421
      }
-
 
422
      updatePassword_result result = new updatePassword_result();
-
 
423
      result.read(iprot_);
-
 
424
      iprot_.readMessageEnd();
-
 
425
      if (result.isSetSuccess()) {
-
 
426
        return result.success;
-
 
427
      }
-
 
428
      if (result.se != null) {
-
 
429
        throw result.se;
-
 
430
      }
-
 
431
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
-
 
432
    }
-
 
433
 
277
  }
434
  }
278
  public static class Processor implements TProcessor {
435
  public static class Processor implements TProcessor {
279
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
436
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
280
    public Processor(Iface iface)
437
    public Processor(Iface iface)
281
    {
438
    {
Line 284... Line 441...
284
      processMap_.put("sendText", new sendText());
441
      processMap_.put("sendText", new sendText());
285
      processMap_.put("addMessage", new addMessage());
442
      processMap_.put("addMessage", new addMessage());
286
      processMap_.put("updateMessage", new updateMessage());
443
      processMap_.put("updateMessage", new updateMessage());
287
      processMap_.put("getMessage", new getMessage());
444
      processMap_.put("getMessage", new getMessage());
288
      processMap_.put("getSubstitutedMessage", new getSubstitutedMessage());
445
      processMap_.put("getSubstitutedMessage", new getSubstitutedMessage());
-
 
446
      processMap_.put("addUser", new addUser());
-
 
447
      processMap_.put("deleteUser", new deleteUser());
-
 
448
      processMap_.put("authenticateUser", new authenticateUser());
-
 
449
      processMap_.put("updatePassword", new updatePassword());
289
    }
450
    }
290
 
451
 
291
    protected static interface ProcessFunction {
452
    protected static interface ProcessFunction {
292
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
453
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
293
    }
454
    }
Line 479... Line 640...
479
        oprot.getTransport().flush();
640
        oprot.getTransport().flush();
480
      }
641
      }
481
 
642
 
482
    }
643
    }
483
 
644
 
-
 
645
    private class addUser implements ProcessFunction {
-
 
646
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
647
      {
-
 
648
        addUser_args args = new addUser_args();
-
 
649
        args.read(iprot);
-
 
650
        iprot.readMessageEnd();
-
 
651
        addUser_result result = new addUser_result();
-
 
652
        try {
-
 
653
          result.success = iface_.addUser(args.username, args.password, args.warehouseId);
-
 
654
          result.setSuccessIsSet(true);
-
 
655
        } catch (HelperServiceException se) {
-
 
656
          result.se = se;
-
 
657
        } catch (Throwable th) {
-
 
658
          LOGGER.error("Internal error processing addUser", th);
-
 
659
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing addUser");
-
 
660
          oprot.writeMessageBegin(new TMessage("addUser", TMessageType.EXCEPTION, seqid));
-
 
661
          x.write(oprot);
-
 
662
          oprot.writeMessageEnd();
-
 
663
          oprot.getTransport().flush();
-
 
664
          return;
-
 
665
        }
-
 
666
        oprot.writeMessageBegin(new TMessage("addUser", TMessageType.REPLY, seqid));
-
 
667
        result.write(oprot);
-
 
668
        oprot.writeMessageEnd();
-
 
669
        oprot.getTransport().flush();
-
 
670
      }
-
 
671
 
-
 
672
    }
-
 
673
 
-
 
674
    private class deleteUser implements ProcessFunction {
-
 
675
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
676
      {
-
 
677
        deleteUser_args args = new deleteUser_args();
-
 
678
        args.read(iprot);
-
 
679
        iprot.readMessageEnd();
-
 
680
        deleteUser_result result = new deleteUser_result();
-
 
681
        try {
-
 
682
          result.success = iface_.deleteUser(args.username);
-
 
683
          result.setSuccessIsSet(true);
-
 
684
        } catch (HelperServiceException se) {
-
 
685
          result.se = se;
-
 
686
        } catch (Throwable th) {
-
 
687
          LOGGER.error("Internal error processing deleteUser", th);
-
 
688
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing deleteUser");
-
 
689
          oprot.writeMessageBegin(new TMessage("deleteUser", TMessageType.EXCEPTION, seqid));
-
 
690
          x.write(oprot);
-
 
691
          oprot.writeMessageEnd();
-
 
692
          oprot.getTransport().flush();
-
 
693
          return;
-
 
694
        }
-
 
695
        oprot.writeMessageBegin(new TMessage("deleteUser", TMessageType.REPLY, seqid));
-
 
696
        result.write(oprot);
-
 
697
        oprot.writeMessageEnd();
-
 
698
        oprot.getTransport().flush();
-
 
699
      }
-
 
700
 
-
 
701
    }
-
 
702
 
-
 
703
    private class authenticateUser implements ProcessFunction {
-
 
704
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
705
      {
-
 
706
        authenticateUser_args args = new authenticateUser_args();
-
 
707
        args.read(iprot);
-
 
708
        iprot.readMessageEnd();
-
 
709
        authenticateUser_result result = new authenticateUser_result();
-
 
710
        try {
-
 
711
          result.success = iface_.authenticateUser(args.username, args.password);
-
 
712
          result.setSuccessIsSet(true);
-
 
713
        } catch (HelperServiceException se) {
-
 
714
          result.se = se;
-
 
715
        } catch (Throwable th) {
-
 
716
          LOGGER.error("Internal error processing authenticateUser", th);
-
 
717
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing authenticateUser");
-
 
718
          oprot.writeMessageBegin(new TMessage("authenticateUser", TMessageType.EXCEPTION, seqid));
-
 
719
          x.write(oprot);
-
 
720
          oprot.writeMessageEnd();
-
 
721
          oprot.getTransport().flush();
-
 
722
          return;
-
 
723
        }
-
 
724
        oprot.writeMessageBegin(new TMessage("authenticateUser", TMessageType.REPLY, seqid));
-
 
725
        result.write(oprot);
-
 
726
        oprot.writeMessageEnd();
-
 
727
        oprot.getTransport().flush();
-
 
728
      }
-
 
729
 
-
 
730
    }
-
 
731
 
-
 
732
    private class updatePassword implements ProcessFunction {
-
 
733
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
734
      {
-
 
735
        updatePassword_args args = new updatePassword_args();
-
 
736
        args.read(iprot);
-
 
737
        iprot.readMessageEnd();
-
 
738
        updatePassword_result result = new updatePassword_result();
-
 
739
        try {
-
 
740
          result.success = iface_.updatePassword(args.username, args.oldPassword, args.newPassword);
-
 
741
          result.setSuccessIsSet(true);
-
 
742
        } catch (HelperServiceException se) {
-
 
743
          result.se = se;
-
 
744
        } catch (Throwable th) {
-
 
745
          LOGGER.error("Internal error processing updatePassword", th);
-
 
746
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing updatePassword");
-
 
747
          oprot.writeMessageBegin(new TMessage("updatePassword", TMessageType.EXCEPTION, seqid));
-
 
748
          x.write(oprot);
-
 
749
          oprot.writeMessageEnd();
-
 
750
          oprot.getTransport().flush();
-
 
751
          return;
-
 
752
        }
-
 
753
        oprot.writeMessageBegin(new TMessage("updatePassword", TMessageType.REPLY, seqid));
-
 
754
        result.write(oprot);
-
 
755
        oprot.writeMessageEnd();
-
 
756
        oprot.getTransport().flush();
-
 
757
      }
-
 
758
 
-
 
759
    }
-
 
760
 
484
  }
761
  }
485
 
762
 
486
  public static class sendMail_args implements TBase<sendMail_args._Fields>, java.io.Serializable, Cloneable, Comparable<sendMail_args>   {
763
  public static class sendMail_args implements TBase<sendMail_args._Fields>, java.io.Serializable, Cloneable, Comparable<sendMail_args>   {
487
    private static final TStruct STRUCT_DESC = new TStruct("sendMail_args");
764
    private static final TStruct STRUCT_DESC = new TStruct("sendMail_args");
488
 
765
 
Line 4187... Line 4464...
4187
      first = false;
4464
      first = false;
4188
      if (!first) sb.append(", ");
4465
      if (!first) sb.append(", ");
4189
      sb.append("se:");
4466
      sb.append("se:");
4190
      if (this.se == null) {
4467
      if (this.se == null) {
4191
        sb.append("null");
4468
        sb.append("null");
-
 
4469
      } else {
-
 
4470
        sb.append(this.se);
-
 
4471
      }
-
 
4472
      first = false;
-
 
4473
      sb.append(")");
-
 
4474
      return sb.toString();
-
 
4475
    }
-
 
4476
 
-
 
4477
    public void validate() throws TException {
-
 
4478
      // check for required fields
-
 
4479
    }
-
 
4480
 
-
 
4481
  }
-
 
4482
 
-
 
4483
  public static class addUser_args implements TBase<addUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<addUser_args>   {
-
 
4484
    private static final TStruct STRUCT_DESC = new TStruct("addUser_args");
-
 
4485
 
-
 
4486
    private static final TField USERNAME_FIELD_DESC = new TField("username", TType.STRING, (short)1);
-
 
4487
    private static final TField PASSWORD_FIELD_DESC = new TField("password", TType.STRING, (short)2);
-
 
4488
    private static final TField WAREHOUSE_ID_FIELD_DESC = new TField("warehouseId", TType.I64, (short)3);
-
 
4489
 
-
 
4490
    private String username;
-
 
4491
    private String password;
-
 
4492
    private long warehouseId;
-
 
4493
 
-
 
4494
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
4495
    public enum _Fields implements TFieldIdEnum {
-
 
4496
      USERNAME((short)1, "username"),
-
 
4497
      PASSWORD((short)2, "password"),
-
 
4498
      WAREHOUSE_ID((short)3, "warehouseId");
-
 
4499
 
-
 
4500
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
4501
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
4502
 
-
 
4503
      static {
-
 
4504
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
4505
          byId.put((int)field._thriftId, field);
-
 
4506
          byName.put(field.getFieldName(), field);
-
 
4507
        }
-
 
4508
      }
-
 
4509
 
-
 
4510
      /**
-
 
4511
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
4512
       */
-
 
4513
      public static _Fields findByThriftId(int fieldId) {
-
 
4514
        return byId.get(fieldId);
-
 
4515
      }
-
 
4516
 
-
 
4517
      /**
-
 
4518
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
4519
       * if it is not found.
-
 
4520
       */
-
 
4521
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
4522
        _Fields fields = findByThriftId(fieldId);
-
 
4523
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
4524
        return fields;
-
 
4525
      }
-
 
4526
 
-
 
4527
      /**
-
 
4528
       * Find the _Fields constant that matches name, or null if its not found.
-
 
4529
       */
-
 
4530
      public static _Fields findByName(String name) {
-
 
4531
        return byName.get(name);
-
 
4532
      }
-
 
4533
 
-
 
4534
      private final short _thriftId;
-
 
4535
      private final String _fieldName;
-
 
4536
 
-
 
4537
      _Fields(short thriftId, String fieldName) {
-
 
4538
        _thriftId = thriftId;
-
 
4539
        _fieldName = fieldName;
-
 
4540
      }
-
 
4541
 
-
 
4542
      public short getThriftFieldId() {
-
 
4543
        return _thriftId;
-
 
4544
      }
-
 
4545
 
-
 
4546
      public String getFieldName() {
-
 
4547
        return _fieldName;
-
 
4548
      }
-
 
4549
    }
-
 
4550
 
-
 
4551
    // isset id assignments
-
 
4552
    private static final int __WAREHOUSEID_ISSET_ID = 0;
-
 
4553
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
4554
 
-
 
4555
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
4556
      put(_Fields.USERNAME, new FieldMetaData("username", TFieldRequirementType.DEFAULT, 
-
 
4557
          new FieldValueMetaData(TType.STRING)));
-
 
4558
      put(_Fields.PASSWORD, new FieldMetaData("password", TFieldRequirementType.DEFAULT, 
-
 
4559
          new FieldValueMetaData(TType.STRING)));
-
 
4560
      put(_Fields.WAREHOUSE_ID, new FieldMetaData("warehouseId", TFieldRequirementType.DEFAULT, 
-
 
4561
          new FieldValueMetaData(TType.I64)));
-
 
4562
    }});
-
 
4563
 
-
 
4564
    static {
-
 
4565
      FieldMetaData.addStructMetaDataMap(addUser_args.class, metaDataMap);
-
 
4566
    }
-
 
4567
 
-
 
4568
    public addUser_args() {
-
 
4569
    }
-
 
4570
 
-
 
4571
    public addUser_args(
-
 
4572
      String username,
-
 
4573
      String password,
-
 
4574
      long warehouseId)
-
 
4575
    {
-
 
4576
      this();
-
 
4577
      this.username = username;
-
 
4578
      this.password = password;
-
 
4579
      this.warehouseId = warehouseId;
-
 
4580
      setWarehouseIdIsSet(true);
-
 
4581
    }
-
 
4582
 
-
 
4583
    /**
-
 
4584
     * Performs a deep copy on <i>other</i>.
-
 
4585
     */
-
 
4586
    public addUser_args(addUser_args other) {
-
 
4587
      __isset_bit_vector.clear();
-
 
4588
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
4589
      if (other.isSetUsername()) {
-
 
4590
        this.username = other.username;
-
 
4591
      }
-
 
4592
      if (other.isSetPassword()) {
-
 
4593
        this.password = other.password;
-
 
4594
      }
-
 
4595
      this.warehouseId = other.warehouseId;
-
 
4596
    }
-
 
4597
 
-
 
4598
    public addUser_args deepCopy() {
-
 
4599
      return new addUser_args(this);
-
 
4600
    }
-
 
4601
 
-
 
4602
    @Deprecated
-
 
4603
    public addUser_args clone() {
-
 
4604
      return new addUser_args(this);
-
 
4605
    }
-
 
4606
 
-
 
4607
    public String getUsername() {
-
 
4608
      return this.username;
-
 
4609
    }
-
 
4610
 
-
 
4611
    public addUser_args setUsername(String username) {
-
 
4612
      this.username = username;
-
 
4613
      return this;
-
 
4614
    }
-
 
4615
 
-
 
4616
    public void unsetUsername() {
-
 
4617
      this.username = null;
-
 
4618
    }
-
 
4619
 
-
 
4620
    /** Returns true if field username is set (has been asigned a value) and false otherwise */
-
 
4621
    public boolean isSetUsername() {
-
 
4622
      return this.username != null;
-
 
4623
    }
-
 
4624
 
-
 
4625
    public void setUsernameIsSet(boolean value) {
-
 
4626
      if (!value) {
-
 
4627
        this.username = null;
-
 
4628
      }
-
 
4629
    }
-
 
4630
 
-
 
4631
    public String getPassword() {
-
 
4632
      return this.password;
-
 
4633
    }
-
 
4634
 
-
 
4635
    public addUser_args setPassword(String password) {
-
 
4636
      this.password = password;
-
 
4637
      return this;
-
 
4638
    }
-
 
4639
 
-
 
4640
    public void unsetPassword() {
-
 
4641
      this.password = null;
-
 
4642
    }
-
 
4643
 
-
 
4644
    /** Returns true if field password is set (has been asigned a value) and false otherwise */
-
 
4645
    public boolean isSetPassword() {
-
 
4646
      return this.password != null;
-
 
4647
    }
-
 
4648
 
-
 
4649
    public void setPasswordIsSet(boolean value) {
-
 
4650
      if (!value) {
-
 
4651
        this.password = null;
-
 
4652
      }
-
 
4653
    }
-
 
4654
 
-
 
4655
    public long getWarehouseId() {
-
 
4656
      return this.warehouseId;
-
 
4657
    }
-
 
4658
 
-
 
4659
    public addUser_args setWarehouseId(long warehouseId) {
-
 
4660
      this.warehouseId = warehouseId;
-
 
4661
      setWarehouseIdIsSet(true);
-
 
4662
      return this;
-
 
4663
    }
-
 
4664
 
-
 
4665
    public void unsetWarehouseId() {
-
 
4666
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
-
 
4667
    }
-
 
4668
 
-
 
4669
    /** Returns true if field warehouseId is set (has been asigned a value) and false otherwise */
-
 
4670
    public boolean isSetWarehouseId() {
-
 
4671
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
-
 
4672
    }
-
 
4673
 
-
 
4674
    public void setWarehouseIdIsSet(boolean value) {
-
 
4675
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
-
 
4676
    }
-
 
4677
 
-
 
4678
    public void setFieldValue(_Fields field, Object value) {
-
 
4679
      switch (field) {
-
 
4680
      case USERNAME:
-
 
4681
        if (value == null) {
-
 
4682
          unsetUsername();
-
 
4683
        } else {
-
 
4684
          setUsername((String)value);
-
 
4685
        }
-
 
4686
        break;
-
 
4687
 
-
 
4688
      case PASSWORD:
-
 
4689
        if (value == null) {
-
 
4690
          unsetPassword();
-
 
4691
        } else {
-
 
4692
          setPassword((String)value);
-
 
4693
        }
-
 
4694
        break;
-
 
4695
 
-
 
4696
      case WAREHOUSE_ID:
-
 
4697
        if (value == null) {
-
 
4698
          unsetWarehouseId();
-
 
4699
        } else {
-
 
4700
          setWarehouseId((Long)value);
-
 
4701
        }
-
 
4702
        break;
-
 
4703
 
-
 
4704
      }
-
 
4705
    }
-
 
4706
 
-
 
4707
    public void setFieldValue(int fieldID, Object value) {
-
 
4708
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
4709
    }
-
 
4710
 
-
 
4711
    public Object getFieldValue(_Fields field) {
-
 
4712
      switch (field) {
-
 
4713
      case USERNAME:
-
 
4714
        return getUsername();
-
 
4715
 
-
 
4716
      case PASSWORD:
-
 
4717
        return getPassword();
-
 
4718
 
-
 
4719
      case WAREHOUSE_ID:
-
 
4720
        return new Long(getWarehouseId());
-
 
4721
 
-
 
4722
      }
-
 
4723
      throw new IllegalStateException();
-
 
4724
    }
-
 
4725
 
-
 
4726
    public Object getFieldValue(int fieldId) {
-
 
4727
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
4728
    }
-
 
4729
 
-
 
4730
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
4731
    public boolean isSet(_Fields field) {
-
 
4732
      switch (field) {
-
 
4733
      case USERNAME:
-
 
4734
        return isSetUsername();
-
 
4735
      case PASSWORD:
-
 
4736
        return isSetPassword();
-
 
4737
      case WAREHOUSE_ID:
-
 
4738
        return isSetWarehouseId();
-
 
4739
      }
-
 
4740
      throw new IllegalStateException();
-
 
4741
    }
-
 
4742
 
-
 
4743
    public boolean isSet(int fieldID) {
-
 
4744
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
4745
    }
-
 
4746
 
-
 
4747
    @Override
-
 
4748
    public boolean equals(Object that) {
-
 
4749
      if (that == null)
-
 
4750
        return false;
-
 
4751
      if (that instanceof addUser_args)
-
 
4752
        return this.equals((addUser_args)that);
-
 
4753
      return false;
-
 
4754
    }
-
 
4755
 
-
 
4756
    public boolean equals(addUser_args that) {
-
 
4757
      if (that == null)
-
 
4758
        return false;
-
 
4759
 
-
 
4760
      boolean this_present_username = true && this.isSetUsername();
-
 
4761
      boolean that_present_username = true && that.isSetUsername();
-
 
4762
      if (this_present_username || that_present_username) {
-
 
4763
        if (!(this_present_username && that_present_username))
-
 
4764
          return false;
-
 
4765
        if (!this.username.equals(that.username))
-
 
4766
          return false;
-
 
4767
      }
-
 
4768
 
-
 
4769
      boolean this_present_password = true && this.isSetPassword();
-
 
4770
      boolean that_present_password = true && that.isSetPassword();
-
 
4771
      if (this_present_password || that_present_password) {
-
 
4772
        if (!(this_present_password && that_present_password))
-
 
4773
          return false;
-
 
4774
        if (!this.password.equals(that.password))
-
 
4775
          return false;
-
 
4776
      }
-
 
4777
 
-
 
4778
      boolean this_present_warehouseId = true;
-
 
4779
      boolean that_present_warehouseId = true;
-
 
4780
      if (this_present_warehouseId || that_present_warehouseId) {
-
 
4781
        if (!(this_present_warehouseId && that_present_warehouseId))
-
 
4782
          return false;
-
 
4783
        if (this.warehouseId != that.warehouseId)
-
 
4784
          return false;
-
 
4785
      }
-
 
4786
 
-
 
4787
      return true;
-
 
4788
    }
-
 
4789
 
-
 
4790
    @Override
-
 
4791
    public int hashCode() {
-
 
4792
      return 0;
-
 
4793
    }
-
 
4794
 
-
 
4795
    public int compareTo(addUser_args other) {
-
 
4796
      if (!getClass().equals(other.getClass())) {
-
 
4797
        return getClass().getName().compareTo(other.getClass().getName());
-
 
4798
      }
-
 
4799
 
-
 
4800
      int lastComparison = 0;
-
 
4801
      addUser_args typedOther = (addUser_args)other;
-
 
4802
 
-
 
4803
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(isSetUsername());
-
 
4804
      if (lastComparison != 0) {
-
 
4805
        return lastComparison;
-
 
4806
      }
-
 
4807
      lastComparison = TBaseHelper.compareTo(username, typedOther.username);
-
 
4808
      if (lastComparison != 0) {
-
 
4809
        return lastComparison;
-
 
4810
      }
-
 
4811
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(isSetPassword());
-
 
4812
      if (lastComparison != 0) {
-
 
4813
        return lastComparison;
-
 
4814
      }
-
 
4815
      lastComparison = TBaseHelper.compareTo(password, typedOther.password);
-
 
4816
      if (lastComparison != 0) {
-
 
4817
        return lastComparison;
-
 
4818
      }
-
 
4819
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(isSetWarehouseId());
-
 
4820
      if (lastComparison != 0) {
-
 
4821
        return lastComparison;
-
 
4822
      }
-
 
4823
      lastComparison = TBaseHelper.compareTo(warehouseId, typedOther.warehouseId);
-
 
4824
      if (lastComparison != 0) {
-
 
4825
        return lastComparison;
-
 
4826
      }
-
 
4827
      return 0;
-
 
4828
    }
-
 
4829
 
-
 
4830
    public void read(TProtocol iprot) throws TException {
-
 
4831
      TField field;
-
 
4832
      iprot.readStructBegin();
-
 
4833
      while (true)
-
 
4834
      {
-
 
4835
        field = iprot.readFieldBegin();
-
 
4836
        if (field.type == TType.STOP) { 
-
 
4837
          break;
-
 
4838
        }
-
 
4839
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
4840
        if (fieldId == null) {
-
 
4841
          TProtocolUtil.skip(iprot, field.type);
-
 
4842
        } else {
-
 
4843
          switch (fieldId) {
-
 
4844
            case USERNAME:
-
 
4845
              if (field.type == TType.STRING) {
-
 
4846
                this.username = iprot.readString();
-
 
4847
              } else { 
-
 
4848
                TProtocolUtil.skip(iprot, field.type);
-
 
4849
              }
-
 
4850
              break;
-
 
4851
            case PASSWORD:
-
 
4852
              if (field.type == TType.STRING) {
-
 
4853
                this.password = iprot.readString();
-
 
4854
              } else { 
-
 
4855
                TProtocolUtil.skip(iprot, field.type);
-
 
4856
              }
-
 
4857
              break;
-
 
4858
            case WAREHOUSE_ID:
-
 
4859
              if (field.type == TType.I64) {
-
 
4860
                this.warehouseId = iprot.readI64();
-
 
4861
                setWarehouseIdIsSet(true);
-
 
4862
              } else { 
-
 
4863
                TProtocolUtil.skip(iprot, field.type);
-
 
4864
              }
-
 
4865
              break;
-
 
4866
          }
-
 
4867
          iprot.readFieldEnd();
-
 
4868
        }
-
 
4869
      }
-
 
4870
      iprot.readStructEnd();
-
 
4871
      validate();
-
 
4872
    }
-
 
4873
 
-
 
4874
    public void write(TProtocol oprot) throws TException {
-
 
4875
      validate();
-
 
4876
 
-
 
4877
      oprot.writeStructBegin(STRUCT_DESC);
-
 
4878
      if (this.username != null) {
-
 
4879
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
-
 
4880
        oprot.writeString(this.username);
-
 
4881
        oprot.writeFieldEnd();
-
 
4882
      }
-
 
4883
      if (this.password != null) {
-
 
4884
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
-
 
4885
        oprot.writeString(this.password);
-
 
4886
        oprot.writeFieldEnd();
-
 
4887
      }
-
 
4888
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
4889
      oprot.writeI64(this.warehouseId);
-
 
4890
      oprot.writeFieldEnd();
-
 
4891
      oprot.writeFieldStop();
-
 
4892
      oprot.writeStructEnd();
-
 
4893
    }
-
 
4894
 
-
 
4895
    @Override
-
 
4896
    public String toString() {
-
 
4897
      StringBuilder sb = new StringBuilder("addUser_args(");
-
 
4898
      boolean first = true;
-
 
4899
 
-
 
4900
      sb.append("username:");
-
 
4901
      if (this.username == null) {
-
 
4902
        sb.append("null");
-
 
4903
      } else {
-
 
4904
        sb.append(this.username);
-
 
4905
      }
-
 
4906
      first = false;
-
 
4907
      if (!first) sb.append(", ");
-
 
4908
      sb.append("password:");
-
 
4909
      if (this.password == null) {
-
 
4910
        sb.append("null");
-
 
4911
      } else {
-
 
4912
        sb.append(this.password);
-
 
4913
      }
-
 
4914
      first = false;
-
 
4915
      if (!first) sb.append(", ");
-
 
4916
      sb.append("warehouseId:");
-
 
4917
      sb.append(this.warehouseId);
-
 
4918
      first = false;
-
 
4919
      sb.append(")");
-
 
4920
      return sb.toString();
-
 
4921
    }
-
 
4922
 
-
 
4923
    public void validate() throws TException {
-
 
4924
      // check for required fields
-
 
4925
    }
-
 
4926
 
-
 
4927
  }
-
 
4928
 
-
 
4929
  public static class addUser_result implements TBase<addUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<addUser_result>   {
-
 
4930
    private static final TStruct STRUCT_DESC = new TStruct("addUser_result");
-
 
4931
 
-
 
4932
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
-
 
4933
    private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);
-
 
4934
 
-
 
4935
    private boolean success;
-
 
4936
    private HelperServiceException se;
-
 
4937
 
-
 
4938
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
4939
    public enum _Fields implements TFieldIdEnum {
-
 
4940
      SUCCESS((short)0, "success"),
-
 
4941
      SE((short)1, "se");
-
 
4942
 
-
 
4943
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
4944
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
4945
 
-
 
4946
      static {
-
 
4947
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
4948
          byId.put((int)field._thriftId, field);
-
 
4949
          byName.put(field.getFieldName(), field);
-
 
4950
        }
-
 
4951
      }
-
 
4952
 
-
 
4953
      /**
-
 
4954
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
4955
       */
-
 
4956
      public static _Fields findByThriftId(int fieldId) {
-
 
4957
        return byId.get(fieldId);
-
 
4958
      }
-
 
4959
 
-
 
4960
      /**
-
 
4961
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
4962
       * if it is not found.
-
 
4963
       */
-
 
4964
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
4965
        _Fields fields = findByThriftId(fieldId);
-
 
4966
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
4967
        return fields;
-
 
4968
      }
-
 
4969
 
-
 
4970
      /**
-
 
4971
       * Find the _Fields constant that matches name, or null if its not found.
-
 
4972
       */
-
 
4973
      public static _Fields findByName(String name) {
-
 
4974
        return byName.get(name);
-
 
4975
      }
-
 
4976
 
-
 
4977
      private final short _thriftId;
-
 
4978
      private final String _fieldName;
-
 
4979
 
-
 
4980
      _Fields(short thriftId, String fieldName) {
-
 
4981
        _thriftId = thriftId;
-
 
4982
        _fieldName = fieldName;
-
 
4983
      }
-
 
4984
 
-
 
4985
      public short getThriftFieldId() {
-
 
4986
        return _thriftId;
-
 
4987
      }
-
 
4988
 
-
 
4989
      public String getFieldName() {
-
 
4990
        return _fieldName;
-
 
4991
      }
-
 
4992
    }
-
 
4993
 
-
 
4994
    // isset id assignments
-
 
4995
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
4996
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
4997
 
-
 
4998
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
4999
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
5000
          new FieldValueMetaData(TType.BOOL)));
-
 
5001
      put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT, 
-
 
5002
          new FieldValueMetaData(TType.STRUCT)));
-
 
5003
    }});
-
 
5004
 
-
 
5005
    static {
-
 
5006
      FieldMetaData.addStructMetaDataMap(addUser_result.class, metaDataMap);
-
 
5007
    }
-
 
5008
 
-
 
5009
    public addUser_result() {
-
 
5010
    }
-
 
5011
 
-
 
5012
    public addUser_result(
-
 
5013
      boolean success,
-
 
5014
      HelperServiceException se)
-
 
5015
    {
-
 
5016
      this();
-
 
5017
      this.success = success;
-
 
5018
      setSuccessIsSet(true);
-
 
5019
      this.se = se;
-
 
5020
    }
-
 
5021
 
-
 
5022
    /**
-
 
5023
     * Performs a deep copy on <i>other</i>.
-
 
5024
     */
-
 
5025
    public addUser_result(addUser_result other) {
-
 
5026
      __isset_bit_vector.clear();
-
 
5027
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
5028
      this.success = other.success;
-
 
5029
      if (other.isSetSe()) {
-
 
5030
        this.se = new HelperServiceException(other.se);
-
 
5031
      }
-
 
5032
    }
-
 
5033
 
-
 
5034
    public addUser_result deepCopy() {
-
 
5035
      return new addUser_result(this);
-
 
5036
    }
-
 
5037
 
-
 
5038
    @Deprecated
-
 
5039
    public addUser_result clone() {
-
 
5040
      return new addUser_result(this);
-
 
5041
    }
-
 
5042
 
-
 
5043
    public boolean isSuccess() {
-
 
5044
      return this.success;
-
 
5045
    }
-
 
5046
 
-
 
5047
    public addUser_result setSuccess(boolean success) {
-
 
5048
      this.success = success;
-
 
5049
      setSuccessIsSet(true);
-
 
5050
      return this;
-
 
5051
    }
-
 
5052
 
-
 
5053
    public void unsetSuccess() {
-
 
5054
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
5055
    }
-
 
5056
 
-
 
5057
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
5058
    public boolean isSetSuccess() {
-
 
5059
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
5060
    }
-
 
5061
 
-
 
5062
    public void setSuccessIsSet(boolean value) {
-
 
5063
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
5064
    }
-
 
5065
 
-
 
5066
    public HelperServiceException getSe() {
-
 
5067
      return this.se;
-
 
5068
    }
-
 
5069
 
-
 
5070
    public addUser_result setSe(HelperServiceException se) {
-
 
5071
      this.se = se;
-
 
5072
      return this;
-
 
5073
    }
-
 
5074
 
-
 
5075
    public void unsetSe() {
-
 
5076
      this.se = null;
-
 
5077
    }
-
 
5078
 
-
 
5079
    /** Returns true if field se is set (has been asigned a value) and false otherwise */
-
 
5080
    public boolean isSetSe() {
-
 
5081
      return this.se != null;
-
 
5082
    }
-
 
5083
 
-
 
5084
    public void setSeIsSet(boolean value) {
-
 
5085
      if (!value) {
-
 
5086
        this.se = null;
-
 
5087
      }
-
 
5088
    }
-
 
5089
 
-
 
5090
    public void setFieldValue(_Fields field, Object value) {
-
 
5091
      switch (field) {
-
 
5092
      case SUCCESS:
-
 
5093
        if (value == null) {
-
 
5094
          unsetSuccess();
-
 
5095
        } else {
-
 
5096
          setSuccess((Boolean)value);
-
 
5097
        }
-
 
5098
        break;
-
 
5099
 
-
 
5100
      case SE:
-
 
5101
        if (value == null) {
-
 
5102
          unsetSe();
-
 
5103
        } else {
-
 
5104
          setSe((HelperServiceException)value);
-
 
5105
        }
-
 
5106
        break;
-
 
5107
 
-
 
5108
      }
-
 
5109
    }
-
 
5110
 
-
 
5111
    public void setFieldValue(int fieldID, Object value) {
-
 
5112
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
5113
    }
-
 
5114
 
-
 
5115
    public Object getFieldValue(_Fields field) {
-
 
5116
      switch (field) {
-
 
5117
      case SUCCESS:
-
 
5118
        return new Boolean(isSuccess());
-
 
5119
 
-
 
5120
      case SE:
-
 
5121
        return getSe();
-
 
5122
 
-
 
5123
      }
-
 
5124
      throw new IllegalStateException();
-
 
5125
    }
-
 
5126
 
-
 
5127
    public Object getFieldValue(int fieldId) {
-
 
5128
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
5129
    }
-
 
5130
 
-
 
5131
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
5132
    public boolean isSet(_Fields field) {
-
 
5133
      switch (field) {
-
 
5134
      case SUCCESS:
-
 
5135
        return isSetSuccess();
-
 
5136
      case SE:
-
 
5137
        return isSetSe();
-
 
5138
      }
-
 
5139
      throw new IllegalStateException();
-
 
5140
    }
-
 
5141
 
-
 
5142
    public boolean isSet(int fieldID) {
-
 
5143
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
5144
    }
-
 
5145
 
-
 
5146
    @Override
-
 
5147
    public boolean equals(Object that) {
-
 
5148
      if (that == null)
-
 
5149
        return false;
-
 
5150
      if (that instanceof addUser_result)
-
 
5151
        return this.equals((addUser_result)that);
-
 
5152
      return false;
-
 
5153
    }
-
 
5154
 
-
 
5155
    public boolean equals(addUser_result that) {
-
 
5156
      if (that == null)
-
 
5157
        return false;
-
 
5158
 
-
 
5159
      boolean this_present_success = true;
-
 
5160
      boolean that_present_success = true;
-
 
5161
      if (this_present_success || that_present_success) {
-
 
5162
        if (!(this_present_success && that_present_success))
-
 
5163
          return false;
-
 
5164
        if (this.success != that.success)
-
 
5165
          return false;
-
 
5166
      }
-
 
5167
 
-
 
5168
      boolean this_present_se = true && this.isSetSe();
-
 
5169
      boolean that_present_se = true && that.isSetSe();
-
 
5170
      if (this_present_se || that_present_se) {
-
 
5171
        if (!(this_present_se && that_present_se))
-
 
5172
          return false;
-
 
5173
        if (!this.se.equals(that.se))
-
 
5174
          return false;
-
 
5175
      }
-
 
5176
 
-
 
5177
      return true;
-
 
5178
    }
-
 
5179
 
-
 
5180
    @Override
-
 
5181
    public int hashCode() {
-
 
5182
      return 0;
-
 
5183
    }
-
 
5184
 
-
 
5185
    public int compareTo(addUser_result other) {
-
 
5186
      if (!getClass().equals(other.getClass())) {
-
 
5187
        return getClass().getName().compareTo(other.getClass().getName());
-
 
5188
      }
-
 
5189
 
-
 
5190
      int lastComparison = 0;
-
 
5191
      addUser_result typedOther = (addUser_result)other;
-
 
5192
 
-
 
5193
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
5194
      if (lastComparison != 0) {
-
 
5195
        return lastComparison;
-
 
5196
      }
-
 
5197
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
5198
      if (lastComparison != 0) {
-
 
5199
        return lastComparison;
-
 
5200
      }
-
 
5201
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());
-
 
5202
      if (lastComparison != 0) {
-
 
5203
        return lastComparison;
-
 
5204
      }
-
 
5205
      lastComparison = TBaseHelper.compareTo(se, typedOther.se);
-
 
5206
      if (lastComparison != 0) {
-
 
5207
        return lastComparison;
-
 
5208
      }
-
 
5209
      return 0;
-
 
5210
    }
-
 
5211
 
-
 
5212
    public void read(TProtocol iprot) throws TException {
-
 
5213
      TField field;
-
 
5214
      iprot.readStructBegin();
-
 
5215
      while (true)
-
 
5216
      {
-
 
5217
        field = iprot.readFieldBegin();
-
 
5218
        if (field.type == TType.STOP) { 
-
 
5219
          break;
-
 
5220
        }
-
 
5221
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
5222
        if (fieldId == null) {
-
 
5223
          TProtocolUtil.skip(iprot, field.type);
-
 
5224
        } else {
-
 
5225
          switch (fieldId) {
-
 
5226
            case SUCCESS:
-
 
5227
              if (field.type == TType.BOOL) {
-
 
5228
                this.success = iprot.readBool();
-
 
5229
                setSuccessIsSet(true);
-
 
5230
              } else { 
-
 
5231
                TProtocolUtil.skip(iprot, field.type);
-
 
5232
              }
-
 
5233
              break;
-
 
5234
            case SE:
-
 
5235
              if (field.type == TType.STRUCT) {
-
 
5236
                this.se = new HelperServiceException();
-
 
5237
                this.se.read(iprot);
-
 
5238
              } else { 
-
 
5239
                TProtocolUtil.skip(iprot, field.type);
-
 
5240
              }
-
 
5241
              break;
-
 
5242
          }
-
 
5243
          iprot.readFieldEnd();
-
 
5244
        }
-
 
5245
      }
-
 
5246
      iprot.readStructEnd();
-
 
5247
      validate();
-
 
5248
    }
-
 
5249
 
-
 
5250
    public void write(TProtocol oprot) throws TException {
-
 
5251
      oprot.writeStructBegin(STRUCT_DESC);
-
 
5252
 
-
 
5253
      if (this.isSetSuccess()) {
-
 
5254
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
5255
        oprot.writeBool(this.success);
-
 
5256
        oprot.writeFieldEnd();
-
 
5257
      } else if (this.isSetSe()) {
-
 
5258
        oprot.writeFieldBegin(SE_FIELD_DESC);
-
 
5259
        this.se.write(oprot);
-
 
5260
        oprot.writeFieldEnd();
-
 
5261
      }
-
 
5262
      oprot.writeFieldStop();
-
 
5263
      oprot.writeStructEnd();
-
 
5264
    }
-
 
5265
 
-
 
5266
    @Override
-
 
5267
    public String toString() {
-
 
5268
      StringBuilder sb = new StringBuilder("addUser_result(");
-
 
5269
      boolean first = true;
-
 
5270
 
-
 
5271
      sb.append("success:");
-
 
5272
      sb.append(this.success);
-
 
5273
      first = false;
-
 
5274
      if (!first) sb.append(", ");
-
 
5275
      sb.append("se:");
-
 
5276
      if (this.se == null) {
-
 
5277
        sb.append("null");
-
 
5278
      } else {
-
 
5279
        sb.append(this.se);
-
 
5280
      }
-
 
5281
      first = false;
-
 
5282
      sb.append(")");
-
 
5283
      return sb.toString();
-
 
5284
    }
-
 
5285
 
-
 
5286
    public void validate() throws TException {
-
 
5287
      // check for required fields
-
 
5288
    }
-
 
5289
 
-
 
5290
  }
-
 
5291
 
-
 
5292
  public static class deleteUser_args implements TBase<deleteUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<deleteUser_args>   {
-
 
5293
    private static final TStruct STRUCT_DESC = new TStruct("deleteUser_args");
-
 
5294
 
-
 
5295
    private static final TField USERNAME_FIELD_DESC = new TField("username", TType.STRING, (short)1);
-
 
5296
 
-
 
5297
    private String username;
-
 
5298
 
-
 
5299
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
5300
    public enum _Fields implements TFieldIdEnum {
-
 
5301
      USERNAME((short)1, "username");
-
 
5302
 
-
 
5303
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
5304
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
5305
 
-
 
5306
      static {
-
 
5307
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
5308
          byId.put((int)field._thriftId, field);
-
 
5309
          byName.put(field.getFieldName(), field);
-
 
5310
        }
-
 
5311
      }
-
 
5312
 
-
 
5313
      /**
-
 
5314
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
5315
       */
-
 
5316
      public static _Fields findByThriftId(int fieldId) {
-
 
5317
        return byId.get(fieldId);
-
 
5318
      }
-
 
5319
 
-
 
5320
      /**
-
 
5321
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
5322
       * if it is not found.
-
 
5323
       */
-
 
5324
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
5325
        _Fields fields = findByThriftId(fieldId);
-
 
5326
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
5327
        return fields;
-
 
5328
      }
-
 
5329
 
-
 
5330
      /**
-
 
5331
       * Find the _Fields constant that matches name, or null if its not found.
-
 
5332
       */
-
 
5333
      public static _Fields findByName(String name) {
-
 
5334
        return byName.get(name);
-
 
5335
      }
-
 
5336
 
-
 
5337
      private final short _thriftId;
-
 
5338
      private final String _fieldName;
-
 
5339
 
-
 
5340
      _Fields(short thriftId, String fieldName) {
-
 
5341
        _thriftId = thriftId;
-
 
5342
        _fieldName = fieldName;
-
 
5343
      }
-
 
5344
 
-
 
5345
      public short getThriftFieldId() {
-
 
5346
        return _thriftId;
-
 
5347
      }
-
 
5348
 
-
 
5349
      public String getFieldName() {
-
 
5350
        return _fieldName;
-
 
5351
      }
-
 
5352
    }
-
 
5353
 
-
 
5354
    // isset id assignments
-
 
5355
 
-
 
5356
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
5357
      put(_Fields.USERNAME, new FieldMetaData("username", TFieldRequirementType.DEFAULT, 
-
 
5358
          new FieldValueMetaData(TType.STRING)));
-
 
5359
    }});
-
 
5360
 
-
 
5361
    static {
-
 
5362
      FieldMetaData.addStructMetaDataMap(deleteUser_args.class, metaDataMap);
-
 
5363
    }
-
 
5364
 
-
 
5365
    public deleteUser_args() {
-
 
5366
    }
-
 
5367
 
-
 
5368
    public deleteUser_args(
-
 
5369
      String username)
-
 
5370
    {
-
 
5371
      this();
-
 
5372
      this.username = username;
-
 
5373
    }
-
 
5374
 
-
 
5375
    /**
-
 
5376
     * Performs a deep copy on <i>other</i>.
-
 
5377
     */
-
 
5378
    public deleteUser_args(deleteUser_args other) {
-
 
5379
      if (other.isSetUsername()) {
-
 
5380
        this.username = other.username;
-
 
5381
      }
-
 
5382
    }
-
 
5383
 
-
 
5384
    public deleteUser_args deepCopy() {
-
 
5385
      return new deleteUser_args(this);
-
 
5386
    }
-
 
5387
 
-
 
5388
    @Deprecated
-
 
5389
    public deleteUser_args clone() {
-
 
5390
      return new deleteUser_args(this);
-
 
5391
    }
-
 
5392
 
-
 
5393
    public String getUsername() {
-
 
5394
      return this.username;
-
 
5395
    }
-
 
5396
 
-
 
5397
    public deleteUser_args setUsername(String username) {
-
 
5398
      this.username = username;
-
 
5399
      return this;
-
 
5400
    }
-
 
5401
 
-
 
5402
    public void unsetUsername() {
-
 
5403
      this.username = null;
-
 
5404
    }
-
 
5405
 
-
 
5406
    /** Returns true if field username is set (has been asigned a value) and false otherwise */
-
 
5407
    public boolean isSetUsername() {
-
 
5408
      return this.username != null;
-
 
5409
    }
-
 
5410
 
-
 
5411
    public void setUsernameIsSet(boolean value) {
-
 
5412
      if (!value) {
-
 
5413
        this.username = null;
-
 
5414
      }
-
 
5415
    }
-
 
5416
 
-
 
5417
    public void setFieldValue(_Fields field, Object value) {
-
 
5418
      switch (field) {
-
 
5419
      case USERNAME:
-
 
5420
        if (value == null) {
-
 
5421
          unsetUsername();
-
 
5422
        } else {
-
 
5423
          setUsername((String)value);
-
 
5424
        }
-
 
5425
        break;
-
 
5426
 
-
 
5427
      }
-
 
5428
    }
-
 
5429
 
-
 
5430
    public void setFieldValue(int fieldID, Object value) {
-
 
5431
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
5432
    }
-
 
5433
 
-
 
5434
    public Object getFieldValue(_Fields field) {
-
 
5435
      switch (field) {
-
 
5436
      case USERNAME:
-
 
5437
        return getUsername();
-
 
5438
 
-
 
5439
      }
-
 
5440
      throw new IllegalStateException();
-
 
5441
    }
-
 
5442
 
-
 
5443
    public Object getFieldValue(int fieldId) {
-
 
5444
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
5445
    }
-
 
5446
 
-
 
5447
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
5448
    public boolean isSet(_Fields field) {
-
 
5449
      switch (field) {
-
 
5450
      case USERNAME:
-
 
5451
        return isSetUsername();
-
 
5452
      }
-
 
5453
      throw new IllegalStateException();
-
 
5454
    }
-
 
5455
 
-
 
5456
    public boolean isSet(int fieldID) {
-
 
5457
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
5458
    }
-
 
5459
 
-
 
5460
    @Override
-
 
5461
    public boolean equals(Object that) {
-
 
5462
      if (that == null)
-
 
5463
        return false;
-
 
5464
      if (that instanceof deleteUser_args)
-
 
5465
        return this.equals((deleteUser_args)that);
-
 
5466
      return false;
-
 
5467
    }
-
 
5468
 
-
 
5469
    public boolean equals(deleteUser_args that) {
-
 
5470
      if (that == null)
-
 
5471
        return false;
-
 
5472
 
-
 
5473
      boolean this_present_username = true && this.isSetUsername();
-
 
5474
      boolean that_present_username = true && that.isSetUsername();
-
 
5475
      if (this_present_username || that_present_username) {
-
 
5476
        if (!(this_present_username && that_present_username))
-
 
5477
          return false;
-
 
5478
        if (!this.username.equals(that.username))
-
 
5479
          return false;
-
 
5480
      }
-
 
5481
 
-
 
5482
      return true;
-
 
5483
    }
-
 
5484
 
-
 
5485
    @Override
-
 
5486
    public int hashCode() {
-
 
5487
      return 0;
-
 
5488
    }
-
 
5489
 
-
 
5490
    public int compareTo(deleteUser_args other) {
-
 
5491
      if (!getClass().equals(other.getClass())) {
-
 
5492
        return getClass().getName().compareTo(other.getClass().getName());
-
 
5493
      }
-
 
5494
 
-
 
5495
      int lastComparison = 0;
-
 
5496
      deleteUser_args typedOther = (deleteUser_args)other;
-
 
5497
 
-
 
5498
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(isSetUsername());
-
 
5499
      if (lastComparison != 0) {
-
 
5500
        return lastComparison;
-
 
5501
      }
-
 
5502
      lastComparison = TBaseHelper.compareTo(username, typedOther.username);
-
 
5503
      if (lastComparison != 0) {
-
 
5504
        return lastComparison;
-
 
5505
      }
-
 
5506
      return 0;
-
 
5507
    }
-
 
5508
 
-
 
5509
    public void read(TProtocol iprot) throws TException {
-
 
5510
      TField field;
-
 
5511
      iprot.readStructBegin();
-
 
5512
      while (true)
-
 
5513
      {
-
 
5514
        field = iprot.readFieldBegin();
-
 
5515
        if (field.type == TType.STOP) { 
-
 
5516
          break;
-
 
5517
        }
-
 
5518
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
5519
        if (fieldId == null) {
-
 
5520
          TProtocolUtil.skip(iprot, field.type);
-
 
5521
        } else {
-
 
5522
          switch (fieldId) {
-
 
5523
            case USERNAME:
-
 
5524
              if (field.type == TType.STRING) {
-
 
5525
                this.username = iprot.readString();
-
 
5526
              } else { 
-
 
5527
                TProtocolUtil.skip(iprot, field.type);
-
 
5528
              }
-
 
5529
              break;
-
 
5530
          }
-
 
5531
          iprot.readFieldEnd();
-
 
5532
        }
-
 
5533
      }
-
 
5534
      iprot.readStructEnd();
-
 
5535
      validate();
-
 
5536
    }
-
 
5537
 
-
 
5538
    public void write(TProtocol oprot) throws TException {
-
 
5539
      validate();
-
 
5540
 
-
 
5541
      oprot.writeStructBegin(STRUCT_DESC);
-
 
5542
      if (this.username != null) {
-
 
5543
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
-
 
5544
        oprot.writeString(this.username);
-
 
5545
        oprot.writeFieldEnd();
-
 
5546
      }
-
 
5547
      oprot.writeFieldStop();
-
 
5548
      oprot.writeStructEnd();
-
 
5549
    }
-
 
5550
 
-
 
5551
    @Override
-
 
5552
    public String toString() {
-
 
5553
      StringBuilder sb = new StringBuilder("deleteUser_args(");
-
 
5554
      boolean first = true;
-
 
5555
 
-
 
5556
      sb.append("username:");
-
 
5557
      if (this.username == null) {
-
 
5558
        sb.append("null");
-
 
5559
      } else {
-
 
5560
        sb.append(this.username);
-
 
5561
      }
-
 
5562
      first = false;
-
 
5563
      sb.append(")");
-
 
5564
      return sb.toString();
-
 
5565
    }
-
 
5566
 
-
 
5567
    public void validate() throws TException {
-
 
5568
      // check for required fields
-
 
5569
    }
-
 
5570
 
-
 
5571
  }
-
 
5572
 
-
 
5573
  public static class deleteUser_result implements TBase<deleteUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<deleteUser_result>   {
-
 
5574
    private static final TStruct STRUCT_DESC = new TStruct("deleteUser_result");
-
 
5575
 
-
 
5576
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
-
 
5577
    private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);
-
 
5578
 
-
 
5579
    private boolean success;
-
 
5580
    private HelperServiceException se;
-
 
5581
 
-
 
5582
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
5583
    public enum _Fields implements TFieldIdEnum {
-
 
5584
      SUCCESS((short)0, "success"),
-
 
5585
      SE((short)1, "se");
-
 
5586
 
-
 
5587
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
5588
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
5589
 
-
 
5590
      static {
-
 
5591
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
5592
          byId.put((int)field._thriftId, field);
-
 
5593
          byName.put(field.getFieldName(), field);
-
 
5594
        }
-
 
5595
      }
-
 
5596
 
-
 
5597
      /**
-
 
5598
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
5599
       */
-
 
5600
      public static _Fields findByThriftId(int fieldId) {
-
 
5601
        return byId.get(fieldId);
-
 
5602
      }
-
 
5603
 
-
 
5604
      /**
-
 
5605
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
5606
       * if it is not found.
-
 
5607
       */
-
 
5608
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
5609
        _Fields fields = findByThriftId(fieldId);
-
 
5610
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
5611
        return fields;
-
 
5612
      }
-
 
5613
 
-
 
5614
      /**
-
 
5615
       * Find the _Fields constant that matches name, or null if its not found.
-
 
5616
       */
-
 
5617
      public static _Fields findByName(String name) {
-
 
5618
        return byName.get(name);
-
 
5619
      }
-
 
5620
 
-
 
5621
      private final short _thriftId;
-
 
5622
      private final String _fieldName;
-
 
5623
 
-
 
5624
      _Fields(short thriftId, String fieldName) {
-
 
5625
        _thriftId = thriftId;
-
 
5626
        _fieldName = fieldName;
-
 
5627
      }
-
 
5628
 
-
 
5629
      public short getThriftFieldId() {
-
 
5630
        return _thriftId;
-
 
5631
      }
-
 
5632
 
-
 
5633
      public String getFieldName() {
-
 
5634
        return _fieldName;
-
 
5635
      }
-
 
5636
    }
-
 
5637
 
-
 
5638
    // isset id assignments
-
 
5639
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
5640
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
5641
 
-
 
5642
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
5643
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
5644
          new FieldValueMetaData(TType.BOOL)));
-
 
5645
      put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT, 
-
 
5646
          new FieldValueMetaData(TType.STRUCT)));
-
 
5647
    }});
-
 
5648
 
-
 
5649
    static {
-
 
5650
      FieldMetaData.addStructMetaDataMap(deleteUser_result.class, metaDataMap);
-
 
5651
    }
-
 
5652
 
-
 
5653
    public deleteUser_result() {
-
 
5654
    }
-
 
5655
 
-
 
5656
    public deleteUser_result(
-
 
5657
      boolean success,
-
 
5658
      HelperServiceException se)
-
 
5659
    {
-
 
5660
      this();
-
 
5661
      this.success = success;
-
 
5662
      setSuccessIsSet(true);
-
 
5663
      this.se = se;
-
 
5664
    }
-
 
5665
 
-
 
5666
    /**
-
 
5667
     * Performs a deep copy on <i>other</i>.
-
 
5668
     */
-
 
5669
    public deleteUser_result(deleteUser_result other) {
-
 
5670
      __isset_bit_vector.clear();
-
 
5671
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
5672
      this.success = other.success;
-
 
5673
      if (other.isSetSe()) {
-
 
5674
        this.se = new HelperServiceException(other.se);
-
 
5675
      }
-
 
5676
    }
-
 
5677
 
-
 
5678
    public deleteUser_result deepCopy() {
-
 
5679
      return new deleteUser_result(this);
-
 
5680
    }
-
 
5681
 
-
 
5682
    @Deprecated
-
 
5683
    public deleteUser_result clone() {
-
 
5684
      return new deleteUser_result(this);
-
 
5685
    }
-
 
5686
 
-
 
5687
    public boolean isSuccess() {
-
 
5688
      return this.success;
-
 
5689
    }
-
 
5690
 
-
 
5691
    public deleteUser_result setSuccess(boolean success) {
-
 
5692
      this.success = success;
-
 
5693
      setSuccessIsSet(true);
-
 
5694
      return this;
-
 
5695
    }
-
 
5696
 
-
 
5697
    public void unsetSuccess() {
-
 
5698
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
5699
    }
-
 
5700
 
-
 
5701
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
5702
    public boolean isSetSuccess() {
-
 
5703
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
5704
    }
-
 
5705
 
-
 
5706
    public void setSuccessIsSet(boolean value) {
-
 
5707
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
5708
    }
-
 
5709
 
-
 
5710
    public HelperServiceException getSe() {
-
 
5711
      return this.se;
-
 
5712
    }
-
 
5713
 
-
 
5714
    public deleteUser_result setSe(HelperServiceException se) {
-
 
5715
      this.se = se;
-
 
5716
      return this;
-
 
5717
    }
-
 
5718
 
-
 
5719
    public void unsetSe() {
-
 
5720
      this.se = null;
-
 
5721
    }
-
 
5722
 
-
 
5723
    /** Returns true if field se is set (has been asigned a value) and false otherwise */
-
 
5724
    public boolean isSetSe() {
-
 
5725
      return this.se != null;
-
 
5726
    }
-
 
5727
 
-
 
5728
    public void setSeIsSet(boolean value) {
-
 
5729
      if (!value) {
-
 
5730
        this.se = null;
-
 
5731
      }
-
 
5732
    }
-
 
5733
 
-
 
5734
    public void setFieldValue(_Fields field, Object value) {
-
 
5735
      switch (field) {
-
 
5736
      case SUCCESS:
-
 
5737
        if (value == null) {
-
 
5738
          unsetSuccess();
-
 
5739
        } else {
-
 
5740
          setSuccess((Boolean)value);
-
 
5741
        }
-
 
5742
        break;
-
 
5743
 
-
 
5744
      case SE:
-
 
5745
        if (value == null) {
-
 
5746
          unsetSe();
-
 
5747
        } else {
-
 
5748
          setSe((HelperServiceException)value);
-
 
5749
        }
-
 
5750
        break;
-
 
5751
 
-
 
5752
      }
-
 
5753
    }
-
 
5754
 
-
 
5755
    public void setFieldValue(int fieldID, Object value) {
-
 
5756
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
5757
    }
-
 
5758
 
-
 
5759
    public Object getFieldValue(_Fields field) {
-
 
5760
      switch (field) {
-
 
5761
      case SUCCESS:
-
 
5762
        return new Boolean(isSuccess());
-
 
5763
 
-
 
5764
      case SE:
-
 
5765
        return getSe();
-
 
5766
 
-
 
5767
      }
-
 
5768
      throw new IllegalStateException();
-
 
5769
    }
-
 
5770
 
-
 
5771
    public Object getFieldValue(int fieldId) {
-
 
5772
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
5773
    }
-
 
5774
 
-
 
5775
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
5776
    public boolean isSet(_Fields field) {
-
 
5777
      switch (field) {
-
 
5778
      case SUCCESS:
-
 
5779
        return isSetSuccess();
-
 
5780
      case SE:
-
 
5781
        return isSetSe();
-
 
5782
      }
-
 
5783
      throw new IllegalStateException();
-
 
5784
    }
-
 
5785
 
-
 
5786
    public boolean isSet(int fieldID) {
-
 
5787
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
5788
    }
-
 
5789
 
-
 
5790
    @Override
-
 
5791
    public boolean equals(Object that) {
-
 
5792
      if (that == null)
-
 
5793
        return false;
-
 
5794
      if (that instanceof deleteUser_result)
-
 
5795
        return this.equals((deleteUser_result)that);
-
 
5796
      return false;
-
 
5797
    }
-
 
5798
 
-
 
5799
    public boolean equals(deleteUser_result that) {
-
 
5800
      if (that == null)
-
 
5801
        return false;
-
 
5802
 
-
 
5803
      boolean this_present_success = true;
-
 
5804
      boolean that_present_success = true;
-
 
5805
      if (this_present_success || that_present_success) {
-
 
5806
        if (!(this_present_success && that_present_success))
-
 
5807
          return false;
-
 
5808
        if (this.success != that.success)
-
 
5809
          return false;
-
 
5810
      }
-
 
5811
 
-
 
5812
      boolean this_present_se = true && this.isSetSe();
-
 
5813
      boolean that_present_se = true && that.isSetSe();
-
 
5814
      if (this_present_se || that_present_se) {
-
 
5815
        if (!(this_present_se && that_present_se))
-
 
5816
          return false;
-
 
5817
        if (!this.se.equals(that.se))
-
 
5818
          return false;
-
 
5819
      }
-
 
5820
 
-
 
5821
      return true;
-
 
5822
    }
-
 
5823
 
-
 
5824
    @Override
-
 
5825
    public int hashCode() {
-
 
5826
      return 0;
-
 
5827
    }
-
 
5828
 
-
 
5829
    public int compareTo(deleteUser_result other) {
-
 
5830
      if (!getClass().equals(other.getClass())) {
-
 
5831
        return getClass().getName().compareTo(other.getClass().getName());
-
 
5832
      }
-
 
5833
 
-
 
5834
      int lastComparison = 0;
-
 
5835
      deleteUser_result typedOther = (deleteUser_result)other;
-
 
5836
 
-
 
5837
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
5838
      if (lastComparison != 0) {
-
 
5839
        return lastComparison;
-
 
5840
      }
-
 
5841
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
5842
      if (lastComparison != 0) {
-
 
5843
        return lastComparison;
-
 
5844
      }
-
 
5845
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());
-
 
5846
      if (lastComparison != 0) {
-
 
5847
        return lastComparison;
-
 
5848
      }
-
 
5849
      lastComparison = TBaseHelper.compareTo(se, typedOther.se);
-
 
5850
      if (lastComparison != 0) {
-
 
5851
        return lastComparison;
-
 
5852
      }
-
 
5853
      return 0;
-
 
5854
    }
-
 
5855
 
-
 
5856
    public void read(TProtocol iprot) throws TException {
-
 
5857
      TField field;
-
 
5858
      iprot.readStructBegin();
-
 
5859
      while (true)
-
 
5860
      {
-
 
5861
        field = iprot.readFieldBegin();
-
 
5862
        if (field.type == TType.STOP) { 
-
 
5863
          break;
-
 
5864
        }
-
 
5865
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
5866
        if (fieldId == null) {
-
 
5867
          TProtocolUtil.skip(iprot, field.type);
-
 
5868
        } else {
-
 
5869
          switch (fieldId) {
-
 
5870
            case SUCCESS:
-
 
5871
              if (field.type == TType.BOOL) {
-
 
5872
                this.success = iprot.readBool();
-
 
5873
                setSuccessIsSet(true);
-
 
5874
              } else { 
-
 
5875
                TProtocolUtil.skip(iprot, field.type);
-
 
5876
              }
-
 
5877
              break;
-
 
5878
            case SE:
-
 
5879
              if (field.type == TType.STRUCT) {
-
 
5880
                this.se = new HelperServiceException();
-
 
5881
                this.se.read(iprot);
-
 
5882
              } else { 
-
 
5883
                TProtocolUtil.skip(iprot, field.type);
-
 
5884
              }
-
 
5885
              break;
-
 
5886
          }
-
 
5887
          iprot.readFieldEnd();
-
 
5888
        }
-
 
5889
      }
-
 
5890
      iprot.readStructEnd();
-
 
5891
      validate();
-
 
5892
    }
-
 
5893
 
-
 
5894
    public void write(TProtocol oprot) throws TException {
-
 
5895
      oprot.writeStructBegin(STRUCT_DESC);
-
 
5896
 
-
 
5897
      if (this.isSetSuccess()) {
-
 
5898
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
5899
        oprot.writeBool(this.success);
-
 
5900
        oprot.writeFieldEnd();
-
 
5901
      } else if (this.isSetSe()) {
-
 
5902
        oprot.writeFieldBegin(SE_FIELD_DESC);
-
 
5903
        this.se.write(oprot);
-
 
5904
        oprot.writeFieldEnd();
-
 
5905
      }
-
 
5906
      oprot.writeFieldStop();
-
 
5907
      oprot.writeStructEnd();
-
 
5908
    }
-
 
5909
 
-
 
5910
    @Override
-
 
5911
    public String toString() {
-
 
5912
      StringBuilder sb = new StringBuilder("deleteUser_result(");
-
 
5913
      boolean first = true;
-
 
5914
 
-
 
5915
      sb.append("success:");
-
 
5916
      sb.append(this.success);
-
 
5917
      first = false;
-
 
5918
      if (!first) sb.append(", ");
-
 
5919
      sb.append("se:");
-
 
5920
      if (this.se == null) {
-
 
5921
        sb.append("null");
-
 
5922
      } else {
-
 
5923
        sb.append(this.se);
-
 
5924
      }
-
 
5925
      first = false;
-
 
5926
      sb.append(")");
-
 
5927
      return sb.toString();
-
 
5928
    }
-
 
5929
 
-
 
5930
    public void validate() throws TException {
-
 
5931
      // check for required fields
-
 
5932
    }
-
 
5933
 
-
 
5934
  }
-
 
5935
 
-
 
5936
  public static class authenticateUser_args implements TBase<authenticateUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<authenticateUser_args>   {
-
 
5937
    private static final TStruct STRUCT_DESC = new TStruct("authenticateUser_args");
-
 
5938
 
-
 
5939
    private static final TField USERNAME_FIELD_DESC = new TField("username", TType.STRING, (short)1);
-
 
5940
    private static final TField PASSWORD_FIELD_DESC = new TField("password", TType.STRING, (short)2);
-
 
5941
 
-
 
5942
    private String username;
-
 
5943
    private String password;
-
 
5944
 
-
 
5945
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
5946
    public enum _Fields implements TFieldIdEnum {
-
 
5947
      USERNAME((short)1, "username"),
-
 
5948
      PASSWORD((short)2, "password");
-
 
5949
 
-
 
5950
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
5951
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
5952
 
-
 
5953
      static {
-
 
5954
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
5955
          byId.put((int)field._thriftId, field);
-
 
5956
          byName.put(field.getFieldName(), field);
-
 
5957
        }
-
 
5958
      }
-
 
5959
 
-
 
5960
      /**
-
 
5961
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
5962
       */
-
 
5963
      public static _Fields findByThriftId(int fieldId) {
-
 
5964
        return byId.get(fieldId);
-
 
5965
      }
-
 
5966
 
-
 
5967
      /**
-
 
5968
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
5969
       * if it is not found.
-
 
5970
       */
-
 
5971
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
5972
        _Fields fields = findByThriftId(fieldId);
-
 
5973
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
5974
        return fields;
-
 
5975
      }
-
 
5976
 
-
 
5977
      /**
-
 
5978
       * Find the _Fields constant that matches name, or null if its not found.
-
 
5979
       */
-
 
5980
      public static _Fields findByName(String name) {
-
 
5981
        return byName.get(name);
-
 
5982
      }
-
 
5983
 
-
 
5984
      private final short _thriftId;
-
 
5985
      private final String _fieldName;
-
 
5986
 
-
 
5987
      _Fields(short thriftId, String fieldName) {
-
 
5988
        _thriftId = thriftId;
-
 
5989
        _fieldName = fieldName;
-
 
5990
      }
-
 
5991
 
-
 
5992
      public short getThriftFieldId() {
-
 
5993
        return _thriftId;
-
 
5994
      }
-
 
5995
 
-
 
5996
      public String getFieldName() {
-
 
5997
        return _fieldName;
-
 
5998
      }
-
 
5999
    }
-
 
6000
 
-
 
6001
    // isset id assignments
-
 
6002
 
-
 
6003
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
6004
      put(_Fields.USERNAME, new FieldMetaData("username", TFieldRequirementType.DEFAULT, 
-
 
6005
          new FieldValueMetaData(TType.STRING)));
-
 
6006
      put(_Fields.PASSWORD, new FieldMetaData("password", TFieldRequirementType.DEFAULT, 
-
 
6007
          new FieldValueMetaData(TType.STRING)));
-
 
6008
    }});
-
 
6009
 
-
 
6010
    static {
-
 
6011
      FieldMetaData.addStructMetaDataMap(authenticateUser_args.class, metaDataMap);
-
 
6012
    }
-
 
6013
 
-
 
6014
    public authenticateUser_args() {
-
 
6015
    }
-
 
6016
 
-
 
6017
    public authenticateUser_args(
-
 
6018
      String username,
-
 
6019
      String password)
-
 
6020
    {
-
 
6021
      this();
-
 
6022
      this.username = username;
-
 
6023
      this.password = password;
-
 
6024
    }
-
 
6025
 
-
 
6026
    /**
-
 
6027
     * Performs a deep copy on <i>other</i>.
-
 
6028
     */
-
 
6029
    public authenticateUser_args(authenticateUser_args other) {
-
 
6030
      if (other.isSetUsername()) {
-
 
6031
        this.username = other.username;
-
 
6032
      }
-
 
6033
      if (other.isSetPassword()) {
-
 
6034
        this.password = other.password;
-
 
6035
      }
-
 
6036
    }
-
 
6037
 
-
 
6038
    public authenticateUser_args deepCopy() {
-
 
6039
      return new authenticateUser_args(this);
-
 
6040
    }
-
 
6041
 
-
 
6042
    @Deprecated
-
 
6043
    public authenticateUser_args clone() {
-
 
6044
      return new authenticateUser_args(this);
-
 
6045
    }
-
 
6046
 
-
 
6047
    public String getUsername() {
-
 
6048
      return this.username;
-
 
6049
    }
-
 
6050
 
-
 
6051
    public authenticateUser_args setUsername(String username) {
-
 
6052
      this.username = username;
-
 
6053
      return this;
-
 
6054
    }
-
 
6055
 
-
 
6056
    public void unsetUsername() {
-
 
6057
      this.username = null;
-
 
6058
    }
-
 
6059
 
-
 
6060
    /** Returns true if field username is set (has been asigned a value) and false otherwise */
-
 
6061
    public boolean isSetUsername() {
-
 
6062
      return this.username != null;
-
 
6063
    }
-
 
6064
 
-
 
6065
    public void setUsernameIsSet(boolean value) {
-
 
6066
      if (!value) {
-
 
6067
        this.username = null;
-
 
6068
      }
-
 
6069
    }
-
 
6070
 
-
 
6071
    public String getPassword() {
-
 
6072
      return this.password;
-
 
6073
    }
-
 
6074
 
-
 
6075
    public authenticateUser_args setPassword(String password) {
-
 
6076
      this.password = password;
-
 
6077
      return this;
-
 
6078
    }
-
 
6079
 
-
 
6080
    public void unsetPassword() {
-
 
6081
      this.password = null;
-
 
6082
    }
-
 
6083
 
-
 
6084
    /** Returns true if field password is set (has been asigned a value) and false otherwise */
-
 
6085
    public boolean isSetPassword() {
-
 
6086
      return this.password != null;
-
 
6087
    }
-
 
6088
 
-
 
6089
    public void setPasswordIsSet(boolean value) {
-
 
6090
      if (!value) {
-
 
6091
        this.password = null;
-
 
6092
      }
-
 
6093
    }
-
 
6094
 
-
 
6095
    public void setFieldValue(_Fields field, Object value) {
-
 
6096
      switch (field) {
-
 
6097
      case USERNAME:
-
 
6098
        if (value == null) {
-
 
6099
          unsetUsername();
-
 
6100
        } else {
-
 
6101
          setUsername((String)value);
-
 
6102
        }
-
 
6103
        break;
-
 
6104
 
-
 
6105
      case PASSWORD:
-
 
6106
        if (value == null) {
-
 
6107
          unsetPassword();
-
 
6108
        } else {
-
 
6109
          setPassword((String)value);
-
 
6110
        }
-
 
6111
        break;
-
 
6112
 
-
 
6113
      }
-
 
6114
    }
-
 
6115
 
-
 
6116
    public void setFieldValue(int fieldID, Object value) {
-
 
6117
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
6118
    }
-
 
6119
 
-
 
6120
    public Object getFieldValue(_Fields field) {
-
 
6121
      switch (field) {
-
 
6122
      case USERNAME:
-
 
6123
        return getUsername();
-
 
6124
 
-
 
6125
      case PASSWORD:
-
 
6126
        return getPassword();
-
 
6127
 
-
 
6128
      }
-
 
6129
      throw new IllegalStateException();
-
 
6130
    }
-
 
6131
 
-
 
6132
    public Object getFieldValue(int fieldId) {
-
 
6133
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
6134
    }
-
 
6135
 
-
 
6136
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
6137
    public boolean isSet(_Fields field) {
-
 
6138
      switch (field) {
-
 
6139
      case USERNAME:
-
 
6140
        return isSetUsername();
-
 
6141
      case PASSWORD:
-
 
6142
        return isSetPassword();
-
 
6143
      }
-
 
6144
      throw new IllegalStateException();
-
 
6145
    }
-
 
6146
 
-
 
6147
    public boolean isSet(int fieldID) {
-
 
6148
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
6149
    }
-
 
6150
 
-
 
6151
    @Override
-
 
6152
    public boolean equals(Object that) {
-
 
6153
      if (that == null)
-
 
6154
        return false;
-
 
6155
      if (that instanceof authenticateUser_args)
-
 
6156
        return this.equals((authenticateUser_args)that);
-
 
6157
      return false;
-
 
6158
    }
-
 
6159
 
-
 
6160
    public boolean equals(authenticateUser_args that) {
-
 
6161
      if (that == null)
-
 
6162
        return false;
-
 
6163
 
-
 
6164
      boolean this_present_username = true && this.isSetUsername();
-
 
6165
      boolean that_present_username = true && that.isSetUsername();
-
 
6166
      if (this_present_username || that_present_username) {
-
 
6167
        if (!(this_present_username && that_present_username))
-
 
6168
          return false;
-
 
6169
        if (!this.username.equals(that.username))
-
 
6170
          return false;
-
 
6171
      }
-
 
6172
 
-
 
6173
      boolean this_present_password = true && this.isSetPassword();
-
 
6174
      boolean that_present_password = true && that.isSetPassword();
-
 
6175
      if (this_present_password || that_present_password) {
-
 
6176
        if (!(this_present_password && that_present_password))
-
 
6177
          return false;
-
 
6178
        if (!this.password.equals(that.password))
-
 
6179
          return false;
-
 
6180
      }
-
 
6181
 
-
 
6182
      return true;
-
 
6183
    }
-
 
6184
 
-
 
6185
    @Override
-
 
6186
    public int hashCode() {
-
 
6187
      return 0;
-
 
6188
    }
-
 
6189
 
-
 
6190
    public int compareTo(authenticateUser_args other) {
-
 
6191
      if (!getClass().equals(other.getClass())) {
-
 
6192
        return getClass().getName().compareTo(other.getClass().getName());
-
 
6193
      }
-
 
6194
 
-
 
6195
      int lastComparison = 0;
-
 
6196
      authenticateUser_args typedOther = (authenticateUser_args)other;
-
 
6197
 
-
 
6198
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(isSetUsername());
-
 
6199
      if (lastComparison != 0) {
-
 
6200
        return lastComparison;
-
 
6201
      }
-
 
6202
      lastComparison = TBaseHelper.compareTo(username, typedOther.username);
-
 
6203
      if (lastComparison != 0) {
-
 
6204
        return lastComparison;
-
 
6205
      }
-
 
6206
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(isSetPassword());
-
 
6207
      if (lastComparison != 0) {
-
 
6208
        return lastComparison;
-
 
6209
      }
-
 
6210
      lastComparison = TBaseHelper.compareTo(password, typedOther.password);
-
 
6211
      if (lastComparison != 0) {
-
 
6212
        return lastComparison;
-
 
6213
      }
-
 
6214
      return 0;
-
 
6215
    }
-
 
6216
 
-
 
6217
    public void read(TProtocol iprot) throws TException {
-
 
6218
      TField field;
-
 
6219
      iprot.readStructBegin();
-
 
6220
      while (true)
-
 
6221
      {
-
 
6222
        field = iprot.readFieldBegin();
-
 
6223
        if (field.type == TType.STOP) { 
-
 
6224
          break;
-
 
6225
        }
-
 
6226
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
6227
        if (fieldId == null) {
-
 
6228
          TProtocolUtil.skip(iprot, field.type);
-
 
6229
        } else {
-
 
6230
          switch (fieldId) {
-
 
6231
            case USERNAME:
-
 
6232
              if (field.type == TType.STRING) {
-
 
6233
                this.username = iprot.readString();
-
 
6234
              } else { 
-
 
6235
                TProtocolUtil.skip(iprot, field.type);
-
 
6236
              }
-
 
6237
              break;
-
 
6238
            case PASSWORD:
-
 
6239
              if (field.type == TType.STRING) {
-
 
6240
                this.password = iprot.readString();
-
 
6241
              } else { 
-
 
6242
                TProtocolUtil.skip(iprot, field.type);
-
 
6243
              }
-
 
6244
              break;
-
 
6245
          }
-
 
6246
          iprot.readFieldEnd();
-
 
6247
        }
-
 
6248
      }
-
 
6249
      iprot.readStructEnd();
-
 
6250
      validate();
-
 
6251
    }
-
 
6252
 
-
 
6253
    public void write(TProtocol oprot) throws TException {
-
 
6254
      validate();
-
 
6255
 
-
 
6256
      oprot.writeStructBegin(STRUCT_DESC);
-
 
6257
      if (this.username != null) {
-
 
6258
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
-
 
6259
        oprot.writeString(this.username);
-
 
6260
        oprot.writeFieldEnd();
-
 
6261
      }
-
 
6262
      if (this.password != null) {
-
 
6263
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
-
 
6264
        oprot.writeString(this.password);
-
 
6265
        oprot.writeFieldEnd();
-
 
6266
      }
-
 
6267
      oprot.writeFieldStop();
-
 
6268
      oprot.writeStructEnd();
-
 
6269
    }
-
 
6270
 
-
 
6271
    @Override
-
 
6272
    public String toString() {
-
 
6273
      StringBuilder sb = new StringBuilder("authenticateUser_args(");
-
 
6274
      boolean first = true;
-
 
6275
 
-
 
6276
      sb.append("username:");
-
 
6277
      if (this.username == null) {
-
 
6278
        sb.append("null");
-
 
6279
      } else {
-
 
6280
        sb.append(this.username);
-
 
6281
      }
-
 
6282
      first = false;
-
 
6283
      if (!first) sb.append(", ");
-
 
6284
      sb.append("password:");
-
 
6285
      if (this.password == null) {
-
 
6286
        sb.append("null");
-
 
6287
      } else {
-
 
6288
        sb.append(this.password);
-
 
6289
      }
-
 
6290
      first = false;
-
 
6291
      sb.append(")");
-
 
6292
      return sb.toString();
-
 
6293
    }
-
 
6294
 
-
 
6295
    public void validate() throws TException {
-
 
6296
      // check for required fields
-
 
6297
    }
-
 
6298
 
-
 
6299
  }
-
 
6300
 
-
 
6301
  public static class authenticateUser_result implements TBase<authenticateUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<authenticateUser_result>   {
-
 
6302
    private static final TStruct STRUCT_DESC = new TStruct("authenticateUser_result");
-
 
6303
 
-
 
6304
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
-
 
6305
    private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);
-
 
6306
 
-
 
6307
    private long success;
-
 
6308
    private HelperServiceException se;
-
 
6309
 
-
 
6310
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
6311
    public enum _Fields implements TFieldIdEnum {
-
 
6312
      SUCCESS((short)0, "success"),
-
 
6313
      SE((short)1, "se");
-
 
6314
 
-
 
6315
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
6316
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
6317
 
-
 
6318
      static {
-
 
6319
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
6320
          byId.put((int)field._thriftId, field);
-
 
6321
          byName.put(field.getFieldName(), field);
-
 
6322
        }
-
 
6323
      }
-
 
6324
 
-
 
6325
      /**
-
 
6326
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
6327
       */
-
 
6328
      public static _Fields findByThriftId(int fieldId) {
-
 
6329
        return byId.get(fieldId);
-
 
6330
      }
-
 
6331
 
-
 
6332
      /**
-
 
6333
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
6334
       * if it is not found.
-
 
6335
       */
-
 
6336
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
6337
        _Fields fields = findByThriftId(fieldId);
-
 
6338
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
6339
        return fields;
-
 
6340
      }
-
 
6341
 
-
 
6342
      /**
-
 
6343
       * Find the _Fields constant that matches name, or null if its not found.
-
 
6344
       */
-
 
6345
      public static _Fields findByName(String name) {
-
 
6346
        return byName.get(name);
-
 
6347
      }
-
 
6348
 
-
 
6349
      private final short _thriftId;
-
 
6350
      private final String _fieldName;
-
 
6351
 
-
 
6352
      _Fields(short thriftId, String fieldName) {
-
 
6353
        _thriftId = thriftId;
-
 
6354
        _fieldName = fieldName;
-
 
6355
      }
-
 
6356
 
-
 
6357
      public short getThriftFieldId() {
-
 
6358
        return _thriftId;
-
 
6359
      }
-
 
6360
 
-
 
6361
      public String getFieldName() {
-
 
6362
        return _fieldName;
-
 
6363
      }
-
 
6364
    }
-
 
6365
 
-
 
6366
    // isset id assignments
-
 
6367
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
6368
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
6369
 
-
 
6370
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
6371
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
6372
          new FieldValueMetaData(TType.I64)));
-
 
6373
      put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT, 
-
 
6374
          new FieldValueMetaData(TType.STRUCT)));
-
 
6375
    }});
-
 
6376
 
-
 
6377
    static {
-
 
6378
      FieldMetaData.addStructMetaDataMap(authenticateUser_result.class, metaDataMap);
-
 
6379
    }
-
 
6380
 
-
 
6381
    public authenticateUser_result() {
-
 
6382
    }
-
 
6383
 
-
 
6384
    public authenticateUser_result(
-
 
6385
      long success,
-
 
6386
      HelperServiceException se)
-
 
6387
    {
-
 
6388
      this();
-
 
6389
      this.success = success;
-
 
6390
      setSuccessIsSet(true);
-
 
6391
      this.se = se;
-
 
6392
    }
-
 
6393
 
-
 
6394
    /**
-
 
6395
     * Performs a deep copy on <i>other</i>.
-
 
6396
     */
-
 
6397
    public authenticateUser_result(authenticateUser_result other) {
-
 
6398
      __isset_bit_vector.clear();
-
 
6399
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
6400
      this.success = other.success;
-
 
6401
      if (other.isSetSe()) {
-
 
6402
        this.se = new HelperServiceException(other.se);
-
 
6403
      }
-
 
6404
    }
-
 
6405
 
-
 
6406
    public authenticateUser_result deepCopy() {
-
 
6407
      return new authenticateUser_result(this);
-
 
6408
    }
-
 
6409
 
-
 
6410
    @Deprecated
-
 
6411
    public authenticateUser_result clone() {
-
 
6412
      return new authenticateUser_result(this);
-
 
6413
    }
-
 
6414
 
-
 
6415
    public long getSuccess() {
-
 
6416
      return this.success;
-
 
6417
    }
-
 
6418
 
-
 
6419
    public authenticateUser_result setSuccess(long success) {
-
 
6420
      this.success = success;
-
 
6421
      setSuccessIsSet(true);
-
 
6422
      return this;
-
 
6423
    }
-
 
6424
 
-
 
6425
    public void unsetSuccess() {
-
 
6426
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
6427
    }
-
 
6428
 
-
 
6429
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
6430
    public boolean isSetSuccess() {
-
 
6431
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
6432
    }
-
 
6433
 
-
 
6434
    public void setSuccessIsSet(boolean value) {
-
 
6435
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
6436
    }
-
 
6437
 
-
 
6438
    public HelperServiceException getSe() {
-
 
6439
      return this.se;
-
 
6440
    }
-
 
6441
 
-
 
6442
    public authenticateUser_result setSe(HelperServiceException se) {
-
 
6443
      this.se = se;
-
 
6444
      return this;
-
 
6445
    }
-
 
6446
 
-
 
6447
    public void unsetSe() {
-
 
6448
      this.se = null;
-
 
6449
    }
-
 
6450
 
-
 
6451
    /** Returns true if field se is set (has been asigned a value) and false otherwise */
-
 
6452
    public boolean isSetSe() {
-
 
6453
      return this.se != null;
-
 
6454
    }
-
 
6455
 
-
 
6456
    public void setSeIsSet(boolean value) {
-
 
6457
      if (!value) {
-
 
6458
        this.se = null;
-
 
6459
      }
-
 
6460
    }
-
 
6461
 
-
 
6462
    public void setFieldValue(_Fields field, Object value) {
-
 
6463
      switch (field) {
-
 
6464
      case SUCCESS:
-
 
6465
        if (value == null) {
-
 
6466
          unsetSuccess();
-
 
6467
        } else {
-
 
6468
          setSuccess((Long)value);
-
 
6469
        }
-
 
6470
        break;
-
 
6471
 
-
 
6472
      case SE:
-
 
6473
        if (value == null) {
-
 
6474
          unsetSe();
-
 
6475
        } else {
-
 
6476
          setSe((HelperServiceException)value);
-
 
6477
        }
-
 
6478
        break;
-
 
6479
 
-
 
6480
      }
-
 
6481
    }
-
 
6482
 
-
 
6483
    public void setFieldValue(int fieldID, Object value) {
-
 
6484
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
6485
    }
-
 
6486
 
-
 
6487
    public Object getFieldValue(_Fields field) {
-
 
6488
      switch (field) {
-
 
6489
      case SUCCESS:
-
 
6490
        return new Long(getSuccess());
-
 
6491
 
-
 
6492
      case SE:
-
 
6493
        return getSe();
-
 
6494
 
-
 
6495
      }
-
 
6496
      throw new IllegalStateException();
-
 
6497
    }
-
 
6498
 
-
 
6499
    public Object getFieldValue(int fieldId) {
-
 
6500
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
6501
    }
-
 
6502
 
-
 
6503
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
6504
    public boolean isSet(_Fields field) {
-
 
6505
      switch (field) {
-
 
6506
      case SUCCESS:
-
 
6507
        return isSetSuccess();
-
 
6508
      case SE:
-
 
6509
        return isSetSe();
-
 
6510
      }
-
 
6511
      throw new IllegalStateException();
-
 
6512
    }
-
 
6513
 
-
 
6514
    public boolean isSet(int fieldID) {
-
 
6515
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
6516
    }
-
 
6517
 
-
 
6518
    @Override
-
 
6519
    public boolean equals(Object that) {
-
 
6520
      if (that == null)
-
 
6521
        return false;
-
 
6522
      if (that instanceof authenticateUser_result)
-
 
6523
        return this.equals((authenticateUser_result)that);
-
 
6524
      return false;
-
 
6525
    }
-
 
6526
 
-
 
6527
    public boolean equals(authenticateUser_result that) {
-
 
6528
      if (that == null)
-
 
6529
        return false;
-
 
6530
 
-
 
6531
      boolean this_present_success = true;
-
 
6532
      boolean that_present_success = true;
-
 
6533
      if (this_present_success || that_present_success) {
-
 
6534
        if (!(this_present_success && that_present_success))
-
 
6535
          return false;
-
 
6536
        if (this.success != that.success)
-
 
6537
          return false;
-
 
6538
      }
-
 
6539
 
-
 
6540
      boolean this_present_se = true && this.isSetSe();
-
 
6541
      boolean that_present_se = true && that.isSetSe();
-
 
6542
      if (this_present_se || that_present_se) {
-
 
6543
        if (!(this_present_se && that_present_se))
-
 
6544
          return false;
-
 
6545
        if (!this.se.equals(that.se))
-
 
6546
          return false;
-
 
6547
      }
-
 
6548
 
-
 
6549
      return true;
-
 
6550
    }
-
 
6551
 
-
 
6552
    @Override
-
 
6553
    public int hashCode() {
-
 
6554
      return 0;
-
 
6555
    }
-
 
6556
 
-
 
6557
    public int compareTo(authenticateUser_result other) {
-
 
6558
      if (!getClass().equals(other.getClass())) {
-
 
6559
        return getClass().getName().compareTo(other.getClass().getName());
-
 
6560
      }
-
 
6561
 
-
 
6562
      int lastComparison = 0;
-
 
6563
      authenticateUser_result typedOther = (authenticateUser_result)other;
-
 
6564
 
-
 
6565
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
6566
      if (lastComparison != 0) {
-
 
6567
        return lastComparison;
-
 
6568
      }
-
 
6569
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
6570
      if (lastComparison != 0) {
-
 
6571
        return lastComparison;
-
 
6572
      }
-
 
6573
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());
-
 
6574
      if (lastComparison != 0) {
-
 
6575
        return lastComparison;
-
 
6576
      }
-
 
6577
      lastComparison = TBaseHelper.compareTo(se, typedOther.se);
-
 
6578
      if (lastComparison != 0) {
-
 
6579
        return lastComparison;
-
 
6580
      }
-
 
6581
      return 0;
-
 
6582
    }
-
 
6583
 
-
 
6584
    public void read(TProtocol iprot) throws TException {
-
 
6585
      TField field;
-
 
6586
      iprot.readStructBegin();
-
 
6587
      while (true)
-
 
6588
      {
-
 
6589
        field = iprot.readFieldBegin();
-
 
6590
        if (field.type == TType.STOP) { 
-
 
6591
          break;
-
 
6592
        }
-
 
6593
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
6594
        if (fieldId == null) {
-
 
6595
          TProtocolUtil.skip(iprot, field.type);
-
 
6596
        } else {
-
 
6597
          switch (fieldId) {
-
 
6598
            case SUCCESS:
-
 
6599
              if (field.type == TType.I64) {
-
 
6600
                this.success = iprot.readI64();
-
 
6601
                setSuccessIsSet(true);
-
 
6602
              } else { 
-
 
6603
                TProtocolUtil.skip(iprot, field.type);
-
 
6604
              }
-
 
6605
              break;
-
 
6606
            case SE:
-
 
6607
              if (field.type == TType.STRUCT) {
-
 
6608
                this.se = new HelperServiceException();
-
 
6609
                this.se.read(iprot);
-
 
6610
              } else { 
-
 
6611
                TProtocolUtil.skip(iprot, field.type);
-
 
6612
              }
-
 
6613
              break;
-
 
6614
          }
-
 
6615
          iprot.readFieldEnd();
-
 
6616
        }
-
 
6617
      }
-
 
6618
      iprot.readStructEnd();
-
 
6619
      validate();
-
 
6620
    }
-
 
6621
 
-
 
6622
    public void write(TProtocol oprot) throws TException {
-
 
6623
      oprot.writeStructBegin(STRUCT_DESC);
-
 
6624
 
-
 
6625
      if (this.isSetSuccess()) {
-
 
6626
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
6627
        oprot.writeI64(this.success);
-
 
6628
        oprot.writeFieldEnd();
-
 
6629
      } else if (this.isSetSe()) {
-
 
6630
        oprot.writeFieldBegin(SE_FIELD_DESC);
-
 
6631
        this.se.write(oprot);
-
 
6632
        oprot.writeFieldEnd();
-
 
6633
      }
-
 
6634
      oprot.writeFieldStop();
-
 
6635
      oprot.writeStructEnd();
-
 
6636
    }
-
 
6637
 
-
 
6638
    @Override
-
 
6639
    public String toString() {
-
 
6640
      StringBuilder sb = new StringBuilder("authenticateUser_result(");
-
 
6641
      boolean first = true;
-
 
6642
 
-
 
6643
      sb.append("success:");
-
 
6644
      sb.append(this.success);
-
 
6645
      first = false;
-
 
6646
      if (!first) sb.append(", ");
-
 
6647
      sb.append("se:");
-
 
6648
      if (this.se == null) {
-
 
6649
        sb.append("null");
-
 
6650
      } else {
-
 
6651
        sb.append(this.se);
-
 
6652
      }
-
 
6653
      first = false;
-
 
6654
      sb.append(")");
-
 
6655
      return sb.toString();
-
 
6656
    }
-
 
6657
 
-
 
6658
    public void validate() throws TException {
-
 
6659
      // check for required fields
-
 
6660
    }
-
 
6661
 
-
 
6662
  }
-
 
6663
 
-
 
6664
  public static class updatePassword_args implements TBase<updatePassword_args._Fields>, java.io.Serializable, Cloneable, Comparable<updatePassword_args>   {
-
 
6665
    private static final TStruct STRUCT_DESC = new TStruct("updatePassword_args");
-
 
6666
 
-
 
6667
    private static final TField USERNAME_FIELD_DESC = new TField("username", TType.STRING, (short)1);
-
 
6668
    private static final TField OLD_PASSWORD_FIELD_DESC = new TField("oldPassword", TType.STRING, (short)2);
-
 
6669
    private static final TField NEW_PASSWORD_FIELD_DESC = new TField("newPassword", TType.STRING, (short)3);
-
 
6670
 
-
 
6671
    private String username;
-
 
6672
    private String oldPassword;
-
 
6673
    private String newPassword;
-
 
6674
 
-
 
6675
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
6676
    public enum _Fields implements TFieldIdEnum {
-
 
6677
      USERNAME((short)1, "username"),
-
 
6678
      OLD_PASSWORD((short)2, "oldPassword"),
-
 
6679
      NEW_PASSWORD((short)3, "newPassword");
-
 
6680
 
-
 
6681
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
6682
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
6683
 
-
 
6684
      static {
-
 
6685
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
6686
          byId.put((int)field._thriftId, field);
-
 
6687
          byName.put(field.getFieldName(), field);
-
 
6688
        }
-
 
6689
      }
-
 
6690
 
-
 
6691
      /**
-
 
6692
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
6693
       */
-
 
6694
      public static _Fields findByThriftId(int fieldId) {
-
 
6695
        return byId.get(fieldId);
-
 
6696
      }
-
 
6697
 
-
 
6698
      /**
-
 
6699
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
6700
       * if it is not found.
-
 
6701
       */
-
 
6702
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
6703
        _Fields fields = findByThriftId(fieldId);
-
 
6704
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
6705
        return fields;
-
 
6706
      }
-
 
6707
 
-
 
6708
      /**
-
 
6709
       * Find the _Fields constant that matches name, or null if its not found.
-
 
6710
       */
-
 
6711
      public static _Fields findByName(String name) {
-
 
6712
        return byName.get(name);
-
 
6713
      }
-
 
6714
 
-
 
6715
      private final short _thriftId;
-
 
6716
      private final String _fieldName;
-
 
6717
 
-
 
6718
      _Fields(short thriftId, String fieldName) {
-
 
6719
        _thriftId = thriftId;
-
 
6720
        _fieldName = fieldName;
-
 
6721
      }
-
 
6722
 
-
 
6723
      public short getThriftFieldId() {
-
 
6724
        return _thriftId;
-
 
6725
      }
-
 
6726
 
-
 
6727
      public String getFieldName() {
-
 
6728
        return _fieldName;
-
 
6729
      }
-
 
6730
    }
-
 
6731
 
-
 
6732
    // isset id assignments
-
 
6733
 
-
 
6734
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
6735
      put(_Fields.USERNAME, new FieldMetaData("username", TFieldRequirementType.DEFAULT, 
-
 
6736
          new FieldValueMetaData(TType.STRING)));
-
 
6737
      put(_Fields.OLD_PASSWORD, new FieldMetaData("oldPassword", TFieldRequirementType.DEFAULT, 
-
 
6738
          new FieldValueMetaData(TType.STRING)));
-
 
6739
      put(_Fields.NEW_PASSWORD, new FieldMetaData("newPassword", TFieldRequirementType.DEFAULT, 
-
 
6740
          new FieldValueMetaData(TType.STRING)));
-
 
6741
    }});
-
 
6742
 
-
 
6743
    static {
-
 
6744
      FieldMetaData.addStructMetaDataMap(updatePassword_args.class, metaDataMap);
-
 
6745
    }
-
 
6746
 
-
 
6747
    public updatePassword_args() {
-
 
6748
    }
-
 
6749
 
-
 
6750
    public updatePassword_args(
-
 
6751
      String username,
-
 
6752
      String oldPassword,
-
 
6753
      String newPassword)
-
 
6754
    {
-
 
6755
      this();
-
 
6756
      this.username = username;
-
 
6757
      this.oldPassword = oldPassword;
-
 
6758
      this.newPassword = newPassword;
-
 
6759
    }
-
 
6760
 
-
 
6761
    /**
-
 
6762
     * Performs a deep copy on <i>other</i>.
-
 
6763
     */
-
 
6764
    public updatePassword_args(updatePassword_args other) {
-
 
6765
      if (other.isSetUsername()) {
-
 
6766
        this.username = other.username;
-
 
6767
      }
-
 
6768
      if (other.isSetOldPassword()) {
-
 
6769
        this.oldPassword = other.oldPassword;
-
 
6770
      }
-
 
6771
      if (other.isSetNewPassword()) {
-
 
6772
        this.newPassword = other.newPassword;
-
 
6773
      }
-
 
6774
    }
-
 
6775
 
-
 
6776
    public updatePassword_args deepCopy() {
-
 
6777
      return new updatePassword_args(this);
-
 
6778
    }
-
 
6779
 
-
 
6780
    @Deprecated
-
 
6781
    public updatePassword_args clone() {
-
 
6782
      return new updatePassword_args(this);
-
 
6783
    }
-
 
6784
 
-
 
6785
    public String getUsername() {
-
 
6786
      return this.username;
-
 
6787
    }
-
 
6788
 
-
 
6789
    public updatePassword_args setUsername(String username) {
-
 
6790
      this.username = username;
-
 
6791
      return this;
-
 
6792
    }
-
 
6793
 
-
 
6794
    public void unsetUsername() {
-
 
6795
      this.username = null;
-
 
6796
    }
-
 
6797
 
-
 
6798
    /** Returns true if field username is set (has been asigned a value) and false otherwise */
-
 
6799
    public boolean isSetUsername() {
-
 
6800
      return this.username != null;
-
 
6801
    }
-
 
6802
 
-
 
6803
    public void setUsernameIsSet(boolean value) {
-
 
6804
      if (!value) {
-
 
6805
        this.username = null;
-
 
6806
      }
-
 
6807
    }
-
 
6808
 
-
 
6809
    public String getOldPassword() {
-
 
6810
      return this.oldPassword;
-
 
6811
    }
-
 
6812
 
-
 
6813
    public updatePassword_args setOldPassword(String oldPassword) {
-
 
6814
      this.oldPassword = oldPassword;
-
 
6815
      return this;
-
 
6816
    }
-
 
6817
 
-
 
6818
    public void unsetOldPassword() {
-
 
6819
      this.oldPassword = null;
-
 
6820
    }
-
 
6821
 
-
 
6822
    /** Returns true if field oldPassword is set (has been asigned a value) and false otherwise */
-
 
6823
    public boolean isSetOldPassword() {
-
 
6824
      return this.oldPassword != null;
-
 
6825
    }
-
 
6826
 
-
 
6827
    public void setOldPasswordIsSet(boolean value) {
-
 
6828
      if (!value) {
-
 
6829
        this.oldPassword = null;
-
 
6830
      }
-
 
6831
    }
-
 
6832
 
-
 
6833
    public String getNewPassword() {
-
 
6834
      return this.newPassword;
-
 
6835
    }
-
 
6836
 
-
 
6837
    public updatePassword_args setNewPassword(String newPassword) {
-
 
6838
      this.newPassword = newPassword;
-
 
6839
      return this;
-
 
6840
    }
-
 
6841
 
-
 
6842
    public void unsetNewPassword() {
-
 
6843
      this.newPassword = null;
-
 
6844
    }
-
 
6845
 
-
 
6846
    /** Returns true if field newPassword is set (has been asigned a value) and false otherwise */
-
 
6847
    public boolean isSetNewPassword() {
-
 
6848
      return this.newPassword != null;
-
 
6849
    }
-
 
6850
 
-
 
6851
    public void setNewPasswordIsSet(boolean value) {
-
 
6852
      if (!value) {
-
 
6853
        this.newPassword = null;
-
 
6854
      }
-
 
6855
    }
-
 
6856
 
-
 
6857
    public void setFieldValue(_Fields field, Object value) {
-
 
6858
      switch (field) {
-
 
6859
      case USERNAME:
-
 
6860
        if (value == null) {
-
 
6861
          unsetUsername();
-
 
6862
        } else {
-
 
6863
          setUsername((String)value);
-
 
6864
        }
-
 
6865
        break;
-
 
6866
 
-
 
6867
      case OLD_PASSWORD:
-
 
6868
        if (value == null) {
-
 
6869
          unsetOldPassword();
-
 
6870
        } else {
-
 
6871
          setOldPassword((String)value);
-
 
6872
        }
-
 
6873
        break;
-
 
6874
 
-
 
6875
      case NEW_PASSWORD:
-
 
6876
        if (value == null) {
-
 
6877
          unsetNewPassword();
-
 
6878
        } else {
-
 
6879
          setNewPassword((String)value);
-
 
6880
        }
-
 
6881
        break;
-
 
6882
 
-
 
6883
      }
-
 
6884
    }
-
 
6885
 
-
 
6886
    public void setFieldValue(int fieldID, Object value) {
-
 
6887
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
6888
    }
-
 
6889
 
-
 
6890
    public Object getFieldValue(_Fields field) {
-
 
6891
      switch (field) {
-
 
6892
      case USERNAME:
-
 
6893
        return getUsername();
-
 
6894
 
-
 
6895
      case OLD_PASSWORD:
-
 
6896
        return getOldPassword();
-
 
6897
 
-
 
6898
      case NEW_PASSWORD:
-
 
6899
        return getNewPassword();
-
 
6900
 
-
 
6901
      }
-
 
6902
      throw new IllegalStateException();
-
 
6903
    }
-
 
6904
 
-
 
6905
    public Object getFieldValue(int fieldId) {
-
 
6906
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
6907
    }
-
 
6908
 
-
 
6909
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
6910
    public boolean isSet(_Fields field) {
-
 
6911
      switch (field) {
-
 
6912
      case USERNAME:
-
 
6913
        return isSetUsername();
-
 
6914
      case OLD_PASSWORD:
-
 
6915
        return isSetOldPassword();
-
 
6916
      case NEW_PASSWORD:
-
 
6917
        return isSetNewPassword();
-
 
6918
      }
-
 
6919
      throw new IllegalStateException();
-
 
6920
    }
-
 
6921
 
-
 
6922
    public boolean isSet(int fieldID) {
-
 
6923
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
6924
    }
-
 
6925
 
-
 
6926
    @Override
-
 
6927
    public boolean equals(Object that) {
-
 
6928
      if (that == null)
-
 
6929
        return false;
-
 
6930
      if (that instanceof updatePassword_args)
-
 
6931
        return this.equals((updatePassword_args)that);
-
 
6932
      return false;
-
 
6933
    }
-
 
6934
 
-
 
6935
    public boolean equals(updatePassword_args that) {
-
 
6936
      if (that == null)
-
 
6937
        return false;
-
 
6938
 
-
 
6939
      boolean this_present_username = true && this.isSetUsername();
-
 
6940
      boolean that_present_username = true && that.isSetUsername();
-
 
6941
      if (this_present_username || that_present_username) {
-
 
6942
        if (!(this_present_username && that_present_username))
-
 
6943
          return false;
-
 
6944
        if (!this.username.equals(that.username))
-
 
6945
          return false;
-
 
6946
      }
-
 
6947
 
-
 
6948
      boolean this_present_oldPassword = true && this.isSetOldPassword();
-
 
6949
      boolean that_present_oldPassword = true && that.isSetOldPassword();
-
 
6950
      if (this_present_oldPassword || that_present_oldPassword) {
-
 
6951
        if (!(this_present_oldPassword && that_present_oldPassword))
-
 
6952
          return false;
-
 
6953
        if (!this.oldPassword.equals(that.oldPassword))
-
 
6954
          return false;
-
 
6955
      }
-
 
6956
 
-
 
6957
      boolean this_present_newPassword = true && this.isSetNewPassword();
-
 
6958
      boolean that_present_newPassword = true && that.isSetNewPassword();
-
 
6959
      if (this_present_newPassword || that_present_newPassword) {
-
 
6960
        if (!(this_present_newPassword && that_present_newPassword))
-
 
6961
          return false;
-
 
6962
        if (!this.newPassword.equals(that.newPassword))
-
 
6963
          return false;
-
 
6964
      }
-
 
6965
 
-
 
6966
      return true;
-
 
6967
    }
-
 
6968
 
-
 
6969
    @Override
-
 
6970
    public int hashCode() {
-
 
6971
      return 0;
-
 
6972
    }
-
 
6973
 
-
 
6974
    public int compareTo(updatePassword_args other) {
-
 
6975
      if (!getClass().equals(other.getClass())) {
-
 
6976
        return getClass().getName().compareTo(other.getClass().getName());
-
 
6977
      }
-
 
6978
 
-
 
6979
      int lastComparison = 0;
-
 
6980
      updatePassword_args typedOther = (updatePassword_args)other;
-
 
6981
 
-
 
6982
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(isSetUsername());
-
 
6983
      if (lastComparison != 0) {
-
 
6984
        return lastComparison;
-
 
6985
      }
-
 
6986
      lastComparison = TBaseHelper.compareTo(username, typedOther.username);
-
 
6987
      if (lastComparison != 0) {
-
 
6988
        return lastComparison;
-
 
6989
      }
-
 
6990
      lastComparison = Boolean.valueOf(isSetOldPassword()).compareTo(isSetOldPassword());
-
 
6991
      if (lastComparison != 0) {
-
 
6992
        return lastComparison;
-
 
6993
      }
-
 
6994
      lastComparison = TBaseHelper.compareTo(oldPassword, typedOther.oldPassword);
-
 
6995
      if (lastComparison != 0) {
-
 
6996
        return lastComparison;
-
 
6997
      }
-
 
6998
      lastComparison = Boolean.valueOf(isSetNewPassword()).compareTo(isSetNewPassword());
-
 
6999
      if (lastComparison != 0) {
-
 
7000
        return lastComparison;
-
 
7001
      }
-
 
7002
      lastComparison = TBaseHelper.compareTo(newPassword, typedOther.newPassword);
-
 
7003
      if (lastComparison != 0) {
-
 
7004
        return lastComparison;
-
 
7005
      }
-
 
7006
      return 0;
-
 
7007
    }
-
 
7008
 
-
 
7009
    public void read(TProtocol iprot) throws TException {
-
 
7010
      TField field;
-
 
7011
      iprot.readStructBegin();
-
 
7012
      while (true)
-
 
7013
      {
-
 
7014
        field = iprot.readFieldBegin();
-
 
7015
        if (field.type == TType.STOP) { 
-
 
7016
          break;
-
 
7017
        }
-
 
7018
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
7019
        if (fieldId == null) {
-
 
7020
          TProtocolUtil.skip(iprot, field.type);
-
 
7021
        } else {
-
 
7022
          switch (fieldId) {
-
 
7023
            case USERNAME:
-
 
7024
              if (field.type == TType.STRING) {
-
 
7025
                this.username = iprot.readString();
-
 
7026
              } else { 
-
 
7027
                TProtocolUtil.skip(iprot, field.type);
-
 
7028
              }
-
 
7029
              break;
-
 
7030
            case OLD_PASSWORD:
-
 
7031
              if (field.type == TType.STRING) {
-
 
7032
                this.oldPassword = iprot.readString();
-
 
7033
              } else { 
-
 
7034
                TProtocolUtil.skip(iprot, field.type);
-
 
7035
              }
-
 
7036
              break;
-
 
7037
            case NEW_PASSWORD:
-
 
7038
              if (field.type == TType.STRING) {
-
 
7039
                this.newPassword = iprot.readString();
-
 
7040
              } else { 
-
 
7041
                TProtocolUtil.skip(iprot, field.type);
-
 
7042
              }
-
 
7043
              break;
-
 
7044
          }
-
 
7045
          iprot.readFieldEnd();
-
 
7046
        }
-
 
7047
      }
-
 
7048
      iprot.readStructEnd();
-
 
7049
      validate();
-
 
7050
    }
-
 
7051
 
-
 
7052
    public void write(TProtocol oprot) throws TException {
-
 
7053
      validate();
-
 
7054
 
-
 
7055
      oprot.writeStructBegin(STRUCT_DESC);
-
 
7056
      if (this.username != null) {
-
 
7057
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
-
 
7058
        oprot.writeString(this.username);
-
 
7059
        oprot.writeFieldEnd();
-
 
7060
      }
-
 
7061
      if (this.oldPassword != null) {
-
 
7062
        oprot.writeFieldBegin(OLD_PASSWORD_FIELD_DESC);
-
 
7063
        oprot.writeString(this.oldPassword);
-
 
7064
        oprot.writeFieldEnd();
-
 
7065
      }
-
 
7066
      if (this.newPassword != null) {
-
 
7067
        oprot.writeFieldBegin(NEW_PASSWORD_FIELD_DESC);
-
 
7068
        oprot.writeString(this.newPassword);
-
 
7069
        oprot.writeFieldEnd();
-
 
7070
      }
-
 
7071
      oprot.writeFieldStop();
-
 
7072
      oprot.writeStructEnd();
-
 
7073
    }
-
 
7074
 
-
 
7075
    @Override
-
 
7076
    public String toString() {
-
 
7077
      StringBuilder sb = new StringBuilder("updatePassword_args(");
-
 
7078
      boolean first = true;
-
 
7079
 
-
 
7080
      sb.append("username:");
-
 
7081
      if (this.username == null) {
-
 
7082
        sb.append("null");
-
 
7083
      } else {
-
 
7084
        sb.append(this.username);
-
 
7085
      }
-
 
7086
      first = false;
-
 
7087
      if (!first) sb.append(", ");
-
 
7088
      sb.append("oldPassword:");
-
 
7089
      if (this.oldPassword == null) {
-
 
7090
        sb.append("null");
-
 
7091
      } else {
-
 
7092
        sb.append(this.oldPassword);
-
 
7093
      }
-
 
7094
      first = false;
-
 
7095
      if (!first) sb.append(", ");
-
 
7096
      sb.append("newPassword:");
-
 
7097
      if (this.newPassword == null) {
-
 
7098
        sb.append("null");
-
 
7099
      } else {
-
 
7100
        sb.append(this.newPassword);
-
 
7101
      }
-
 
7102
      first = false;
-
 
7103
      sb.append(")");
-
 
7104
      return sb.toString();
-
 
7105
    }
-
 
7106
 
-
 
7107
    public void validate() throws TException {
-
 
7108
      // check for required fields
-
 
7109
    }
-
 
7110
 
-
 
7111
  }
-
 
7112
 
-
 
7113
  public static class updatePassword_result implements TBase<updatePassword_result._Fields>, java.io.Serializable, Cloneable, Comparable<updatePassword_result>   {
-
 
7114
    private static final TStruct STRUCT_DESC = new TStruct("updatePassword_result");
-
 
7115
 
-
 
7116
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
-
 
7117
    private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);
-
 
7118
 
-
 
7119
    private boolean success;
-
 
7120
    private HelperServiceException se;
-
 
7121
 
-
 
7122
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
7123
    public enum _Fields implements TFieldIdEnum {
-
 
7124
      SUCCESS((short)0, "success"),
-
 
7125
      SE((short)1, "se");
-
 
7126
 
-
 
7127
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
7128
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
7129
 
-
 
7130
      static {
-
 
7131
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
7132
          byId.put((int)field._thriftId, field);
-
 
7133
          byName.put(field.getFieldName(), field);
-
 
7134
        }
-
 
7135
      }
-
 
7136
 
-
 
7137
      /**
-
 
7138
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
7139
       */
-
 
7140
      public static _Fields findByThriftId(int fieldId) {
-
 
7141
        return byId.get(fieldId);
-
 
7142
      }
-
 
7143
 
-
 
7144
      /**
-
 
7145
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
7146
       * if it is not found.
-
 
7147
       */
-
 
7148
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
7149
        _Fields fields = findByThriftId(fieldId);
-
 
7150
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
7151
        return fields;
-
 
7152
      }
-
 
7153
 
-
 
7154
      /**
-
 
7155
       * Find the _Fields constant that matches name, or null if its not found.
-
 
7156
       */
-
 
7157
      public static _Fields findByName(String name) {
-
 
7158
        return byName.get(name);
-
 
7159
      }
-
 
7160
 
-
 
7161
      private final short _thriftId;
-
 
7162
      private final String _fieldName;
-
 
7163
 
-
 
7164
      _Fields(short thriftId, String fieldName) {
-
 
7165
        _thriftId = thriftId;
-
 
7166
        _fieldName = fieldName;
-
 
7167
      }
-
 
7168
 
-
 
7169
      public short getThriftFieldId() {
-
 
7170
        return _thriftId;
-
 
7171
      }
-
 
7172
 
-
 
7173
      public String getFieldName() {
-
 
7174
        return _fieldName;
-
 
7175
      }
-
 
7176
    }
-
 
7177
 
-
 
7178
    // isset id assignments
-
 
7179
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
7180
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
7181
 
-
 
7182
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
7183
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
7184
          new FieldValueMetaData(TType.BOOL)));
-
 
7185
      put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT, 
-
 
7186
          new FieldValueMetaData(TType.STRUCT)));
-
 
7187
    }});
-
 
7188
 
-
 
7189
    static {
-
 
7190
      FieldMetaData.addStructMetaDataMap(updatePassword_result.class, metaDataMap);
-
 
7191
    }
-
 
7192
 
-
 
7193
    public updatePassword_result() {
-
 
7194
    }
-
 
7195
 
-
 
7196
    public updatePassword_result(
-
 
7197
      boolean success,
-
 
7198
      HelperServiceException se)
-
 
7199
    {
-
 
7200
      this();
-
 
7201
      this.success = success;
-
 
7202
      setSuccessIsSet(true);
-
 
7203
      this.se = se;
-
 
7204
    }
-
 
7205
 
-
 
7206
    /**
-
 
7207
     * Performs a deep copy on <i>other</i>.
-
 
7208
     */
-
 
7209
    public updatePassword_result(updatePassword_result other) {
-
 
7210
      __isset_bit_vector.clear();
-
 
7211
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
7212
      this.success = other.success;
-
 
7213
      if (other.isSetSe()) {
-
 
7214
        this.se = new HelperServiceException(other.se);
-
 
7215
      }
-
 
7216
    }
-
 
7217
 
-
 
7218
    public updatePassword_result deepCopy() {
-
 
7219
      return new updatePassword_result(this);
-
 
7220
    }
-
 
7221
 
-
 
7222
    @Deprecated
-
 
7223
    public updatePassword_result clone() {
-
 
7224
      return new updatePassword_result(this);
-
 
7225
    }
-
 
7226
 
-
 
7227
    public boolean isSuccess() {
-
 
7228
      return this.success;
-
 
7229
    }
-
 
7230
 
-
 
7231
    public updatePassword_result setSuccess(boolean success) {
-
 
7232
      this.success = success;
-
 
7233
      setSuccessIsSet(true);
-
 
7234
      return this;
-
 
7235
    }
-
 
7236
 
-
 
7237
    public void unsetSuccess() {
-
 
7238
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
7239
    }
-
 
7240
 
-
 
7241
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
7242
    public boolean isSetSuccess() {
-
 
7243
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
7244
    }
-
 
7245
 
-
 
7246
    public void setSuccessIsSet(boolean value) {
-
 
7247
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
7248
    }
-
 
7249
 
-
 
7250
    public HelperServiceException getSe() {
-
 
7251
      return this.se;
-
 
7252
    }
-
 
7253
 
-
 
7254
    public updatePassword_result setSe(HelperServiceException se) {
-
 
7255
      this.se = se;
-
 
7256
      return this;
-
 
7257
    }
-
 
7258
 
-
 
7259
    public void unsetSe() {
-
 
7260
      this.se = null;
-
 
7261
    }
-
 
7262
 
-
 
7263
    /** Returns true if field se is set (has been asigned a value) and false otherwise */
-
 
7264
    public boolean isSetSe() {
-
 
7265
      return this.se != null;
-
 
7266
    }
-
 
7267
 
-
 
7268
    public void setSeIsSet(boolean value) {
-
 
7269
      if (!value) {
-
 
7270
        this.se = null;
-
 
7271
      }
-
 
7272
    }
-
 
7273
 
-
 
7274
    public void setFieldValue(_Fields field, Object value) {
-
 
7275
      switch (field) {
-
 
7276
      case SUCCESS:
-
 
7277
        if (value == null) {
-
 
7278
          unsetSuccess();
-
 
7279
        } else {
-
 
7280
          setSuccess((Boolean)value);
-
 
7281
        }
-
 
7282
        break;
-
 
7283
 
-
 
7284
      case SE:
-
 
7285
        if (value == null) {
-
 
7286
          unsetSe();
-
 
7287
        } else {
-
 
7288
          setSe((HelperServiceException)value);
-
 
7289
        }
-
 
7290
        break;
-
 
7291
 
-
 
7292
      }
-
 
7293
    }
-
 
7294
 
-
 
7295
    public void setFieldValue(int fieldID, Object value) {
-
 
7296
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
7297
    }
-
 
7298
 
-
 
7299
    public Object getFieldValue(_Fields field) {
-
 
7300
      switch (field) {
-
 
7301
      case SUCCESS:
-
 
7302
        return new Boolean(isSuccess());
-
 
7303
 
-
 
7304
      case SE:
-
 
7305
        return getSe();
-
 
7306
 
-
 
7307
      }
-
 
7308
      throw new IllegalStateException();
-
 
7309
    }
-
 
7310
 
-
 
7311
    public Object getFieldValue(int fieldId) {
-
 
7312
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
7313
    }
-
 
7314
 
-
 
7315
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
7316
    public boolean isSet(_Fields field) {
-
 
7317
      switch (field) {
-
 
7318
      case SUCCESS:
-
 
7319
        return isSetSuccess();
-
 
7320
      case SE:
-
 
7321
        return isSetSe();
-
 
7322
      }
-
 
7323
      throw new IllegalStateException();
-
 
7324
    }
-
 
7325
 
-
 
7326
    public boolean isSet(int fieldID) {
-
 
7327
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
7328
    }
-
 
7329
 
-
 
7330
    @Override
-
 
7331
    public boolean equals(Object that) {
-
 
7332
      if (that == null)
-
 
7333
        return false;
-
 
7334
      if (that instanceof updatePassword_result)
-
 
7335
        return this.equals((updatePassword_result)that);
-
 
7336
      return false;
-
 
7337
    }
-
 
7338
 
-
 
7339
    public boolean equals(updatePassword_result that) {
-
 
7340
      if (that == null)
-
 
7341
        return false;
-
 
7342
 
-
 
7343
      boolean this_present_success = true;
-
 
7344
      boolean that_present_success = true;
-
 
7345
      if (this_present_success || that_present_success) {
-
 
7346
        if (!(this_present_success && that_present_success))
-
 
7347
          return false;
-
 
7348
        if (this.success != that.success)
-
 
7349
          return false;
-
 
7350
      }
-
 
7351
 
-
 
7352
      boolean this_present_se = true && this.isSetSe();
-
 
7353
      boolean that_present_se = true && that.isSetSe();
-
 
7354
      if (this_present_se || that_present_se) {
-
 
7355
        if (!(this_present_se && that_present_se))
-
 
7356
          return false;
-
 
7357
        if (!this.se.equals(that.se))
-
 
7358
          return false;
-
 
7359
      }
-
 
7360
 
-
 
7361
      return true;
-
 
7362
    }
-
 
7363
 
-
 
7364
    @Override
-
 
7365
    public int hashCode() {
-
 
7366
      return 0;
-
 
7367
    }
-
 
7368
 
-
 
7369
    public int compareTo(updatePassword_result other) {
-
 
7370
      if (!getClass().equals(other.getClass())) {
-
 
7371
        return getClass().getName().compareTo(other.getClass().getName());
-
 
7372
      }
-
 
7373
 
-
 
7374
      int lastComparison = 0;
-
 
7375
      updatePassword_result typedOther = (updatePassword_result)other;
-
 
7376
 
-
 
7377
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
7378
      if (lastComparison != 0) {
-
 
7379
        return lastComparison;
-
 
7380
      }
-
 
7381
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
7382
      if (lastComparison != 0) {
-
 
7383
        return lastComparison;
-
 
7384
      }
-
 
7385
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());
-
 
7386
      if (lastComparison != 0) {
-
 
7387
        return lastComparison;
-
 
7388
      }
-
 
7389
      lastComparison = TBaseHelper.compareTo(se, typedOther.se);
-
 
7390
      if (lastComparison != 0) {
-
 
7391
        return lastComparison;
-
 
7392
      }
-
 
7393
      return 0;
-
 
7394
    }
-
 
7395
 
-
 
7396
    public void read(TProtocol iprot) throws TException {
-
 
7397
      TField field;
-
 
7398
      iprot.readStructBegin();
-
 
7399
      while (true)
-
 
7400
      {
-
 
7401
        field = iprot.readFieldBegin();
-
 
7402
        if (field.type == TType.STOP) { 
-
 
7403
          break;
-
 
7404
        }
-
 
7405
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
7406
        if (fieldId == null) {
-
 
7407
          TProtocolUtil.skip(iprot, field.type);
-
 
7408
        } else {
-
 
7409
          switch (fieldId) {
-
 
7410
            case SUCCESS:
-
 
7411
              if (field.type == TType.BOOL) {
-
 
7412
                this.success = iprot.readBool();
-
 
7413
                setSuccessIsSet(true);
-
 
7414
              } else { 
-
 
7415
                TProtocolUtil.skip(iprot, field.type);
-
 
7416
              }
-
 
7417
              break;
-
 
7418
            case SE:
-
 
7419
              if (field.type == TType.STRUCT) {
-
 
7420
                this.se = new HelperServiceException();
-
 
7421
                this.se.read(iprot);
-
 
7422
              } else { 
-
 
7423
                TProtocolUtil.skip(iprot, field.type);
-
 
7424
              }
-
 
7425
              break;
-
 
7426
          }
-
 
7427
          iprot.readFieldEnd();
-
 
7428
        }
-
 
7429
      }
-
 
7430
      iprot.readStructEnd();
-
 
7431
      validate();
-
 
7432
    }
-
 
7433
 
-
 
7434
    public void write(TProtocol oprot) throws TException {
-
 
7435
      oprot.writeStructBegin(STRUCT_DESC);
-
 
7436
 
-
 
7437
      if (this.isSetSuccess()) {
-
 
7438
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
7439
        oprot.writeBool(this.success);
-
 
7440
        oprot.writeFieldEnd();
-
 
7441
      } else if (this.isSetSe()) {
-
 
7442
        oprot.writeFieldBegin(SE_FIELD_DESC);
-
 
7443
        this.se.write(oprot);
-
 
7444
        oprot.writeFieldEnd();
-
 
7445
      }
-
 
7446
      oprot.writeFieldStop();
-
 
7447
      oprot.writeStructEnd();
-
 
7448
    }
-
 
7449
 
-
 
7450
    @Override
-
 
7451
    public String toString() {
-
 
7452
      StringBuilder sb = new StringBuilder("updatePassword_result(");
-
 
7453
      boolean first = true;
-
 
7454
 
-
 
7455
      sb.append("success:");
-
 
7456
      sb.append(this.success);
-
 
7457
      first = false;
-
 
7458
      if (!first) sb.append(", ");
-
 
7459
      sb.append("se:");
-
 
7460
      if (this.se == null) {
-
 
7461
        sb.append("null");
4192
      } else {
7462
      } else {
4193
        sb.append(this.se);
7463
        sb.append(this.se);
4194
      }
7464
      }
4195
      first = false;
7465
      first = false;
4196
      sb.append(")");
7466
      sb.append(")");