-
Notifications
You must be signed in to change notification settings - Fork 188
/
PrismContainerValueWrapper.java
86 lines (59 loc) · 2.67 KB
/
PrismContainerValueWrapper.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/*
* Copyright (c) 2010-2018 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.gui.api.prism.wrapper;
import java.util.List;
import com.evolveum.midpoint.prism.Containerable;
import com.evolveum.midpoint.prism.PrismContainerDefinition;
import com.evolveum.midpoint.prism.PrismContainerValue;
import com.evolveum.midpoint.prism.Referencable;
import com.evolveum.midpoint.prism.delta.ItemDelta;
import com.evolveum.midpoint.prism.path.ItemPath;
import com.evolveum.midpoint.util.exception.SchemaException;
import com.evolveum.midpoint.web.component.prism.ValueStatus;
import com.evolveum.midpoint.xml.ns._public.common.common_3.VirtualContainerItemSpecificationType;
/**
* @author katka
*
*/
public interface PrismContainerValueWrapper<C extends Containerable> extends PrismValueWrapper<C, PrismContainerValue<C>>{
String getDisplayName();
String getHelpText();
boolean isExpanded();
void setExpanded(boolean expanded);
boolean hasMetadata();
boolean isShowMetadata();
void setShowMetadata(boolean showMetadata);
boolean isSorted();
void setSorted(boolean sorted);
List<PrismContainerDefinition<C>> getChildContainers() throws SchemaException;
ValueStatus getStatus();
void setStatus(ValueStatus status);
<T extends Containerable> List<PrismContainerWrapper<T>> getContainers();
List<? extends ItemWrapper<?,?>> getNonContainers();
List<? extends ItemWrapper<?,?>> getItems();
<T extends Containerable> PrismContainerWrapper<T> findContainer(ItemPath path) throws SchemaException;
<X> PrismPropertyWrapper<X> findProperty(ItemPath propertyPath) throws SchemaException;
<R extends Referencable> PrismReferenceWrapper<R> findReference(ItemPath path) throws SchemaException;
<IW extends ItemWrapper> IW findItem(ItemPath path, Class<IW> type) throws SchemaException;
ItemPath getPath();
boolean isSelected();
boolean setSelected(boolean selected); //TODO why return boolean?
boolean isReadOnly();
void setReadOnly(boolean readOnly, boolean recursive);
@Deprecated
boolean hasChanged();
boolean isShowEmpty();
void setShowEmpty(boolean setShowEmpty);
//void sort();
<ID extends ItemDelta> void applyDelta(ID delta) throws SchemaException;
PrismContainerValue<C> getValueToAdd() throws SchemaException;
boolean isHeterogenous();
void setHeterogenous(boolean heterogenous);
void setVirtualContainerItems(List<VirtualContainerItemSpecificationType> virtualItems);
boolean isVirtual();
PrismContainerDefinition<C> getDefinition();
}