Class ShadowAttributeDefinitionImpl<V extends PrismValue,D extends ShadowAttributeDefinition<V,D,RV,SA>,RV,SA extends ShadowAttribute<V,D,RV,SA>,ND extends NativeShadowAttributeDefinition>
java.lang.Object
com.evolveum.midpoint.prism.AbstractFreezable
com.evolveum.midpoint.schema.processor.ShadowAttributeDefinitionImpl<V,D,RV,SA,ND>
- All Implemented Interfaces:
Definition
,Freezable
,PrismItemAccessDefinition
,PrismItemBasicDefinition
,PrismItemMiscDefinition
,PrismItemStorageDefinition
,PrismLifecycleDefinition
,PrismPresentationDefinition
,Revivable
,SmartVisitable<Definition>
,Visitable<Definition>
,LayeredDefinition
,ResourceObjectInboundProcessingDefinition.ItemInboundProcessingDefinition
,ShadowAttributeDefinition<V,
,D, RV, SA> ShadowAttributeUcfDefinition
,ShadowItemDefinition
,ShadowItemLayeredDefinition
,ShadowItemLifecycleDefinitionDefaults
,DebugDumpable
,ShortDumpable
,Serializable
,Cloneable
- Direct Known Subclasses:
ShadowReferenceAttributeDefinitionImpl
,ShadowSimpleAttributeDefinitionImpl
public abstract class ShadowAttributeDefinitionImpl<V extends PrismValue,D extends ShadowAttributeDefinition<V,D,RV,SA>,RV,SA extends ShadowAttribute<V,D,RV,SA>,ND extends NativeShadowAttributeDefinition>
extends AbstractFreezable
implements ShadowAttributeDefinition<V,D,RV,SA>, ShadowItemLifecycleDefinitionDefaults
Base implementation of
ShadowSimpleAttributeDefinitionImpl
and ShadowReferenceAttributeDefinitionImpl
.
The implementation consists of a pair of nativeDefinition
and customizationBean
,
plus some auxiliary information for faster access.
This class intentionally does NOT inherit from PrismPropertyDefinitionImpl
. Instead, a large part of the required
functionality is delegated to nativeDefinition
which inherits from that class.-
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.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.PrismItemMiscDefinition
PrismItemMiscDefinition.Data, PrismItemMiscDefinition.Delegable, PrismItemMiscDefinition.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.schema.processor.ShadowAttributeUcfDefinition
ShadowAttributeUcfDefinition.Data, ShadowAttributeUcfDefinition.Delegable, ShadowAttributeUcfDefinition.Mutable
-
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(Visitor<Definition> visitor) boolean
accept
(Visitor<Definition> visitor, SmartVisitation<Definition> visitation) boolean
canAdd()
Returns true if this item can be added: it can be part of an object that is created.boolean
Is adding allowed (at specified layer)?boolean
Returns true if this item can be modified (updated).boolean
Is modification allowed (at specified layer)?boolean
canRead()
Returns true if this item can be read (displayed).boolean
Is reading allowed (at specified layer)?clone()
debugDump
(int indent) Provides a debug dump respective to the given layer.boolean
protected abstract void
<A> A
getAnnotation
(QName qname) Returns generic definition annotation.Returns all annotations, as unmodifiable map.@Nullable ItemChangeApplicationModeType
@NotNull LayerType
Gets the current point-of-view: on which layer do we look at the data?abstract String
Return a human readable name of this class suitable for logs.Gets the (configured) attribute description.Enumeration annotation that specifies how/whether the item should be displayed.Returns display name.Specifies an order in which the item should be displayed relative to other items at the same level.Must containstag because of html tags used in text. Returns only a first sentence of documentation.@NotNull AttributeFetchStrategyType
Returns configured fetch strategy.Returns name of the attribute as given in the connector framework.getHelp()
Returns help string.@NotNull List<InboundMappingType>
Gets the inbound mappings (if any).Gets patterns for values that are not "tolerated" on the resource.@NotNull ItemName
Gets the "canonical" name of the item for the definition.@Nullable String
getLimitations
(LayerType layer) Returns limitations (cardinality, access rights, processing) for given layer.int
Returns the number of maximal value occurrences.int
getMaxOccurs
(LayerType layer) Gets `maxOccurs` limitation for given layer.@Nullable String
@Nullable ItemMerger
getMergerInstance
(@NotNull MergeStrategy strategy, @Nullable OriginMarker originMarker) int
Returns the number of minimal value occurrences.int
getMinOccurs
(LayerType layer) Gets `minOccurs` limitation for given layer.Determines the order in which this attribute should be modified (in very special cases).Returns native attribute name.@Nullable NaturalKeyDefinition
@Nullable MappingType
Gets the outbound mapping, if defined.Level of processing (ignore, minimal, auto, full) for this item/type.getProcessing
(LayerType layer) Gets the level of processing for specified layer.Should be this attribute modified solely in "replace" mode?@Nullable Boolean
Is this attribute returned by default? (I.e.@NotNull AttributeStorageStrategyType
Returns configured storage strategy.Gets patterns for values that are "tolerated" on the resource.int
hashCode()
boolean
Returns `true` if there are any refinements (like in `schemaHandling`).instantiate
(QName name) boolean
For types: is the type abstract so that it should not be instantiated directly? For items: TODOboolean
isCached()
If present, it overrides the inclusion/exclusion of this item in/from the shadow caching.boolean
boolean
Elaborate items are complicated data structure that may deviate from normal principles of the system.boolean
True for definitions that are more important than others and that should be emphasized during presentation.boolean
Drives behavior of strong and normal mappings for this attribute.boolean
This is XSD annotation that specifies whether a property should be indexed in the storage.boolean
If true, this item is not stored in XML representation in repo.boolean
boolean
boolean
Marks item that could be ignored by SCM tools (e.g.boolean
This means that this particular definition (of an item or of a type) is part of the runtime schema, e.g.boolean
When set to true, allows to preserve attribute values that are set outside midPoint.boolean
This attribute may get unexpected values when the object is created on the resource.boolean
This attribute may get unexpected values when the object is updated on the resource, regardless of what attributes are modified and in what way.boolean
Is this attribute so-called volatility trigger, i.e.void
<A> void
setAnnotation
(QName qname, A value) void
setOverrideCanAdd
(Boolean value) Provides a value that will overrideShadowItemLayeredDefinition.canAdd(LayerType)
return values (for all layers).void
setOverrideCanModify
(Boolean value) Provides a value that will overrideShadowItemLayeredDefinition.canModify(LayerType)
return values (for all layers).void
setOverrideCanRead
(Boolean value) Provides a value that will overrideShadowItemLayeredDefinition.canRead(LayerType)
return values (for all layers).void
Show the content of the object intended for diagnostics.toString()
Methods inherited from class com.evolveum.midpoint.prism.AbstractFreezable
freeze, freeze, freezeAll, freezeNullableList, isImmutable, isMutable
Methods inherited from class java.lang.Object
finalize, getClass, 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, getMutabilityFlag, getSchemaContextDefinition, getTypeName, mutator
Methods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutable, freeze, isImmutable
Methods inherited from interface com.evolveum.midpoint.prism.PrismItemAccessDefinition
getInfo
Methods inherited from interface com.evolveum.midpoint.prism.PrismItemBasicDefinition
getTypeName, isMandatory, isMultiValue, isOptional, isSingleValue
Methods inherited from interface com.evolveum.midpoint.prism.PrismItemStorageDefinition
isSearchable
Methods inherited from interface com.evolveum.midpoint.schema.processor.ResourceObjectInboundProcessingDefinition.ItemInboundProcessingDefinition
getCorrelatorDefinition
Methods inherited from interface com.evolveum.midpoint.schema.processor.ShadowAttributeDefinition
createPrismValueFromRealValue, forLayer, getHumanReadableDescription, getStandardPath, getTypeClass, hasOutboundMapping, instantiateFrom, instantiateFromRealValue, instantiateFromRealValues, isEffectivelyCached, isIgnored, isReturnedByDefault, isSimulated, isVisible
Methods inherited from interface com.evolveum.midpoint.schema.processor.ShadowItemDefinition
isVisible
Methods inherited from interface com.evolveum.midpoint.schema.processor.ShadowItemLayeredDefinition
isMandatory, isMultiValue, isOptional, isSingleValue
Methods inherited from interface com.evolveum.midpoint.schema.processor.ShadowItemLifecycleDefinitionDefaults
getDeprecatedSince, getPlannedRemoval, getRemovedSince, isDeprecated, isExperimental, isRemoved
Methods inherited from interface com.evolveum.midpoint.util.ShortDumpable
shortDump, shortDumpLazily
-
Method Details
-
isTolerant
public boolean isTolerant()Description copied from interface:ShadowAttributeDefinition
When set to true, allows to preserve attribute values that are set outside midPoint.- Specified by:
isTolerant
in interfaceShadowAttributeDefinition<V extends PrismValue,
D extends ShadowAttributeDefinition<V, D, RV, SA>, RV, SA extends ShadowAttribute<V, D, RV, SA>> - See Also:
-
canAdd
public boolean canAdd()Description copied from interface:PrismItemAccessDefinition
Returns true if this item can be added: it can be part of an object that is created. In case of containers this means that the container itself should be displayed in creation forms E.g. that the container label or block should be displayed. This usually happens if the container contains at least one createable item. This does NOT mean that also all the container items can be created. The sub-item permissions are controlled by similar properties on the items. This property only applies to the container itself: the "shell" of the container.- Specified by:
canAdd
in interfacePrismItemAccessDefinition
-
canAdd
Description copied from interface:ShadowItemLayeredDefinition
Is adding allowed (at specified layer)?- Specified by:
canAdd
in interfaceShadowItemLayeredDefinition
- See Also:
-
canRead
public boolean canRead()Description copied from interface:PrismItemAccessDefinition
Returns true if this item can be read (displayed). In case of containers this flag is, strictly speaking, not applicable. Container is an empty shell. What matters is access to individual sub-item. However, for containers this value has a "hint" meaning. It means that the container itself contains something that is readable. Which can be used as a hint by the presentation to display container label or block. This usually happens if the container contains at least one readable item. This does NOT mean that also all the container items can be displayed. The sub-item permissions are controlled by similar properties on the items. This property only applies to the container itself: the "shell" of the container. Note: It was considered to use a different meaning for this flag - a meaning that would allow canRead()=false containers to have readable items. However, this was found not to be very useful. Therefore the "something readable inside" meaning was confirmed instead.- Specified by:
canRead
in interfacePrismItemAccessDefinition
-
canRead
Description copied from interface:ShadowItemLayeredDefinition
Is reading allowed (at specified layer)?- Specified by:
canRead
in interfaceShadowItemLayeredDefinition
- See Also:
-
canModify
public boolean canModify()Description copied from interface:PrismItemAccessDefinition
Returns true if this item can be modified (updated). In case of containers this means that the container itself should be displayed in modification forms E.g. that the container label or block should be displayed. This usually happens if the container contains at least one modifiable item. This does NOT mean that also all the container items can be modified. The sub-item permissions are controlled by similar properties on the items. This property only applies to the container itself: the "shell" of the container.- Specified by:
canModify
in interfacePrismItemAccessDefinition
-
canModify
Description copied from interface:ShadowItemLayeredDefinition
Is modification allowed (at specified layer)?- Specified by:
canModify
in interfaceShadowItemLayeredDefinition
- See Also:
-
setOverrideCanRead
Description copied from interface:ShadowAttributeDefinition
Provides a value that will overrideShadowItemLayeredDefinition.canRead(LayerType)
return values (for all layers). Used e.g. when applying authorizations on the definition.- Specified by:
setOverrideCanRead
in interfaceShadowAttributeDefinition<V extends PrismValue,
D extends ShadowAttributeDefinition<V, D, RV, SA>, RV, SA extends ShadowAttribute<V, D, RV, SA>>
-
setOverrideCanAdd
Description copied from interface:ShadowAttributeDefinition
Provides a value that will overrideShadowItemLayeredDefinition.canAdd(LayerType)
return values (for all layers). Used e.g. when applying authorizations on the definition.- Specified by:
setOverrideCanAdd
in interfaceShadowAttributeDefinition<V extends PrismValue,
D extends ShadowAttributeDefinition<V, D, RV, SA>, RV, SA extends ShadowAttribute<V, D, RV, SA>>
-
setOverrideCanModify
Description copied from interface:ShadowAttributeDefinition
Provides a value that will overrideShadowItemLayeredDefinition.canModify(LayerType)
return values (for all layers). Used e.g. when applying authorizations on the definition.- Specified by:
setOverrideCanModify
in interfaceShadowAttributeDefinition<V extends PrismValue,
D extends ShadowAttributeDefinition<V, D, RV, SA>, RV, SA extends ShadowAttribute<V, D, RV, SA>>
-
getDisplayHint
Description copied from interface:PrismPresentationDefinition
Enumeration annotation that specifies how/whether the item should be displayed. It is also a replacement for the old "emphasized" annotation.- Specified by:
getDisplayHint
in interfacePrismPresentationDefinition
-
isEmphasized
public boolean isEmphasized()Description copied from interface:PrismPresentationDefinition
True for definitions that are more important than others and that should be emphasized during presentation. E.g. the emphasized definitions will always be displayed in the user interfaces (even if they are empty), they will always be included in the dumps, etc. TODO probably deprecated, isn't it?- Specified by:
isEmphasized
in interfacePrismPresentationDefinition
-
getProcessing
Description copied from interface:PrismItemMiscDefinition
Level of processing (ignore, minimal, auto, full) for this item/type.- Specified by:
getProcessing
in interfacePrismItemMiscDefinition
-
getProcessing
Description copied from interface:ShadowItemLayeredDefinition
Gets the level of processing for specified layer.- Specified by:
getProcessing
in interfaceShadowItemLayeredDefinition
- See Also:
-
getDisplayName
Description copied from interface:PrismPresentationDefinition
Returns display name. Specifies the printable name of the object class or attribute. It must contain a printable string. It may also contain a key to catalog file. Returns null if no display name is set. Corresponds to "displayName" XSD annotation.- Specified by:
getDisplayName
in interfacePrismPresentationDefinition
- Returns:
- display name string or catalog key
-
getDisplayOrder
Description copied from interface:PrismPresentationDefinition
Specifies an order in which the item should be displayed relative to other items at the same level. The items will be displayed by sorting them by the values of displayOrder annotation (ascending). Items that do not have any displayOrder annotation will be displayed last. The ordering of values with the same displayOrder is undefined and it may be arbitrary.- Specified by:
getDisplayOrder
in interfacePrismPresentationDefinition
-
getHelp
Description copied from interface:PrismPresentationDefinition
Returns help string. Specifies the help text or a key to catalog file for a help text. The help text may be displayed in any suitable way by the GUI. It should explain the meaning of an attribute or object class. Returns null if no help string is set. Corresponds to "help" XSD annotation.- Specified by:
getHelp
in interfacePrismPresentationDefinition
- Returns:
- help string or catalog key
-
getDescription
Description copied from interface:ShadowAttributeDefinition
Gets the (configured) attribute description.- Specified by:
getDescription
in interfaceShadowAttributeDefinition<V extends PrismValue,
D extends ShadowAttributeDefinition<V, D, RV, SA>, RV, SA extends ShadowAttribute<V, D, RV, SA>> - See Also:
-
getOutboundMappingBean
Description copied from interface:ShadowAttributeDefinition
Gets the outbound mapping, if defined.- Specified by:
getOutboundMappingBean
in interfaceShadowAttributeDefinition<V extends PrismValue,
D extends ShadowAttributeDefinition<V, D, RV, SA>, RV, SA extends ShadowAttribute<V, D, RV, SA>> - See Also:
-
getInboundMappingBeans
Description copied from interface:ShadowAttributeDefinition
Gets the inbound mappings (if any).- Specified by:
getInboundMappingBeans
in interfaceResourceObjectInboundProcessingDefinition.ItemInboundProcessingDefinition
- Specified by:
getInboundMappingBeans
in interfaceShadowAttributeDefinition<V extends PrismValue,
D extends ShadowAttributeDefinition<V, D, RV, SA>, RV, SA extends ShadowAttribute<V, D, RV, SA>> - See Also:
-
getReturnedByDefault
Description copied from interface:ShadowAttributeUcfDefinition
Is this attribute returned by default? (I.e. if no specific options are sent to the connector?)- Specified by:
getReturnedByDefault
in interfaceShadowAttributeUcfDefinition
-
getNativeAttributeName
Description copied from interface:ShadowAttributeUcfDefinition
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.- Specified by:
getNativeAttributeName
in interfaceShadowAttributeUcfDefinition
- Returns:
- native attribute name
-
getFrameworkAttributeName
Description copied from interface:ShadowAttributeUcfDefinition
Returns 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:
getFrameworkAttributeName
in interfaceShadowAttributeUcfDefinition
- Returns:
- name of the attribute as given in the connector framework.
-
instantiate
- Specified by:
instantiate
in interfaceShadowAttributeDefinition<V extends PrismValue,
D extends ShadowAttributeDefinition<V, D, RV, SA>, RV, SA extends ShadowAttribute<V, D, RV, SA>>
-
instantiate
- Specified by:
instantiate
in interfaceShadowAttributeDefinition<V extends PrismValue,
D extends ShadowAttributeDefinition<V, D, RV, SA>, RV, SA extends ShadowAttribute<V, D, RV, SA>>
-
getMaxOccurs
public int getMaxOccurs()Description copied from interface:PrismItemBasicDefinition
Returns the number of maximal value occurrences. Any negative number means "unbounded".- Specified by:
getMaxOccurs
in interfacePrismItemBasicDefinition
-
getMaxOccurs
Description copied from interface:ShadowItemLayeredDefinition
Gets `maxOccurs` limitation for given layer.- Specified by:
getMaxOccurs
in interfaceShadowItemLayeredDefinition
- See Also:
-
getItemName
Description copied from interface:PrismItemBasicDefinition
Gets the "canonical" name of the item for the definition. Should be qualified, if at all possible.- Specified by:
getItemName
in interfacePrismItemBasicDefinition
-
getMinOccurs
public int getMinOccurs()Description copied from interface:PrismItemBasicDefinition
Returns the number of minimal value occurrences.- Specified by:
getMinOccurs
in interfacePrismItemBasicDefinition
-
getMinOccurs
Description copied from interface:ShadowItemLayeredDefinition
Gets `minOccurs` limitation for given layer.- Specified by:
getMinOccurs
in interfaceShadowItemLayeredDefinition
-
isExclusiveStrong
public boolean isExclusiveStrong()Description copied from interface:ShadowAttributeDefinition
Drives behavior of strong and normal mappings for this attribute.- Specified by:
isExclusiveStrong
in interfaceShadowAttributeDefinition<V extends PrismValue,
D extends ShadowAttributeDefinition<V, D, RV, SA>, RV, SA extends ShadowAttribute<V, D, RV, SA>> - See Also:
-
getLimitations
Description copied from interface:ShadowItemLayeredDefinition
Returns limitations (cardinality, access rights, processing) for given layer. These are obtained from resource and/or explicitly configured.- Specified by:
getLimitations
in interfaceShadowItemLayeredDefinition
- See Also:
-
getDocumentation
Description copied from interface:PrismPresentationDefinition
Must containstag because of html tags used in text. - Specified by:
getDocumentation
in interfacePrismPresentationDefinition
-
getDocumentationPreview
Description copied from interface:PrismPresentationDefinition
Returns only a first sentence of documentation.- Specified by:
getDocumentationPreview
in interfacePrismPresentationDefinition
-
getFetchStrategy
Description copied from interface:ShadowAttributeDefinition
Returns configured fetch strategy.- Specified by:
getFetchStrategy
in interfaceShadowAttributeDefinition<V extends PrismValue,
D extends ShadowAttributeDefinition<V, D, RV, SA>, RV, SA extends ShadowAttribute<V, D, RV, SA>> - See Also:
-
getStorageStrategy
Description copied from interface:ShadowAttributeDefinition
Returns configured storage strategy.- Specified by:
getStorageStrategy
in interfaceShadowAttributeDefinition<V extends PrismValue,
D extends ShadowAttributeDefinition<V, D, RV, SA>, RV, SA extends ShadowAttribute<V, D, RV, SA>> - See Also:
-
isIndexOnly
public boolean isIndexOnly()Description copied from interface:PrismItemStorageDefinition
If true, this item is not stored in XML representation in repo. TODO better name- Specified by:
isIndexOnly
in interfacePrismItemStorageDefinition
-
isCached
Description copied from interface:ShadowAttributeDefinition
If present, it overrides the inclusion/exclusion of this item in/from the shadow caching. Please use theShadowAttributeDefinition.isEffectivelyCached(ResourceObjectDefinition)
method to determine the effective caching status.- Specified by:
isCached
in interfaceShadowAttributeDefinition<V extends PrismValue,
D extends ShadowAttributeDefinition<V, D, RV, SA>, RV, SA extends ShadowAttribute<V, D, RV, SA>>
-
getTolerantValuePatterns
Description copied from interface:ShadowAttributeDefinition
Gets patterns for values that are "tolerated" on the resource.- Specified by:
getTolerantValuePatterns
in interfaceShadowAttributeDefinition<V extends PrismValue,
D extends ShadowAttributeDefinition<V, D, RV, SA>, RV, SA extends ShadowAttribute<V, D, RV, SA>> - See Also:
-
getIntolerantValuePatterns
Description copied from interface:ShadowAttributeDefinition
Gets patterns for values that are not "tolerated" on the resource.- Specified by:
getIntolerantValuePatterns
in interfaceShadowAttributeDefinition<V extends PrismValue,
D extends ShadowAttributeDefinition<V, D, RV, SA>, RV, SA extends ShadowAttribute<V, D, RV, SA>> - See Also:
-
isVolatilityTrigger
public boolean isVolatilityTrigger()Description copied from interface:ShadowAttributeDefinition
Is this attribute so-called volatility trigger, i.e. may its changes cause changes in other attributes?- Specified by:
isVolatilityTrigger
in interfaceShadowAttributeDefinition<V extends PrismValue,
D extends ShadowAttributeDefinition<V, D, RV, SA>, RV, SA extends ShadowAttribute<V, D, RV, SA>> - See Also:
-
isVolatileOnAddOperation
public boolean isVolatileOnAddOperation()Description copied from interface:ShadowAttributeDefinition
This attribute may get unexpected values when the object is created on the resource. (Regardless of whether any value is provided by the client. These subtle cases may get distinguished later.)- Specified by:
isVolatileOnAddOperation
in interfaceShadowAttributeDefinition<V extends PrismValue,
D extends ShadowAttributeDefinition<V, D, RV, SA>, RV, SA extends ShadowAttribute<V, D, RV, SA>>
-
isVolatileOnModifyOperation
public boolean isVolatileOnModifyOperation()Description copied from interface:ShadowAttributeDefinition
This attribute may get unexpected values when the object is updated on the resource, regardless of what attributes are modified and in what way.- Specified by:
isVolatileOnModifyOperation
in interfaceShadowAttributeDefinition<V extends PrismValue,
D extends ShadowAttributeDefinition<V, D, RV, SA>, RV, SA extends ShadowAttribute<V, D, RV, SA>>
-
toString
-
extendToString
-
getDebugDumpClassName
Return a human readable name of this class suitable for logs. -
debugDump
- Specified by:
debugDump
in interfaceDebugDumpable
-
debugDump
Description copied from interface:ShadowAttributeDefinition
Provides a debug dump respective to the given layer.- Specified by:
debugDump
in interfaceShadowAttributeDefinition<V extends PrismValue,
D extends ShadowAttributeDefinition<V, D, RV, SA>, RV, SA extends ShadowAttribute<V, D, RV, SA>>
-
getModificationPriority
Description copied from interface:ShadowAttributeDefinition
Determines the order in which this attribute should be modified (in very special cases).- Specified by:
getModificationPriority
in interfaceShadowAttributeDefinition<V extends PrismValue,
D extends ShadowAttributeDefinition<V, D, RV, SA>, RV, SA extends ShadowAttribute<V, D, RV, SA>> - See Also:
-
getReadReplaceMode
Description copied from interface:ShadowAttributeDefinition
Should be this attribute modified solely in "replace" mode?- Specified by:
getReadReplaceMode
in interfaceShadowAttributeDefinition<V extends PrismValue,
D extends ShadowAttributeDefinition<V, D, RV, SA>, RV, SA extends ShadowAttribute<V, D, RV, SA>> - See Also:
-
getChangeApplicationMode
- Specified by:
getChangeApplicationMode
in interfaceShadowAttributeDefinition<V extends PrismValue,
D extends ShadowAttributeDefinition<V, D, RV, SA>, RV, SA extends ShadowAttribute<V, D, RV, SA>> - See Also:
-
getLifecycleState
- Specified by:
getLifecycleState
in interfaceShadowAttributeDefinition<V extends PrismValue,
D extends ShadowAttributeDefinition<V, D, RV, SA>, RV, SA extends ShadowAttribute<V, D, RV, SA>> - Specified by:
getLifecycleState
in interfaceShadowItemDefinition
- See Also:
-
structuredType
-
performFreeze
public void performFreeze()- Overrides:
performFreeze
in classAbstractFreezable
-
accept
- Specified by:
accept
in interfaceSmartVisitable<V extends PrismValue>
- Returns:
- false if we already was here
-
equals
-
hashCode
public int hashCode() -
getCurrentLayer
Description copied from interface:LayeredDefinition
Gets the current point-of-view: on which layer do we look at the data?- Specified by:
getCurrentLayer
in interfaceLayeredDefinition
-
isRuntimeSchema
public boolean isRuntimeSchema()Description copied from interface:Definition
This means that this particular definition (of an item or of a type) is part of the runtime schema, e.g. extension schema, resource schema or connector schema or something like that. I.e. it is not defined statically.- Specified by:
isRuntimeSchema
in interfaceDefinition
-
getAnnotation
Description copied from interface:Definition
Returns generic definition annotation. Annotations are a method to extend schema definitions. This may be annotation stored in the schema definition file (e.g. XSD) or it may be a dynamic annotation determined at run-time. Annotation value should be a prism-supported object. E.g. a prims "bean" (JAXB annotated class), prism item, prism value or something like that. EXPERIMENTAL. Hic sunt leones. This may change at any moment. Note: annotations are only partially supported now (3.8). They are somehow transient. E.g. they are not serialized to XSD schema definitions (yet).- Specified by:
getAnnotation
in interfaceDefinition
-
hasRefinements
public boolean hasRefinements()Description copied from interface:ShadowAttributeDefinition
Returns `true` if there are any refinements (like in `schemaHandling`).- Specified by:
hasRefinements
in interfaceShadowAttributeDefinition<V extends PrismValue,
D extends ShadowAttributeDefinition<V, D, RV, SA>, RV, SA extends ShadowAttribute<V, D, RV, SA>>
-
accept
- Specified by:
accept
in interfaceVisitable<V extends PrismValue>
-
shortDump
Description copied from interface:ShortDumpable
Show the content of the object intended for diagnostics. This method is supposed to append a compact, human-readable output in a single line. Unlike toString() method, there is no requirement to identify the actual class or type of the object. It is assumed that the class/type will be obvious from the context in which the output is used.- Specified by:
shortDump
in interfaceShortDumpable
- Parameters:
sb
- StringBuilder to which to a compact one-line content of the object intended for diagnostics by system administrator should be appended.
-
isAbstract
public boolean isAbstract()Description copied from interface:Definition
For types: is the type abstract so that it should not be instantiated directly? For items: TODO- Specified by:
isAbstract
in interfaceDefinition
-
isElaborate
public boolean isElaborate()Description copied from interface:Definition
Elaborate items are complicated data structure that may deviate from normal principles of the system. For example elaborate items may not be supported in user interface and may only be manageable by raw edits or a special-purpose tools. Elaborate items may be not fully supported by authorizations, schema tools and so on.- Specified by:
isElaborate
in interfaceDefinition
-
isOperational
public boolean isOperational() -
isInherited
public boolean isInherited() -
isDynamic
public boolean isDynamic() -
getSubstitutionHead
-
isHeterogeneousListItem
public boolean isHeterogeneousListItem() -
getValueEnumerationRef
-
getSchemaMigrations
- Specified by:
getSchemaMigrations
in interfacePrismLifecycleDefinition
-
getDiagrams
- Specified by:
getDiagrams
in interfacePrismPresentationDefinition
-
setAnnotation
-
getAnnotations
Description copied from interface:Definition
Returns all annotations, as unmodifiable map. Nullable by design, to avoid creating lots of empty maps.- Specified by:
getAnnotations
in interfaceDefinition
-
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
-
isOptionalCleanup
public boolean isOptionalCleanup()Description copied from interface:Definition
Marks item that could be ignored by SCM tools (e.g. Git), or removed before commit.- Specified by:
isOptionalCleanup
in interfaceDefinition
-
isAlwaysUseForEquals
public boolean isAlwaysUseForEquals() -
getMergerIdentifier
- Specified by:
getMergerIdentifier
in interfaceDefinition
-
getMergerInstance
@Nullable public @Nullable ItemMerger getMergerInstance(@NotNull @NotNull MergeStrategy strategy, @Nullable @Nullable OriginMarker originMarker) - Specified by:
getMergerInstance
in interfaceDefinition
-
getNaturalKeyConstituents
- Specified by:
getNaturalKeyConstituents
in interfaceDefinition
-
getNaturalKeyInstance
- Specified by:
getNaturalKeyInstance
in interfaceDefinition
-
clone
- Specified by:
clone
in interfaceDefinition
- Specified by:
clone
in interfaceShadowAttributeDefinition<V extends PrismValue,
D extends ShadowAttributeDefinition<V, D, RV, SA>, RV, SA extends ShadowAttribute<V, D, RV, SA>> - Overrides:
clone
in classObject
-