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;
|
|
/**
|
* Create By J E O N G - S U N / 2019-05-22
|
*/
|
public class EventForm {
|
private Long id;
|
private String title;
|
private String description;
|
private Integer status;
|
private String startDate;
|
private String endDate;
|
private Boolean activation = Boolean.FALSE;
|
private List<Long> userIds = Lists.newArrayList();
|
private List<Long> removeIds = Lists.newArrayList();
|
|
public EventForm(){}
|
|
public static EventForm make(Map<String, Object> params) {
|
EventForm eventForm = ConvertUtil.convertMapToClass(params, EventForm.class);
|
|
if (MapUtil.getLongs(params, "userIds") != null) {
|
eventForm.setUserIds(MapUtil.getLongs(params, "userIds"));
|
}
|
|
if (MapUtil.getLongs(params, "removeIds") != null) {
|
eventForm.setRemoveIds(MapUtil.getLongs(params, "removeIds"));
|
}
|
|
return eventForm;
|
}
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public String getTitle() {
|
return title;
|
}
|
|
public void setTitle(String title) {
|
this.title = title;
|
}
|
|
public String getDescription() {
|
return description;
|
}
|
|
public void setDescription(String description) {
|
this.description = description;
|
}
|
|
public Integer getStatus() {
|
return status;
|
}
|
|
public void setStatus(Integer status) {
|
this.status = status;
|
}
|
|
public String getStartDate() {
|
return startDate;
|
}
|
|
public void setStartDate(String startDate) {
|
this.startDate = startDate;
|
}
|
|
public String getEndDate() {
|
return endDate;
|
}
|
|
public void setEndDate(String endDate) {
|
this.endDate = endDate;
|
}
|
|
public Boolean getActivation() {
|
return activation;
|
}
|
|
public void setActivation(Boolean activation) {
|
this.activation = activation;
|
}
|
|
public List<Long> getRemoveIds() {
|
return removeIds;
|
}
|
|
public void setRemoveIds(List<Long> removeIds) {
|
this.removeIds = removeIds;
|
}
|
|
public List<Long> getUserIds() {
|
return userIds;
|
}
|
|
public void setUserIds(List<Long> userIds) {
|
this.userIds = userIds;
|
}
|
}
|