Class PrismReferenceWrapperImpl<R extends Referencable>
java.lang.Object
com.evolveum.midpoint.gui.impl.prism.wrapper.ItemWrapperImpl<PrismReference,PrismReferenceValueWrapperImpl<R>>
com.evolveum.midpoint.gui.impl.prism.wrapper.PrismReferenceWrapperImpl<R>
- All Implemented Interfaces:
ItemWrapper<PrismReference,
,PrismReferenceValueWrapperImpl<R>> PrismReferenceWrapper<R>
,Definition
,Freezable
,ItemDefinition<PrismReference>
,PrismContextSensitive
,PrismItemAccessDefinition
,PrismReferenceDefinition
,Revivable
,SmartVisitable<Definition>
,Visitable<Definition>
,DebugDumpable
,Serializable
,Cloneable
public class PrismReferenceWrapperImpl<R extends Referencable>
extends ItemWrapperImpl<PrismReference,PrismReferenceValueWrapperImpl<R>>
implements PrismReferenceWrapper<R>
- Author:
- katka
- See Also:
-
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
ConstructorDescriptionPrismReferenceWrapperImpl
(PrismContainerValueWrapper<?> parent, PrismReference item, ItemStatus status) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(Visitor<Definition> visitor) boolean
accept
(Visitor<Definition> visitor, SmartVisitation<Definition> visitation) @NotNull PrismReferenceDefinition
clone()
protected PrismReferenceValue
createNewEmptyValue
(ModelServiceLocator locator) void
freeze()
@NotNull PrismReference
Create an item instance.@NotNull PrismReference
instantiate
(QName name) Create an item instance.boolean
boolean
isEmpty()
boolean
boolean
protected void
removeNotChangedStatusValue
(PrismReferenceValueWrapperImpl<R> valueWrapper, Item rawItem) void
setFilter
(ObjectFilter filter) void
setFilter
(BiFunction<PrismReferenceWrapper, PageBase, ObjectFilter> filterFunction) void
setOnlyForDeltaComputation
(boolean onlyForDeltaComputation) void
setPredefinedSearchItem
(Set<SearchItemType> searchItems) Returns complex type definition of item, if underlying value is possible structured.Methods inherited from class com.evolveum.midpoint.gui.impl.prism.wrapper.ItemWrapperImpl
add, addValueToDelta, adoptElementDefinitionFrom, canAdd, canBeDefinitionOf, canBeDefinitionOf, canModify, canRead, checkRequired, computeDeltaInternal, createEmptyDelta, debugDump, debugDumpShortToString, deepClone, findItemDefinition, findObjectStatus, findObjectWrapper, getAnnotation, getAnnotations, getDelta, getDeprecatedSince, getDiagrams, getDisplayName, getDisplayOrder, getDocumentation, getDocumentationPreview, getFormComponentValidator, getHelp, getItem, getItemName, getMaxOccurs, getMinOccurs, getOldItem, getParent, getParentContainerValue, getPath, getPlannedRemoval, getPrismContext, getProcessing, getRemovedSince, getSchemaMigrations, getStatus, getSubstitutionHead, getTypeClass, getTypeName, getValue, getValueEnumerationRef, getValues, getVisibleOverwrite, isAbstract, isColumn, isDeprecated, isDynamic, isElaborate, isEmphasized, isExperimental, isHeterogeneousListItem, isIgnored, isIndexOnly, isInherited, isMetadata, isOperational, isProcessProvenanceMetadata, isReadOnly, isRemoved, isRuntimeSchema, isShowEmpty, isShowInVirtualContainer, isShowMetadataDetails, isValidated, isValidFor, isVisible, isVisibleByVisibilityHandler, remove, removeAll, revive, setAnnotation, setColumn, setDisplayName, setDisplayOrder, setMetadata, setProcessProvenanceMetadata, setReadOnly, setShowEmpty, setShowInVirtualContainer, setShowMetadataDetails, setValidated, setVisibleOverwrite, toMutable
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, getDisplayName, getDisplayOrder, getDocumentation, getDocumentationPreview, getHelp, getMutabilityFlag, getPlannedRemoval, getProcessing, getRemovedSince, getSchemaMigrations, getSchemaRegistry, getTypeClass, getTypeName, isAbstract, isDeprecated, isElaborate, isEmphasized, isExperimental, isIgnored, isRemoved, 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, createEmptyDelta, debugDumpShortToString, deepClone, findItemDefinition, getItemName, getMaxOccurs, getMinOccurs, getSubstitutionHead, getValueEnumerationRef, isDynamic, isHeterogeneousListItem, isIndexOnly, isInherited, isMandatory, isMultiValue, isOperational, isOptional, isSearchable, isSingleValue, isValidFor, toMutable
Methods inherited from interface com.evolveum.midpoint.gui.api.prism.wrapper.ItemWrapper
add, checkRequired, debugDump, findObjectStatus, findObjectWrapper, getDelta, getFormComponentValidator, getItem, getParent, getParentContainerValue, getPath, getStatus, getValue, getValues, getVisibleOverwrite, isColumn, isMetadata, isProcessProvenanceMetadata, isReadOnly, isShowEmpty, isShowInVirtualContainer, isShowMetadataDetails, isValidated, isVisible, remove, removeAll, setColumn, setMetadata, setProcessProvenanceMetadata, setReadOnly, setShowEmpty, setShowInVirtualContainer, setShowMetadataDetails, setValidated, setVisibleOverwrite
Methods inherited from interface com.evolveum.midpoint.prism.PrismContextSensitive
getPrismContext
Methods inherited from interface com.evolveum.midpoint.prism.PrismItemAccessDefinition
canAdd, canModify, canRead
-
Constructor Details
-
PrismReferenceWrapperImpl
public PrismReferenceWrapperImpl(PrismContainerValueWrapper<?> parent, PrismReference item, ItemStatus status)
-
-
Method Details
-
getTargetTypeName
- Specified by:
getTargetTypeName
in interfacePrismReferenceDefinition
-
getCompositeObjectElementName
- Specified by:
getCompositeObjectElementName
in interfacePrismReferenceDefinition
-
isComposite
public boolean isComposite()- Specified by:
isComposite
in interfacePrismReferenceDefinition
-
clone
- Specified by:
clone
in interfaceDefinition
- Specified by:
clone
in interfaceItemDefinition<R extends Referencable>
- Specified by:
clone
in interfacePrismReferenceDefinition
- Overrides:
clone
in classItemWrapperImpl<PrismReference,
PrismReferenceValueWrapperImpl<R extends Referencable>>
-
instantiate
Description copied from interface:ItemDefinition
Create an item instance. Definition name or default name will be used as an element name for the instance. The instance will otherwise be empty.- Specified by:
instantiate
in interfaceItemDefinition<R extends Referencable>
- Specified by:
instantiate
in interfacePrismReferenceDefinition
- Overrides:
instantiate
in classItemWrapperImpl<PrismReference,
PrismReferenceValueWrapperImpl<R extends Referencable>>
-
instantiate
Description copied from interface:ItemDefinition
Create an item instance. Definition name will use provided name. for the instance. The instance will otherwise be empty.- Specified by:
instantiate
in interfaceItemDefinition<R extends Referencable>
- Specified by:
instantiate
in interfacePrismReferenceDefinition
- Overrides:
instantiate
in classItemWrapperImpl<PrismReference,
PrismReferenceValueWrapperImpl<R extends Referencable>>
-
getFilter
- Specified by:
getFilter
in interfacePrismReferenceWrapper<R extends Referencable>
-
setFilter
- Specified by:
setFilter
in interfacePrismReferenceWrapper<R extends Referencable>
-
setFilter
- Specified by:
setFilter
in interfacePrismReferenceWrapper<R extends Referencable>
-
getTargetTypes
- Specified by:
getTargetTypes
in interfacePrismReferenceWrapper<R extends Referencable>
-
getPredefinedSearchItem
- Specified by:
getPredefinedSearchItem
in interfacePrismReferenceWrapper<R extends Referencable>
-
setPredefinedSearchItem
- Specified by:
setPredefinedSearchItem
in interfacePrismReferenceWrapper<R extends Referencable>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceItemWrapper<PrismReference,
PrismReferenceValueWrapperImpl<R extends Referencable>> - Overrides:
isEmpty
in classItemWrapperImpl<PrismReference,
PrismReferenceValueWrapperImpl<R extends Referencable>>
-
isImmutable
public boolean isImmutable()- Specified by:
isImmutable
in interfaceFreezable
-
freeze
public void freeze() -
accept
- Specified by:
accept
in interfaceSmartVisitable<R extends Referencable>
- Returns:
- false if we already was here
-
accept
- Specified by:
accept
in interfaceVisitable<R extends Referencable>
-
removeNotChangedStatusValue
protected void removeNotChangedStatusValue(PrismReferenceValueWrapperImpl<R> valueWrapper, Item rawItem) - Overrides:
removeNotChangedStatusValue
in classItemWrapperImpl<PrismReference,
PrismReferenceValueWrapperImpl<R extends Referencable>>
-
createNewEmptyValue
- Specified by:
createNewEmptyValue
in classItemWrapperImpl<PrismReference,
PrismReferenceValueWrapperImpl<R extends Referencable>>
-
structuredType
Description copied from interface:ItemDefinition
Returns complex type definition of item, if underlying value is possible structured. NOTE: This seems weird, since properties and references are simple values, but actually object reference is serialized as structured value and some of properties are also.- Specified by:
structuredType
in interfaceItemDefinition<R extends Referencable>
- Overrides:
structuredType
in classItemWrapperImpl<PrismReference,
PrismReferenceValueWrapperImpl<R extends Referencable>>
-
setOnlyForDeltaComputation
public void setOnlyForDeltaComputation(boolean onlyForDeltaComputation) -
isOnlyForDeltaComputation
public boolean isOnlyForDeltaComputation()- Specified by:
isOnlyForDeltaComputation
in interfacePrismReferenceWrapper<R extends Referencable>
-