public class DefaultItemLockingService extends java.lang.Object implements ItemLockingService
| Constructor and Description |
|---|
DefaultItemLockingService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isLocked(ItemModel item)
Checks if the
ItemModel is locked for processing . |
void |
lock(ItemModel item)
Locks the
ItemModel for processing. |
void |
lockAll(java.util.Collection<ItemModel> items)
Locks the
Collection of the ItemModel for processing. |
void |
setCacheInvalidator(CacheInvalidator cacheInvalidator) |
void |
setModelService(ModelService modelService) |
void |
setUserService(UserService userService) |
void |
setWritePersistenceGateway(WritePersistenceGateway writePersistenceGateway) |
void |
unlock(ItemModel item)
Unlocks the
ItemModel for processing. |
void |
unlockAll(java.util.Collection<ItemModel> items)
Unlocks the
Collection of the ItemModel for processing. |
public void lock(ItemModel item)
ItemLockingServicelock in interface ItemLockingServiceitem - The ItemModel to be lockedpublic void unlock(ItemModel item)
ItemLockingServiceunlock in interface ItemLockingServiceitem - The ItemModel to be lockedpublic boolean isLocked(ItemModel item)
ItemLockingServiceItemModel is locked for processing .isLocked in interface ItemLockingServiceitem - The ItemModel to be unlockedboolean true if user is locked. Returns false otherwise.public void setUserService(UserService userService)
public void setWritePersistenceGateway(WritePersistenceGateway writePersistenceGateway)
public void setCacheInvalidator(CacheInvalidator cacheInvalidator)
public void setModelService(ModelService modelService)
public void lockAll(java.util.Collection<ItemModel> items)
ItemLockingServiceCollection of the ItemModel for processing. If the ItemModel is already locked it
has no effect.lockAll in interface ItemLockingServiceitems - The Collection of the ItemModel to be locked.public void unlockAll(java.util.Collection<ItemModel> items)
ItemLockingServiceCollection of the ItemModel for processing. If the ItemModel is already unlocked
it has no effect.unlockAll in interface ItemLockingServiceitems - The Collection of the ItemModel to be unlocked.Copyright © 2018 SAP SE. All Rights Reserved.