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:
- 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 PrismReferenceWrapperImpl(PrismContainerValueWrapper<?> parent, PrismReference item, ItemStatus status)
-
Method Summary
-
Methods inherited from class com.evolveum.midpoint.gui.impl.prism.wrapper.ItemWrapperImpl
add, addValueToDelta, adoptElementDefinitionFrom, canAdd, canBeDefinitionOf, canBeDefinitionOf, canModify, canRead, checkRequired, 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, getSchemaMigrations, getStatus, getSubstitutionHead, getTypeClass, getTypeName, getValue, getValueEnumerationRef, getValues, getVisibleOverwrite, isAbstract, isColumn, isDeprecated, isDynamic, isElaborate, isEmphasized, isExperimental, isHeterogeneousListItem, isIgnored, isIndexOnly, isInherited, isMetadata, isOperational, isProcessProvenanceMetadata, isReadOnly, isRuntimeSchema, isShowEmpty, isShowInVirtualContainer, isShowMetadataDetails, isValidFor, isVisible, isVisibleByVisibilityHandler, remove, removeAll, revive, setAnnotation, setColumn, setMetadata, setProcessProvenanceMetadata, setReadOnly, setShowEmpty, setShowInVirtualContainer, setShowMetadataDetails, 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, getSchemaMigrations, getSchemaRegistry, getTypeClass, 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, createEmptyDelta, debugDumpShortToString, deepClone, findItemDefinition, getItemName, getMaxOccurs, getMinOccurs, getSubstitutionHead, getValueEnumerationRef, isDynamic, isHeterogeneousListItem, isIndexOnly, isInherited, isMandatory, isMultiValue, isOperational, isOptional, 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, isVisible, remove, removeAll, setColumn, setMetadata, setProcessProvenanceMetadata, setReadOnly, setShowEmpty, setShowInVirtualContainer, setShowMetadataDetails, setVisibleOverwrite
-
Methods inherited from interface com.evolveum.midpoint.prism.PrismContextSensitive
getPrismContext
-
Methods inherited from interface com.evolveum.midpoint.prism.PrismItemAccessDefinition
canAdd, canModify, canRead
-
-
-
-
Constructor Detail
-
PrismReferenceWrapperImpl
public PrismReferenceWrapperImpl(PrismContainerValueWrapper<?> parent, PrismReference item, ItemStatus status)
-
-
Method Detail
-
getTargetTypeName
public QName getTargetTypeName()
- Specified by:
getTargetTypeName
in interfacePrismReferenceDefinition
-
getCompositeObjectElementName
public QName getCompositeObjectElementName()
- Specified by:
getCompositeObjectElementName
in interfacePrismReferenceDefinition
-
isComposite
public boolean isComposite()
- Specified by:
isComposite
in interfacePrismReferenceDefinition
-
clone
@NotNull public @NotNull PrismReferenceDefinition 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
@NotNull public @NotNull PrismReference 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
@NotNull public @NotNull PrismReference instantiate(QName name)
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
public ObjectFilter getFilter()
- Specified by:
getFilter
in interfacePrismReferenceWrapper<R extends Referencable>
-
setFilter
public void setFilter(ObjectFilter filter)
- Specified by:
setFilter
in interfacePrismReferenceWrapper<R extends Referencable>
-
getTargetTypes
public List<QName> getTargetTypes()
- Specified by:
getTargetTypes
in interfacePrismReferenceWrapper<R extends Referencable>
-
getPredefinedSearchItem
public Set<SearchItemType> getPredefinedSearchItem()
- Specified by:
getPredefinedSearchItem
in interfacePrismReferenceWrapper<R extends Referencable>
-
setPredefinedSearchItem
public void setPredefinedSearchItem(Set<SearchItemType> searchItems)
- 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
-
accept
public boolean accept(Visitor<Definition> visitor, SmartVisitation<Definition> visitation)
- Specified by:
accept
in interfaceSmartVisitable<R extends Referencable>
- Returns:
- false if we already was here
-
accept
public void accept(Visitor<Definition> visitor)
- Specified by:
accept
in interfaceVisitable<R extends Referencable>
-
createNewEmptyValue
protected PrismReferenceValue createNewEmptyValue(ModelServiceLocator locator)
- Specified by:
createNewEmptyValue
in classItemWrapperImpl<PrismReference,PrismReferenceValueWrapperImpl<R extends Referencable>>
-
structuredType
public Optional<ComplexTypeDefinition> 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>
-
-