Interface PrismReferenceValueDelegator
- All Superinterfaces:
ComplexCopyable<PrismValue>,DebugDumpable,Freezable,MidpointOriginMetadata,PathVisitable,PrismReferenceValue,PrismValue,PrismValueDelegator,PrismVisitable,Revivable,SchemaLookup.Aware,Serializable,ShortDumpable,Visitable
-
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING -
Method Summary
Modifier and TypeMethodDescriptiondefault booleanacceptVisitor(PrismVisitor visitor) Accept visitor and visits prism item or value and it's children Note: name is not accept, but accept visitor to prevent naming conflict in lambdas dynamic languages such as groovy withVisitable.accept(com.evolveum.midpoint.prism.Visitor)default PrismReferenceValueapplyDefinition(PrismReferenceDefinition definition, boolean force) default Referencabledefault PrismReferenceValueclone()Literal clone.default PrismReferenceValuecloneComplex(@NotNull CloneStrategy strategy) Complex clone with different cloning strategies.default PrismReferenceValuedefault StringdebugDump(int indent, boolean expandObject) delegate()default @Nullable QNameDetermines the type name from the value or from its definition (if known).default <IV extends PrismValue,ID extends ItemDefinition<?>>
PartiallyResolvedItem<IV,ID> findPartial(ItemPath path) default <I extends Item<?,?>>
IfindReferencedItem(ItemPath path, Class<I> type) default PrismReferenceDefinitiondefault Stringdefault @NotNull EvaluationTimeTypedefault SearchFilterTypedefault <O extends Objectable>
PrismObject<O>Returns object that this reference points to.default Objectabledefault StringgetOid()OID of the object that this reference refers to (reference target).default Class<?>default @Nullable ReferencableReturns the statically-typed "real value".default ReferentialIntegrityTypedefault QNamedefault EvaluationTimeTypedefault PolyStringReturns cached name of the target object.default QNameReturns XSD type of the object that this reference refers to.default Class<Objectable>default PrismReferenceValuedefault voidsetDescription(String description) default voidsetFilter(SearchFilterType filter) default voidsetObject(PrismObject<?> object) default voiddefault voidsetReferentialIntegrity(ReferentialIntegrityType referentialIntegrity) default voidsetRelation(QName relation) default voidsetResolutionTime(EvaluationTimeType resolutionTime) default voidsetTargetName(PolyString name) default voidsetTargetName(PolyStringType name) default voidsetTargetType(QName targetType) default voidsetTargetType(QName targetType, boolean allowEmptyNamespace) default PrismReferenceValueReturns a version of this value that is canonical, that means it has the minimal form.Methods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutable, freeze, isImmutableMethods inherited from interface com.evolveum.midpoint.prism.PrismReferenceValue
copy, immutableCopy, mutableCopyMethods inherited from interface com.evolveum.midpoint.prism.deleg.PrismValueDelegator
accept, accept, applyDefinition, applyDefinition, applyDefinitionLegacy, applyDefinitionLegacy, checkConsistenceInternal, clearParent, cloneIfImmutable, debugDump, debugDump, debugDumpLazily, debugDumpLazily, deleteValueMetadata, diff, equals, equals, find, getAllItems, getAllValues, getNearestValueOfType, getOriginObject, getOriginType, getParent, getParentContainerValue, getPath, getRealValueIfExists, getRealValueOrRawType, getRootObjectable, getRootValue, getSchemaContext, getTypeName, getUserData, getUserData, getValueMetadata, getValueMetadataAsContainer, getValueMetadataIfExists, hashCode, hashCode, hasRealClass, hasValueMetadata, isEmpty, isObjectable, isOfType, isRaw, isTransient, normalize, recompute, recompute, representsSameValue, schemaLookup, setOriginObject, setOriginType, setParent, setTransient, setUserData, setValueMetadata, setValueMetadata, setValueMetadata, toHumanReadableStringMethods inherited from interface com.evolveum.midpoint.util.ShortDumpable
shortDump, shortDump, shortDumpLazily
-
Method Details
-
delegate
PrismReferenceValue delegate()- Specified by:
delegatein interfacePrismValueDelegator
-
getOid
Description copied from interface:PrismReferenceValueOID of the object that this reference refers to (reference target). May return null, but the reference is in that case incomplete and unusable.- Specified by:
getOidin interfacePrismReferenceValue- Returns:
- the target oid
-
setOid
- Specified by:
setOidin interfacePrismReferenceValue
-
getObject
Description copied from interface:PrismReferenceValueReturns object that this reference points to. The object is supposed to be used for caching and optimizations. Only oid and type of the object really matters for the reference. The object is transient. It will NOT be serialized. Therefore the client must expect that the object can disappear when serialization boundary is crossed. The client must expect that the object is null.- Specified by:
getObjectin interfacePrismReferenceValue
-
getObjectable
- Specified by:
getObjectablein interfacePrismReferenceValue
-
setObject
- Specified by:
setObjectin interfacePrismReferenceValue
-
getTargetType
Description copied from interface:PrismReferenceValueReturns XSD type of the object that this reference refers to. It may be used in XPath expressions and similar filters. May return null if the type name is not set.- Specified by:
getTargetTypein interfacePrismReferenceValue- Returns:
- the target type name
-
setTargetType
- Specified by:
setTargetTypein interfacePrismReferenceValue
-
setTargetType
- Specified by:
setTargetTypein interfacePrismReferenceValueallowEmptyNamespace- This is an ugly hack. See comment in DOMUtil.validateNonEmptyQName.
-
determineTargetTypeName
Description copied from interface:PrismReferenceValueDetermines the type name from the value or from its definition (if known).- Specified by:
determineTargetTypeNamein interfacePrismReferenceValue
-
getTargetName
Description copied from interface:PrismReferenceValueReturns cached name of the target object. This is a ephemeral value. It may be computed at object retrieval time or it may not be present at all. This is NOT an authoritative information. Setting it or changing it will not influence the reference meaning. OID is the only authoritative linking mechanism.- Specified by:
getTargetNamein interfacePrismReferenceValue- Returns:
- cached name of the target object.
-
setTargetName
- Specified by:
setTargetNamein interfacePrismReferenceValue
-
setTargetName
- Specified by:
setTargetNamein interfacePrismReferenceValue
-
getTargetTypeCompileTimeClass
- Specified by:
getTargetTypeCompileTimeClassin interfacePrismReferenceValue
-
getRelation
- Specified by:
getRelationin interfacePrismReferenceValue
-
setRelation
- Specified by:
setRelationin interfacePrismReferenceValue
-
relation
- Specified by:
relationin interfacePrismReferenceValue
-
getDescription
- Specified by:
getDescriptionin interfacePrismReferenceValue
-
setDescription
- Specified by:
setDescriptionin interfacePrismReferenceValue
-
getFilter
- Specified by:
getFilterin interfacePrismReferenceValue
-
setFilter
- Specified by:
setFilterin interfacePrismReferenceValue
-
getResolutionTime
- Specified by:
getResolutionTimein interfacePrismReferenceValue
-
getEffectiveResolutionTime
- Specified by:
getEffectiveResolutionTimein interfacePrismReferenceValue
-
setResolutionTime
- Specified by:
setResolutionTimein interfacePrismReferenceValue
-
getReferentialIntegrity
- Specified by:
getReferentialIntegrityin interfacePrismReferenceValue
-
setReferentialIntegrity
- Specified by:
setReferentialIntegrityin interfacePrismReferenceValue
-
getDefinition
- Specified by:
getDefinitionin interfacePrismReferenceValue
-
findPartial
default <IV extends PrismValue,ID extends ItemDefinition<?>> PartiallyResolvedItem<IV,ID> findPartial(ItemPath path) - Specified by:
findPartialin interfacePrismReferenceValue
-
applyDefinition
default PrismReferenceValue applyDefinition(PrismReferenceDefinition definition, boolean force) throws SchemaException - Specified by:
applyDefinitionin interfacePrismReferenceValue- Throws:
SchemaException
-
toCanonical
Description copied from interface:PrismReferenceValueReturns a version of this value that is canonical, that means it has the minimal form. E.g. it will have only OID and no object.- Specified by:
toCanonicalin interfacePrismReferenceValue
-
asReferencable
- Specified by:
asReferencablein interfacePrismReferenceValue
-
debugDump
- Specified by:
debugDumpin interfacePrismReferenceValue
-
clone
Description copied from interface:PrismValueLiteral clone.- Specified by:
clonein interfacePrismReferenceValue- Specified by:
clonein interfacePrismValue- Specified by:
clonein interfacePrismValueDelegator
-
createImmutableClone
- Specified by:
createImmutableClonein interfacePrismReferenceValue- Specified by:
createImmutableClonein interfacePrismValue- Specified by:
createImmutableClonein interfacePrismValueDelegator
-
cloneComplex
Description copied from interface:PrismValueComplex clone with different cloning strategies.- Specified by:
cloneComplexin interfaceComplexCopyable<PrismValue>- Specified by:
cloneComplexin interfacePrismReferenceValue- Specified by:
cloneComplexin interfacePrismValue- Specified by:
cloneComplexin interfacePrismValueDelegator- See Also:
-
getRealClass
- Specified by:
getRealClassin interfacePrismReferenceValue- Specified by:
getRealClassin interfacePrismValue- Specified by:
getRealClassin interfacePrismValueDelegator
-
getRealValue
Description copied from interface:PrismValueReturns the statically-typed "real value". TODO specify when exactly the returned value can be null. TODO decide for containers: they throw an exception if the value is not statically typed.- Specified by:
getRealValuein interfacePrismReferenceValue- Specified by:
getRealValuein interfacePrismValue- Specified by:
getRealValuein interfacePrismValueDelegator
-
findReferencedItem
- Specified by:
findReferencedItemin interfacePrismReferenceValue
-
acceptVisitor
Description copied from interface:PrismVisitableAccept visitor and visits prism item or value and it's children Note: name is not accept, but accept visitor to prevent naming conflict in lambdas dynamic languages such as groovy withVisitable.accept(com.evolveum.midpoint.prism.Visitor)- Specified by:
acceptVisitorin interfacePrismReferenceValue- Specified by:
acceptVisitorin interfacePrismValue- Specified by:
acceptVisitorin interfacePrismValueDelegator- Specified by:
acceptVisitorin interfacePrismVisitable- Returns:
- return value of
PrismVisitor.visit(PrismVisitable)invocation for this visitable.
-