Class ObjectValidator
java.lang.Object
com.evolveum.midpoint.schema.validator.ObjectValidator
Validator that can process objects, validate them, check for errors and warning
and possibly even transform object during upgrades.
The purpose of this object is NOT to apply and validate static schema.
Prism will already do that. The purpose is to validate midPoint-specific things.
But in fact, it does also work on some generic things, such as deprecated
and plannedRemoval markers. Maybe some kind of generic Prism validator
can be distilled from this one. But for now let's experiment with this approach.
This is NOT a Spring bean by purpose. We want to setup the validator to do
various functions depending on how it is used. It may be used from GUI,
from task, invoked from ninja and so on.
- Author:
- Radovan Semancik
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkOid
(ValidationResult result, ItemPath item, String oid) void
checkOid
(ValidationResult result, PrismValue item, String oid) boolean
boolean
boolean
void
void
setWarnDeprecated
(boolean warnDeprecated) void
setWarnIncorrectOids
(boolean value) void
setWarnPlannedRemoval
(boolean warnPlannedRemoval) void
setWarnPlannedRemovalVersion
(String warnPlannedRemovalVersion) void
setWarnRemoved
(boolean warnRemoved) <C extends Containerable>
ValidationResultvalidate
(PrismContainerValue<C> object) <O extends Objectable>
ValidationResultvalidate
(PrismObject<O> object)
-
Constructor Details
-
ObjectValidator
-
-
Method Details
-
isWarnDeprecated
public boolean isWarnDeprecated() -
setWarnDeprecated
public void setWarnDeprecated(boolean warnDeprecated) -
isWarnPlannedRemoval
public boolean isWarnPlannedRemoval() -
setWarnPlannedRemoval
public void setWarnPlannedRemoval(boolean warnPlannedRemoval) -
getWarnPlannedRemovalVersion
-
setWarnPlannedRemovalVersion
-
setWarnIncorrectOids
public void setWarnIncorrectOids(boolean value) -
isWarnRemoved
public boolean isWarnRemoved() -
setWarnRemoved
public void setWarnRemoved(boolean warnRemoved) -
setAllWarnings
public void setAllWarnings() -
validate
-
validate
-
checkOid
-
checkOid
-