Class ResourceSchemaFactory
java.lang.Object
com.evolveum.midpoint.schema.processor.ResourceSchemaFactory
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic ResourceSchemagetCompleteSchema(@NotNull PrismObject<ResourceType> resource) Obtains refined schema for the resource.static ResourceSchemagetCompleteSchema(@NotNull ResourceType resource) static ResourceSchemagetCompleteSchema(PrismObject<ResourceType> resource, LayerType layer) Returned schema is immutable.static ResourceSchemagetCompleteSchema(ResourceType resourceType, LayerType layer) static @NotNull ResourceSchemagetCompleteSchemaRequired(@NotNull ResourceType resource) We assume that missing schema is a configuration (not schema) problem.static @NotNull ResourceSchemagetCompleteSchemaRequired(PrismObject<ResourceType> resource, LayerType layer) static @NotNull ResourceSchemagetCompleteSchemaRequired(ResourceType resource, LayerType layer) static ResourceSchemagetRawSchema(@NotNull PrismObject<ResourceType> resource) Obtains "raw" schema for the resource, i.e.static ResourceSchemagetRawSchema(@NotNull ResourceType resource) static ResourceSchemagetRawSchemaRequired(ResourceType resource) static booleanhasParsedSchema(ResourceType resource) static ResourceSchemaparseCompleteSchema(ResourceType resource) Executes the real parsing.
- 
Constructor Details- 
ResourceSchemaFactorypublic ResourceSchemaFactory()
 
- 
- 
Method Details- 
getCompleteSchemapublic static ResourceSchema getCompleteSchema(@NotNull @NotNull ResourceType resource) throws SchemaException, ConfigurationException 
- 
getCompleteSchemaRequired@NotNull public static @NotNull ResourceSchema getCompleteSchemaRequired(@NotNull @NotNull ResourceType resource) throws ConfigurationException, SchemaException We assume that missing schema is a configuration (not schema) problem.
- 
getCompleteSchemapublic static ResourceSchema getCompleteSchema(ResourceType resourceType, LayerType layer) throws SchemaException, ConfigurationException 
- 
getCompleteSchemaRequired@NotNull public static @NotNull ResourceSchema getCompleteSchemaRequired(PrismObject<ResourceType> resource, LayerType layer) throws SchemaException, ConfigurationException 
- 
getCompleteSchemaRequired@NotNull public static @NotNull ResourceSchema getCompleteSchemaRequired(ResourceType resource, LayerType layer) throws SchemaException, ConfigurationException 
- 
getCompleteSchemapublic static ResourceSchema getCompleteSchema(@NotNull @NotNull PrismObject<ResourceType> resource) throws SchemaException, ConfigurationException Obtains refined schema for the resource. Returns null if the resource does not contain any (raw) schema. If the resource does NOT contain the schema, it must be mutable. Returned schema is immutable.
- 
getCompleteSchemapublic static ResourceSchema getCompleteSchema(PrismObject<ResourceType> resource, LayerType layer) throws SchemaException, ConfigurationException Returned schema is immutable. FIXME there is a lot of cloning if layer != MODEL!
- 
getRawSchemapublic static ResourceSchema getRawSchema(@NotNull @NotNull ResourceType resource) throws SchemaException - Throws:
- SchemaException
 
- 
getRawSchemaRequiredpublic static ResourceSchema getRawSchemaRequired(ResourceType resource) throws SchemaException, ConfigurationException 
- 
getRawSchemapublic static ResourceSchema getRawSchema(@NotNull @NotNull PrismObject<ResourceType> resource) throws SchemaException Obtains "raw" schema for the resource, i.e. the one without `schemaHandling` and similar configuration. If the resource does NOT contain the schema, it must be mutable. The returned schema is immutable.- Throws:
- SchemaException
 
- 
hasParsedSchema
- 
parseCompleteSchema@VisibleForTesting public static ResourceSchema parseCompleteSchema(ResourceType resource) throws SchemaException, ConfigurationException Executes the real parsing. Returns complete schema (raw + refined). Normally internal to this class, but may be called externally from the test code. DO NOT call it directly from the production code. The schema is NOT immutable here, but we want to ensure immutability throughout the running system. UsegetCompleteSchema(PrismObject)instead.
 
-