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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
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.List;
import java.util.Map;
 
/**
 * Created by wisestone on 2018-01-02.
 */
public class ProjectCondition {
    private Long id;
    private Long parentProjectId;
    private String name;
    private Integer page;
    private Integer pageSize;
    private Long loginUserId;
    private Long workspaceId;
    private String projectType;
    private Boolean workspaceManager = Boolean.FALSE;   //  프로젝트 목록 조회에서 조회 요청할 경우 업무 공간 담당자는 모든 프로젝트 목록이 표시되어야한다.
    private String deep;    //  상세 조회에서 가져올 데이터의 종류를 결정한다.
    private List<String> statuses = Lists.newArrayList();
    private List<String> roleTypes = Lists.newArrayList();  //  프로젝트 관리자, 일반 참여자를 구분해서 가져온다.
    private List<Long> excludeIds = Lists.newArrayList();
    private List<Long> userIds = Lists.newArrayList();
    private List<Long> departmentIds = Lists.newArrayList();
    private List<Long> myDepartmentIds; // 내가 속해있는 부서 ID
    private Long issueTypeId;
 
    public ProjectCondition(){}
 
    public ProjectCondition(Long id, Long loginUserId){
        this.id = id;
        this.loginUserId = loginUserId;
    }
 
    public static ProjectCondition make(Map<String, Object> conditions) {
        ProjectCondition condition = ConvertUtil.convertMapToClass(conditions, ProjectCondition.class);
        if (MapUtil.getStrings(conditions, "statuses") != null) {
            condition.setStatuses(MapUtil.getStrings(conditions, "statuses"));
        }
 
        if (MapUtil.getStrings(conditions, "roleTypes") != null) {
            condition.setRoleTypes(MapUtil.getStrings(conditions, "roleTypes"));
        }
 
        if (MapUtil.getLongs(conditions, "excludeIds") != null) {
            condition.setExcludeIds(MapUtil.getLongs(conditions, "excludeIds"));
        }
 
        if (MapUtil.getLongs(conditions, "userIds") != null) {
            condition.setUserIds(MapUtil.getLongs(conditions, "userIds"));
        }
 
        if (MapUtil.getLongs(conditions, "departmentIds") != null) {
            condition.setDepartmentIds(MapUtil.getLongs(conditions, "departmentIds"));
        }
 
        if (MapUtil.getLong(conditions, "issueTypeId") != null) {
            condition.setIssueTypeId(MapUtil.getLong(conditions, "issueTypeId"));
        }
 
        return condition;
    }
 
    public Long getId() {
        return id;
    }
 
    public void setId(Long id) {
        this.id = id;
    }
 
    public Long getParentProjectId() {
        return parentProjectId;
    }
 
    public void setParentProjectId(Long id) {
        this.parentProjectId = 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 getLoginUserId() {
        return loginUserId;
    }
 
    public void setLoginUserId(Long loginUserId) {
        this.loginUserId = loginUserId;
    }
 
    public List<String> getStatuses() {
        return statuses;
    }
 
    public void setStatuses(List<String> statuses) {
        this.statuses = statuses;
    }
 
    public List<Long> getExcludeIds() {
        return excludeIds;
    }
 
    public void setExcludeIds(List<Long> excludeIds) {
        this.excludeIds = excludeIds;
    }
 
    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 String getDeep() {
        return deep;
    }
 
    public void setDeep(String deep) {
        this.deep = deep;
    }
 
    public List<String> getRoleTypes() {
        return roleTypes;
    }
 
    public void setRoleTypes(List<String> roleTypes) {
        this.roleTypes = roleTypes;
    }
 
    public String getProjectType() {
        return projectType;
    }
 
    public void setProjectType(String projectType) {
        this.projectType = projectType;
    }
 
    public Boolean getWorkspaceManager() {
        return workspaceManager;
    }
 
    public void setWorkspaceManager(Boolean workspaceManager) {
        this.workspaceManager = workspaceManager;
    }
 
    public List<Long> getDepartmentIds() {
        return departmentIds;
    }
 
    public void setDepartmentIds(List<Long> departmentIds) {
        this.departmentIds = departmentIds;
    }
 
    public List<Long> getMyDepartmentIds() {
        return myDepartmentIds;
    }
 
    public void setMyDepartmentIds(List<Long> myDepartmentIds) {
        this.myDepartmentIds = myDepartmentIds;
    }
 
    public Long getIssueTypeId() {
        return issueTypeId;
    }
 
    public void setIssueTypeId(Long issueTypeId) {
        this.issueTypeId = issueTypeId;
    }
}