Class QueryRuntimeFilterManager

    • Field Detail

      • enabledFilters

        private final Set<String> enabledFilters
        The names of already enabled filters.
      • session

        private final Session session
        The Hibernate session where the filters should be enabled.
      • itemType

        private final Item itemType
    • Constructor Detail

      • QueryRuntimeFilterManager

        QueryRuntimeFilterManager​(DbControl dc,
                                  Item itemType)
        Create a new manager for the DbControl. The manager will only manage filters for queries returning item of the given item type.
    • Method Detail

      • enableFilter

        Filter enableFilter​(String filterName)
        Enable a filter, unless it has already been enabled
        Parameters:
        filterName - The name of the filter to enable
        Returns:
        A org.hibernate.Filter object, or null if the filter already was enabled
      • disableFilter

        void disableFilter​(String filterName)
        Disable a filter.
        Parameters:
        filterName - The name of the filter
      • disableAll

        void disableAll()
        Disable all filters.