Subversion Repositories SmartDukaan

Rev

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

Rev 2357 Rev 2443
Line 53... Line 53...
53
    public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, TException;
53
    public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, TException;
54
 
54
 
55
    public boolean deleteUser(String username) throws HelperServiceException, TException;
55
    public boolean deleteUser(String username) throws HelperServiceException, TException;
56
 
56
 
57
    /**
57
    /**
58
     * Returns the warehouseId for the given user if the password matches. Returns -1 otherwise.
58
     * Returns the dashboard user if the supplied username and password match. Raises an exception otherwise.
59
     * The loggedOn timestamp for the dashboard user is updated as a timestamp.
59
     * The loggedOn timestamp for the dashboard user is updated .
60
     * It's unclear to me when an exception is thrown : Chandranshu
-
 
61
     * 
60
     * 
62
     * @param username
61
     * @param username
63
     * @param password
62
     * @param password
64
     */
63
     */
65
    public long authenticateUser(String username, String password) throws HelperServiceException, TException;
64
    public DashboardUser authenticateDashboardUser(String username, String password) throws HelperServiceException, TException;
66
 
65
 
-
 
66
    /**
-
 
67
     * Update the password of the dashboard user. Currently, there is no place where this method is called.
-
 
68
     * 
-
 
69
     * @param username
-
 
70
     * @param oldPassword
-
 
71
     * @param newPassword
-
 
72
     */
67
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, TException;
73
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, TException;
68
 
74
 
69
    /**
75
    /**
70
     * Returns the LogisticsUser struct associated with the given username and password if they match.
76
     * Returns the LogisticsUser struct associated with the given username and password if they match.
71
     * Throws an exception otherwise.
77
     * Throws an exception otherwise.
Line 553... Line 559...
553
        throw result.se;
559
        throw result.se;
554
      }
560
      }
555
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
561
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
556
    }
562
    }
557
 
563
 
558
    public long authenticateUser(String username, String password) throws HelperServiceException, TException
564
    public DashboardUser authenticateDashboardUser(String username, String password) throws HelperServiceException, TException
559
    {
565
    {
560
      send_authenticateUser(username, password);
566
      send_authenticateDashboardUser(username, password);
561
      return recv_authenticateUser();
567
      return recv_authenticateDashboardUser();
562
    }
568
    }
563
 
569
 
564
    public void send_authenticateUser(String username, String password) throws TException
570
    public void send_authenticateDashboardUser(String username, String password) throws TException
565
    {
571
    {
566
      oprot_.writeMessageBegin(new TMessage("authenticateUser", TMessageType.CALL, seqid_));
572
      oprot_.writeMessageBegin(new TMessage("authenticateDashboardUser", TMessageType.CALL, seqid_));
567
      authenticateUser_args args = new authenticateUser_args();
573
      authenticateDashboardUser_args args = new authenticateDashboardUser_args();
568
      args.username = username;
574
      args.username = username;
569
      args.password = password;
575
      args.password = password;
570
      args.write(oprot_);
576
      args.write(oprot_);
571
      oprot_.writeMessageEnd();
577
      oprot_.writeMessageEnd();
572
      oprot_.getTransport().flush();
578
      oprot_.getTransport().flush();
573
    }
579
    }
574
 
580
 
575
    public long recv_authenticateUser() throws HelperServiceException, TException
581
    public DashboardUser recv_authenticateDashboardUser() throws HelperServiceException, TException
576
    {
582
    {
577
      TMessage msg = iprot_.readMessageBegin();
583
      TMessage msg = iprot_.readMessageBegin();
578
      if (msg.type == TMessageType.EXCEPTION) {
584
      if (msg.type == TMessageType.EXCEPTION) {
579
        TApplicationException x = TApplicationException.read(iprot_);
585
        TApplicationException x = TApplicationException.read(iprot_);
580
        iprot_.readMessageEnd();
586
        iprot_.readMessageEnd();
581
        throw x;
587
        throw x;
582
      }
588
      }
583
      authenticateUser_result result = new authenticateUser_result();
589
      authenticateDashboardUser_result result = new authenticateDashboardUser_result();
584
      result.read(iprot_);
590
      result.read(iprot_);
585
      iprot_.readMessageEnd();
591
      iprot_.readMessageEnd();
586
      if (result.isSetSuccess()) {
592
      if (result.isSetSuccess()) {
587
        return result.success;
593
        return result.success;
588
      }
594
      }
589
      if (result.se != null) {
595
      if (result.se != null) {
590
        throw result.se;
596
        throw result.se;
591
      }
597
      }
592
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "authenticateUser failed: unknown result");
598
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "authenticateDashboardUser failed: unknown result");
593
    }
599
    }
594
 
600
 
595
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, TException
601
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, TException
596
    {
602
    {
597
      send_updatePassword(username, oldPassword, newPassword);
603
      send_updatePassword(username, oldPassword, newPassword);
Line 828... Line 834...
828
      processMap_.put("updateMessage", new updateMessage());
834
      processMap_.put("updateMessage", new updateMessage());
829
      processMap_.put("getMessage", new getMessage());
835
      processMap_.put("getMessage", new getMessage());
830
      processMap_.put("getSubstitutedMessage", new getSubstitutedMessage());
836
      processMap_.put("getSubstitutedMessage", new getSubstitutedMessage());
831
      processMap_.put("addUser", new addUser());
837
      processMap_.put("addUser", new addUser());
832
      processMap_.put("deleteUser", new deleteUser());
838
      processMap_.put("deleteUser", new deleteUser());
833
      processMap_.put("authenticateUser", new authenticateUser());
839
      processMap_.put("authenticateDashboardUser", new authenticateDashboardUser());
834
      processMap_.put("updatePassword", new updatePassword());
840
      processMap_.put("updatePassword", new updatePassword());
835
      processMap_.put("authenticateLogisticsUser", new authenticateLogisticsUser());
841
      processMap_.put("authenticateLogisticsUser", new authenticateLogisticsUser());
836
      processMap_.put("authenticateStatisticsUser", new authenticateStatisticsUser());
842
      processMap_.put("authenticateStatisticsUser", new authenticateStatisticsUser());
837
      processMap_.put("authenticateReportUser", new authenticateReportUser());
843
      processMap_.put("authenticateReportUser", new authenticateReportUser());
838
      processMap_.put("getReports", new getReports());
844
      processMap_.put("getReports", new getReports());
Line 1188... Line 1194...
1188
        oprot.getTransport().flush();
1194
        oprot.getTransport().flush();
1189
      }
1195
      }
1190
 
1196
 
1191
    }
1197
    }
1192
 
1198
 
1193
    private class authenticateUser implements ProcessFunction {
1199
    private class authenticateDashboardUser implements ProcessFunction {
1194
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1200
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1195
      {
1201
      {
1196
        authenticateUser_args args = new authenticateUser_args();
1202
        authenticateDashboardUser_args args = new authenticateDashboardUser_args();
1197
        args.read(iprot);
1203
        args.read(iprot);
1198
        iprot.readMessageEnd();
1204
        iprot.readMessageEnd();
1199
        authenticateUser_result result = new authenticateUser_result();
1205
        authenticateDashboardUser_result result = new authenticateDashboardUser_result();
1200
        try {
1206
        try {
1201
          result.success = iface_.authenticateUser(args.username, args.password);
1207
          result.success = iface_.authenticateDashboardUser(args.username, args.password);
1202
          result.setSuccessIsSet(true);
-
 
1203
        } catch (HelperServiceException se) {
1208
        } catch (HelperServiceException se) {
1204
          result.se = se;
1209
          result.se = se;
1205
        } catch (Throwable th) {
1210
        } catch (Throwable th) {
1206
          LOGGER.error("Internal error processing authenticateUser", th);
1211
          LOGGER.error("Internal error processing authenticateDashboardUser", th);
1207
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing authenticateUser");
1212
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing authenticateDashboardUser");
1208
          oprot.writeMessageBegin(new TMessage("authenticateUser", TMessageType.EXCEPTION, seqid));
1213
          oprot.writeMessageBegin(new TMessage("authenticateDashboardUser", TMessageType.EXCEPTION, seqid));
1209
          x.write(oprot);
1214
          x.write(oprot);
1210
          oprot.writeMessageEnd();
1215
          oprot.writeMessageEnd();
1211
          oprot.getTransport().flush();
1216
          oprot.getTransport().flush();
1212
          return;
1217
          return;
1213
        }
1218
        }
1214
        oprot.writeMessageBegin(new TMessage("authenticateUser", TMessageType.REPLY, seqid));
1219
        oprot.writeMessageBegin(new TMessage("authenticateDashboardUser", TMessageType.REPLY, seqid));
1215
        result.write(oprot);
1220
        result.write(oprot);
1216
        oprot.writeMessageEnd();
1221
        oprot.writeMessageEnd();
1217
        oprot.getTransport().flush();
1222
        oprot.getTransport().flush();
1218
      }
1223
      }
1219
 
1224
 
Line 9154... Line 9159...
9154
      // check for required fields
9159
      // check for required fields
9155
    }
9160
    }
9156
 
9161
 
9157
  }
9162
  }
9158
 
9163
 
9159
  public static class authenticateUser_args implements TBase<authenticateUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<authenticateUser_args>   {
9164
  public static class authenticateDashboardUser_args implements TBase<authenticateDashboardUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<authenticateDashboardUser_args>   {
9160
    private static final TStruct STRUCT_DESC = new TStruct("authenticateUser_args");
9165
    private static final TStruct STRUCT_DESC = new TStruct("authenticateDashboardUser_args");
9161
 
9166
 
9162
    private static final TField USERNAME_FIELD_DESC = new TField("username", TType.STRING, (short)1);
9167
    private static final TField USERNAME_FIELD_DESC = new TField("username", TType.STRING, (short)1);
9163
    private static final TField PASSWORD_FIELD_DESC = new TField("password", TType.STRING, (short)2);
9168
    private static final TField PASSWORD_FIELD_DESC = new TField("password", TType.STRING, (short)2);
9164
 
9169
 
9165
    private String username;
9170
    private String username;
Line 9229... Line 9234...
9229
      put(_Fields.PASSWORD, new FieldMetaData("password", TFieldRequirementType.DEFAULT, 
9234
      put(_Fields.PASSWORD, new FieldMetaData("password", TFieldRequirementType.DEFAULT, 
9230
          new FieldValueMetaData(TType.STRING)));
9235
          new FieldValueMetaData(TType.STRING)));
9231
    }});
9236
    }});
9232
 
9237
 
9233
    static {
9238
    static {
9234
      FieldMetaData.addStructMetaDataMap(authenticateUser_args.class, metaDataMap);
9239
      FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_args.class, metaDataMap);
9235
    }
9240
    }
9236
 
9241
 
9237
    public authenticateUser_args() {
9242
    public authenticateDashboardUser_args() {
9238
    }
9243
    }
9239
 
9244
 
9240
    public authenticateUser_args(
9245
    public authenticateDashboardUser_args(
9241
      String username,
9246
      String username,
9242
      String password)
9247
      String password)
9243
    {
9248
    {
9244
      this();
9249
      this();
9245
      this.username = username;
9250
      this.username = username;
Line 9247... Line 9252...
9247
    }
9252
    }
9248
 
9253
 
9249
    /**
9254
    /**
9250
     * Performs a deep copy on <i>other</i>.
9255
     * Performs a deep copy on <i>other</i>.
9251
     */
9256
     */
9252
    public authenticateUser_args(authenticateUser_args other) {
9257
    public authenticateDashboardUser_args(authenticateDashboardUser_args other) {
9253
      if (other.isSetUsername()) {
9258
      if (other.isSetUsername()) {
9254
        this.username = other.username;
9259
        this.username = other.username;
9255
      }
9260
      }
9256
      if (other.isSetPassword()) {
9261
      if (other.isSetPassword()) {
9257
        this.password = other.password;
9262
        this.password = other.password;
9258
      }
9263
      }
9259
    }
9264
    }
9260
 
9265
 
9261
    public authenticateUser_args deepCopy() {
9266
    public authenticateDashboardUser_args deepCopy() {
9262
      return new authenticateUser_args(this);
9267
      return new authenticateDashboardUser_args(this);
9263
    }
9268
    }
9264
 
9269
 
9265
    @Deprecated
9270
    @Deprecated
9266
    public authenticateUser_args clone() {
9271
    public authenticateDashboardUser_args clone() {
9267
      return new authenticateUser_args(this);
9272
      return new authenticateDashboardUser_args(this);
9268
    }
9273
    }
9269
 
9274
 
9270
    public String getUsername() {
9275
    public String getUsername() {
9271
      return this.username;
9276
      return this.username;
9272
    }
9277
    }
9273
 
9278
 
9274
    public authenticateUser_args setUsername(String username) {
9279
    public authenticateDashboardUser_args setUsername(String username) {
9275
      this.username = username;
9280
      this.username = username;
9276
      return this;
9281
      return this;
9277
    }
9282
    }
9278
 
9283
 
9279
    public void unsetUsername() {
9284
    public void unsetUsername() {
Line 9293... Line 9298...
9293
 
9298
 
9294
    public String getPassword() {
9299
    public String getPassword() {
9295
      return this.password;
9300
      return this.password;
9296
    }
9301
    }
9297
 
9302
 
9298
    public authenticateUser_args setPassword(String password) {
9303
    public authenticateDashboardUser_args setPassword(String password) {
9299
      this.password = password;
9304
      this.password = password;
9300
      return this;
9305
      return this;
9301
    }
9306
    }
9302
 
9307
 
9303
    public void unsetPassword() {
9308
    public void unsetPassword() {
Line 9373... Line 9378...
9373
 
9378
 
9374
    @Override
9379
    @Override
9375
    public boolean equals(Object that) {
9380
    public boolean equals(Object that) {
9376
      if (that == null)
9381
      if (that == null)
9377
        return false;
9382
        return false;
9378
      if (that instanceof authenticateUser_args)
9383
      if (that instanceof authenticateDashboardUser_args)
9379
        return this.equals((authenticateUser_args)that);
9384
        return this.equals((authenticateDashboardUser_args)that);
9380
      return false;
9385
      return false;
9381
    }
9386
    }
9382
 
9387
 
9383
    public boolean equals(authenticateUser_args that) {
9388
    public boolean equals(authenticateDashboardUser_args that) {
9384
      if (that == null)
9389
      if (that == null)
9385
        return false;
9390
        return false;
9386
 
9391
 
9387
      boolean this_present_username = true && this.isSetUsername();
9392
      boolean this_present_username = true && this.isSetUsername();
9388
      boolean that_present_username = true && that.isSetUsername();
9393
      boolean that_present_username = true && that.isSetUsername();
Line 9408... Line 9413...
9408
    @Override
9413
    @Override
9409
    public int hashCode() {
9414
    public int hashCode() {
9410
      return 0;
9415
      return 0;
9411
    }
9416
    }
9412
 
9417
 
9413
    public int compareTo(authenticateUser_args other) {
9418
    public int compareTo(authenticateDashboardUser_args other) {
9414
      if (!getClass().equals(other.getClass())) {
9419
      if (!getClass().equals(other.getClass())) {
9415
        return getClass().getName().compareTo(other.getClass().getName());
9420
        return getClass().getName().compareTo(other.getClass().getName());
9416
      }
9421
      }
9417
 
9422
 
9418
      int lastComparison = 0;
9423
      int lastComparison = 0;
9419
      authenticateUser_args typedOther = (authenticateUser_args)other;
9424
      authenticateDashboardUser_args typedOther = (authenticateDashboardUser_args)other;
9420
 
9425
 
9421
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(isSetUsername());
9426
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(isSetUsername());
9422
      if (lastComparison != 0) {
9427
      if (lastComparison != 0) {
9423
        return lastComparison;
9428
        return lastComparison;
9424
      }
9429
      }
Line 9491... Line 9496...
9491
      oprot.writeStructEnd();
9496
      oprot.writeStructEnd();
9492
    }
9497
    }
9493
 
9498
 
9494
    @Override
9499
    @Override
9495
    public String toString() {
9500
    public String toString() {
9496
      StringBuilder sb = new StringBuilder("authenticateUser_args(");
9501
      StringBuilder sb = new StringBuilder("authenticateDashboardUser_args(");
9497
      boolean first = true;
9502
      boolean first = true;
9498
 
9503
 
9499
      sb.append("username:");
9504
      sb.append("username:");
9500
      if (this.username == null) {
9505
      if (this.username == null) {
9501
        sb.append("null");
9506
        sb.append("null");
Line 9519... Line 9524...
9519
      // check for required fields
9524
      // check for required fields
9520
    }
9525
    }
9521
 
9526
 
9522
  }
9527
  }
9523
 
9528
 
9524
  public static class authenticateUser_result implements TBase<authenticateUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<authenticateUser_result>   {
9529
  public static class authenticateDashboardUser_result implements TBase<authenticateDashboardUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<authenticateDashboardUser_result>   {
9525
    private static final TStruct STRUCT_DESC = new TStruct("authenticateUser_result");
9530
    private static final TStruct STRUCT_DESC = new TStruct("authenticateDashboardUser_result");
9526
 
9531
 
9527
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
9532
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
9528
    private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);
9533
    private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);
9529
 
9534
 
9530
    private long success;
9535
    private DashboardUser success;
9531
    private HelperServiceException se;
9536
    private HelperServiceException se;
9532
 
9537
 
9533
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9538
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9534
    public enum _Fields implements TFieldIdEnum {
9539
    public enum _Fields implements TFieldIdEnum {
9535
      SUCCESS((short)0, "success"),
9540
      SUCCESS((short)0, "success"),
Line 9585... Line 9590...
9585
        return _fieldName;
9590
        return _fieldName;
9586
      }
9591
      }
9587
    }
9592
    }
9588
 
9593
 
9589
    // isset id assignments
9594
    // isset id assignments
9590
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
9591
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
9592
 
9595
 
9593
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
9596
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
9594
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
9597
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
9595
          new FieldValueMetaData(TType.I64)));
9598
          new StructMetaData(TType.STRUCT, DashboardUser.class)));
9596
      put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT, 
9599
      put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT, 
9597
          new FieldValueMetaData(TType.STRUCT)));
9600
          new FieldValueMetaData(TType.STRUCT)));
9598
    }});
9601
    }});
9599
 
9602
 
9600
    static {
9603
    static {
9601
      FieldMetaData.addStructMetaDataMap(authenticateUser_result.class, metaDataMap);
9604
      FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_result.class, metaDataMap);
9602
    }
9605
    }
9603
 
9606
 
9604
    public authenticateUser_result() {
9607
    public authenticateDashboardUser_result() {
9605
    }
9608
    }
9606
 
9609
 
9607
    public authenticateUser_result(
9610
    public authenticateDashboardUser_result(
9608
      long success,
9611
      DashboardUser success,
9609
      HelperServiceException se)
9612
      HelperServiceException se)
9610
    {
9613
    {
9611
      this();
9614
      this();
9612
      this.success = success;
9615
      this.success = success;
9613
      setSuccessIsSet(true);
-
 
9614
      this.se = se;
9616
      this.se = se;
9615
    }
9617
    }
9616
 
9618
 
9617
    /**
9619
    /**
9618
     * Performs a deep copy on <i>other</i>.
9620
     * Performs a deep copy on <i>other</i>.
9619
     */
9621
     */
9620
    public authenticateUser_result(authenticateUser_result other) {
9622
    public authenticateDashboardUser_result(authenticateDashboardUser_result other) {
9621
      __isset_bit_vector.clear();
9623
      if (other.isSetSuccess()) {
9622
      __isset_bit_vector.or(other.__isset_bit_vector);
9624
        this.success = new DashboardUser(other.success);
9623
      this.success = other.success;
9625
      }
9624
      if (other.isSetSe()) {
9626
      if (other.isSetSe()) {
9625
        this.se = new HelperServiceException(other.se);
9627
        this.se = new HelperServiceException(other.se);
9626
      }
9628
      }
9627
    }
9629
    }
9628
 
9630
 
9629
    public authenticateUser_result deepCopy() {
9631
    public authenticateDashboardUser_result deepCopy() {
9630
      return new authenticateUser_result(this);
9632
      return new authenticateDashboardUser_result(this);
9631
    }
9633
    }
9632
 
9634
 
9633
    @Deprecated
9635
    @Deprecated
9634
    public authenticateUser_result clone() {
9636
    public authenticateDashboardUser_result clone() {
9635
      return new authenticateUser_result(this);
9637
      return new authenticateDashboardUser_result(this);
9636
    }
9638
    }
9637
 
9639
 
9638
    public long getSuccess() {
9640
    public DashboardUser getSuccess() {
9639
      return this.success;
9641
      return this.success;
9640
    }
9642
    }
9641
 
9643
 
9642
    public authenticateUser_result setSuccess(long success) {
9644
    public authenticateDashboardUser_result setSuccess(DashboardUser success) {
9643
      this.success = success;
9645
      this.success = success;
9644
      setSuccessIsSet(true);
-
 
9645
      return this;
9646
      return this;
9646
    }
9647
    }
9647
 
9648
 
9648
    public void unsetSuccess() {
9649
    public void unsetSuccess() {
9649
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9650
      this.success = null;
9650
    }
9651
    }
9651
 
9652
 
9652
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
9653
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
9653
    public boolean isSetSuccess() {
9654
    public boolean isSetSuccess() {
9654
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9655
      return this.success != null;
9655
    }
9656
    }
9656
 
9657
 
9657
    public void setSuccessIsSet(boolean value) {
9658
    public void setSuccessIsSet(boolean value) {
-
 
9659
      if (!value) {
9658
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9660
        this.success = null;
-
 
9661
      }
9659
    }
9662
    }
9660
 
9663
 
9661
    public HelperServiceException getSe() {
9664
    public HelperServiceException getSe() {
9662
      return this.se;
9665
      return this.se;
9663
    }
9666
    }
9664
 
9667
 
9665
    public authenticateUser_result setSe(HelperServiceException se) {
9668
    public authenticateDashboardUser_result setSe(HelperServiceException se) {
9666
      this.se = se;
9669
      this.se = se;
9667
      return this;
9670
      return this;
9668
    }
9671
    }
9669
 
9672
 
9670
    public void unsetSe() {
9673
    public void unsetSe() {
Line 9686... Line 9689...
9686
      switch (field) {
9689
      switch (field) {
9687
      case SUCCESS:
9690
      case SUCCESS:
9688
        if (value == null) {
9691
        if (value == null) {
9689
          unsetSuccess();
9692
          unsetSuccess();
9690
        } else {
9693
        } else {
9691
          setSuccess((Long)value);
9694
          setSuccess((DashboardUser)value);
9692
        }
9695
        }
9693
        break;
9696
        break;
9694
 
9697
 
9695
      case SE:
9698
      case SE:
9696
        if (value == null) {
9699
        if (value == null) {
Line 9708... Line 9711...
9708
    }
9711
    }
9709
 
9712
 
9710
    public Object getFieldValue(_Fields field) {
9713
    public Object getFieldValue(_Fields field) {
9711
      switch (field) {
9714
      switch (field) {
9712
      case SUCCESS:
9715
      case SUCCESS:
9713
        return new Long(getSuccess());
9716
        return getSuccess();
9714
 
9717
 
9715
      case SE:
9718
      case SE:
9716
        return getSe();
9719
        return getSe();
9717
 
9720
 
9718
      }
9721
      }
Line 9740... Line 9743...
9740
 
9743
 
9741
    @Override
9744
    @Override
9742
    public boolean equals(Object that) {
9745
    public boolean equals(Object that) {
9743
      if (that == null)
9746
      if (that == null)
9744
        return false;
9747
        return false;
9745
      if (that instanceof authenticateUser_result)
9748
      if (that instanceof authenticateDashboardUser_result)
9746
        return this.equals((authenticateUser_result)that);
9749
        return this.equals((authenticateDashboardUser_result)that);
9747
      return false;
9750
      return false;
9748
    }
9751
    }
9749
 
9752
 
9750
    public boolean equals(authenticateUser_result that) {
9753
    public boolean equals(authenticateDashboardUser_result that) {
9751
      if (that == null)
9754
      if (that == null)
9752
        return false;
9755
        return false;
9753
 
9756
 
9754
      boolean this_present_success = true;
9757
      boolean this_present_success = true && this.isSetSuccess();
9755
      boolean that_present_success = true;
9758
      boolean that_present_success = true && that.isSetSuccess();
9756
      if (this_present_success || that_present_success) {
9759
      if (this_present_success || that_present_success) {
9757
        if (!(this_present_success && that_present_success))
9760
        if (!(this_present_success && that_present_success))
9758
          return false;
9761
          return false;
9759
        if (this.success != that.success)
9762
        if (!this.success.equals(that.success))
9760
          return false;
9763
          return false;
9761
      }
9764
      }
9762
 
9765
 
9763
      boolean this_present_se = true && this.isSetSe();
9766
      boolean this_present_se = true && this.isSetSe();
9764
      boolean that_present_se = true && that.isSetSe();
9767
      boolean that_present_se = true && that.isSetSe();
Line 9775... Line 9778...
9775
    @Override
9778
    @Override
9776
    public int hashCode() {
9779
    public int hashCode() {
9777
      return 0;
9780
      return 0;
9778
    }
9781
    }
9779
 
9782
 
9780
    public int compareTo(authenticateUser_result other) {
9783
    public int compareTo(authenticateDashboardUser_result other) {
9781
      if (!getClass().equals(other.getClass())) {
9784
      if (!getClass().equals(other.getClass())) {
9782
        return getClass().getName().compareTo(other.getClass().getName());
9785
        return getClass().getName().compareTo(other.getClass().getName());
9783
      }
9786
      }
9784
 
9787
 
9785
      int lastComparison = 0;
9788
      int lastComparison = 0;
9786
      authenticateUser_result typedOther = (authenticateUser_result)other;
9789
      authenticateDashboardUser_result typedOther = (authenticateDashboardUser_result)other;
9787
 
9790
 
9788
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
9791
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
9789
      if (lastComparison != 0) {
9792
      if (lastComparison != 0) {
9790
        return lastComparison;
9793
        return lastComparison;
9791
      }
9794
      }
Line 9817... Line 9820...
9817
        if (fieldId == null) {
9820
        if (fieldId == null) {
9818
          TProtocolUtil.skip(iprot, field.type);
9821
          TProtocolUtil.skip(iprot, field.type);
9819
        } else {
9822
        } else {
9820
          switch (fieldId) {
9823
          switch (fieldId) {
9821
            case SUCCESS:
9824
            case SUCCESS:
9822
              if (field.type == TType.I64) {
9825
              if (field.type == TType.STRUCT) {
9823
                this.success = iprot.readI64();
9826
                this.success = new DashboardUser();
9824
                setSuccessIsSet(true);
9827
                this.success.read(iprot);
9825
              } else { 
9828
              } else { 
9826
                TProtocolUtil.skip(iprot, field.type);
9829
                TProtocolUtil.skip(iprot, field.type);
9827
              }
9830
              }
9828
              break;
9831
              break;
9829
            case SE:
9832
            case SE:
Line 9845... Line 9848...
9845
    public void write(TProtocol oprot) throws TException {
9848
    public void write(TProtocol oprot) throws TException {
9846
      oprot.writeStructBegin(STRUCT_DESC);
9849
      oprot.writeStructBegin(STRUCT_DESC);
9847
 
9850
 
9848
      if (this.isSetSuccess()) {
9851
      if (this.isSetSuccess()) {
9849
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9852
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9850
        oprot.writeI64(this.success);
9853
        this.success.write(oprot);
9851
        oprot.writeFieldEnd();
9854
        oprot.writeFieldEnd();
9852
      } else if (this.isSetSe()) {
9855
      } else if (this.isSetSe()) {
9853
        oprot.writeFieldBegin(SE_FIELD_DESC);
9856
        oprot.writeFieldBegin(SE_FIELD_DESC);
9854
        this.se.write(oprot);
9857
        this.se.write(oprot);
9855
        oprot.writeFieldEnd();
9858
        oprot.writeFieldEnd();
Line 9858... Line 9861...
9858
      oprot.writeStructEnd();
9861
      oprot.writeStructEnd();
9859
    }
9862
    }
9860
 
9863
 
9861
    @Override
9864
    @Override
9862
    public String toString() {
9865
    public String toString() {
9863
      StringBuilder sb = new StringBuilder("authenticateUser_result(");
9866
      StringBuilder sb = new StringBuilder("authenticateDashboardUser_result(");
9864
      boolean first = true;
9867
      boolean first = true;
9865
 
9868
 
9866
      sb.append("success:");
9869
      sb.append("success:");
-
 
9870
      if (this.success == null) {
-
 
9871
        sb.append("null");
-
 
9872
      } else {
9867
      sb.append(this.success);
9873
        sb.append(this.success);
-
 
9874
      }
9868
      first = false;
9875
      first = false;
9869
      if (!first) sb.append(", ");
9876
      if (!first) sb.append(", ");
9870
      sb.append("se:");
9877
      sb.append("se:");
9871
      if (this.se == null) {
9878
      if (this.se == null) {
9872
        sb.append("null");
9879
        sb.append("null");