Class GenericAttributesRegularExpressionRemovalListener

java.lang.Object
fr.paris.lutece.plugins.genericattributes.service.GenericAttributesRegularExpressionRemovalListener
All Implemented Interfaces:
fr.paris.lutece.portal.service.util.RemovalListener

@ApplicationScoped public class GenericAttributesRegularExpressionRemovalListener extends Object implements fr.paris.lutece.portal.service.util.RemovalListener
Refuses the removal of a regular expression while a field of an entry is verified by it: once removed, the entry could no longer check its answers.
  • Constructor Details

    • GenericAttributesRegularExpressionRemovalListener

      public GenericAttributesRegularExpressionRemovalListener()
  • Method Details

    • register

      public void register(@Observes @Initialized(jakarta.enterprise.context.ApplicationScoped.class) Object context)
      Registers this listener with the removal service of the regular expressions when the application starts.
      Parameters:
      context - the context of the started application
    • canBeRemoved

      public boolean canBeRemoved(String strId)
      Specified by:
      canBeRemoved in interface fr.paris.lutece.portal.service.util.RemovalListener
    • getRemovalRefusedMessage

      public String getRemovalRefusedMessage(String strId, Locale locale)
      Specified by:
      getRemovalRefusedMessage in interface fr.paris.lutece.portal.service.util.RemovalListener