TaskChangeByObjectRequest.java
4.16 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
/**
* @(#)TaskUpdateRequest.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.xiniunet.framework.base.BaseUpdateRequest;
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;
/**
* Created by 沈振家 on 2016-11-28 16:23:01.
* @author 沈振家
*/
public class TaskChangeByObjectRequest extends BaseUpdateRequest {
/**
* 对象清单ID
*/
@NotNull(message = "对象清单ID不能为空")
private Long listObjectId;
/**
* 对象ID
*/
@NotNull(message = "对象ID不能为空")
private Long objectId;
/**
* 对象类型
*/
@NotNull(message = "对象类型不能为空")
private TaskObjectTypeEnum objectType;
/**
* 对象分类
*/
@NotNull(message = "对象分类不能为空")
private TaskObjectCategoryEnum objectCategory;
/**
* 对象名称
*/
@Length(min=0, max=100, message = "对象名称长度不合法")
private String objectName;
/**
* 对象描述
*/
@Length(min=0, max=500, message = "对象描述长度不合法")
private String objectDescription;
/**
* 负责人用户ID
*/
private Long ownerUserId;
/**
* 负责人用户姓名
*/
@Length(min=0, max=100, message = "负责人用户姓名长度不合法")
private String ownerUserName;
/**
* 是否有截止日
*/
private Boolean hasDeadline=false;
/**
* 截止日
*/
private Date deadlineDate;
/**
* 对象链接,
*/
@Length(min=0, max=500, message = "对象链接长度不合法")
private String objectUrl;
public Long getObjectId() {
return objectId;
}
public void setObjectId(Long objectId) {
this.objectId = objectId;
}
public TaskObjectTypeEnum getObjectType() {
return objectType;
}
public void setObjectType(TaskObjectTypeEnum objectType) {
this.objectType = objectType;
}
public String getObjectName() {
return objectName;
}
public void setObjectName(String objectName) {
this.objectName = objectName;
}
public String getObjectDescription() {
return objectDescription;
}
public void setObjectDescription(String objectDescription) {
this.objectDescription = objectDescription;
}
public Long getOwnerUserId() {
return ownerUserId;
}
public void setOwnerUserId(Long ownerUserId) {
this.ownerUserId = ownerUserId;
}
public String getOwnerUserName() {
return ownerUserName;
}
public void setOwnerUserName(String ownerUserName) {
this.ownerUserName = ownerUserName;
}
public Boolean getHasDeadline() {
return hasDeadline;
}
public void setHasDeadline(Boolean hasDeadline) {
this.hasDeadline = hasDeadline;
}
public Date getDeadlineDate() {
return deadlineDate;
}
public void setDeadlineDate(Date deadlineDate) {
this.deadlineDate = deadlineDate;
}
public Long getListObjectId() {
return listObjectId;
}
public void setListObjectId(Long listObjectId) {
this.listObjectId = listObjectId;
}
public TaskObjectCategoryEnum getObjectCategory() {
return objectCategory;
}
public void setObjectCategory(TaskObjectCategoryEnum objectCategory) {
this.objectCategory = objectCategory;
}
public String getObjectUrl() {
return objectUrl;
}
public void setObjectUrl(String objectUrl) {
this.objectUrl = objectUrl;
}
}