Interface ItemLockingService
- All Known Implementing Classes:
DefaultItemLockingService
public interface ItemLockingService
Provides functionality to lock the
ItemModel for processing.-
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if theItemModelis locked for processing .voidLocks theItemModelfor processing.voidlockAll(Collection<ItemModel> items) Locks theCollectionof theItemModelfor processing.voidUnlocks theItemModelfor processing.voidunlockAll(Collection<ItemModel> items) Unlocks theCollectionof theItemModelfor processing.
-
Method Details
-
lock
- Parameters:
item- TheItemModelto be locked
-
lockAll
Locks theCollectionof theItemModelfor processing. If theItemModelis already locked it has no effect.- Parameters:
items- TheCollectionof theItemModelto be locked.
-
unlock
- Parameters:
item- TheItemModelto be locked
-
unlockAll
Unlocks theCollectionof theItemModelfor processing. If theItemModelis already unlocked it has no effect.- Parameters:
items- TheCollectionof theItemModelto be unlocked.
-
isLocked
Checks if theItemModelis locked for processing .- Parameters:
item- TheItemModelto be unlocked- Returns:
booleantrueif user is locked. Returnsfalseotherwise.
-