Subversion Repositories SmartDukaan

Rev

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

Rev 4544 Rev 4693
Line 132... Line 132...
132
     * @param entityIds
132
     * @param entityIds
133
     * @param email
133
     * @param email
134
     */
134
     */
135
    public void shareEntities(List<Long> entityIds, String email) throws HelperServiceException, org.apache.thrift.TException;
135
    public void shareEntities(List<Long> entityIds, String email) throws HelperServiceException, org.apache.thrift.TException;
136
 
136
 
-
 
137
    public List<Agent> getAgents() throws org.apache.thrift.TException;
-
 
138
 
-
 
139
    public boolean validateLogIn(String emailId, String password) throws org.apache.thrift.TException;
-
 
140
 
-
 
141
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException;
-
 
142
 
-
 
143
    public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException;
-
 
144
 
-
 
145
    public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException;
-
 
146
 
137
  }
147
  }
138
 
148
 
139
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
149
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
140
 
150
 
141
    public void saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveUserEmailForSending_call> resultHandler) throws org.apache.thrift.TException;
151
    public void saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveUserEmailForSending_call> resultHandler) throws org.apache.thrift.TException;
Line 174... Line 184...
174
 
184
 
175
    public void authenticateCatalogUser(String username, String password, long role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException;
185
    public void authenticateCatalogUser(String username, String password, long role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException;
176
 
186
 
177
    public void shareEntities(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.shareEntities_call> resultHandler) throws org.apache.thrift.TException;
187
    public void shareEntities(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.shareEntities_call> resultHandler) throws org.apache.thrift.TException;
178
 
188
 
-
 
189
    public void getAgents(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAgents_call> resultHandler) throws org.apache.thrift.TException;
-
 
190
 
-
 
191
    public void validateLogIn(String emailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateLogIn_call> resultHandler) throws org.apache.thrift.TException;
-
 
192
 
-
 
193
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException;
-
 
194
 
-
 
195
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException;
-
 
196
 
-
 
197
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException;
-
 
198
 
179
  }
199
  }
180
 
200
 
181
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
201
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
182
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
202
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
183
      public Factory() {}
203
      public Factory() {}
Line 686... Line 706...
686
        throw result.hse;
706
        throw result.hse;
687
      }
707
      }
688
      return;
708
      return;
689
    }
709
    }
690
 
710
 
-
 
711
    public List<Agent> getAgents() throws org.apache.thrift.TException
-
 
712
    {
-
 
713
      send_getAgents();
-
 
714
      return recv_getAgents();
-
 
715
    }
-
 
716
 
-
 
717
    public void send_getAgents() throws org.apache.thrift.TException
-
 
718
    {
-
 
719
      getAgents_args args = new getAgents_args();
-
 
720
      sendBase("getAgents", args);
-
 
721
    }
-
 
722
 
-
 
723
    public List<Agent> recv_getAgents() throws org.apache.thrift.TException
-
 
724
    {
-
 
725
      getAgents_result result = new getAgents_result();
-
 
726
      receiveBase(result, "getAgents");
-
 
727
      if (result.isSetSuccess()) {
-
 
728
        return result.success;
-
 
729
      }
-
 
730
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAgents failed: unknown result");
-
 
731
    }
-
 
732
 
-
 
733
    public boolean validateLogIn(String emailId, String password) throws org.apache.thrift.TException
-
 
734
    {
-
 
735
      send_validateLogIn(emailId, password);
-
 
736
      return recv_validateLogIn();
-
 
737
    }
-
 
738
 
-
 
739
    public void send_validateLogIn(String emailId, String password) throws org.apache.thrift.TException
-
 
740
    {
-
 
741
      validateLogIn_args args = new validateLogIn_args();
-
 
742
      args.setEmailId(emailId);
-
 
743
      args.setPassword(password);
-
 
744
      sendBase("validateLogIn", args);
-
 
745
    }
-
 
746
 
-
 
747
    public boolean recv_validateLogIn() throws org.apache.thrift.TException
-
 
748
    {
-
 
749
      validateLogIn_result result = new validateLogIn_result();
-
 
750
      receiveBase(result, "validateLogIn");
-
 
751
      if (result.isSetSuccess()) {
-
 
752
        return result.success;
-
 
753
      }
-
 
754
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateLogIn failed: unknown result");
-
 
755
    }
-
 
756
 
-
 
757
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
-
 
758
    {
-
 
759
      send_updatePasswordForAgent(agentEmailId, password);
-
 
760
      recv_updatePasswordForAgent();
-
 
761
    }
-
 
762
 
-
 
763
    public void send_updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
-
 
764
    {
-
 
765
      updatePasswordForAgent_args args = new updatePasswordForAgent_args();
-
 
766
      args.setAgentEmailId(agentEmailId);
-
 
767
      args.setPassword(password);
-
 
768
      sendBase("updatePasswordForAgent", args);
-
 
769
    }
-
 
770
 
-
 
771
    public void recv_updatePasswordForAgent() throws org.apache.thrift.TException
-
 
772
    {
-
 
773
      updatePasswordForAgent_result result = new updatePasswordForAgent_result();
-
 
774
      receiveBase(result, "updatePasswordForAgent");
-
 
775
      return;
-
 
776
    }
-
 
777
 
-
 
778
    public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
-
 
779
    {
-
 
780
      send_getRoleNamesForAgent(agentEmailId);
-
 
781
      return recv_getRoleNamesForAgent();
-
 
782
    }
-
 
783
 
-
 
784
    public void send_getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
-
 
785
    {
-
 
786
      getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
-
 
787
      args.setAgentEmailId(agentEmailId);
-
 
788
      sendBase("getRoleNamesForAgent", args);
-
 
789
    }
-
 
790
 
-
 
791
    public List<String> recv_getRoleNamesForAgent() throws org.apache.thrift.TException
-
 
792
    {
-
 
793
      getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
-
 
794
      receiveBase(result, "getRoleNamesForAgent");
-
 
795
      if (result.isSetSuccess()) {
-
 
796
        return result.success;
-
 
797
      }
-
 
798
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRoleNamesForAgent failed: unknown result");
-
 
799
    }
-
 
800
 
-
 
801
    public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
-
 
802
    {
-
 
803
      send_getPermissionsForRoleName(roleName);
-
 
804
      return recv_getPermissionsForRoleName();
-
 
805
    }
-
 
806
 
-
 
807
    public void send_getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
-
 
808
    {
-
 
809
      getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
-
 
810
      args.setRoleName(roleName);
-
 
811
      sendBase("getPermissionsForRoleName", args);
-
 
812
    }
-
 
813
 
-
 
814
    public List<String> recv_getPermissionsForRoleName() throws org.apache.thrift.TException
-
 
815
    {
-
 
816
      getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
-
 
817
      receiveBase(result, "getPermissionsForRoleName");
-
 
818
      if (result.isSetSuccess()) {
-
 
819
        return result.success;
-
 
820
      }
-
 
821
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPermissionsForRoleName failed: unknown result");
-
 
822
    }
-
 
823
 
691
  }
824
  }
692
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
825
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
693
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
826
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
694
      private org.apache.thrift.async.TAsyncClientManager clientManager;
827
      private org.apache.thrift.async.TAsyncClientManager clientManager;
695
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
828
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 1363... Line 1496...
1363
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1496
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1364
        (new Client(prot)).recv_shareEntities();
1497
        (new Client(prot)).recv_shareEntities();
1365
      }
1498
      }
1366
    }
1499
    }
1367
 
1500
 
-
 
1501
    public void getAgents(org.apache.thrift.async.AsyncMethodCallback<getAgents_call> resultHandler) throws org.apache.thrift.TException {
-
 
1502
      checkReady();
-
 
1503
      getAgents_call method_call = new getAgents_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
1504
      this.___currentMethod = method_call;
-
 
1505
      ___manager.call(method_call);
-
 
1506
    }
-
 
1507
 
-
 
1508
    public static class getAgents_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1509
      public getAgents_call(org.apache.thrift.async.AsyncMethodCallback<getAgents_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
1510
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1511
      }
-
 
1512
 
-
 
1513
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1514
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAgents", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1515
        getAgents_args args = new getAgents_args();
-
 
1516
        args.write(prot);
-
 
1517
        prot.writeMessageEnd();
-
 
1518
      }
-
 
1519
 
-
 
1520
      public List<Agent> getResult() throws org.apache.thrift.TException {
-
 
1521
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1522
          throw new IllegalStateException("Method call not finished!");
-
 
1523
        }
-
 
1524
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1525
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1526
        return (new Client(prot)).recv_getAgents();
-
 
1527
      }
-
 
1528
    }
-
 
1529
 
-
 
1530
    public void validateLogIn(String emailId, String password, org.apache.thrift.async.AsyncMethodCallback<validateLogIn_call> resultHandler) throws org.apache.thrift.TException {
-
 
1531
      checkReady();
-
 
1532
      validateLogIn_call method_call = new validateLogIn_call(emailId, password, resultHandler, this, ___protocolFactory, ___transport);
-
 
1533
      this.___currentMethod = method_call;
-
 
1534
      ___manager.call(method_call);
-
 
1535
    }
-
 
1536
 
-
 
1537
    public static class validateLogIn_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1538
      private String emailId;
-
 
1539
      private String password;
-
 
1540
      public validateLogIn_call(String emailId, String password, org.apache.thrift.async.AsyncMethodCallback<validateLogIn_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
1541
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1542
        this.emailId = emailId;
-
 
1543
        this.password = password;
-
 
1544
      }
-
 
1545
 
-
 
1546
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1547
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateLogIn", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1548
        validateLogIn_args args = new validateLogIn_args();
-
 
1549
        args.setEmailId(emailId);
-
 
1550
        args.setPassword(password);
-
 
1551
        args.write(prot);
-
 
1552
        prot.writeMessageEnd();
-
 
1553
      }
-
 
1554
 
-
 
1555
      public boolean getResult() throws org.apache.thrift.TException {
-
 
1556
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1557
          throw new IllegalStateException("Method call not finished!");
-
 
1558
        }
-
 
1559
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1560
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1561
        return (new Client(prot)).recv_validateLogIn();
-
 
1562
      }
-
 
1563
    }
-
 
1564
 
-
 
1565
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException {
-
 
1566
      checkReady();
-
 
1567
      updatePasswordForAgent_call method_call = new updatePasswordForAgent_call(agentEmailId, password, resultHandler, this, ___protocolFactory, ___transport);
-
 
1568
      this.___currentMethod = method_call;
-
 
1569
      ___manager.call(method_call);
-
 
1570
    }
-
 
1571
 
-
 
1572
    public static class updatePasswordForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1573
      private String agentEmailId;
-
 
1574
      private String password;
-
 
1575
      public updatePasswordForAgent_call(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<updatePasswordForAgent_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
1576
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1577
        this.agentEmailId = agentEmailId;
-
 
1578
        this.password = password;
-
 
1579
      }
-
 
1580
 
-
 
1581
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1582
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePasswordForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1583
        updatePasswordForAgent_args args = new updatePasswordForAgent_args();
-
 
1584
        args.setAgentEmailId(agentEmailId);
-
 
1585
        args.setPassword(password);
-
 
1586
        args.write(prot);
-
 
1587
        prot.writeMessageEnd();
-
 
1588
      }
-
 
1589
 
-
 
1590
      public void getResult() throws org.apache.thrift.TException {
-
 
1591
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1592
          throw new IllegalStateException("Method call not finished!");
-
 
1593
        }
-
 
1594
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1595
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1596
        (new Client(prot)).recv_updatePasswordForAgent();
-
 
1597
      }
-
 
1598
    }
-
 
1599
 
-
 
1600
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException {
-
 
1601
      checkReady();
-
 
1602
      getRoleNamesForAgent_call method_call = new getRoleNamesForAgent_call(agentEmailId, resultHandler, this, ___protocolFactory, ___transport);
-
 
1603
      this.___currentMethod = method_call;
-
 
1604
      ___manager.call(method_call);
-
 
1605
    }
-
 
1606
 
-
 
1607
    public static class getRoleNamesForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1608
      private String agentEmailId;
-
 
1609
      public getRoleNamesForAgent_call(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<getRoleNamesForAgent_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
1610
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1611
        this.agentEmailId = agentEmailId;
-
 
1612
      }
-
 
1613
 
-
 
1614
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1615
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRoleNamesForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1616
        getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
-
 
1617
        args.setAgentEmailId(agentEmailId);
-
 
1618
        args.write(prot);
-
 
1619
        prot.writeMessageEnd();
-
 
1620
      }
-
 
1621
 
-
 
1622
      public List<String> getResult() throws org.apache.thrift.TException {
-
 
1623
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1624
          throw new IllegalStateException("Method call not finished!");
-
 
1625
        }
-
 
1626
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1627
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1628
        return (new Client(prot)).recv_getRoleNamesForAgent();
-
 
1629
      }
-
 
1630
    }
-
 
1631
 
-
 
1632
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException {
-
 
1633
      checkReady();
-
 
1634
      getPermissionsForRoleName_call method_call = new getPermissionsForRoleName_call(roleName, resultHandler, this, ___protocolFactory, ___transport);
-
 
1635
      this.___currentMethod = method_call;
-
 
1636
      ___manager.call(method_call);
-
 
1637
    }
-
 
1638
 
-
 
1639
    public static class getPermissionsForRoleName_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1640
      private String roleName;
-
 
1641
      public getPermissionsForRoleName_call(String roleName, org.apache.thrift.async.AsyncMethodCallback<getPermissionsForRoleName_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
1642
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1643
        this.roleName = roleName;
-
 
1644
      }
-
 
1645
 
-
 
1646
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1647
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPermissionsForRoleName", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1648
        getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
-
 
1649
        args.setRoleName(roleName);
-
 
1650
        args.write(prot);
-
 
1651
        prot.writeMessageEnd();
-
 
1652
      }
-
 
1653
 
-
 
1654
      public List<String> getResult() throws org.apache.thrift.TException {
-
 
1655
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1656
          throw new IllegalStateException("Method call not finished!");
-
 
1657
        }
-
 
1658
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1659
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1660
        return (new Client(prot)).recv_getPermissionsForRoleName();
-
 
1661
      }
-
 
1662
    }
-
 
1663
 
1368
  }
1664
  }
1369
 
1665
 
1370
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1666
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1371
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1667
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1372
    public Processor(I iface) {
1668
    public Processor(I iface) {
Line 1395... Line 1691...
1395
      processMap.put("authenticateStatisticsUser", new authenticateStatisticsUser());
1691
      processMap.put("authenticateStatisticsUser", new authenticateStatisticsUser());
1396
      processMap.put("authenticateReportUser", new authenticateReportUser());
1692
      processMap.put("authenticateReportUser", new authenticateReportUser());
1397
      processMap.put("getReports", new getReports());
1693
      processMap.put("getReports", new getReports());
1398
      processMap.put("authenticateCatalogUser", new authenticateCatalogUser());
1694
      processMap.put("authenticateCatalogUser", new authenticateCatalogUser());
1399
      processMap.put("shareEntities", new shareEntities());
1695
      processMap.put("shareEntities", new shareEntities());
-
 
1696
      processMap.put("getAgents", new getAgents());
-
 
1697
      processMap.put("validateLogIn", new validateLogIn());
-
 
1698
      processMap.put("updatePasswordForAgent", new updatePasswordForAgent());
-
 
1699
      processMap.put("getRoleNamesForAgent", new getRoleNamesForAgent());
-
 
1700
      processMap.put("getPermissionsForRoleName", new getPermissionsForRoleName());
1400
      return processMap;
1701
      return processMap;
1401
    }
1702
    }
1402
 
1703
 
1403
    private static class saveUserEmailForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserEmailForSending_args> {
1704
    private static class saveUserEmailForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserEmailForSending_args> {
1404
      public saveUserEmailForSending() {
1705
      public saveUserEmailForSending() {
Line 1778... Line 2079...
1778
        }
2079
        }
1779
        return result;
2080
        return result;
1780
      }
2081
      }
1781
    }
2082
    }
1782
 
2083
 
-
 
2084
    private static class getAgents<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAgents_args> {
-
 
2085
      public getAgents() {
-
 
2086
        super("getAgents");
-
 
2087
      }
-
 
2088
 
-
 
2089
      protected getAgents_args getEmptyArgsInstance() {
-
 
2090
        return new getAgents_args();
-
 
2091
      }
-
 
2092
 
-
 
2093
      protected getAgents_result getResult(I iface, getAgents_args args) throws org.apache.thrift.TException {
-
 
2094
        getAgents_result result = new getAgents_result();
-
 
2095
        result.success = iface.getAgents();
-
 
2096
        return result;
-
 
2097
      }
-
 
2098
    }
-
 
2099
 
-
 
2100
    private static class validateLogIn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, validateLogIn_args> {
-
 
2101
      public validateLogIn() {
-
 
2102
        super("validateLogIn");
-
 
2103
      }
-
 
2104
 
-
 
2105
      protected validateLogIn_args getEmptyArgsInstance() {
-
 
2106
        return new validateLogIn_args();
-
 
2107
      }
-
 
2108
 
-
 
2109
      protected validateLogIn_result getResult(I iface, validateLogIn_args args) throws org.apache.thrift.TException {
-
 
2110
        validateLogIn_result result = new validateLogIn_result();
-
 
2111
        result.success = iface.validateLogIn(args.emailId, args.password);
-
 
2112
        result.setSuccessIsSet(true);
-
 
2113
        return result;
-
 
2114
      }
-
 
2115
    }
-
 
2116
 
-
 
2117
    private static class updatePasswordForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePasswordForAgent_args> {
-
 
2118
      public updatePasswordForAgent() {
-
 
2119
        super("updatePasswordForAgent");
-
 
2120
      }
-
 
2121
 
-
 
2122
      protected updatePasswordForAgent_args getEmptyArgsInstance() {
-
 
2123
        return new updatePasswordForAgent_args();
-
 
2124
      }
-
 
2125
 
-
 
2126
      protected updatePasswordForAgent_result getResult(I iface, updatePasswordForAgent_args args) throws org.apache.thrift.TException {
-
 
2127
        updatePasswordForAgent_result result = new updatePasswordForAgent_result();
-
 
2128
        iface.updatePasswordForAgent(args.agentEmailId, args.password);
-
 
2129
        return result;
-
 
2130
      }
-
 
2131
    }
-
 
2132
 
-
 
2133
    private static class getRoleNamesForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRoleNamesForAgent_args> {
-
 
2134
      public getRoleNamesForAgent() {
-
 
2135
        super("getRoleNamesForAgent");
-
 
2136
      }
-
 
2137
 
-
 
2138
      protected getRoleNamesForAgent_args getEmptyArgsInstance() {
-
 
2139
        return new getRoleNamesForAgent_args();
-
 
2140
      }
-
 
2141
 
-
 
2142
      protected getRoleNamesForAgent_result getResult(I iface, getRoleNamesForAgent_args args) throws org.apache.thrift.TException {
-
 
2143
        getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
-
 
2144
        result.success = iface.getRoleNamesForAgent(args.agentEmailId);
-
 
2145
        return result;
-
 
2146
      }
-
 
2147
    }
-
 
2148
 
-
 
2149
    private static class getPermissionsForRoleName<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPermissionsForRoleName_args> {
-
 
2150
      public getPermissionsForRoleName() {
-
 
2151
        super("getPermissionsForRoleName");
-
 
2152
      }
-
 
2153
 
-
 
2154
      protected getPermissionsForRoleName_args getEmptyArgsInstance() {
-
 
2155
        return new getPermissionsForRoleName_args();
-
 
2156
      }
-
 
2157
 
-
 
2158
      protected getPermissionsForRoleName_result getResult(I iface, getPermissionsForRoleName_args args) throws org.apache.thrift.TException {
-
 
2159
        getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
-
 
2160
        result.success = iface.getPermissionsForRoleName(args.roleName);
-
 
2161
        return result;
-
 
2162
      }
-
 
2163
    }
-
 
2164
 
1783
  }
2165
  }
1784
 
2166
 
1785
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
2167
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
1786
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
2168
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
1787
 
2169
 
Line 15628... Line 16010...
15628
      }
16010
      }
15629
      first = false;
16011
      first = false;
15630
      sb.append(")");
16012
      sb.append(")");
15631
      return sb.toString();
16013
      return sb.toString();
15632
    }
16014
    }
-
 
16015
 
-
 
16016
    public void validate() throws org.apache.thrift.TException {
-
 
16017
      // check for required fields
-
 
16018
    }
-
 
16019
 
-
 
16020
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
16021
      try {
-
 
16022
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
16023
      } catch (org.apache.thrift.TException te) {
-
 
16024
        throw new java.io.IOException(te);
-
 
16025
      }
-
 
16026
    }
-
 
16027
 
-
 
16028
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
16029
      try {
-
 
16030
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
16031
      } catch (org.apache.thrift.TException te) {
-
 
16032
        throw new java.io.IOException(te);
-
 
16033
      }
-
 
16034
    }
-
 
16035
 
-
 
16036
  }
-
 
16037
 
-
 
16038
  public static class getAgents_args implements org.apache.thrift.TBase<getAgents_args, getAgents_args._Fields>, java.io.Serializable, Cloneable   {
-
 
16039
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_args");
-
 
16040
 
-
 
16041
 
-
 
16042
 
-
 
16043
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
16044
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
16045
;
-
 
16046
 
-
 
16047
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
16048
 
-
 
16049
      static {
-
 
16050
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
16051
          byName.put(field.getFieldName(), field);
-
 
16052
        }
-
 
16053
      }
-
 
16054
 
-
 
16055
      /**
-
 
16056
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
16057
       */
-
 
16058
      public static _Fields findByThriftId(int fieldId) {
-
 
16059
        switch(fieldId) {
-
 
16060
          default:
-
 
16061
            return null;
-
 
16062
        }
-
 
16063
      }
-
 
16064
 
-
 
16065
      /**
-
 
16066
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
16067
       * if it is not found.
-
 
16068
       */
-
 
16069
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
16070
        _Fields fields = findByThriftId(fieldId);
-
 
16071
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
16072
        return fields;
-
 
16073
      }
-
 
16074
 
-
 
16075
      /**
-
 
16076
       * Find the _Fields constant that matches name, or null if its not found.
-
 
16077
       */
-
 
16078
      public static _Fields findByName(String name) {
-
 
16079
        return byName.get(name);
-
 
16080
      }
-
 
16081
 
-
 
16082
      private final short _thriftId;
-
 
16083
      private final String _fieldName;
-
 
16084
 
-
 
16085
      _Fields(short thriftId, String fieldName) {
-
 
16086
        _thriftId = thriftId;
-
 
16087
        _fieldName = fieldName;
-
 
16088
      }
-
 
16089
 
-
 
16090
      public short getThriftFieldId() {
-
 
16091
        return _thriftId;
-
 
16092
      }
-
 
16093
 
-
 
16094
      public String getFieldName() {
-
 
16095
        return _fieldName;
-
 
16096
      }
-
 
16097
    }
-
 
16098
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
16099
    static {
-
 
16100
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
16101
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
16102
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_args.class, metaDataMap);
-
 
16103
    }
-
 
16104
 
-
 
16105
    public getAgents_args() {
-
 
16106
    }
-
 
16107
 
-
 
16108
    /**
-
 
16109
     * Performs a deep copy on <i>other</i>.
-
 
16110
     */
-
 
16111
    public getAgents_args(getAgents_args other) {
-
 
16112
    }
-
 
16113
 
-
 
16114
    public getAgents_args deepCopy() {
-
 
16115
      return new getAgents_args(this);
-
 
16116
    }
-
 
16117
 
-
 
16118
    @Override
-
 
16119
    public void clear() {
-
 
16120
    }
-
 
16121
 
-
 
16122
    public void setFieldValue(_Fields field, Object value) {
-
 
16123
      switch (field) {
-
 
16124
      }
-
 
16125
    }
-
 
16126
 
-
 
16127
    public Object getFieldValue(_Fields field) {
-
 
16128
      switch (field) {
-
 
16129
      }
-
 
16130
      throw new IllegalStateException();
-
 
16131
    }
-
 
16132
 
-
 
16133
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
16134
    public boolean isSet(_Fields field) {
-
 
16135
      if (field == null) {
-
 
16136
        throw new IllegalArgumentException();
-
 
16137
      }
-
 
16138
 
-
 
16139
      switch (field) {
-
 
16140
      }
-
 
16141
      throw new IllegalStateException();
-
 
16142
    }
-
 
16143
 
-
 
16144
    @Override
-
 
16145
    public boolean equals(Object that) {
-
 
16146
      if (that == null)
-
 
16147
        return false;
-
 
16148
      if (that instanceof getAgents_args)
-
 
16149
        return this.equals((getAgents_args)that);
-
 
16150
      return false;
-
 
16151
    }
-
 
16152
 
-
 
16153
    public boolean equals(getAgents_args that) {
-
 
16154
      if (that == null)
-
 
16155
        return false;
-
 
16156
 
-
 
16157
      return true;
-
 
16158
    }
-
 
16159
 
-
 
16160
    @Override
-
 
16161
    public int hashCode() {
-
 
16162
      return 0;
-
 
16163
    }
-
 
16164
 
-
 
16165
    public int compareTo(getAgents_args other) {
-
 
16166
      if (!getClass().equals(other.getClass())) {
-
 
16167
        return getClass().getName().compareTo(other.getClass().getName());
-
 
16168
      }
-
 
16169
 
-
 
16170
      int lastComparison = 0;
-
 
16171
      getAgents_args typedOther = (getAgents_args)other;
-
 
16172
 
-
 
16173
      return 0;
-
 
16174
    }
-
 
16175
 
-
 
16176
    public _Fields fieldForId(int fieldId) {
-
 
16177
      return _Fields.findByThriftId(fieldId);
-
 
16178
    }
-
 
16179
 
-
 
16180
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
16181
      org.apache.thrift.protocol.TField field;
-
 
16182
      iprot.readStructBegin();
-
 
16183
      while (true)
-
 
16184
      {
-
 
16185
        field = iprot.readFieldBegin();
-
 
16186
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
16187
          break;
-
 
16188
        }
-
 
16189
        switch (field.id) {
-
 
16190
          default:
-
 
16191
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
16192
        }
-
 
16193
        iprot.readFieldEnd();
-
 
16194
      }
-
 
16195
      iprot.readStructEnd();
-
 
16196
      validate();
-
 
16197
    }
-
 
16198
 
-
 
16199
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
16200
      validate();
-
 
16201
 
-
 
16202
      oprot.writeStructBegin(STRUCT_DESC);
-
 
16203
      oprot.writeFieldStop();
-
 
16204
      oprot.writeStructEnd();
-
 
16205
    }
-
 
16206
 
-
 
16207
    @Override
-
 
16208
    public String toString() {
-
 
16209
      StringBuilder sb = new StringBuilder("getAgents_args(");
-
 
16210
      boolean first = true;
-
 
16211
 
-
 
16212
      sb.append(")");
-
 
16213
      return sb.toString();
-
 
16214
    }
-
 
16215
 
-
 
16216
    public void validate() throws org.apache.thrift.TException {
-
 
16217
      // check for required fields
-
 
16218
    }
-
 
16219
 
-
 
16220
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
16221
      try {
-
 
16222
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
16223
      } catch (org.apache.thrift.TException te) {
-
 
16224
        throw new java.io.IOException(te);
-
 
16225
      }
-
 
16226
    }
-
 
16227
 
-
 
16228
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
16229
      try {
-
 
16230
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
16231
      } catch (org.apache.thrift.TException te) {
-
 
16232
        throw new java.io.IOException(te);
-
 
16233
      }
-
 
16234
    }
-
 
16235
 
-
 
16236
  }
-
 
16237
 
-
 
16238
  public static class getAgents_result implements org.apache.thrift.TBase<getAgents_result, getAgents_result._Fields>, java.io.Serializable, Cloneable   {
-
 
16239
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_result");
-
 
16240
 
-
 
16241
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
16242
 
-
 
16243
    private List<Agent> success; // required
-
 
16244
 
-
 
16245
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
16246
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
16247
      SUCCESS((short)0, "success");
-
 
16248
 
-
 
16249
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
16250
 
-
 
16251
      static {
-
 
16252
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
16253
          byName.put(field.getFieldName(), field);
-
 
16254
        }
-
 
16255
      }
-
 
16256
 
-
 
16257
      /**
-
 
16258
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
16259
       */
-
 
16260
      public static _Fields findByThriftId(int fieldId) {
-
 
16261
        switch(fieldId) {
-
 
16262
          case 0: // SUCCESS
-
 
16263
            return SUCCESS;
-
 
16264
          default:
-
 
16265
            return null;
-
 
16266
        }
-
 
16267
      }
-
 
16268
 
-
 
16269
      /**
-
 
16270
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
16271
       * if it is not found.
-
 
16272
       */
-
 
16273
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
16274
        _Fields fields = findByThriftId(fieldId);
-
 
16275
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
16276
        return fields;
-
 
16277
      }
-
 
16278
 
-
 
16279
      /**
-
 
16280
       * Find the _Fields constant that matches name, or null if its not found.
-
 
16281
       */
-
 
16282
      public static _Fields findByName(String name) {
-
 
16283
        return byName.get(name);
-
 
16284
      }
-
 
16285
 
-
 
16286
      private final short _thriftId;
-
 
16287
      private final String _fieldName;
-
 
16288
 
-
 
16289
      _Fields(short thriftId, String fieldName) {
-
 
16290
        _thriftId = thriftId;
-
 
16291
        _fieldName = fieldName;
-
 
16292
      }
-
 
16293
 
-
 
16294
      public short getThriftFieldId() {
-
 
16295
        return _thriftId;
-
 
16296
      }
-
 
16297
 
-
 
16298
      public String getFieldName() {
-
 
16299
        return _fieldName;
-
 
16300
      }
-
 
16301
    }
-
 
16302
 
-
 
16303
    // isset id assignments
-
 
16304
 
-
 
16305
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
16306
    static {
-
 
16307
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
16308
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
16309
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
16310
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Agent.class))));
-
 
16311
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
16312
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_result.class, metaDataMap);
-
 
16313
    }
-
 
16314
 
-
 
16315
    public getAgents_result() {
-
 
16316
    }
-
 
16317
 
-
 
16318
    public getAgents_result(
-
 
16319
      List<Agent> success)
-
 
16320
    {
-
 
16321
      this();
-
 
16322
      this.success = success;
-
 
16323
    }
-
 
16324
 
-
 
16325
    /**
-
 
16326
     * Performs a deep copy on <i>other</i>.
-
 
16327
     */
-
 
16328
    public getAgents_result(getAgents_result other) {
-
 
16329
      if (other.isSetSuccess()) {
-
 
16330
        List<Agent> __this__success = new ArrayList<Agent>();
-
 
16331
        for (Agent other_element : other.success) {
-
 
16332
          __this__success.add(new Agent(other_element));
-
 
16333
        }
-
 
16334
        this.success = __this__success;
-
 
16335
      }
-
 
16336
    }
-
 
16337
 
-
 
16338
    public getAgents_result deepCopy() {
-
 
16339
      return new getAgents_result(this);
-
 
16340
    }
-
 
16341
 
-
 
16342
    @Override
-
 
16343
    public void clear() {
-
 
16344
      this.success = null;
-
 
16345
    }
-
 
16346
 
-
 
16347
    public int getSuccessSize() {
-
 
16348
      return (this.success == null) ? 0 : this.success.size();
-
 
16349
    }
-
 
16350
 
-
 
16351
    public java.util.Iterator<Agent> getSuccessIterator() {
-
 
16352
      return (this.success == null) ? null : this.success.iterator();
-
 
16353
    }
-
 
16354
 
-
 
16355
    public void addToSuccess(Agent elem) {
-
 
16356
      if (this.success == null) {
-
 
16357
        this.success = new ArrayList<Agent>();
-
 
16358
      }
-
 
16359
      this.success.add(elem);
-
 
16360
    }
-
 
16361
 
-
 
16362
    public List<Agent> getSuccess() {
-
 
16363
      return this.success;
-
 
16364
    }
-
 
16365
 
-
 
16366
    public void setSuccess(List<Agent> success) {
-
 
16367
      this.success = success;
-
 
16368
    }
-
 
16369
 
-
 
16370
    public void unsetSuccess() {
-
 
16371
      this.success = null;
-
 
16372
    }
-
 
16373
 
-
 
16374
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
16375
    public boolean isSetSuccess() {
-
 
16376
      return this.success != null;
-
 
16377
    }
-
 
16378
 
-
 
16379
    public void setSuccessIsSet(boolean value) {
-
 
16380
      if (!value) {
-
 
16381
        this.success = null;
-
 
16382
      }
-
 
16383
    }
-
 
16384
 
-
 
16385
    public void setFieldValue(_Fields field, Object value) {
-
 
16386
      switch (field) {
-
 
16387
      case SUCCESS:
-
 
16388
        if (value == null) {
-
 
16389
          unsetSuccess();
-
 
16390
        } else {
-
 
16391
          setSuccess((List<Agent>)value);
-
 
16392
        }
-
 
16393
        break;
-
 
16394
 
-
 
16395
      }
-
 
16396
    }
-
 
16397
 
-
 
16398
    public Object getFieldValue(_Fields field) {
-
 
16399
      switch (field) {
-
 
16400
      case SUCCESS:
-
 
16401
        return getSuccess();
-
 
16402
 
-
 
16403
      }
-
 
16404
      throw new IllegalStateException();
-
 
16405
    }
-
 
16406
 
-
 
16407
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
16408
    public boolean isSet(_Fields field) {
-
 
16409
      if (field == null) {
-
 
16410
        throw new IllegalArgumentException();
-
 
16411
      }
-
 
16412
 
-
 
16413
      switch (field) {
-
 
16414
      case SUCCESS:
-
 
16415
        return isSetSuccess();
-
 
16416
      }
-
 
16417
      throw new IllegalStateException();
-
 
16418
    }
-
 
16419
 
-
 
16420
    @Override
-
 
16421
    public boolean equals(Object that) {
-
 
16422
      if (that == null)
-
 
16423
        return false;
-
 
16424
      if (that instanceof getAgents_result)
-
 
16425
        return this.equals((getAgents_result)that);
-
 
16426
      return false;
-
 
16427
    }
-
 
16428
 
-
 
16429
    public boolean equals(getAgents_result that) {
-
 
16430
      if (that == null)
-
 
16431
        return false;
-
 
16432
 
-
 
16433
      boolean this_present_success = true && this.isSetSuccess();
-
 
16434
      boolean that_present_success = true && that.isSetSuccess();
-
 
16435
      if (this_present_success || that_present_success) {
-
 
16436
        if (!(this_present_success && that_present_success))
-
 
16437
          return false;
-
 
16438
        if (!this.success.equals(that.success))
-
 
16439
          return false;
-
 
16440
      }
-
 
16441
 
-
 
16442
      return true;
-
 
16443
    }
-
 
16444
 
-
 
16445
    @Override
-
 
16446
    public int hashCode() {
-
 
16447
      return 0;
-
 
16448
    }
-
 
16449
 
-
 
16450
    public int compareTo(getAgents_result other) {
-
 
16451
      if (!getClass().equals(other.getClass())) {
-
 
16452
        return getClass().getName().compareTo(other.getClass().getName());
-
 
16453
      }
-
 
16454
 
-
 
16455
      int lastComparison = 0;
-
 
16456
      getAgents_result typedOther = (getAgents_result)other;
-
 
16457
 
-
 
16458
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
16459
      if (lastComparison != 0) {
-
 
16460
        return lastComparison;
-
 
16461
      }
-
 
16462
      if (isSetSuccess()) {
-
 
16463
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
16464
        if (lastComparison != 0) {
-
 
16465
          return lastComparison;
-
 
16466
        }
-
 
16467
      }
-
 
16468
      return 0;
-
 
16469
    }
-
 
16470
 
-
 
16471
    public _Fields fieldForId(int fieldId) {
-
 
16472
      return _Fields.findByThriftId(fieldId);
-
 
16473
    }
-
 
16474
 
-
 
16475
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
16476
      org.apache.thrift.protocol.TField field;
-
 
16477
      iprot.readStructBegin();
-
 
16478
      while (true)
-
 
16479
      {
-
 
16480
        field = iprot.readFieldBegin();
-
 
16481
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
16482
          break;
-
 
16483
        }
-
 
16484
        switch (field.id) {
-
 
16485
          case 0: // SUCCESS
-
 
16486
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
16487
              {
-
 
16488
                org.apache.thrift.protocol.TList _list25 = iprot.readListBegin();
-
 
16489
                this.success = new ArrayList<Agent>(_list25.size);
-
 
16490
                for (int _i26 = 0; _i26 < _list25.size; ++_i26)
-
 
16491
                {
-
 
16492
                  Agent _elem27; // required
-
 
16493
                  _elem27 = new Agent();
-
 
16494
                  _elem27.read(iprot);
-
 
16495
                  this.success.add(_elem27);
-
 
16496
                }
-
 
16497
                iprot.readListEnd();
-
 
16498
              }
-
 
16499
            } else { 
-
 
16500
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
16501
            }
-
 
16502
            break;
-
 
16503
          default:
-
 
16504
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
16505
        }
-
 
16506
        iprot.readFieldEnd();
-
 
16507
      }
-
 
16508
      iprot.readStructEnd();
-
 
16509
      validate();
-
 
16510
    }
-
 
16511
 
-
 
16512
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
16513
      oprot.writeStructBegin(STRUCT_DESC);
-
 
16514
 
-
 
16515
      if (this.isSetSuccess()) {
-
 
16516
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
16517
        {
-
 
16518
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
16519
          for (Agent _iter28 : this.success)
-
 
16520
          {
-
 
16521
            _iter28.write(oprot);
-
 
16522
          }
-
 
16523
          oprot.writeListEnd();
-
 
16524
        }
-
 
16525
        oprot.writeFieldEnd();
-
 
16526
      }
-
 
16527
      oprot.writeFieldStop();
-
 
16528
      oprot.writeStructEnd();
-
 
16529
    }
-
 
16530
 
-
 
16531
    @Override
-
 
16532
    public String toString() {
-
 
16533
      StringBuilder sb = new StringBuilder("getAgents_result(");
-
 
16534
      boolean first = true;
-
 
16535
 
-
 
16536
      sb.append("success:");
-
 
16537
      if (this.success == null) {
-
 
16538
        sb.append("null");
-
 
16539
      } else {
-
 
16540
        sb.append(this.success);
-
 
16541
      }
-
 
16542
      first = false;
-
 
16543
      sb.append(")");
-
 
16544
      return sb.toString();
-
 
16545
    }
-
 
16546
 
-
 
16547
    public void validate() throws org.apache.thrift.TException {
-
 
16548
      // check for required fields
-
 
16549
    }
-
 
16550
 
-
 
16551
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
16552
      try {
-
 
16553
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
16554
      } catch (org.apache.thrift.TException te) {
-
 
16555
        throw new java.io.IOException(te);
-
 
16556
      }
-
 
16557
    }
-
 
16558
 
-
 
16559
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
16560
      try {
-
 
16561
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
16562
      } catch (org.apache.thrift.TException te) {
-
 
16563
        throw new java.io.IOException(te);
-
 
16564
      }
-
 
16565
    }
-
 
16566
 
-
 
16567
  }
-
 
16568
 
-
 
16569
  public static class validateLogIn_args implements org.apache.thrift.TBase<validateLogIn_args, validateLogIn_args._Fields>, java.io.Serializable, Cloneable   {
-
 
16570
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateLogIn_args");
-
 
16571
 
-
 
16572
    private static final org.apache.thrift.protocol.TField EMAIL_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("emailId", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
16573
    private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
16574
 
-
 
16575
    private String emailId; // required
-
 
16576
    private String password; // required
-
 
16577
 
-
 
16578
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
16579
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
16580
      EMAIL_ID((short)1, "emailId"),
-
 
16581
      PASSWORD((short)2, "password");
-
 
16582
 
-
 
16583
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
16584
 
-
 
16585
      static {
-
 
16586
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
16587
          byName.put(field.getFieldName(), field);
-
 
16588
        }
-
 
16589
      }
-
 
16590
 
-
 
16591
      /**
-
 
16592
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
16593
       */
-
 
16594
      public static _Fields findByThriftId(int fieldId) {
-
 
16595
        switch(fieldId) {
-
 
16596
          case 1: // EMAIL_ID
-
 
16597
            return EMAIL_ID;
-
 
16598
          case 2: // PASSWORD
-
 
16599
            return PASSWORD;
-
 
16600
          default:
-
 
16601
            return null;
-
 
16602
        }
-
 
16603
      }
-
 
16604
 
-
 
16605
      /**
-
 
16606
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
16607
       * if it is not found.
-
 
16608
       */
-
 
16609
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
16610
        _Fields fields = findByThriftId(fieldId);
-
 
16611
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
16612
        return fields;
-
 
16613
      }
-
 
16614
 
-
 
16615
      /**
-
 
16616
       * Find the _Fields constant that matches name, or null if its not found.
-
 
16617
       */
-
 
16618
      public static _Fields findByName(String name) {
-
 
16619
        return byName.get(name);
-
 
16620
      }
-
 
16621
 
-
 
16622
      private final short _thriftId;
-
 
16623
      private final String _fieldName;
-
 
16624
 
-
 
16625
      _Fields(short thriftId, String fieldName) {
-
 
16626
        _thriftId = thriftId;
-
 
16627
        _fieldName = fieldName;
-
 
16628
      }
-
 
16629
 
-
 
16630
      public short getThriftFieldId() {
-
 
16631
        return _thriftId;
-
 
16632
      }
-
 
16633
 
-
 
16634
      public String getFieldName() {
-
 
16635
        return _fieldName;
-
 
16636
      }
-
 
16637
    }
-
 
16638
 
-
 
16639
    // isset id assignments
-
 
16640
 
-
 
16641
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
16642
    static {
-
 
16643
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
16644
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
16645
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
16646
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
16647
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
16648
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
16649
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateLogIn_args.class, metaDataMap);
-
 
16650
    }
-
 
16651
 
-
 
16652
    public validateLogIn_args() {
-
 
16653
    }
-
 
16654
 
-
 
16655
    public validateLogIn_args(
-
 
16656
      String emailId,
-
 
16657
      String password)
-
 
16658
    {
-
 
16659
      this();
-
 
16660
      this.emailId = emailId;
-
 
16661
      this.password = password;
-
 
16662
    }
-
 
16663
 
-
 
16664
    /**
-
 
16665
     * Performs a deep copy on <i>other</i>.
-
 
16666
     */
-
 
16667
    public validateLogIn_args(validateLogIn_args other) {
-
 
16668
      if (other.isSetEmailId()) {
-
 
16669
        this.emailId = other.emailId;
-
 
16670
      }
-
 
16671
      if (other.isSetPassword()) {
-
 
16672
        this.password = other.password;
-
 
16673
      }
-
 
16674
    }
-
 
16675
 
-
 
16676
    public validateLogIn_args deepCopy() {
-
 
16677
      return new validateLogIn_args(this);
-
 
16678
    }
-
 
16679
 
-
 
16680
    @Override
-
 
16681
    public void clear() {
-
 
16682
      this.emailId = null;
-
 
16683
      this.password = null;
-
 
16684
    }
-
 
16685
 
-
 
16686
    public String getEmailId() {
-
 
16687
      return this.emailId;
-
 
16688
    }
-
 
16689
 
-
 
16690
    public void setEmailId(String emailId) {
-
 
16691
      this.emailId = emailId;
-
 
16692
    }
-
 
16693
 
-
 
16694
    public void unsetEmailId() {
-
 
16695
      this.emailId = null;
-
 
16696
    }
-
 
16697
 
-
 
16698
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
-
 
16699
    public boolean isSetEmailId() {
-
 
16700
      return this.emailId != null;
-
 
16701
    }
-
 
16702
 
-
 
16703
    public void setEmailIdIsSet(boolean value) {
-
 
16704
      if (!value) {
-
 
16705
        this.emailId = null;
-
 
16706
      }
-
 
16707
    }
-
 
16708
 
-
 
16709
    public String getPassword() {
-
 
16710
      return this.password;
-
 
16711
    }
-
 
16712
 
-
 
16713
    public void setPassword(String password) {
-
 
16714
      this.password = password;
-
 
16715
    }
-
 
16716
 
-
 
16717
    public void unsetPassword() {
-
 
16718
      this.password = null;
-
 
16719
    }
-
 
16720
 
-
 
16721
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
-
 
16722
    public boolean isSetPassword() {
-
 
16723
      return this.password != null;
-
 
16724
    }
-
 
16725
 
-
 
16726
    public void setPasswordIsSet(boolean value) {
-
 
16727
      if (!value) {
-
 
16728
        this.password = null;
-
 
16729
      }
-
 
16730
    }
-
 
16731
 
-
 
16732
    public void setFieldValue(_Fields field, Object value) {
-
 
16733
      switch (field) {
-
 
16734
      case EMAIL_ID:
-
 
16735
        if (value == null) {
-
 
16736
          unsetEmailId();
-
 
16737
        } else {
-
 
16738
          setEmailId((String)value);
-
 
16739
        }
-
 
16740
        break;
-
 
16741
 
-
 
16742
      case PASSWORD:
-
 
16743
        if (value == null) {
-
 
16744
          unsetPassword();
-
 
16745
        } else {
-
 
16746
          setPassword((String)value);
-
 
16747
        }
-
 
16748
        break;
-
 
16749
 
-
 
16750
      }
-
 
16751
    }
-
 
16752
 
-
 
16753
    public Object getFieldValue(_Fields field) {
-
 
16754
      switch (field) {
-
 
16755
      case EMAIL_ID:
-
 
16756
        return getEmailId();
-
 
16757
 
-
 
16758
      case PASSWORD:
-
 
16759
        return getPassword();
-
 
16760
 
-
 
16761
      }
-
 
16762
      throw new IllegalStateException();
-
 
16763
    }
-
 
16764
 
-
 
16765
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
16766
    public boolean isSet(_Fields field) {
-
 
16767
      if (field == null) {
-
 
16768
        throw new IllegalArgumentException();
-
 
16769
      }
-
 
16770
 
-
 
16771
      switch (field) {
-
 
16772
      case EMAIL_ID:
-
 
16773
        return isSetEmailId();
-
 
16774
      case PASSWORD:
-
 
16775
        return isSetPassword();
-
 
16776
      }
-
 
16777
      throw new IllegalStateException();
-
 
16778
    }
-
 
16779
 
-
 
16780
    @Override
-
 
16781
    public boolean equals(Object that) {
-
 
16782
      if (that == null)
-
 
16783
        return false;
-
 
16784
      if (that instanceof validateLogIn_args)
-
 
16785
        return this.equals((validateLogIn_args)that);
-
 
16786
      return false;
-
 
16787
    }
-
 
16788
 
-
 
16789
    public boolean equals(validateLogIn_args that) {
-
 
16790
      if (that == null)
-
 
16791
        return false;
-
 
16792
 
-
 
16793
      boolean this_present_emailId = true && this.isSetEmailId();
-
 
16794
      boolean that_present_emailId = true && that.isSetEmailId();
-
 
16795
      if (this_present_emailId || that_present_emailId) {
-
 
16796
        if (!(this_present_emailId && that_present_emailId))
-
 
16797
          return false;
-
 
16798
        if (!this.emailId.equals(that.emailId))
-
 
16799
          return false;
-
 
16800
      }
-
 
16801
 
-
 
16802
      boolean this_present_password = true && this.isSetPassword();
-
 
16803
      boolean that_present_password = true && that.isSetPassword();
-
 
16804
      if (this_present_password || that_present_password) {
-
 
16805
        if (!(this_present_password && that_present_password))
-
 
16806
          return false;
-
 
16807
        if (!this.password.equals(that.password))
-
 
16808
          return false;
-
 
16809
      }
-
 
16810
 
-
 
16811
      return true;
-
 
16812
    }
-
 
16813
 
-
 
16814
    @Override
-
 
16815
    public int hashCode() {
-
 
16816
      return 0;
-
 
16817
    }
-
 
16818
 
-
 
16819
    public int compareTo(validateLogIn_args other) {
-
 
16820
      if (!getClass().equals(other.getClass())) {
-
 
16821
        return getClass().getName().compareTo(other.getClass().getName());
-
 
16822
      }
-
 
16823
 
-
 
16824
      int lastComparison = 0;
-
 
16825
      validateLogIn_args typedOther = (validateLogIn_args)other;
-
 
16826
 
-
 
16827
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
-
 
16828
      if (lastComparison != 0) {
-
 
16829
        return lastComparison;
-
 
16830
      }
-
 
16831
      if (isSetEmailId()) {
-
 
16832
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
-
 
16833
        if (lastComparison != 0) {
-
 
16834
          return lastComparison;
-
 
16835
        }
-
 
16836
      }
-
 
16837
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
-
 
16838
      if (lastComparison != 0) {
-
 
16839
        return lastComparison;
-
 
16840
      }
-
 
16841
      if (isSetPassword()) {
-
 
16842
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
-
 
16843
        if (lastComparison != 0) {
-
 
16844
          return lastComparison;
-
 
16845
        }
-
 
16846
      }
-
 
16847
      return 0;
-
 
16848
    }
-
 
16849
 
-
 
16850
    public _Fields fieldForId(int fieldId) {
-
 
16851
      return _Fields.findByThriftId(fieldId);
-
 
16852
    }
-
 
16853
 
-
 
16854
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
16855
      org.apache.thrift.protocol.TField field;
-
 
16856
      iprot.readStructBegin();
-
 
16857
      while (true)
-
 
16858
      {
-
 
16859
        field = iprot.readFieldBegin();
-
 
16860
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
16861
          break;
-
 
16862
        }
-
 
16863
        switch (field.id) {
-
 
16864
          case 1: // EMAIL_ID
-
 
16865
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
16866
              this.emailId = iprot.readString();
-
 
16867
            } else { 
-
 
16868
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
16869
            }
-
 
16870
            break;
-
 
16871
          case 2: // PASSWORD
-
 
16872
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
16873
              this.password = iprot.readString();
-
 
16874
            } else { 
-
 
16875
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
16876
            }
-
 
16877
            break;
-
 
16878
          default:
-
 
16879
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
16880
        }
-
 
16881
        iprot.readFieldEnd();
-
 
16882
      }
-
 
16883
      iprot.readStructEnd();
-
 
16884
      validate();
-
 
16885
    }
-
 
16886
 
-
 
16887
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
16888
      validate();
-
 
16889
 
-
 
16890
      oprot.writeStructBegin(STRUCT_DESC);
-
 
16891
      if (this.emailId != null) {
-
 
16892
        oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
-
 
16893
        oprot.writeString(this.emailId);
-
 
16894
        oprot.writeFieldEnd();
-
 
16895
      }
-
 
16896
      if (this.password != null) {
-
 
16897
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
-
 
16898
        oprot.writeString(this.password);
-
 
16899
        oprot.writeFieldEnd();
-
 
16900
      }
-
 
16901
      oprot.writeFieldStop();
-
 
16902
      oprot.writeStructEnd();
-
 
16903
    }
-
 
16904
 
-
 
16905
    @Override
-
 
16906
    public String toString() {
-
 
16907
      StringBuilder sb = new StringBuilder("validateLogIn_args(");
-
 
16908
      boolean first = true;
-
 
16909
 
-
 
16910
      sb.append("emailId:");
-
 
16911
      if (this.emailId == null) {
-
 
16912
        sb.append("null");
-
 
16913
      } else {
-
 
16914
        sb.append(this.emailId);
-
 
16915
      }
-
 
16916
      first = false;
-
 
16917
      if (!first) sb.append(", ");
-
 
16918
      sb.append("password:");
-
 
16919
      if (this.password == null) {
-
 
16920
        sb.append("null");
-
 
16921
      } else {
-
 
16922
        sb.append(this.password);
-
 
16923
      }
-
 
16924
      first = false;
-
 
16925
      sb.append(")");
-
 
16926
      return sb.toString();
-
 
16927
    }
-
 
16928
 
-
 
16929
    public void validate() throws org.apache.thrift.TException {
-
 
16930
      // check for required fields
-
 
16931
    }
-
 
16932
 
-
 
16933
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
16934
      try {
-
 
16935
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
16936
      } catch (org.apache.thrift.TException te) {
-
 
16937
        throw new java.io.IOException(te);
-
 
16938
      }
-
 
16939
    }
-
 
16940
 
-
 
16941
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
16942
      try {
-
 
16943
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
16944
      } catch (org.apache.thrift.TException te) {
-
 
16945
        throw new java.io.IOException(te);
-
 
16946
      }
-
 
16947
    }
-
 
16948
 
-
 
16949
  }
-
 
16950
 
-
 
16951
  public static class validateLogIn_result implements org.apache.thrift.TBase<validateLogIn_result, validateLogIn_result._Fields>, java.io.Serializable, Cloneable   {
-
 
16952
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateLogIn_result");
-
 
16953
 
-
 
16954
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
16955
 
-
 
16956
    private boolean success; // required
-
 
16957
 
-
 
16958
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
16959
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
16960
      SUCCESS((short)0, "success");
-
 
16961
 
-
 
16962
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
16963
 
-
 
16964
      static {
-
 
16965
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
16966
          byName.put(field.getFieldName(), field);
-
 
16967
        }
-
 
16968
      }
-
 
16969
 
-
 
16970
      /**
-
 
16971
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
16972
       */
-
 
16973
      public static _Fields findByThriftId(int fieldId) {
-
 
16974
        switch(fieldId) {
-
 
16975
          case 0: // SUCCESS
-
 
16976
            return SUCCESS;
-
 
16977
          default:
-
 
16978
            return null;
-
 
16979
        }
-
 
16980
      }
-
 
16981
 
-
 
16982
      /**
-
 
16983
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
16984
       * if it is not found.
-
 
16985
       */
-
 
16986
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
16987
        _Fields fields = findByThriftId(fieldId);
-
 
16988
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
16989
        return fields;
-
 
16990
      }
-
 
16991
 
-
 
16992
      /**
-
 
16993
       * Find the _Fields constant that matches name, or null if its not found.
-
 
16994
       */
-
 
16995
      public static _Fields findByName(String name) {
-
 
16996
        return byName.get(name);
-
 
16997
      }
-
 
16998
 
-
 
16999
      private final short _thriftId;
-
 
17000
      private final String _fieldName;
-
 
17001
 
-
 
17002
      _Fields(short thriftId, String fieldName) {
-
 
17003
        _thriftId = thriftId;
-
 
17004
        _fieldName = fieldName;
-
 
17005
      }
-
 
17006
 
-
 
17007
      public short getThriftFieldId() {
-
 
17008
        return _thriftId;
-
 
17009
      }
-
 
17010
 
-
 
17011
      public String getFieldName() {
-
 
17012
        return _fieldName;
-
 
17013
      }
-
 
17014
    }
-
 
17015
 
-
 
17016
    // isset id assignments
-
 
17017
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
17018
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
17019
 
-
 
17020
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
17021
    static {
-
 
17022
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
17023
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
17024
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
17025
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
17026
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateLogIn_result.class, metaDataMap);
-
 
17027
    }
-
 
17028
 
-
 
17029
    public validateLogIn_result() {
-
 
17030
    }
-
 
17031
 
-
 
17032
    public validateLogIn_result(
-
 
17033
      boolean success)
-
 
17034
    {
-
 
17035
      this();
-
 
17036
      this.success = success;
-
 
17037
      setSuccessIsSet(true);
-
 
17038
    }
-
 
17039
 
-
 
17040
    /**
-
 
17041
     * Performs a deep copy on <i>other</i>.
-
 
17042
     */
-
 
17043
    public validateLogIn_result(validateLogIn_result other) {
-
 
17044
      __isset_bit_vector.clear();
-
 
17045
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
17046
      this.success = other.success;
-
 
17047
    }
-
 
17048
 
-
 
17049
    public validateLogIn_result deepCopy() {
-
 
17050
      return new validateLogIn_result(this);
-
 
17051
    }
-
 
17052
 
-
 
17053
    @Override
-
 
17054
    public void clear() {
-
 
17055
      setSuccessIsSet(false);
-
 
17056
      this.success = false;
-
 
17057
    }
-
 
17058
 
-
 
17059
    public boolean isSuccess() {
-
 
17060
      return this.success;
-
 
17061
    }
-
 
17062
 
-
 
17063
    public void setSuccess(boolean success) {
-
 
17064
      this.success = success;
-
 
17065
      setSuccessIsSet(true);
-
 
17066
    }
-
 
17067
 
-
 
17068
    public void unsetSuccess() {
-
 
17069
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
17070
    }
-
 
17071
 
-
 
17072
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
17073
    public boolean isSetSuccess() {
-
 
17074
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
17075
    }
-
 
17076
 
-
 
17077
    public void setSuccessIsSet(boolean value) {
-
 
17078
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
17079
    }
-
 
17080
 
-
 
17081
    public void setFieldValue(_Fields field, Object value) {
-
 
17082
      switch (field) {
-
 
17083
      case SUCCESS:
-
 
17084
        if (value == null) {
-
 
17085
          unsetSuccess();
-
 
17086
        } else {
-
 
17087
          setSuccess((Boolean)value);
-
 
17088
        }
-
 
17089
        break;
-
 
17090
 
-
 
17091
      }
-
 
17092
    }
-
 
17093
 
-
 
17094
    public Object getFieldValue(_Fields field) {
-
 
17095
      switch (field) {
-
 
17096
      case SUCCESS:
-
 
17097
        return Boolean.valueOf(isSuccess());
-
 
17098
 
-
 
17099
      }
-
 
17100
      throw new IllegalStateException();
-
 
17101
    }
-
 
17102
 
-
 
17103
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
17104
    public boolean isSet(_Fields field) {
-
 
17105
      if (field == null) {
-
 
17106
        throw new IllegalArgumentException();
-
 
17107
      }
-
 
17108
 
-
 
17109
      switch (field) {
-
 
17110
      case SUCCESS:
-
 
17111
        return isSetSuccess();
-
 
17112
      }
-
 
17113
      throw new IllegalStateException();
-
 
17114
    }
-
 
17115
 
-
 
17116
    @Override
-
 
17117
    public boolean equals(Object that) {
-
 
17118
      if (that == null)
-
 
17119
        return false;
-
 
17120
      if (that instanceof validateLogIn_result)
-
 
17121
        return this.equals((validateLogIn_result)that);
-
 
17122
      return false;
-
 
17123
    }
-
 
17124
 
-
 
17125
    public boolean equals(validateLogIn_result that) {
-
 
17126
      if (that == null)
-
 
17127
        return false;
-
 
17128
 
-
 
17129
      boolean this_present_success = true;
-
 
17130
      boolean that_present_success = true;
-
 
17131
      if (this_present_success || that_present_success) {
-
 
17132
        if (!(this_present_success && that_present_success))
-
 
17133
          return false;
-
 
17134
        if (this.success != that.success)
-
 
17135
          return false;
-
 
17136
      }
-
 
17137
 
-
 
17138
      return true;
-
 
17139
    }
-
 
17140
 
-
 
17141
    @Override
-
 
17142
    public int hashCode() {
-
 
17143
      return 0;
-
 
17144
    }
-
 
17145
 
-
 
17146
    public int compareTo(validateLogIn_result other) {
-
 
17147
      if (!getClass().equals(other.getClass())) {
-
 
17148
        return getClass().getName().compareTo(other.getClass().getName());
-
 
17149
      }
-
 
17150
 
-
 
17151
      int lastComparison = 0;
-
 
17152
      validateLogIn_result typedOther = (validateLogIn_result)other;
-
 
17153
 
-
 
17154
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
17155
      if (lastComparison != 0) {
-
 
17156
        return lastComparison;
-
 
17157
      }
-
 
17158
      if (isSetSuccess()) {
-
 
17159
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
17160
        if (lastComparison != 0) {
-
 
17161
          return lastComparison;
-
 
17162
        }
-
 
17163
      }
-
 
17164
      return 0;
-
 
17165
    }
-
 
17166
 
-
 
17167
    public _Fields fieldForId(int fieldId) {
-
 
17168
      return _Fields.findByThriftId(fieldId);
-
 
17169
    }
-
 
17170
 
-
 
17171
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
17172
      org.apache.thrift.protocol.TField field;
-
 
17173
      iprot.readStructBegin();
-
 
17174
      while (true)
-
 
17175
      {
-
 
17176
        field = iprot.readFieldBegin();
-
 
17177
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
17178
          break;
-
 
17179
        }
-
 
17180
        switch (field.id) {
-
 
17181
          case 0: // SUCCESS
-
 
17182
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
17183
              this.success = iprot.readBool();
-
 
17184
              setSuccessIsSet(true);
-
 
17185
            } else { 
-
 
17186
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
17187
            }
-
 
17188
            break;
-
 
17189
          default:
-
 
17190
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
17191
        }
-
 
17192
        iprot.readFieldEnd();
-
 
17193
      }
-
 
17194
      iprot.readStructEnd();
-
 
17195
      validate();
-
 
17196
    }
-
 
17197
 
-
 
17198
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
17199
      oprot.writeStructBegin(STRUCT_DESC);
-
 
17200
 
-
 
17201
      if (this.isSetSuccess()) {
-
 
17202
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
17203
        oprot.writeBool(this.success);
-
 
17204
        oprot.writeFieldEnd();
-
 
17205
      }
-
 
17206
      oprot.writeFieldStop();
-
 
17207
      oprot.writeStructEnd();
-
 
17208
    }
-
 
17209
 
-
 
17210
    @Override
-
 
17211
    public String toString() {
-
 
17212
      StringBuilder sb = new StringBuilder("validateLogIn_result(");
-
 
17213
      boolean first = true;
-
 
17214
 
-
 
17215
      sb.append("success:");
-
 
17216
      sb.append(this.success);
-
 
17217
      first = false;
-
 
17218
      sb.append(")");
-
 
17219
      return sb.toString();
-
 
17220
    }
-
 
17221
 
-
 
17222
    public void validate() throws org.apache.thrift.TException {
-
 
17223
      // check for required fields
-
 
17224
    }
-
 
17225
 
-
 
17226
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
17227
      try {
-
 
17228
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
17229
      } catch (org.apache.thrift.TException te) {
-
 
17230
        throw new java.io.IOException(te);
-
 
17231
      }
-
 
17232
    }
-
 
17233
 
-
 
17234
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
17235
      try {
-
 
17236
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
17237
      } catch (org.apache.thrift.TException te) {
-
 
17238
        throw new java.io.IOException(te);
-
 
17239
      }
-
 
17240
    }
-
 
17241
 
-
 
17242
  }
-
 
17243
 
-
 
17244
  public static class updatePasswordForAgent_args implements org.apache.thrift.TBase<updatePasswordForAgent_args, updatePasswordForAgent_args._Fields>, java.io.Serializable, Cloneable   {
-
 
17245
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_args");
-
 
17246
 
-
 
17247
    private static final org.apache.thrift.protocol.TField AGENT_EMAIL_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("agentEmailId", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
17248
    private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
17249
 
-
 
17250
    private String agentEmailId; // required
-
 
17251
    private String password; // required
-
 
17252
 
-
 
17253
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
17254
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
17255
      AGENT_EMAIL_ID((short)1, "agentEmailId"),
-
 
17256
      PASSWORD((short)2, "password");
-
 
17257
 
-
 
17258
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
17259
 
-
 
17260
      static {
-
 
17261
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
17262
          byName.put(field.getFieldName(), field);
-
 
17263
        }
-
 
17264
      }
-
 
17265
 
-
 
17266
      /**
-
 
17267
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
17268
       */
-
 
17269
      public static _Fields findByThriftId(int fieldId) {
-
 
17270
        switch(fieldId) {
-
 
17271
          case 1: // AGENT_EMAIL_ID
-
 
17272
            return AGENT_EMAIL_ID;
-
 
17273
          case 2: // PASSWORD
-
 
17274
            return PASSWORD;
-
 
17275
          default:
-
 
17276
            return null;
-
 
17277
        }
-
 
17278
      }
-
 
17279
 
-
 
17280
      /**
-
 
17281
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
17282
       * if it is not found.
-
 
17283
       */
-
 
17284
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
17285
        _Fields fields = findByThriftId(fieldId);
-
 
17286
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
17287
        return fields;
-
 
17288
      }
-
 
17289
 
-
 
17290
      /**
-
 
17291
       * Find the _Fields constant that matches name, or null if its not found.
-
 
17292
       */
-
 
17293
      public static _Fields findByName(String name) {
-
 
17294
        return byName.get(name);
-
 
17295
      }
-
 
17296
 
-
 
17297
      private final short _thriftId;
-
 
17298
      private final String _fieldName;
-
 
17299
 
-
 
17300
      _Fields(short thriftId, String fieldName) {
-
 
17301
        _thriftId = thriftId;
-
 
17302
        _fieldName = fieldName;
-
 
17303
      }
-
 
17304
 
-
 
17305
      public short getThriftFieldId() {
-
 
17306
        return _thriftId;
-
 
17307
      }
-
 
17308
 
-
 
17309
      public String getFieldName() {
-
 
17310
        return _fieldName;
-
 
17311
      }
-
 
17312
    }
-
 
17313
 
-
 
17314
    // isset id assignments
-
 
17315
 
-
 
17316
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
17317
    static {
-
 
17318
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
17319
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
17320
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
17321
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
17322
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
17323
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
17324
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_args.class, metaDataMap);
-
 
17325
    }
-
 
17326
 
-
 
17327
    public updatePasswordForAgent_args() {
-
 
17328
    }
-
 
17329
 
-
 
17330
    public updatePasswordForAgent_args(
-
 
17331
      String agentEmailId,
-
 
17332
      String password)
-
 
17333
    {
-
 
17334
      this();
-
 
17335
      this.agentEmailId = agentEmailId;
-
 
17336
      this.password = password;
-
 
17337
    }
-
 
17338
 
-
 
17339
    /**
-
 
17340
     * Performs a deep copy on <i>other</i>.
-
 
17341
     */
-
 
17342
    public updatePasswordForAgent_args(updatePasswordForAgent_args other) {
-
 
17343
      if (other.isSetAgentEmailId()) {
-
 
17344
        this.agentEmailId = other.agentEmailId;
-
 
17345
      }
-
 
17346
      if (other.isSetPassword()) {
-
 
17347
        this.password = other.password;
-
 
17348
      }
-
 
17349
    }
-
 
17350
 
-
 
17351
    public updatePasswordForAgent_args deepCopy() {
-
 
17352
      return new updatePasswordForAgent_args(this);
-
 
17353
    }
-
 
17354
 
-
 
17355
    @Override
-
 
17356
    public void clear() {
-
 
17357
      this.agentEmailId = null;
-
 
17358
      this.password = null;
-
 
17359
    }
-
 
17360
 
-
 
17361
    public String getAgentEmailId() {
-
 
17362
      return this.agentEmailId;
-
 
17363
    }
-
 
17364
 
-
 
17365
    public void setAgentEmailId(String agentEmailId) {
-
 
17366
      this.agentEmailId = agentEmailId;
-
 
17367
    }
-
 
17368
 
-
 
17369
    public void unsetAgentEmailId() {
-
 
17370
      this.agentEmailId = null;
-
 
17371
    }
-
 
17372
 
-
 
17373
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
-
 
17374
    public boolean isSetAgentEmailId() {
-
 
17375
      return this.agentEmailId != null;
-
 
17376
    }
-
 
17377
 
-
 
17378
    public void setAgentEmailIdIsSet(boolean value) {
-
 
17379
      if (!value) {
-
 
17380
        this.agentEmailId = null;
-
 
17381
      }
-
 
17382
    }
-
 
17383
 
-
 
17384
    public String getPassword() {
-
 
17385
      return this.password;
-
 
17386
    }
-
 
17387
 
-
 
17388
    public void setPassword(String password) {
-
 
17389
      this.password = password;
-
 
17390
    }
-
 
17391
 
-
 
17392
    public void unsetPassword() {
-
 
17393
      this.password = null;
-
 
17394
    }
-
 
17395
 
-
 
17396
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
-
 
17397
    public boolean isSetPassword() {
-
 
17398
      return this.password != null;
-
 
17399
    }
-
 
17400
 
-
 
17401
    public void setPasswordIsSet(boolean value) {
-
 
17402
      if (!value) {
-
 
17403
        this.password = null;
-
 
17404
      }
-
 
17405
    }
-
 
17406
 
-
 
17407
    public void setFieldValue(_Fields field, Object value) {
-
 
17408
      switch (field) {
-
 
17409
      case AGENT_EMAIL_ID:
-
 
17410
        if (value == null) {
-
 
17411
          unsetAgentEmailId();
-
 
17412
        } else {
-
 
17413
          setAgentEmailId((String)value);
-
 
17414
        }
-
 
17415
        break;
-
 
17416
 
-
 
17417
      case PASSWORD:
-
 
17418
        if (value == null) {
-
 
17419
          unsetPassword();
-
 
17420
        } else {
-
 
17421
          setPassword((String)value);
-
 
17422
        }
-
 
17423
        break;
-
 
17424
 
-
 
17425
      }
-
 
17426
    }
-
 
17427
 
-
 
17428
    public Object getFieldValue(_Fields field) {
-
 
17429
      switch (field) {
-
 
17430
      case AGENT_EMAIL_ID:
-
 
17431
        return getAgentEmailId();
-
 
17432
 
-
 
17433
      case PASSWORD:
-
 
17434
        return getPassword();
-
 
17435
 
-
 
17436
      }
-
 
17437
      throw new IllegalStateException();
-
 
17438
    }
-
 
17439
 
-
 
17440
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
17441
    public boolean isSet(_Fields field) {
-
 
17442
      if (field == null) {
-
 
17443
        throw new IllegalArgumentException();
-
 
17444
      }
-
 
17445
 
-
 
17446
      switch (field) {
-
 
17447
      case AGENT_EMAIL_ID:
-
 
17448
        return isSetAgentEmailId();
-
 
17449
      case PASSWORD:
-
 
17450
        return isSetPassword();
-
 
17451
      }
-
 
17452
      throw new IllegalStateException();
-
 
17453
    }
-
 
17454
 
-
 
17455
    @Override
-
 
17456
    public boolean equals(Object that) {
-
 
17457
      if (that == null)
-
 
17458
        return false;
-
 
17459
      if (that instanceof updatePasswordForAgent_args)
-
 
17460
        return this.equals((updatePasswordForAgent_args)that);
-
 
17461
      return false;
-
 
17462
    }
-
 
17463
 
-
 
17464
    public boolean equals(updatePasswordForAgent_args that) {
-
 
17465
      if (that == null)
-
 
17466
        return false;
-
 
17467
 
-
 
17468
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
-
 
17469
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
-
 
17470
      if (this_present_agentEmailId || that_present_agentEmailId) {
-
 
17471
        if (!(this_present_agentEmailId && that_present_agentEmailId))
-
 
17472
          return false;
-
 
17473
        if (!this.agentEmailId.equals(that.agentEmailId))
-
 
17474
          return false;
-
 
17475
      }
-
 
17476
 
-
 
17477
      boolean this_present_password = true && this.isSetPassword();
-
 
17478
      boolean that_present_password = true && that.isSetPassword();
-
 
17479
      if (this_present_password || that_present_password) {
-
 
17480
        if (!(this_present_password && that_present_password))
-
 
17481
          return false;
-
 
17482
        if (!this.password.equals(that.password))
-
 
17483
          return false;
-
 
17484
      }
-
 
17485
 
-
 
17486
      return true;
-
 
17487
    }
-
 
17488
 
-
 
17489
    @Override
-
 
17490
    public int hashCode() {
-
 
17491
      return 0;
-
 
17492
    }
-
 
17493
 
-
 
17494
    public int compareTo(updatePasswordForAgent_args other) {
-
 
17495
      if (!getClass().equals(other.getClass())) {
-
 
17496
        return getClass().getName().compareTo(other.getClass().getName());
-
 
17497
      }
-
 
17498
 
-
 
17499
      int lastComparison = 0;
-
 
17500
      updatePasswordForAgent_args typedOther = (updatePasswordForAgent_args)other;
-
 
17501
 
-
 
17502
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
-
 
17503
      if (lastComparison != 0) {
-
 
17504
        return lastComparison;
-
 
17505
      }
-
 
17506
      if (isSetAgentEmailId()) {
-
 
17507
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
-
 
17508
        if (lastComparison != 0) {
-
 
17509
          return lastComparison;
-
 
17510
        }
-
 
17511
      }
-
 
17512
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
-
 
17513
      if (lastComparison != 0) {
-
 
17514
        return lastComparison;
-
 
17515
      }
-
 
17516
      if (isSetPassword()) {
-
 
17517
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
-
 
17518
        if (lastComparison != 0) {
-
 
17519
          return lastComparison;
-
 
17520
        }
-
 
17521
      }
-
 
17522
      return 0;
-
 
17523
    }
-
 
17524
 
-
 
17525
    public _Fields fieldForId(int fieldId) {
-
 
17526
      return _Fields.findByThriftId(fieldId);
-
 
17527
    }
-
 
17528
 
-
 
17529
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
17530
      org.apache.thrift.protocol.TField field;
-
 
17531
      iprot.readStructBegin();
-
 
17532
      while (true)
-
 
17533
      {
-
 
17534
        field = iprot.readFieldBegin();
-
 
17535
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
17536
          break;
-
 
17537
        }
-
 
17538
        switch (field.id) {
-
 
17539
          case 1: // AGENT_EMAIL_ID
-
 
17540
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
17541
              this.agentEmailId = iprot.readString();
-
 
17542
            } else { 
-
 
17543
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
17544
            }
-
 
17545
            break;
-
 
17546
          case 2: // PASSWORD
-
 
17547
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
17548
              this.password = iprot.readString();
-
 
17549
            } else { 
-
 
17550
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
17551
            }
-
 
17552
            break;
-
 
17553
          default:
-
 
17554
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
17555
        }
-
 
17556
        iprot.readFieldEnd();
-
 
17557
      }
-
 
17558
      iprot.readStructEnd();
-
 
17559
      validate();
-
 
17560
    }
-
 
17561
 
-
 
17562
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
17563
      validate();
-
 
17564
 
-
 
17565
      oprot.writeStructBegin(STRUCT_DESC);
-
 
17566
      if (this.agentEmailId != null) {
-
 
17567
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
-
 
17568
        oprot.writeString(this.agentEmailId);
-
 
17569
        oprot.writeFieldEnd();
-
 
17570
      }
-
 
17571
      if (this.password != null) {
-
 
17572
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
-
 
17573
        oprot.writeString(this.password);
-
 
17574
        oprot.writeFieldEnd();
-
 
17575
      }
-
 
17576
      oprot.writeFieldStop();
-
 
17577
      oprot.writeStructEnd();
-
 
17578
    }
-
 
17579
 
-
 
17580
    @Override
-
 
17581
    public String toString() {
-
 
17582
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_args(");
-
 
17583
      boolean first = true;
-
 
17584
 
-
 
17585
      sb.append("agentEmailId:");
-
 
17586
      if (this.agentEmailId == null) {
-
 
17587
        sb.append("null");
-
 
17588
      } else {
-
 
17589
        sb.append(this.agentEmailId);
-
 
17590
      }
-
 
17591
      first = false;
-
 
17592
      if (!first) sb.append(", ");
-
 
17593
      sb.append("password:");
-
 
17594
      if (this.password == null) {
-
 
17595
        sb.append("null");
-
 
17596
      } else {
-
 
17597
        sb.append(this.password);
-
 
17598
      }
-
 
17599
      first = false;
-
 
17600
      sb.append(")");
-
 
17601
      return sb.toString();
-
 
17602
    }
-
 
17603
 
-
 
17604
    public void validate() throws org.apache.thrift.TException {
-
 
17605
      // check for required fields
-
 
17606
    }
-
 
17607
 
-
 
17608
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
17609
      try {
-
 
17610
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
17611
      } catch (org.apache.thrift.TException te) {
-
 
17612
        throw new java.io.IOException(te);
-
 
17613
      }
-
 
17614
    }
-
 
17615
 
-
 
17616
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
17617
      try {
-
 
17618
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
17619
      } catch (org.apache.thrift.TException te) {
-
 
17620
        throw new java.io.IOException(te);
-
 
17621
      }
-
 
17622
    }
-
 
17623
 
-
 
17624
  }
-
 
17625
 
-
 
17626
  public static class updatePasswordForAgent_result implements org.apache.thrift.TBase<updatePasswordForAgent_result, updatePasswordForAgent_result._Fields>, java.io.Serializable, Cloneable   {
-
 
17627
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_result");
-
 
17628
 
-
 
17629
 
-
 
17630
 
-
 
17631
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
17632
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
17633
;
-
 
17634
 
-
 
17635
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
17636
 
-
 
17637
      static {
-
 
17638
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
17639
          byName.put(field.getFieldName(), field);
-
 
17640
        }
-
 
17641
      }
-
 
17642
 
-
 
17643
      /**
-
 
17644
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
17645
       */
-
 
17646
      public static _Fields findByThriftId(int fieldId) {
-
 
17647
        switch(fieldId) {
-
 
17648
          default:
-
 
17649
            return null;
-
 
17650
        }
-
 
17651
      }
-
 
17652
 
-
 
17653
      /**
-
 
17654
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
17655
       * if it is not found.
-
 
17656
       */
-
 
17657
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
17658
        _Fields fields = findByThriftId(fieldId);
-
 
17659
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
17660
        return fields;
-
 
17661
      }
-
 
17662
 
-
 
17663
      /**
-
 
17664
       * Find the _Fields constant that matches name, or null if its not found.
-
 
17665
       */
-
 
17666
      public static _Fields findByName(String name) {
-
 
17667
        return byName.get(name);
-
 
17668
      }
-
 
17669
 
-
 
17670
      private final short _thriftId;
-
 
17671
      private final String _fieldName;
-
 
17672
 
-
 
17673
      _Fields(short thriftId, String fieldName) {
-
 
17674
        _thriftId = thriftId;
-
 
17675
        _fieldName = fieldName;
-
 
17676
      }
-
 
17677
 
-
 
17678
      public short getThriftFieldId() {
-
 
17679
        return _thriftId;
-
 
17680
      }
-
 
17681
 
-
 
17682
      public String getFieldName() {
-
 
17683
        return _fieldName;
-
 
17684
      }
-
 
17685
    }
-
 
17686
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
17687
    static {
-
 
17688
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
17689
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
17690
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_result.class, metaDataMap);
-
 
17691
    }
-
 
17692
 
-
 
17693
    public updatePasswordForAgent_result() {
-
 
17694
    }
-
 
17695
 
-
 
17696
    /**
-
 
17697
     * Performs a deep copy on <i>other</i>.
-
 
17698
     */
-
 
17699
    public updatePasswordForAgent_result(updatePasswordForAgent_result other) {
-
 
17700
    }
-
 
17701
 
-
 
17702
    public updatePasswordForAgent_result deepCopy() {
-
 
17703
      return new updatePasswordForAgent_result(this);
-
 
17704
    }
-
 
17705
 
-
 
17706
    @Override
-
 
17707
    public void clear() {
-
 
17708
    }
-
 
17709
 
-
 
17710
    public void setFieldValue(_Fields field, Object value) {
-
 
17711
      switch (field) {
-
 
17712
      }
-
 
17713
    }
-
 
17714
 
-
 
17715
    public Object getFieldValue(_Fields field) {
-
 
17716
      switch (field) {
-
 
17717
      }
-
 
17718
      throw new IllegalStateException();
-
 
17719
    }
-
 
17720
 
-
 
17721
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
17722
    public boolean isSet(_Fields field) {
-
 
17723
      if (field == null) {
-
 
17724
        throw new IllegalArgumentException();
-
 
17725
      }
-
 
17726
 
-
 
17727
      switch (field) {
-
 
17728
      }
-
 
17729
      throw new IllegalStateException();
-
 
17730
    }
-
 
17731
 
-
 
17732
    @Override
-
 
17733
    public boolean equals(Object that) {
-
 
17734
      if (that == null)
-
 
17735
        return false;
-
 
17736
      if (that instanceof updatePasswordForAgent_result)
-
 
17737
        return this.equals((updatePasswordForAgent_result)that);
-
 
17738
      return false;
-
 
17739
    }
-
 
17740
 
-
 
17741
    public boolean equals(updatePasswordForAgent_result that) {
-
 
17742
      if (that == null)
-
 
17743
        return false;
-
 
17744
 
-
 
17745
      return true;
-
 
17746
    }
-
 
17747
 
-
 
17748
    @Override
-
 
17749
    public int hashCode() {
-
 
17750
      return 0;
-
 
17751
    }
-
 
17752
 
-
 
17753
    public int compareTo(updatePasswordForAgent_result other) {
-
 
17754
      if (!getClass().equals(other.getClass())) {
-
 
17755
        return getClass().getName().compareTo(other.getClass().getName());
-
 
17756
      }
-
 
17757
 
-
 
17758
      int lastComparison = 0;
-
 
17759
      updatePasswordForAgent_result typedOther = (updatePasswordForAgent_result)other;
-
 
17760
 
-
 
17761
      return 0;
-
 
17762
    }
-
 
17763
 
-
 
17764
    public _Fields fieldForId(int fieldId) {
-
 
17765
      return _Fields.findByThriftId(fieldId);
-
 
17766
    }
-
 
17767
 
-
 
17768
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
17769
      org.apache.thrift.protocol.TField field;
-
 
17770
      iprot.readStructBegin();
-
 
17771
      while (true)
-
 
17772
      {
-
 
17773
        field = iprot.readFieldBegin();
-
 
17774
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
17775
          break;
-
 
17776
        }
-
 
17777
        switch (field.id) {
-
 
17778
          default:
-
 
17779
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
17780
        }
-
 
17781
        iprot.readFieldEnd();
-
 
17782
      }
-
 
17783
      iprot.readStructEnd();
-
 
17784
      validate();
-
 
17785
    }
-
 
17786
 
-
 
17787
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
17788
      oprot.writeStructBegin(STRUCT_DESC);
-
 
17789
 
-
 
17790
      oprot.writeFieldStop();
-
 
17791
      oprot.writeStructEnd();
-
 
17792
    }
-
 
17793
 
-
 
17794
    @Override
-
 
17795
    public String toString() {
-
 
17796
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_result(");
-
 
17797
      boolean first = true;
-
 
17798
 
-
 
17799
      sb.append(")");
-
 
17800
      return sb.toString();
-
 
17801
    }
-
 
17802
 
-
 
17803
    public void validate() throws org.apache.thrift.TException {
-
 
17804
      // check for required fields
-
 
17805
    }
-
 
17806
 
-
 
17807
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
17808
      try {
-
 
17809
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
17810
      } catch (org.apache.thrift.TException te) {
-
 
17811
        throw new java.io.IOException(te);
-
 
17812
      }
-
 
17813
    }
-
 
17814
 
-
 
17815
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
17816
      try {
-
 
17817
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
17818
      } catch (org.apache.thrift.TException te) {
-
 
17819
        throw new java.io.IOException(te);
-
 
17820
      }
-
 
17821
    }
-
 
17822
 
-
 
17823
  }
-
 
17824
 
-
 
17825
  public static class getRoleNamesForAgent_args implements org.apache.thrift.TBase<getRoleNamesForAgent_args, getRoleNamesForAgent_args._Fields>, java.io.Serializable, Cloneable   {
-
 
17826
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_args");
-
 
17827
 
-
 
17828
    private static final org.apache.thrift.protocol.TField AGENT_EMAIL_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("agentEmailId", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
17829
 
-
 
17830
    private String agentEmailId; // required
-
 
17831
 
-
 
17832
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
17833
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
17834
      AGENT_EMAIL_ID((short)1, "agentEmailId");
-
 
17835
 
-
 
17836
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
17837
 
-
 
17838
      static {
-
 
17839
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
17840
          byName.put(field.getFieldName(), field);
-
 
17841
        }
-
 
17842
      }
-
 
17843
 
-
 
17844
      /**
-
 
17845
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
17846
       */
-
 
17847
      public static _Fields findByThriftId(int fieldId) {
-
 
17848
        switch(fieldId) {
-
 
17849
          case 1: // AGENT_EMAIL_ID
-
 
17850
            return AGENT_EMAIL_ID;
-
 
17851
          default:
-
 
17852
            return null;
-
 
17853
        }
-
 
17854
      }
-
 
17855
 
-
 
17856
      /**
-
 
17857
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
17858
       * if it is not found.
-
 
17859
       */
-
 
17860
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
17861
        _Fields fields = findByThriftId(fieldId);
-
 
17862
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
17863
        return fields;
-
 
17864
      }
-
 
17865
 
-
 
17866
      /**
-
 
17867
       * Find the _Fields constant that matches name, or null if its not found.
-
 
17868
       */
-
 
17869
      public static _Fields findByName(String name) {
-
 
17870
        return byName.get(name);
-
 
17871
      }
-
 
17872
 
-
 
17873
      private final short _thriftId;
-
 
17874
      private final String _fieldName;
-
 
17875
 
-
 
17876
      _Fields(short thriftId, String fieldName) {
-
 
17877
        _thriftId = thriftId;
-
 
17878
        _fieldName = fieldName;
-
 
17879
      }
-
 
17880
 
-
 
17881
      public short getThriftFieldId() {
-
 
17882
        return _thriftId;
-
 
17883
      }
-
 
17884
 
-
 
17885
      public String getFieldName() {
-
 
17886
        return _fieldName;
-
 
17887
      }
-
 
17888
    }
-
 
17889
 
-
 
17890
    // isset id assignments
-
 
17891
 
-
 
17892
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
17893
    static {
-
 
17894
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
17895
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
17896
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
17897
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
17898
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_args.class, metaDataMap);
-
 
17899
    }
-
 
17900
 
-
 
17901
    public getRoleNamesForAgent_args() {
-
 
17902
    }
-
 
17903
 
-
 
17904
    public getRoleNamesForAgent_args(
-
 
17905
      String agentEmailId)
-
 
17906
    {
-
 
17907
      this();
-
 
17908
      this.agentEmailId = agentEmailId;
-
 
17909
    }
-
 
17910
 
-
 
17911
    /**
-
 
17912
     * Performs a deep copy on <i>other</i>.
-
 
17913
     */
-
 
17914
    public getRoleNamesForAgent_args(getRoleNamesForAgent_args other) {
-
 
17915
      if (other.isSetAgentEmailId()) {
-
 
17916
        this.agentEmailId = other.agentEmailId;
-
 
17917
      }
-
 
17918
    }
-
 
17919
 
-
 
17920
    public getRoleNamesForAgent_args deepCopy() {
-
 
17921
      return new getRoleNamesForAgent_args(this);
-
 
17922
    }
-
 
17923
 
-
 
17924
    @Override
-
 
17925
    public void clear() {
-
 
17926
      this.agentEmailId = null;
-
 
17927
    }
-
 
17928
 
-
 
17929
    public String getAgentEmailId() {
-
 
17930
      return this.agentEmailId;
-
 
17931
    }
-
 
17932
 
-
 
17933
    public void setAgentEmailId(String agentEmailId) {
-
 
17934
      this.agentEmailId = agentEmailId;
-
 
17935
    }
-
 
17936
 
-
 
17937
    public void unsetAgentEmailId() {
-
 
17938
      this.agentEmailId = null;
-
 
17939
    }
-
 
17940
 
-
 
17941
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
-
 
17942
    public boolean isSetAgentEmailId() {
-
 
17943
      return this.agentEmailId != null;
-
 
17944
    }
-
 
17945
 
-
 
17946
    public void setAgentEmailIdIsSet(boolean value) {
-
 
17947
      if (!value) {
-
 
17948
        this.agentEmailId = null;
-
 
17949
      }
-
 
17950
    }
-
 
17951
 
-
 
17952
    public void setFieldValue(_Fields field, Object value) {
-
 
17953
      switch (field) {
-
 
17954
      case AGENT_EMAIL_ID:
-
 
17955
        if (value == null) {
-
 
17956
          unsetAgentEmailId();
-
 
17957
        } else {
-
 
17958
          setAgentEmailId((String)value);
-
 
17959
        }
-
 
17960
        break;
-
 
17961
 
-
 
17962
      }
-
 
17963
    }
-
 
17964
 
-
 
17965
    public Object getFieldValue(_Fields field) {
-
 
17966
      switch (field) {
-
 
17967
      case AGENT_EMAIL_ID:
-
 
17968
        return getAgentEmailId();
-
 
17969
 
-
 
17970
      }
-
 
17971
      throw new IllegalStateException();
-
 
17972
    }
-
 
17973
 
-
 
17974
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
17975
    public boolean isSet(_Fields field) {
-
 
17976
      if (field == null) {
-
 
17977
        throw new IllegalArgumentException();
-
 
17978
      }
-
 
17979
 
-
 
17980
      switch (field) {
-
 
17981
      case AGENT_EMAIL_ID:
-
 
17982
        return isSetAgentEmailId();
-
 
17983
      }
-
 
17984
      throw new IllegalStateException();
-
 
17985
    }
-
 
17986
 
-
 
17987
    @Override
-
 
17988
    public boolean equals(Object that) {
-
 
17989
      if (that == null)
-
 
17990
        return false;
-
 
17991
      if (that instanceof getRoleNamesForAgent_args)
-
 
17992
        return this.equals((getRoleNamesForAgent_args)that);
-
 
17993
      return false;
-
 
17994
    }
-
 
17995
 
-
 
17996
    public boolean equals(getRoleNamesForAgent_args that) {
-
 
17997
      if (that == null)
-
 
17998
        return false;
-
 
17999
 
-
 
18000
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
-
 
18001
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
-
 
18002
      if (this_present_agentEmailId || that_present_agentEmailId) {
-
 
18003
        if (!(this_present_agentEmailId && that_present_agentEmailId))
-
 
18004
          return false;
-
 
18005
        if (!this.agentEmailId.equals(that.agentEmailId))
-
 
18006
          return false;
-
 
18007
      }
-
 
18008
 
-
 
18009
      return true;
-
 
18010
    }
-
 
18011
 
-
 
18012
    @Override
-
 
18013
    public int hashCode() {
-
 
18014
      return 0;
-
 
18015
    }
-
 
18016
 
-
 
18017
    public int compareTo(getRoleNamesForAgent_args other) {
-
 
18018
      if (!getClass().equals(other.getClass())) {
-
 
18019
        return getClass().getName().compareTo(other.getClass().getName());
-
 
18020
      }
-
 
18021
 
-
 
18022
      int lastComparison = 0;
-
 
18023
      getRoleNamesForAgent_args typedOther = (getRoleNamesForAgent_args)other;
-
 
18024
 
-
 
18025
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
-
 
18026
      if (lastComparison != 0) {
-
 
18027
        return lastComparison;
-
 
18028
      }
-
 
18029
      if (isSetAgentEmailId()) {
-
 
18030
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
-
 
18031
        if (lastComparison != 0) {
-
 
18032
          return lastComparison;
-
 
18033
        }
-
 
18034
      }
-
 
18035
      return 0;
-
 
18036
    }
-
 
18037
 
-
 
18038
    public _Fields fieldForId(int fieldId) {
-
 
18039
      return _Fields.findByThriftId(fieldId);
-
 
18040
    }
-
 
18041
 
-
 
18042
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
18043
      org.apache.thrift.protocol.TField field;
-
 
18044
      iprot.readStructBegin();
-
 
18045
      while (true)
-
 
18046
      {
-
 
18047
        field = iprot.readFieldBegin();
-
 
18048
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
18049
          break;
-
 
18050
        }
-
 
18051
        switch (field.id) {
-
 
18052
          case 1: // AGENT_EMAIL_ID
-
 
18053
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
18054
              this.agentEmailId = iprot.readString();
-
 
18055
            } else { 
-
 
18056
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
18057
            }
-
 
18058
            break;
-
 
18059
          default:
-
 
18060
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
18061
        }
-
 
18062
        iprot.readFieldEnd();
-
 
18063
      }
-
 
18064
      iprot.readStructEnd();
-
 
18065
      validate();
-
 
18066
    }
-
 
18067
 
-
 
18068
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
18069
      validate();
-
 
18070
 
-
 
18071
      oprot.writeStructBegin(STRUCT_DESC);
-
 
18072
      if (this.agentEmailId != null) {
-
 
18073
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
-
 
18074
        oprot.writeString(this.agentEmailId);
-
 
18075
        oprot.writeFieldEnd();
-
 
18076
      }
-
 
18077
      oprot.writeFieldStop();
-
 
18078
      oprot.writeStructEnd();
-
 
18079
    }
-
 
18080
 
-
 
18081
    @Override
-
 
18082
    public String toString() {
-
 
18083
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_args(");
-
 
18084
      boolean first = true;
-
 
18085
 
-
 
18086
      sb.append("agentEmailId:");
-
 
18087
      if (this.agentEmailId == null) {
-
 
18088
        sb.append("null");
-
 
18089
      } else {
-
 
18090
        sb.append(this.agentEmailId);
-
 
18091
      }
-
 
18092
      first = false;
-
 
18093
      sb.append(")");
-
 
18094
      return sb.toString();
-
 
18095
    }
-
 
18096
 
-
 
18097
    public void validate() throws org.apache.thrift.TException {
-
 
18098
      // check for required fields
-
 
18099
    }
-
 
18100
 
-
 
18101
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
18102
      try {
-
 
18103
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
18104
      } catch (org.apache.thrift.TException te) {
-
 
18105
        throw new java.io.IOException(te);
-
 
18106
      }
-
 
18107
    }
-
 
18108
 
-
 
18109
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
18110
      try {
-
 
18111
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
18112
      } catch (org.apache.thrift.TException te) {
-
 
18113
        throw new java.io.IOException(te);
-
 
18114
      }
-
 
18115
    }
-
 
18116
 
-
 
18117
  }
-
 
18118
 
-
 
18119
  public static class getRoleNamesForAgent_result implements org.apache.thrift.TBase<getRoleNamesForAgent_result, getRoleNamesForAgent_result._Fields>, java.io.Serializable, Cloneable   {
-
 
18120
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_result");
-
 
18121
 
-
 
18122
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
18123
 
-
 
18124
    private List<String> success; // required
-
 
18125
 
-
 
18126
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
18127
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
18128
      SUCCESS((short)0, "success");
-
 
18129
 
-
 
18130
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
18131
 
-
 
18132
      static {
-
 
18133
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
18134
          byName.put(field.getFieldName(), field);
-
 
18135
        }
-
 
18136
      }
-
 
18137
 
-
 
18138
      /**
-
 
18139
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
18140
       */
-
 
18141
      public static _Fields findByThriftId(int fieldId) {
-
 
18142
        switch(fieldId) {
-
 
18143
          case 0: // SUCCESS
-
 
18144
            return SUCCESS;
-
 
18145
          default:
-
 
18146
            return null;
-
 
18147
        }
-
 
18148
      }
-
 
18149
 
-
 
18150
      /**
-
 
18151
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
18152
       * if it is not found.
-
 
18153
       */
-
 
18154
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
18155
        _Fields fields = findByThriftId(fieldId);
-
 
18156
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
18157
        return fields;
-
 
18158
      }
-
 
18159
 
-
 
18160
      /**
-
 
18161
       * Find the _Fields constant that matches name, or null if its not found.
-
 
18162
       */
-
 
18163
      public static _Fields findByName(String name) {
-
 
18164
        return byName.get(name);
-
 
18165
      }
-
 
18166
 
-
 
18167
      private final short _thriftId;
-
 
18168
      private final String _fieldName;
-
 
18169
 
-
 
18170
      _Fields(short thriftId, String fieldName) {
-
 
18171
        _thriftId = thriftId;
-
 
18172
        _fieldName = fieldName;
-
 
18173
      }
-
 
18174
 
-
 
18175
      public short getThriftFieldId() {
-
 
18176
        return _thriftId;
-
 
18177
      }
-
 
18178
 
-
 
18179
      public String getFieldName() {
-
 
18180
        return _fieldName;
-
 
18181
      }
-
 
18182
    }
-
 
18183
 
-
 
18184
    // isset id assignments
-
 
18185
 
-
 
18186
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
18187
    static {
-
 
18188
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
18189
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
18190
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
18191
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-
 
18192
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
18193
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_result.class, metaDataMap);
-
 
18194
    }
-
 
18195
 
-
 
18196
    public getRoleNamesForAgent_result() {
-
 
18197
    }
-
 
18198
 
-
 
18199
    public getRoleNamesForAgent_result(
-
 
18200
      List<String> success)
-
 
18201
    {
-
 
18202
      this();
-
 
18203
      this.success = success;
-
 
18204
    }
-
 
18205
 
-
 
18206
    /**
-
 
18207
     * Performs a deep copy on <i>other</i>.
-
 
18208
     */
-
 
18209
    public getRoleNamesForAgent_result(getRoleNamesForAgent_result other) {
-
 
18210
      if (other.isSetSuccess()) {
-
 
18211
        List<String> __this__success = new ArrayList<String>();
-
 
18212
        for (String other_element : other.success) {
-
 
18213
          __this__success.add(other_element);
-
 
18214
        }
-
 
18215
        this.success = __this__success;
-
 
18216
      }
-
 
18217
    }
-
 
18218
 
-
 
18219
    public getRoleNamesForAgent_result deepCopy() {
-
 
18220
      return new getRoleNamesForAgent_result(this);
-
 
18221
    }
-
 
18222
 
-
 
18223
    @Override
-
 
18224
    public void clear() {
-
 
18225
      this.success = null;
-
 
18226
    }
-
 
18227
 
-
 
18228
    public int getSuccessSize() {
-
 
18229
      return (this.success == null) ? 0 : this.success.size();
-
 
18230
    }
-
 
18231
 
-
 
18232
    public java.util.Iterator<String> getSuccessIterator() {
-
 
18233
      return (this.success == null) ? null : this.success.iterator();
-
 
18234
    }
-
 
18235
 
-
 
18236
    public void addToSuccess(String elem) {
-
 
18237
      if (this.success == null) {
-
 
18238
        this.success = new ArrayList<String>();
-
 
18239
      }
-
 
18240
      this.success.add(elem);
-
 
18241
    }
-
 
18242
 
-
 
18243
    public List<String> getSuccess() {
-
 
18244
      return this.success;
-
 
18245
    }
-
 
18246
 
-
 
18247
    public void setSuccess(List<String> success) {
-
 
18248
      this.success = success;
-
 
18249
    }
-
 
18250
 
-
 
18251
    public void unsetSuccess() {
-
 
18252
      this.success = null;
-
 
18253
    }
-
 
18254
 
-
 
18255
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
18256
    public boolean isSetSuccess() {
-
 
18257
      return this.success != null;
-
 
18258
    }
-
 
18259
 
-
 
18260
    public void setSuccessIsSet(boolean value) {
-
 
18261
      if (!value) {
-
 
18262
        this.success = null;
-
 
18263
      }
-
 
18264
    }
-
 
18265
 
-
 
18266
    public void setFieldValue(_Fields field, Object value) {
-
 
18267
      switch (field) {
-
 
18268
      case SUCCESS:
-
 
18269
        if (value == null) {
-
 
18270
          unsetSuccess();
-
 
18271
        } else {
-
 
18272
          setSuccess((List<String>)value);
-
 
18273
        }
-
 
18274
        break;
-
 
18275
 
-
 
18276
      }
-
 
18277
    }
-
 
18278
 
-
 
18279
    public Object getFieldValue(_Fields field) {
-
 
18280
      switch (field) {
-
 
18281
      case SUCCESS:
-
 
18282
        return getSuccess();
-
 
18283
 
-
 
18284
      }
-
 
18285
      throw new IllegalStateException();
-
 
18286
    }
-
 
18287
 
-
 
18288
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
18289
    public boolean isSet(_Fields field) {
-
 
18290
      if (field == null) {
-
 
18291
        throw new IllegalArgumentException();
-
 
18292
      }
-
 
18293
 
-
 
18294
      switch (field) {
-
 
18295
      case SUCCESS:
-
 
18296
        return isSetSuccess();
-
 
18297
      }
-
 
18298
      throw new IllegalStateException();
-
 
18299
    }
-
 
18300
 
-
 
18301
    @Override
-
 
18302
    public boolean equals(Object that) {
-
 
18303
      if (that == null)
-
 
18304
        return false;
-
 
18305
      if (that instanceof getRoleNamesForAgent_result)
-
 
18306
        return this.equals((getRoleNamesForAgent_result)that);
-
 
18307
      return false;
-
 
18308
    }
-
 
18309
 
-
 
18310
    public boolean equals(getRoleNamesForAgent_result that) {
-
 
18311
      if (that == null)
-
 
18312
        return false;
-
 
18313
 
-
 
18314
      boolean this_present_success = true && this.isSetSuccess();
-
 
18315
      boolean that_present_success = true && that.isSetSuccess();
-
 
18316
      if (this_present_success || that_present_success) {
-
 
18317
        if (!(this_present_success && that_present_success))
-
 
18318
          return false;
-
 
18319
        if (!this.success.equals(that.success))
-
 
18320
          return false;
-
 
18321
      }
-
 
18322
 
-
 
18323
      return true;
-
 
18324
    }
-
 
18325
 
-
 
18326
    @Override
-
 
18327
    public int hashCode() {
-
 
18328
      return 0;
-
 
18329
    }
-
 
18330
 
-
 
18331
    public int compareTo(getRoleNamesForAgent_result other) {
-
 
18332
      if (!getClass().equals(other.getClass())) {
-
 
18333
        return getClass().getName().compareTo(other.getClass().getName());
-
 
18334
      }
-
 
18335
 
-
 
18336
      int lastComparison = 0;
-
 
18337
      getRoleNamesForAgent_result typedOther = (getRoleNamesForAgent_result)other;
-
 
18338
 
-
 
18339
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
18340
      if (lastComparison != 0) {
-
 
18341
        return lastComparison;
-
 
18342
      }
-
 
18343
      if (isSetSuccess()) {
-
 
18344
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
18345
        if (lastComparison != 0) {
-
 
18346
          return lastComparison;
-
 
18347
        }
-
 
18348
      }
-
 
18349
      return 0;
-
 
18350
    }
-
 
18351
 
-
 
18352
    public _Fields fieldForId(int fieldId) {
-
 
18353
      return _Fields.findByThriftId(fieldId);
-
 
18354
    }
-
 
18355
 
-
 
18356
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
18357
      org.apache.thrift.protocol.TField field;
-
 
18358
      iprot.readStructBegin();
-
 
18359
      while (true)
-
 
18360
      {
-
 
18361
        field = iprot.readFieldBegin();
-
 
18362
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
18363
          break;
-
 
18364
        }
-
 
18365
        switch (field.id) {
-
 
18366
          case 0: // SUCCESS
-
 
18367
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
18368
              {
-
 
18369
                org.apache.thrift.protocol.TList _list29 = iprot.readListBegin();
-
 
18370
                this.success = new ArrayList<String>(_list29.size);
-
 
18371
                for (int _i30 = 0; _i30 < _list29.size; ++_i30)
-
 
18372
                {
-
 
18373
                  String _elem31; // required
-
 
18374
                  _elem31 = iprot.readString();
-
 
18375
                  this.success.add(_elem31);
-
 
18376
                }
-
 
18377
                iprot.readListEnd();
-
 
18378
              }
-
 
18379
            } else { 
-
 
18380
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
18381
            }
-
 
18382
            break;
-
 
18383
          default:
-
 
18384
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
18385
        }
-
 
18386
        iprot.readFieldEnd();
-
 
18387
      }
-
 
18388
      iprot.readStructEnd();
-
 
18389
      validate();
-
 
18390
    }
-
 
18391
 
-
 
18392
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
18393
      oprot.writeStructBegin(STRUCT_DESC);
-
 
18394
 
-
 
18395
      if (this.isSetSuccess()) {
-
 
18396
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
18397
        {
-
 
18398
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
-
 
18399
          for (String _iter32 : this.success)
-
 
18400
          {
-
 
18401
            oprot.writeString(_iter32);
-
 
18402
          }
-
 
18403
          oprot.writeListEnd();
-
 
18404
        }
-
 
18405
        oprot.writeFieldEnd();
-
 
18406
      }
-
 
18407
      oprot.writeFieldStop();
-
 
18408
      oprot.writeStructEnd();
-
 
18409
    }
-
 
18410
 
-
 
18411
    @Override
-
 
18412
    public String toString() {
-
 
18413
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_result(");
-
 
18414
      boolean first = true;
-
 
18415
 
-
 
18416
      sb.append("success:");
-
 
18417
      if (this.success == null) {
-
 
18418
        sb.append("null");
-
 
18419
      } else {
-
 
18420
        sb.append(this.success);
-
 
18421
      }
-
 
18422
      first = false;
-
 
18423
      sb.append(")");
-
 
18424
      return sb.toString();
-
 
18425
    }
-
 
18426
 
-
 
18427
    public void validate() throws org.apache.thrift.TException {
-
 
18428
      // check for required fields
-
 
18429
    }
-
 
18430
 
-
 
18431
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
18432
      try {
-
 
18433
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
18434
      } catch (org.apache.thrift.TException te) {
-
 
18435
        throw new java.io.IOException(te);
-
 
18436
      }
-
 
18437
    }
-
 
18438
 
-
 
18439
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
18440
      try {
-
 
18441
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
18442
      } catch (org.apache.thrift.TException te) {
-
 
18443
        throw new java.io.IOException(te);
-
 
18444
      }
-
 
18445
    }
-
 
18446
 
-
 
18447
  }
-
 
18448
 
-
 
18449
  public static class getPermissionsForRoleName_args implements org.apache.thrift.TBase<getPermissionsForRoleName_args, getPermissionsForRoleName_args._Fields>, java.io.Serializable, Cloneable   {
-
 
18450
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_args");
-
 
18451
 
-
 
18452
    private static final org.apache.thrift.protocol.TField ROLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("roleName", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
18453
 
-
 
18454
    private String roleName; // required
-
 
18455
 
-
 
18456
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
18457
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
18458
      ROLE_NAME((short)1, "roleName");
-
 
18459
 
-
 
18460
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
18461
 
-
 
18462
      static {
-
 
18463
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
18464
          byName.put(field.getFieldName(), field);
-
 
18465
        }
-
 
18466
      }
-
 
18467
 
-
 
18468
      /**
-
 
18469
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
18470
       */
-
 
18471
      public static _Fields findByThriftId(int fieldId) {
-
 
18472
        switch(fieldId) {
-
 
18473
          case 1: // ROLE_NAME
-
 
18474
            return ROLE_NAME;
-
 
18475
          default:
-
 
18476
            return null;
-
 
18477
        }
-
 
18478
      }
-
 
18479
 
-
 
18480
      /**
-
 
18481
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
18482
       * if it is not found.
-
 
18483
       */
-
 
18484
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
18485
        _Fields fields = findByThriftId(fieldId);
-
 
18486
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
18487
        return fields;
-
 
18488
      }
-
 
18489
 
-
 
18490
      /**
-
 
18491
       * Find the _Fields constant that matches name, or null if its not found.
-
 
18492
       */
-
 
18493
      public static _Fields findByName(String name) {
-
 
18494
        return byName.get(name);
-
 
18495
      }
-
 
18496
 
-
 
18497
      private final short _thriftId;
-
 
18498
      private final String _fieldName;
-
 
18499
 
-
 
18500
      _Fields(short thriftId, String fieldName) {
-
 
18501
        _thriftId = thriftId;
-
 
18502
        _fieldName = fieldName;
-
 
18503
      }
-
 
18504
 
-
 
18505
      public short getThriftFieldId() {
-
 
18506
        return _thriftId;
-
 
18507
      }
-
 
18508
 
-
 
18509
      public String getFieldName() {
-
 
18510
        return _fieldName;
-
 
18511
      }
-
 
18512
    }
-
 
18513
 
-
 
18514
    // isset id assignments
-
 
18515
 
-
 
18516
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
18517
    static {
-
 
18518
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
18519
      tmpMap.put(_Fields.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("roleName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
18520
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
18521
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
18522
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_args.class, metaDataMap);
-
 
18523
    }
-
 
18524
 
-
 
18525
    public getPermissionsForRoleName_args() {
-
 
18526
    }
-
 
18527
 
-
 
18528
    public getPermissionsForRoleName_args(
-
 
18529
      String roleName)
-
 
18530
    {
-
 
18531
      this();
-
 
18532
      this.roleName = roleName;
-
 
18533
    }
-
 
18534
 
-
 
18535
    /**
-
 
18536
     * Performs a deep copy on <i>other</i>.
-
 
18537
     */
-
 
18538
    public getPermissionsForRoleName_args(getPermissionsForRoleName_args other) {
-
 
18539
      if (other.isSetRoleName()) {
-
 
18540
        this.roleName = other.roleName;
-
 
18541
      }
-
 
18542
    }
-
 
18543
 
-
 
18544
    public getPermissionsForRoleName_args deepCopy() {
-
 
18545
      return new getPermissionsForRoleName_args(this);
-
 
18546
    }
-
 
18547
 
-
 
18548
    @Override
-
 
18549
    public void clear() {
-
 
18550
      this.roleName = null;
-
 
18551
    }
-
 
18552
 
-
 
18553
    public String getRoleName() {
-
 
18554
      return this.roleName;
-
 
18555
    }
-
 
18556
 
-
 
18557
    public void setRoleName(String roleName) {
-
 
18558
      this.roleName = roleName;
-
 
18559
    }
-
 
18560
 
-
 
18561
    public void unsetRoleName() {
-
 
18562
      this.roleName = null;
-
 
18563
    }
-
 
18564
 
-
 
18565
    /** Returns true if field roleName is set (has been assigned a value) and false otherwise */
-
 
18566
    public boolean isSetRoleName() {
-
 
18567
      return this.roleName != null;
-
 
18568
    }
-
 
18569
 
-
 
18570
    public void setRoleNameIsSet(boolean value) {
-
 
18571
      if (!value) {
-
 
18572
        this.roleName = null;
-
 
18573
      }
-
 
18574
    }
-
 
18575
 
-
 
18576
    public void setFieldValue(_Fields field, Object value) {
-
 
18577
      switch (field) {
-
 
18578
      case ROLE_NAME:
-
 
18579
        if (value == null) {
-
 
18580
          unsetRoleName();
-
 
18581
        } else {
-
 
18582
          setRoleName((String)value);
-
 
18583
        }
-
 
18584
        break;
-
 
18585
 
-
 
18586
      }
-
 
18587
    }
-
 
18588
 
-
 
18589
    public Object getFieldValue(_Fields field) {
-
 
18590
      switch (field) {
-
 
18591
      case ROLE_NAME:
-
 
18592
        return getRoleName();
-
 
18593
 
-
 
18594
      }
-
 
18595
      throw new IllegalStateException();
-
 
18596
    }
-
 
18597
 
-
 
18598
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
18599
    public boolean isSet(_Fields field) {
-
 
18600
      if (field == null) {
-
 
18601
        throw new IllegalArgumentException();
-
 
18602
      }
-
 
18603
 
-
 
18604
      switch (field) {
-
 
18605
      case ROLE_NAME:
-
 
18606
        return isSetRoleName();
-
 
18607
      }
-
 
18608
      throw new IllegalStateException();
-
 
18609
    }
-
 
18610
 
-
 
18611
    @Override
-
 
18612
    public boolean equals(Object that) {
-
 
18613
      if (that == null)
-
 
18614
        return false;
-
 
18615
      if (that instanceof getPermissionsForRoleName_args)
-
 
18616
        return this.equals((getPermissionsForRoleName_args)that);
-
 
18617
      return false;
-
 
18618
    }
-
 
18619
 
-
 
18620
    public boolean equals(getPermissionsForRoleName_args that) {
-
 
18621
      if (that == null)
-
 
18622
        return false;
-
 
18623
 
-
 
18624
      boolean this_present_roleName = true && this.isSetRoleName();
-
 
18625
      boolean that_present_roleName = true && that.isSetRoleName();
-
 
18626
      if (this_present_roleName || that_present_roleName) {
-
 
18627
        if (!(this_present_roleName && that_present_roleName))
-
 
18628
          return false;
-
 
18629
        if (!this.roleName.equals(that.roleName))
-
 
18630
          return false;
-
 
18631
      }
-
 
18632
 
-
 
18633
      return true;
-
 
18634
    }
-
 
18635
 
-
 
18636
    @Override
-
 
18637
    public int hashCode() {
-
 
18638
      return 0;
-
 
18639
    }
-
 
18640
 
-
 
18641
    public int compareTo(getPermissionsForRoleName_args other) {
-
 
18642
      if (!getClass().equals(other.getClass())) {
-
 
18643
        return getClass().getName().compareTo(other.getClass().getName());
-
 
18644
      }
-
 
18645
 
-
 
18646
      int lastComparison = 0;
-
 
18647
      getPermissionsForRoleName_args typedOther = (getPermissionsForRoleName_args)other;
-
 
18648
 
-
 
18649
      lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
-
 
18650
      if (lastComparison != 0) {
-
 
18651
        return lastComparison;
-
 
18652
      }
-
 
18653
      if (isSetRoleName()) {
-
 
18654
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
-
 
18655
        if (lastComparison != 0) {
-
 
18656
          return lastComparison;
-
 
18657
        }
-
 
18658
      }
-
 
18659
      return 0;
-
 
18660
    }
-
 
18661
 
-
 
18662
    public _Fields fieldForId(int fieldId) {
-
 
18663
      return _Fields.findByThriftId(fieldId);
-
 
18664
    }
-
 
18665
 
-
 
18666
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
18667
      org.apache.thrift.protocol.TField field;
-
 
18668
      iprot.readStructBegin();
-
 
18669
      while (true)
-
 
18670
      {
-
 
18671
        field = iprot.readFieldBegin();
-
 
18672
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
18673
          break;
-
 
18674
        }
-
 
18675
        switch (field.id) {
-
 
18676
          case 1: // ROLE_NAME
-
 
18677
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
18678
              this.roleName = iprot.readString();
-
 
18679
            } else { 
-
 
18680
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
18681
            }
-
 
18682
            break;
-
 
18683
          default:
-
 
18684
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
18685
        }
-
 
18686
        iprot.readFieldEnd();
-
 
18687
      }
-
 
18688
      iprot.readStructEnd();
-
 
18689
      validate();
-
 
18690
    }
-
 
18691
 
-
 
18692
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
18693
      validate();
-
 
18694
 
-
 
18695
      oprot.writeStructBegin(STRUCT_DESC);
-
 
18696
      if (this.roleName != null) {
-
 
18697
        oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC);
-
 
18698
        oprot.writeString(this.roleName);
-
 
18699
        oprot.writeFieldEnd();
-
 
18700
      }
-
 
18701
      oprot.writeFieldStop();
-
 
18702
      oprot.writeStructEnd();
-
 
18703
    }
-
 
18704
 
-
 
18705
    @Override
-
 
18706
    public String toString() {
-
 
18707
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_args(");
-
 
18708
      boolean first = true;
-
 
18709
 
-
 
18710
      sb.append("roleName:");
-
 
18711
      if (this.roleName == null) {
-
 
18712
        sb.append("null");
-
 
18713
      } else {
-
 
18714
        sb.append(this.roleName);
-
 
18715
      }
-
 
18716
      first = false;
-
 
18717
      sb.append(")");
-
 
18718
      return sb.toString();
-
 
18719
    }
-
 
18720
 
-
 
18721
    public void validate() throws org.apache.thrift.TException {
-
 
18722
      // check for required fields
-
 
18723
    }
-
 
18724
 
-
 
18725
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
18726
      try {
-
 
18727
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
18728
      } catch (org.apache.thrift.TException te) {
-
 
18729
        throw new java.io.IOException(te);
-
 
18730
      }
-
 
18731
    }
-
 
18732
 
-
 
18733
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
18734
      try {
-
 
18735
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
18736
      } catch (org.apache.thrift.TException te) {
-
 
18737
        throw new java.io.IOException(te);
-
 
18738
      }
-
 
18739
    }
-
 
18740
 
-
 
18741
  }
-
 
18742
 
-
 
18743
  public static class getPermissionsForRoleName_result implements org.apache.thrift.TBase<getPermissionsForRoleName_result, getPermissionsForRoleName_result._Fields>, java.io.Serializable, Cloneable   {
-
 
18744
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_result");
-
 
18745
 
-
 
18746
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
18747
 
-
 
18748
    private List<String> success; // required
-
 
18749
 
-
 
18750
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
18751
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
18752
      SUCCESS((short)0, "success");
-
 
18753
 
-
 
18754
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
18755
 
-
 
18756
      static {
-
 
18757
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
18758
          byName.put(field.getFieldName(), field);
-
 
18759
        }
-
 
18760
      }
-
 
18761
 
-
 
18762
      /**
-
 
18763
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
18764
       */
-
 
18765
      public static _Fields findByThriftId(int fieldId) {
-
 
18766
        switch(fieldId) {
-
 
18767
          case 0: // SUCCESS
-
 
18768
            return SUCCESS;
-
 
18769
          default:
-
 
18770
            return null;
-
 
18771
        }
-
 
18772
      }
-
 
18773
 
-
 
18774
      /**
-
 
18775
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
18776
       * if it is not found.
-
 
18777
       */
-
 
18778
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
18779
        _Fields fields = findByThriftId(fieldId);
-
 
18780
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
18781
        return fields;
-
 
18782
      }
-
 
18783
 
-
 
18784
      /**
-
 
18785
       * Find the _Fields constant that matches name, or null if its not found.
-
 
18786
       */
-
 
18787
      public static _Fields findByName(String name) {
-
 
18788
        return byName.get(name);
-
 
18789
      }
-
 
18790
 
-
 
18791
      private final short _thriftId;
-
 
18792
      private final String _fieldName;
-
 
18793
 
-
 
18794
      _Fields(short thriftId, String fieldName) {
-
 
18795
        _thriftId = thriftId;
-
 
18796
        _fieldName = fieldName;
-
 
18797
      }
-
 
18798
 
-
 
18799
      public short getThriftFieldId() {
-
 
18800
        return _thriftId;
-
 
18801
      }
-
 
18802
 
-
 
18803
      public String getFieldName() {
-
 
18804
        return _fieldName;
-
 
18805
      }
-
 
18806
    }
-
 
18807
 
-
 
18808
    // isset id assignments
-
 
18809
 
-
 
18810
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
18811
    static {
-
 
18812
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
18813
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
18814
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
18815
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-
 
18816
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
18817
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_result.class, metaDataMap);
-
 
18818
    }
-
 
18819
 
-
 
18820
    public getPermissionsForRoleName_result() {
-
 
18821
    }
-
 
18822
 
-
 
18823
    public getPermissionsForRoleName_result(
-
 
18824
      List<String> success)
-
 
18825
    {
-
 
18826
      this();
-
 
18827
      this.success = success;
-
 
18828
    }
-
 
18829
 
-
 
18830
    /**
-
 
18831
     * Performs a deep copy on <i>other</i>.
-
 
18832
     */
-
 
18833
    public getPermissionsForRoleName_result(getPermissionsForRoleName_result other) {
-
 
18834
      if (other.isSetSuccess()) {
-
 
18835
        List<String> __this__success = new ArrayList<String>();
-
 
18836
        for (String other_element : other.success) {
-
 
18837
          __this__success.add(other_element);
-
 
18838
        }
-
 
18839
        this.success = __this__success;
-
 
18840
      }
-
 
18841
    }
-
 
18842
 
-
 
18843
    public getPermissionsForRoleName_result deepCopy() {
-
 
18844
      return new getPermissionsForRoleName_result(this);
-
 
18845
    }
-
 
18846
 
-
 
18847
    @Override
-
 
18848
    public void clear() {
-
 
18849
      this.success = null;
-
 
18850
    }
-
 
18851
 
-
 
18852
    public int getSuccessSize() {
-
 
18853
      return (this.success == null) ? 0 : this.success.size();
-
 
18854
    }
-
 
18855
 
-
 
18856
    public java.util.Iterator<String> getSuccessIterator() {
-
 
18857
      return (this.success == null) ? null : this.success.iterator();
-
 
18858
    }
-
 
18859
 
-
 
18860
    public void addToSuccess(String elem) {
-
 
18861
      if (this.success == null) {
-
 
18862
        this.success = new ArrayList<String>();
-
 
18863
      }
-
 
18864
      this.success.add(elem);
-
 
18865
    }
-
 
18866
 
-
 
18867
    public List<String> getSuccess() {
-
 
18868
      return this.success;
-
 
18869
    }
-
 
18870
 
-
 
18871
    public void setSuccess(List<String> success) {
-
 
18872
      this.success = success;
-
 
18873
    }
-
 
18874
 
-
 
18875
    public void unsetSuccess() {
-
 
18876
      this.success = null;
-
 
18877
    }
-
 
18878
 
-
 
18879
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
18880
    public boolean isSetSuccess() {
-
 
18881
      return this.success != null;
-
 
18882
    }
-
 
18883
 
-
 
18884
    public void setSuccessIsSet(boolean value) {
-
 
18885
      if (!value) {
-
 
18886
        this.success = null;
-
 
18887
      }
-
 
18888
    }
-
 
18889
 
-
 
18890
    public void setFieldValue(_Fields field, Object value) {
-
 
18891
      switch (field) {
-
 
18892
      case SUCCESS:
-
 
18893
        if (value == null) {
-
 
18894
          unsetSuccess();
-
 
18895
        } else {
-
 
18896
          setSuccess((List<String>)value);
-
 
18897
        }
-
 
18898
        break;
-
 
18899
 
-
 
18900
      }
-
 
18901
    }
-
 
18902
 
-
 
18903
    public Object getFieldValue(_Fields field) {
-
 
18904
      switch (field) {
-
 
18905
      case SUCCESS:
-
 
18906
        return getSuccess();
-
 
18907
 
-
 
18908
      }
-
 
18909
      throw new IllegalStateException();
-
 
18910
    }
-
 
18911
 
-
 
18912
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
18913
    public boolean isSet(_Fields field) {
-
 
18914
      if (field == null) {
-
 
18915
        throw new IllegalArgumentException();
-
 
18916
      }
-
 
18917
 
-
 
18918
      switch (field) {
-
 
18919
      case SUCCESS:
-
 
18920
        return isSetSuccess();
-
 
18921
      }
-
 
18922
      throw new IllegalStateException();
-
 
18923
    }
-
 
18924
 
-
 
18925
    @Override
-
 
18926
    public boolean equals(Object that) {
-
 
18927
      if (that == null)
-
 
18928
        return false;
-
 
18929
      if (that instanceof getPermissionsForRoleName_result)
-
 
18930
        return this.equals((getPermissionsForRoleName_result)that);
-
 
18931
      return false;
-
 
18932
    }
-
 
18933
 
-
 
18934
    public boolean equals(getPermissionsForRoleName_result that) {
-
 
18935
      if (that == null)
-
 
18936
        return false;
-
 
18937
 
-
 
18938
      boolean this_present_success = true && this.isSetSuccess();
-
 
18939
      boolean that_present_success = true && that.isSetSuccess();
-
 
18940
      if (this_present_success || that_present_success) {
-
 
18941
        if (!(this_present_success && that_present_success))
-
 
18942
          return false;
-
 
18943
        if (!this.success.equals(that.success))
-
 
18944
          return false;
-
 
18945
      }
-
 
18946
 
-
 
18947
      return true;
-
 
18948
    }
-
 
18949
 
-
 
18950
    @Override
-
 
18951
    public int hashCode() {
-
 
18952
      return 0;
-
 
18953
    }
-
 
18954
 
-
 
18955
    public int compareTo(getPermissionsForRoleName_result other) {
-
 
18956
      if (!getClass().equals(other.getClass())) {
-
 
18957
        return getClass().getName().compareTo(other.getClass().getName());
-
 
18958
      }
-
 
18959
 
-
 
18960
      int lastComparison = 0;
-
 
18961
      getPermissionsForRoleName_result typedOther = (getPermissionsForRoleName_result)other;
-
 
18962
 
-
 
18963
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
18964
      if (lastComparison != 0) {
-
 
18965
        return lastComparison;
-
 
18966
      }
-
 
18967
      if (isSetSuccess()) {
-
 
18968
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
18969
        if (lastComparison != 0) {
-
 
18970
          return lastComparison;
-
 
18971
        }
-
 
18972
      }
-
 
18973
      return 0;
-
 
18974
    }
-
 
18975
 
-
 
18976
    public _Fields fieldForId(int fieldId) {
-
 
18977
      return _Fields.findByThriftId(fieldId);
-
 
18978
    }
-
 
18979
 
-
 
18980
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
18981
      org.apache.thrift.protocol.TField field;
-
 
18982
      iprot.readStructBegin();
-
 
18983
      while (true)
-
 
18984
      {
-
 
18985
        field = iprot.readFieldBegin();
-
 
18986
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
18987
          break;
-
 
18988
        }
-
 
18989
        switch (field.id) {
-
 
18990
          case 0: // SUCCESS
-
 
18991
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
18992
              {
-
 
18993
                org.apache.thrift.protocol.TList _list33 = iprot.readListBegin();
-
 
18994
                this.success = new ArrayList<String>(_list33.size);
-
 
18995
                for (int _i34 = 0; _i34 < _list33.size; ++_i34)
-
 
18996
                {
-
 
18997
                  String _elem35; // required
-
 
18998
                  _elem35 = iprot.readString();
-
 
18999
                  this.success.add(_elem35);
-
 
19000
                }
-
 
19001
                iprot.readListEnd();
-
 
19002
              }
-
 
19003
            } else { 
-
 
19004
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
19005
            }
-
 
19006
            break;
-
 
19007
          default:
-
 
19008
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
19009
        }
-
 
19010
        iprot.readFieldEnd();
-
 
19011
      }
-
 
19012
      iprot.readStructEnd();
-
 
19013
      validate();
-
 
19014
    }
-
 
19015
 
-
 
19016
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
19017
      oprot.writeStructBegin(STRUCT_DESC);
-
 
19018
 
-
 
19019
      if (this.isSetSuccess()) {
-
 
19020
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
19021
        {
-
 
19022
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
-
 
19023
          for (String _iter36 : this.success)
-
 
19024
          {
-
 
19025
            oprot.writeString(_iter36);
-
 
19026
          }
-
 
19027
          oprot.writeListEnd();
-
 
19028
        }
-
 
19029
        oprot.writeFieldEnd();
-
 
19030
      }
-
 
19031
      oprot.writeFieldStop();
-
 
19032
      oprot.writeStructEnd();
-
 
19033
    }
-
 
19034
 
-
 
19035
    @Override
-
 
19036
    public String toString() {
-
 
19037
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_result(");
-
 
19038
      boolean first = true;
-
 
19039
 
-
 
19040
      sb.append("success:");
-
 
19041
      if (this.success == null) {
-
 
19042
        sb.append("null");
-
 
19043
      } else {
-
 
19044
        sb.append(this.success);
-
 
19045
      }
-
 
19046
      first = false;
-
 
19047
      sb.append(")");
-
 
19048
      return sb.toString();
-
 
19049
    }
15633
 
19050
 
15634
    public void validate() throws org.apache.thrift.TException {
19051
    public void validate() throws org.apache.thrift.TException {
15635
      // check for required fields
19052
      // check for required fields
15636
    }
19053
    }
15637
 
19054