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)
void
afterDeleteObject(String oid)
<T extends ObjectType>
voidafterGetObject(PrismObject<T> object)
void
afterGetVersion(String oid, String currentRepoVersion)
void
afterModifyObject(String oid)
<T extends ObjectType>
voidbeforeModifyObject(PrismObject<T> object)
int
getExpectedVersion()
@NotNull String
getOid()
boolean
hasConflict()
boolean
isInitialized()
boolean
isObjectDeleted()
void
setExpectedVersion(String version)
String
toString()
-
-
-
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:
getOid
in interfaceConflictWatcher
-
hasConflict
public boolean hasConflict()
- Specified by:
hasConflict
in interfaceConflictWatcher
-
isInitialized
public boolean isInitialized()
-
getExpectedVersion
public int getExpectedVersion()
-
isObjectDeleted
public boolean isObjectDeleted()
-
setExpectedVersion
public void setExpectedVersion(String version)
- Specified by:
setExpectedVersion
in interfaceConflictWatcher
-
-