Subversion Repositories SmartDukaan

Rev

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

Rev 3430 Rev 4544
Line 124... Line 124...
124
     * @param password
124
     * @param password
125
     * @param role
125
     * @param role
126
     */
126
     */
127
    public CatalogDashboardUser authenticateCatalogUser(String username, String password, long role) throws HelperServiceException, org.apache.thrift.TException;
127
    public CatalogDashboardUser authenticateCatalogUser(String username, String password, long role) throws HelperServiceException, org.apache.thrift.TException;
128
 
128
 
-
 
129
    /**
-
 
130
     * Saves the list of entity Ids to be shared with an email address
-
 
131
     * 
-
 
132
     * @param entityIds
-
 
133
     * @param email
-
 
134
     */
-
 
135
    public void shareEntities(List<Long> entityIds, String email) throws HelperServiceException, org.apache.thrift.TException;
-
 
136
 
129
  }
137
  }
130
 
138
 
131
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
139
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
132
 
140
 
133
    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;
141
    public void saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveUserEmailForSending_call> resultHandler) throws org.apache.thrift.TException;
Line 164... Line 172...
164
 
172
 
165
    public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReports_call> resultHandler) throws org.apache.thrift.TException;
173
    public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReports_call> resultHandler) throws org.apache.thrift.TException;
166
 
174
 
167
    public void authenticateCatalogUser(String username, String password, long role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException;
175
    public void authenticateCatalogUser(String username, String password, long role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException;
168
 
176
 
-
 
177
    public void shareEntities(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.shareEntities_call> resultHandler) throws org.apache.thrift.TException;
-
 
178
 
169
  }
179
  }
170
 
180
 
171
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
181
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
172
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
182
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
173
      public Factory() {}
183
      public Factory() {}
Line 652... Line 662...
652
        throw result.hse;
662
        throw result.hse;
653
      }
663
      }
654
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateCatalogUser failed: unknown result");
664
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateCatalogUser failed: unknown result");
655
    }
665
    }
656
 
666
 
-
 
667
    public void shareEntities(List<Long> entityIds, String email) throws HelperServiceException, org.apache.thrift.TException
-
 
668
    {
-
 
669
      send_shareEntities(entityIds, email);
-
 
670
      recv_shareEntities();
-
 
671
    }
-
 
672
 
-
 
673
    public void send_shareEntities(List<Long> entityIds, String email) throws org.apache.thrift.TException
-
 
674
    {
-
 
675
      shareEntities_args args = new shareEntities_args();
-
 
676
      args.setEntityIds(entityIds);
-
 
677
      args.setEmail(email);
-
 
678
      sendBase("shareEntities", args);
-
 
679
    }
-
 
680
 
-
 
681
    public void recv_shareEntities() throws HelperServiceException, org.apache.thrift.TException
-
 
682
    {
-
 
683
      shareEntities_result result = new shareEntities_result();
-
 
684
      receiveBase(result, "shareEntities");
-
 
685
      if (result.hse != null) {
-
 
686
        throw result.hse;
-
 
687
      }
-
 
688
      return;
-
 
689
    }
-
 
690
 
657
  }
691
  }
658
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
692
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
659
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
693
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
660
      private org.apache.thrift.async.TAsyncClientManager clientManager;
694
      private org.apache.thrift.async.TAsyncClientManager clientManager;
661
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
695
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 1294... Line 1328...
1294
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1328
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1295
        return (new Client(prot)).recv_authenticateCatalogUser();
1329
        return (new Client(prot)).recv_authenticateCatalogUser();
1296
      }
1330
      }
1297
    }
1331
    }
1298
 
1332
 
-
 
1333
    public void shareEntities(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<shareEntities_call> resultHandler) throws org.apache.thrift.TException {
-
 
1334
      checkReady();
-
 
1335
      shareEntities_call method_call = new shareEntities_call(entityIds, email, resultHandler, this, ___protocolFactory, ___transport);
-
 
1336
      this.___currentMethod = method_call;
-
 
1337
      ___manager.call(method_call);
-
 
1338
    }
-
 
1339
 
-
 
1340
    public static class shareEntities_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1341
      private List<Long> entityIds;
-
 
1342
      private String email;
-
 
1343
      public shareEntities_call(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<shareEntities_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 {
-
 
1344
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1345
        this.entityIds = entityIds;
-
 
1346
        this.email = email;
-
 
1347
      }
-
 
1348
 
-
 
1349
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1350
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("shareEntities", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1351
        shareEntities_args args = new shareEntities_args();
-
 
1352
        args.setEntityIds(entityIds);
-
 
1353
        args.setEmail(email);
-
 
1354
        args.write(prot);
-
 
1355
        prot.writeMessageEnd();
-
 
1356
      }
-
 
1357
 
-
 
1358
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
-
 
1359
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1360
          throw new IllegalStateException("Method call not finished!");
-
 
1361
        }
-
 
1362
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1363
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1364
        (new Client(prot)).recv_shareEntities();
-
 
1365
      }
-
 
1366
    }
-
 
1367
 
1299
  }
1368
  }
1300
 
1369
 
1301
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1370
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1302
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1371
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1303
    public Processor(I iface) {
1372
    public Processor(I iface) {
Line 1325... Line 1394...
1325
      processMap.put("authenticateLogisticsUser", new authenticateLogisticsUser());
1394
      processMap.put("authenticateLogisticsUser", new authenticateLogisticsUser());
1326
      processMap.put("authenticateStatisticsUser", new authenticateStatisticsUser());
1395
      processMap.put("authenticateStatisticsUser", new authenticateStatisticsUser());
1327
      processMap.put("authenticateReportUser", new authenticateReportUser());
1396
      processMap.put("authenticateReportUser", new authenticateReportUser());
1328
      processMap.put("getReports", new getReports());
1397
      processMap.put("getReports", new getReports());
1329
      processMap.put("authenticateCatalogUser", new authenticateCatalogUser());
1398
      processMap.put("authenticateCatalogUser", new authenticateCatalogUser());
-
 
1399
      processMap.put("shareEntities", new shareEntities());
1330
      return processMap;
1400
      return processMap;
1331
    }
1401
    }
1332
 
1402
 
1333
    private static class saveUserEmailForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserEmailForSending_args> {
1403
    private static class saveUserEmailForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserEmailForSending_args> {
1334
      public saveUserEmailForSending() {
1404
      public saveUserEmailForSending() {
Line 1688... Line 1758...
1688
        }
1758
        }
1689
        return result;
1759
        return result;
1690
      }
1760
      }
1691
    }
1761
    }
1692
 
1762
 
-
 
1763
    private static class shareEntities<I extends Iface> extends org.apache.thrift.ProcessFunction<I, shareEntities_args> {
-
 
1764
      public shareEntities() {
-
 
1765
        super("shareEntities");
-
 
1766
      }
-
 
1767
 
-
 
1768
      protected shareEntities_args getEmptyArgsInstance() {
-
 
1769
        return new shareEntities_args();
-
 
1770
      }
-
 
1771
 
-
 
1772
      protected shareEntities_result getResult(I iface, shareEntities_args args) throws org.apache.thrift.TException {
-
 
1773
        shareEntities_result result = new shareEntities_result();
-
 
1774
        try {
-
 
1775
          iface.shareEntities(args.entityIds, args.email);
-
 
1776
        } catch (HelperServiceException hse) {
-
 
1777
          result.hse = hse;
-
 
1778
        }
-
 
1779
        return result;
-
 
1780
      }
-
 
1781
    }
-
 
1782
 
1693
  }
1783
  }
1694
 
1784
 
1695
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
1785
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
1696
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
1786
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
1697
 
1787
 
Line 14820... Line 14910...
14820
      sb.append("hse:");
14910
      sb.append("hse:");
14821
      if (this.hse == null) {
14911
      if (this.hse == null) {
14822
        sb.append("null");
14912
        sb.append("null");
14823
      } else {
14913
      } else {
14824
        sb.append(this.hse);
14914
        sb.append(this.hse);
-
 
14915
      }
-
 
14916
      first = false;
-
 
14917
      sb.append(")");
-
 
14918
      return sb.toString();
-
 
14919
    }
-
 
14920
 
-
 
14921
    public void validate() throws org.apache.thrift.TException {
-
 
14922
      // check for required fields
-
 
14923
    }
-
 
14924
 
-
 
14925
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
14926
      try {
-
 
14927
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
14928
      } catch (org.apache.thrift.TException te) {
-
 
14929
        throw new java.io.IOException(te);
-
 
14930
      }
-
 
14931
    }
-
 
14932
 
-
 
14933
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
14934
      try {
-
 
14935
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
14936
      } catch (org.apache.thrift.TException te) {
-
 
14937
        throw new java.io.IOException(te);
-
 
14938
      }
-
 
14939
    }
-
 
14940
 
-
 
14941
  }
-
 
14942
 
-
 
14943
  public static class shareEntities_args implements org.apache.thrift.TBase<shareEntities_args, shareEntities_args._Fields>, java.io.Serializable, Cloneable   {
-
 
14944
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shareEntities_args");
-
 
14945
 
-
 
14946
    private static final org.apache.thrift.protocol.TField ENTITY_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("entityIds", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
14947
    private static final org.apache.thrift.protocol.TField EMAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("email", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
14948
 
-
 
14949
    private List<Long> entityIds; // required
-
 
14950
    private String email; // required
-
 
14951
 
-
 
14952
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
14953
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
14954
      ENTITY_IDS((short)1, "entityIds"),
-
 
14955
      EMAIL((short)2, "email");
-
 
14956
 
-
 
14957
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
14958
 
-
 
14959
      static {
-
 
14960
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
14961
          byName.put(field.getFieldName(), field);
-
 
14962
        }
-
 
14963
      }
-
 
14964
 
-
 
14965
      /**
-
 
14966
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
14967
       */
-
 
14968
      public static _Fields findByThriftId(int fieldId) {
-
 
14969
        switch(fieldId) {
-
 
14970
          case 1: // ENTITY_IDS
-
 
14971
            return ENTITY_IDS;
-
 
14972
          case 2: // EMAIL
-
 
14973
            return EMAIL;
-
 
14974
          default:
-
 
14975
            return null;
-
 
14976
        }
-
 
14977
      }
-
 
14978
 
-
 
14979
      /**
-
 
14980
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
14981
       * if it is not found.
-
 
14982
       */
-
 
14983
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
14984
        _Fields fields = findByThriftId(fieldId);
-
 
14985
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
14986
        return fields;
-
 
14987
      }
-
 
14988
 
-
 
14989
      /**
-
 
14990
       * Find the _Fields constant that matches name, or null if its not found.
-
 
14991
       */
-
 
14992
      public static _Fields findByName(String name) {
-
 
14993
        return byName.get(name);
-
 
14994
      }
-
 
14995
 
-
 
14996
      private final short _thriftId;
-
 
14997
      private final String _fieldName;
-
 
14998
 
-
 
14999
      _Fields(short thriftId, String fieldName) {
-
 
15000
        _thriftId = thriftId;
-
 
15001
        _fieldName = fieldName;
-
 
15002
      }
-
 
15003
 
-
 
15004
      public short getThriftFieldId() {
-
 
15005
        return _thriftId;
-
 
15006
      }
-
 
15007
 
-
 
15008
      public String getFieldName() {
-
 
15009
        return _fieldName;
-
 
15010
      }
-
 
15011
    }
-
 
15012
 
-
 
15013
    // isset id assignments
-
 
15014
 
-
 
15015
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
15016
    static {
-
 
15017
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
15018
      tmpMap.put(_Fields.ENTITY_IDS, new org.apache.thrift.meta_data.FieldMetaData("entityIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
15019
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
15020
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
15021
      tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
15022
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
15023
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
15024
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shareEntities_args.class, metaDataMap);
-
 
15025
    }
-
 
15026
 
-
 
15027
    public shareEntities_args() {
-
 
15028
    }
-
 
15029
 
-
 
15030
    public shareEntities_args(
-
 
15031
      List<Long> entityIds,
-
 
15032
      String email)
-
 
15033
    {
-
 
15034
      this();
-
 
15035
      this.entityIds = entityIds;
-
 
15036
      this.email = email;
-
 
15037
    }
-
 
15038
 
-
 
15039
    /**
-
 
15040
     * Performs a deep copy on <i>other</i>.
-
 
15041
     */
-
 
15042
    public shareEntities_args(shareEntities_args other) {
-
 
15043
      if (other.isSetEntityIds()) {
-
 
15044
        List<Long> __this__entityIds = new ArrayList<Long>();
-
 
15045
        for (Long other_element : other.entityIds) {
-
 
15046
          __this__entityIds.add(other_element);
-
 
15047
        }
-
 
15048
        this.entityIds = __this__entityIds;
-
 
15049
      }
-
 
15050
      if (other.isSetEmail()) {
-
 
15051
        this.email = other.email;
-
 
15052
      }
-
 
15053
    }
-
 
15054
 
-
 
15055
    public shareEntities_args deepCopy() {
-
 
15056
      return new shareEntities_args(this);
-
 
15057
    }
-
 
15058
 
-
 
15059
    @Override
-
 
15060
    public void clear() {
-
 
15061
      this.entityIds = null;
-
 
15062
      this.email = null;
-
 
15063
    }
-
 
15064
 
-
 
15065
    public int getEntityIdsSize() {
-
 
15066
      return (this.entityIds == null) ? 0 : this.entityIds.size();
-
 
15067
    }
-
 
15068
 
-
 
15069
    public java.util.Iterator<Long> getEntityIdsIterator() {
-
 
15070
      return (this.entityIds == null) ? null : this.entityIds.iterator();
-
 
15071
    }
-
 
15072
 
-
 
15073
    public void addToEntityIds(long elem) {
-
 
15074
      if (this.entityIds == null) {
-
 
15075
        this.entityIds = new ArrayList<Long>();
-
 
15076
      }
-
 
15077
      this.entityIds.add(elem);
-
 
15078
    }
-
 
15079
 
-
 
15080
    public List<Long> getEntityIds() {
-
 
15081
      return this.entityIds;
-
 
15082
    }
-
 
15083
 
-
 
15084
    public void setEntityIds(List<Long> entityIds) {
-
 
15085
      this.entityIds = entityIds;
-
 
15086
    }
-
 
15087
 
-
 
15088
    public void unsetEntityIds() {
-
 
15089
      this.entityIds = null;
-
 
15090
    }
-
 
15091
 
-
 
15092
    /** Returns true if field entityIds is set (has been assigned a value) and false otherwise */
-
 
15093
    public boolean isSetEntityIds() {
-
 
15094
      return this.entityIds != null;
-
 
15095
    }
-
 
15096
 
-
 
15097
    public void setEntityIdsIsSet(boolean value) {
-
 
15098
      if (!value) {
-
 
15099
        this.entityIds = null;
-
 
15100
      }
-
 
15101
    }
-
 
15102
 
-
 
15103
    public String getEmail() {
-
 
15104
      return this.email;
-
 
15105
    }
-
 
15106
 
-
 
15107
    public void setEmail(String email) {
-
 
15108
      this.email = email;
-
 
15109
    }
-
 
15110
 
-
 
15111
    public void unsetEmail() {
-
 
15112
      this.email = null;
-
 
15113
    }
-
 
15114
 
-
 
15115
    /** Returns true if field email is set (has been assigned a value) and false otherwise */
-
 
15116
    public boolean isSetEmail() {
-
 
15117
      return this.email != null;
-
 
15118
    }
-
 
15119
 
-
 
15120
    public void setEmailIsSet(boolean value) {
-
 
15121
      if (!value) {
-
 
15122
        this.email = null;
-
 
15123
      }
-
 
15124
    }
-
 
15125
 
-
 
15126
    public void setFieldValue(_Fields field, Object value) {
-
 
15127
      switch (field) {
-
 
15128
      case ENTITY_IDS:
-
 
15129
        if (value == null) {
-
 
15130
          unsetEntityIds();
-
 
15131
        } else {
-
 
15132
          setEntityIds((List<Long>)value);
-
 
15133
        }
-
 
15134
        break;
-
 
15135
 
-
 
15136
      case EMAIL:
-
 
15137
        if (value == null) {
-
 
15138
          unsetEmail();
-
 
15139
        } else {
-
 
15140
          setEmail((String)value);
-
 
15141
        }
-
 
15142
        break;
-
 
15143
 
-
 
15144
      }
-
 
15145
    }
-
 
15146
 
-
 
15147
    public Object getFieldValue(_Fields field) {
-
 
15148
      switch (field) {
-
 
15149
      case ENTITY_IDS:
-
 
15150
        return getEntityIds();
-
 
15151
 
-
 
15152
      case EMAIL:
-
 
15153
        return getEmail();
-
 
15154
 
-
 
15155
      }
-
 
15156
      throw new IllegalStateException();
-
 
15157
    }
-
 
15158
 
-
 
15159
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
15160
    public boolean isSet(_Fields field) {
-
 
15161
      if (field == null) {
-
 
15162
        throw new IllegalArgumentException();
-
 
15163
      }
-
 
15164
 
-
 
15165
      switch (field) {
-
 
15166
      case ENTITY_IDS:
-
 
15167
        return isSetEntityIds();
-
 
15168
      case EMAIL:
-
 
15169
        return isSetEmail();
-
 
15170
      }
-
 
15171
      throw new IllegalStateException();
-
 
15172
    }
-
 
15173
 
-
 
15174
    @Override
-
 
15175
    public boolean equals(Object that) {
-
 
15176
      if (that == null)
-
 
15177
        return false;
-
 
15178
      if (that instanceof shareEntities_args)
-
 
15179
        return this.equals((shareEntities_args)that);
-
 
15180
      return false;
-
 
15181
    }
-
 
15182
 
-
 
15183
    public boolean equals(shareEntities_args that) {
-
 
15184
      if (that == null)
-
 
15185
        return false;
-
 
15186
 
-
 
15187
      boolean this_present_entityIds = true && this.isSetEntityIds();
-
 
15188
      boolean that_present_entityIds = true && that.isSetEntityIds();
-
 
15189
      if (this_present_entityIds || that_present_entityIds) {
-
 
15190
        if (!(this_present_entityIds && that_present_entityIds))
-
 
15191
          return false;
-
 
15192
        if (!this.entityIds.equals(that.entityIds))
-
 
15193
          return false;
-
 
15194
      }
-
 
15195
 
-
 
15196
      boolean this_present_email = true && this.isSetEmail();
-
 
15197
      boolean that_present_email = true && that.isSetEmail();
-
 
15198
      if (this_present_email || that_present_email) {
-
 
15199
        if (!(this_present_email && that_present_email))
-
 
15200
          return false;
-
 
15201
        if (!this.email.equals(that.email))
-
 
15202
          return false;
-
 
15203
      }
-
 
15204
 
-
 
15205
      return true;
-
 
15206
    }
-
 
15207
 
-
 
15208
    @Override
-
 
15209
    public int hashCode() {
-
 
15210
      return 0;
-
 
15211
    }
-
 
15212
 
-
 
15213
    public int compareTo(shareEntities_args other) {
-
 
15214
      if (!getClass().equals(other.getClass())) {
-
 
15215
        return getClass().getName().compareTo(other.getClass().getName());
-
 
15216
      }
-
 
15217
 
-
 
15218
      int lastComparison = 0;
-
 
15219
      shareEntities_args typedOther = (shareEntities_args)other;
-
 
15220
 
-
 
15221
      lastComparison = Boolean.valueOf(isSetEntityIds()).compareTo(typedOther.isSetEntityIds());
-
 
15222
      if (lastComparison != 0) {
-
 
15223
        return lastComparison;
-
 
15224
      }
-
 
15225
      if (isSetEntityIds()) {
-
 
15226
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entityIds, typedOther.entityIds);
-
 
15227
        if (lastComparison != 0) {
-
 
15228
          return lastComparison;
-
 
15229
        }
-
 
15230
      }
-
 
15231
      lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
-
 
15232
      if (lastComparison != 0) {
-
 
15233
        return lastComparison;
-
 
15234
      }
-
 
15235
      if (isSetEmail()) {
-
 
15236
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
-
 
15237
        if (lastComparison != 0) {
-
 
15238
          return lastComparison;
-
 
15239
        }
-
 
15240
      }
-
 
15241
      return 0;
-
 
15242
    }
-
 
15243
 
-
 
15244
    public _Fields fieldForId(int fieldId) {
-
 
15245
      return _Fields.findByThriftId(fieldId);
-
 
15246
    }
-
 
15247
 
-
 
15248
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
15249
      org.apache.thrift.protocol.TField field;
-
 
15250
      iprot.readStructBegin();
-
 
15251
      while (true)
-
 
15252
      {
-
 
15253
        field = iprot.readFieldBegin();
-
 
15254
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
15255
          break;
-
 
15256
        }
-
 
15257
        switch (field.id) {
-
 
15258
          case 1: // ENTITY_IDS
-
 
15259
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
15260
              {
-
 
15261
                org.apache.thrift.protocol.TList _list21 = iprot.readListBegin();
-
 
15262
                this.entityIds = new ArrayList<Long>(_list21.size);
-
 
15263
                for (int _i22 = 0; _i22 < _list21.size; ++_i22)
-
 
15264
                {
-
 
15265
                  long _elem23; // required
-
 
15266
                  _elem23 = iprot.readI64();
-
 
15267
                  this.entityIds.add(_elem23);
-
 
15268
                }
-
 
15269
                iprot.readListEnd();
-
 
15270
              }
-
 
15271
            } else { 
-
 
15272
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
15273
            }
-
 
15274
            break;
-
 
15275
          case 2: // EMAIL
-
 
15276
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
15277
              this.email = iprot.readString();
-
 
15278
            } else { 
-
 
15279
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
15280
            }
-
 
15281
            break;
-
 
15282
          default:
-
 
15283
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
15284
        }
-
 
15285
        iprot.readFieldEnd();
-
 
15286
      }
-
 
15287
      iprot.readStructEnd();
-
 
15288
      validate();
-
 
15289
    }
-
 
15290
 
-
 
15291
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
15292
      validate();
-
 
15293
 
-
 
15294
      oprot.writeStructBegin(STRUCT_DESC);
-
 
15295
      if (this.entityIds != null) {
-
 
15296
        oprot.writeFieldBegin(ENTITY_IDS_FIELD_DESC);
-
 
15297
        {
-
 
15298
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.entityIds.size()));
-
 
15299
          for (long _iter24 : this.entityIds)
-
 
15300
          {
-
 
15301
            oprot.writeI64(_iter24);
-
 
15302
          }
-
 
15303
          oprot.writeListEnd();
-
 
15304
        }
-
 
15305
        oprot.writeFieldEnd();
-
 
15306
      }
-
 
15307
      if (this.email != null) {
-
 
15308
        oprot.writeFieldBegin(EMAIL_FIELD_DESC);
-
 
15309
        oprot.writeString(this.email);
-
 
15310
        oprot.writeFieldEnd();
-
 
15311
      }
-
 
15312
      oprot.writeFieldStop();
-
 
15313
      oprot.writeStructEnd();
-
 
15314
    }
-
 
15315
 
-
 
15316
    @Override
-
 
15317
    public String toString() {
-
 
15318
      StringBuilder sb = new StringBuilder("shareEntities_args(");
-
 
15319
      boolean first = true;
-
 
15320
 
-
 
15321
      sb.append("entityIds:");
-
 
15322
      if (this.entityIds == null) {
-
 
15323
        sb.append("null");
-
 
15324
      } else {
-
 
15325
        sb.append(this.entityIds);
-
 
15326
      }
-
 
15327
      first = false;
-
 
15328
      if (!first) sb.append(", ");
-
 
15329
      sb.append("email:");
-
 
15330
      if (this.email == null) {
-
 
15331
        sb.append("null");
-
 
15332
      } else {
-
 
15333
        sb.append(this.email);
-
 
15334
      }
-
 
15335
      first = false;
-
 
15336
      sb.append(")");
-
 
15337
      return sb.toString();
-
 
15338
    }
-
 
15339
 
-
 
15340
    public void validate() throws org.apache.thrift.TException {
-
 
15341
      // check for required fields
-
 
15342
    }
-
 
15343
 
-
 
15344
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
15345
      try {
-
 
15346
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
15347
      } catch (org.apache.thrift.TException te) {
-
 
15348
        throw new java.io.IOException(te);
-
 
15349
      }
-
 
15350
    }
-
 
15351
 
-
 
15352
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
15353
      try {
-
 
15354
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
15355
      } catch (org.apache.thrift.TException te) {
-
 
15356
        throw new java.io.IOException(te);
-
 
15357
      }
-
 
15358
    }
-
 
15359
 
-
 
15360
  }
-
 
15361
 
-
 
15362
  public static class shareEntities_result implements org.apache.thrift.TBase<shareEntities_result, shareEntities_result._Fields>, java.io.Serializable, Cloneable   {
-
 
15363
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shareEntities_result");
-
 
15364
 
-
 
15365
    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);
-
 
15366
 
-
 
15367
    private HelperServiceException hse; // required
-
 
15368
 
-
 
15369
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
15370
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
15371
      HSE((short)1, "hse");
-
 
15372
 
-
 
15373
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
15374
 
-
 
15375
      static {
-
 
15376
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
15377
          byName.put(field.getFieldName(), field);
-
 
15378
        }
-
 
15379
      }
-
 
15380
 
-
 
15381
      /**
-
 
15382
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
15383
       */
-
 
15384
      public static _Fields findByThriftId(int fieldId) {
-
 
15385
        switch(fieldId) {
-
 
15386
          case 1: // HSE
-
 
15387
            return HSE;
-
 
15388
          default:
-
 
15389
            return null;
-
 
15390
        }
-
 
15391
      }
-
 
15392
 
-
 
15393
      /**
-
 
15394
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
15395
       * if it is not found.
-
 
15396
       */
-
 
15397
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
15398
        _Fields fields = findByThriftId(fieldId);
-
 
15399
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
15400
        return fields;
-
 
15401
      }
-
 
15402
 
-
 
15403
      /**
-
 
15404
       * Find the _Fields constant that matches name, or null if its not found.
-
 
15405
       */
-
 
15406
      public static _Fields findByName(String name) {
-
 
15407
        return byName.get(name);
-
 
15408
      }
-
 
15409
 
-
 
15410
      private final short _thriftId;
-
 
15411
      private final String _fieldName;
-
 
15412
 
-
 
15413
      _Fields(short thriftId, String fieldName) {
-
 
15414
        _thriftId = thriftId;
-
 
15415
        _fieldName = fieldName;
-
 
15416
      }
-
 
15417
 
-
 
15418
      public short getThriftFieldId() {
-
 
15419
        return _thriftId;
-
 
15420
      }
-
 
15421
 
-
 
15422
      public String getFieldName() {
-
 
15423
        return _fieldName;
-
 
15424
      }
-
 
15425
    }
-
 
15426
 
-
 
15427
    // isset id assignments
-
 
15428
 
-
 
15429
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
15430
    static {
-
 
15431
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
15432
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
15433
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
15434
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
15435
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shareEntities_result.class, metaDataMap);
-
 
15436
    }
-
 
15437
 
-
 
15438
    public shareEntities_result() {
-
 
15439
    }
-
 
15440
 
-
 
15441
    public shareEntities_result(
-
 
15442
      HelperServiceException hse)
-
 
15443
    {
-
 
15444
      this();
-
 
15445
      this.hse = hse;
-
 
15446
    }
-
 
15447
 
-
 
15448
    /**
-
 
15449
     * Performs a deep copy on <i>other</i>.
-
 
15450
     */
-
 
15451
    public shareEntities_result(shareEntities_result other) {
-
 
15452
      if (other.isSetHse()) {
-
 
15453
        this.hse = new HelperServiceException(other.hse);
-
 
15454
      }
-
 
15455
    }
-
 
15456
 
-
 
15457
    public shareEntities_result deepCopy() {
-
 
15458
      return new shareEntities_result(this);
-
 
15459
    }
-
 
15460
 
-
 
15461
    @Override
-
 
15462
    public void clear() {
-
 
15463
      this.hse = null;
-
 
15464
    }
-
 
15465
 
-
 
15466
    public HelperServiceException getHse() {
-
 
15467
      return this.hse;
-
 
15468
    }
-
 
15469
 
-
 
15470
    public void setHse(HelperServiceException hse) {
-
 
15471
      this.hse = hse;
-
 
15472
    }
-
 
15473
 
-
 
15474
    public void unsetHse() {
-
 
15475
      this.hse = null;
-
 
15476
    }
-
 
15477
 
-
 
15478
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
-
 
15479
    public boolean isSetHse() {
-
 
15480
      return this.hse != null;
-
 
15481
    }
-
 
15482
 
-
 
15483
    public void setHseIsSet(boolean value) {
-
 
15484
      if (!value) {
-
 
15485
        this.hse = null;
-
 
15486
      }
-
 
15487
    }
-
 
15488
 
-
 
15489
    public void setFieldValue(_Fields field, Object value) {
-
 
15490
      switch (field) {
-
 
15491
      case HSE:
-
 
15492
        if (value == null) {
-
 
15493
          unsetHse();
-
 
15494
        } else {
-
 
15495
          setHse((HelperServiceException)value);
-
 
15496
        }
-
 
15497
        break;
-
 
15498
 
-
 
15499
      }
-
 
15500
    }
-
 
15501
 
-
 
15502
    public Object getFieldValue(_Fields field) {
-
 
15503
      switch (field) {
-
 
15504
      case HSE:
-
 
15505
        return getHse();
-
 
15506
 
-
 
15507
      }
-
 
15508
      throw new IllegalStateException();
-
 
15509
    }
-
 
15510
 
-
 
15511
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
15512
    public boolean isSet(_Fields field) {
-
 
15513
      if (field == null) {
-
 
15514
        throw new IllegalArgumentException();
-
 
15515
      }
-
 
15516
 
-
 
15517
      switch (field) {
-
 
15518
      case HSE:
-
 
15519
        return isSetHse();
-
 
15520
      }
-
 
15521
      throw new IllegalStateException();
-
 
15522
    }
-
 
15523
 
-
 
15524
    @Override
-
 
15525
    public boolean equals(Object that) {
-
 
15526
      if (that == null)
-
 
15527
        return false;
-
 
15528
      if (that instanceof shareEntities_result)
-
 
15529
        return this.equals((shareEntities_result)that);
-
 
15530
      return false;
-
 
15531
    }
-
 
15532
 
-
 
15533
    public boolean equals(shareEntities_result that) {
-
 
15534
      if (that == null)
-
 
15535
        return false;
-
 
15536
 
-
 
15537
      boolean this_present_hse = true && this.isSetHse();
-
 
15538
      boolean that_present_hse = true && that.isSetHse();
-
 
15539
      if (this_present_hse || that_present_hse) {
-
 
15540
        if (!(this_present_hse && that_present_hse))
-
 
15541
          return false;
-
 
15542
        if (!this.hse.equals(that.hse))
-
 
15543
          return false;
-
 
15544
      }
-
 
15545
 
-
 
15546
      return true;
-
 
15547
    }
-
 
15548
 
-
 
15549
    @Override
-
 
15550
    public int hashCode() {
-
 
15551
      return 0;
-
 
15552
    }
-
 
15553
 
-
 
15554
    public int compareTo(shareEntities_result other) {
-
 
15555
      if (!getClass().equals(other.getClass())) {
-
 
15556
        return getClass().getName().compareTo(other.getClass().getName());
-
 
15557
      }
-
 
15558
 
-
 
15559
      int lastComparison = 0;
-
 
15560
      shareEntities_result typedOther = (shareEntities_result)other;
-
 
15561
 
-
 
15562
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
-
 
15563
      if (lastComparison != 0) {
-
 
15564
        return lastComparison;
-
 
15565
      }
-
 
15566
      if (isSetHse()) {
-
 
15567
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
-
 
15568
        if (lastComparison != 0) {
-
 
15569
          return lastComparison;
-
 
15570
        }
-
 
15571
      }
-
 
15572
      return 0;
-
 
15573
    }
-
 
15574
 
-
 
15575
    public _Fields fieldForId(int fieldId) {
-
 
15576
      return _Fields.findByThriftId(fieldId);
-
 
15577
    }
-
 
15578
 
-
 
15579
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
15580
      org.apache.thrift.protocol.TField field;
-
 
15581
      iprot.readStructBegin();
-
 
15582
      while (true)
-
 
15583
      {
-
 
15584
        field = iprot.readFieldBegin();
-
 
15585
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
15586
          break;
-
 
15587
        }
-
 
15588
        switch (field.id) {
-
 
15589
          case 1: // HSE
-
 
15590
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
15591
              this.hse = new HelperServiceException();
-
 
15592
              this.hse.read(iprot);
-
 
15593
            } else { 
-
 
15594
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
15595
            }
-
 
15596
            break;
-
 
15597
          default:
-
 
15598
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
15599
        }
-
 
15600
        iprot.readFieldEnd();
-
 
15601
      }
-
 
15602
      iprot.readStructEnd();
-
 
15603
      validate();
-
 
15604
    }
-
 
15605
 
-
 
15606
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
15607
      oprot.writeStructBegin(STRUCT_DESC);
-
 
15608
 
-
 
15609
      if (this.isSetHse()) {
-
 
15610
        oprot.writeFieldBegin(HSE_FIELD_DESC);
-
 
15611
        this.hse.write(oprot);
-
 
15612
        oprot.writeFieldEnd();
-
 
15613
      }
-
 
15614
      oprot.writeFieldStop();
-
 
15615
      oprot.writeStructEnd();
-
 
15616
    }
-
 
15617
 
-
 
15618
    @Override
-
 
15619
    public String toString() {
-
 
15620
      StringBuilder sb = new StringBuilder("shareEntities_result(");
-
 
15621
      boolean first = true;
-
 
15622
 
-
 
15623
      sb.append("hse:");
-
 
15624
      if (this.hse == null) {
-
 
15625
        sb.append("null");
-
 
15626
      } else {
-
 
15627
        sb.append(this.hse);
14825
      }
15628
      }
14826
      first = false;
15629
      first = false;
14827
      sb.append(")");
15630
      sb.append(")");
14828
      return sb.toString();
15631
      return sb.toString();
14829
    }
15632
    }