Package com.axemble.vdoc.sdk.supports
Interface ILockSupport
- All Superinterfaces:
IDeletionSupport
,IElement
,IProtocolSupport
,IResource
,ISearchSupport
,ISecuritySupport
,Serializable
- All Known Subinterfaces:
IWorkflowInstance
- All Known Implementing Classes:
ProcessWorkflowInstance
- Author:
- bchapoton
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isLockBySDK
(IContext context) Is resource SDK by lockboolean
isLockBySDK
(IContext context, boolean cleanSessionLock) Is resource SDK by lock ( try to unlock resource before).boolean
Is resource lockedboolean
Is resource locked ( try to unlock resource before ).void
Lock a resourceRetrieve the users who locked the resource.Retrieve the users who locked the resource ( try to unlock resource before).void
Unlock a resourceMethods inherited from interface com.axemble.vdoc.sdk.supports.IDeletionSupport
delete
Methods inherited from interface com.axemble.vdoc.sdk.interfaces.IElement
getId, getModule, getNativeObject, getPath, save
Methods inherited from interface com.axemble.vdoc.sdk.supports.IProtocolSupport
getProtocolURI, getProtocolURI
Methods inherited from interface com.axemble.vdoc.sdk.interfaces.IResource
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
-
Method Details
-
lock
Lock a resource- Parameters:
context
- The execution context.delay
- lock delay in second
-
unlock
Unlock a resource- Parameters:
context
- The execution context.
-
isLocked
Is resource locked- Parameters:
context
- The execution context.- Returns:
- true if the resource has been locked, false otherwise.
-
isLocked
Is resource locked ( try to unlock resource before ).- Parameters:
context
- The execution context.cleanSessionLock
- try to unlock resource before- Returns:
- true if the resource has been locked, false otherwise.
-
lockedBy
Retrieve the users who locked the resource.- Parameters:
context
- The execution context.- Returns:
- a list of
IUser
users.
-
lockedBy
Retrieve the users who locked the resource ( try to unlock resource before).- Parameters:
context
- The execution context.cleanSessionLock
- try to unlock resource before- Returns:
- a list of
IUser
users.
-
isLockBySDK
Is resource SDK by lock- Parameters:
context
- The execution context.- Returns:
- true if the resource has been locked by SDK, false otherwise.
-
isLockBySDK
Is resource SDK by lock ( try to unlock resource before).- Parameters:
context
- The execution context.cleanSessionLock
- try to unlock resource before- Returns:
- true if the resource has been locked by SDK, false otherwise.
-