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 4691
Line 190... Line 190...
190
     - entityIds
190
     - entityIds
191
     - email
191
     - email
192
    """
192
    """
193
    pass
193
    pass
194
 
194
 
-
 
195
  def getAgents(self, ):
-
 
196
    pass
-
 
197
 
-
 
198
  def validateLogIn(self, emailId, password):
-
 
199
    """
-
 
200
    Parameters:
-
 
201
     - emailId
-
 
202
     - password
-
 
203
    """
-
 
204
    pass
-
 
205
 
-
 
206
  def updatePasswordForAgent(self, agentEmailId, password):
-
 
207
    """
-
 
208
    Parameters:
-
 
209
     - agentEmailId
-
 
210
     - password
-
 
211
    """
-
 
212
    pass
-
 
213
 
-
 
214
  def getRoleNamesForAgent(self, agentEmailId):
-
 
215
    """
-
 
216
    Parameters:
-
 
217
     - agentEmailId
-
 
218
    """
-
 
219
    pass
-
 
220
 
-
 
221
  def getPermissionsForRoleName(self, roleName):
-
 
222
    """
-
 
223
    Parameters:
-
 
224
     - roleName
-
 
225
    """
-
 
226
    pass
-
 
227
 
195
 
228
 
196
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
229
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
197
  def __init__(self, iprot, oprot=None):
230
  def __init__(self, iprot, oprot=None):
198
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
231
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
199
 
232
 
Line 848... Line 881...
848
    self._iprot.readMessageEnd()
881
    self._iprot.readMessageEnd()
849
    if result.hse is not None:
882
    if result.hse is not None:
850
      raise result.hse
883
      raise result.hse
851
    return
884
    return
852
 
885
 
-
 
886
  def getAgents(self, ):
-
 
887
    self.send_getAgents()
-
 
888
    return self.recv_getAgents()
-
 
889
 
-
 
890
  def send_getAgents(self, ):
-
 
891
    self._oprot.writeMessageBegin('getAgents', TMessageType.CALL, self._seqid)
-
 
892
    args = getAgents_args()
-
 
893
    args.write(self._oprot)
-
 
894
    self._oprot.writeMessageEnd()
-
 
895
    self._oprot.trans.flush()
-
 
896
 
-
 
897
  def recv_getAgents(self, ):
-
 
898
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
899
    if mtype == TMessageType.EXCEPTION:
-
 
900
      x = TApplicationException()
-
 
901
      x.read(self._iprot)
-
 
902
      self._iprot.readMessageEnd()
-
 
903
      raise x
-
 
904
    result = getAgents_result()
-
 
905
    result.read(self._iprot)
-
 
906
    self._iprot.readMessageEnd()
-
 
907
    if result.success is not None:
-
 
908
      return result.success
-
 
909
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAgents failed: unknown result");
-
 
910
 
-
 
911
  def validateLogIn(self, emailId, password):
-
 
912
    """
-
 
913
    Parameters:
-
 
914
     - emailId
-
 
915
     - password
-
 
916
    """
-
 
917
    self.send_validateLogIn(emailId, password)
-
 
918
    return self.recv_validateLogIn()
-
 
919
 
-
 
920
  def send_validateLogIn(self, emailId, password):
-
 
921
    self._oprot.writeMessageBegin('validateLogIn', TMessageType.CALL, self._seqid)
-
 
922
    args = validateLogIn_args()
-
 
923
    args.emailId = emailId
-
 
924
    args.password = password
-
 
925
    args.write(self._oprot)
-
 
926
    self._oprot.writeMessageEnd()
-
 
927
    self._oprot.trans.flush()
-
 
928
 
-
 
929
  def recv_validateLogIn(self, ):
-
 
930
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
931
    if mtype == TMessageType.EXCEPTION:
-
 
932
      x = TApplicationException()
-
 
933
      x.read(self._iprot)
-
 
934
      self._iprot.readMessageEnd()
-
 
935
      raise x
-
 
936
    result = validateLogIn_result()
-
 
937
    result.read(self._iprot)
-
 
938
    self._iprot.readMessageEnd()
-
 
939
    if result.success is not None:
-
 
940
      return result.success
-
 
941
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateLogIn failed: unknown result");
-
 
942
 
-
 
943
  def updatePasswordForAgent(self, agentEmailId, password):
-
 
944
    """
-
 
945
    Parameters:
-
 
946
     - agentEmailId
-
 
947
     - password
-
 
948
    """
-
 
949
    self.send_updatePasswordForAgent(agentEmailId, password)
-
 
950
    self.recv_updatePasswordForAgent()
-
 
951
 
-
 
952
  def send_updatePasswordForAgent(self, agentEmailId, password):
-
 
953
    self._oprot.writeMessageBegin('updatePasswordForAgent', TMessageType.CALL, self._seqid)
-
 
954
    args = updatePasswordForAgent_args()
-
 
955
    args.agentEmailId = agentEmailId
-
 
956
    args.password = password
-
 
957
    args.write(self._oprot)
-
 
958
    self._oprot.writeMessageEnd()
-
 
959
    self._oprot.trans.flush()
-
 
960
 
-
 
961
  def recv_updatePasswordForAgent(self, ):
-
 
962
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
963
    if mtype == TMessageType.EXCEPTION:
-
 
964
      x = TApplicationException()
-
 
965
      x.read(self._iprot)
-
 
966
      self._iprot.readMessageEnd()
-
 
967
      raise x
-
 
968
    result = updatePasswordForAgent_result()
-
 
969
    result.read(self._iprot)
-
 
970
    self._iprot.readMessageEnd()
-
 
971
    return
-
 
972
 
-
 
973
  def getRoleNamesForAgent(self, agentEmailId):
-
 
974
    """
-
 
975
    Parameters:
-
 
976
     - agentEmailId
-
 
977
    """
-
 
978
    self.send_getRoleNamesForAgent(agentEmailId)
-
 
979
    return self.recv_getRoleNamesForAgent()
-
 
980
 
-
 
981
  def send_getRoleNamesForAgent(self, agentEmailId):
-
 
982
    self._oprot.writeMessageBegin('getRoleNamesForAgent', TMessageType.CALL, self._seqid)
-
 
983
    args = getRoleNamesForAgent_args()
-
 
984
    args.agentEmailId = agentEmailId
-
 
985
    args.write(self._oprot)
-
 
986
    self._oprot.writeMessageEnd()
-
 
987
    self._oprot.trans.flush()
-
 
988
 
-
 
989
  def recv_getRoleNamesForAgent(self, ):
-
 
990
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
991
    if mtype == TMessageType.EXCEPTION:
-
 
992
      x = TApplicationException()
-
 
993
      x.read(self._iprot)
-
 
994
      self._iprot.readMessageEnd()
-
 
995
      raise x
-
 
996
    result = getRoleNamesForAgent_result()
-
 
997
    result.read(self._iprot)
-
 
998
    self._iprot.readMessageEnd()
-
 
999
    if result.success is not None:
-
 
1000
      return result.success
-
 
1001
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getRoleNamesForAgent failed: unknown result");
-
 
1002
 
-
 
1003
  def getPermissionsForRoleName(self, roleName):
-
 
1004
    """
-
 
1005
    Parameters:
-
 
1006
     - roleName
-
 
1007
    """
-
 
1008
    self.send_getPermissionsForRoleName(roleName)
-
 
1009
    return self.recv_getPermissionsForRoleName()
-
 
1010
 
-
 
1011
  def send_getPermissionsForRoleName(self, roleName):
-
 
1012
    self._oprot.writeMessageBegin('getPermissionsForRoleName', TMessageType.CALL, self._seqid)
-
 
1013
    args = getPermissionsForRoleName_args()
-
 
1014
    args.roleName = roleName
-
 
1015
    args.write(self._oprot)
-
 
1016
    self._oprot.writeMessageEnd()
-
 
1017
    self._oprot.trans.flush()
-
 
1018
 
-
 
1019
  def recv_getPermissionsForRoleName(self, ):
-
 
1020
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1021
    if mtype == TMessageType.EXCEPTION:
-
 
1022
      x = TApplicationException()
-
 
1023
      x.read(self._iprot)
-
 
1024
      self._iprot.readMessageEnd()
-
 
1025
      raise x
-
 
1026
    result = getPermissionsForRoleName_result()
-
 
1027
    result.read(self._iprot)
-
 
1028
    self._iprot.readMessageEnd()
-
 
1029
    if result.success is not None:
-
 
1030
      return result.success
-
 
1031
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPermissionsForRoleName failed: unknown result");
-
 
1032
 
853
 
1033
 
854
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
1034
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
855
  def __init__(self, handler):
1035
  def __init__(self, handler):
856
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
1036
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
857
    self._processMap["saveUserEmailForSending"] = Processor.process_saveUserEmailForSending
1037
    self._processMap["saveUserEmailForSending"] = Processor.process_saveUserEmailForSending
Line 871... Line 1051...
871
    self._processMap["authenticateStatisticsUser"] = Processor.process_authenticateStatisticsUser
1051
    self._processMap["authenticateStatisticsUser"] = Processor.process_authenticateStatisticsUser
872
    self._processMap["authenticateReportUser"] = Processor.process_authenticateReportUser
1052
    self._processMap["authenticateReportUser"] = Processor.process_authenticateReportUser
873
    self._processMap["getReports"] = Processor.process_getReports
1053
    self._processMap["getReports"] = Processor.process_getReports
874
    self._processMap["authenticateCatalogUser"] = Processor.process_authenticateCatalogUser
1054
    self._processMap["authenticateCatalogUser"] = Processor.process_authenticateCatalogUser
875
    self._processMap["shareEntities"] = Processor.process_shareEntities
1055
    self._processMap["shareEntities"] = Processor.process_shareEntities
-
 
1056
    self._processMap["getAgents"] = Processor.process_getAgents
-
 
1057
    self._processMap["validateLogIn"] = Processor.process_validateLogIn
-
 
1058
    self._processMap["updatePasswordForAgent"] = Processor.process_updatePasswordForAgent
-
 
1059
    self._processMap["getRoleNamesForAgent"] = Processor.process_getRoleNamesForAgent
-
 
1060
    self._processMap["getPermissionsForRoleName"] = Processor.process_getPermissionsForRoleName
876
 
1061
 
877
  def process(self, iprot, oprot):
1062
  def process(self, iprot, oprot):
878
    (name, type, seqid) = iprot.readMessageBegin()
1063
    (name, type, seqid) = iprot.readMessageBegin()
879
    if name not in self._processMap:
1064
    if name not in self._processMap:
880
      iprot.skip(TType.STRUCT)
1065
      iprot.skip(TType.STRUCT)
Line 1150... Line 1335...
1150
    oprot.writeMessageBegin("shareEntities", TMessageType.REPLY, seqid)
1335
    oprot.writeMessageBegin("shareEntities", TMessageType.REPLY, seqid)
1151
    result.write(oprot)
1336
    result.write(oprot)
1152
    oprot.writeMessageEnd()
1337
    oprot.writeMessageEnd()
1153
    oprot.trans.flush()
1338
    oprot.trans.flush()
1154
 
1339
 
-
 
1340
  def process_getAgents(self, seqid, iprot, oprot):
-
 
1341
    args = getAgents_args()
-
 
1342
    args.read(iprot)
-
 
1343
    iprot.readMessageEnd()
-
 
1344
    result = getAgents_result()
-
 
1345
    result.success = self._handler.getAgents()
-
 
1346
    oprot.writeMessageBegin("getAgents", TMessageType.REPLY, seqid)
-
 
1347
    result.write(oprot)
-
 
1348
    oprot.writeMessageEnd()
-
 
1349
    oprot.trans.flush()
-
 
1350
 
-
 
1351
  def process_validateLogIn(self, seqid, iprot, oprot):
-
 
1352
    args = validateLogIn_args()
-
 
1353
    args.read(iprot)
-
 
1354
    iprot.readMessageEnd()
-
 
1355
    result = validateLogIn_result()
-
 
1356
    result.success = self._handler.validateLogIn(args.emailId, args.password)
-
 
1357
    oprot.writeMessageBegin("validateLogIn", TMessageType.REPLY, seqid)
-
 
1358
    result.write(oprot)
-
 
1359
    oprot.writeMessageEnd()
-
 
1360
    oprot.trans.flush()
-
 
1361
 
-
 
1362
  def process_updatePasswordForAgent(self, seqid, iprot, oprot):
-
 
1363
    args = updatePasswordForAgent_args()
-
 
1364
    args.read(iprot)
-
 
1365
    iprot.readMessageEnd()
-
 
1366
    result = updatePasswordForAgent_result()
-
 
1367
    self._handler.updatePasswordForAgent(args.agentEmailId, args.password)
-
 
1368
    oprot.writeMessageBegin("updatePasswordForAgent", TMessageType.REPLY, seqid)
-
 
1369
    result.write(oprot)
-
 
1370
    oprot.writeMessageEnd()
-
 
1371
    oprot.trans.flush()
-
 
1372
 
-
 
1373
  def process_getRoleNamesForAgent(self, seqid, iprot, oprot):
-
 
1374
    args = getRoleNamesForAgent_args()
-
 
1375
    args.read(iprot)
-
 
1376
    iprot.readMessageEnd()
-
 
1377
    result = getRoleNamesForAgent_result()
-
 
1378
    result.success = self._handler.getRoleNamesForAgent(args.agentEmailId)
-
 
1379
    oprot.writeMessageBegin("getRoleNamesForAgent", TMessageType.REPLY, seqid)
-
 
1380
    result.write(oprot)
-
 
1381
    oprot.writeMessageEnd()
-
 
1382
    oprot.trans.flush()
-
 
1383
 
-
 
1384
  def process_getPermissionsForRoleName(self, seqid, iprot, oprot):
-
 
1385
    args = getPermissionsForRoleName_args()
-
 
1386
    args.read(iprot)
-
 
1387
    iprot.readMessageEnd()
-
 
1388
    result = getPermissionsForRoleName_result()
-
 
1389
    result.success = self._handler.getPermissionsForRoleName(args.roleName)
-
 
1390
    oprot.writeMessageBegin("getPermissionsForRoleName", TMessageType.REPLY, seqid)
-
 
1391
    result.write(oprot)
-
 
1392
    oprot.writeMessageEnd()
-
 
1393
    oprot.trans.flush()
-
 
1394
 
1155
 
1395
 
1156
# HELPER FUNCTIONS AND STRUCTURES
1396
# HELPER FUNCTIONS AND STRUCTURES
1157
 
1397
 
1158
class saveUserEmailForSending_args:
1398
class saveUserEmailForSending_args:
1159
  """
1399
  """
Line 3812... Line 4052...
3812
      oprot.writeFieldEnd()
4052
      oprot.writeFieldEnd()
3813
    oprot.writeFieldStop()
4053
    oprot.writeFieldStop()
3814
    oprot.writeStructEnd()
4054
    oprot.writeStructEnd()
3815
 
4055
 
3816
  def validate(self):
4056
  def validate(self):
-
 
4057
    return
-
 
4058
 
-
 
4059
 
-
 
4060
  def __repr__(self):
-
 
4061
    L = ['%s=%r' % (key, value)
-
 
4062
      for key, value in self.__dict__.iteritems()]
-
 
4063
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4064
 
-
 
4065
  def __eq__(self, other):
-
 
4066
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4067
 
-
 
4068
  def __ne__(self, other):
-
 
4069
    return not (self == other)
-
 
4070
 
-
 
4071
class getAgents_args:
-
 
4072
 
-
 
4073
  thrift_spec = (
-
 
4074
  )
-
 
4075
 
-
 
4076
  def read(self, iprot):
-
 
4077
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4078
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4079
      return
-
 
4080
    iprot.readStructBegin()
-
 
4081
    while True:
-
 
4082
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4083
      if ftype == TType.STOP:
-
 
4084
        break
-
 
4085
      else:
-
 
4086
        iprot.skip(ftype)
-
 
4087
      iprot.readFieldEnd()
-
 
4088
    iprot.readStructEnd()
-
 
4089
 
-
 
4090
  def write(self, oprot):
-
 
4091
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4092
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4093
      return
-
 
4094
    oprot.writeStructBegin('getAgents_args')
-
 
4095
    oprot.writeFieldStop()
-
 
4096
    oprot.writeStructEnd()
-
 
4097
 
-
 
4098
  def validate(self):
-
 
4099
    return
-
 
4100
 
-
 
4101
 
-
 
4102
  def __repr__(self):
-
 
4103
    L = ['%s=%r' % (key, value)
-
 
4104
      for key, value in self.__dict__.iteritems()]
-
 
4105
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4106
 
-
 
4107
  def __eq__(self, other):
-
 
4108
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4109
 
-
 
4110
  def __ne__(self, other):
-
 
4111
    return not (self == other)
-
 
4112
 
-
 
4113
class getAgents_result:
-
 
4114
  """
-
 
4115
  Attributes:
-
 
4116
   - success
-
 
4117
  """
-
 
4118
 
-
 
4119
  thrift_spec = (
-
 
4120
    (0, TType.LIST, 'success', (TType.STRUCT,(Agent, Agent.thrift_spec)), None, ), # 0
-
 
4121
  )
-
 
4122
 
-
 
4123
  def __init__(self, success=None,):
-
 
4124
    self.success = success
-
 
4125
 
-
 
4126
  def read(self, iprot):
-
 
4127
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4128
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4129
      return
-
 
4130
    iprot.readStructBegin()
-
 
4131
    while True:
-
 
4132
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4133
      if ftype == TType.STOP:
-
 
4134
        break
-
 
4135
      if fid == 0:
-
 
4136
        if ftype == TType.LIST:
-
 
4137
          self.success = []
-
 
4138
          (_etype47, _size44) = iprot.readListBegin()
-
 
4139
          for _i48 in xrange(_size44):
-
 
4140
            _elem49 = Agent()
-
 
4141
            _elem49.read(iprot)
-
 
4142
            self.success.append(_elem49)
-
 
4143
          iprot.readListEnd()
-
 
4144
        else:
-
 
4145
          iprot.skip(ftype)
-
 
4146
      else:
-
 
4147
        iprot.skip(ftype)
-
 
4148
      iprot.readFieldEnd()
-
 
4149
    iprot.readStructEnd()
-
 
4150
 
-
 
4151
  def write(self, oprot):
-
 
4152
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4153
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4154
      return
-
 
4155
    oprot.writeStructBegin('getAgents_result')
-
 
4156
    if self.success is not None:
-
 
4157
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
4158
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
4159
      for iter50 in self.success:
-
 
4160
        iter50.write(oprot)
-
 
4161
      oprot.writeListEnd()
-
 
4162
      oprot.writeFieldEnd()
-
 
4163
    oprot.writeFieldStop()
-
 
4164
    oprot.writeStructEnd()
-
 
4165
 
-
 
4166
  def validate(self):
-
 
4167
    return
-
 
4168
 
-
 
4169
 
-
 
4170
  def __repr__(self):
-
 
4171
    L = ['%s=%r' % (key, value)
-
 
4172
      for key, value in self.__dict__.iteritems()]
-
 
4173
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4174
 
-
 
4175
  def __eq__(self, other):
-
 
4176
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4177
 
-
 
4178
  def __ne__(self, other):
-
 
4179
    return not (self == other)
-
 
4180
 
-
 
4181
class validateLogIn_args:
-
 
4182
  """
-
 
4183
  Attributes:
-
 
4184
   - emailId
-
 
4185
   - password
-
 
4186
  """
-
 
4187
 
-
 
4188
  thrift_spec = (
-
 
4189
    None, # 0
-
 
4190
    (1, TType.STRING, 'emailId', None, None, ), # 1
-
 
4191
    (2, TType.STRING, 'password', None, None, ), # 2
-
 
4192
  )
-
 
4193
 
-
 
4194
  def __init__(self, emailId=None, password=None,):
-
 
4195
    self.emailId = emailId
-
 
4196
    self.password = password
-
 
4197
 
-
 
4198
  def read(self, iprot):
-
 
4199
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4200
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4201
      return
-
 
4202
    iprot.readStructBegin()
-
 
4203
    while True:
-
 
4204
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4205
      if ftype == TType.STOP:
-
 
4206
        break
-
 
4207
      if fid == 1:
-
 
4208
        if ftype == TType.STRING:
-
 
4209
          self.emailId = iprot.readString();
-
 
4210
        else:
-
 
4211
          iprot.skip(ftype)
-
 
4212
      elif fid == 2:
-
 
4213
        if ftype == TType.STRING:
-
 
4214
          self.password = iprot.readString();
-
 
4215
        else:
-
 
4216
          iprot.skip(ftype)
-
 
4217
      else:
-
 
4218
        iprot.skip(ftype)
-
 
4219
      iprot.readFieldEnd()
-
 
4220
    iprot.readStructEnd()
-
 
4221
 
-
 
4222
  def write(self, oprot):
-
 
4223
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4224
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4225
      return
-
 
4226
    oprot.writeStructBegin('validateLogIn_args')
-
 
4227
    if self.emailId is not None:
-
 
4228
      oprot.writeFieldBegin('emailId', TType.STRING, 1)
-
 
4229
      oprot.writeString(self.emailId)
-
 
4230
      oprot.writeFieldEnd()
-
 
4231
    if self.password is not None:
-
 
4232
      oprot.writeFieldBegin('password', TType.STRING, 2)
-
 
4233
      oprot.writeString(self.password)
-
 
4234
      oprot.writeFieldEnd()
-
 
4235
    oprot.writeFieldStop()
-
 
4236
    oprot.writeStructEnd()
-
 
4237
 
-
 
4238
  def validate(self):
-
 
4239
    return
-
 
4240
 
-
 
4241
 
-
 
4242
  def __repr__(self):
-
 
4243
    L = ['%s=%r' % (key, value)
-
 
4244
      for key, value in self.__dict__.iteritems()]
-
 
4245
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4246
 
-
 
4247
  def __eq__(self, other):
-
 
4248
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4249
 
-
 
4250
  def __ne__(self, other):
-
 
4251
    return not (self == other)
-
 
4252
 
-
 
4253
class validateLogIn_result:
-
 
4254
  """
-
 
4255
  Attributes:
-
 
4256
   - success
-
 
4257
  """
-
 
4258
 
-
 
4259
  thrift_spec = (
-
 
4260
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
4261
  )
-
 
4262
 
-
 
4263
  def __init__(self, success=None,):
-
 
4264
    self.success = success
-
 
4265
 
-
 
4266
  def read(self, iprot):
-
 
4267
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4268
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4269
      return
-
 
4270
    iprot.readStructBegin()
-
 
4271
    while True:
-
 
4272
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4273
      if ftype == TType.STOP:
-
 
4274
        break
-
 
4275
      if fid == 0:
-
 
4276
        if ftype == TType.BOOL:
-
 
4277
          self.success = iprot.readBool();
-
 
4278
        else:
-
 
4279
          iprot.skip(ftype)
-
 
4280
      else:
-
 
4281
        iprot.skip(ftype)
-
 
4282
      iprot.readFieldEnd()
-
 
4283
    iprot.readStructEnd()
-
 
4284
 
-
 
4285
  def write(self, oprot):
-
 
4286
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4287
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4288
      return
-
 
4289
    oprot.writeStructBegin('validateLogIn_result')
-
 
4290
    if self.success is not None:
-
 
4291
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
4292
      oprot.writeBool(self.success)
-
 
4293
      oprot.writeFieldEnd()
-
 
4294
    oprot.writeFieldStop()
-
 
4295
    oprot.writeStructEnd()
-
 
4296
 
-
 
4297
  def validate(self):
-
 
4298
    return
-
 
4299
 
-
 
4300
 
-
 
4301
  def __repr__(self):
-
 
4302
    L = ['%s=%r' % (key, value)
-
 
4303
      for key, value in self.__dict__.iteritems()]
-
 
4304
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4305
 
-
 
4306
  def __eq__(self, other):
-
 
4307
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4308
 
-
 
4309
  def __ne__(self, other):
-
 
4310
    return not (self == other)
-
 
4311
 
-
 
4312
class updatePasswordForAgent_args:
-
 
4313
  """
-
 
4314
  Attributes:
-
 
4315
   - agentEmailId
-
 
4316
   - password
-
 
4317
  """
-
 
4318
 
-
 
4319
  thrift_spec = (
-
 
4320
    None, # 0
-
 
4321
    (1, TType.STRING, 'agentEmailId', None, None, ), # 1
-
 
4322
    (2, TType.STRING, 'password', None, None, ), # 2
-
 
4323
  )
-
 
4324
 
-
 
4325
  def __init__(self, agentEmailId=None, password=None,):
-
 
4326
    self.agentEmailId = agentEmailId
-
 
4327
    self.password = password
-
 
4328
 
-
 
4329
  def read(self, iprot):
-
 
4330
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4331
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4332
      return
-
 
4333
    iprot.readStructBegin()
-
 
4334
    while True:
-
 
4335
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4336
      if ftype == TType.STOP:
-
 
4337
        break
-
 
4338
      if fid == 1:
-
 
4339
        if ftype == TType.STRING:
-
 
4340
          self.agentEmailId = iprot.readString();
-
 
4341
        else:
-
 
4342
          iprot.skip(ftype)
-
 
4343
      elif fid == 2:
-
 
4344
        if ftype == TType.STRING:
-
 
4345
          self.password = iprot.readString();
-
 
4346
        else:
-
 
4347
          iprot.skip(ftype)
-
 
4348
      else:
-
 
4349
        iprot.skip(ftype)
-
 
4350
      iprot.readFieldEnd()
-
 
4351
    iprot.readStructEnd()
-
 
4352
 
-
 
4353
  def write(self, oprot):
-
 
4354
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4355
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4356
      return
-
 
4357
    oprot.writeStructBegin('updatePasswordForAgent_args')
-
 
4358
    if self.agentEmailId is not None:
-
 
4359
      oprot.writeFieldBegin('agentEmailId', TType.STRING, 1)
-
 
4360
      oprot.writeString(self.agentEmailId)
-
 
4361
      oprot.writeFieldEnd()
-
 
4362
    if self.password is not None:
-
 
4363
      oprot.writeFieldBegin('password', TType.STRING, 2)
-
 
4364
      oprot.writeString(self.password)
-
 
4365
      oprot.writeFieldEnd()
-
 
4366
    oprot.writeFieldStop()
-
 
4367
    oprot.writeStructEnd()
-
 
4368
 
-
 
4369
  def validate(self):
-
 
4370
    return
-
 
4371
 
-
 
4372
 
-
 
4373
  def __repr__(self):
-
 
4374
    L = ['%s=%r' % (key, value)
-
 
4375
      for key, value in self.__dict__.iteritems()]
-
 
4376
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4377
 
-
 
4378
  def __eq__(self, other):
-
 
4379
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4380
 
-
 
4381
  def __ne__(self, other):
-
 
4382
    return not (self == other)
-
 
4383
 
-
 
4384
class updatePasswordForAgent_result:
-
 
4385
 
-
 
4386
  thrift_spec = (
-
 
4387
  )
-
 
4388
 
-
 
4389
  def read(self, iprot):
-
 
4390
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4391
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4392
      return
-
 
4393
    iprot.readStructBegin()
-
 
4394
    while True:
-
 
4395
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4396
      if ftype == TType.STOP:
-
 
4397
        break
-
 
4398
      else:
-
 
4399
        iprot.skip(ftype)
-
 
4400
      iprot.readFieldEnd()
-
 
4401
    iprot.readStructEnd()
-
 
4402
 
-
 
4403
  def write(self, oprot):
-
 
4404
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4405
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4406
      return
-
 
4407
    oprot.writeStructBegin('updatePasswordForAgent_result')
-
 
4408
    oprot.writeFieldStop()
-
 
4409
    oprot.writeStructEnd()
-
 
4410
 
-
 
4411
  def validate(self):
-
 
4412
    return
-
 
4413
 
-
 
4414
 
-
 
4415
  def __repr__(self):
-
 
4416
    L = ['%s=%r' % (key, value)
-
 
4417
      for key, value in self.__dict__.iteritems()]
-
 
4418
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4419
 
-
 
4420
  def __eq__(self, other):
-
 
4421
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4422
 
-
 
4423
  def __ne__(self, other):
-
 
4424
    return not (self == other)
-
 
4425
 
-
 
4426
class getRoleNamesForAgent_args:
-
 
4427
  """
-
 
4428
  Attributes:
-
 
4429
   - agentEmailId
-
 
4430
  """
-
 
4431
 
-
 
4432
  thrift_spec = (
-
 
4433
    None, # 0
-
 
4434
    (1, TType.STRING, 'agentEmailId', None, None, ), # 1
-
 
4435
  )
-
 
4436
 
-
 
4437
  def __init__(self, agentEmailId=None,):
-
 
4438
    self.agentEmailId = agentEmailId
-
 
4439
 
-
 
4440
  def read(self, iprot):
-
 
4441
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4442
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4443
      return
-
 
4444
    iprot.readStructBegin()
-
 
4445
    while True:
-
 
4446
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4447
      if ftype == TType.STOP:
-
 
4448
        break
-
 
4449
      if fid == 1:
-
 
4450
        if ftype == TType.STRING:
-
 
4451
          self.agentEmailId = iprot.readString();
-
 
4452
        else:
-
 
4453
          iprot.skip(ftype)
-
 
4454
      else:
-
 
4455
        iprot.skip(ftype)
-
 
4456
      iprot.readFieldEnd()
-
 
4457
    iprot.readStructEnd()
-
 
4458
 
-
 
4459
  def write(self, oprot):
-
 
4460
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4461
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4462
      return
-
 
4463
    oprot.writeStructBegin('getRoleNamesForAgent_args')
-
 
4464
    if self.agentEmailId is not None:
-
 
4465
      oprot.writeFieldBegin('agentEmailId', TType.STRING, 1)
-
 
4466
      oprot.writeString(self.agentEmailId)
-
 
4467
      oprot.writeFieldEnd()
-
 
4468
    oprot.writeFieldStop()
-
 
4469
    oprot.writeStructEnd()
-
 
4470
 
-
 
4471
  def validate(self):
-
 
4472
    return
-
 
4473
 
-
 
4474
 
-
 
4475
  def __repr__(self):
-
 
4476
    L = ['%s=%r' % (key, value)
-
 
4477
      for key, value in self.__dict__.iteritems()]
-
 
4478
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4479
 
-
 
4480
  def __eq__(self, other):
-
 
4481
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4482
 
-
 
4483
  def __ne__(self, other):
-
 
4484
    return not (self == other)
-
 
4485
 
-
 
4486
class getRoleNamesForAgent_result:
-
 
4487
  """
-
 
4488
  Attributes:
-
 
4489
   - success
-
 
4490
  """
-
 
4491
 
-
 
4492
  thrift_spec = (
-
 
4493
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
-
 
4494
  )
-
 
4495
 
-
 
4496
  def __init__(self, success=None,):
-
 
4497
    self.success = success
-
 
4498
 
-
 
4499
  def read(self, iprot):
-
 
4500
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4501
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4502
      return
-
 
4503
    iprot.readStructBegin()
-
 
4504
    while True:
-
 
4505
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4506
      if ftype == TType.STOP:
-
 
4507
        break
-
 
4508
      if fid == 0:
-
 
4509
        if ftype == TType.LIST:
-
 
4510
          self.success = []
-
 
4511
          (_etype54, _size51) = iprot.readListBegin()
-
 
4512
          for _i55 in xrange(_size51):
-
 
4513
            _elem56 = iprot.readString();
-
 
4514
            self.success.append(_elem56)
-
 
4515
          iprot.readListEnd()
-
 
4516
        else:
-
 
4517
          iprot.skip(ftype)
-
 
4518
      else:
-
 
4519
        iprot.skip(ftype)
-
 
4520
      iprot.readFieldEnd()
-
 
4521
    iprot.readStructEnd()
-
 
4522
 
-
 
4523
  def write(self, oprot):
-
 
4524
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4525
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4526
      return
-
 
4527
    oprot.writeStructBegin('getRoleNamesForAgent_result')
-
 
4528
    if self.success is not None:
-
 
4529
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
4530
      oprot.writeListBegin(TType.STRING, len(self.success))
-
 
4531
      for iter57 in self.success:
-
 
4532
        oprot.writeString(iter57)
-
 
4533
      oprot.writeListEnd()
-
 
4534
      oprot.writeFieldEnd()
-
 
4535
    oprot.writeFieldStop()
-
 
4536
    oprot.writeStructEnd()
-
 
4537
 
-
 
4538
  def validate(self):
-
 
4539
    return
-
 
4540
 
-
 
4541
 
-
 
4542
  def __repr__(self):
-
 
4543
    L = ['%s=%r' % (key, value)
-
 
4544
      for key, value in self.__dict__.iteritems()]
-
 
4545
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4546
 
-
 
4547
  def __eq__(self, other):
-
 
4548
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4549
 
-
 
4550
  def __ne__(self, other):
-
 
4551
    return not (self == other)
-
 
4552
 
-
 
4553
class getPermissionsForRoleName_args:
-
 
4554
  """
-
 
4555
  Attributes:
-
 
4556
   - roleName
-
 
4557
  """
-
 
4558
 
-
 
4559
  thrift_spec = (
-
 
4560
    None, # 0
-
 
4561
    (1, TType.STRING, 'roleName', None, None, ), # 1
-
 
4562
  )
-
 
4563
 
-
 
4564
  def __init__(self, roleName=None,):
-
 
4565
    self.roleName = roleName
-
 
4566
 
-
 
4567
  def read(self, iprot):
-
 
4568
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4569
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4570
      return
-
 
4571
    iprot.readStructBegin()
-
 
4572
    while True:
-
 
4573
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4574
      if ftype == TType.STOP:
-
 
4575
        break
-
 
4576
      if fid == 1:
-
 
4577
        if ftype == TType.STRING:
-
 
4578
          self.roleName = iprot.readString();
-
 
4579
        else:
-
 
4580
          iprot.skip(ftype)
-
 
4581
      else:
-
 
4582
        iprot.skip(ftype)
-
 
4583
      iprot.readFieldEnd()
-
 
4584
    iprot.readStructEnd()
-
 
4585
 
-
 
4586
  def write(self, oprot):
-
 
4587
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4588
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4589
      return
-
 
4590
    oprot.writeStructBegin('getPermissionsForRoleName_args')
-
 
4591
    if self.roleName is not None:
-
 
4592
      oprot.writeFieldBegin('roleName', TType.STRING, 1)
-
 
4593
      oprot.writeString(self.roleName)
-
 
4594
      oprot.writeFieldEnd()
-
 
4595
    oprot.writeFieldStop()
-
 
4596
    oprot.writeStructEnd()
-
 
4597
 
-
 
4598
  def validate(self):
-
 
4599
    return
-
 
4600
 
-
 
4601
 
-
 
4602
  def __repr__(self):
-
 
4603
    L = ['%s=%r' % (key, value)
-
 
4604
      for key, value in self.__dict__.iteritems()]
-
 
4605
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4606
 
-
 
4607
  def __eq__(self, other):
-
 
4608
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4609
 
-
 
4610
  def __ne__(self, other):
-
 
4611
    return not (self == other)
-
 
4612
 
-
 
4613
class getPermissionsForRoleName_result:
-
 
4614
  """
-
 
4615
  Attributes:
-
 
4616
   - success
-
 
4617
  """
-
 
4618
 
-
 
4619
  thrift_spec = (
-
 
4620
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
-
 
4621
  )
-
 
4622
 
-
 
4623
  def __init__(self, success=None,):
-
 
4624
    self.success = success
-
 
4625
 
-
 
4626
  def read(self, iprot):
-
 
4627
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4628
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4629
      return
-
 
4630
    iprot.readStructBegin()
-
 
4631
    while True:
-
 
4632
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4633
      if ftype == TType.STOP:
-
 
4634
        break
-
 
4635
      if fid == 0:
-
 
4636
        if ftype == TType.LIST:
-
 
4637
          self.success = []
-
 
4638
          (_etype61, _size58) = iprot.readListBegin()
-
 
4639
          for _i62 in xrange(_size58):
-
 
4640
            _elem63 = iprot.readString();
-
 
4641
            self.success.append(_elem63)
-
 
4642
          iprot.readListEnd()
-
 
4643
        else:
-
 
4644
          iprot.skip(ftype)
-
 
4645
      else:
-
 
4646
        iprot.skip(ftype)
-
 
4647
      iprot.readFieldEnd()
-
 
4648
    iprot.readStructEnd()
-
 
4649
 
-
 
4650
  def write(self, oprot):
-
 
4651
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4652
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4653
      return
-
 
4654
    oprot.writeStructBegin('getPermissionsForRoleName_result')
-
 
4655
    if self.success is not None:
-
 
4656
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
4657
      oprot.writeListBegin(TType.STRING, len(self.success))
-
 
4658
      for iter64 in self.success:
-
 
4659
        oprot.writeString(iter64)
-
 
4660
      oprot.writeListEnd()
-
 
4661
      oprot.writeFieldEnd()
-
 
4662
    oprot.writeFieldStop()
-
 
4663
    oprot.writeStructEnd()
-
 
4664
 
-
 
4665
  def validate(self):
3817
    return
4666
    return
3818
 
4667
 
3819
 
4668
 
3820
  def __repr__(self):
4669
  def __repr__(self):
3821
    L = ['%s=%r' % (key, value)
4670
    L = ['%s=%r' % (key, value)