Package wt.change2
Class DefaultChangeItemComplexityDelegate
java.lang.Object
wt.change2.DefaultChangeItemComplexityDelegate
- All Implemented Interfaces:
ChangeItemComplexityDelegate,wt.services.applicationcontext.ApplicationContextChild
public class DefaultChangeItemComplexityDelegate
extends Object
implements wt.services.applicationcontext.ApplicationContextChild, ChangeItemComplexityDelegate
This class is the concrete implementation which evaluates the complexity on a change item.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptionevaluate(Persistable referenceObject) Determine the value of Complexity.evaluate(Persistable referenceObject, TypeInstance changeItemTypeInst, String defValue) Determine the value of Complexity.booleanisComplexityMutable(Persistable referenceObject, EnumeratedType complexity) For a given Persistable and some specified complexity determine if the complexity should be "fixed" or if it can be allowed to be changed.
-
Method Details
-
evaluate
Determine the value of Complexity. Can be called from all launch points ((Change Requests, Containers, WTParts) by passing in a Persistable reference object.
Supported API: true- Specified by:
evaluatein interfaceChangeItemComplexityDelegate- Parameters:
referenceObject- Reference object for change item.- Returns:
- EnumeratedType Complexity default value.
-
evaluate
public EnumeratedType evaluate(Persistable referenceObject, TypeInstance changeItemTypeInst, String defValue) Determine the value of Complexity. Can be called from all launch points ((Change Requests, Containers, WTParts) by passing in a Persistable reference object.
Supported API: true- Specified by:
evaluatein interfaceChangeItemComplexityDelegate- Parameters:
referenceObject- Reference object for change item.changeItemTypeInst- Type instance for change item (may be null).defValue- default value.- Returns:
- EnumeratedType Complexity default value.
-
isComplexityMutable
public boolean isComplexityMutable(Persistable referenceObject, EnumeratedType complexity) throws WTException For a given Persistable and some specified complexity determine if the complexity should be "fixed" or if it can be allowed to be changed.
Supported API: true- Specified by:
isComplexityMutablein interfaceChangeItemComplexityDelegate- Parameters:
referenceObject- Reference object for change item.complexity- Default complexity value for change item.- Returns:
- boolean True if default complexity value can be changed.
- Throws:
WTException
-