Package wt.vc.config
Interface InUseDelegate
- All Known Implementing Classes:
CabinetBasedInUseDelegate,IteratedInUseDelegate,LockableInUseDelegate,SessionEditedIterationInUseDelegate,WorkableInUseDelegate
public interface InUseDelegate
The InUseDelegate can be used to determine if a given iteration is undergoing
change. Typically, a user is not interested in other people's work-in-progress.
This delegate can be used by ConfigSpecs to filter out such iterations.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionfilterInUseByPrincipal(QuerySpec qs, WTPrincipal principal) Appends critera to prevent objects that are owned by someone other than the principal to be returned.booleaniterationIsInUse(Iterated iterationToCheck) Returns true if the given iteration is undergoing change by any individual.booleaniterationIsInUseByPrincipal(Iterated iterationToCheck, WTPrincipal principal) Returns true if the given iteration is undergoing change by the specified individual.
-
Method Details
-
iterationIsInUse
Returns true if the given iteration is undergoing change by any individual.
Supported API: true- Parameters:
iterationToCheck-- Returns:
- boolean
- Throws:
WTException
-
iterationIsInUseByPrincipal
boolean iterationIsInUseByPrincipal(Iterated iterationToCheck, WTPrincipal principal) throws WTException Returns true if the given iteration is undergoing change by the specified individual. A null principal value is defaulted to the current principal.
Supported API: true- Parameters:
iterationToCheck-principal-- Returns:
- boolean
- Throws:
WTException
-
filterInUseByPrincipal
Appends critera to prevent objects that are owned by someone other than the principal to be returned. A null principal value is defaulted to the current principal.
Supported API: true- Parameters:
qs- the query spec that is returned with additional criteria addedprincipal- the principal (null implies current principal) who should be using the iteration(s)- Throws:
WTException
-