Interface ResourceObjectTypeDefinitionDelegator
-
- All Superinterfaces:
AssociationDefinitionStore
,AttributeDefinitionStore
,Cloneable
,ComplexTypeDefinition
,ComplexTypeDefinitionDelegator
,DebugDumpable
,Definition
,DefinitionDelegator
,Freezable
,IdentifiersDefinitionStore
,LayeredDefinition
,LocalItemDefinitionStore
,PrismContextSensitive
,ResourceObjectDefinition
,ResourceObjectDefinitionDelegator
,ResourceObjectTypeDefinition
,Revivable
,Serializable
,SmartVisitable<Definition>
,TypeDefinition
,TypeDefinitionDelegator
,Visitable<Definition>
public interface ResourceObjectTypeDefinitionDelegator extends ResourceObjectDefinitionDelegator, ResourceObjectTypeDefinition
-
-
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 default @NotNull ObjectQuery
createShadowSearchQuery(String resourceOid)
Creates a query for obtaining shadows related to this object class or object type.ResourceObjectTypeDefinition
delegate()
default ResourceObjectTypeDefinition
forLayer(@NotNull LayerType layerType)
Creates a layer-specific version of this definition.default @Nullable ObjectReferenceType
getArchetypeRef()
Archetype reference - not present in standalone definitions.default @NotNull Collection<ResourceObjectDefinition>
getAuxiliaryDefinitions()
TODO define semantics (it's different forCompositeObjectDefinition
and the others!default @Nullable ExpressionType
getClassificationCondition()
Temporary?default <T extends CapabilityType>
TgetConfiguredCapability(Class<T> capabilityClass)
Returns the configured capability of given class, if present.default @Nullable CorrelationDefinitionType
getCorrelationDefinitionBean()
Returns the correlation definition bean, if present here.default @Nullable QName
getFocusTypeName()
Returns the focus type name, if present here.default @NotNull String
getIntent()
Intent defining this object type (along withResourceObjectTypeDefinition.getKind()
).default @NotNull ShadowKindType
getKind()
Kind of objects covered by this object type.default @NotNull Collection<SynchronizationReactionDefinition>
getSynchronizationReactions()
Returns the synchronization reactions defined here.default @NotNull ResourceObjectTypeDefinition
getTypeDefinition()
Is this definition bound to a specific resource type? If yes, this method returns its definition.default @NotNull ResourceObjectTypeIdentification
getTypeIdentification()
Is this definition bound to a specific resource type? If yes, this method returns its identification.default boolean
hasSynchronizationReactionsDefinition()
Returns true if there is "synchronization reactions" definition section here (even if it's empty).default ResourceAttributeContainer
instantiate(ItemName elementName)
Creates aResourceAttributeContainer
instance with this definition as its complex type definition.default boolean
isDefaultFor(@NotNull ShadowKindType kind)
Returns true if this definition can be considered as a default for the specified kind.default boolean
isDefaultForKind()
Is this type explicitly marked as the default object type for given kind? (using default or defaultForKind property).default boolean
isDefaultForObjectClass()
Is this type explicitly marked as the default object type for given object class? (using default or defaultForObjectClass property).default @Nullable Boolean
isSynchronizationEnabled()
Returns the "synchronization enabled" flag value, if present here.default @Nullable Boolean
isSynchronizationOpportunistic()
Returns the "synchronization opportunistic" flag value, if present here.-
Methods inherited from interface com.evolveum.midpoint.schema.processor.AssociationDefinitionStore
findAssociationDefinition, findAssociationDefinitionRequired, getAssociationDefinitions, getNamesOfAssociations, getNamesOfAssociationsWithInboundExpressions, getNamesOfAssociationsWithOutboundExpressions
-
Methods inherited from interface com.evolveum.midpoint.schema.processor.AttributeDefinitionStore
containsAttributeDefinition, findAttributeDefinition, findAttributeDefinitionRequired, findAttributeDefinitionRequired, findAttributeDefinitionStrictlyRequired, findAttributeDefinitionStrictlyRequired, getAttributeDefinitions, getNamesOfAttributesWithInboundExpressions, getNamesOfAttributesWithOutboundExpressions, hasIndexOnlyAttributes
-
Methods inherited from interface com.evolveum.midpoint.prism.ComplexTypeDefinition
getXmlAttributeDefinitions, hasSubstitutions, isItemDefinitionRemoved, isStrictAnyMarker, toMutable
-
Methods inherited from interface com.evolveum.midpoint.prism.deleg.ComplexTypeDefinitionDelegator
findContainerDefinition, findItemDefinition, findItemDefinition, findReferenceDefinition, getDefaultNamespace, getDefinitions, getDiagrams, getExtensionForType, getIgnoredNamespaces, hasOperationalOnlyItems, hasSubstitutions, isContainerMarker, isEmpty, isListMarker, isObjectMarker, isReferenceMarker, isXsdAnyMarker, itemOrSubstitution, merge, substitution, trimTo
-
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, getTypeClass, 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.schema.processor.IdentifiersDefinitionStore
getAllIdentifiers, getPrimaryIdentifierRequired, isIdentifier
-
Methods inherited from interface com.evolveum.midpoint.prism.LocalItemDefinitionStore
containsItemDefinition, findLocalItemDefinition, findLocalItemDefinition, findPropertyDefinition
-
Methods inherited from interface com.evolveum.midpoint.schema.processor.ResourceObjectDefinition
clone, deepClone, getActivationBidirectionalMappingType, getActivationFetchStrategy, getPasswordFetchStrategy, getPasswordInbound, getPasswordOutbound, matchesObjectClassName, replaceDefinition
-
Methods inherited from interface com.evolveum.midpoint.schema.processor.deleg.ResourceObjectDefinitionDelegator
createBlankShadow, findAttributeDefinition, findAttributeDefinition, getActivationSchemaHandling, getAssociationDefinitions, getAttributeDefinitions, getAuxiliaryObjectClassMappings, getBaseContext, getConfiguredAuxiliaryObjectClassNames, getCurrentLayer, getDebugDumpClassName, getDefaultInboundMappingEvaluationPhases, getDefinitionBean, getDelineation, getDescription, getDescriptionAttribute, getDescriptionAttributeName, getDisplayNameAttribute, getDisplayNameAttributeName, getEnabledCapability, getHumanReadableName, getLifecycleState, getNamingAttribute, getNamingAttributeName, getObjectClassDefinition, getObjectClassName, getObjectMultiplicity, getPasswordDefinition, getPrimaryIdentifiers, getPrimaryIdentifiersNames, getPrismObjectDefinition, getProjectionPolicy, getProtectedObjectPatterns, getRawObjectClassDefinition, getResourceOid, getSearchHierarchyScope, getSecondaryIdentifiers, getSecondaryIdentifiersNames, getSecurityPolicyRef, getVolatility, hasAuxiliaryObjectClass, isPrimaryIdentifier, isSecondaryIdentifier, replaceDefinition, toResourceAttributeContainerDefinition, toResourceAttributeContainerDefinition, validate
-
Methods inherited from interface com.evolveum.midpoint.schema.processor.ResourceObjectTypeDefinition
getArchetypeOid, matches, matchesKind
-
Methods inherited from interface com.evolveum.midpoint.prism.TypeDefinition
isAssignableFrom
-
Methods inherited from interface com.evolveum.midpoint.prism.deleg.TypeDefinitionDelegator
canRepresent, getCompileTimeClass, getInstantiationOrder, getStaticSubTypes, getSuperType
-
-
-
-
Method Detail
-
delegate
ResourceObjectTypeDefinition delegate()
- Specified by:
delegate
in interfaceComplexTypeDefinitionDelegator
- Specified by:
delegate
in interfaceDefinitionDelegator
- Specified by:
delegate
in interfaceResourceObjectDefinitionDelegator
- Specified by:
delegate
in interfaceTypeDefinitionDelegator
-
createShadowSearchQuery
@NotNull default @NotNull ObjectQuery createShadowSearchQuery(String resourceOid) throws SchemaException
Description copied from interface:ResourceObjectDefinition
Creates a query for obtaining shadows related to this object class or object type. The current implementations return either: - a combination of resource OID + object class name, or - a combination of resource OID + kind + intent.- Specified by:
createShadowSearchQuery
in interfaceResourceObjectDefinition
- Specified by:
createShadowSearchQuery
in interfaceResourceObjectDefinitionDelegator
- Specified by:
createShadowSearchQuery
in interfaceResourceObjectTypeDefinition
- Throws:
SchemaException
-
getKind
@NotNull default @NotNull ShadowKindType getKind()
Description copied from interface:ResourceObjectTypeDefinition
Kind of objects covered by this object type.- Specified by:
getKind
in interfaceResourceObjectTypeDefinition
-
getIntent
@NotNull default @NotNull String getIntent()
Description copied from interface:ResourceObjectTypeDefinition
Intent defining this object type (along withResourceObjectTypeDefinition.getKind()
).- Specified by:
getIntent
in interfaceResourceObjectTypeDefinition
-
isDefaultForKind
default boolean isDefaultForKind()
Description copied from interface:ResourceObjectTypeDefinition
Is this type explicitly marked as the default object type for given kind? (using default or defaultForKind property).- Specified by:
isDefaultForKind
in interfaceResourceObjectTypeDefinition
- See Also:
ResourceObjectTypeDefinitionType.isDefaultForKind()
,ResourceObjectTypeDefinitionType.isDefault()
-
isDefaultForObjectClass
default boolean isDefaultForObjectClass()
Description copied from interface:ResourceObjectTypeDefinition
Is this type explicitly marked as the default object type for given object class? (using default or defaultForObjectClass property).- Specified by:
isDefaultForObjectClass
in interfaceResourceObjectTypeDefinition
- See Also:
ResourceObjectTypeDefinitionType.isDefaultForObjectClass()
,ResourceObjectTypeDefinitionType.isDefault()
-
forLayer
default ResourceObjectTypeDefinition forLayer(@NotNull @NotNull LayerType layerType)
Description copied from interface:ResourceObjectDefinition
Creates a layer-specific version of this definition.- Specified by:
forLayer
in interfaceResourceObjectDefinition
- Specified by:
forLayer
in interfaceResourceObjectDefinitionDelegator
- Specified by:
forLayer
in interfaceResourceObjectTypeDefinition
-
getConfiguredCapability
@Nullable default <T extends CapabilityType> T getConfiguredCapability(Class<T> capabilityClass)
Description copied from interface:ResourceObjectTypeDefinition
Returns the configured capability of given class, if present.- Specified by:
getConfiguredCapability
in interfaceResourceObjectTypeDefinition
-
getCorrelationDefinitionBean
@Nullable default @Nullable CorrelationDefinitionType getCorrelationDefinitionBean()
Description copied from interface:ResourceObjectTypeDefinition
Returns the correlation definition bean, if present here. (It may be standalone.)- Specified by:
getCorrelationDefinitionBean
in interfaceResourceObjectTypeDefinition
-
isSynchronizationEnabled
@Nullable default @Nullable Boolean isSynchronizationEnabled()
Description copied from interface:ResourceObjectTypeDefinition
Returns the "synchronization enabled" flag value, if present here. (It may be standalone.) FIXME- Specified by:
isSynchronizationEnabled
in interfaceResourceObjectTypeDefinition
-
isSynchronizationOpportunistic
@Nullable default @Nullable Boolean isSynchronizationOpportunistic()
Description copied from interface:ResourceObjectTypeDefinition
Returns the "synchronization opportunistic" flag value, if present here. (It may be standalone.)- Specified by:
isSynchronizationOpportunistic
in interfaceResourceObjectTypeDefinition
-
getFocusTypeName
@Nullable default @Nullable QName getFocusTypeName()
Description copied from interface:ResourceObjectTypeDefinition
Returns the focus type name, if present here. (It may be standalone.)- Specified by:
getFocusTypeName
in interfaceResourceObjectTypeDefinition
-
getArchetypeRef
@Nullable default @Nullable ObjectReferenceType getArchetypeRef()
Description copied from interface:ResourceObjectTypeDefinition
Archetype reference - not present in standalone definitions.- Specified by:
getArchetypeRef
in interfaceResourceObjectTypeDefinition
-
hasSynchronizationReactionsDefinition
default boolean hasSynchronizationReactionsDefinition()
Description copied from interface:ResourceObjectTypeDefinition
Returns true if there is "synchronization reactions" definition section here (even if it's empty).- Specified by:
hasSynchronizationReactionsDefinition
in interfaceResourceObjectTypeDefinition
-
getSynchronizationReactions
@NotNull default @NotNull Collection<SynchronizationReactionDefinition> getSynchronizationReactions()
Description copied from interface:ResourceObjectTypeDefinition
Returns the synchronization reactions defined here. (They may be standalone.)- Specified by:
getSynchronizationReactions
in interfaceResourceObjectTypeDefinition
-
getClassificationCondition
@Nullable default @Nullable ExpressionType getClassificationCondition()
Description copied from interface:ResourceObjectTypeDefinition
Temporary?- Specified by:
getClassificationCondition
in interfaceResourceObjectTypeDefinition
-
getAuxiliaryDefinitions
@NotNull default @NotNull Collection<ResourceObjectDefinition> getAuxiliaryDefinitions()
Description copied from interface:ResourceObjectDefinition
TODO define semantics (it's different forCompositeObjectDefinition
and the others!- Specified by:
getAuxiliaryDefinitions
in interfaceResourceObjectDefinition
-
instantiate
default ResourceAttributeContainer instantiate(ItemName elementName)
Description copied from interface:ResourceObjectDefinition
Creates aResourceAttributeContainer
instance with this definition as its complex type definition.- Specified by:
instantiate
in interfaceResourceObjectDefinition
-
getTypeIdentification
@NotNull default @NotNull ResourceObjectTypeIdentification getTypeIdentification()
Description copied from interface:ResourceObjectDefinition
Is this definition bound to a specific resource type? If yes, this method returns its identification.- Specified by:
getTypeIdentification
in interfaceResourceObjectDefinition
- Specified by:
getTypeIdentification
in interfaceResourceObjectDefinitionDelegator
- Specified by:
getTypeIdentification
in interfaceResourceObjectTypeDefinition
-
getTypeDefinition
@NotNull default @NotNull ResourceObjectTypeDefinition getTypeDefinition()
Description copied from interface:ResourceObjectDefinition
Is this definition bound to a specific resource type? If yes, this method returns its definition.- Specified by:
getTypeDefinition
in interfaceResourceObjectDefinition
- Specified by:
getTypeDefinition
in interfaceResourceObjectDefinitionDelegator
- Specified by:
getTypeDefinition
in interfaceResourceObjectTypeDefinition
-
isDefaultFor
default boolean isDefaultFor(@NotNull @NotNull ShadowKindType kind)
Description copied from interface:ResourceObjectDefinition
Returns true if this definition can be considered as a default for the specified kind. Normally, for a type definition it means that it is marked as "default for a kind" and has the specified kind. But there is a special case ofResourceObjectClassDefinition
withResourceObjectClassDefinition.isDefaultAccountDefinition()
being `true`. It is considered to be the default forShadowKindType.ACCOUNT
. Use with care!- Specified by:
isDefaultFor
in interfaceResourceObjectDefinition
- Specified by:
isDefaultFor
in interfaceResourceObjectDefinitionDelegator
-
-