wt.vc.config
Class LockableInUseDelegate

java.lang.Object
  extended by wt.vc.config.LockableInUseDelegate
All Implemented Interfaces:
Externalizable, Serializable, InUseDelegate

public class LockableInUseDelegate
extends Object
implements InUseDelegate, Externalizable

InUseDelegate for Iterated, Lockable elements. An element is considered 'in use' if it is locked.

Supported API: true

Extendable: false

See Also:
Serialized Form

Method Summary
 boolean iterationIsInUse(Iterated iterationToCheck)
          Returns true if the given element is locked.
 boolean iterationIsInUseByPrincipal(Iterated iterationToCheck, WTPrincipal principal)
          Returns true if the given element is locked by the given principal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

iterationIsInUse

public boolean iterationIsInUse(Iterated iterationToCheck)
                         throws WTException
Returns true if the given element is locked.

Supported API: true

Specified by:
iterationIsInUse in interface InUseDelegate
Parameters:
iterationToCheck -
Returns:
boolean
Throws:
WTException

iterationIsInUseByPrincipal

public boolean iterationIsInUseByPrincipal(Iterated iterationToCheck,
                                           WTPrincipal principal)
                                    throws WTException
Returns true if the given element is locked by the given principal. A null principal value defaults to the current principal.

Supported API: true

Specified by:
iterationIsInUseByPrincipal in interface InUseDelegate
Parameters:
iterationToCheck -
principal -
Returns:
boolean
Throws:
WTException