Class 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 Detail

      • 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

        public String getTransactionId()
        Specified by:
        getTransactionId in interface org.fcrepo.kernel.api.lock.ResourceLock