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.
@FunctionalInterface public interface ModificationPrecondition<T extends ObjectType>
- Author:
- mederly
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
holds(PrismObject<T> object)
Problem can be reported either by returning false or by throwing PreconditionViolationException directly.
-
-
-
Method Detail
-
holds
boolean holds(PrismObject<T> object) throws PreconditionViolationException
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
-
-