Class PrismContainerValueWrapperImpl<C extends Containerable>
java.lang.Object
com.evolveum.midpoint.gui.impl.prism.wrapper.PrismValueWrapperImpl<C>
com.evolveum.midpoint.gui.impl.prism.wrapper.PrismContainerValueWrapperImpl<C>
- All Implemented Interfaces:
PrismContainerValueWrapper<C>
,PrismValueWrapper<C>
,DebugDumpable
,SelectableRow<C>
,Serializable
- Direct Known Subclasses:
AssignmentValueWrapperImpl
,AttributeMappingValueWrapper
,ConstructionValueWrapper
,PrismObjectValueWrapperImpl
,ProfilingClassLoggerContainerValueWrapperImpl
public class PrismContainerValueWrapperImpl<C extends Containerable>
extends PrismValueWrapperImpl<C>
implements PrismContainerValueWrapper<C>
- Author:
- katka
- See Also:
-
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
Constructor Summary
ConstructorDescriptionPrismContainerValueWrapperImpl
(PrismContainerWrapper<C> parent, PrismContainerValue<C> pcv, ValueStatus status) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addItem
(ItemWrapper<?, ?> newItem) void
addItems
(Collection<ItemWrapper<?, ?>> newItems) <ID extends ItemDelta>
voidapplyDelta
(ID delta) void
protected void
collectExtensionItems
(ItemWrapper<?, ?> item, boolean containers, List<? extends ItemWrapper<?, ?>> itemWrappers) debugDump
(int indent) <T extends Containerable>
PrismContainerWrapper<T>findContainer
(ItemPath path) <T extends Containerable>
PrismContainerWrapper<T>findContainer
(String identifier) <T extends Containerable>
PrismContainerValueWrapper<T>findContainerValue
(ItemPath path) <IW extends ItemWrapper>
IW<IW extends ItemWrapper>
IW<X> PrismPropertyWrapper<X>
findProperty
(ItemPath propertyPath) <R extends Referencable>
PrismReferenceWrapper<R>findReference
(ItemPath path) List<PrismContainerWrapper<? extends Containerable>>
List<PrismContainerWrapper<? extends Containerable>>
getContainers
(ContainerPanelConfigurationType config, ModelServiceLocator modelServiceLocal) Collection<ItemDelta<?,
?>> List<ItemWrapper<?,
?>> getItems()
List<ItemWrapper<?,
?>> getPath()
getPreconditionDeltas
(ModelServiceLocator serviceLocator, OperationResult result) Collect processor with deltas and consumer, that should be processed before basic deltas of showed objectPrismContainerWrapper<? extends Containerable>
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isSorted()
boolean
boolean
void
replaceContainerItemValue
(PrismContainerValue<C> newValue) void
setExpanded
(boolean expanded) void
setHeterogenous
(boolean heterogenous) void
setMetadata
(boolean metadata) void
setReadOnly
(boolean readOnly, boolean recursive) void
setRealValue
(C realValue) void
setSelected
(boolean selected) void
setShowEmpty
(boolean showEmpty) void
setShowMetadata
(boolean showMetadata) void
setSorted
(boolean sorted) void
setVirtualContainerItems
(List<VirtualContainerItemSpecificationType> virtualItems) int
size()
Methods inherited from class com.evolveum.midpoint.gui.impl.prism.wrapper.PrismValueWrapperImpl
addToDelta, getNewValueWithMetadataApplied, getParent, getParentContainerValue, getRealValue, getStatus, getValueMetadata, isChanged, setNewValue, setStatus, setValueMetadata, toShortString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
Methods inherited from interface com.evolveum.midpoint.gui.api.prism.wrapper.PrismContainerValueWrapper
getStatus, setStatus
Methods inherited from interface com.evolveum.midpoint.gui.api.prism.wrapper.PrismValueWrapper
addToDelta, getParent, getParentContainerValue, getRealValue, getValueMetadata, setValueMetadata, toShortString
-
Constructor Details
-
PrismContainerValueWrapperImpl
public PrismContainerValueWrapperImpl(PrismContainerWrapper<C> parent, PrismContainerValue<C> pcv, ValueStatus status)
-
-
Method Details
-
getValueToAdd
- Specified by:
getValueToAdd
in interfacePrismContainerValueWrapper<C extends Containerable>
- Throws:
SchemaException
-
applyDelta
- Specified by:
applyDelta
in interfacePrismContainerValueWrapper<C extends Containerable>
- Throws:
SchemaException
-
setRealValue
- Specified by:
setRealValue
in interfacePrismValueWrapper<C extends Containerable>
-
replaceContainerItemValue
- Specified by:
replaceContainerItemValue
in interfacePrismContainerValueWrapper<C extends Containerable>
-
getDisplayName
- Specified by:
getDisplayName
in interfacePrismContainerValueWrapper<C extends Containerable>
-
getHelpText
- Specified by:
getHelpText
in interfacePrismContainerValueWrapper<C extends Containerable>
-
isExpanded
public boolean isExpanded()- Specified by:
isExpanded
in interfacePrismContainerValueWrapper<C extends Containerable>
-
setExpanded
public void setExpanded(boolean expanded) - Specified by:
setExpanded
in interfacePrismContainerValueWrapper<C extends Containerable>
-
getItems
- Specified by:
getItems
in interfacePrismContainerValueWrapper<C extends Containerable>
-
isShowMetadata
public boolean isShowMetadata()- Specified by:
isShowMetadata
in interfacePrismValueWrapper<C extends Containerable>
- Overrides:
isShowMetadata
in classPrismValueWrapperImpl<C extends Containerable>
-
setShowMetadata
public void setShowMetadata(boolean showMetadata) - Specified by:
setShowMetadata
in interfacePrismValueWrapper<C extends Containerable>
- Overrides:
setShowMetadata
in classPrismValueWrapperImpl<C extends Containerable>
-
isSorted
public boolean isSorted()- Specified by:
isSorted
in interfacePrismContainerValueWrapper<C extends Containerable>
-
setSorted
public void setSorted(boolean sorted) - Specified by:
setSorted
in interfacePrismContainerValueWrapper<C extends Containerable>
-
isHeterogenous
public boolean isHeterogenous()- Specified by:
isHeterogenous
in interfacePrismContainerValueWrapper<C extends Containerable>
-
setHeterogenous
public void setHeterogenous(boolean heterogenous) - Specified by:
setHeterogenous
in interfacePrismContainerValueWrapper<C extends Containerable>
-
getChildContainers
- Specified by:
getChildContainers
in interfacePrismContainerValueWrapper<C extends Containerable>
- Throws:
SchemaException
-
getContainers
- Specified by:
getContainers
in interfacePrismContainerValueWrapper<C extends Containerable>
-
getContainers
public List<PrismContainerWrapper<? extends Containerable>> getContainers(ContainerPanelConfigurationType config, ModelServiceLocator modelServiceLocal) - Specified by:
getContainers
in interfacePrismContainerValueWrapper<C extends Containerable>
-
getNonContainers
- Specified by:
getNonContainers
in interfacePrismContainerValueWrapper<C extends Containerable>
-
collectExtensionItems
protected void collectExtensionItems(ItemWrapper<?, ?> item, boolean containers, List<? extends ItemWrapper<?, ?>> itemWrappers) -
findContainer
public <T extends Containerable> PrismContainerWrapper<T> findContainer(ItemPath path) throws SchemaException - Specified by:
findContainer
in interfacePrismContainerValueWrapper<C extends Containerable>
- Throws:
SchemaException
-
findContainer
- Specified by:
findContainer
in interfacePrismContainerValueWrapper<C extends Containerable>
-
findContainerValue
- Specified by:
findContainerValue
in interfacePrismContainerValueWrapper<C extends Containerable>
-
findItem
- Specified by:
findItem
in interfacePrismContainerValueWrapper<C extends Containerable>
- Throws:
SchemaException
-
findItem
- Specified by:
findItem
in interfacePrismContainerValueWrapper<C extends Containerable>
- Throws:
SchemaException
-
findProperty
- Specified by:
findProperty
in interfacePrismContainerValueWrapper<C extends Containerable>
- Throws:
SchemaException
-
findReference
public <R extends Referencable> PrismReferenceWrapper<R> findReference(ItemPath path) throws SchemaException - Specified by:
findReference
in interfacePrismContainerValueWrapper<C extends Containerable>
- Throws:
SchemaException
-
getPath
- Specified by:
getPath
in interfacePrismContainerValueWrapper<C extends Containerable>
-
isSelected
public boolean isSelected()- Specified by:
isSelected
in interfacePrismContainerValueWrapper<C extends Containerable>
- Specified by:
isSelected
in interfaceSelectableRow<C extends Containerable>
-
setSelected
public void setSelected(boolean selected) - Specified by:
setSelected
in interfacePrismContainerValueWrapper<C extends Containerable>
- Specified by:
setSelected
in interfaceSelectableRow<C extends Containerable>
-
hasChanged
public boolean hasChanged()- Specified by:
hasChanged
in interfacePrismContainerValueWrapper<C extends Containerable>
-
debugDump
- Specified by:
debugDump
in interfaceDebugDumpable
- Overrides:
debugDump
in classPrismValueWrapperImpl<C extends Containerable>
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnly
in interfacePrismContainerValueWrapper<C extends Containerable>
-
setReadOnly
public void setReadOnly(boolean readOnly, boolean recursive) - Specified by:
setReadOnly
in interfacePrismContainerValueWrapper<C extends Containerable>
-
isShowEmpty
public boolean isShowEmpty()- Specified by:
isShowEmpty
in interfacePrismContainerValueWrapper<C extends Containerable>
-
setShowEmpty
public void setShowEmpty(boolean showEmpty) - Specified by:
setShowEmpty
in interfacePrismContainerValueWrapper<C extends Containerable>
-
setVirtualContainerItems
- Specified by:
setVirtualContainerItems
in interfacePrismContainerValueWrapper<C extends Containerable>
-
getVirtualItems
- Specified by:
getVirtualItems
in interfacePrismContainerValueWrapper<C extends Containerable>
-
isVirtual
public boolean isVirtual()- Specified by:
isVirtual
in interfacePrismContainerValueWrapper<C extends Containerable>
-
isMetadata
public boolean isMetadata()- Specified by:
isMetadata
in interfacePrismContainerValueWrapper<C extends Containerable>
-
setMetadata
public void setMetadata(boolean metadata) - Specified by:
setMetadata
in interfacePrismContainerValueWrapper<C extends Containerable>
-
isVisible
public boolean isVisible()- Specified by:
isVisible
in interfacePrismValueWrapper<C extends Containerable>
- Overrides:
isVisible
in classPrismValueWrapperImpl<C extends Containerable>
-
getNewValue
- Specified by:
getNewValue
in interfacePrismContainerValueWrapper<C extends Containerable>
- Specified by:
getNewValue
in interfacePrismValueWrapper<C extends Containerable>
- Overrides:
getNewValue
in classPrismValueWrapperImpl<C extends Containerable>
-
getOldValue
- Specified by:
getOldValue
in interfacePrismValueWrapper<C extends Containerable>
- Overrides:
getOldValue
in classPrismValueWrapperImpl<C extends Containerable>
-
getDefinition
- Specified by:
getDefinition
in interfacePrismContainerValueWrapper<C extends Containerable>
-
getSelectedChild
- Specified by:
getSelectedChild
in interfacePrismContainerValueWrapper<C extends Containerable>
-
clearItems
public void clearItems()- Specified by:
clearItems
in interfacePrismContainerValueWrapper<C extends Containerable>
-
addItem
- Specified by:
addItem
in interfacePrismContainerValueWrapper<C extends Containerable>
-
addItems
- Specified by:
addItems
in interfacePrismContainerValueWrapper<C extends Containerable>
-
size
public int size()- Specified by:
size
in interfacePrismContainerValueWrapper<C extends Containerable>
-
getContainerValueApplyDelta
- Specified by:
getContainerValueApplyDelta
in interfacePrismContainerValueWrapper<C extends Containerable>
- Throws:
SchemaException
-
getDeltas
- Specified by:
getDeltas
in interfacePrismContainerValueWrapper<C extends Containerable>
- Throws:
SchemaException
-
getPreconditionDeltas
public Collection<ExecutedDeltaPostProcessor> getPreconditionDeltas(ModelServiceLocator serviceLocator, OperationResult result) throws CommonException Description copied from interface:PrismValueWrapper
Collect processor with deltas and consumer, that should be processed before basic deltas of showed object- Specified by:
getPreconditionDeltas
in interfacePrismValueWrapper<C extends Containerable>
- Overrides:
getPreconditionDeltas
in classPrismValueWrapperImpl<C extends Containerable>
- Throws:
CommonException
-