OWL ITS + 탐지시스템(인터넷 진흥원)
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
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;
 
public class ProjectForm {
    private Long id;
    private Long parentProjectId;
    private String name;
    private String description;
    private String status;
    private String projectKey;
    private String startDate;
    private String endDate;
    private String projectType;
    private Long workspaceId;
    private List<Long> managerIds = Lists.newArrayList();
    private List<Long> removeIds = Lists.newArrayList();
    private List<Long> userIds = Lists.newArrayList();
    private List<Long> departmentIds = Lists.newArrayList();
 
    public ProjectForm() {
    }
 
    public static ProjectForm make(Map<String, Object> params) {
        ProjectForm form =  ConvertUtil.convertMapToClass(params, ProjectForm.class);
 
        if (MapUtil.getLongs(params, "managerIds") != null) {
            form.setManagerIds(MapUtil.getLongs(params, "managerIds"));
        }
 
        if (MapUtil.getLongs(params, "userIds") != null) {
            form.setUserIds(MapUtil.getLongs(params, "userIds"));
        }
 
        if (MapUtil.getLongs(params, "departmentIds") != null) {
            form.setDepartmentIds(MapUtil.getLongs(params, "departmentIds"));
        }
 
        if (MapUtil.getLongs(params, "removeIds") != null) {
            form.setRemoveIds(MapUtil.getLongs(params, "removeIds"));
        }
 
        if (form.getProjectKey() != null) {
            form.setProjectKey(form.getProjectKey().toUpperCase());
        }
 
        return form;
    }
 
    public Long getId() {
        return id;
    }
 
    public void setId(Long id) {
        this.id = id;
    }
 
    public Long getParentProjectId() {
        return this.parentProjectId;
    }
 
    public void setParentProjectId(Long id) {
        this.parentProjectId = id;
    }
 
    public String getName() {
        return name;
    }
 
    public void setName(String name) {
        this.name = name;
    }
 
    public String getDescription() {
        return description;
    }
 
    public void setDescription(String description) {
        this.description = description;
    }
 
    public String getStatus() {
        return status;
    }
 
    public void setStatus(String 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 String getProjectType() {
        return projectType;
    }
 
    public void setProjectType(String projectType) {
        this.projectType = projectType;
    }
 
    public List<Long> getManagerIds() {
        return managerIds;
    }
 
    public void setManagerIds(List<Long> managerIds) {
        this.managerIds = managerIds;
    }
 
    public String getProjectKey() {
        return projectKey;
    }
 
    public void setProjectKey(String projectKey) {
        this.projectKey = projectKey;
    }
 
    public Long getWorkspaceId() {
        return workspaceId;
    }
 
    public void setWorkspaceId(Long workspaceId) {
        this.workspaceId = workspaceId;
    }
 
    public List<Long> getUserIds() {
        return userIds;
    }
 
    public void setUserIds(List<Long> userIds) {
        this.userIds = userIds;
    }
 
    public List<Long> getRemoveIds() {
        return removeIds;
    }
 
    public void setRemoveIds(List<Long> removeIds) {
        this.removeIds = removeIds;
    }
 
    public void addRemoveIds(Long removeId) {
        this.removeIds.add(removeId);
    }
 
    public List<Long> getDepartmentIds() {
        return departmentIds;
    }
 
    public void setDepartmentIds(List<Long> departmentIds) {
        this.departmentIds = departmentIds;
    }
}