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 SummaryConstructorsConstructorDescriptionVersionPrecondition(@NotNull PrismObject<T> object) VersionPrecondition(String expectedVersion) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanholds(PrismObject<T> object) Problem can be reported either by returning false or by throwing PreconditionViolationException directly.
- 
Constructor Details- 
VersionPrecondition
- 
VersionPrecondition
 
- 
- 
Method Details- 
holdsDescription copied from interface:ModificationPreconditionProblem 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:
- holdsin interface- ModificationPrecondition<T extends ObjectType>
- Throws:
- PreconditionViolationException
 
 
-