Class ResourceSchemaFactory
- java.lang.Object
-
- com.evolveum.midpoint.schema.processor.ResourceSchemaFactory
-
public class ResourceSchemaFactory extends Object
-
-
Constructor Summary
Constructors Constructor Description ResourceSchemaFactory()
-
Method Summary
-
-
-
Method Detail
-
getCompleteSchema
public 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.
-
getCompleteSchema
public 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
-
getCompleteSchema
public 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.
-
getCompleteSchema
public static ResourceSchema getCompleteSchema(PrismObject<ResourceType> resource, LayerType layer) throws SchemaException, ConfigurationException
-
getRawSchema
public static ResourceSchema getRawSchema(@NotNull @NotNull ResourceType resource) throws SchemaException
- Throws:
SchemaException
-
getRawSchemaRequired
public static ResourceSchema getRawSchemaRequired(ResourceType resource) throws SchemaException, ConfigurationException
-
getRawSchema
public 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.- Throws:
SchemaException
-
hasParsedSchema
@VisibleForTesting public static boolean hasParsedSchema(ResourceType resourceType)
-
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.
-
-