Package com.evolveum.midpoint.repo.api
Interface ModificationPrecondition<T extends ObjectType>
- All Known Implementing Classes:
VersionPrecondition
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
holds
(PrismObject<T> object) Problem can be reported either by returning false or by throwing PreconditionViolationException directly.
-
Method Details
-
holds
Problem can be reported either by returning false or by throwing PreconditionViolationException directly. The former method is easier while the latter one gives a possibility to provide a custom exception message.- Throws:
PreconditionViolationException
-