Interface ILockSupport

All Superinterfaces:
IDeletionSupport, IElement, IProtocolSupport, IResource, ISearchSupport, ISecuritySupport, Serializable
All Known Subinterfaces:
IWorkflowInstance
All Known Implementing Classes:
ProcessWorkflowInstance

public interface ILockSupport extends IResource
Author:
bchapoton
  • Method Details

    • lock

      void lock(IContext context, int delay)
      Lock a resource
      Parameters:
      context - The execution context.
      delay - lock delay in second
    • unlock

      void unlock(IContext context)
      Unlock a resource
      Parameters:
      context - The execution context.
    • isLocked

      boolean isLocked(IContext context)
      Is resource locked
      Parameters:
      context - The execution context.
      Returns:
      true if the resource has been locked, false otherwise.
    • isLocked

      boolean isLocked(IContext context, boolean cleanSessionLock)
      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

      Collection<IUser> lockedBy(IContext context)
      Retrieve the users who locked the resource.
      Parameters:
      context - The execution context.
      Returns:
      a list of IUser users.
    • lockedBy

      Collection<IUser> lockedBy(IContext context, boolean cleanSessionLock)
      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

      boolean isLockBySDK(IContext context)
      Is resource SDK by lock
      Parameters:
      context - The execution context.
      Returns:
      true if the resource has been locked by SDK, false otherwise.
    • isLockBySDK

      boolean isLockBySDK(IContext context, boolean cleanSessionLock)
      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.