Class TransformablePropertyDefinition.ResourceAttribute<T>
- java.lang.Object
-
- com.evolveum.midpoint.model.impl.schema.transform.TransformableDefinition
-
- com.evolveum.midpoint.model.impl.schema.transform.TransformableItemDefinition<PrismProperty<T>,PrismPropertyDefinition<T>>
-
- com.evolveum.midpoint.model.impl.schema.transform.TransformablePropertyDefinition<T>
-
- com.evolveum.midpoint.model.impl.schema.transform.TransformablePropertyDefinition.ResourceAttribute<T>
-
- All Implemented Interfaces:
PartiallyMutableItemDefinition<PrismProperty<T>>
,PartiallyMutableItemDefinition.Attribute<T>
,PartiallyMutableItemDefinition.Property<T>
,Definition
,DefinitionDelegator
,ItemDefinitionDelegator<PrismProperty<T>>
,PropertyDefinitionDelegator<T>
,Freezable
,ItemDefinition<PrismProperty<T>>
,MutableDefinition
,MutableItemDefinition<PrismProperty<T>>
,MutablePrismPropertyDefinition<T>
,PrismContextSensitive
,PrismItemAccessDefinition
,PrismItemAccessDefinition.Mutable
,PrismPropertyDefinition<T>
,Revivable
,SmartVisitable<Definition>
,Visitable<Definition>
,AttributeDefinitionDelegator<T>
,LayeredDefinition
,MutableRawResourceAttributeDefinition<T>
,RawResourceAttributeDefinition<T>
,ResourceAttributeDefinition<T>
,DebugDumpable
,Serializable
,Cloneable
- Direct Known Subclasses:
TransformablePropertyDefinition.RefinedAttribute
- Enclosing class:
- TransformablePropertyDefinition<T>
public static class TransformablePropertyDefinition.ResourceAttribute<T> extends TransformablePropertyDefinition<T> implements AttributeDefinitionDelegator<T>, PartiallyMutableItemDefinition.Attribute<T>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.evolveum.midpoint.model.impl.schema.transform.TransformablePropertyDefinition
TransformablePropertyDefinition.RefinedAttribute<T>, TransformablePropertyDefinition.ResourceAttribute<T>
-
Nested classes/interfaces inherited from interface com.evolveum.midpoint.model.impl.schema.transform.PartiallyMutableItemDefinition
PartiallyMutableItemDefinition.Attribute<T>, PartiallyMutableItemDefinition.Container<C extends Containerable>, PartiallyMutableItemDefinition.Property<T>, PartiallyMutableItemDefinition.Reference
-
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
-
-
Constructor Summary
Constructors Constructor Description ResourceAttribute(PrismPropertyDefinition<T> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canAdd()
Returns true if this item can be added: it can be part of an object that is created.boolean
canModify()
Returns true if this item can be modified (updated).boolean
canRead()
Returns true if this item can be read (displayed).@NotNull ResourceAttributeDefinition<T>
clone()
protected TransformablePropertyDefinition.ResourceAttribute<T>
copy()
ResourceAttributeDefinition<T>
deepClone(@NotNull DeepCloneOperation operation)
TODO documentResourceAttributeDefinition<T>
delegate()
ResourceAttribute<T>
instantiate()
Create an item instance.ResourceAttribute<T>
instantiate(QName name)
Create an item instance.@NotNull MutableRawResourceAttributeDefinition<T>
toMutable()
Returns an interface to mutate this definition.-
Methods inherited from class com.evolveum.midpoint.model.impl.schema.transform.TransformablePropertyDefinition
createEmptyDelta, freeze, getTypeClass, isImmutable, of, publicView, revive
-
Methods inherited from class com.evolveum.midpoint.model.impl.schema.transform.TransformableItemDefinition
access, applyTemplate, delegatedItem, from, getDisplayName, getDisplayOrder, getHelp, getMaxOccurs, getMinOccurs, getProcessing, getValueEnumerationRef, isDeprecated, isEmphasized, isExperimental, isMutableAccess, publicFrom, setCanAdd, setCanModify, setCanRead, setDeprecated, setDisplayName, setDisplayOrder, setEmphasized, setExperimental, setHelp, setMaxOccurs, setMinOccurs, setProcessing, setValueEnumerationRef, toString
-
Methods inherited from class com.evolveum.midpoint.model.impl.schema.transform.TransformableDefinition
annotationsOverrides, getAnnotation, setAnnotation
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.schema.processor.deleg.AttributeDefinitionDelegator
canAdd, canModify, canRead, debugDump, forLayer, getChangeApplicationMode, getCorrelatorDefinition, getCurrentLayer, getDescription, getFetchStrategy, getFrameworkAttributeName, getInboundMappingBeans, getIntolerantValuePatterns, getLifecycleState, getLimitations, getMaxOccurs, getMinOccurs, getModificationPriority, getNativeAttributeName, getOutboundMappingBean, getProcessing, getRawAttributeDefinition, getReadReplaceMode, getReturnedByDefault, getStorageStrategy, getTolerantValuePatterns, hasOutboundMapping, isDisplayNameAttribute, isExclusiveStrong, isIgnored, isMandatory, isMultiValue, isOptional, isSecondaryIdentifierOverride, isSingleValue, isTolerant, isVolatilityTrigger, setOverrideCanAdd, setOverrideCanModify, setOverrideCanRead
-
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, getSchemaMigrations, getSchemaRegistry, getTypeName, isAbstract, isDeprecated, isElaborate, isEmphasized, isExperimental, isIgnored, isRuntimeSchema, setAnnotation
-
Methods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutable, freeze, isImmutable
-
Methods inherited from interface com.evolveum.midpoint.prism.ItemDefinition
isMandatory, isMultiValue, isOptional, isSingleValue
-
Methods inherited from interface com.evolveum.midpoint.prism.deleg.ItemDefinitionDelegator
adoptElementDefinitionFrom, canBeDefinitionOf, canBeDefinitionOf, debugDumpShortToString, findItemDefinition, getDiagrams, getItemName, getMaxOccurs, getMinOccurs, getSubstitutionHead, getValueEnumerationRef, isDynamic, isHeterogeneousListItem, isIndexOnly, isInherited, isOperational, isValidFor, structuredType
-
Methods inherited from interface com.evolveum.midpoint.model.impl.schema.transform.PartiallyMutableItemDefinition
addDiagram, addSchemaMigration, setCanAdd, setCanModify, setCanRead, setDeprecated, setDeprecatedSince, setDisplayName, setDisplayOrder, setDocumentation, setDynamic, setElaborate, setEmphasized, setExperimental, setHelp, setHeterogeneousListItem, setIndexOnly, setInherited, setItemName, setMaxOccurs, setMinOccurs, setOperational, setPlannedRemoval, setProcessing, setReadOnly, setRuntimeSchema, setSubstitutionHead, setTypeName, setValueEnumerationRef
-
Methods inherited from interface com.evolveum.midpoint.model.impl.schema.transform.PartiallyMutableItemDefinition.Attribute
setFrameworkAttributeName, setNativeAttributeName, setReturnedByDefault
-
Methods inherited from interface com.evolveum.midpoint.model.impl.schema.transform.PartiallyMutableItemDefinition.Property
setAllowedValues, setIndexed, setInherited, setMatchingRuleQName, setSuggestedValues
-
Methods inherited from interface com.evolveum.midpoint.prism.PrismPropertyDefinition
createEmptyDelta, getTypeClass, isAnyType
-
Methods inherited from interface com.evolveum.midpoint.prism.deleg.PropertyDefinitionDelegator
createEmptyDelta, defaultValue, getAllowedValues, getMatchingRuleQName, getSuggestedValues, getTypeClass, isIndexed
-
Methods inherited from interface com.evolveum.midpoint.schema.processor.RawResourceAttributeDefinition
isReturnedByDefault
-
Methods inherited from interface com.evolveum.midpoint.schema.processor.ResourceAttributeDefinition
isVisible, spawnModifyingRaw
-
-
-
-
Constructor Detail
-
ResourceAttribute
public ResourceAttribute(PrismPropertyDefinition<T> delegate)
-
-
Method Detail
-
delegate
public ResourceAttributeDefinition<T> delegate()
- Specified by:
delegate
in interfaceAttributeDefinitionDelegator<T>
- Specified by:
delegate
in interfaceDefinitionDelegator
- Specified by:
delegate
in interfaceItemDefinitionDelegator<T>
- Specified by:
delegate
in interfacePropertyDefinitionDelegator<T>
- Overrides:
delegate
in classTransformableItemDefinition<PrismProperty<T>,PrismPropertyDefinition<T>>
-
clone
@NotNull public @NotNull ResourceAttributeDefinition<T> clone()
- Specified by:
clone
in interfaceDefinition
- Specified by:
clone
in interfaceItemDefinition<T>
- Specified by:
clone
in interfaceMutablePrismPropertyDefinition<T>
- Specified by:
clone
in interfacePrismPropertyDefinition<T>
- Specified by:
clone
in interfaceResourceAttributeDefinition<T>
- Overrides:
clone
in classTransformablePropertyDefinition<T>
-
deepClone
public ResourceAttributeDefinition<T> deepClone(@NotNull @NotNull DeepCloneOperation operation)
Description copied from interface:ItemDefinition
TODO document- Specified by:
deepClone
in interfaceAttributeDefinitionDelegator<T>
- Specified by:
deepClone
in interfaceItemDefinition<T>
- Specified by:
deepClone
in interfaceItemDefinitionDelegator<T>
- Specified by:
deepClone
in interfaceResourceAttributeDefinition<T>
- Overrides:
deepClone
in classTransformableItemDefinition<PrismProperty<T>,PrismPropertyDefinition<T>>
-
copy
protected TransformablePropertyDefinition.ResourceAttribute<T> copy()
- Overrides:
copy
in classTransformablePropertyDefinition<T>
-
toMutable
@NotNull public @NotNull MutableRawResourceAttributeDefinition<T> toMutable()
Description copied from interface:Definition
Returns an interface to mutate this definition.- Specified by:
toMutable
in interfaceDefinition
- Specified by:
toMutable
in interfaceItemDefinition<T>
- Specified by:
toMutable
in interfacePrismPropertyDefinition<T>
- Specified by:
toMutable
in interfaceResourceAttributeDefinition<T>
- Overrides:
toMutable
in classTransformablePropertyDefinition<T>
-
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 interfaceItemDefinitionDelegator<T>
- Specified by:
canAdd
in interfacePrismItemAccessDefinition
- Overrides:
canAdd
in classTransformableItemDefinition<PrismProperty<T>,PrismPropertyDefinition<T>>
-
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 interfaceItemDefinitionDelegator<T>
- Specified by:
canModify
in interfacePrismItemAccessDefinition
- Overrides:
canModify
in classTransformableItemDefinition<PrismProperty<T>,PrismPropertyDefinition<T>>
-
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 interfaceItemDefinitionDelegator<T>
- Specified by:
canRead
in interfacePrismItemAccessDefinition
- Overrides:
canRead
in classTransformableItemDefinition<PrismProperty<T>,PrismPropertyDefinition<T>>
-
instantiate
@NotNull public ResourceAttribute<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 interfaceAttributeDefinitionDelegator<T>
- Specified by:
instantiate
in interfaceItemDefinition<T>
- Specified by:
instantiate
in interfaceItemDefinitionDelegator<T>
- Specified by:
instantiate
in interfacePrismPropertyDefinition<T>
- Specified by:
instantiate
in interfacePropertyDefinitionDelegator<T>
- Specified by:
instantiate
in interfaceRawResourceAttributeDefinition<T>
- Specified by:
instantiate
in interfaceResourceAttributeDefinition<T>
- Overrides:
instantiate
in classTransformablePropertyDefinition<T>
-
instantiate
@NotNull public ResourceAttribute<T> instantiate(QName name)
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 interfaceAttributeDefinitionDelegator<T>
- Specified by:
instantiate
in interfaceItemDefinition<T>
- Specified by:
instantiate
in interfaceItemDefinitionDelegator<T>
- Specified by:
instantiate
in interfacePrismPropertyDefinition<T>
- Specified by:
instantiate
in interfacePropertyDefinitionDelegator<T>
- Specified by:
instantiate
in interfaceRawResourceAttributeDefinition<T>
- Specified by:
instantiate
in interfaceResourceAttributeDefinition<T>
- Overrides:
instantiate
in classTransformablePropertyDefinition<T>
-
-