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.ArrayList;
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* Created by jeong on 2018-01-01.
|
*/
|
public class UserCondition {
|
private Long id;
|
private String name;
|
private String account;
|
private String email;
|
private String phone;
|
private String deep; // 상세 조회에서 가져올 데이터의 종류를 결정한다.
|
private List<String> statuses = Lists.newArrayList();
|
private Long projectId;
|
private List<Long> excludeIds = Lists.newArrayList();
|
private Integer page;
|
private Integer pageSize;
|
private Long loginUserId;
|
private Long workspaceId;
|
// private Integer permission;
|
private String licensekey;
|
|
public static UserCondition make(Map<String, Object> conditions) {
|
UserCondition condition = ConvertUtil.convertMapToClass(conditions, UserCondition.class);
|
condition.setStatuses(MapUtil.getStrings(conditions, "statuses"));
|
condition.setExcludeIds(MapUtil.getLongs(conditions, "excludeIds"));
|
|
return condition;
|
}
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public String getAccount() {
|
return account;
|
}
|
|
public void setAccount(String account) {
|
this.account = account;
|
}
|
|
public String getEmail() {
|
return email;
|
}
|
|
public void setEmail(String email) {
|
this.email = email;
|
}
|
|
public String getPhone() {
|
return phone;
|
}
|
|
public void setPhone(String phone) {
|
this.phone = phone;
|
}
|
|
public List<String> getStatuses() {
|
return statuses;
|
}
|
|
public void setStatuses(List<String> statuses) {
|
this.statuses = statuses;
|
}
|
|
public Long getProjectId() {
|
return projectId;
|
}
|
|
public void setProjectId(Long projectId) {
|
this.projectId = projectId;
|
}
|
|
public List<Long> getExcludeIds() {
|
return excludeIds;
|
}
|
|
public void setExcludeIds(List<Long> excludeIds) {
|
this.excludeIds = excludeIds;
|
}
|
|
public void addExcludeIds(Long excludeId) {
|
this.excludeIds.add(excludeId);
|
}
|
|
public Integer getPage() {
|
return page;
|
}
|
|
public void setPage(Integer page) {
|
this.page = page;
|
}
|
|
public Integer getPageSize() {
|
return pageSize;
|
}
|
|
public void setPageSize(Integer pageSize) {
|
this.pageSize = pageSize;
|
}
|
|
public Long getLoginUserId() {
|
return loginUserId;
|
}
|
|
public void setLoginUserId(Long loginUserId) {
|
this.loginUserId = loginUserId;
|
}
|
|
public Long getWorkspaceId() {
|
return workspaceId;
|
}
|
|
public void setWorkspaceId(Long workspaceId) {
|
this.workspaceId = workspaceId;
|
}
|
|
public String getDeep() {
|
return deep;
|
}
|
|
public void setDeep(String deep) {
|
this.deep = deep;
|
}
|
|
// public Integer getPermission() {
|
// return permission;
|
// }
|
//
|
// public void setPermission(Integer permission) {
|
// this.permission = permission;
|
// }
|
|
public String getLicensekey() {
|
return licensekey;
|
}
|
|
public void setLicensekey(String licensekey) {
|
this.licensekey = licensekey;
|
}
|
|
|
}
|