wt.vc.config
Class CabinetBasedInUseDelegate

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

public class CabinetBasedInUseDelegate
extends Object
implements InUseDelegate, Externalizable

InUseDelegate for Iterated, CabinetBased elements. An element is considered 'in use' if it is in a personal cabinet.

Supported API: true

Extendable: false

See Also:
Serialized Form

Method Summary
 boolean iterationIsInUse(Iterated iterationToCheck)
          Returns true if the given element is in a personal cabinet.
 boolean iterationIsInUseByPrincipal(Iterated iterationToCheck, WTPrincipal principal)
          Returns true if the given element is in the given principal's personal cabinet.
 
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 in a personal cabinet.

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 in the given principal's personal cabinet. 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