/
SearchItemDefinition.java
62 lines (49 loc) · 1.67 KB
/
SearchItemDefinition.java
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
/*
* Copyright (c) 2010-2019 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.web.component.search;
import java.io.Serializable;
import java.util.List;
import com.evolveum.midpoint.prism.ItemDefinition;
import com.evolveum.midpoint.prism.path.ItemPath;
import com.evolveum.midpoint.xml.ns._public.common.common_3.SearchItemType;
import com.evolveum.prism.xml.ns._public.types_3.PolyStringType;
public class SearchItemDefinition implements Serializable {
private ItemPath path;
private ItemDefinition def;
private SearchItemType predefinedFilter;
private PolyStringType displayName;
private List<?> allowedValues;
public SearchItemDefinition(ItemPath path, ItemDefinition def, List<?> allowedValues) {
this.path = path;
this.def = def;
this.allowedValues = allowedValues;
}
public SearchItemDefinition(SearchItemType predefinedFilter) {
this.predefinedFilter = predefinedFilter;
}
public ItemPath getPath() {
return path;
}
public ItemDefinition getDef() {
return def;
}
public List<?> getAllowedValues() {
return allowedValues;
}
public SearchItemType getPredefinedFilter() {
return predefinedFilter;
}
public void setPredefinedFilter(SearchItemType predefinedFilter) {
this.predefinedFilter = predefinedFilter;
}
public PolyStringType getDisplayName() {
return displayName;
}
public void setDisplayName(PolyStringType displayName) {
this.displayName = displayName;
}
}