| | |
| | | package kr.wisestone.owl.web.condition; |
| | | |
| | | 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; |
| | | |
| | | /** |
| | |
| | | private String departmentName; |
| | | private String departmentDescription; |
| | | private Long departmentCount; |
| | | private Long projectId; |
| | | |
| | | private List<Long> excludeIds = Lists.newArrayList(); |
| | | private List<Long> departmentIds = Lists.newArrayList(); |
| | | |
| | | private Long issueTypeId; |
| | | |
| | | private Integer Page; |
| | | private Integer PageSize; |
| | | |
| | | public static DepartmentCondition make(Map<String, Object> departmentConditions) { |
| | | return ConvertUtil.convertMapToClass(departmentConditions, DepartmentCondition.class); |
| | | DepartmentCondition condition = ConvertUtil.convertMapToClass(departmentConditions, DepartmentCondition.class); |
| | | |
| | | if (MapUtil.getStrings(departmentConditions, "excludeIds") != null) { |
| | | condition.setExcludeIds(MapUtil.getLongs(departmentConditions, "excludeIds")); |
| | | } |
| | | |
| | | return condition; |
| | | } |
| | | |
| | | public Long getId() { |
| | |
| | | this.departmentCount = departmentCount; |
| | | } |
| | | |
| | | public Long getProjectId() { |
| | | return projectId; |
| | | } |
| | | |
| | | public void setProjectId(Long projectId) { |
| | | this.projectId = projectId; |
| | | } |
| | | |
| | | public Integer getPage() { |
| | | return Page; |
| | | } |
| | |
| | | public void setPageSize(Integer pageSize) { |
| | | PageSize = pageSize; |
| | | } |
| | | |
| | | public List<Long> getDepartmentIds() { |
| | | return departmentIds; |
| | | } |
| | | |
| | | public void setDepartmentIds(List<Long> departmentIds) { |
| | | this.departmentIds = departmentIds; |
| | | } |
| | | |
| | | public List<Long> getExcludeIds() { |
| | | return excludeIds; |
| | | } |
| | | |
| | | public void setExcludeIds(List<Long> excludeIds) { |
| | | this.excludeIds = excludeIds; |
| | | } |
| | | |
| | | public Long getIssueTypeId() { |
| | | return issueTypeId; |
| | | } |
| | | |
| | | public void setIssueTypeId(Long issueTypeId) { |
| | | this.issueTypeId = issueTypeId; |
| | | } |
| | | } |