OWL ITS + 탐지시스템(인터넷 진흥원)
jhjang
2021-12-07 30ddd2cf095d2857ba1134fb3deaf51392ef1030
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
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 wisestone on 2018-05-28.
 */
public class CustomFieldForm {
    private Long id;
    private String name;
    private String customFieldType;
    private String defaultValue;
    private List<String> options = Lists.newArrayList();
    private Long workspaceId;
    private List<Long> removeIds = Lists.newArrayList();
    private String useFlag;
    private String requiredData;
 
    public CustomFieldForm(){}
 
    public static CustomFieldForm make(Map<String, Object> params) {
        CustomFieldForm form = ConvertUtil.convertMapToClass(params, CustomFieldForm.class);
 
        if (MapUtil.getLongs(params, "removeIds") != null) {
            form.setRemoveIds(MapUtil.getLongs(params, "removeIds"));
        }
 
        if (MapUtil.getStrings(params, "options") != null) {
            form.setOptions(MapUtil.getStrings(params, "options"));
        }
 
        if (MapUtil.getBoolean(params, "requiredData")) {
            form.setRequiredData("Y");
        }else {
            form.setRequiredData("N");
        }
        return form;
    }
 
    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 getCustomFieldType() {
        return customFieldType;
    }
 
    public void setCustomFieldType(String customFieldType) {
        this.customFieldType = customFieldType;
    }
 
    public String getDefaultValue() {
        return defaultValue;
    }
 
    public void setDefaultValue(String defaultValue) {
        this.defaultValue = defaultValue;
    }
 
    public Long getWorkspaceId() {
        return workspaceId;
    }
 
    public void setWorkspaceId(Long workspaceId) {
        this.workspaceId = workspaceId;
    }
 
    public List<Long> getRemoveIds() {
        return removeIds;
    }
 
    public void setRemoveIds(List<Long> removeIds) {
        this.removeIds = removeIds;
    }
 
    public List<String> getOptions() {
        return options;
    }
 
    public void setOptions(List<String> options) {
        this.options = options;
    }
 
    public void addRemoveIds(Long removeId) {
        this.removeIds.add(removeId);
    }
 
    public String getUseFlag() {
        return useFlag;
    }
 
    public void setUseFlag(String useFlag) {
        this.useFlag = useFlag;
    }
 
    public String getRequiredData() {
        return requiredData;
    }
 
    public void setRequiredData(String requiredData) {
        this.requiredData = requiredData;
    }
}