public interface Lockable<PK> extends BusinessObject<PK>
BusinessObject
must implement to be used for locking.
If an owner is set, the business object is locked by him or her. Unlock will remove an owner.Modifier and Type | Method and Description |
---|---|
void |
lock()
Lock this business object by setting the current user as owner.
|
void |
lock(UID ownerId)
Lock this business object by setting the given owner.
|
void |
unlock()
Unlock this business object by removing the owner.
|
void |
unlockAfterCommit()
Unlock this business object after commit by removing the owner.
|
get, getEntity, getEntityUid, getId, getVersion, isDelete, isInsert, isUpdate
void lock() throws BusinessException
BusinessException
void lock(UID ownerId) throws BusinessException
ownerId
- BusinessException
void unlock() throws BusinessException
BusinessException
void unlockAfterCommit() throws BusinessException
BusinessException
Copyright © 2023. All rights reserved.