package kr.wisestone.owl.web.form;
|
|
import com.google.common.collect.Lists;
|
import kr.wisestone.owl.util.ConvertUtil;
|
import kr.wisestone.owl.util.MapUtil;
|
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* Created by wisestone on 2018-01-08.
|
*/
|
public class IssueStatusChangeForm {
|
private Long userId;
|
private Long targetStatusId;
|
private String comment;
|
private Long projectId;
|
private Long currentPage;
|
private List<Long> issueIds = Lists.newArrayList();
|
private List<Long> allIssues = Lists.newArrayList();
|
|
public IssueStatusChangeForm(){}
|
|
public static IssueStatusChangeForm make(Map<String, Object> params) {
|
IssueStatusChangeForm form = ConvertUtil.convertMapToClass(params, IssueStatusChangeForm.class);
|
form.setIssueIds(MapUtil.getLongs(params, "issueIds"));
|
form.setAllIssues(MapUtil.getLongs(params, "allIssues"));
|
|
return form;
|
}
|
|
public Long getUserId() {
|
return userId;
|
}
|
|
public void setUserId(Long userId) {
|
this.userId = userId;
|
}
|
|
public Long getTargetStatusId() {
|
return targetStatusId;
|
}
|
|
public void setTargetStatusId(Long targetStatusId) {
|
this.targetStatusId = targetStatusId;
|
}
|
|
public String getComment() {
|
return comment;
|
}
|
|
public void setComment(String comment) {
|
this.comment = comment;
|
}
|
|
public List<Long> getIssueIds() {
|
return issueIds;
|
}
|
|
public void setIssueIds(List<Long> issueIds) {
|
this.issueIds = issueIds;
|
}
|
|
public List<Long> getAllIssues() {
|
return allIssues;
|
}
|
|
public void setAllIssues(List<Long> allIssues) {
|
this.allIssues = allIssues;
|
}
|
|
public Long getProjectId() {
|
return projectId;
|
}
|
|
public void setProjectId(Long projectId) {
|
this.projectId = projectId;
|
}
|
|
public Long getCurrentPage() {
|
return currentPage;
|
}
|
|
public void setCurrentPage(Long currentPage) {
|
this.currentPage = currentPage;
|
}
|
}
|