Subversion Repositories SmartDukaan

Rev

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

Rev 4806 Rev 4996
Line 146... Line 146...
146
 
146
 
147
    public void saveQuickLink(String url, String text) throws HelperServiceException, org.apache.thrift.TException;
147
    public void saveQuickLink(String url, String text) throws HelperServiceException, org.apache.thrift.TException;
148
 
148
 
149
    public List<QuickLink> getQuickLinks() throws HelperServiceException, org.apache.thrift.TException;
149
    public List<QuickLink> getQuickLinks() throws HelperServiceException, org.apache.thrift.TException;
150
 
150
 
-
 
151
    public void updateQuickLink(long id, String url, String text) throws HelperServiceException, org.apache.thrift.TException;
-
 
152
 
151
  }
153
  }
152
 
154
 
153
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
155
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
154
 
156
 
155
    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;
157
    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 202... Line 204...
202
 
204
 
203
    public void saveQuickLink(String url, String text, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveQuickLink_call> resultHandler) throws org.apache.thrift.TException;
205
    public void saveQuickLink(String url, String text, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveQuickLink_call> resultHandler) throws org.apache.thrift.TException;
204
 
206
 
205
    public void getQuickLinks(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getQuickLinks_call> resultHandler) throws org.apache.thrift.TException;
207
    public void getQuickLinks(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getQuickLinks_call> resultHandler) throws org.apache.thrift.TException;
206
 
208
 
-
 
209
    public void updateQuickLink(long id, String url, String text, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateQuickLink_call> resultHandler) throws org.apache.thrift.TException;
-
 
210
 
207
  }
211
  }
208
 
212
 
209
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
213
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
210
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
214
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
211
      public Factory() {}
215
      public Factory() {}
Line 876... Line 880...
876
        throw result.hse;
880
        throw result.hse;
877
      }
881
      }
878
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getQuickLinks failed: unknown result");
882
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getQuickLinks failed: unknown result");
879
    }
883
    }
880
 
884
 
-
 
885
    public void updateQuickLink(long id, String url, String text) throws HelperServiceException, org.apache.thrift.TException
-
 
886
    {
-
 
887
      send_updateQuickLink(id, url, text);
-
 
888
      recv_updateQuickLink();
-
 
889
    }
-
 
890
 
-
 
891
    public void send_updateQuickLink(long id, String url, String text) throws org.apache.thrift.TException
-
 
892
    {
-
 
893
      updateQuickLink_args args = new updateQuickLink_args();
-
 
894
      args.setId(id);
-
 
895
      args.setUrl(url);
-
 
896
      args.setText(text);
-
 
897
      sendBase("updateQuickLink", args);
-
 
898
    }
-
 
899
 
-
 
900
    public void recv_updateQuickLink() throws HelperServiceException, org.apache.thrift.TException
-
 
901
    {
-
 
902
      updateQuickLink_result result = new updateQuickLink_result();
-
 
903
      receiveBase(result, "updateQuickLink");
-
 
904
      if (result.hse != null) {
-
 
905
        throw result.hse;
-
 
906
      }
-
 
907
      return;
-
 
908
    }
-
 
909
 
881
  }
910
  }
882
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
911
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
883
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
912
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
884
      private org.apache.thrift.async.TAsyncClientManager clientManager;
913
      private org.apache.thrift.async.TAsyncClientManager clientManager;
885
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
914
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 1780... Line 1809...
1780
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1809
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1781
        return (new Client(prot)).recv_getQuickLinks();
1810
        return (new Client(prot)).recv_getQuickLinks();
1782
      }
1811
      }
1783
    }
1812
    }
1784
 
1813
 
-
 
1814
    public void updateQuickLink(long id, String url, String text, org.apache.thrift.async.AsyncMethodCallback<updateQuickLink_call> resultHandler) throws org.apache.thrift.TException {
-
 
1815
      checkReady();
-
 
1816
      updateQuickLink_call method_call = new updateQuickLink_call(id, url, text, resultHandler, this, ___protocolFactory, ___transport);
-
 
1817
      this.___currentMethod = method_call;
-
 
1818
      ___manager.call(method_call);
-
 
1819
    }
-
 
1820
 
-
 
1821
    public static class updateQuickLink_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1822
      private long id;
-
 
1823
      private String url;
-
 
1824
      private String text;
-
 
1825
      public updateQuickLink_call(long id, String url, String text, org.apache.thrift.async.AsyncMethodCallback<updateQuickLink_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 {
-
 
1826
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1827
        this.id = id;
-
 
1828
        this.url = url;
-
 
1829
        this.text = text;
-
 
1830
      }
-
 
1831
 
-
 
1832
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1833
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateQuickLink", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1834
        updateQuickLink_args args = new updateQuickLink_args();
-
 
1835
        args.setId(id);
-
 
1836
        args.setUrl(url);
-
 
1837
        args.setText(text);
-
 
1838
        args.write(prot);
-
 
1839
        prot.writeMessageEnd();
-
 
1840
      }
-
 
1841
 
-
 
1842
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
-
 
1843
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1844
          throw new IllegalStateException("Method call not finished!");
-
 
1845
        }
-
 
1846
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1847
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1848
        (new Client(prot)).recv_updateQuickLink();
-
 
1849
      }
-
 
1850
    }
-
 
1851
 
1785
  }
1852
  }
1786
 
1853
 
1787
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1854
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1788
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1855
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1789
    public Processor(I iface) {
1856
    public Processor(I iface) {
Line 1819... Line 1886...
1819
      processMap.put("updatePasswordForAgent", new updatePasswordForAgent());
1886
      processMap.put("updatePasswordForAgent", new updatePasswordForAgent());
1820
      processMap.put("getRoleNamesForAgent", new getRoleNamesForAgent());
1887
      processMap.put("getRoleNamesForAgent", new getRoleNamesForAgent());
1821
      processMap.put("getPermissionsForRoleName", new getPermissionsForRoleName());
1888
      processMap.put("getPermissionsForRoleName", new getPermissionsForRoleName());
1822
      processMap.put("saveQuickLink", new saveQuickLink());
1889
      processMap.put("saveQuickLink", new saveQuickLink());
1823
      processMap.put("getQuickLinks", new getQuickLinks());
1890
      processMap.put("getQuickLinks", new getQuickLinks());
-
 
1891
      processMap.put("updateQuickLink", new updateQuickLink());
1824
      return processMap;
1892
      return processMap;
1825
    }
1893
    }
1826
 
1894
 
1827
    private static class saveUserEmailForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserEmailForSending_args> {
1895
    private static class saveUserEmailForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserEmailForSending_args> {
1828
      public saveUserEmailForSending() {
1896
      public saveUserEmailForSending() {
Line 2323... Line 2391...
2323
        }
2391
        }
2324
        return result;
2392
        return result;
2325
      }
2393
      }
2326
    }
2394
    }
2327
 
2395
 
-
 
2396
    private static class updateQuickLink<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateQuickLink_args> {
-
 
2397
      public updateQuickLink() {
-
 
2398
        super("updateQuickLink");
-
 
2399
      }
-
 
2400
 
-
 
2401
      protected updateQuickLink_args getEmptyArgsInstance() {
-
 
2402
        return new updateQuickLink_args();
-
 
2403
      }
-
 
2404
 
-
 
2405
      protected updateQuickLink_result getResult(I iface, updateQuickLink_args args) throws org.apache.thrift.TException {
-
 
2406
        updateQuickLink_result result = new updateQuickLink_result();
-
 
2407
        try {
-
 
2408
          iface.updateQuickLink(args.id, args.url, args.text);
-
 
2409
        } catch (HelperServiceException hse) {
-
 
2410
          result.hse = hse;
-
 
2411
        }
-
 
2412
        return result;
-
 
2413
      }
-
 
2414
    }
-
 
2415
 
2328
  }
2416
  }
2329
 
2417
 
2330
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
2418
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
2331
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
2419
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
2332
 
2420
 
Line 20498... Line 20586...
20498
      sb.append("hse:");
20586
      sb.append("hse:");
20499
      if (this.hse == null) {
20587
      if (this.hse == null) {
20500
        sb.append("null");
20588
        sb.append("null");
20501
      } else {
20589
      } else {
20502
        sb.append(this.hse);
20590
        sb.append(this.hse);
-
 
20591
      }
-
 
20592
      first = false;
-
 
20593
      sb.append(")");
-
 
20594
      return sb.toString();
-
 
20595
    }
-
 
20596
 
-
 
20597
    public void validate() throws org.apache.thrift.TException {
-
 
20598
      // check for required fields
-
 
20599
    }
-
 
20600
 
-
 
20601
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
20602
      try {
-
 
20603
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
20604
      } catch (org.apache.thrift.TException te) {
-
 
20605
        throw new java.io.IOException(te);
-
 
20606
      }
-
 
20607
    }
-
 
20608
 
-
 
20609
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
20610
      try {
-
 
20611
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
20612
      } catch (org.apache.thrift.TException te) {
-
 
20613
        throw new java.io.IOException(te);
-
 
20614
      }
-
 
20615
    }
-
 
20616
 
-
 
20617
  }
-
 
20618
 
-
 
20619
  public static class updateQuickLink_args implements org.apache.thrift.TBase<updateQuickLink_args, updateQuickLink_args._Fields>, java.io.Serializable, Cloneable   {
-
 
20620
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateQuickLink_args");
-
 
20621
 
-
 
20622
    private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
20623
    private static final org.apache.thrift.protocol.TField URL_FIELD_DESC = new org.apache.thrift.protocol.TField("url", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
20624
    private static final org.apache.thrift.protocol.TField TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("text", org.apache.thrift.protocol.TType.STRING, (short)3);
-
 
20625
 
-
 
20626
    private long id; // required
-
 
20627
    private String url; // required
-
 
20628
    private String text; // required
-
 
20629
 
-
 
20630
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
20631
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
20632
      ID((short)1, "id"),
-
 
20633
      URL((short)2, "url"),
-
 
20634
      TEXT((short)3, "text");
-
 
20635
 
-
 
20636
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
20637
 
-
 
20638
      static {
-
 
20639
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
20640
          byName.put(field.getFieldName(), field);
-
 
20641
        }
-
 
20642
      }
-
 
20643
 
-
 
20644
      /**
-
 
20645
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
20646
       */
-
 
20647
      public static _Fields findByThriftId(int fieldId) {
-
 
20648
        switch(fieldId) {
-
 
20649
          case 1: // ID
-
 
20650
            return ID;
-
 
20651
          case 2: // URL
-
 
20652
            return URL;
-
 
20653
          case 3: // TEXT
-
 
20654
            return TEXT;
-
 
20655
          default:
-
 
20656
            return null;
-
 
20657
        }
-
 
20658
      }
-
 
20659
 
-
 
20660
      /**
-
 
20661
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
20662
       * if it is not found.
-
 
20663
       */
-
 
20664
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
20665
        _Fields fields = findByThriftId(fieldId);
-
 
20666
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
20667
        return fields;
-
 
20668
      }
-
 
20669
 
-
 
20670
      /**
-
 
20671
       * Find the _Fields constant that matches name, or null if its not found.
-
 
20672
       */
-
 
20673
      public static _Fields findByName(String name) {
-
 
20674
        return byName.get(name);
-
 
20675
      }
-
 
20676
 
-
 
20677
      private final short _thriftId;
-
 
20678
      private final String _fieldName;
-
 
20679
 
-
 
20680
      _Fields(short thriftId, String fieldName) {
-
 
20681
        _thriftId = thriftId;
-
 
20682
        _fieldName = fieldName;
-
 
20683
      }
-
 
20684
 
-
 
20685
      public short getThriftFieldId() {
-
 
20686
        return _thriftId;
-
 
20687
      }
-
 
20688
 
-
 
20689
      public String getFieldName() {
-
 
20690
        return _fieldName;
-
 
20691
      }
-
 
20692
    }
-
 
20693
 
-
 
20694
    // isset id assignments
-
 
20695
    private static final int __ID_ISSET_ID = 0;
-
 
20696
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
20697
 
-
 
20698
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
20699
    static {
-
 
20700
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
20701
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
20702
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
20703
      tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
20704
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
20705
      tmpMap.put(_Fields.TEXT, new org.apache.thrift.meta_data.FieldMetaData("text", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
20706
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
20707
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
20708
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateQuickLink_args.class, metaDataMap);
-
 
20709
    }
-
 
20710
 
-
 
20711
    public updateQuickLink_args() {
-
 
20712
    }
-
 
20713
 
-
 
20714
    public updateQuickLink_args(
-
 
20715
      long id,
-
 
20716
      String url,
-
 
20717
      String text)
-
 
20718
    {
-
 
20719
      this();
-
 
20720
      this.id = id;
-
 
20721
      setIdIsSet(true);
-
 
20722
      this.url = url;
-
 
20723
      this.text = text;
-
 
20724
    }
-
 
20725
 
-
 
20726
    /**
-
 
20727
     * Performs a deep copy on <i>other</i>.
-
 
20728
     */
-
 
20729
    public updateQuickLink_args(updateQuickLink_args other) {
-
 
20730
      __isset_bit_vector.clear();
-
 
20731
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
20732
      this.id = other.id;
-
 
20733
      if (other.isSetUrl()) {
-
 
20734
        this.url = other.url;
-
 
20735
      }
-
 
20736
      if (other.isSetText()) {
-
 
20737
        this.text = other.text;
-
 
20738
      }
-
 
20739
    }
-
 
20740
 
-
 
20741
    public updateQuickLink_args deepCopy() {
-
 
20742
      return new updateQuickLink_args(this);
-
 
20743
    }
-
 
20744
 
-
 
20745
    @Override
-
 
20746
    public void clear() {
-
 
20747
      setIdIsSet(false);
-
 
20748
      this.id = 0;
-
 
20749
      this.url = null;
-
 
20750
      this.text = null;
-
 
20751
    }
-
 
20752
 
-
 
20753
    public long getId() {
-
 
20754
      return this.id;
-
 
20755
    }
-
 
20756
 
-
 
20757
    public void setId(long id) {
-
 
20758
      this.id = id;
-
 
20759
      setIdIsSet(true);
-
 
20760
    }
-
 
20761
 
-
 
20762
    public void unsetId() {
-
 
20763
      __isset_bit_vector.clear(__ID_ISSET_ID);
-
 
20764
    }
-
 
20765
 
-
 
20766
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
-
 
20767
    public boolean isSetId() {
-
 
20768
      return __isset_bit_vector.get(__ID_ISSET_ID);
-
 
20769
    }
-
 
20770
 
-
 
20771
    public void setIdIsSet(boolean value) {
-
 
20772
      __isset_bit_vector.set(__ID_ISSET_ID, value);
-
 
20773
    }
-
 
20774
 
-
 
20775
    public String getUrl() {
-
 
20776
      return this.url;
-
 
20777
    }
-
 
20778
 
-
 
20779
    public void setUrl(String url) {
-
 
20780
      this.url = url;
-
 
20781
    }
-
 
20782
 
-
 
20783
    public void unsetUrl() {
-
 
20784
      this.url = null;
-
 
20785
    }
-
 
20786
 
-
 
20787
    /** Returns true if field url is set (has been assigned a value) and false otherwise */
-
 
20788
    public boolean isSetUrl() {
-
 
20789
      return this.url != null;
-
 
20790
    }
-
 
20791
 
-
 
20792
    public void setUrlIsSet(boolean value) {
-
 
20793
      if (!value) {
-
 
20794
        this.url = null;
-
 
20795
      }
-
 
20796
    }
-
 
20797
 
-
 
20798
    public String getText() {
-
 
20799
      return this.text;
-
 
20800
    }
-
 
20801
 
-
 
20802
    public void setText(String text) {
-
 
20803
      this.text = text;
-
 
20804
    }
-
 
20805
 
-
 
20806
    public void unsetText() {
-
 
20807
      this.text = null;
-
 
20808
    }
-
 
20809
 
-
 
20810
    /** Returns true if field text is set (has been assigned a value) and false otherwise */
-
 
20811
    public boolean isSetText() {
-
 
20812
      return this.text != null;
-
 
20813
    }
-
 
20814
 
-
 
20815
    public void setTextIsSet(boolean value) {
-
 
20816
      if (!value) {
-
 
20817
        this.text = null;
-
 
20818
      }
-
 
20819
    }
-
 
20820
 
-
 
20821
    public void setFieldValue(_Fields field, Object value) {
-
 
20822
      switch (field) {
-
 
20823
      case ID:
-
 
20824
        if (value == null) {
-
 
20825
          unsetId();
-
 
20826
        } else {
-
 
20827
          setId((Long)value);
-
 
20828
        }
-
 
20829
        break;
-
 
20830
 
-
 
20831
      case URL:
-
 
20832
        if (value == null) {
-
 
20833
          unsetUrl();
-
 
20834
        } else {
-
 
20835
          setUrl((String)value);
-
 
20836
        }
-
 
20837
        break;
-
 
20838
 
-
 
20839
      case TEXT:
-
 
20840
        if (value == null) {
-
 
20841
          unsetText();
-
 
20842
        } else {
-
 
20843
          setText((String)value);
-
 
20844
        }
-
 
20845
        break;
-
 
20846
 
-
 
20847
      }
-
 
20848
    }
-
 
20849
 
-
 
20850
    public Object getFieldValue(_Fields field) {
-
 
20851
      switch (field) {
-
 
20852
      case ID:
-
 
20853
        return Long.valueOf(getId());
-
 
20854
 
-
 
20855
      case URL:
-
 
20856
        return getUrl();
-
 
20857
 
-
 
20858
      case TEXT:
-
 
20859
        return getText();
-
 
20860
 
-
 
20861
      }
-
 
20862
      throw new IllegalStateException();
-
 
20863
    }
-
 
20864
 
-
 
20865
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
20866
    public boolean isSet(_Fields field) {
-
 
20867
      if (field == null) {
-
 
20868
        throw new IllegalArgumentException();
-
 
20869
      }
-
 
20870
 
-
 
20871
      switch (field) {
-
 
20872
      case ID:
-
 
20873
        return isSetId();
-
 
20874
      case URL:
-
 
20875
        return isSetUrl();
-
 
20876
      case TEXT:
-
 
20877
        return isSetText();
-
 
20878
      }
-
 
20879
      throw new IllegalStateException();
-
 
20880
    }
-
 
20881
 
-
 
20882
    @Override
-
 
20883
    public boolean equals(Object that) {
-
 
20884
      if (that == null)
-
 
20885
        return false;
-
 
20886
      if (that instanceof updateQuickLink_args)
-
 
20887
        return this.equals((updateQuickLink_args)that);
-
 
20888
      return false;
-
 
20889
    }
-
 
20890
 
-
 
20891
    public boolean equals(updateQuickLink_args that) {
-
 
20892
      if (that == null)
-
 
20893
        return false;
-
 
20894
 
-
 
20895
      boolean this_present_id = true;
-
 
20896
      boolean that_present_id = true;
-
 
20897
      if (this_present_id || that_present_id) {
-
 
20898
        if (!(this_present_id && that_present_id))
-
 
20899
          return false;
-
 
20900
        if (this.id != that.id)
-
 
20901
          return false;
-
 
20902
      }
-
 
20903
 
-
 
20904
      boolean this_present_url = true && this.isSetUrl();
-
 
20905
      boolean that_present_url = true && that.isSetUrl();
-
 
20906
      if (this_present_url || that_present_url) {
-
 
20907
        if (!(this_present_url && that_present_url))
-
 
20908
          return false;
-
 
20909
        if (!this.url.equals(that.url))
-
 
20910
          return false;
-
 
20911
      }
-
 
20912
 
-
 
20913
      boolean this_present_text = true && this.isSetText();
-
 
20914
      boolean that_present_text = true && that.isSetText();
-
 
20915
      if (this_present_text || that_present_text) {
-
 
20916
        if (!(this_present_text && that_present_text))
-
 
20917
          return false;
-
 
20918
        if (!this.text.equals(that.text))
-
 
20919
          return false;
-
 
20920
      }
-
 
20921
 
-
 
20922
      return true;
-
 
20923
    }
-
 
20924
 
-
 
20925
    @Override
-
 
20926
    public int hashCode() {
-
 
20927
      return 0;
-
 
20928
    }
-
 
20929
 
-
 
20930
    public int compareTo(updateQuickLink_args other) {
-
 
20931
      if (!getClass().equals(other.getClass())) {
-
 
20932
        return getClass().getName().compareTo(other.getClass().getName());
-
 
20933
      }
-
 
20934
 
-
 
20935
      int lastComparison = 0;
-
 
20936
      updateQuickLink_args typedOther = (updateQuickLink_args)other;
-
 
20937
 
-
 
20938
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
-
 
20939
      if (lastComparison != 0) {
-
 
20940
        return lastComparison;
-
 
20941
      }
-
 
20942
      if (isSetId()) {
-
 
20943
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
-
 
20944
        if (lastComparison != 0) {
-
 
20945
          return lastComparison;
-
 
20946
        }
-
 
20947
      }
-
 
20948
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
-
 
20949
      if (lastComparison != 0) {
-
 
20950
        return lastComparison;
-
 
20951
      }
-
 
20952
      if (isSetUrl()) {
-
 
20953
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
-
 
20954
        if (lastComparison != 0) {
-
 
20955
          return lastComparison;
-
 
20956
        }
-
 
20957
      }
-
 
20958
      lastComparison = Boolean.valueOf(isSetText()).compareTo(typedOther.isSetText());
-
 
20959
      if (lastComparison != 0) {
-
 
20960
        return lastComparison;
-
 
20961
      }
-
 
20962
      if (isSetText()) {
-
 
20963
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.text, typedOther.text);
-
 
20964
        if (lastComparison != 0) {
-
 
20965
          return lastComparison;
-
 
20966
        }
-
 
20967
      }
-
 
20968
      return 0;
-
 
20969
    }
-
 
20970
 
-
 
20971
    public _Fields fieldForId(int fieldId) {
-
 
20972
      return _Fields.findByThriftId(fieldId);
-
 
20973
    }
-
 
20974
 
-
 
20975
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
20976
      org.apache.thrift.protocol.TField field;
-
 
20977
      iprot.readStructBegin();
-
 
20978
      while (true)
-
 
20979
      {
-
 
20980
        field = iprot.readFieldBegin();
-
 
20981
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
20982
          break;
-
 
20983
        }
-
 
20984
        switch (field.id) {
-
 
20985
          case 1: // ID
-
 
20986
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
20987
              this.id = iprot.readI64();
-
 
20988
              setIdIsSet(true);
-
 
20989
            } else { 
-
 
20990
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
20991
            }
-
 
20992
            break;
-
 
20993
          case 2: // URL
-
 
20994
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
20995
              this.url = iprot.readString();
-
 
20996
            } else { 
-
 
20997
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
20998
            }
-
 
20999
            break;
-
 
21000
          case 3: // TEXT
-
 
21001
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
21002
              this.text = iprot.readString();
-
 
21003
            } else { 
-
 
21004
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
21005
            }
-
 
21006
            break;
-
 
21007
          default:
-
 
21008
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
21009
        }
-
 
21010
        iprot.readFieldEnd();
-
 
21011
      }
-
 
21012
      iprot.readStructEnd();
-
 
21013
      validate();
-
 
21014
    }
-
 
21015
 
-
 
21016
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
21017
      validate();
-
 
21018
 
-
 
21019
      oprot.writeStructBegin(STRUCT_DESC);
-
 
21020
      oprot.writeFieldBegin(ID_FIELD_DESC);
-
 
21021
      oprot.writeI64(this.id);
-
 
21022
      oprot.writeFieldEnd();
-
 
21023
      if (this.url != null) {
-
 
21024
        oprot.writeFieldBegin(URL_FIELD_DESC);
-
 
21025
        oprot.writeString(this.url);
-
 
21026
        oprot.writeFieldEnd();
-
 
21027
      }
-
 
21028
      if (this.text != null) {
-
 
21029
        oprot.writeFieldBegin(TEXT_FIELD_DESC);
-
 
21030
        oprot.writeString(this.text);
-
 
21031
        oprot.writeFieldEnd();
-
 
21032
      }
-
 
21033
      oprot.writeFieldStop();
-
 
21034
      oprot.writeStructEnd();
-
 
21035
    }
-
 
21036
 
-
 
21037
    @Override
-
 
21038
    public String toString() {
-
 
21039
      StringBuilder sb = new StringBuilder("updateQuickLink_args(");
-
 
21040
      boolean first = true;
-
 
21041
 
-
 
21042
      sb.append("id:");
-
 
21043
      sb.append(this.id);
-
 
21044
      first = false;
-
 
21045
      if (!first) sb.append(", ");
-
 
21046
      sb.append("url:");
-
 
21047
      if (this.url == null) {
-
 
21048
        sb.append("null");
-
 
21049
      } else {
-
 
21050
        sb.append(this.url);
-
 
21051
      }
-
 
21052
      first = false;
-
 
21053
      if (!first) sb.append(", ");
-
 
21054
      sb.append("text:");
-
 
21055
      if (this.text == null) {
-
 
21056
        sb.append("null");
-
 
21057
      } else {
-
 
21058
        sb.append(this.text);
-
 
21059
      }
-
 
21060
      first = false;
-
 
21061
      sb.append(")");
-
 
21062
      return sb.toString();
-
 
21063
    }
-
 
21064
 
-
 
21065
    public void validate() throws org.apache.thrift.TException {
-
 
21066
      // check for required fields
-
 
21067
    }
-
 
21068
 
-
 
21069
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
21070
      try {
-
 
21071
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
21072
      } catch (org.apache.thrift.TException te) {
-
 
21073
        throw new java.io.IOException(te);
-
 
21074
      }
-
 
21075
    }
-
 
21076
 
-
 
21077
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
21078
      try {
-
 
21079
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
21080
        __isset_bit_vector = new BitSet(1);
-
 
21081
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
21082
      } catch (org.apache.thrift.TException te) {
-
 
21083
        throw new java.io.IOException(te);
-
 
21084
      }
-
 
21085
    }
-
 
21086
 
-
 
21087
  }
-
 
21088
 
-
 
21089
  public static class updateQuickLink_result implements org.apache.thrift.TBase<updateQuickLink_result, updateQuickLink_result._Fields>, java.io.Serializable, Cloneable   {
-
 
21090
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateQuickLink_result");
-
 
21091
 
-
 
21092
    private static final org.apache.thrift.protocol.TField HSE_FIELD_DESC = new org.apache.thrift.protocol.TField("hse", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
21093
 
-
 
21094
    private HelperServiceException hse; // required
-
 
21095
 
-
 
21096
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
21097
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
21098
      HSE((short)1, "hse");
-
 
21099
 
-
 
21100
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
21101
 
-
 
21102
      static {
-
 
21103
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
21104
          byName.put(field.getFieldName(), field);
-
 
21105
        }
-
 
21106
      }
-
 
21107
 
-
 
21108
      /**
-
 
21109
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
21110
       */
-
 
21111
      public static _Fields findByThriftId(int fieldId) {
-
 
21112
        switch(fieldId) {
-
 
21113
          case 1: // HSE
-
 
21114
            return HSE;
-
 
21115
          default:
-
 
21116
            return null;
-
 
21117
        }
-
 
21118
      }
-
 
21119
 
-
 
21120
      /**
-
 
21121
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
21122
       * if it is not found.
-
 
21123
       */
-
 
21124
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
21125
        _Fields fields = findByThriftId(fieldId);
-
 
21126
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
21127
        return fields;
-
 
21128
      }
-
 
21129
 
-
 
21130
      /**
-
 
21131
       * Find the _Fields constant that matches name, or null if its not found.
-
 
21132
       */
-
 
21133
      public static _Fields findByName(String name) {
-
 
21134
        return byName.get(name);
-
 
21135
      }
-
 
21136
 
-
 
21137
      private final short _thriftId;
-
 
21138
      private final String _fieldName;
-
 
21139
 
-
 
21140
      _Fields(short thriftId, String fieldName) {
-
 
21141
        _thriftId = thriftId;
-
 
21142
        _fieldName = fieldName;
-
 
21143
      }
-
 
21144
 
-
 
21145
      public short getThriftFieldId() {
-
 
21146
        return _thriftId;
-
 
21147
      }
-
 
21148
 
-
 
21149
      public String getFieldName() {
-
 
21150
        return _fieldName;
-
 
21151
      }
-
 
21152
    }
-
 
21153
 
-
 
21154
    // isset id assignments
-
 
21155
 
-
 
21156
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
21157
    static {
-
 
21158
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
21159
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
21160
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
21161
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
21162
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateQuickLink_result.class, metaDataMap);
-
 
21163
    }
-
 
21164
 
-
 
21165
    public updateQuickLink_result() {
-
 
21166
    }
-
 
21167
 
-
 
21168
    public updateQuickLink_result(
-
 
21169
      HelperServiceException hse)
-
 
21170
    {
-
 
21171
      this();
-
 
21172
      this.hse = hse;
-
 
21173
    }
-
 
21174
 
-
 
21175
    /**
-
 
21176
     * Performs a deep copy on <i>other</i>.
-
 
21177
     */
-
 
21178
    public updateQuickLink_result(updateQuickLink_result other) {
-
 
21179
      if (other.isSetHse()) {
-
 
21180
        this.hse = new HelperServiceException(other.hse);
-
 
21181
      }
-
 
21182
    }
-
 
21183
 
-
 
21184
    public updateQuickLink_result deepCopy() {
-
 
21185
      return new updateQuickLink_result(this);
-
 
21186
    }
-
 
21187
 
-
 
21188
    @Override
-
 
21189
    public void clear() {
-
 
21190
      this.hse = null;
-
 
21191
    }
-
 
21192
 
-
 
21193
    public HelperServiceException getHse() {
-
 
21194
      return this.hse;
-
 
21195
    }
-
 
21196
 
-
 
21197
    public void setHse(HelperServiceException hse) {
-
 
21198
      this.hse = hse;
-
 
21199
    }
-
 
21200
 
-
 
21201
    public void unsetHse() {
-
 
21202
      this.hse = null;
-
 
21203
    }
-
 
21204
 
-
 
21205
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
-
 
21206
    public boolean isSetHse() {
-
 
21207
      return this.hse != null;
-
 
21208
    }
-
 
21209
 
-
 
21210
    public void setHseIsSet(boolean value) {
-
 
21211
      if (!value) {
-
 
21212
        this.hse = null;
-
 
21213
      }
-
 
21214
    }
-
 
21215
 
-
 
21216
    public void setFieldValue(_Fields field, Object value) {
-
 
21217
      switch (field) {
-
 
21218
      case HSE:
-
 
21219
        if (value == null) {
-
 
21220
          unsetHse();
-
 
21221
        } else {
-
 
21222
          setHse((HelperServiceException)value);
-
 
21223
        }
-
 
21224
        break;
-
 
21225
 
-
 
21226
      }
-
 
21227
    }
-
 
21228
 
-
 
21229
    public Object getFieldValue(_Fields field) {
-
 
21230
      switch (field) {
-
 
21231
      case HSE:
-
 
21232
        return getHse();
-
 
21233
 
-
 
21234
      }
-
 
21235
      throw new IllegalStateException();
-
 
21236
    }
-
 
21237
 
-
 
21238
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
21239
    public boolean isSet(_Fields field) {
-
 
21240
      if (field == null) {
-
 
21241
        throw new IllegalArgumentException();
-
 
21242
      }
-
 
21243
 
-
 
21244
      switch (field) {
-
 
21245
      case HSE:
-
 
21246
        return isSetHse();
-
 
21247
      }
-
 
21248
      throw new IllegalStateException();
-
 
21249
    }
-
 
21250
 
-
 
21251
    @Override
-
 
21252
    public boolean equals(Object that) {
-
 
21253
      if (that == null)
-
 
21254
        return false;
-
 
21255
      if (that instanceof updateQuickLink_result)
-
 
21256
        return this.equals((updateQuickLink_result)that);
-
 
21257
      return false;
-
 
21258
    }
-
 
21259
 
-
 
21260
    public boolean equals(updateQuickLink_result that) {
-
 
21261
      if (that == null)
-
 
21262
        return false;
-
 
21263
 
-
 
21264
      boolean this_present_hse = true && this.isSetHse();
-
 
21265
      boolean that_present_hse = true && that.isSetHse();
-
 
21266
      if (this_present_hse || that_present_hse) {
-
 
21267
        if (!(this_present_hse && that_present_hse))
-
 
21268
          return false;
-
 
21269
        if (!this.hse.equals(that.hse))
-
 
21270
          return false;
-
 
21271
      }
-
 
21272
 
-
 
21273
      return true;
-
 
21274
    }
-
 
21275
 
-
 
21276
    @Override
-
 
21277
    public int hashCode() {
-
 
21278
      return 0;
-
 
21279
    }
-
 
21280
 
-
 
21281
    public int compareTo(updateQuickLink_result other) {
-
 
21282
      if (!getClass().equals(other.getClass())) {
-
 
21283
        return getClass().getName().compareTo(other.getClass().getName());
-
 
21284
      }
-
 
21285
 
-
 
21286
      int lastComparison = 0;
-
 
21287
      updateQuickLink_result typedOther = (updateQuickLink_result)other;
-
 
21288
 
-
 
21289
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
-
 
21290
      if (lastComparison != 0) {
-
 
21291
        return lastComparison;
-
 
21292
      }
-
 
21293
      if (isSetHse()) {
-
 
21294
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
-
 
21295
        if (lastComparison != 0) {
-
 
21296
          return lastComparison;
-
 
21297
        }
-
 
21298
      }
-
 
21299
      return 0;
-
 
21300
    }
-
 
21301
 
-
 
21302
    public _Fields fieldForId(int fieldId) {
-
 
21303
      return _Fields.findByThriftId(fieldId);
-
 
21304
    }
-
 
21305
 
-
 
21306
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
21307
      org.apache.thrift.protocol.TField field;
-
 
21308
      iprot.readStructBegin();
-
 
21309
      while (true)
-
 
21310
      {
-
 
21311
        field = iprot.readFieldBegin();
-
 
21312
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
21313
          break;
-
 
21314
        }
-
 
21315
        switch (field.id) {
-
 
21316
          case 1: // HSE
-
 
21317
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
21318
              this.hse = new HelperServiceException();
-
 
21319
              this.hse.read(iprot);
-
 
21320
            } else { 
-
 
21321
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
21322
            }
-
 
21323
            break;
-
 
21324
          default:
-
 
21325
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
21326
        }
-
 
21327
        iprot.readFieldEnd();
-
 
21328
      }
-
 
21329
      iprot.readStructEnd();
-
 
21330
      validate();
-
 
21331
    }
-
 
21332
 
-
 
21333
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
21334
      oprot.writeStructBegin(STRUCT_DESC);
-
 
21335
 
-
 
21336
      if (this.isSetHse()) {
-
 
21337
        oprot.writeFieldBegin(HSE_FIELD_DESC);
-
 
21338
        this.hse.write(oprot);
-
 
21339
        oprot.writeFieldEnd();
-
 
21340
      }
-
 
21341
      oprot.writeFieldStop();
-
 
21342
      oprot.writeStructEnd();
-
 
21343
    }
-
 
21344
 
-
 
21345
    @Override
-
 
21346
    public String toString() {
-
 
21347
      StringBuilder sb = new StringBuilder("updateQuickLink_result(");
-
 
21348
      boolean first = true;
-
 
21349
 
-
 
21350
      sb.append("hse:");
-
 
21351
      if (this.hse == null) {
-
 
21352
        sb.append("null");
-
 
21353
      } else {
-
 
21354
        sb.append(this.hse);
20503
      }
21355
      }
20504
      first = false;
21356
      first = false;
20505
      sb.append(")");
21357
      sb.append(")");
20506
      return sb.toString();
21358
      return sb.toString();
20507
    }
21359
    }