Package com.evolveum.midpoint.repo.api
Class VersionPrecondition<T extends ObjectType>
java.lang.Object
com.evolveum.midpoint.repo.api.VersionPrecondition<T>
- All Implemented Interfaces:
ModificationPrecondition<T>
,Serializable
public class VersionPrecondition<T extends ObjectType>
extends Object
implements ModificationPrecondition<T>, Serializable
- See Also:
-
Constructor Summary
ConstructorDescriptionVersionPrecondition
(@NotNull PrismObject<T> object) VersionPrecondition
(String expectedVersion) -
Method Summary
Modifier and TypeMethodDescriptionboolean
holds
(PrismObject<T> object) Problem can be reported either by returning false or by throwing PreconditionViolationException directly.
-
Constructor Details
-
VersionPrecondition
-
VersionPrecondition
-
-
Method Details
-
holds
Description copied from interface:ModificationPrecondition
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.- Specified by:
holds
in interfaceModificationPrecondition<T extends ObjectType>
- Throws:
PreconditionViolationException
-