Class RemovePartUsageFilterDelegate

All Implemented Interfaces:
MassChangeFilterDelegate

public class RemovePartUsageFilterDelegate extends AbstractPartUsageFilterDelegate
This filter delegate determines whether the selected objects are eligible for the mass change operation for the selected parts. The delegate will filter invalid selected objects and removes the part usage links for the valid selected objects based on the user specified part.

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 currently registered with the action name removePartUsage.

Extendable: true

Supported API: true

See Also:
  • Method Details

    • preEvaluate

      protected void preEvaluate(MassChangeFilterState mcFilterState) throws WTException
      Filter out mass change target parts that do not actually use the child part or have different line or find number values. 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
    • preProcessOperation

      protected void preProcessOperation(MassChangeFilterState mcFilterState) throws WTException
      Remove associations 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
    • getHintText

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

      Supported API: true
      Specified by:
      getHintText in interface MassChangeFilterDelegate
      Overrides:
      getHintText in class AbstractDefaultFilterDelegate
      Returns:
      String - the hint text for the remove part usage.