Class ConfigErrorReporter
java.lang.Object
com.evolveum.midpoint.schema.error.ConfigErrorReporter
This class should provide user-understandable messages related to configuration errors, i.e. something that is (clearly)
wrong with the configuration. An example: missing "ref" property in a template or resource item definition.
It relies on parent-child relationship between prism items and their values.
LIMITED and TEMPORARY. In the future, we will probably drop this relationship from the prism structures.
Instead, some context object will be passed when getting data from those configuration objects. This will complicate
the code a bit.
Maybe the serious solution should check those configuration errors in a controlled way, e.g. when an object is imported
or "tested"; the runtime code could report these errors in a simpler, less user-friendly way. This would reduce the overhead
of carrying the whole operation context. On the other hand, configuration objects can be modified unexpectedly, e.g. by
executing arbitrary deltas at any given time. This would need to be limited somehow.
TODO consider using getPath method to provide exact path of the element in the object
See
ConfigurationItem
for a possible replacement.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
describe
(@NotNull AuthorizationType authorization) static String
describe
(@NotNull InboundMappingType inboundMapping) static String
describe
(@NotNull ItemRefinedDefinitionType itemRefinedDefinition) static String
describe
(@NotNull ObjectSelectorType selector) static Object
-
Constructor Details
-
ConfigErrorReporter
public ConfigErrorReporter()
-
-
Method Details
-
lazy
-
describe
-
describe
-
describe
-
describe
-