Class LockUtils

java.lang.Object
org.alfresco.repo.lock.LockUtils

public class LockUtils extends Object
  • Constructor Details

    • LockUtils

      public LockUtils()
  • Method Details

    • isLockedAndReadOnly

      public static boolean isLockedAndReadOnly(NodeRef nodeRef, LockService lockService)
      Deprecated.
      use LockService.isLockedAndReadOnly
      Indicates if the node is locked AND it's not a WRITE_LOCK for the current user.
    • lockStatus

      public static LockStatus lockStatus(String userName, String lockOwner, Date expiryDate)
      Deprecated.
      eventually move into LockService
      Given the lock owner and expiry date of a lock calculates the lock status with respect to the user name supplied, e.g. the current user.
      Parameters:
      userName - User name to evaluate the lock against.
      lockOwner - Owner of the lock.
      expiryDate - Expiry date of the lock.
      Returns:
      LockStatus