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>
,LivePrismItemDefinition
,PrismItemAccessDefinition
,PrismItemBasicDefinition
,PrismItemStorageDefinition
,PrismLifecycleDefinition
,PrismPresentationDefinition
,PrismReferenceDefinition
,Revivable
,SchemaLookup.Aware
,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.Definition
Definition.DefinitionBuilder, Definition.DefinitionMutator
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.ItemDefinition
ItemDefinition.ItemDefinitionLikeBuilder, ItemDefinition.ItemDefinitionMutator
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.PrismItemAccessDefinition
PrismItemAccessDefinition.Data, PrismItemAccessDefinition.Delegable, PrismItemAccessDefinition.Info, PrismItemAccessDefinition.Mutable
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.PrismItemBasicDefinition
PrismItemBasicDefinition.Data, PrismItemBasicDefinition.Delegable, PrismItemBasicDefinition.Mutable
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.PrismItemStorageDefinition
PrismItemStorageDefinition.Mutable
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.PrismLifecycleDefinition
PrismLifecycleDefinition.Data, PrismLifecycleDefinition.Delegable, PrismLifecycleDefinition.Mutable
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.PrismPresentationDefinition
PrismPresentationDefinition.Data, PrismPresentationDefinition.Delegable, PrismPresentationDefinition.Mutable
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.PrismReferenceDefinition
PrismReferenceDefinition.PrismReferenceDefinitionBuilder, PrismReferenceDefinition.PrismReferenceDefinitionMutator
-
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()
@NotNull ItemDefinition<PrismReference>
cloneWithNewName
(@NotNull ItemName itemName) Returns a clone of this definition, but with name changed to the provided one.protected PrismReferenceValue
createNewEmptyValue
(ModelServiceLocator locator) void
freeze()
@Nullable SchemaContextDefinition
@NotNull PrismReference
Create an item instance.@NotNull PrismReference
instantiate
(QName name) Create an item instance.boolean
boolean
isEmpty()
boolean
This is XSD annotation that specifies whether a property should be indexed in the storage.boolean
mutator()
Returns an interface to mutate this definition.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, canAdd, canModify, canRead, checkRequired, computeDeltaInternal, createEmptyDelta, debugDump, debugDumpShortToString, deepClone, findItemDefinition, findObjectStatus, findObjectWrapper, getAnnotation, getAnnotations, getDelta, getDeprecatedSince, getDiagrams, getDisplayHint, getDisplayName, getDisplayOrder, getDocumentation, getDocumentationPreview, getFormComponentValidator, getHelp, getItem, getItemName, getMaxOccurs, getMergerIdentifier, getMergerInstance, getMinOccurs, getNaturalKeyConstituents, getNaturalKeyInstance, getOldItem, getParent, getParentContainerValue, getPath, getPlannedRemoval, getPreconditionDeltas, getProcessing, getRemovedSince, getSchemaMigrations, getStatus, getSubstitutionHead, getTypeClass, getTypeName, getValue, getValueEnumerationRef, getValues, getVisibleOverwrite, isAbstract, isAlwaysUseForEquals, isColumn, isDeprecated, isDynamic, isElaborate, isEmphasized, isExperimental, isHeterogeneousListItem, isIgnored, isIndexOnly, isInherited, isMetadata, isOperational, isOptionalCleanup, isProcessProvenanceMetadata, isReadOnly, isRemoved, isRuntimeSchema, isShowEmpty, isShowInVirtualContainer, isShowMetadataDetails, isValidated, isValidFor, isVisible, isVisibleByVisibilityHandler, remove, removeAll, revive, setColumn, setDisplayName, setDisplayOrder, setMetadata, setProcessProvenanceMetadata, setReadOnly, setShowEmpty, setShowInVirtualContainer, setShowMetadataDetails, setValidated, setVisibleOverwrite, toString
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
Methods inherited from interface com.evolveum.midpoint.prism.Definition
checkMutableOnExposing, debugDump, getAnnotation, getAnnotations, getMergerIdentifier, getMergerInstance, getMutabilityFlag, getNaturalKeyConstituents, getNaturalKeyInstance, getTypeClass, getTypeName, isAbstract, isElaborate, isOptionalCleanup, isRuntimeSchema
Methods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutable
Methods inherited from interface com.evolveum.midpoint.prism.ItemDefinition
createEmptyDelta, debugDumpShortToString, deepClone, getProcessing, getSubstitutionHead, getValueEnumerationRef, isAlwaysUseForEquals, isDynamic, isHeterogeneousListItem, isIgnored, isInherited, isOperational
Methods inherited from interface com.evolveum.midpoint.gui.api.prism.wrapper.ItemWrapper
add, checkRequired, debugDump, findObjectStatus, findObjectWrapper, getDelta, getFormComponentValidator, getItem, getParent, getParentContainerValue, getPath, getPreconditionDeltas, 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.LivePrismItemDefinition
findItemDefinition, isValidFor
Methods inherited from interface com.evolveum.midpoint.prism.PrismItemAccessDefinition
canAdd, canModify, canRead, getInfo
Methods inherited from interface com.evolveum.midpoint.prism.PrismItemBasicDefinition
getItemName, getMaxOccurs, getMinOccurs, getTypeName, isMandatory, isMultiValue, isOptional, isSingleValue
Methods inherited from interface com.evolveum.midpoint.prism.PrismItemStorageDefinition
isIndexOnly, isSearchable
Methods inherited from interface com.evolveum.midpoint.prism.PrismLifecycleDefinition
getDeprecatedSince, getPlannedRemoval, getRemovedSince, getSchemaMigrations, isDeprecated, isExperimental, isRemoved
Methods inherited from interface com.evolveum.midpoint.prism.PrismPresentationDefinition
getDiagrams, getDisplayHint, getDisplayName, getDisplayOrder, getDocumentation, getDocumentationPreview, getHelp, isEmphasized
Methods inherited from interface com.evolveum.midpoint.prism.PrismReferenceDefinition
getTargetObjectDefinition, migrateIfNeeded
Methods inherited from interface com.evolveum.midpoint.prism.schema.SchemaLookup.Aware
schemaLookup
-
Constructor Details
-
PrismReferenceWrapperImpl
public PrismReferenceWrapperImpl(PrismContainerValueWrapper<?> parent, PrismReference item, ItemStatus status)
-
-
Method Details
-
getTargetTypeName
- Specified by:
getTargetTypeName
in interfacePrismReferenceDefinition
-
isComposite
public boolean isComposite()- Specified by:
isComposite
in interfacePrismReferenceDefinition
-
getSchemaContextDefinition
- Specified by:
getSchemaContextDefinition
in interfaceDefinition
-
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>>
-
cloneWithNewName
@NotNull public @NotNull ItemDefinition<PrismReference> cloneWithNewName(@NotNull @NotNull ItemName itemName) Description copied from interface:ItemDefinition
Returns a clone of this definition, but with name changed to the provided one.- Specified by:
cloneWithNewName
in interfaceItemDefinition<R extends Referencable>
- See Also:
-
isIndexed
Description copied from interface:PrismItemStorageDefinition
This is XSD annotation that specifies whether a property should be indexed in the storage. It can only apply to properties. It has following meaning: true: the property must be indexed. If the storage is not able to index the value, it should indicate an error. false: the property should not be indexed. null: data store decides whether to index the property or not.- Specified by:
isIndexed
in interfacePrismItemStorageDefinition
-
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>
-
mutator
Description copied from interface:Definition
Returns an interface to mutate this definition.- Specified by:
mutator
in interfaceDefinition
- Specified by:
mutator
in interfaceItemDefinition<R extends Referencable>
- Specified by:
mutator
in interfacePrismReferenceDefinition
- Overrides:
mutator
in classItemWrapperImpl<PrismReference,
PrismReferenceValueWrapperImpl<R extends Referencable>>
-