ValidateRemove

Injects the call to the RemoveValidationCommand into the RemoveCommandExtension.

Condition:

dataElement.component.getOption('enableValidation').defined and
    dataElement.component.getOption('enableJaxrs').defined and
    dataElement.getOption('includeJaxrsConnector').defined and
    dataElement.getOption('exposeDeleteEndpoint').defined and
    !dataElement.dataCommands.{^ #this.name.equals('remove' + dataElement.name) }.empty
Expander Layer artifact
RemoveElementCommandExtensionExpander LOGIC_LAYER Remove$dataElement.name$CommandExtension.java

Examples of injected Feature Segments

RemoveElementCommandExtensionExpander

@anchor:fields:start
private RemoveCatBreedValidationCommand validationCommand = new RemoveCatBreedValidationCommand();
@anchor:fields:end
@anchor:can-execute:start
CustomCommandResult validate = validationCommand.validate(commandParameter);
if (validate.isError()) {
  return validate;
}
@anchor:can-execute:end