Class PrismObjectWrapperImpl<O extends ObjectType>
- java.lang.Object
-
- com.evolveum.midpoint.gui.impl.prism.wrapper.ItemWrapperImpl<PrismContainer<C>,PrismContainerValueWrapper<C>>
-
- com.evolveum.midpoint.gui.impl.prism.wrapper.PrismContainerWrapperImpl<O>
-
- com.evolveum.midpoint.gui.impl.prism.wrapper.PrismObjectWrapperImpl<O>
-
- All Implemented Interfaces:
ItemWrapper<PrismContainer<O>,PrismContainerValueWrapper<O>>
,PrismContainerWrapper<O>
,PrismObjectWrapper<O>
,Definition
,Freezable
,ItemDefinition<PrismContainer<O>>
,LocalItemDefinitionStore
,PrismContainerDefinition<O>
,PrismContextSensitive
,PrismItemAccessDefinition
,Revivable
,SmartVisitable<Definition>
,Visitable<Definition>
,DebugDumpable
,Serializable
,Cloneable
- Direct Known Subclasses:
ResourceWrapper
,ShadowWrapperImpl
public class PrismObjectWrapperImpl<O extends ObjectType> extends PrismContainerWrapperImpl<O> implements PrismObjectWrapper<O>
- Author:
- katka
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.PrismItemAccessDefinition
PrismItemAccessDefinition.Mutable
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description PrismObjectWrapperImpl(PrismObject<O> item, ItemStatus status)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
accept(Visitor<Definition> visitor)
boolean
accept(Visitor<Definition> visitor, SmartVisitation<Definition> visitation)
void
addShadowDelta(ReferenceDelta shadowRefDelta)
void
freeze()
String
getDisplayName()
Returns display name.PrismObject<O>
getObject()
PrismObject<O>
getObjectApplyDelta()
ObjectDelta<O>
getObjectDelta()
PrismObject<O>
getObjectOld()
String
getOid()
Deprecated.protected List<ReferenceDelta>
getShadowDeltas()
PrismObjectValueWrapper<O>
getValue()
boolean
isExpanded()
boolean
isImmutable()
-
Methods inherited from class com.evolveum.midpoint.gui.impl.prism.wrapper.PrismContainerWrapperImpl
canRepresent, clone, cloneVirtualContainerWithNewValue, cloneWithReplacedDefinition, createEmptyDelta, createNewEmptyValue, createValue, findContainer, findContainer, findContainerValue, findItem, findProperty, findReference, getCompileTimeClass, getComplexTypeDefinition, getDefinitions, getDelta, getDeltaPathForStatus, getIdentifier, getItemDefinition, getPropertyDefinitions, getSelectedChild, getTypeClass, isVirtual, isVisible, replaceDefinition, setExpanded, setIdentifier, setShowEmpty, setVirtual, toMutable
-
Methods inherited from class com.evolveum.midpoint.gui.impl.prism.wrapper.ItemWrapperImpl
add, addValueToDelta, adoptElementDefinitionFrom, canAdd, canBeDefinitionOf, canBeDefinitionOf, canModify, canRead, checkRequired, debugDump, debugDumpShortToString, deepClone, findItemDefinition, findObjectStatus, findObjectWrapper, getAnnotation, getAnnotations, getDeprecatedSince, getDiagrams, getDisplayOrder, getDocumentation, getDocumentationPreview, getFormComponentValidator, getHelp, getItem, getItemName, getMaxOccurs, getMinOccurs, getOldItem, getParent, getParentContainerValue, getPath, getPlannedRemoval, getPrismContext, getProcessing, getSchemaMigrations, getStatus, getSubstitutionHead, getTypeName, getValueEnumerationRef, getValues, getVisibleOverwrite, instantiate, instantiate, isAbstract, isColumn, isDeprecated, isDynamic, isElaborate, isEmphasized, isEmpty, isExperimental, isHeterogeneousListItem, isIgnored, isIndexOnly, isInherited, isMetadata, isOperational, isProcessProvenanceMetadata, isReadOnly, isRuntimeSchema, isShowEmpty, isShowInVirtualContainer, isShowMetadataDetails, isValidFor, isVisibleByVisibilityHandler, remove, removeAll, revive, setAnnotation, setColumn, setMetadata, setProcessProvenanceMetadata, setReadOnly, setShowInVirtualContainer, setShowMetadataDetails, setVisibleOverwrite, structuredType
-
Methods inherited from class java.lang.Object
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.prism.Definition
debugDump, getAnnotation, getAnnotations, getDeprecatedSince, getDiagrams, getDisplayOrder, getDocumentation, getDocumentationPreview, getHelp, getMutabilityFlag, getPlannedRemoval, getProcessing, getSchemaMigrations, getSchemaRegistry, getTypeName, isAbstract, isDeprecated, isElaborate, isEmphasized, isExperimental, isIgnored, isRuntimeSchema, setAnnotation
-
Methods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutable
-
Methods inherited from interface com.evolveum.midpoint.prism.ItemDefinition
adoptElementDefinitionFrom, canBeDefinitionOf, canBeDefinitionOf, debugDumpShortToString, deepClone, findItemDefinition, getItemName, getMaxOccurs, getMinOccurs, getSubstitutionHead, getValueEnumerationRef, instantiate, instantiate, isDynamic, isHeterogeneousListItem, isIndexOnly, isInherited, isMandatory, isMultiValue, isOperational, isOptional, isSingleValue, isValidFor
-
Methods inherited from interface com.evolveum.midpoint.gui.api.prism.wrapper.ItemWrapper
add, checkRequired, debugDump, findObjectStatus, findObjectWrapper, getDelta, getFormComponentValidator, getItem, getParent, getParentContainerValue, getPath, getValues, getVisibleOverwrite, isColumn, isEmpty, isMetadata, isProcessProvenanceMetadata, isReadOnly, isShowEmpty, isShowInVirtualContainer, isShowMetadataDetails, isVisible, remove, removeAll, setColumn, setMetadata, setProcessProvenanceMetadata, setReadOnly, setShowEmpty, setShowInVirtualContainer, setShowMetadataDetails, setVisibleOverwrite
-
Methods inherited from interface com.evolveum.midpoint.prism.LocalItemDefinitionStore
containsItemDefinition, findContainerDefinition, findItemDefinition, findItemDefinition, findLocalItemDefinition, findLocalItemDefinition, findPropertyDefinition, findReferenceDefinition
-
Methods inherited from interface com.evolveum.midpoint.prism.PrismContainerDefinition
canRepresent, clone, cloneWithReplacedDefinition, createEmptyDelta, createValue, getAlwaysUseForEquals, getCompileTimeClass, getComplexTypeDefinition, getDefinitions, getItemNames, getPropertyDefinitions, getTypeClass, isAlwaysUseForEquals, isCompletelyDefined, isEmpty, replaceDefinition, structuredType, toMutable
-
Methods inherited from interface com.evolveum.midpoint.gui.api.prism.wrapper.PrismContainerWrapper
cloneVirtualContainerWithNewValue, findContainer, findContainer, findContainerValue, findItem, findProperty, findReference, getIdentifier, getSelectedChild, getStatus, isVirtual, setExpanded, setIdentifier, setVirtual
-
Methods inherited from interface com.evolveum.midpoint.prism.PrismContextSensitive
getPrismContext
-
Methods inherited from interface com.evolveum.midpoint.prism.PrismItemAccessDefinition
canAdd, canModify, canRead
-
-
-
-
Constructor Detail
-
PrismObjectWrapperImpl
public PrismObjectWrapperImpl(PrismObject<O> item, ItemStatus status)
-
-
Method Detail
-
getObjectDelta
public ObjectDelta<O> getObjectDelta() throws SchemaException
- Specified by:
getObjectDelta
in interfacePrismObjectWrapper<O extends ObjectType>
- Throws:
SchemaException
-
addShadowDelta
public void addShadowDelta(ReferenceDelta shadowRefDelta)
-
getShadowDeltas
protected List<ReferenceDelta> getShadowDeltas()
-
getOid
@Deprecated public String getOid()
Deprecated.- Specified by:
getOid
in interfacePrismObjectWrapper<O extends ObjectType>
-
getObject
public PrismObject<O> getObject()
- Specified by:
getObject
in interfacePrismObjectWrapper<O extends ObjectType>
-
getObjectOld
public PrismObject<O> getObjectOld()
- Specified by:
getObjectOld
in interfacePrismObjectWrapper<O extends ObjectType>
-
getValue
public PrismObjectValueWrapper<O> getValue()
- Specified by:
getValue
in interfaceItemWrapper<PrismContainer<O extends ObjectType>,PrismContainerValueWrapper<O extends ObjectType>>
- Specified by:
getValue
in interfacePrismObjectWrapper<O extends ObjectType>
- Overrides:
getValue
in classItemWrapperImpl<PrismContainer<O extends ObjectType>,PrismContainerValueWrapper<O extends ObjectType>>
-
getDisplayName
public String getDisplayName()
Description copied from interface:Definition
Returns display name. Specifies the printable name of the object class or attribute. It must contain a printable string. It may also contain a key to catalog file. Returns null if no display name is set. Corresponds to "displayName" XSD annotation.- Specified by:
getDisplayName
in interfaceDefinition
- Overrides:
getDisplayName
in classItemWrapperImpl<PrismContainer<O extends ObjectType>,PrismContainerValueWrapper<O extends ObjectType>>
- Returns:
- display name string or catalog key
-
getObjectApplyDelta
public PrismObject<O> getObjectApplyDelta() throws SchemaException
- Specified by:
getObjectApplyDelta
in interfacePrismObjectWrapper<O extends ObjectType>
- Throws:
SchemaException
-
isImmutable
public boolean isImmutable()
- Specified by:
isImmutable
in interfaceFreezable
- Overrides:
isImmutable
in classPrismContainerWrapperImpl<O extends ObjectType>
-
freeze
public void freeze()
- Specified by:
freeze
in interfaceFreezable
- Overrides:
freeze
in classPrismContainerWrapperImpl<O extends ObjectType>
-
accept
public boolean accept(Visitor<Definition> visitor, SmartVisitation<Definition> visitation)
- Specified by:
accept
in interfaceSmartVisitable<O extends ObjectType>
- Overrides:
accept
in classPrismContainerWrapperImpl<O extends ObjectType>
- Returns:
- false if we already was here
-
accept
public void accept(Visitor<Definition> visitor)
- Specified by:
accept
in interfaceVisitable<O extends ObjectType>
- Overrides:
accept
in classPrismContainerWrapperImpl<O extends ObjectType>
-
isExpanded
public boolean isExpanded()
- Specified by:
isExpanded
in interfacePrismContainerWrapper<O extends ObjectType>
- Overrides:
isExpanded
in classPrismContainerWrapperImpl<O extends ObjectType>
-
-