org.alfresco.repo.domain.locks
Class LockDetails

java.lang.Object
  extended by org.alfresco.repo.domain.locks.LockDetails

public class LockDetails
extends java.lang.Object

Class to contain details regarding a lock. A lock is specific to a given qualified name. For any given lock, there may exist an EXCLUSIVE lock or several SHARED locks.

Since:
3.2

Nested Class Summary
static class LockDetails.LockType
          The type of lock
 
Constructor Summary
LockDetails(java.lang.String txnId, org.alfresco.service.namespace.QName lockQName, LockDetails.LockType lockType)
           
 
Method Summary
 org.alfresco.service.namespace.QName getLockQName()
           
 LockDetails.LockType getLockType()
           
 java.lang.String getTxnId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockDetails

public LockDetails(java.lang.String txnId,
                   org.alfresco.service.namespace.QName lockQName,
                   LockDetails.LockType lockType)
Parameters:
txnId - the transaction holding the lock
lockQName - the qualified name of the lock
lockType - the type of lock
Method Detail

getTxnId

public java.lang.String getTxnId()
Returns:
Returns the transaction holding the lock

getLockQName

public org.alfresco.service.namespace.QName getLockQName()
Returns:
Returns the qualified name of the lock

getLockType

public LockDetails.LockType getLockType()
Returns:
Returns the lock type


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.