Package wt.vc.config
Class LockableInUseDelegate
java.lang.Object
wt.vc.config.LockableInUseDelegate
- All Implemented Interfaces:
Externalizable,Serializable,InUseDelegate
InUseDelegate for Iterated, Lockable elements. An element is considered
'in use' if it is locked.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleaniterationIsInUse(Iterated iterationToCheck) Returns true if the given element is locked.booleaniterationIsInUseByPrincipal(Iterated iterationToCheck, WTPrincipal principal) Returns true if the given element is locked by the given principal.
-
Method Details
-
iterationIsInUse
Returns true if the given element is locked.
Supported API: true- Specified by:
iterationIsInUsein interfaceInUseDelegate- 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:
iterationIsInUseByPrincipalin interfaceInUseDelegate- Parameters:
iterationToCheck-principal-- Returns:
- boolean
- Throws:
WTException
-