Interface ISourceFilter<S extends Source>

    • Method Detail

      • init

        void init​(S source,
                  Node filterNode)
           throws PortalException
        Initialization method, called before any other method on the filter instance.
        Parameters:
        source - the source the filter belongs to.
        filterNode - the filter definition node.
        Throws:
        PortalException - if the filter could not initialize itself.
        Since:
        4.0.5
      • getFilter

        ISourceFilter<? extends S> getFilter​(String filterId)
                                      throws PortalException
        Returns the filter with the given id. The filter instances should use a chain of responsability with their children to find and return the requested source filter.
        Parameters:
        filterId - the filter id.
        Returns:
        return the filter instance or null if the corresponding filter was not found.
        Throws:
        PortalException
        Since:
        4.0.5
      • getInputControlType

        String getInputControlType()
                            throws PortalException
        Returns the input control type for this filter doui frontend.
        Returns:
        the input control type, or null if there is no frontend for this filter instance.
        Throws:
        PortalException
        Since:
        4.0.5
      • isEnabled

        default boolean isEnabled()
                           throws PortalException
        Returns if this filter is enabled. If not enabled, this filter should be ignored, as if it was not present.
        Returns:
        true if this filter is enabled, false otherwise.
        Throws:
        PortalException
        Since:
        10.4.0