Package com.evolveum.midpoint.schema
Class SchemaService
java.lang.Object
com.evolveum.midpoint.schema.SchemaService
Aggregation of various schema and prism managed components for convenience.
The purpose is rather practical, to avoid too many injections.
Most used methods are provided directly.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateCanonicalItemPath
(ItemPath path, QName objectType) @NotNull PrismReferenceValue
createReferenceValue
(@NotNull String oid, @NotNull Class<? extends ObjectType> schemaType) @NotNull PrismSerializer<String>
createStringSerializer
(@NotNull String language) <C extends Containerable>
PrismContainerDefinition<C>findContainerDefinitionByCompileTimeClass
(Class<C> containerableType) static SchemaService
get()
void
init()
static void
init
(@NotNull PrismContext prismContext, @NotNull RelationRegistry relationRegistry, @NotNull MatchingRuleRegistry matchingRuleRegistry, @NotNull NormalizerRegistry normalizerRegistry) @NotNull MatchingRuleRegistry
@NotNull QName
normalizeRelation
(QName qName) @NotNull PrismParserNoIO
@NotNull PrismContext
@NotNull RelationRegistry
@NotNull ResourceSchemaRegistry
schemaClassToTypeQName
(Class<?> schemaClass) <T> Class<? extends T>
typeQNameToSchemaClass
(QName qName)
-
Constructor Details
-
SchemaService
public SchemaService()
-
-
Method Details
-
init
@PostConstruct public void init() -
init
@VisibleForTesting public static void init(@NotNull @NotNull PrismContext prismContext, @NotNull @NotNull RelationRegistry relationRegistry, @NotNull @NotNull MatchingRuleRegistry matchingRuleRegistry, @NotNull @NotNull NormalizerRegistry normalizerRegistry) -
get
-
prismContext
-
relationRegistry
-
matchingRuleRegistry
-
resourceSchemaRegistry
-
getOperationOptionsBuilder
-
createStringSerializer
@NotNull public @NotNull PrismSerializer<String> createStringSerializer(@NotNull @NotNull String language) -
parserFor
-
createCanonicalItemPath
-
typeQNameToSchemaClass
-
schemaClassToTypeQName
-
normalizeRelation
-
createReferenceValue
@NotNull public @NotNull PrismReferenceValue createReferenceValue(@NotNull @NotNull String oid, @NotNull @NotNull Class<? extends ObjectType> schemaType) -
findContainerDefinitionByCompileTimeClass
public <C extends Containerable> PrismContainerDefinition<C> findContainerDefinitionByCompileTimeClass(Class<C> containerableType)
-