TaskCreateRequest.java
11.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
/**
* @(#)TaskCreateRequest.java
*
* Copyright (c) 2014-2014 苏州犀牛网络科技有限公司 版权所有
* xiniunet. All rights reserved.
*
* This software is the confidential and proprietary
* information of xiniunet.
* ("Confidential Information"). You shall not disclose
* such Confidential Information and shall use it only
* in accordance with the terms of the contract agreement
* you entered into with xiniunet.
*/
package com.xiniunet.task.request;
import com.alibaba.fastjson.JSON;
import com.xiniunet.framework.base.BaseRequest;
import com.xiniunet.task.domain.FileAttachmentBind;
import com.xiniunet.task.domain.Subtask;
import com.xiniunet.task.domain.TaskUser;
import com.xiniunet.task.enumeration.PrioityEnum;
import com.xiniunet.task.enumeration.TaskObjectCategoryEnum;
import com.xiniunet.task.enumeration.TaskObjectTypeEnum;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;
/**
* Created by 沈振家 on 2016-11-28 16:23:01.
* @author 沈振家
*/
public class TaskCreateRequest extends BaseRequest {
/**
* 主键
*/
private Long id;
/**
* 对象类型
*/
@NotNull(message = "对象类型不能为空")
private TaskObjectTypeEnum objectType;
/**
* 对象ID
*/
private Long objectId;
/**
* 对象分类
*/
private TaskObjectCategoryEnum objectCategory;
/**
* 对象名称
*/
@Length(min=0, max=100, message = "对象名称长度不合法")
private String objectName;
/**
* 拼音
*/
@Length(min=0, max=600, message = "拼音长度不合法")
private String objectNamePinyin;
/**
* 拼音缩写
*/
@Length(min=0, max=100, message = "拼音缩写长度不合法")
private String objectNamePy;
/**
* 对象描述
*/
@Length(min=0, max=500, message = "对象描述长度不合法")
private String objectDescription;
/**
* 对象链接,
*/
@Length(min=0, max=500, message = "对象链接长度不合法")
private String objectUrl;
/**
* 负责人用户ID
*/
private Long ownerUserId;
/**
* 负责人用户姓名
*/
@Length(min=0, max=100, message = "负责人用户姓名长度不合法")
private String ownerUserName;
/**
* 是否星标
*/
private Boolean isStar=false;
/**
* 优先级
*/
private PrioityEnum prioity;
/**
* 是否有截止日
*/
private Boolean hasDeadline=false;
/**
* 截止日
*/
private Date deadlineDate;
/**
* 是否需要提醒
*/
private Boolean needReminding=false;
/**
* 提醒时间
*/
private Date remindingTime;
/**
* 完成度
*/
private Double complete;
/**
* 产品ID
*/
private Long productId;
/**
* 应用ID
*/
private Long applicationId;
/**
* 项目ID
*/
private Long projectId;
/**
* 是否有子任务
*/
private Boolean hasSubtask=false;
/**
* 子任务数目
*/
private Integer subtaskCount=0;
/**
* 完成子任务数据
*/
private Integer subtaskDoneCount=0;
/**
* 任务清单ID
*/
private Long listId;
/**
* 是否完成
*/
private Boolean isDone=false;
/**
* 完成用户ID
*/
private Long doUserId;
/**
* 完成用户姓名
*/
@Length(min=0, max=100, message = "完成用户姓名长度不合法")
private String doUserName;
/**
* 完成时间
*/
private Date doTime;
/**
* 子任务列表
*/
private List<Subtask> subtaskList;
/**
* 任务分配
*/
private List<TaskUser> userList;
/**
* 抄送人
*/
private List<TaskUser> ccUserList;
/**
* 开始时间
*/
private Date beginTime;
/**
* 结束时间
*/
private Date endTime;
/**
* 附件集合
*/
private List<FileAttachmentBind> attachmentList;
/**
* 是否终止,
*/
private Boolean isAbort;
/**
* 终止人id,
*/
private Long abortUserId;
/**
* 终止人名称,
*/
private String abortUserName;
/**
* 终止时间,
*/
private Date abortTime;
/**
* 终止原因,
*/
private String abortReason;
public Boolean getIsAbort() {
return isAbort;
}
public void setIsAbort(Boolean abort) {
isAbort = abort;
}
public Long getAbortUserId() {
return abortUserId;
}
public void setAbortUserId(Long abortUserId) {
this.abortUserId = abortUserId;
}
public String getAbortUserName() {
return abortUserName;
}
public void setAbortUserName(String abortUserName) {
this.abortUserName = abortUserName;
}
public Date getAbortTime() {
return abortTime;
}
public void setAbortTime(Date abortTime) {
this.abortTime = abortTime;
}
public String getAbortReason() {
return abortReason;
}
public void setAbortReason(String abortReason) {
this.abortReason = abortReason;
}
public List<FileAttachmentBind> getAttachmentList() {
return attachmentList;
}
public void setAttachmentList(List<FileAttachmentBind> attachmentList) {
this.attachmentList = attachmentList;
}
public void setAttachmentList(String attachmentList) {
this.attachmentList = JSON.parseArray(attachmentList, FileAttachmentBind.class);
}
public Date getBeginTime() {
return beginTime;
}
public void setBeginTime(Date beginTime) {
this.beginTime = beginTime;
}
public Date getEndTime() {
return endTime;
}
public void setEndTime(Date endTime) {
this.endTime = endTime;
}
public List<TaskUser> getCcUserList() {
return ccUserList;
}
public void setCcUserList(List<TaskUser> ccUserList) {
this.ccUserList = ccUserList;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public TaskObjectTypeEnum getObjectType() {
return this.objectType;
}
public void setObjectType(TaskObjectTypeEnum objectType) {
this.objectType = objectType;
}
public Long getObjectId() {
return this.objectId;
}
public void setObjectId(Long objectId) {
this.objectId = objectId;
}
public TaskObjectCategoryEnum getObjectCategory() {
return this.objectCategory;
}
public void setObjectCategory(TaskObjectCategoryEnum objectCategory) {
this.objectCategory = objectCategory;
}
public String getObjectName() {
return this.objectName;
}
public void setObjectName(String objectName) {
this.objectName = objectName;
}
public String getObjectNamePinyin() {
return objectNamePinyin;
}
public void setObjectNamePinyin(String objectNamePinyin) {
this.objectNamePinyin = objectNamePinyin;
}
public String getObjectNamePy() {
return objectNamePy;
}
public void setObjectNamePy(String objectNamePy) {
this.objectNamePy = objectNamePy;
}
public String getObjectDescription() {
return this.objectDescription;
}
public void setObjectDescription(String objectDescription) {
this.objectDescription = objectDescription;
}
public String getObjectUrl() {
return objectUrl;
}
public void setObjectUrl(String objectUrl) {
this.objectUrl = objectUrl;
}
public Long getOwnerUserId() {
return this.ownerUserId;
}
public void setOwnerUserId(Long ownerUserId) {
this.ownerUserId = ownerUserId;
}
public String getOwnerUserName() {
return this.ownerUserName;
}
public void setOwnerUserName(String ownerUserName) {
this.ownerUserName = ownerUserName;
}
public Boolean getIsStar() {
return this.isStar;
}
public void setIsStar(Boolean isStar) {
this.isStar = isStar;
}
public PrioityEnum getPrioity() {
return this.prioity;
}
public void setPrioity(PrioityEnum prioity) {
this.prioity = prioity;
}
public Boolean getHasDeadline() {
return this.hasDeadline;
}
public void setHasDeadline(Boolean hasDeadline) {
this.hasDeadline = hasDeadline;
}
public Date getDeadlineDate() {
return this.deadlineDate;
}
public void setDeadlineDate(Date deadlineDate) {
this.deadlineDate = deadlineDate;
}
public Boolean getNeedReminding() {
return this.needReminding;
}
public void setNeedReminding(Boolean needReminding) {
this.needReminding = needReminding;
}
public Date getRemindingTime() {
return remindingTime;
}
public void setRemindingTime(Date remindingTime) {
this.remindingTime = remindingTime;
}
public Double getComplete() {
return this.complete;
}
public void setComplete(Double complete) {
this.complete = complete;
}
public Long getProductId() {
return this.productId;
}
public void setProductId(Long productId) {
this.productId = productId;
}
public Long getApplicationId() {
return this.applicationId;
}
public void setApplicationId(Long applicationId) {
this.applicationId = applicationId;
}
public Long getProjectId() {
return this.projectId;
}
public void setProjectId(Long projectId) {
this.projectId = projectId;
}
public Boolean getHasSubtask() {
return this.hasSubtask;
}
public void setHasSubtask(Boolean hasSubtask) {
this.hasSubtask = hasSubtask;
}
public Integer getSubtaskCount() {
return this.subtaskCount;
}
public void setSubtaskCount(Integer subtaskCount) {
this.subtaskCount = subtaskCount;
}
public Integer getSubtaskDoneCount() {
return this.subtaskDoneCount;
}
public void setSubtaskDoneCount(Integer subtaskDoneCount) {
this.subtaskDoneCount = subtaskDoneCount;
}
public Long getListId() {
return this.listId;
}
public void setListId(Long listId) {
this.listId = listId;
}
public Boolean getIsDone() {
return this.isDone;
}
public void setIsDone(Boolean isDone) {
this.isDone = isDone;
}
public Long getDoUserId() {
return this.doUserId;
}
public void setDoUserId(Long doUserId) {
this.doUserId = doUserId;
}
public String getDoUserName() {
return this.doUserName;
}
public void setDoUserName(String doUserName) {
this.doUserName = doUserName;
}
public Date getDoTime() {
return this.doTime;
}
public void setDoTime(Date doTime) {
this.doTime = doTime;
}
public List<Subtask> getSubtaskList() {
return subtaskList;
}
public void setSubtaskList(List<Subtask> subtaskList) {
this.subtaskList = subtaskList;
}
public void setSubtaskList(String subtaskList) {
this.subtaskList = JSON.parseArray(subtaskList, Subtask.class);
}
public List<TaskUser> getUserList() {
return userList;
}
public void setUserList(List<TaskUser> userList) {
this.userList = userList;
}
public void setUserList(String userList) {
this.userList = JSON.parseArray(userList, TaskUser.class);
}
}