Subversion Repositories SmartDukaan

Rev

Rev 14882 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14882 Rev 14898
Line 38... Line 38...
38
  private static final org.apache.thrift.protocol.TField TICKET_STATUSES_FIELD_DESC = new org.apache.thrift.protocol.TField("ticketStatuses", org.apache.thrift.protocol.TType.LIST, (short)13);
38
  private static final org.apache.thrift.protocol.TField TICKET_STATUSES_FIELD_DESC = new org.apache.thrift.protocol.TField("ticketStatuses", org.apache.thrift.protocol.TType.LIST, (short)13);
39
  private static final org.apache.thrift.protocol.TField TICKET_CATEGORY_FIELD_DESC = new org.apache.thrift.protocol.TField("ticketCategory", org.apache.thrift.protocol.TType.I32, (short)14);
39
  private static final org.apache.thrift.protocol.TField TICKET_CATEGORY_FIELD_DESC = new org.apache.thrift.protocol.TField("ticketCategory", org.apache.thrift.protocol.TType.I32, (short)14);
40
  private static final org.apache.thrift.protocol.TField TICKET_PRIORITY_FIELD_DESC = new org.apache.thrift.protocol.TField("ticketPriority", org.apache.thrift.protocol.TType.I32, (short)15);
40
  private static final org.apache.thrift.protocol.TField TICKET_PRIORITY_FIELD_DESC = new org.apache.thrift.protocol.TField("ticketPriority", org.apache.thrift.protocol.TType.I32, (short)15);
41
  private static final org.apache.thrift.protocol.TField ACTIVITY_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("activityType", org.apache.thrift.protocol.TType.I32, (short)16);
41
  private static final org.apache.thrift.protocol.TField ACTIVITY_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("activityType", org.apache.thrift.protocol.TType.I32, (short)16);
42
  private static final org.apache.thrift.protocol.TField TICKET_CATEGORY_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("ticketCategoryList", org.apache.thrift.protocol.TType.LIST, (short)17);
42
  private static final org.apache.thrift.protocol.TField TICKET_CATEGORY_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("ticketCategoryList", org.apache.thrift.protocol.TType.LIST, (short)17);
-
 
43
  private static final org.apache.thrift.protocol.TField NOT_SHOW_PM_TICKETS_FIELD_DESC = new org.apache.thrift.protocol.TField("notShowPmTickets", org.apache.thrift.protocol.TType.BOOL, (short)18);
43
 
44
 
44
  private long ticketId; // required
45
  private long ticketId; // required
45
  private long activityId; // required
46
  private long activityId; // required
46
  private List<Long> ticketAssigneeIds; // required
47
  private List<Long> ticketAssigneeIds; // required
47
  private List<Long> activityCreatorIds; // required
48
  private List<Long> activityCreatorIds; // required
Line 56... Line 57...
56
  private List<TicketStatus> ticketStatuses; // required
57
  private List<TicketStatus> ticketStatuses; // required
57
  private TicketCategory ticketCategory; // required
58
  private TicketCategory ticketCategory; // required
58
  private TicketPriority ticketPriority; // required
59
  private TicketPriority ticketPriority; // required
59
  private ActivityType activityType; // required
60
  private ActivityType activityType; // required
60
  private List<TicketCategory> ticketCategoryList; // required
61
  private List<TicketCategory> ticketCategoryList; // required
-
 
62
  private boolean notShowPmTickets; // required
61
 
63
 
62
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
64
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
63
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
65
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
64
    TICKET_ID((short)1, "ticketId"),
66
    TICKET_ID((short)1, "ticketId"),
65
    ACTIVITY_ID((short)2, "activityId"),
67
    ACTIVITY_ID((short)2, "activityId"),
Line 87... Line 89...
87
    /**
89
    /**
88
     * 
90
     * 
89
     * @see ActivityType
91
     * @see ActivityType
90
     */
92
     */
91
    ACTIVITY_TYPE((short)16, "activityType"),
93
    ACTIVITY_TYPE((short)16, "activityType"),
92
    TICKET_CATEGORY_LIST((short)17, "ticketCategoryList");
94
    TICKET_CATEGORY_LIST((short)17, "ticketCategoryList"),
-
 
95
    NOT_SHOW_PM_TICKETS((short)18, "notShowPmTickets");
93
 
96
 
94
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
97
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
95
 
98
 
96
    static {
99
    static {
97
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
100
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 136... Line 139...
136
          return TICKET_PRIORITY;
139
          return TICKET_PRIORITY;
137
        case 16: // ACTIVITY_TYPE
140
        case 16: // ACTIVITY_TYPE
138
          return ACTIVITY_TYPE;
141
          return ACTIVITY_TYPE;
139
        case 17: // TICKET_CATEGORY_LIST
142
        case 17: // TICKET_CATEGORY_LIST
140
          return TICKET_CATEGORY_LIST;
143
          return TICKET_CATEGORY_LIST;
-
 
144
        case 18: // NOT_SHOW_PM_TICKETS
-
 
145
          return NOT_SHOW_PM_TICKETS;
141
        default:
146
        default:
142
          return null;
147
          return null;
143
      }
148
      }
144
    }
149
    }
145
 
150
 
Line 183... Line 188...
183
  private static final int __AGENTID_ISSET_ID = 2;
188
  private static final int __AGENTID_ISSET_ID = 2;
184
  private static final int __CUSTOMERID_ISSET_ID = 3;
189
  private static final int __CUSTOMERID_ISSET_ID = 3;
185
  private static final int __STARTTIMESTAMP_ISSET_ID = 4;
190
  private static final int __STARTTIMESTAMP_ISSET_ID = 4;
186
  private static final int __ENDTIMESTAMP_ISSET_ID = 5;
191
  private static final int __ENDTIMESTAMP_ISSET_ID = 5;
187
  private static final int __ISACTIVITYREAD_ISSET_ID = 6;
192
  private static final int __ISACTIVITYREAD_ISSET_ID = 6;
-
 
193
  private static final int __NOTSHOWPMTICKETS_ISSET_ID = 7;
188
  private BitSet __isset_bit_vector = new BitSet(7);
194
  private BitSet __isset_bit_vector = new BitSet(8);
189
 
195
 
190
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
196
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
191
  static {
197
  static {
192
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
198
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
193
    tmpMap.put(_Fields.TICKET_ID, new org.apache.thrift.meta_data.FieldMetaData("ticketId", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
199
    tmpMap.put(_Fields.TICKET_ID, new org.apache.thrift.meta_data.FieldMetaData("ticketId", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
Line 226... Line 232...
226
    tmpMap.put(_Fields.ACTIVITY_TYPE, new org.apache.thrift.meta_data.FieldMetaData("activityType", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
232
    tmpMap.put(_Fields.ACTIVITY_TYPE, new org.apache.thrift.meta_data.FieldMetaData("activityType", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
227
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ActivityType.class)));
233
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ActivityType.class)));
228
    tmpMap.put(_Fields.TICKET_CATEGORY_LIST, new org.apache.thrift.meta_data.FieldMetaData("ticketCategoryList", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
234
    tmpMap.put(_Fields.TICKET_CATEGORY_LIST, new org.apache.thrift.meta_data.FieldMetaData("ticketCategoryList", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
229
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
235
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
230
            new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TicketCategory.class))));
236
            new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TicketCategory.class))));
-
 
237
    tmpMap.put(_Fields.NOT_SHOW_PM_TICKETS, new org.apache.thrift.meta_data.FieldMetaData("notShowPmTickets", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-
 
238
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
231
    metaDataMap = Collections.unmodifiableMap(tmpMap);
239
    metaDataMap = Collections.unmodifiableMap(tmpMap);
232
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(SearchFilter.class, metaDataMap);
240
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(SearchFilter.class, metaDataMap);
233
  }
241
  }
234
 
242
 
235
  public SearchFilter() {
243
  public SearchFilter() {
Line 292... Line 300...
292
      for (TicketCategory other_element : other.ticketCategoryList) {
300
      for (TicketCategory other_element : other.ticketCategoryList) {
293
        __this__ticketCategoryList.add(other_element);
301
        __this__ticketCategoryList.add(other_element);
294
      }
302
      }
295
      this.ticketCategoryList = __this__ticketCategoryList;
303
      this.ticketCategoryList = __this__ticketCategoryList;
296
    }
304
    }
-
 
305
    this.notShowPmTickets = other.notShowPmTickets;
297
  }
306
  }
298
 
307
 
299
  public SearchFilter deepCopy() {
308
  public SearchFilter deepCopy() {
300
    return new SearchFilter(this);
309
    return new SearchFilter(this);
301
  }
310
  }
Line 324... Line 333...
324
    this.ticketStatuses = null;
333
    this.ticketStatuses = null;
325
    this.ticketCategory = null;
334
    this.ticketCategory = null;
326
    this.ticketPriority = null;
335
    this.ticketPriority = null;
327
    this.activityType = null;
336
    this.activityType = null;
328
    this.ticketCategoryList = null;
337
    this.ticketCategoryList = null;
-
 
338
    setNotShowPmTicketsIsSet(false);
-
 
339
    this.notShowPmTickets = false;
329
  }
340
  }
330
 
341
 
331
  public long getTicketId() {
342
  public long getTicketId() {
332
    return this.ticketId;
343
    return this.ticketId;
333
  }
344
  }
Line 794... Line 805...
794
    if (!value) {
805
    if (!value) {
795
      this.ticketCategoryList = null;
806
      this.ticketCategoryList = null;
796
    }
807
    }
797
  }
808
  }
798
 
809
 
-
 
810
  public boolean isNotShowPmTickets() {
-
 
811
    return this.notShowPmTickets;
-
 
812
  }
-
 
813
 
-
 
814
  public void setNotShowPmTickets(boolean notShowPmTickets) {
-
 
815
    this.notShowPmTickets = notShowPmTickets;
-
 
816
    setNotShowPmTicketsIsSet(true);
-
 
817
  }
-
 
818
 
-
 
819
  public void unsetNotShowPmTickets() {
-
 
820
    __isset_bit_vector.clear(__NOTSHOWPMTICKETS_ISSET_ID);
-
 
821
  }
-
 
822
 
-
 
823
  /** Returns true if field notShowPmTickets is set (has been assigned a value) and false otherwise */
-
 
824
  public boolean isSetNotShowPmTickets() {
-
 
825
    return __isset_bit_vector.get(__NOTSHOWPMTICKETS_ISSET_ID);
-
 
826
  }
-
 
827
 
-
 
828
  public void setNotShowPmTicketsIsSet(boolean value) {
-
 
829
    __isset_bit_vector.set(__NOTSHOWPMTICKETS_ISSET_ID, value);
-
 
830
  }
-
 
831
 
799
  public void setFieldValue(_Fields field, Object value) {
832
  public void setFieldValue(_Fields field, Object value) {
800
    switch (field) {
833
    switch (field) {
801
    case TICKET_ID:
834
    case TICKET_ID:
802
      if (value == null) {
835
      if (value == null) {
803
        unsetTicketId();
836
        unsetTicketId();
Line 932... Line 965...
932
      } else {
965
      } else {
933
        setTicketCategoryList((List<TicketCategory>)value);
966
        setTicketCategoryList((List<TicketCategory>)value);
934
      }
967
      }
935
      break;
968
      break;
936
 
969
 
-
 
970
    case NOT_SHOW_PM_TICKETS:
-
 
971
      if (value == null) {
-
 
972
        unsetNotShowPmTickets();
-
 
973
      } else {
-
 
974
        setNotShowPmTickets((Boolean)value);
-
 
975
      }
-
 
976
      break;
-
 
977
 
937
    }
978
    }
938
  }
979
  }
939
 
980
 
940
  public Object getFieldValue(_Fields field) {
981
  public Object getFieldValue(_Fields field) {
941
    switch (field) {
982
    switch (field) {
Line 988... Line 1029...
988
      return getActivityType();
1029
      return getActivityType();
989
 
1030
 
990
    case TICKET_CATEGORY_LIST:
1031
    case TICKET_CATEGORY_LIST:
991
      return getTicketCategoryList();
1032
      return getTicketCategoryList();
992
 
1033
 
-
 
1034
    case NOT_SHOW_PM_TICKETS:
-
 
1035
      return Boolean.valueOf(isNotShowPmTickets());
-
 
1036
 
993
    }
1037
    }
994
    throw new IllegalStateException();
1038
    throw new IllegalStateException();
995
  }
1039
  }
996
 
1040
 
997
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1041
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 1033... Line 1077...
1033
      return isSetTicketPriority();
1077
      return isSetTicketPriority();
1034
    case ACTIVITY_TYPE:
1078
    case ACTIVITY_TYPE:
1035
      return isSetActivityType();
1079
      return isSetActivityType();
1036
    case TICKET_CATEGORY_LIST:
1080
    case TICKET_CATEGORY_LIST:
1037
      return isSetTicketCategoryList();
1081
      return isSetTicketCategoryList();
-
 
1082
    case NOT_SHOW_PM_TICKETS:
-
 
1083
      return isSetNotShowPmTickets();
1038
    }
1084
    }
1039
    throw new IllegalStateException();
1085
    throw new IllegalStateException();
1040
  }
1086
  }
1041
 
1087
 
1042
  @Override
1088
  @Override
Line 1203... Line 1249...
1203
        return false;
1249
        return false;
1204
      if (!this.ticketCategoryList.equals(that.ticketCategoryList))
1250
      if (!this.ticketCategoryList.equals(that.ticketCategoryList))
1205
        return false;
1251
        return false;
1206
    }
1252
    }
1207
 
1253
 
-
 
1254
    boolean this_present_notShowPmTickets = true && this.isSetNotShowPmTickets();
-
 
1255
    boolean that_present_notShowPmTickets = true && that.isSetNotShowPmTickets();
-
 
1256
    if (this_present_notShowPmTickets || that_present_notShowPmTickets) {
-
 
1257
      if (!(this_present_notShowPmTickets && that_present_notShowPmTickets))
-
 
1258
        return false;
-
 
1259
      if (this.notShowPmTickets != that.notShowPmTickets)
-
 
1260
        return false;
-
 
1261
    }
-
 
1262
 
1208
    return true;
1263
    return true;
1209
  }
1264
  }
1210
 
1265
 
1211
  @Override
1266
  @Override
1212
  public int hashCode() {
1267
  public int hashCode() {
Line 1389... Line 1444...
1389
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ticketCategoryList, typedOther.ticketCategoryList);
1444
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ticketCategoryList, typedOther.ticketCategoryList);
1390
      if (lastComparison != 0) {
1445
      if (lastComparison != 0) {
1391
        return lastComparison;
1446
        return lastComparison;
1392
      }
1447
      }
1393
    }
1448
    }
-
 
1449
    lastComparison = Boolean.valueOf(isSetNotShowPmTickets()).compareTo(typedOther.isSetNotShowPmTickets());
-
 
1450
    if (lastComparison != 0) {
-
 
1451
      return lastComparison;
-
 
1452
    }
-
 
1453
    if (isSetNotShowPmTickets()) {
-
 
1454
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.notShowPmTickets, typedOther.notShowPmTickets);
-
 
1455
      if (lastComparison != 0) {
-
 
1456
        return lastComparison;
-
 
1457
      }
-
 
1458
    }
1394
    return 0;
1459
    return 0;
1395
  }
1460
  }
1396
 
1461
 
1397
  public _Fields fieldForId(int fieldId) {
1462
  public _Fields fieldForId(int fieldId) {
1398
    return _Fields.findByThriftId(fieldId);
1463
    return _Fields.findByThriftId(fieldId);
Line 1572... Line 1637...
1572
            }
1637
            }
1573
          } else { 
1638
          } else { 
1574
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1639
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1575
          }
1640
          }
1576
          break;
1641
          break;
-
 
1642
        case 18: // NOT_SHOW_PM_TICKETS
-
 
1643
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
1644
            this.notShowPmTickets = iprot.readBool();
-
 
1645
            setNotShowPmTicketsIsSet(true);
-
 
1646
          } else { 
-
 
1647
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1648
          }
-
 
1649
          break;
1577
        default:
1650
        default:
1578
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1651
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1579
      }
1652
      }
1580
      iprot.readFieldEnd();
1653
      iprot.readFieldEnd();
1581
    }
1654
    }
Line 1718... Line 1791...
1718
          oprot.writeListEnd();
1791
          oprot.writeListEnd();
1719
        }
1792
        }
1720
        oprot.writeFieldEnd();
1793
        oprot.writeFieldEnd();
1721
      }
1794
      }
1722
    }
1795
    }
-
 
1796
    if (isSetNotShowPmTickets()) {
-
 
1797
      oprot.writeFieldBegin(NOT_SHOW_PM_TICKETS_FIELD_DESC);
-
 
1798
      oprot.writeBool(this.notShowPmTickets);
-
 
1799
      oprot.writeFieldEnd();
-
 
1800
    }
1723
    oprot.writeFieldStop();
1801
    oprot.writeFieldStop();
1724
    oprot.writeStructEnd();
1802
    oprot.writeStructEnd();
1725
  }
1803
  }
1726
 
1804
 
1727
  @Override
1805
  @Override
Line 1868... Line 1946...
1868
      } else {
1946
      } else {
1869
        sb.append(this.ticketCategoryList);
1947
        sb.append(this.ticketCategoryList);
1870
      }
1948
      }
1871
      first = false;
1949
      first = false;
1872
    }
1950
    }
-
 
1951
    if (isSetNotShowPmTickets()) {
-
 
1952
      if (!first) sb.append(", ");
-
 
1953
      sb.append("notShowPmTickets:");
-
 
1954
      sb.append(this.notShowPmTickets);
-
 
1955
      first = false;
-
 
1956
    }
1873
    sb.append(")");
1957
    sb.append(")");
1874
    return sb.toString();
1958
    return sb.toString();
1875
  }
1959
  }
1876
 
1960
 
1877
  public void validate() throws org.apache.thrift.TException {
1961
  public void validate() throws org.apache.thrift.TException {