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
(PrismContext prismContext, RelationRegistry relationRegistry, MatchingRuleRegistry matchingRuleRegistry) @NotNull QName
normalizeRelation
(QName qName) @NotNull PrismParserNoIO
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(PrismContext prismContext, RelationRegistry relationRegistry, MatchingRuleRegistry matchingRuleRegistry) -
get
-
prismContext
-
relationRegistry
-
matchingRuleRegistry
-
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)
-