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 TypeMethodDescriptionbooleanisLockBySDK(IContext context) Is resource SDK by lockbooleanisLockBySDK(IContext context, boolean cleanSessionLock) Is resource SDK by lock ( try to unlock resource before).booleanIs resource lockedbooleanIs resource locked ( try to unlock resource before ).voidLock a resourceRetrieve the users who locked the resource.Retrieve the users who locked the resource ( try to unlock resource before).voidUnlock a resourceMethods inherited from interface com.axemble.vdoc.sdk.supports.IDeletionSupport
deleteMethods inherited from interface com.axemble.vdoc.sdk.interfaces.IElement
getId, getModule, getNativeObject, getPath, saveMethods inherited from interface com.axemble.vdoc.sdk.supports.IProtocolSupport
getProtocolURI, getProtocolURIMethods 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
IUserusers.
-
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
IUserusers.
-
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.
-