Class FilterService

java.lang.Object
fr.paris.lutece.portal.service.filter.FilterService

@ApplicationScoped public class FilterService extends Object
FilterService
  • Method Details

    • getInstance

      @Deprecated(since="8.0", forRemoval=true) public static FilterService getInstance()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use @Inject to obtain the FilterService instance. This method will be removed in future versions.
      Returns the unique instance of the FilterService service.

      This method is deprecated and is provided for backward compatibility only. For new code, use dependency injection with @Inject to obtain the FilterService instance instead.

      Returns:
      The unique instance of FilterService.
    • registerFilter

      public void registerFilter(FilterEntry entry, Plugin plugin)
      Register a filter
      Parameters:
      entry - The filter entry defined in the plugin's XML file
      plugin - The plugin
    • setServletContext

      public static void setServletContext(jakarta.servlet.ServletContext servletContext)
      Defines the servlet context used by the FilterConfig given to the filters
      Parameters:
      servletContext - The context
    • init

      public static void init(jakarta.servlet.ServletContext context) throws LuteceInitException
      Initializes filters
      Parameters:
      context - The context
      Throws:
      LuteceInitException - If an error occurs
    • sortFilters

      public static void sortFilters()
      Sort filters.
    • getFilters

      public List<LuteceFilter> getFilters()
      Gives the filters list
      Returns:
      The list of filters