Class ResourceLockImpl

java.lang.Object
org.fcrepo.kernel.impl.lock.ResourceLockImpl
All Implemented Interfaces:
org.fcrepo.kernel.api.lock.ResourceLock

public class ResourceLockImpl extends Object implements org.fcrepo.kernel.api.lock.ResourceLock
Simple implementation of the complex lock.
Author:
whikloj
  • Method Details

    • getResourceId

      public org.fcrepo.kernel.api.identifiers.FedoraId getResourceId()
      Specified by:
      getResourceId in interface org.fcrepo.kernel.api.lock.ResourceLock
    • hasResource

      public boolean hasResource(org.fcrepo.kernel.api.identifiers.FedoraId resourceId)
      Specified by:
      hasResource in interface org.fcrepo.kernel.api.lock.ResourceLock
    • getLockType

      public org.fcrepo.kernel.api.lock.ResourceLockType getLockType()
      Specified by:
      getLockType in interface org.fcrepo.kernel.api.lock.ResourceLock
    • hasLockType

      public boolean hasLockType(org.fcrepo.kernel.api.lock.ResourceLockType lockType)
      Specified by:
      hasLockType in interface org.fcrepo.kernel.api.lock.ResourceLock
    • isAdequate

      public boolean isAdequate(org.fcrepo.kernel.api.lock.ResourceLockType lockType)
      Specified by:
      isAdequate in interface org.fcrepo.kernel.api.lock.ResourceLock
    • getTransactionId

      Specified by:
      getTransactionId in interface org.fcrepo.kernel.api.lock.ResourceLock
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object