Class ResourceAttributeWrapperImpl<T>
java.lang.Object
com.evolveum.midpoint.gui.impl.prism.wrapper.ItemWrapperImpl<PrismProperty<T>,PrismPropertyValueWrapper<T>>
com.evolveum.midpoint.gui.impl.prism.wrapper.PrismPropertyWrapperImpl<T>
com.evolveum.midpoint.gui.impl.prism.wrapper.ResourceAttributeWrapperImpl<T>
- All Implemented Interfaces:
ItemWrapper<PrismProperty<T>,
,PrismPropertyValueWrapper<T>> PrismPropertyWrapper<T>
,ResourceAttributeWrapper<T>
,Definition
,Freezable
,ItemDefinition<PrismProperty<T>>
,LivePrismItemDefinition
,PrismItemAccessDefinition
,PrismItemBasicDefinition
,PrismItemInstantiableDefinition<T,
,PrismPropertyValue<T>, PrismProperty<T>, PrismPropertyDefinition<T>, PropertyDelta<T>> PrismItemMatchingDefinition<T>
,PrismItemMiscDefinition
,PrismItemStorageDefinition
,PrismItemValuesDefinition<T>
,PrismLifecycleDefinition
,PrismPresentationDefinition
,PrismPropertyDefinition<T>
,Revivable
,SchemaLookup.Aware
,SmartVisitable<Definition>
,Visitable<Definition>
,LayeredDefinition
,ResourceObjectInboundDefinition.ItemInboundDefinition
,ShadowAttributeDefinition<PrismPropertyValue<T>,
,ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>> ShadowAttributeUcfDefinition
,ShadowItemDefinition
,ShadowItemLayeredDefinition
,ShadowSimpleAttributeDefinition<T>
,DebugDumpable
,ShortDumpable
,Serializable
,Cloneable
public class ResourceAttributeWrapperImpl<T>
extends PrismPropertyWrapperImpl<T>
implements ResourceAttributeWrapper<T>
- Author:
- skublik
- See Also:
-
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.ItemDefinition
ItemDefinition.ItemDefinitionLikeBuilder, ItemDefinition.ItemDefinitionMutator
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.PrismItemMatchingDefinition
PrismItemMatchingDefinition.Data<T>, PrismItemMatchingDefinition.Delegable<T>, PrismItemMatchingDefinition.Mutator
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.PrismItemValuesDefinition
PrismItemValuesDefinition.Data<T>, PrismItemValuesDefinition.Delegable<T>, PrismItemValuesDefinition.Mutator<T>
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.prism.PrismPropertyDefinition
PrismPropertyDefinition.PrismPropertyDefinitionMutator<T>, PrismPropertyDefinition.PrismPropertyLikeDefinitionBuilder<T>
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
-
Constructor Summary
ConstructorDescriptionResourceAttributeWrapperImpl
(PrismContainerValueWrapper<?> parent, ShadowSimpleAttribute<T> item, ItemStatus status) -
Method Summary
Modifier and TypeMethodDescriptionboolean
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)?@NotNull ShadowSimpleAttributeDefinition<T>
clone()
createPrismValueFromRealValue
(@NotNull Object realValue) debugDump
(int indent) Provides a debug dump respective to the given layer.deepClone
(@NotNull DeepCloneOperation operation) TODO document@NotNull ShadowSimpleAttributeDefinition<T>
Creates a view of the current definition for a given layer.@Nullable ItemChangeApplicationModeType
TODO@NotNull LayerType
Gets the current point-of-view: on which layer do we look at the data?Gets the (configured) attribute description.@NotNull AttributeFetchStrategyType
Returns configured fetch strategy.Returns name of the attribute as given in the connector framework.@NotNull List<InboundMappingType>
Gets the inbound mappings (if any).Gets patterns for values that are not "tolerated" on the resource.@Nullable String
TODOgetLimitations
(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.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 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.@Nullable SchemaContextDefinition
@NotNull AttributeStorageStrategyType
Returns configured storage strategy.Gets patterns for values that are "tolerated" on the resource.boolean
Returns `true` if there are any refinements (like in `schemaHandling`).@NotNull ShadowSimpleAttribute<T>
Create an item instance.@NotNull ShadowSimpleAttribute<T>
instantiate
(QName name) Create an item instance.isCached()
If present, it overrides the inclusion/exclusion of this item in/from the shadow caching.boolean
Is this attribute configured to serve as a display name?boolean
Drives behavior of strong and normal mappings for this attribute.boolean
Is this attribute designated as a secondary identifier via `schemaHandling`?boolean
If `true`, the item does not exist on the resource, but is simulated by midPoint.boolean
When set to true, allows to preserve attribute values that are set outside midPoint.boolean
Is this attribute so-called volatility trigger, i.e.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.Returns complex type definition of item, if underlying value is possible structured.Methods inherited from class com.evolveum.midpoint.gui.impl.prism.wrapper.PrismPropertyWrapperImpl
accept, accept, cloneWithNewName, createEmptyDelta, createNewEmptyValue, defaultValue, freeze, getAllowedValues, getItemDefinition, getMatchingRule, getMatchingRuleQName, getPredefinedValuesOid, getSuggestedValues, getTypeClass, isEmpty, isImmutable, isIndexed, mutator, setPredefinedValuesOid
Methods inherited from class com.evolveum.midpoint.gui.impl.prism.wrapper.ItemWrapperImpl
add, addValueToDelta, checkRequired, computeDeltaInternal, debugDumpShortToString, findItemDefinition, findObjectStatus, findObjectWrapper, getAnnotation, getAnnotations, getDelta, getDeprecatedSince, getDiagrams, getDisplayHint, getDisplayName, getDisplayOrder, getDocumentation, getDocumentationPreview, getFormComponentValidator, getHelp, getItem, getItemName, getMergerIdentifier, getMergerInstance, getNaturalKeyConstituents, getNaturalKeyInstance, getOldItem, getParent, getParentContainerValue, getPath, getPlannedRemoval, getPreconditionDeltas, getRemovedSince, getSchemaMigrations, getStatus, getSubstitutionHead, getTypeName, getValue, getValueEnumerationRef, getValues, getVisibleOverwrite, isAbstract, isAlwaysUseForEquals, isColumn, isDeprecated, isDynamic, isElaborate, isEmphasized, isExperimental, isHeterogeneousListItem, isIndexOnly, isInherited, isMetadata, isOperational, isOptionalCleanup, isProcessProvenanceMetadata, isReadOnly, isRemoved, isRuntimeSchema, isShowEmpty, isShowInVirtualContainer, isShowMetadataDetails, isValidated, isValidFor, isVisible, isVisibleByVisibilityHandler, remove, removeAll, revive, setColumn, setDisplayName, setDisplayOrder, setMetadata, setProcessProvenanceMetadata, setReadOnly, setShowEmpty, setShowInVirtualContainer, setShowMetadataDetails, setValidated, setVisibleOverwrite, toString
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, 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, getAnnotation, getAnnotations, getMergerIdentifier, getMergerInstance, getMutabilityFlag, getNaturalKeyConstituents, getNaturalKeyInstance, getTypeName, isAbstract, isElaborate, isOptionalCleanup, isRuntimeSchema
Methods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutable, freeze, isImmutable
Methods inherited from interface com.evolveum.midpoint.prism.ItemDefinition
cloneWithNewName, createEmptyDelta, debugDumpShortToString, getSubstitutionHead, getValueEnumerationRef, isAlwaysUseForEquals, isDynamic, isHeterogeneousListItem, isInherited, isOperational
Methods inherited from interface com.evolveum.midpoint.gui.api.prism.wrapper.ItemWrapper
add, checkRequired, findObjectStatus, findObjectWrapper, getDelta, getFormComponentValidator, getItem, getParent, getParentContainerValue, getPath, getPreconditionDeltas, getStatus, getValue, getValues, getVisibleOverwrite, isColumn, isEmpty, isMetadata, isProcessProvenanceMetadata, isReadOnly, isShowEmpty, isShowInVirtualContainer, isShowMetadataDetails, isValidated, isVisible, remove, removeAll, setColumn, setMetadata, setProcessProvenanceMetadata, setReadOnly, setShowEmpty, setShowInVirtualContainer, setShowMetadataDetails, setValidated, setVisibleOverwrite
Methods inherited from interface com.evolveum.midpoint.prism.LivePrismItemDefinition
isValidFor
Methods inherited from interface com.evolveum.midpoint.prism.PrismItemAccessDefinition
getInfo
Methods inherited from interface com.evolveum.midpoint.prism.PrismItemBasicDefinition
getItemName, getTypeName, isMandatory, isMultiValue, isOptional, isSingleValue
Methods inherited from interface com.evolveum.midpoint.prism.PrismItemInstantiableDefinition
createEmptyDelta
Methods inherited from interface com.evolveum.midpoint.prism.PrismItemMatchingDefinition
getMatchingRule, getMatchingRuleQName, getNormalizer, getStringNormalizerForPolyStringProperty, getStringNormalizerIfApplicable, getTypeName, isCustomPolyString
Methods inherited from interface com.evolveum.midpoint.prism.PrismItemStorageDefinition
isIndexed, isIndexOnly, isSearchable
Methods inherited from interface com.evolveum.midpoint.prism.PrismItemValuesDefinition
defaultValue, getAllowedValues, getSuggestedValues, getValueEnumerationRef
Methods inherited from interface com.evolveum.midpoint.prism.PrismLifecycleDefinition
getDeprecatedSince, getPlannedRemoval, getRemovedSince, getSchemaMigrations, isDeprecated, isExperimental, isRemoved
Methods inherited from interface com.evolveum.midpoint.prism.PrismPresentationDefinition
getDiagrams, getDisplayHint, getDisplayName, getDisplayOrder, getDocumentation, getDocumentationPreview, getHelp, isEmphasized
Methods inherited from interface com.evolveum.midpoint.prism.PrismPropertyDefinition
convertStringValueToPolyString, getTypeClassLegacy, isAnyType
Methods inherited from interface com.evolveum.midpoint.gui.api.prism.wrapper.PrismPropertyWrapper
getPredefinedValuesOid, setPredefinedValuesOid
Methods inherited from interface com.evolveum.midpoint.prism.schema.SchemaLookup.Aware
schemaLookup
Methods inherited from interface com.evolveum.midpoint.schema.processor.ShadowAttributeDefinition
getStandardPath, hasOutboundMapping, instantiateFrom, instantiateFromRealValue, instantiateFromRealValues, isEffectivelyCached, isIgnored, isReturnedByDefault, isVisible, isVisible
Methods inherited from interface com.evolveum.midpoint.schema.processor.ShadowItemLayeredDefinition
isMandatory, isMultiValue, isOptional, isSingleValue
Methods inherited from interface com.evolveum.midpoint.schema.processor.ShadowSimpleAttributeDefinition
convertPrismValue, createEmptyDelta, findItemDefinition, getTypeClass, mutator, toNormalizationAware
Methods inherited from interface com.evolveum.midpoint.util.ShortDumpable
shortDump, shortDumpLazily
Methods inherited from interface com.evolveum.midpoint.prism.SmartVisitable
accept
-
Constructor Details
-
ResourceAttributeWrapperImpl
public ResourceAttributeWrapperImpl(PrismContainerValueWrapper<?> parent, ShadowSimpleAttribute<T> item, ItemStatus status)
-
-
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<PrismPropertyValue<T>,
ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>> - See Also:
-
isSecondaryIdentifierOverride
Description copied from interface:ShadowSimpleAttributeDefinition
Is this attribute designated as a secondary identifier via `schemaHandling`?- Specified by:
isSecondaryIdentifierOverride
in interfaceShadowSimpleAttributeDefinition<T>
- 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
- Overrides:
canAdd
in classItemWrapperImpl<PrismProperty<T>,
PrismPropertyValueWrapper<T>>
-
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
- Overrides:
canRead
in classItemWrapperImpl<PrismProperty<T>,
PrismPropertyValueWrapper<T>>
-
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
- Overrides:
canModify
in classItemWrapperImpl<PrismProperty<T>,
PrismPropertyValueWrapper<T>>
-
canModify
Description copied from interface:ShadowItemLayeredDefinition
Is modification allowed (at specified layer)?- Specified by:
canModify
in interfaceShadowItemLayeredDefinition
- See Also:
-
isIgnored
public boolean isIgnored()- Specified by:
isIgnored
in interfaceItemDefinition<T>
- Overrides:
isIgnored
in classItemWrapperImpl<PrismProperty<T>,
PrismPropertyValueWrapper<T>>
-
getProcessing
Description copied from interface:PrismItemMiscDefinition
Level of processing (ignore, minimal, auto, full) for this item/type.- Specified by:
getProcessing
in interfaceItemDefinition<T>
- Specified by:
getProcessing
in interfacePrismItemMiscDefinition
- Overrides:
getProcessing
in classItemWrapperImpl<PrismProperty<T>,
PrismPropertyValueWrapper<T>>
-
getProcessing
Description copied from interface:ShadowItemLayeredDefinition
Gets the level of processing for specified layer.- Specified by:
getProcessing
in interfaceShadowItemLayeredDefinition
- See Also:
-
getDescription
Description copied from interface:ShadowAttributeDefinition
Gets the (configured) attribute description.- Specified by:
getDescription
in interfaceShadowAttributeDefinition<PrismPropertyValue<T>,
ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>> - See Also:
-
getOutboundMappingBean
Description copied from interface:ShadowAttributeDefinition
Gets the outbound mapping, if defined.- Specified by:
getOutboundMappingBean
in interfaceShadowAttributeDefinition<PrismPropertyValue<T>,
ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>> - See Also:
-
getInboundMappingBeans
Description copied from interface:ShadowAttributeDefinition
Gets the inbound mappings (if any).- Specified by:
getInboundMappingBeans
in interfaceResourceObjectInboundDefinition.ItemInboundDefinition
- Specified by:
getInboundMappingBeans
in interfaceShadowAttributeDefinition<PrismPropertyValue<T>,
ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>> - See Also:
-
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
- Overrides:
getMaxOccurs
in classItemWrapperImpl<PrismProperty<T>,
PrismPropertyValueWrapper<T>>
-
getMaxOccurs
Description copied from interface:ShadowItemLayeredDefinition
Gets `maxOccurs` limitation for given layer.- Specified by:
getMaxOccurs
in interfaceShadowItemLayeredDefinition
- See Also:
-
getMinOccurs
public int getMinOccurs()Description copied from interface:PrismItemBasicDefinition
Returns the number of minimal value occurrences.- Specified by:
getMinOccurs
in interfacePrismItemBasicDefinition
- Overrides:
getMinOccurs
in classItemWrapperImpl<PrismProperty<T>,
PrismPropertyValueWrapper<T>>
-
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<PrismPropertyValue<T>,
ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>> - 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:
-
getFetchStrategy
Description copied from interface:ShadowAttributeDefinition
Returns configured fetch strategy.- Specified by:
getFetchStrategy
in interfaceShadowAttributeDefinition<PrismPropertyValue<T>,
ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>> - See Also:
-
getStorageStrategy
Description copied from interface:ShadowAttributeDefinition
Returns configured storage strategy.- Specified by:
getStorageStrategy
in interfaceShadowAttributeDefinition<PrismPropertyValue<T>,
ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>> - See Also:
-
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<PrismPropertyValue<T>,
ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>>
-
getTolerantValuePatterns
Description copied from interface:ShadowAttributeDefinition
Gets patterns for values that are "tolerated" on the resource. -
getIntolerantValuePatterns
Description copied from interface:ShadowAttributeDefinition
Gets patterns for values that are not "tolerated" on the resource. -
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<PrismPropertyValue<T>,
ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>> - See Also:
-
getSchemaContextDefinition
- Specified by:
getSchemaContextDefinition
in interfaceDefinition
- Overrides:
getSchemaContextDefinition
in classPrismPropertyWrapperImpl<T>
-
clone
- Specified by:
clone
in interfaceDefinition
- Specified by:
clone
in interfaceItemDefinition<T>
- Specified by:
clone
in interfacePrismPropertyDefinition<T>
- Specified by:
clone
in interfaceShadowAttributeDefinition<PrismPropertyValue<T>,
ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>> - Specified by:
clone
in interfaceShadowSimpleAttributeDefinition<T>
- Overrides:
clone
in classPrismPropertyWrapperImpl<T>
-
deepClone
Description copied from interface:ItemDefinition
TODO document- Specified by:
deepClone
in interfaceItemDefinition<T>
- Specified by:
deepClone
in interfaceResourceAttributeWrapper<T>
- Specified by:
deepClone
in interfaceShadowSimpleAttributeDefinition<T>
- Overrides:
deepClone
in classItemWrapperImpl<PrismProperty<T>,
PrismPropertyValueWrapper<T>>
-
debugDump
- Specified by:
debugDump
in interfaceDebugDumpable
- Specified by:
debugDump
in interfaceItemWrapper<PrismProperty<T>,
PrismPropertyValueWrapper<T>> - Overrides:
debugDump
in classItemWrapperImpl<PrismProperty<T>,
PrismPropertyValueWrapper<T>>
-
debugDump
Description copied from interface:ShadowAttributeDefinition
Provides a debug dump respective to the given layer. TODO reconsider this method- Specified by:
debugDump
in interfaceShadowAttributeDefinition<PrismPropertyValue<T>,
ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>>
-
forLayer
@NotNull public @NotNull ShadowSimpleAttributeDefinition<T> forLayer(@NotNull @NotNull LayerType layer) Description copied from interface:ShadowAttributeDefinition
Creates 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:
forLayer
in interfaceShadowAttributeDefinition<PrismPropertyValue<T>,
ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>> - Specified by:
forLayer
in interfaceShadowSimpleAttributeDefinition<T>
-
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<PrismPropertyValue<T>,
ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>>
-
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<PrismPropertyValue<T>,
ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>>
-
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<PrismPropertyValue<T>,
ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>>
-
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<PrismPropertyValue<T>,
ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>> - See Also:
-
getReadReplaceMode
Description copied from interface:ShadowAttributeDefinition
Should be this attribute modified solely in "replace" mode?- Specified by:
getReadReplaceMode
in interfaceShadowAttributeDefinition<PrismPropertyValue<T>,
ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>> - See Also:
-
isDisplayNameAttribute
public boolean isDisplayNameAttribute()Description copied from interface:ShadowSimpleAttributeDefinition
Is this attribute configured to serve as a display name?- Specified by:
isDisplayNameAttribute
in interfaceShadowSimpleAttributeDefinition<T>
- See Also:
-
getCorrelatorDefinition
- Specified by:
getCorrelatorDefinition
in interfaceResourceObjectInboundDefinition.ItemInboundDefinition
- Specified by:
getCorrelatorDefinition
in interfaceShadowSimpleAttributeDefinition<T>
- See Also:
-
getChangeApplicationMode
Description copied from interface:ShadowAttributeDefinition
TODO- Specified by:
getChangeApplicationMode
in interfaceShadowAttributeDefinition<PrismPropertyValue<T>,
ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>>
-
getLifecycleState
Description copied from interface:ShadowAttributeDefinition
TODO- Specified by:
getLifecycleState
in interfaceShadowAttributeDefinition<PrismPropertyValue<T>,
ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>>
-
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<T>
- Specified by:
instantiate
in interfacePrismItemInstantiableDefinition<T,
PrismPropertyValue<T>, PrismProperty<T>, PrismPropertyDefinition<T>, PropertyDelta<T>> - Specified by:
instantiate
in interfaceShadowAttributeDefinition<PrismPropertyValue<T>,
ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>> - Overrides:
instantiate
in classPrismPropertyWrapperImpl<T>
-
instantiate
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<T>
- Specified by:
instantiate
in interfacePrismItemInstantiableDefinition<T,
PrismPropertyValue<T>, PrismProperty<T>, PrismPropertyDefinition<T>, PropertyDelta<T>> - Specified by:
instantiate
in interfaceShadowAttributeDefinition<PrismPropertyValue<T>,
ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>> - Overrides:
instantiate
in classPrismPropertyWrapperImpl<T>
-
createPrismValueFromRealValue
public PrismPropertyValue<T> createPrismValueFromRealValue(@NotNull @NotNull Object realValue) throws SchemaException - Specified by:
createPrismValueFromRealValue
in interfaceShadowAttributeDefinition<PrismPropertyValue<T>,
ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>> - Throws:
SchemaException
-
getHumanReadableDescription
- Specified by:
getHumanReadableDescription
in interfaceShadowAttributeDefinition<PrismPropertyValue<T>,
ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>>
-
isSimulated
public boolean isSimulated()Description copied from interface:ShadowAttributeDefinition
If `true`, the item does not exist on the resource, but is simulated by midPoint.- Specified by:
isSimulated
in interfaceShadowAttributeDefinition<PrismPropertyValue<T>,
ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>>
-
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<T>
- Overrides:
structuredType
in classItemWrapperImpl<PrismProperty<T>,
PrismPropertyValueWrapper<T>>
-
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.
-
hasRefinements
public boolean hasRefinements()Description copied from interface:ShadowAttributeDefinition
Returns `true` if there are any refinements (like in `schemaHandling`).- Specified by:
hasRefinements
in interfaceShadowAttributeDefinition<PrismPropertyValue<T>,
ShadowSimpleAttributeDefinition<T>, T, ShadowSimpleAttribute<T>>
-
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
-
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.
-