Interface ListGridErrorMessageExtensionHandler

All Superinterfaces:
ExtensionHandler

public interface ListGridErrorMessageExtensionHandler extends ExtensionHandler
An extension handler to allow a custom error key or error message to be added to the ListGridRecord.
Author:
kellytisdell
  • Method Details

    • determineErrorMessageForEntity

      ExtensionResultStatusType determineErrorMessageForEntity(Entity entity, ListGridRecord lgr)
      Allows the extension handler to determine a custom error message or error message key for the entity. Implementors should determine if they can handle the entity in question. If not, they should return ExtensionResultStatusType.NOT_HANDLED.

      Otherwise, they should either set the error message or the error key on the ListGrid on the entity. If both are set the error message will win.

      Implementors can use the BroadleafRequestContext to try to determine Locale, or get a MessageSource, etc.

      Parameters:
      entity -
      lgr -
      Returns:
    • determineStatusMessageForEntity

      ExtensionResultStatusType determineStatusMessageForEntity(Entity entity, ListGridRecord lgr)
      Allows the extension handler to determine a custom status message for the entity.
      Parameters:
      entity -
      lgr -
      Returns: