Interface ShadowSimpleAttribute<T>
- All Superinterfaces:
DebugDumpable,Freezable,Item<PrismPropertyValue<T>,,PrismPropertyDefinition<T>> Itemable,ParentVisitable,PathVisitable,PrismProperty<T>,Revivable,Serializable,ShadowAttribute<PrismPropertyValue<T>,,ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>> Visitable
- All Known Implementing Classes:
ShadowSimpleAttributeImpl
public interface ShadowSimpleAttribute<T>
extends PrismProperty<T>, ShadowAttribute<PrismPropertyValue<T>,ShadowSimpleAttributeDefinition<T>,T,ShadowSimpleAttribute<T>>
TODO update this doc
Resource Object Attribute is a Property of Resource Object. All that applies
to property applies also to attribute, e.g. only a whole attributes can be
changed, they may be simple or complex types, they should be representable in
XML, etc. In addition, attribute definition may have some annotations that
suggest its purpose and use on the Resource.
Resource Object Attribute understands resource-specific annotations such as
native attribute name.
Resource Object Attribute is mutable.
- Author:
- Radovan Semancik
-
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRINGFields inherited from interface com.evolveum.midpoint.prism.Item
KEY_NAMESPACE_CONTEXT -
Method Summary
Modifier and TypeMethodDescriptiondefault voidapplyDefinitionFrom(@NotNull ResourceObjectDefinition objectDefinition) default voidcheckDefinitionConsistence(@NotNull ResourceObjectDefinition objectDefinition) TODO decide on this.clone()Literal clone.cloneComplex(CloneStrategy strategy) Complex clone with different cloning strategies.Creates specific subclass of ItemDelta appropriate for type of item that this definition represents (e.g.createDelta(ItemPath path) default @NotNull PropertyDelta<T>Creates a delta that would enforce (via REPLACE operation) the values of this attribute.Returns applicable definition.default @NotNull ShadowSimpleAttributeDefinition<T>default StringReturns native attribute name.@NotNull Collection<?>Returns the normalized real values.@NotNull Collection<?>Returns the original real values.default @NotNull ItemPathdefault booleandefault booleanReturns true if the attribute is a PolyString-typed one - either native, or "simulated" (with a normalizer).default @NotNull ObjectFilterCreates normalization-aware "eq" filter (i.e., suitable for the execution against the repository) for the current value of this attribute.default <N> @NotNull PrismProperty<N>Creates normalization-aware version of this attribute: one that is suitable to be used in the repository.static <T> ShadowSimpleAttribute<T>Converts thePrismPropertyintoShadowSimpleAttribute, if needed.default @NotNull ObjectFilterCreates "eq" filter for the current value of this attribute.Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDump, debugDumpLazily, debugDumpLazilyMethods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutable, freeze, isImmutableMethods inherited from interface com.evolveum.midpoint.prism.Item
acceptParentVisitor, add, add, addAll, addAll, addIgnoringEquivalents, addRespectingMetadataAndCloning, applyDefinition, applyDefinition, applyDefinitionIfMissing, assertDefinitions, assertDefinitions, assertDefinitions, checkConsistence, checkConsistence, checkConsistence, checkConsistence, checkConsistence, checkConsistenceInternal, clear, contains, contains, copy, diff, diff, equals, equals, equals, filterValues, filterYields, find, findValue, findValue, getAllItems, getAllValues, getAnyValue, getAnyValue, getClonedValues, getDisplayName, getElementName, getHelp, getHighestId, getNamespaceContext, getParent, getPath, getRealValue, getRealValuesArray, getRealValuesOrRawTypes, getUserData, getUserData, getValue, getValues, hasAnyValue, hasCompleteDefinition, hashCode, hashCode, hashCode, hasRaw, isEmpty, isIncomplete, isOperational, isRaw, isSingleValue, isSingleValueByDefinition, merge, normalize, recomputeAllValues, remove, remove, removeAll, removeIf, removeRespectingMetadata, replace, replaceAll, setDefinition, setElementName, setIncomplete, setParent, setUserData, size, valuesStreamMethods inherited from interface com.evolveum.midpoint.prism.PathVisitable
acceptMethods inherited from interface com.evolveum.midpoint.prism.PrismProperty
addRealValue, addRealValues, addRealValueSkipUniquenessCheck, addValue, addValues, deleteValue, deleteValues, diff, diff, findPartial, getAnyRealValue, getRealValue, getRealValues, getRealValues, getValue, getValueClass, getValues, hasRealValue, replaceValues, setRealValue, setRealValues, setValue, toHumanReadableStringMethods inherited from interface com.evolveum.midpoint.schema.processor.ShadowAttribute
addValueSkipUniquenessCheck, getElementName, isIncomplete, setIncomplete
-
Method Details
-
of
Converts thePrismPropertyintoShadowSimpleAttribute, if needed. -
getDefinition
ShadowSimpleAttributeDefinition<T> getDefinition()Description copied from interface:ItemReturns applicable definition.May return null if no definition is applicable or the definition is not known.
- Specified by:
getDefinitionin interfaceItem<PrismPropertyValue<T>,PrismPropertyDefinition<T>> - Specified by:
getDefinitionin interfaceItemable- Specified by:
getDefinitionin interfaceShadowAttribute<PrismPropertyValue<T>,ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>> - Returns:
- applicable definition
-
getDefinitionRequired
- Specified by:
getDefinitionRequiredin interfaceShadowAttribute<PrismPropertyValue<T>,ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>>
-
getNativeAttributeName
Returns native attribute name. Native name of the attribute is a name as it is used on the resource or as seen by the connector. It is used for diagnostics purposes and may be used by the connector itself. As the attribute names in XSD have to comply with XML element name limitations, this may be the only way how to determine original attribute name. Returns null if native attribute name is not set or unknown. The name should be the same as the one used by the resource, if the resource supports naming of attributes. E.g. in case of LDAP this annotation should contain "cn", "givenName", etc. If the resource is not that flexible, the native attribute names may be hardcoded (e.g. "username", "homeDirectory") or may not be present at all.- Returns:
- native attribute name
-
applyDefinitionFrom
default void applyDefinitionFrom(@NotNull @NotNull ResourceObjectDefinition objectDefinition) throws SchemaException - Specified by:
applyDefinitionFromin interfaceShadowAttribute<PrismPropertyValue<T>,ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>> - Throws:
SchemaException
-
clone
ShadowSimpleAttribute<T> clone()Description copied from interface:ItemLiteral clone.- Specified by:
clonein interfaceItem<PrismPropertyValue<T>,PrismPropertyDefinition<T>> - Specified by:
clonein interfacePrismProperty<T>- Specified by:
clonein interfaceShadowAttribute<PrismPropertyValue<T>,ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>>
-
getOrigValues
Returns the original real values. Assumes the definition is present. -
getNormValues
Returns the normalized real values. Assumes the definition is present.- Throws:
SchemaException
-
isPolyString
default boolean isPolyString()Returns true if the attribute is a PolyString-typed one - either native, or "simulated" (with a normalizer). Assumes the definition is present. -
getStandardPath
-
plainEqFilter
Creates "eq" filter for the current value of this attribute. It must have a definition and exactly one value. Matching rule is not specified. We assume this filter will be evaluated on the resource. -
normalizationAwareEqFilter
Creates normalization-aware "eq" filter (i.e., suitable for the execution against the repository) for the current value of this attribute. It must have a definition and exactly one value.- Throws:
SchemaException
-
normalizationAwareVersion
Creates normalization-aware version of this attribute: one that is suitable to be used in the repository.- Throws:
SchemaException
-
createReplaceDelta
Creates a delta that would enforce (via REPLACE operation) the values of this attribute.- Specified by:
createReplaceDeltain interfaceShadowAttribute<PrismPropertyValue<T>,ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>>
-
checkDefinitionConsistence
default void checkDefinitionConsistence(@NotNull @NotNull ResourceObjectDefinition objectDefinition) TODO decide on this. -
hasNoValues
default boolean hasNoValues()- Specified by:
hasNoValuesin interfaceItem<PrismPropertyValue<T>,PrismPropertyDefinition<T>> - Specified by:
hasNoValuesin interfaceShadowAttribute<PrismPropertyValue<T>,ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>>
-
createDelta
PropertyDelta<T> createDelta()Description copied from interface:ItemCreates specific subclass of ItemDelta appropriate for type of item that this definition represents (e.g. PropertyDelta, ContainerDelta, ...)- Specified by:
createDeltain interfaceItem<PrismPropertyValue<T>,PrismPropertyDefinition<T>> - Specified by:
createDeltain interfacePrismProperty<T>- Specified by:
createDeltain interfaceShadowAttribute<PrismPropertyValue<T>,ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>>
-
createDelta
- Specified by:
createDeltain interfaceItem<PrismPropertyValue<T>,PrismPropertyDefinition<T>> - Specified by:
createDeltain interfacePrismProperty<T>- Specified by:
createDeltain interfaceShadowAttribute<PrismPropertyValue<T>,ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>>
-
createImmutableClone
ShadowSimpleAttribute<T> createImmutableClone()- Specified by:
createImmutableClonein interfaceItem<PrismPropertyValue<T>,PrismPropertyDefinition<T>> - Specified by:
createImmutableClonein interfacePrismProperty<T>- Specified by:
createImmutableClonein interfaceShadowAttribute<PrismPropertyValue<T>,ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>>
-
cloneComplex
Description copied from interface:ItemComplex clone with different cloning strategies.- Specified by:
cloneComplexin interfaceItem<PrismPropertyValue<T>,PrismPropertyDefinition<T>> - Specified by:
cloneComplexin interfacePrismProperty<T>- Specified by:
cloneComplexin interfaceShadowAttribute<PrismPropertyValue<T>,ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>> - See Also:
-