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 jeong on 2017-12-30.
|
*/
|
public class DepartmentForm {
|
private Long id;
|
private String departmentName;
|
private String departmentDescription;
|
private Long departmentCount;
|
private List<Long> removeIds = Lists.newArrayList();
|
|
public DepartmentForm() {
|
}
|
|
public static DepartmentForm make(Map<String, Object> params) {
|
DepartmentForm form = ConvertUtil.convertMapToClass(params, DepartmentForm.class);
|
|
if (MapUtil.getLongs(params,"removeIds") != null) {
|
form.setRemoveIds(MapUtil.getLongs(params, "removeIds"));
|
}
|
return form;
|
}
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public String getDepartmentName() {
|
return departmentName;
|
}
|
|
public void setDepartmentName(String departmentName) {
|
this.departmentName = departmentName;
|
}
|
|
public String getDepartmentDescription() {
|
return departmentDescription;
|
}
|
|
public void setDepartmentDescription(String departmentDescription) {
|
this.departmentDescription = departmentDescription;
|
}
|
|
public Long getDepartmentCount() {
|
return departmentCount;
|
}
|
|
public void setDepartmentCount(Long departmentCount) {
|
this.departmentCount = departmentCount;
|
}
|
|
public List<Long> getRemoveIds() {
|
return removeIds;
|
}
|
|
public void setRemoveIds(List<Long> removeIds) {
|
this.removeIds = removeIds;
|
}
|
}
|