org.opencms.lock
Class CmsLockActionRecord

java.lang.Object
  extended by org.opencms.lock.CmsLockActionRecord

public class CmsLockActionRecord
extends java.lang.Object

Bean class which keeps track of a locking action performed on a resource.


Nested Class Summary
static class CmsLockActionRecord.LockChange
          A type for the different locking actions.
 
Constructor Summary
CmsLockActionRecord(CmsLock lock, CmsLockActionRecord.LockChange change)
          Creates a new instance.
 
Method Summary
 CmsLockActionRecord.LockChange getChange()
          Gets the change type.
 CmsLock getLock()
          Gets the lock state after the action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsLockActionRecord

public CmsLockActionRecord(CmsLock lock,
                           CmsLockActionRecord.LockChange change)
Creates a new instance.

Parameters:
lock - the lock state after the action
change - the action type
Method Detail

getChange

public CmsLockActionRecord.LockChange getChange()
Gets the change type.

Returns:
the change type

getLock

public CmsLock getLock()
Gets the lock state after the action.

Returns:
the lock state after the action