com.ptc.core.ca.co.client.doer
Class CoDefaultActionValidator

java.lang.Object
  extended by com.ptc.core.ca.co.client.doer.CoDefaultActionValidator
All Implemented Interfaces:
CoActionValidator
Direct Known Subclasses:
CoAbstractSimpleActionValidator

Deprecated.

@Deprecated
public class CoDefaultActionValidator
extends Object
implements CoActionValidator

This class implements an action validator capable of taking advantage of Check sub-elements. The typical usage is the following:

 <Action id="action.checkoutOpen" needSelection="true">
   <Label   resource="Checkout/Open"/>
   <ToolTip resource="Checkout/Open"/>
   <Location ref=":dialog.download.open"/>
   <ActionHandler class="%[InPlaceActionHandler]"/>
   <ActionDoer    class="com.ptc.core.ca.co.client.doer.CoDoAndGoActionTaskDoer">
     <Need attribute="checkoutInfo.state" type="%[enterprise:RevisionControlled]"/>
     <Validator class="com.ptc.core.ca.co.client.doer.CoDefaultActionValidator">
       <Check value="%[attribute#Wizard#checkoutInfo.state]==c/i"/>
     </Validator>
     <Task nextOperation="STDOP|com.ptc.windchill.view" taskDelegate="dca-checkout">
       <TaskParameter function="com.ptc.refimpl.co.client.misc.CoWizardInstanceAsObjRefFunctionActionParam"/>
     </Task>
   </ActionDoer>
   <Insert ref="common:renderer.action"/>
 </Action>
 


Supported API: true

Extendable: true


Method Summary
 boolean canExecute(CoConfigFeature validatorConfig, CoActionHandlerData execData)
          Deprecated. The method to determine whether an action is can be triggered in the current situation.
 boolean isRelevant(CoConfigFeature validatorConfig, CoActionHandlerData execData)
          Deprecated. The method to determine whether an action is relevant to the current situation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

canExecute

public boolean canExecute(CoConfigFeature validatorConfig,
                          CoActionHandlerData execData)
                   throws WTException
Deprecated. 
The method to determine whether an action is can be triggered in the current situation.

Supported API: true

Specified by:
canExecute in interface CoActionValidator
Parameters:
validatorConfig -
execData -
Returns:
boolean
Throws:
WTException

isRelevant

public boolean isRelevant(CoConfigFeature validatorConfig,
                          CoActionHandlerData execData)
                   throws WTException
Deprecated. 
The method to determine whether an action is relevant to the current situation.

Supported API: true

Specified by:
isRelevant in interface CoActionValidator
Parameters:
validatorConfig -
execData -
Returns:
boolean
Throws:
WTException