OWL ITS + 탐지시스템(인터넷 진흥원)
이민희
2022-03-17 916a3cbabe4e50062fce61ff6f2f5d46c05dfbd1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
package kr.wisestone.owl.web.condition;
 
import com.google.common.collect.Lists;
import kr.wisestone.owl.domain.enumType.CustomFieldType;
import kr.wisestone.owl.domain.enumType.IssueStatusType;
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-05-28.
 */
public class CustomFieldCondition {
    private Long id;
    private String name;
    private Integer page;
    private Integer pageSize;
    private Long workspaceId;
    private List<CustomFieldType> customFieldTypes = Lists.newArrayList();
    private String deep;    //  상세 조회에서 가져올 데이터의 종류를 결정한다.
 
    public CustomFieldCondition(){}
 
    public static CustomFieldCondition make(Map<String, Object> conditions) {
        CustomFieldCondition condition = ConvertUtil.convertMapToClass(conditions, CustomFieldCondition.class);
 
        if (MapUtil.getStrings(conditions, "customFieldTypes") != null) {
            for (String customFieldTypeString : MapUtil.getStrings(conditions, "customFieldTypes")) {
                CustomFieldType customFieldType = CustomFieldType.valueOf(customFieldTypeString);
 
                if (customFieldType != null) {
                    condition.addCustomFieldTypes(customFieldType);
                }
            }
        }
 
        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 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 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 List<CustomFieldType> getCustomFieldTypes() {
        return customFieldTypes;
    }
 
    public void setCustomFieldTypes(List<CustomFieldType> customFieldTypes) {
        this.customFieldTypes = customFieldTypes;
    }
 
    public void addCustomFieldTypes(CustomFieldType customFieldType) {
        this.customFieldTypes.add(customFieldType);
    }
}