Class LockUtils


  • public class LockUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      LockUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static boolean isLockedAndReadOnly​(org.alfresco.service.cmr.repository.NodeRef nodeRef, LockService lockService)
      Deprecated.
      use LockService.isLockedAndReadOnly
      static LockStatus lockStatus​(java.lang.String userName, java.lang.String lockOwner, java.util.Date expiryDate)
      Deprecated.
      eventually move into LockService
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LockUtils

        public LockUtils()
    • Method Detail

      • isLockedAndReadOnly

        public static boolean isLockedAndReadOnly​(org.alfresco.service.cmr.repository.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​(java.lang.String userName,
                                            java.lang.String lockOwner,
                                            java.util.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