public interface ILockSupport extends IResource
Modifier and Type | Method and Description |
---|---|
boolean |
isLockBySDK(IContext context)
Is resource SDK by lock
|
boolean |
isLockBySDK(IContext context,
boolean cleanSessionLock)
Is resource SDK by lock ( try to unlock resource before).
|
boolean |
isLocked(IContext context)
Is resource locked
|
boolean |
isLocked(IContext context,
boolean cleanSessionLock)
Is resource locked ( try to unlock resource before ).
|
void |
lock(IContext context,
int delay)
Lock a resource
|
Collection<IUser> |
lockedBy(IContext context)
Retrieve the users who locked the resource.
|
Collection<IUser> |
lockedBy(IContext context,
boolean cleanSessionLock)
Retrieve the users who locked the resource ( try to unlock resource before).
|
void |
unlock(IContext context)
Unlock a resource
|
addLinkedResource, addLinkedResources, allowEvents, createLinkedResource, deleteLinkedResource, deleteLinkedResources, denyEvents, exists, getCreatedBy, getCreatedDate, getDefinition, getHistory, getLinkedResources, getList, getModifiedBy, getModifiedDate, getName, getText, getValue, refresh, refresh, save, save, setCreatedBy, setCreatedDate, setList, setModifiedBy, setModifiedDate, setValue, setValueNoEvents
getId, getModule, getNativeObject, getPath, save
delete
getProtocolURI, getProtocolURI
void lock(IContext context, int delay)
context
- The execution context.delay
- lock delay in secondvoid unlock(IContext context)
context
- The execution context.boolean isLocked(IContext context)
context
- The execution context.boolean isLocked(IContext context, boolean cleanSessionLock)
context
- The execution context.cleanSessionLock
- try to unlock resource beforeCollection<IUser> lockedBy(IContext context)
context
- The execution context.IUser
users.Collection<IUser> lockedBy(IContext context, boolean cleanSessionLock)
context
- The execution context.cleanSessionLock
- try to unlock resource beforeIUser
users.boolean isLockBySDK(IContext context)
context
- The execution context.boolean isLockBySDK(IContext context, boolean cleanSessionLock)
context
- The execution context.cleanSessionLock
- try to unlock resource beforeCopyright © 2021 Visiativ Software. All rights reserved.