Interface AttributeDefinitionDelegator<T>
- All Superinterfaces:
Cloneable,DebugDumpable,Definition,DefinitionDelegator,Freezable,ItemDefinition<PrismProperty<T>>,ItemDefinitionDelegator<PrismProperty<T>>,LayeredDefinition,PrismContextSensitive,PrismItemAccessDefinition,PrismPropertyDefinition<T>,PropertyDefinitionDelegator<T>,RawResourceAttributeDefinition<T>,ResourceAttributeDefinition<T>,Revivable,Serializable,SmartVisitable<Definition>,Visitable<Definition>
- All Known Subinterfaces:
RefinedAttributeDefinitionDelegator<T>
public interface AttributeDefinitionDelegator<T>
extends PropertyDefinitionDelegator<T>, ResourceAttributeDefinition<T>
-
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 -
Method Summary
Modifier and TypeMethodDescriptiondefault booleanIs adding allowed (at specified layer)?default booleanIs modification allowed (at specified layer)?default booleanIs reading allowed (at specified layer)?default StringProvides a debug dump respective to the given layer.default ResourceAttributeDefinition<T>deepClone(@NotNull DeepCloneOperation operation) TODO documentdelegate()default @NotNull ResourceAttributeDefinition<T>Creates a view of the current definition for a given layer.default @Nullable ItemChangeApplicationModeTypeTODOdefault @Nullable ItemCorrelatorDefinitionTypedefault @NotNull LayerTypeGets the current point-of-view: on which layer do we look at the data?default StringGets the (configured) attribute description.default AttributeFetchStrategyTypeReturns configured fetch strategy.default StringReturns name of the attribute as given in the connector framework.default @NotNull List<InboundMappingType>Gets the inbound mappings (if any).Gets patterns for values that are not "tolerated" on the resource.default @Nullable StringTODOdefault PropertyLimitationsgetLimitations(LayerType layer) Returns limitations (cardinality, access rights, processing) for given layer.default intgetMaxOccurs(LayerType layer) Gets `maxOccurs` limitation for given layer.default intgetMinOccurs(LayerType layer) Gets `minOccurs` limitation for given layer.default IntegerDetermines the order in which this attribute should be modified (in very special cases).default StringReturns native attribute name.default @Nullable MappingTypeGets the outbound mapping, if defined.default ItemProcessinggetProcessing(LayerType layer) Gets the level of processing for specified layer.default RawResourceAttributeDefinition<T>Gets the original (raw) attribute definition.default BooleanShould be this attribute modified solely in "replace" mode?default BooleanIs this attribute returned by default? (I.e.default @NotNull AttributeStorageStrategyTypeReturns configured storage strategy.Gets patterns for values that are "tolerated" on the resource.default booleandefault @NotNull ResourceAttribute<T>Create an item instance.default @NotNull ResourceAttribute<T>instantiate(QName name) Create an item instance.default booleanIs this attribute configured to serve as a display name?default booleanDrives behavior of strong and normal mappings for this attribute.default booleanIs the attribute ignored (at specified layer)?default booleanisMandatory(LayerType layer) default booleanisMultiValue(LayerType layer) default booleanisOptional(LayerType layer) default BooleanIs this attribute designated as a secondary identifier via `schemaHandling`?default booleanisSingleValue(LayerType layer) default booleanWhen set to true, allows to preserve attribute values that are set outside midPoint.default booleanIs this attribute so-called volatility trigger, i.e.default voidsetOverrideCanAdd(Boolean value) Provides a value that will overrideResourceAttributeDefinition.canAdd(LayerType)return values (for all layers).default voidsetOverrideCanModify(Boolean value) Provides a value that will overrideResourceAttributeDefinition.canModify(LayerType)return values (for all layers).default voidsetOverrideCanRead(Boolean value) Provides a value that will overrideResourceAttributeDefinition.canRead(LayerType)return values (for all layers).Methods inherited from interface com.evolveum.midpoint.prism.deleg.DefinitionDelegator
accept, accept, debugDump, debugDump, debugDump, debugDumpLazily, debugDumpLazily, getAnnotation, getAnnotations, getDeprecatedSince, getDisplayName, getDisplayOrder, getDocumentation, getDocumentationPreview, getHelp, getMutabilityFlag, getPlannedRemoval, getPrismContext, getProcessing, getRemovedSince, getSchemaMigrations, getSchemaRegistry, getTypeName, isAbstract, isDeprecated, isElaborate, isEmphasized, isExperimental, isIgnored, isRemoved, isRuntimeSchema, setAnnotationMethods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutable, freeze, isImmutableMethods inherited from interface com.evolveum.midpoint.prism.ItemDefinition
isMandatory, isMultiValue, isOptional, isSingleValueMethods inherited from interface com.evolveum.midpoint.prism.deleg.ItemDefinitionDelegator
adoptElementDefinitionFrom, canAdd, canBeDefinitionOf, canBeDefinitionOf, canModify, canRead, debugDumpShortToString, findItemDefinition, getDiagrams, getItemName, getMaxOccurs, getMinOccurs, getSubstitutionHead, getValueEnumerationRef, isDynamic, isHeterogeneousListItem, isIndexOnly, isInherited, isOperational, isSearchable, isValidFor, structuredTypeMethods inherited from interface com.evolveum.midpoint.prism.PrismPropertyDefinition
createEmptyDelta, getTypeClass, isAnyTypeMethods inherited from interface com.evolveum.midpoint.prism.deleg.PropertyDefinitionDelegator
createEmptyDelta, defaultValue, getAllowedValues, getMatchingRuleQName, getSuggestedValues, getTypeClass, isIndexedMethods inherited from interface com.evolveum.midpoint.schema.processor.RawResourceAttributeDefinition
isReturnedByDefaultMethods inherited from interface com.evolveum.midpoint.schema.processor.ResourceAttributeDefinition
clone, isVisible, spawnModifyingRaw, toMutable
-
Method Details
-
delegate
ResourceAttributeDefinition<T> delegate()- Specified by:
delegatein interfaceDefinitionDelegator- Specified by:
delegatein interfaceItemDefinitionDelegator<T>- Specified by:
delegatein interfacePropertyDefinitionDelegator<T>
-
getReturnedByDefault
Description copied from interface:RawResourceAttributeDefinitionIs this attribute returned by default? (I.e. if no specific options are sent to the connector?)- Specified by:
getReturnedByDefaultin interfaceRawResourceAttributeDefinition<T>
-
getNativeAttributeName
Description copied from interface:RawResourceAttributeDefinitionReturns 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.- Specified by:
getNativeAttributeNamein interfaceRawResourceAttributeDefinition<T>- Returns:
- native attribute name
-
getFrameworkAttributeName
Description copied from interface:RawResourceAttributeDefinitionReturns name of the attribute as given in the connector framework. This is not used for any significant logic. It is mostly for diagnostics.- Specified by:
getFrameworkAttributeNamein interfaceRawResourceAttributeDefinition<T>- Returns:
- name of the attribute as given in the connector framework.
-
instantiate
Description copied from interface:ItemDefinitionCreate 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:
instantiatein interfaceItemDefinition<T>- Specified by:
instantiatein interfaceItemDefinitionDelegator<T>- Specified by:
instantiatein interfacePrismPropertyDefinition<T>- Specified by:
instantiatein interfacePropertyDefinitionDelegator<T>- Specified by:
instantiatein interfaceRawResourceAttributeDefinition<T>- Specified by:
instantiatein interfaceResourceAttributeDefinition<T>
-
instantiate
Description copied from interface:ItemDefinitionCreate an item instance. Definition name will use provided name. for the instance. The instance will otherwise be empty.- Specified by:
instantiatein interfaceItemDefinition<T>- Specified by:
instantiatein interfaceItemDefinitionDelegator<T>- Specified by:
instantiatein interfacePrismPropertyDefinition<T>- Specified by:
instantiatein interfacePropertyDefinitionDelegator<T>- Specified by:
instantiatein interfaceRawResourceAttributeDefinition<T>- Specified by:
instantiatein interfaceResourceAttributeDefinition<T>
-
debugDump
Description copied from interface:ResourceAttributeDefinitionProvides a debug dump respective to the given layer. TODO reconsider this method- Specified by:
debugDumpin interfaceResourceAttributeDefinition<T>
-
getLimitations
Description copied from interface:ResourceAttributeDefinitionReturns limitations (cardinality, access rights, processing) for given layer. These are obtained from resource and/or explicitly configured.- Specified by:
getLimitationsin interfaceResourceAttributeDefinition<T>- See Also:
-
getFetchStrategy
Description copied from interface:ResourceAttributeDefinitionReturns configured fetch strategy.- Specified by:
getFetchStrategyin interfaceResourceAttributeDefinition<T>- See Also:
-
getStorageStrategy
Description copied from interface:ResourceAttributeDefinitionReturns configured storage strategy.- Specified by:
getStorageStrategyin interfaceResourceAttributeDefinition<T>- See Also:
-
isVolatilityTrigger
default boolean isVolatilityTrigger()Description copied from interface:ResourceAttributeDefinitionIs this attribute so-called volatility trigger, i.e. may its changes cause changes in other attributes?- Specified by:
isVolatilityTriggerin interfaceResourceAttributeDefinition<T>- See Also:
-
getModificationPriority
Description copied from interface:ResourceAttributeDefinitionDetermines the order in which this attribute should be modified (in very special cases).- Specified by:
getModificationPriorityin interfaceResourceAttributeDefinition<T>- See Also:
-
getReadReplaceMode
Description copied from interface:ResourceAttributeDefinitionShould be this attribute modified solely in "replace" mode?- Specified by:
getReadReplaceModein interfaceResourceAttributeDefinition<T>- See Also:
-
isTolerant
default boolean isTolerant()Description copied from interface:ResourceAttributeDefinitionWhen set to true, allows to preserve attribute values that are set outside midPoint.- Specified by:
isTolerantin interfaceResourceAttributeDefinition<T>- See Also:
-
isSecondaryIdentifierOverride
Description copied from interface:ResourceAttributeDefinitionIs this attribute designated as a secondary identifier via `schemaHandling`?- Specified by:
isSecondaryIdentifierOverridein interfaceResourceAttributeDefinition<T>- See Also:
-
canAdd
Description copied from interface:ResourceAttributeDefinitionIs adding allowed (at specified layer)?- Specified by:
canAddin interfaceResourceAttributeDefinition<T>- See Also:
-
canRead
Description copied from interface:ResourceAttributeDefinitionIs reading allowed (at specified layer)?- Specified by:
canReadin interfaceResourceAttributeDefinition<T>- See Also:
-
canModify
Description copied from interface:ResourceAttributeDefinitionIs modification allowed (at specified layer)?- Specified by:
canModifyin interfaceResourceAttributeDefinition<T>- See Also:
-
isIgnored
Description copied from interface:ResourceAttributeDefinitionIs the attribute ignored (at specified layer)?- Specified by:
isIgnoredin interfaceResourceAttributeDefinition<T>
-
getProcessing
Description copied from interface:ResourceAttributeDefinitionGets the level of processing for specified layer.- Specified by:
getProcessingin interfaceResourceAttributeDefinition<T>- See Also:
-
getDescription
Description copied from interface:ResourceAttributeDefinitionGets the (configured) attribute description.- Specified by:
getDescriptionin interfaceResourceAttributeDefinition<T>- See Also:
-
getRawAttributeDefinition
Description copied from interface:ResourceAttributeDefinitionGets the original (raw) attribute definition.- Specified by:
getRawAttributeDefinitionin interfaceResourceAttributeDefinition<T>
-
getOutboundMappingBean
Description copied from interface:ResourceAttributeDefinitionGets the outbound mapping, if defined.- Specified by:
getOutboundMappingBeanin interfaceResourceAttributeDefinition<T>- See Also:
-
hasOutboundMapping
default boolean hasOutboundMapping()- Specified by:
hasOutboundMappingin interfaceResourceAttributeDefinition<T>
-
getInboundMappingBeans
Description copied from interface:ResourceAttributeDefinitionGets the inbound mappings (if any).- Specified by:
getInboundMappingBeansin interfaceResourceAttributeDefinition<T>- See Also:
-
getMaxOccurs
Description copied from interface:ResourceAttributeDefinitionGets `maxOccurs` limitation for given layer.- Specified by:
getMaxOccursin interfaceResourceAttributeDefinition<T>- See Also:
-
getMinOccurs
Description copied from interface:ResourceAttributeDefinitionGets `minOccurs` limitation for given layer.- Specified by:
getMinOccursin interfaceResourceAttributeDefinition<T>
-
isOptional
- Specified by:
isOptionalin interfaceResourceAttributeDefinition<T>
-
isMandatory
- Specified by:
isMandatoryin interfaceResourceAttributeDefinition<T>
-
isMultiValue
- Specified by:
isMultiValuein interfaceResourceAttributeDefinition<T>
-
isSingleValue
- Specified by:
isSingleValuein interfaceResourceAttributeDefinition<T>
-
isExclusiveStrong
default boolean isExclusiveStrong()Description copied from interface:ResourceAttributeDefinitionDrives behavior of strong and normal mappings for this attribute.- Specified by:
isExclusiveStrongin interfaceResourceAttributeDefinition<T>- See Also:
-
getTolerantValuePatterns
Description copied from interface:ResourceAttributeDefinitionGets patterns for values that are "tolerated" on the resource.- Specified by:
getTolerantValuePatternsin interfaceResourceAttributeDefinition<T>- See Also:
-
getIntolerantValuePatterns
Description copied from interface:ResourceAttributeDefinitionGets patterns for values that are not "tolerated" on the resource.- Specified by:
getIntolerantValuePatternsin interfaceResourceAttributeDefinition<T>- See Also:
-
isDisplayNameAttribute
default boolean isDisplayNameAttribute()Description copied from interface:ResourceAttributeDefinitionIs this attribute configured to serve as a display name?- Specified by:
isDisplayNameAttributein interfaceResourceAttributeDefinition<T>- See Also:
-
getCorrelatorDefinition
- Specified by:
getCorrelatorDefinitionin interfaceResourceAttributeDefinition<T>- See Also:
-
getChangeApplicationMode
Description copied from interface:ResourceAttributeDefinitionTODO- Specified by:
getChangeApplicationModein interfaceResourceAttributeDefinition<T>
-
getLifecycleState
Description copied from interface:ResourceAttributeDefinitionTODO- Specified by:
getLifecycleStatein interfaceResourceAttributeDefinition<T>
-
deepClone
Description copied from interface:ItemDefinitionTODO document- Specified by:
deepClonein interfaceItemDefinition<T>- Specified by:
deepClonein interfaceItemDefinitionDelegator<T>- Specified by:
deepClonein interfaceResourceAttributeDefinition<T>
-
setOverrideCanRead
Description copied from interface:ResourceAttributeDefinitionProvides a value that will overrideResourceAttributeDefinition.canRead(LayerType)return values (for all layers). Used e.g. when applying authorizations on the definition.- Specified by:
setOverrideCanReadin interfaceResourceAttributeDefinition<T>
-
setOverrideCanAdd
Description copied from interface:ResourceAttributeDefinitionProvides a value that will overrideResourceAttributeDefinition.canAdd(LayerType)return values (for all layers). Used e.g. when applying authorizations on the definition.- Specified by:
setOverrideCanAddin interfaceResourceAttributeDefinition<T>
-
setOverrideCanModify
Description copied from interface:ResourceAttributeDefinitionProvides a value that will overrideResourceAttributeDefinition.canModify(LayerType)return values (for all layers). Used e.g. when applying authorizations on the definition.- Specified by:
setOverrideCanModifyin interfaceResourceAttributeDefinition<T>
-
forLayer
@NotNull default @NotNull ResourceAttributeDefinition<T> forLayer(@NotNull @NotNull LayerType layer) Description copied from interface:ResourceAttributeDefinitionCreates a view of the current definition for a given layer. (May return even the original object e.g. if the layer matches the current one.)- Specified by:
forLayerin interfaceResourceAttributeDefinition<T>
-
getCurrentLayer
Description copied from interface:LayeredDefinitionGets the current point-of-view: on which layer do we look at the data?- Specified by:
getCurrentLayerin interfaceLayeredDefinition
-