Class ChangePartUsageFilterDelegate

All Implemented Interfaces:
MassChangeFilterDelegate

public class ChangePartUsageFilterDelegate extends AbstractPartUsageFilterDelegate
This filter delegate determines whether the selected objects are eligible for the mass change operation for the selected parts. The delegate filters out invalid objects selected prior to performing the operation. Valid objects associated to the user specified part will have their attributes updated.

If this delegate is extended or replaced with a customized delegate, the action for the mass change operation should be overridden in a customized actions.xml. The customized delegate should be registered as the command class in the overridden mass change operation action.
This operation is current registered with the action name .

Extendable: true

Supported API: true

See Also:
  • Method Details

    • preProcessOperation

      protected void preProcessOperation(MassChangeFilterState mcFilterState) throws WTException
      Change association attributes between target objects and the specified part.
      Overridden methods must have first line: super.preProcessOperation(mcFilterState)

      Supported API: true
      Overrides:
      preProcessOperation in class AbstractPartUsageFilterDelegate
      Parameters:
      mcFilterState - MassChangeFilterState object populated with mass change target objects.
      Throws:
      WTException
    • preEvaluate

      protected void preEvaluate(MassChangeFilterState mcFilterState) throws WTException
      Filter out mass change target parts that:
      1. Do not actually use the child part or have different line or find number values.
      2. Would result in a duplicate line or find number.
      Filtered objects will be marked as excluded. Objects already excluded will not be evaluated.

      Overridden methods must have first line: super.preEvaluate(mcFilterState)

      Supported API: true

      Overrides:
      preEvaluate in class AbstractPartUsageFilterDelegate
      Parameters:
      mcFilterState - MassChangeFilterState object populated with mass change target objects.
      Throws:
      WTException
    • filterQuantity

      protected void filterQuantity(MassChangeFilterState mcFilterState, boolean isRefDesSpecified) throws WTException
      Filter out mass change target objects that have an ineligible quantity. Filtered objects will be marked as excluded. Objects already excluded will not be evaluated.

      Supported API: true
      Parameters:
      mcFilterState - MassChangeFilterState object populated with mass change target objects.
      Throws:
      WTException
    • getHintText

      public String getHintText()
      Retrieve the hint text for the Change Part Usage functionality.

      Supported API: true
      Specified by:
      getHintText in interface MassChangeFilterDelegate
      Overrides:
      getHintText in class AbstractDefaultFilterDelegate
      Returns:
      the hint text for the change part usage.
    • validateFormSubmission

      public UIValidationResult validateFormSubmission(UIValidationCriteria validationCriteria) throws WTException
      Implementation used for Edit Part Usage operation of the Mass Change wizard. This will validate the specified Quantity/Unit pair from the client and will return a UIValidationStatus.DENIED if an error occurs.

      Supported API: true
      Specified by:
      validateFormSubmission in interface MassChangeFilterDelegate
      Overrides:
      validateFormSubmission in class AbstractPartUsageFilterDelegate
      Parameters:
      validationCriteria - - UIValidationCriteria object that holds client data
      Returns:
      UIValidationResult
      Throws:
      WTException