Class ConflictWatcherImpl
- java.lang.Object
-
- com.evolveum.midpoint.repo.sqlbase.ConflictWatcherImpl
-
- All Implemented Interfaces:
ConflictWatcher
public class ConflictWatcherImpl extends Object implements ConflictWatcher
- Author:
- mederly
-
-
Constructor Summary
Constructors Constructor Description ConflictWatcherImpl(@NotNull String oid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends ObjectType>
voidafterAddObject(@NotNull String oid, @NotNull PrismObject<T> object)voidafterDeleteObject(String oid)<T extends ObjectType>
voidafterGetObject(PrismObject<T> object)voidafterGetVersion(String oid, String currentRepoVersion)voidafterModifyObject(String oid)<T extends ObjectType>
voidbeforeModifyObject(PrismObject<T> object)intgetExpectedVersion()@NotNull StringgetOid()booleanhasConflict()booleanisInitialized()booleanisObjectDeleted()voidsetExpectedVersion(String version)StringtoString()
-
-
-
Constructor Detail
-
ConflictWatcherImpl
public ConflictWatcherImpl(@NotNull @NotNull String oid)
-
-
Method Detail
-
afterAddObject
public <T extends ObjectType> void afterAddObject(@NotNull @NotNull String oid, @NotNull @NotNull PrismObject<T> object)
-
afterDeleteObject
public void afterDeleteObject(String oid)
-
beforeModifyObject
public <T extends ObjectType> void beforeModifyObject(PrismObject<T> object)
-
afterModifyObject
public void afterModifyObject(String oid)
-
afterGetObject
public <T extends ObjectType> void afterGetObject(PrismObject<T> object)
-
getOid
@NotNull public @NotNull String getOid()
- Specified by:
getOidin interfaceConflictWatcher
-
hasConflict
public boolean hasConflict()
- Specified by:
hasConflictin interfaceConflictWatcher
-
isInitialized
public boolean isInitialized()
-
getExpectedVersion
public int getExpectedVersion()
-
isObjectDeleted
public boolean isObjectDeleted()
-
setExpectedVersion
public void setExpectedVersion(String version)
- Specified by:
setExpectedVersionin interfaceConflictWatcher
-
-