Interface AttributeContainerDefinitionDelegator
-
- All Superinterfaces:
Cloneable
,ContainerDefinitionDelegator<ShadowAttributesType>
,DebugDumpable
,Definition
,DefinitionDelegator
,Freezable
,ItemDefinition<PrismContainer<ShadowAttributesType>>
,ItemDefinitionDelegator<PrismContainer<ShadowAttributesType>>
,LocalItemDefinitionStore
,PrismContainerDefinition<ShadowAttributesType>
,PrismContextSensitive
,PrismItemAccessDefinition
,ResourceAttributeContainerDefinition
,Revivable
,Serializable
,SmartVisitable<Definition>
,Visitable<Definition>
- All Known Implementing Classes:
TransformableContainerDefinition.AttributeContainer
public interface AttributeContainerDefinitionDelegator extends ContainerDefinitionDelegator<ShadowAttributesType>, ResourceAttributeContainerDefinition
-
-
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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ResourceAttributeContainerDefinition
delegate()
default ResourceAttributeDefinition<?>
findAttributeDefinition(ItemPath elementPath)
default ResourceAttributeDefinition<?>
findAttributeDefinition(String localName)
default <T> ResourceAttributeDefinition<T>
findAttributeDefinition(QName elementQName, boolean caseInsensitive)
default Collection<? extends ResourceAttributeDefinition<?>>
getAllIdentifiers()
default List<? extends ResourceAttributeDefinition<?>>
getAttributeDefinitions()
default ResourceObjectDefinition
getComplexTypeDefinition()
Definition of the container values.default @NotNull List<? extends ResourceAttributeDefinition<?>>
getDefinitions()
Returns a list of item definitions in this container.default ResourceAttributeDefinition<?>
getDescriptionAttribute()
TODO review docs Returns the definition of description attribute of a resource object.default ResourceAttributeDefinition<?>
getDisplayNameAttribute()
TODO review docs Returns the definition of display name attribute.default ResourceAttributeDefinition<?>
getNamingAttribute()
TODO review docs Specifies which resource attribute should be used as a "technical" name for the account.default String
getNativeObjectClass()
TODO review docs Returns the native object class string for the resource object.default Collection<? extends ResourceAttributeDefinition<?>>
getPrimaryIdentifiers()
TODO review docs Returns the definition of primary identifier attributes of a resource object.default Collection<? extends ResourceAttributeDefinition<?>>
getSecondaryIdentifiers()
TODO review docs Returns the definition of secondary identifier attributes of a resource object.default @NotNull ResourceAttributeContainer
instantiate()
Create an item instance.default @NotNull ResourceAttributeContainer
instantiate(QName name)
Create an item instance.default boolean
isDefaultAccountDefinition()
TODO review docs Indicates whether definition is should be used as default account type.default <T extends ShadowType>
@NotNull PrismObjectDefinition<T>toShadowDefinition()
-
Methods inherited from interface com.evolveum.midpoint.prism.deleg.ContainerDefinitionDelegator
canRepresent, cloneWithReplacedDefinition, createEmptyDelta, createValue, findContainerDefinition, findItemDefinition, getCompileTimeClass, getItemNames, getPropertyDefinitions, getTypeClass, isEmpty, replaceDefinition, structuredType
-
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, canAdd, canBeDefinitionOf, canBeDefinitionOf, canModify, canRead, debugDumpShortToString, deepClone, getDiagrams, getItemName, getMaxOccurs, getMinOccurs, getSubstitutionHead, getValueEnumerationRef, isDynamic, isHeterogeneousListItem, isIndexOnly, isInherited, isOperational, isValidFor
-
Methods inherited from interface com.evolveum.midpoint.prism.LocalItemDefinitionStore
containsItemDefinition, findItemDefinition, findItemDefinition, findLocalItemDefinition, findLocalItemDefinition, findPropertyDefinition, findReferenceDefinition
-
Methods inherited from interface com.evolveum.midpoint.prism.PrismContainerDefinition
createEmptyDelta, getAlwaysUseForEquals, getTypeClass, isAlwaysUseForEquals, isCompletelyDefined, structuredType, toMutable
-
Methods inherited from interface com.evolveum.midpoint.schema.processor.ResourceAttributeContainerDefinition
clone
-
-
-
-
Method Detail
-
delegate
ResourceAttributeContainerDefinition delegate()
- Specified by:
delegate
in interfaceContainerDefinitionDelegator<ShadowAttributesType>
- Specified by:
delegate
in interfaceDefinitionDelegator
- Specified by:
delegate
in interfaceItemDefinitionDelegator<PrismContainer<ShadowAttributesType>>
-
getPrimaryIdentifiers
default Collection<? extends ResourceAttributeDefinition<?>> getPrimaryIdentifiers()
Description copied from interface:ResourceAttributeContainerDefinition
TODO review docs Returns the definition of primary identifier attributes of a resource object. May return empty set if there are no identifier attributes. Must not return null. The exception should be never thrown unless there is some bug in the code. The validation of model consistency should be done at the time of schema parsing.- Specified by:
getPrimaryIdentifiers
in interfaceResourceAttributeContainerDefinition
- Returns:
- definition of identifier attributes
-
getSecondaryIdentifiers
default Collection<? extends ResourceAttributeDefinition<?>> getSecondaryIdentifiers()
Description copied from interface:ResourceAttributeContainerDefinition
TODO review docs Returns the definition of secondary identifier attributes of a resource object. May return empty set if there are no secondary identifier attributes. Must not return null. The exception should be never thrown unless there is some bug in the code. The validation of model consistency should be done at the time of schema parsing.- Specified by:
getSecondaryIdentifiers
in interfaceResourceAttributeContainerDefinition
- Returns:
- definition of secondary identifier attributes
-
getAllIdentifiers
default Collection<? extends ResourceAttributeDefinition<?>> getAllIdentifiers()
- Specified by:
getAllIdentifiers
in interfaceResourceAttributeContainerDefinition
-
getDescriptionAttribute
default ResourceAttributeDefinition<?> getDescriptionAttribute()
Description copied from interface:ResourceAttributeContainerDefinition
TODO review docs Returns the definition of description attribute of a resource object. Returns null if there is no description attribute. The exception should be never thrown unless there is some bug in the code. The validation of model consistency should be done at the time of schema parsing.- Specified by:
getDescriptionAttribute
in interfaceResourceAttributeContainerDefinition
- Returns:
- definition of secondary identifier attributes
-
getNamingAttribute
default ResourceAttributeDefinition<?> getNamingAttribute()
Description copied from interface:ResourceAttributeContainerDefinition
TODO review docs Specifies which resource attribute should be used as a "technical" name for the account. This name will appear in log files and other troubleshooting tools. The name should be a form of unique identifier that can be used to locate the resource object for diagnostics. It should not contain white chars and special chars if that can be avoided and it should be reasonable short. It is different from a display name attribute. Display name is intended for a common user or non-technical administrator (such as role administrator). The naming attribute is intended for technical IDM administrators and developers.- Specified by:
getNamingAttribute
in interfaceResourceAttributeContainerDefinition
- Returns:
- resource attribute definition that should be used as a "technical" name for the account.
-
getNativeObjectClass
default String getNativeObjectClass()
Description copied from interface:ResourceAttributeContainerDefinition
TODO review docs Returns the native object class string for the resource object. Native object class is the name of the Resource Object Definition (Object Class) as it is seen by the resource itself. The name of the Resource Object Definition may be constrained by XSD or other syntax and therefore may be "mangled" to conform to such syntax. The native object class value will contain un-mangled name (if available). Returns null if there is no native object class. The exception should be never thrown unless there is some bug in the code. The validation of model consistency should be done at the time of schema parsing.- Specified by:
getNativeObjectClass
in interfaceResourceAttributeContainerDefinition
- Returns:
- native object class
-
isDefaultAccountDefinition
default boolean isDefaultAccountDefinition()
Description copied from interface:ResourceAttributeContainerDefinition
TODO review docs Indicates whether definition is should be used as default account type. If true value is returned then the definition should be used as a default account type definition. This is a way how a resource connector may suggest applicable object classes (resource object definitions) for accounts. If no information about account type is present, false should be returned. This method must return true only if isAccountType() returns true. The exception should be never thrown unless there is some bug in the code. The validation of at-most-one value should be done at the time of schema parsing. The exception may not even be thrown at all if the implementation is not able to determine duplicity.- Specified by:
isDefaultAccountDefinition
in interfaceResourceAttributeContainerDefinition
- Returns:
- true if the definition should be used as account type.
-
getDisplayNameAttribute
default ResourceAttributeDefinition<?> getDisplayNameAttribute()
Description copied from interface:ResourceAttributeContainerDefinition
TODO review docs Returns the definition of display name attribute. Display name attribute specifies which resource attribute should be used as title when displaying objects of a specific resource object class. It must point to an attribute of String type. If not present, primary identifier should be used instead (but this method does not handle this default behavior). Returns null if there is no display name attribute. The exception should be never thrown unless there is some bug in the code. The validation of model consistency should be done at the time of schema parsing.- Specified by:
getDisplayNameAttribute
in interfaceResourceAttributeContainerDefinition
- Returns:
- native object class
-
findAttributeDefinition
default <T> ResourceAttributeDefinition<T> findAttributeDefinition(QName elementQName, boolean caseInsensitive)
- Specified by:
findAttributeDefinition
in interfaceResourceAttributeContainerDefinition
-
findAttributeDefinition
default ResourceAttributeDefinition<?> findAttributeDefinition(ItemPath elementPath)
- Specified by:
findAttributeDefinition
in interfaceResourceAttributeContainerDefinition
-
findAttributeDefinition
default ResourceAttributeDefinition<?> findAttributeDefinition(String localName)
- Specified by:
findAttributeDefinition
in interfaceResourceAttributeContainerDefinition
-
getAttributeDefinitions
default List<? extends ResourceAttributeDefinition<?>> getAttributeDefinitions()
- Specified by:
getAttributeDefinitions
in interfaceResourceAttributeContainerDefinition
-
toShadowDefinition
@NotNull default <T extends ShadowType> @NotNull PrismObjectDefinition<T> toShadowDefinition()
- Specified by:
toShadowDefinition
in interfaceResourceAttributeContainerDefinition
-
instantiate
@NotNull default @NotNull ResourceAttributeContainer 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<PrismContainer<ShadowAttributesType>>
- Specified by:
instantiate
in interfaceItemDefinitionDelegator<PrismContainer<ShadowAttributesType>>
- Specified by:
instantiate
in interfaceResourceAttributeContainerDefinition
-
instantiate
@NotNull default @NotNull ResourceAttributeContainer 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 interfaceItemDefinition<PrismContainer<ShadowAttributesType>>
- Specified by:
instantiate
in interfaceItemDefinitionDelegator<PrismContainer<ShadowAttributesType>>
- Specified by:
instantiate
in interfaceResourceAttributeContainerDefinition
-
getDefinitions
@NotNull default @NotNull List<? extends ResourceAttributeDefinition<?>> getDefinitions()
Description copied from interface:PrismContainerDefinition
Returns a list of item definitions in this container. It is intentionally aList
because it is ordered. (To provide standard format for serialization.) Usually obtained fromComplexTypeDefinition
. So please do not modify the content of the list!- Specified by:
getDefinitions
in interfaceContainerDefinitionDelegator<ShadowAttributesType>
- Specified by:
getDefinitions
in interfaceLocalItemDefinitionStore
- Specified by:
getDefinitions
in interfacePrismContainerDefinition<ShadowAttributesType>
- Specified by:
getDefinitions
in interfaceResourceAttributeContainerDefinition
-
getComplexTypeDefinition
default ResourceObjectDefinition getComplexTypeDefinition()
Description copied from interface:PrismContainerDefinition
Definition of the container values. May be null. (Let's not mark it as @Nullable to avoid lots of warnings.) Note that individual values can hold their own (more specific) complex type definitions.- Specified by:
getComplexTypeDefinition
in interfaceContainerDefinitionDelegator<ShadowAttributesType>
- Specified by:
getComplexTypeDefinition
in interfacePrismContainerDefinition<ShadowAttributesType>
- Specified by:
getComplexTypeDefinition
in interfaceResourceAttributeContainerDefinition
-
-