Class QuickFilterManagerImpl

    • Constructor Detail

      • QuickFilterManagerImpl

        public QuickFilterManagerImpl()
    • Method Detail

      • validate

        @NotNull
        public @NotNull ErrorCollection validate​(@NotNull
                                                 @NotNull QuickFilter quickFilter)
        Description copied from interface: QuickFilterManager
        Validates the given quick filter. Will not validate rules.
        Specified by:
        validate in interface QuickFilterManager
        Parameters:
        quickFilter - filter to validate
        Returns:
        validation error collection - empty, if validation was successful
      • create

        public void create​(@NotNull
                           @NotNull QuickFilter quickFilter)
        Description copied from interface: QuickFilterManager
        Creates a new quick filter. If the quick filter doesn't have a position defined, it will be assigned one. If instead it has a position defined, then other persisted quick filters will be repositioned to maintain integrity.
        Specified by:
        create in interface QuickFilterManager
        Parameters:
        quickFilter - quick filter to create, with or without defined position.
      • update

        public void update​(@NotNull
                           @NotNull QuickFilter quickFilter,
                           int previousPosition)
        Description copied from interface: QuickFilterManager
        Updates a quick filter. After the update, other persisted quick filters will be repositioned if necessary. Quick filter rules will not be updated.
        Specified by:
        update in interface QuickFilterManager
        Parameters:
        quickFilter - quick filter to update
        previousPosition - previous position of the quick filter
      • delete

        public void delete​(@NotNull
                           @NotNull QuickFilter quickFilter)
        Description copied from interface: QuickFilterManager
        Delete an existing quick filter. After the update, other persisted quick filters will be repositioned if necessary.
        Specified by:
        delete in interface QuickFilterManager
        Parameters:
        quickFilter - quick filter to delete