Package org.fcrepo.kernel.impl.lock
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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)org.fcrepo.kernel.api.lock.ResourceLockTypegetLockType()org.fcrepo.kernel.api.identifiers.FedoraIdgetResourceId()StringgetTransactionId()inthashCode()booleanhasLockType(org.fcrepo.kernel.api.lock.ResourceLockType lockType)booleanhasResource(org.fcrepo.kernel.api.identifiers.FedoraId resourceId)booleanisAdequate(org.fcrepo.kernel.api.lock.ResourceLockType lockType)StringtoString()
-
-
-
Method Detail
-
getResourceId
public org.fcrepo.kernel.api.identifiers.FedoraId getResourceId()
- Specified by:
getResourceIdin interfaceorg.fcrepo.kernel.api.lock.ResourceLock
-
hasResource
public boolean hasResource(org.fcrepo.kernel.api.identifiers.FedoraId resourceId)
- Specified by:
hasResourcein interfaceorg.fcrepo.kernel.api.lock.ResourceLock
-
getLockType
public org.fcrepo.kernel.api.lock.ResourceLockType getLockType()
- Specified by:
getLockTypein interfaceorg.fcrepo.kernel.api.lock.ResourceLock
-
hasLockType
public boolean hasLockType(org.fcrepo.kernel.api.lock.ResourceLockType lockType)
- Specified by:
hasLockTypein interfaceorg.fcrepo.kernel.api.lock.ResourceLock
-
isAdequate
public boolean isAdequate(org.fcrepo.kernel.api.lock.ResourceLockType lockType)
- Specified by:
isAdequatein interfaceorg.fcrepo.kernel.api.lock.ResourceLock
-
getTransactionId
public String getTransactionId()
- Specified by:
getTransactionIdin interfaceorg.fcrepo.kernel.api.lock.ResourceLock
-
-