Class SynchronizationPolicyFactory
java.lang.Object
com.evolveum.midpoint.schema.processor.SynchronizationPolicyFactory
Creates
SynchronizationPolicy
objects.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable SynchronizationPolicy
forKindAndIntent
(@NotNull ShadowKindType kind, @NotNull String intent, @NotNull ResourceType resource) CreatesSynchronizationPolicy
by looking for type definition and synchronization definition for given kind and intent in resource schema.static @NotNull SynchronizationPolicy
forTypeDefinition
(@NotNull ResourceObjectTypeDefinition typeDefinition, @NotNull ResourceType resource) CreatesSynchronizationPolicy
based on knownResourceObjectTypeDefinition
.
-
Constructor Details
-
SynchronizationPolicyFactory
public SynchronizationPolicyFactory()
-
-
Method Details
-
forKindAndIntent
@Nullable public static @Nullable SynchronizationPolicy forKindAndIntent(@NotNull @NotNull ShadowKindType kind, @NotNull @NotNull String intent, @NotNull @NotNull ResourceType resource) throws SchemaException, ConfigurationException CreatesSynchronizationPolicy
by looking for type definition and synchronization definition for given kind and intent in resource schema. NOTE: Since 4.6, we no longer support `synchronization` entry without corresponding `schemaHandling` entry. This would make the code unnecessarily complex just to support some corner cases regarding (now) legacy `synchronization` configuration data structure. -
forTypeDefinition
@NotNull public static @NotNull SynchronizationPolicy forTypeDefinition(@NotNull @NotNull ResourceObjectTypeDefinition typeDefinition, @NotNull @NotNull ResourceType resource) throws ConfigurationException CreatesSynchronizationPolicy
based on knownResourceObjectTypeDefinition
.- Throws:
ConfigurationException
-