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
,ConstructionValueWrapper
,PrismObjectValueWrapperImpl
,ProfilingClassLoggerContainerValueWrapperImpl
,ResourceAttributeMappingValueWrapper
public class PrismContainerValueWrapperImpl<C extends Containerable> extends PrismValueWrapperImpl<C> implements PrismContainerValueWrapper<C>
- Author:
- katka
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description PrismContainerValueWrapperImpl(PrismContainerWrapper<C> parent, PrismContainerValue<C> pcv, ValueStatus status)
-
Method Summary
-
Methods inherited from class com.evolveum.midpoint.gui.impl.prism.wrapper.PrismValueWrapperImpl
addToDelta, getParent, getParentContainerValue, getRealValue, getStatus, getValueMetadata, isChanged, 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 Detail
-
PrismContainerValueWrapperImpl
public PrismContainerValueWrapperImpl(PrismContainerWrapper<C> parent, PrismContainerValue<C> pcv, ValueStatus status)
-
-
Method Detail
-
getValueToAdd
public PrismContainerValue<C> getValueToAdd() throws SchemaException
- Specified by:
getValueToAdd
in interfacePrismContainerValueWrapper<C extends Containerable>
- Throws:
SchemaException
-
applyDelta
public <ID extends ItemDelta> void applyDelta(ID delta) throws SchemaException
- Specified by:
applyDelta
in interfacePrismContainerValueWrapper<C extends Containerable>
- Throws:
SchemaException
-
setRealValue
public void setRealValue(C realValue)
- Specified by:
setRealValue
in interfacePrismValueWrapper<C extends Containerable>
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfacePrismContainerValueWrapper<C extends Containerable>
-
getHelpText
public String 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
public List<ItemWrapper<?,?>> getItems()
- Specified by:
getItems
in interfacePrismContainerValueWrapper<C extends Containerable>
-
addItem
public void addItem(ItemWrapper<?,?> newItem)
- Specified by:
addItem
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
public List<PrismContainerDefinition<C>> getChildContainers() throws SchemaException
- Specified by:
getChildContainers
in interfacePrismContainerValueWrapper<C extends Containerable>
- Throws:
SchemaException
-
getContainers
public List<PrismContainerWrapper<? extends Containerable>> 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
public List<ItemWrapper<?,?>> 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
public <T extends Containerable> PrismContainerWrapper<T> findContainer(String identifier)
- Specified by:
findContainer
in interfacePrismContainerValueWrapper<C extends Containerable>
-
findItem
public <IW extends ItemWrapper> IW findItem(ItemPath path) throws SchemaException
- Specified by:
findItem
in interfacePrismContainerValueWrapper<C extends Containerable>
- Throws:
SchemaException
-
findItem
public <IW extends ItemWrapper> IW findItem(ItemPath path, Class<IW> type) throws SchemaException
- Specified by:
findItem
in interfacePrismContainerValueWrapper<C extends Containerable>
- Throws:
SchemaException
-
findProperty
public <X> PrismPropertyWrapper<X> findProperty(ItemPath propertyPath) throws SchemaException
- 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
public ItemPath 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
public String debugDump(int indent)
- 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
public void setVirtualContainerItems(List<VirtualContainerItemSpecificationType> virtualItems)
- Specified by:
setVirtualContainerItems
in interfacePrismContainerValueWrapper<C extends Containerable>
-
getVirtualItems
public List<VirtualContainerItemSpecificationType> 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
public PrismContainerValue<C> 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
public PrismContainerValue<C> getOldValue()
- Specified by:
getOldValue
in interfacePrismValueWrapper<C extends Containerable>
- Overrides:
getOldValue
in classPrismValueWrapperImpl<C extends Containerable>
-
getDefinition
public PrismContainerDefinition<C> getDefinition()
- Specified by:
getDefinition
in interfacePrismContainerValueWrapper<C extends Containerable>
-
getSelectedChild
public PrismContainerWrapper<? extends Containerable> getSelectedChild()
- Specified by:
getSelectedChild
in interfacePrismContainerValueWrapper<C extends Containerable>
-
clearItems
public void clearItems()
- Specified by:
clearItems
in interfacePrismContainerValueWrapper<C extends Containerable>
-
addItems
public void addItems(Collection<ItemWrapper<?,?>> newItems)
- Specified by:
addItems
in interfacePrismContainerValueWrapper<C extends Containerable>
-
size
public int size()
- Specified by:
size
in interfacePrismContainerValueWrapper<C extends Containerable>
-
getContainerValueApplyDelta
public PrismContainerValue<C> getContainerValueApplyDelta() throws SchemaException
- Specified by:
getContainerValueApplyDelta
in interfacePrismContainerValueWrapper<C extends Containerable>
- Throws:
SchemaException
-
-