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(ResourceType resource) throws SchemaException
- Throws:
SchemaException
-
getCompleteSchemaRequired
public static ResourceSchema getCompleteSchemaRequired(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
- Throws:
SchemaException
-
getExistingRefinedSchema
public static ResourceSchema getExistingRefinedSchema(PrismObject<ResourceType> resource)
-
getCompleteSchema
public static ResourceSchema getCompleteSchema(PrismObject<ResourceType> resource) throws SchemaException
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. TODO rework this -- management of refined resource schemas will be the responsibility of ResourceManager- Throws:
SchemaException
-
getCompleteSchema
public static ResourceSchema getCompleteSchema(PrismObject<ResourceType> resource, LayerType layer) throws SchemaException
- Throws:
SchemaException
-
hasRefinedSchema
public static boolean hasRefinedSchema(ResourceType resourceType)
-
getRawSchema
public static ResourceSchema getRawSchema(@NotNull @NotNull ResourceType resource) throws SchemaException
- Throws:
SchemaException
-
getRawSchemaRequired
public static ResourceSchema getRawSchemaRequired(ResourceType resource) throws SchemaException
- Throws:
SchemaException
-
getRawSchema
public static ResourceSchema getRawSchema(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. TODO rework this -- management of resource schemas will be the responsibility of ResourceManager- Throws:
SchemaException
-
hasParsedSchema
public static boolean hasParsedSchema(ResourceType resourceType)
-
parseCompleteSchema
public static ResourceSchema parseCompleteSchema(ResourceType resource) throws SchemaException
Executes the real parsing. Returns complete schema (raw + refined). Normally internal to this class, but may be called externally from the test code.- Throws:
SchemaException
-
-