Class SynchronizationPolicyFactory
- java.lang.Object
-
- com.evolveum.midpoint.schema.processor.SynchronizationPolicyFactory
-
public class SynchronizationPolicyFactory extends Object
CreatesSynchronizationPolicy
objects.
-
-
Constructor Summary
Constructors Constructor Description SynchronizationPolicyFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @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
.
-
-
-
Method Detail
-
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
-
-